:root {
  --ink: #173526;
  --muted: #5d7467;
  --line: #d9eadf;
  --paper: #fbfff9;
  --wash: #eff8ee;
  --soft: #f5fbf3;
  --green: #1f7a3f;
  --deep: #063f2a;
  --lime: #b9ec72;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #eef8ed, #fbfff8 42%, #edf7f1);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.print-page {
  width: min(100%, 8.35in);
  margin: 0 auto;
  padding: 28px 20px 42px;
}

.print-cover,
.guide-section,
.print-nav,
.print-footer {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(9, 73, 39, 0.1);
}

.print-cover {
  overflow: hidden;
  margin-bottom: 18px;
}

.cover-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at 85% 8%, rgba(185, 236, 114, 0.32), transparent 28%),
    linear-gradient(135deg, #ffffff, #f0f9ed);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.brand-row img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--green);
}

.brand-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

.section-eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: #e2f5dc;
  color: #176132;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: #123824;
  line-height: 1.08;
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.45rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 66ch;
  color: #49685a;
  font-size: 1rem;
  margin: 0;
}

.cover-card {
  align-self: stretch;
  border-radius: 16px;
  background: linear-gradient(145deg, #063f2a, #0d6a39);
  color: #f7fff5;
  padding: 22px;
  display: grid;
  align-content: end;
  min-height: 230px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cover-card p {
  color: rgba(255, 255, 255, 0.82);
  margin: 6px 0 0;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 28px 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(31, 122, 63, 0.18);
  background: #ffffff;
  color: #145e31;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #1f7a3f, #0d5a32);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(9, 86, 44, 0.18);
}

.print-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  margin-bottom: 18px;
  position: relative;
}

.print-nav a {
  border-radius: 13px;
  border: 1px solid #d9eadf;
  background: #f7fcf5;
  padding: 11px 10px;
  min-height: 68px;
  text-decoration: none;
  font-weight: 800;
  color: #174b2b;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.print-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 63, 0.35);
  background: #eff9ed;
}

.print-nav span {
  display: block;
  margin-bottom: 5px;
  color: #24824a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.print-nav a[aria-current="page"] {
  background: linear-gradient(135deg, #0a5a35, #17814b);
  color: #ffffff;
}

.print-nav a[aria-current="page"] span {
  color: #d8ffad;
}

.guide-section {
  padding: 24px;
  margin: 16px 0;
  break-inside: avoid;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  break-after: avoid;
}

.section-head p {
  max-width: 62ch;
  color: var(--muted);
  margin: 0;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-card,
.note-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 14px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.check-card h3 {
  font-family: Arial, Helvetica, sans-serif;
  color: #145e31;
  font-size: 1rem;
  margin-bottom: 6px;
}

.check-card p,
.note-card p {
  margin: 0;
  color: #5c7467;
}

.check-list {
  padding-left: 20px;
  margin: 10px 0 0;
  color: #405f50;
}

.check-list li {
  margin: 5px 0;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  break-inside: auto;
}

.reference-table th,
.reference-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.reference-table tr {
  break-inside: avoid;
}

.reference-table th {
  background: #e7f5e4;
  color: #145e31;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reference-table tr:last-child td {
  border-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-toc {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  margin: 16px 0;
}

.page-toc p {
  margin: 4px 0 0;
  color: var(--muted);
}

.toc-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toc-links a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: #f7fcf5;
  color: #174b2b;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.notes-lines {
  display: grid;
  gap: 12px;
}

.notes-lines div {
  border-bottom: 1px solid #bfdac6;
  min-height: 34px;
}

.print-footer {
  padding: 18px 22px;
  color: #5d7467;
  font-size: 0.92rem;
}

p,
li {
  orphans: 3;
  widows: 3;
}

@media (max-width: 760px) {
  .print-page {
    padding: 16px 12px 30px;
  }

  .cover-inner,
  .two-column,
  .action-grid,
  .page-toc {
    grid-template-columns: 1fr;
  }

  .print-nav {
    grid-template-columns: 1fr;
  }

  .toc-links {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }
}

@page {
  size: letter;
  margin: 0.55in;
}

@media print {
  body {
    background: #ffffff;
    color: #111;
    font-size: 10.4pt;
    line-height: 1.38;
  }

  .print-page {
    width: auto;
    padding: 0;
  }

  .print-actions {
    display: none;
  }

  .print-cover,
  .guide-section,
  .print-footer,
  .print-nav,
  .page-toc {
    box-shadow: none;
    border-color: #b8cdbc;
    break-inside: avoid;
  }

  .print-cover,
  .print-nav,
  .page-toc,
  .guide-section {
    page-break-inside: avoid;
  }

  .print-cover {
    margin-bottom: 12px;
  }

  .cover-inner {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 16px;
    padding: 0 0 14px;
    background: #ffffff;
  }

  .brand-row {
    margin-bottom: 12px;
  }

  .brand-row img {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 25pt;
    margin: 8px 0 8px;
  }

  h2 {
    font-size: 17pt;
  }

  h3 {
    font-size: 12pt;
  }

  .lead,
  .section-head p,
  .check-card p,
  .note-card p,
  .print-footer {
    color: #333;
  }

  .section-eyebrow,
  .tag {
    background: #e8efe8 !important;
    color: #111 !important;
    padding: 5px 7px;
    font-size: 8pt;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cover-card {
    color: #ffffff;
    min-height: 0;
    padding: 14px;
    border-radius: 10px;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cover-card h2 {
    font-size: 14pt;
    color: #ffffff;
  }

  .cover-card p {
    font-size: 9.5pt;
  }

  .print-nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    padding: 6px;
    margin: 10px 0 12px;
  }

  .print-nav a {
    min-height: 0;
    border-radius: 8px;
    padding: 6px;
    font-size: 8.8pt;
    background: #fff;
  }

  .print-nav span {
    font-size: 7pt;
    margin-bottom: 2px;
  }

  .page-toc {
    grid-template-columns: 1fr 1.4fr;
    padding: 10px 12px;
    margin: 10px 0;
  }

  .toc-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .toc-links a {
    padding: 5px 7px;
    font-size: 8.8pt;
    border-radius: 7px;
  }

  .guide-section {
    padding: 14px 0;
    margin: 0;
    border: 0;
    border-top: 1px solid #bccabd;
    border-radius: 0;
    background: #ffffff;
  }

  .section-head {
    margin-bottom: 10px;
  }

  .action-grid,
  .two-column {
    gap: 7px;
  }

  .check-card,
  .note-card {
    border-radius: 9px;
    padding: 9px;
    background: #ffffff;
  }

  .check-card h3,
  .note-card h3 {
    font-size: 10.5pt;
  }

  .check-list {
    margin-top: 6px;
    padding-left: 16px;
  }

  .check-list li {
    margin: 2px 0;
  }

  .reference-table {
    font-size: 8.8pt;
    border-radius: 0;
  }

  .reference-table thead {
    display: table-header-group;
  }

  .reference-table th,
  .reference-table td {
    padding: 5px 6px;
  }

  .notes-lines div {
    min-height: 24px;
  }

  .print-footer {
    padding: 10px 0 0;
    border-top: 1px solid #bccabd;
  }

  a {
    text-decoration: none;
  }
}
