:root {
  color-scheme: light;
  --ink: #182126;
  --ink-soft: #3a464d;
  --paper: #f8f4eb;
  --surface: #fffdf8;
  --line: #d7cdbc;
  --line-strong: #b9aa93;
  --teal: #0f766e;
  --teal-dark: #0b5650;
  --blue: #2d5673;
  --brass: #b8752a;
  --ruby: #9f3f46;
  --green: #347451;
  --shadow: 0 16px 45px rgba(24, 33, 38, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ruby);
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 244, 235, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--surface);
  background: conic-gradient(from 40deg, var(--teal), var(--blue), var(--brass), var(--teal));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--teal-dark);
}

.breadcrumbs {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.28rem;
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-soft);
  font-weight: 760;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.breadcrumbs [aria-current="page"] {
  max-width: min(62ch, 100%);
  overflow: hidden;
  color: var(--ink);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  min-height: 68vh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #172027;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(14, 20, 24, 0.88) 0%, rgba(14, 20, 24, 0.68) 45%, rgba(14, 20, 24, 0.18) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.36);
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 6rem 0 4rem;
  color: white;
}

.kicker {
  margin: 0 0 0.8rem;
  color: #d2e5df;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.95;
  font-weight: 800;
}

.hero-copy {
  max-width: 660px;
  margin: 1.25rem 0 0;
  color: #f1eee6;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1rem;
  background: var(--ink);
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-dark);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border-color: rgba(255, 255, 255, 0.62);
}

.button.secondary:hover {
  background: white;
  color: var(--ink);
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.band.alt {
  background: #efe8da;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.section.tight {
  padding: 2rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}

.section-header h2,
.article h1,
.article h2,
.article h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.section-header h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.05;
}

.section-header p {
  max-width: 640px;
  margin: 0;
  color: var(--ink-soft);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

.layout > *,
.grid > * {
  min-width: 0;
}

.card,
.metric,
.package,
.source-card,
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(24, 33, 38, 0.04);
}

.card,
.article-card {
  padding: 1.2rem;
}

.article-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.article-card .tag,
.tag {
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0.85rem 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.article-card p {
  margin: 0;
  color: var(--ink-soft);
}

.article-card a {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 800;
}

.feature-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
}

.decision-map {
  margin-top: 1.4rem;
}

.decision-map h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.decision-map > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.decision-map .table-wrap {
  margin-top: 0.85rem;
}

.brief-list {
  display: grid;
  gap: 0.8rem;
}

.brief {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.brief:first-child {
  border-top: 0;
  padding-top: 0;
}

.brief strong {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 1.04rem;
}

.brief p {
  margin: 0;
  color: var(--ink-soft);
}

.rank {
  color: var(--brass);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.ad-slot {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid #b9aa93;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(239, 232, 218, 0.96)),
    repeating-linear-gradient(135deg, rgba(45, 86, 115, 0.07) 0 1px, transparent 1px 12px);
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #5f5548;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.ad-slot.inline {
  min-height: 220px;
  margin: 1.6rem 0;
}

.ad-slot[data-ad-format="leaderboard"],
.ad-slot.leaderboard {
  min-height: 112px;
}

.ad-slot[data-ad-format="rail"] {
  min-height: 300px;
}

.ad-slot[data-ad-format="native"] {
  min-height: 180px;
}

.ad-slot-inner {
  max-width: 760px;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.ad-eyebrow {
  border: 1px solid rgba(24, 33, 38, 0.22);
  border-radius: 999px;
  padding: 0.14rem 0.48rem;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-slot strong,
.ad-slot-inner strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.ad-slot small,
.ad-slot em {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-style: normal;
}

.ad-slot[data-ad-status="not-configured"] {
  opacity: 0.78;
}

.ad-disclosure {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 86px;
}

.metric {
  padding: 1rem;
}

.metric span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 1.6rem;
}

.calculator {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.calculator h3 {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
}

.calc-grid {
  display: grid;
  gap: 0.75rem;
}

.field label {
  display: block;
  margin-bottom: 0.25rem;
  color: #d8e5e1;
  font-size: 0.84rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0.55rem 0.65rem;
}

.calc-result {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.calc-result strong {
  display: block;
  font-size: 1.45rem;
}

.calc-result small {
  color: #d8e5e1;
}

.progress {
  height: 12px;
  margin-top: 0.7rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.progress span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--teal), var(--brass));
}

.source-list {
  display: grid;
  gap: 0.85rem;
}

.source-card {
  padding: 1rem;
}

.source-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.source-card p {
  margin: 0;
  color: var(--ink-soft);
}

.article {
  max-width: 780px;
  min-width: 0;
}

.article.wide {
  max-width: 100%;
}

.lede {
  color: #263239;
  font-size: 1.2rem;
  line-height: 1.55;
}

.article h1 {
  margin: 0;
  font-size: 3.1rem;
  line-height: 1;
}

.article h2 {
  margin-top: 2.1rem;
  font-size: 1.85rem;
  line-height: 1.1;
}

.article h3 {
  margin-top: 1.4rem;
}

.article p,
.article li {
  color: #2e383f;
  font-size: 1.04rem;
}

.article-meta {
  margin: 0.9rem 0 1.5rem;
  color: var(--ink-soft);
}

.callout {
  border-left: 4px solid var(--teal);
  background: #eef7f4;
  padding: 1rem;
  margin: 1.25rem 0;
}

.note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f1;
  padding: 1rem;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fbf8f1;
  color: var(--ink-soft);
  padding: 0.25rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 760;
}

.warning {
  border-left-color: var(--ruby);
  background: #fbf0f1;
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.3rem 0;
}

.task-router {
  margin: 1.25rem 0 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.task-router-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
}

.task-router h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.task-router-header p {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
}

.task-router-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.task-link {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f1;
  color: var(--ink);
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.9rem;
  text-decoration: none;
}

.task-link:hover {
  border-color: var(--teal);
  background: #eef7f4;
  color: var(--ink);
}

.task-link span {
  color: var(--brass);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.task-link strong {
  font-size: 1.02rem;
  line-height: 1.18;
}

.task-link em {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-style: normal;
}

.search-panel {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbf8f1;
  padding: 1rem;
  margin: 1.2rem 0;
}

.search-label {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font-size: 1.05rem;
}

.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.task-finder {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.lane-filters {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.task-finder-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.lane-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.task-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0.52rem 0.62rem;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.task-button:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 0.45rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: white;
}

.search-meta {
  min-height: 1.6rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 760;
}

.search-results {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.search-result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
}

.search-result h3 {
  margin: 0.55rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.search-result p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}

.search-result .result-match {
  border-left: 3px solid rgba(15, 118, 110, 0.42);
  padding-left: 0.65rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.result-match strong {
  color: var(--teal-dark);
}

.result-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.result-type,
.result-desk,
.result-lane {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.12rem 0.42rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 840;
  text-transform: uppercase;
}

.result-type {
  border-color: rgba(15, 118, 110, 0.42);
  color: var(--teal-dark);
}

.result-lane {
  border-color: rgba(184, 117, 42, 0.48);
  color: #7a4b17;
}

.worksheet-form {
  display: grid;
  gap: 1rem;
  margin: 1.2rem 0;
}

.worksheet-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 1rem;
}

.worksheet-panel h2,
.worksheet-panel h3 {
  margin-top: 0;
}

.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.worksheet-field label,
.checkbox-row {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 760;
}

.worksheet-field label {
  display: block;
  margin-bottom: 0.3rem;
}

.worksheet-field input,
.worksheet-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  padding: 0.58rem 0.65rem;
}

.worksheet-field input {
  min-height: 42px;
}

.worksheet-field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  gap: 0.45rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.48rem;
}

.checkbox-row input {
  margin-top: 0.22rem;
}

.score-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) repeat(3, minmax(92px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.score-grid > div {
  padding: 0.68rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-grid > div:nth-child(4n) {
  border-right: 0;
}

.score-grid > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.score-head {
  background: #efe8da;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.score-label {
  font-weight: 800;
}

.score-option {
  display: flex;
  gap: 0.42rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.claim {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  margin: 1rem 0;
}

.claim code {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--ruby);
  font-weight: 800;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.term-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 1rem;
}

.term-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  line-height: 1.18;
}

.term-card p {
  margin: 0.5rem 0 0;
  font-size: 0.98rem;
}

.term-card p:first-of-type {
  margin-top: 0;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #efe8da;
  font-size: 0.82rem;
  text-transform: uppercase;
}

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

.package {
  padding: 1.1rem;
}

.package h3 {
  margin: 0;
}

.library-pathways {
  margin: 1rem 0 1.8rem;
}

.library-pathways .package {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.library-pathways .package h3,
.library-pathways .package p {
  margin: 0;
}

.library-pathways .package p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.link-list {
  display: grid;
  gap: 0.46rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  font-weight: 800;
}

.workflow-callout h2 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}

.workflow-callout p {
  margin: 0 0 0.85rem;
}

.workflow-links li {
  display: grid;
  gap: 0.14rem;
}

.workflow-links span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.price {
  margin: 0.45rem 0;
  color: var(--teal-dark);
  font-size: 1.6rem;
  font-weight: 850;
}

.site-footer {
  background: var(--ink);
  color: #e7e1d7;
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem;
}

.site-footer a {
  color: #d2e5df;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.fineprint {
  color: #bfc8c7;
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1rem 1rem;
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-links a {
    padding: 0.72rem 0.65rem;
  }

  .hero {
    min-height: 62vh;
  }

  .hero h1,
  .article h1 {
    font-size: 2.7rem;
  }

  .section-header,
  .task-router-header,
  .layout,
  .split-list,
  .glossary-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: start;
  }

  .task-router-header {
    flex-direction: column;
    align-items: start;
  }

  .layout,
  .grid.three,
  .grid.four,
  .grid.two,
  .task-router-grid,
  .task-grid,
  .worksheet-grid,
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding: 4.5rem 0 3rem;
  }

  .hero h1,
  .article h1 {
    font-size: 2.25rem;
  }

  .hero-copy {
    font-size: 1.03rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .brief {
    grid-template-columns: 1fr;
  }

  .score-grid {
    grid-template-columns: 1fr;
  }

  .score-head {
    display: none;
  }

  .score-grid > div,
  .score-grid > div:nth-child(4n),
  .score-grid > div:nth-last-child(-n + 4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score-grid > div:last-child {
    border-bottom: 0;
  }
}

@media print {
  @page {
    margin: 0.55in;
  }

  body {
    background: white;
    color: #111;
    font-size: 10.5pt;
    line-height: 1.35;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .breadcrumbs,
  .ad-slot,
  .rail,
  .print-actions {
    display: none !important;
  }

  .band,
  .band.alt {
    border: 0;
    background: white;
  }

  .section {
    width: 100%;
    padding: 0;
  }

  .layout {
    display: block;
  }

  .article,
  .article.wide {
    max-width: none;
  }

  .article h1 {
    font-size: 24pt;
  }

  .article h2 {
    font-size: 15pt;
  }

  .article p,
  .article li {
    color: #111;
    font-size: 10.5pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .worksheet-form {
    gap: 0.12in;
  }

  .worksheet-panel,
  .callout,
  .claim,
  .note {
    break-inside: avoid;
    background: white;
    box-shadow: none;
  }

  .worksheet-panel {
    padding: 0.14in;
  }

  .worksheet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1in;
  }

  .worksheet-field input,
  .worksheet-field textarea {
    border-color: #777;
    border-radius: 4px;
    min-height: 0.32in;
  }

  .worksheet-field textarea {
    min-height: 0.7in;
  }

  .score-grid {
    break-inside: avoid;
  }

  .score-grid > div {
    border-color: #999;
  }
}
