/* 
   ==========================================================================
   ASSIGNMENT / HOMEWORK STYLES
   Designed specifically for printing to PDF matching the PrepaTec format
   ========================================================================== 
*/

:root {
  --text-black: #000000;
  --line-color: #000000;
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-math: "KaTeX_Main", "Times New Roman", serif;
}

body.assignment-page {
  background: #f4f4f5;
  /* light gray on screen */
  color: var(--text-black);
  font-family: var(--font-main);
  line-height: 1.5;
  margin: 0;
  padding: 2rem;
}

/* Page container (looks like a piece of paper on screen) */
.paper {
  background: white;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  padding: 20mm;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* ─── HEADER ─── */
.hw-header {
  margin-bottom: 2rem;
}

.hw-header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.hw-header-center {
  text-align: center;
  font-weight: 700;
  font-size: 11pt;
  letter-spacing: 0.02em;
}

.hw-header-center>div {
  margin-bottom: 0.2rem;
}

.hw-logo-container {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hw-logo {
  height: 60px;
  width: auto;
}

/* Activity Title */
.hw-title {
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 0.75rem;
}

/* Heavy line below title */
.hw-divider {
  border: none;
  border-top: 2px solid var(--line-color);
  margin: 0 0 0.5rem 0;
}

/* Student Info Row */
.hw-student-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 1.5rem;
}

.info-field {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
}

.name-field {
  flex: 0 0 50%;
}

.id-field {
  flex: 0 0 25%;
}

.date-field {
  flex: 0 0 20%;
}

.line-fill {
  flex-grow: 1;
  border-bottom: 1.5px solid var(--line-color);
  height: 1.2em;
}

/* ─── CONTENT ─── */
.hw-content {
  font-size: 11pt;
}

.hw-instruction {
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.hw-problems {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hw-problem {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.hw-problem-bullet {
  font-size: 11pt;
  font-weight: bold;
  margin-right: 0.75rem;
  padding-top: 0.1em;
}

.hw-problem-math {
  font-size: 14pt;
}

/* Screen-only print button */
.print-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s;
}

.print-btn:active {
  transform: scale(0.95);
}

/* ─── PRINT MEDIA QUERIES ─── */
@media print {
  @page {
    margin: 20mm;
    size: letter;
  }

  body.assignment-page {
    background: white;
    padding: 0;
    margin: 0;
  }

  .paper {
    box-shadow: none;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: auto;
  }

  .print-btn {
    display: none !important;
  }
}