/* ===========================================================
   PrintableNest — warm yellow + teal homeschool design system
   =========================================================== */

:root {
  /* palette */
  --honey: #f5b942;
  --honey-soft: #fcdf8f;
  --honey-pale: #fff5d6;
  --teal: #0e7c7b;
  --teal-deep: #084e4d;
  --teal-soft: #d6ecec;
  --cream: #fbf6ec;
  --cream-deep: #f4ecd8;
  --ink: #1d2a2a;
  --ink-soft: #485759;
  --ink-mute: #7a8a8c;
  --line: #e6dcc4;
  --line-soft: #efe7d2;
  --rose: #d96c47;
  --leaf: #57903b;

  --shadow-sm: 0 1px 2px rgba(14, 124, 123, 0.06);
  --shadow:    0 2px 4px rgba(14, 124, 123, 0.08), 0 12px 28px rgba(14, 124, 123, 0.10);
  --shadow-lg: 0 8px 18px rgba(14, 124, 123, 0.12), 0 24px 48px rgba(14, 124, 123, 0.14);

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --maxw: 1200px;

  --font-display: "Roboto Slab", "Rockwell", Georgia, serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.18;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 14px; }
h2 { font-size: 1.55rem; margin: 28px 0 14px; }
h3 { font-size: 1.2rem;  margin: 18px 0 8px; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-mute); }

/* =========================== HEADER =========================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--teal); color: #fff;
  border-radius: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.02em;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.12);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.primary-nav a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.primary-nav a:hover { color: var(--teal-deep); text-decoration: none; border-bottom-color: var(--honey); }
.search { display: flex; gap: 0; }
.search input {
  padding: 9px 14px; border: 1px solid var(--line);
  border-right: 0; border-radius: 999px 0 0 999px;
  font: inherit; background: #fff; min-width: 200px;
}
.search input:focus { outline: 2px solid var(--honey); outline-offset: 0; }
.search button {
  padding: 9px 18px; border: 0; background: var(--teal); color: #fff;
  border-radius: 0 999px 999px 0; font: inherit; font-weight: 600; cursor: pointer;
}
.search button:hover { background: var(--teal-deep); }

/* =========================== LAYOUT =========================== */
.site-main { padding: 28px 24px 56px; }
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
}
.content { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 84px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-deep);
  font-weight: 700;
}
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li { padding: 4px 0; font-size: 0.95rem; }
.sidebar-card .grade-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.sidebar-card .grade-grid a {
  display: block; text-align: center;
  padding: 6px 0; border-radius: var(--radius-sm);
  background: var(--cream-deep); color: var(--ink);
  font-weight: 600; font-size: 0.9rem;
}
.sidebar-card .grade-grid a:hover { background: var(--honey); text-decoration: none; }

/* recommended block */
.recommended-card { background: linear-gradient(180deg, var(--honey-pale), #fff); }
.recommended-card .recommended-list { display: flex; flex-direction: column; gap: 12px; }
.recommended-list a, .recommended-list span {
  display: block; padding: 10px 12px;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--honey);
  border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 500; font-size: 0.92rem;
}
.recommended-list a:hover { border-left-color: var(--teal); text-decoration: none; }
.recommended-list small { display: block; color: var(--ink-mute); font-weight: 400; margin-top: 2px; font-size: 0.8rem; }

/* tip card */
.sidebar-card.tip { background: var(--teal); color: #fff; border-color: var(--teal-deep); }
.sidebar-card.tip h3 { color: var(--honey); }
.sidebar-card.tip p { margin: 0; color: rgba(255,255,255,0.92); font-size: 0.95rem; }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, var(--honey-pale) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, var(--teal-soft) 0%, transparent 60%),
    #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-bottom: 36px;
  overflow: hidden;
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 28px; }
}
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  margin: 0 0 14px;
  line-height: 1.05;
}
.hero h1 .accent { color: var(--teal); position: relative; }
.hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 8px; background: var(--honey); opacity: 0.55; border-radius: 2px; z-index: -1;
}
.hero .lead { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 22px; max-width: 52ch; }
.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; }
.hero-stats div { font-size: 0.9rem; }
.hero-stats strong {
  display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--teal-deep);
}
.hero-art { position: relative; }
.hero-art img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
}
.hero-art .badge {
  position: absolute; bottom: -14px; left: -14px;
  background: var(--honey); color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

/* =========================== CTAs =========================== */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn-honey { background: var(--honey); color: var(--ink); border-color: var(--ink); }
.btn-honey:hover { background: var(--honey-soft); }
.btn-ghost { background: transparent; color: var(--teal-deep); border-color: var(--teal-deep); }
.btn-ghost:hover { background: var(--teal-deep); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* =========================== FILTER GRID =========================== */
.filter-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.filter-grid h2 { margin-top: 0; display: flex; align-items: baseline; gap: 12px; }
.filter-grid h2 small { font-family: var(--font-body); font-weight: 400; color: var(--ink-mute); font-size: 0.95rem; }
.filter-matrix {
  display: grid;
  grid-template-columns: 160px repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 720px) {
  .filter-matrix { grid-template-columns: 1fr; }
}
.filter-row-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--cream-deep);
  border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
}
.filter-row-head .swatch {
  width: 12px; height: 28px; border-radius: 4px;
}
.subject-math    .swatch { background: var(--rose); }
.subject-reading .swatch { background: var(--teal); }
.subject-science .swatch { background: var(--leaf); }
.subject-life-skills .swatch { background: var(--honey); }
.filter-cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: all 0.15s;
}
.filter-cell:hover {
  background: var(--honey-pale);
  border-color: var(--honey);
  transform: translateY(-2px);
  text-decoration: none;
}
.filter-cell strong { font-family: var(--font-display); font-size: 1rem; color: var(--ink); }
.filter-cell small { color: var(--ink-mute); font-size: 0.82rem; }
.filter-cell em { font-style: normal; color: var(--teal-deep); font-weight: 600; font-size: 0.85rem; }

/* =========================== CARDS =========================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--honey); text-decoration: none; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card .muted { font-size: 0.9rem; }
.card-cta { margin-top: auto; padding-top: 8px; color: var(--teal-deep); font-weight: 600; font-size: 0.92rem; }

/* =========================== WORKSHEET CARDS =========================== */
.worksheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.worksheet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.worksheet-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--honey); }

/* thumbnail (server-rendered "preview" of a worksheet page) */
.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 14px 16px 16px;
  color: var(--ink);
  overflow: hidden;
}
.thumb::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 8px;
}
.thumb-math    { background: linear-gradient(180deg, #fff 0%, #fff5ee 100%); }
.thumb-reading { background: linear-gradient(180deg, #fff 0%, #e8f1f1 100%); }
.thumb-science { background: linear-gradient(180deg, #fff 0%, #ecf3e6 100%); }
.thumb-life-skills { background: linear-gradient(180deg, #fff 0%, #fff5d6 100%); }
.thumb-math::before    { background: var(--rose); }
.thumb-reading::before { background: var(--teal); }
.thumb-science::before { background: var(--leaf); }
.thumb-life-skills::before { background: var(--honey); }

.thumb-tag-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.06);
  color: var(--ink);
}
.tag-grade { background: var(--ink); color: #fff; }
.tag-easy      { background: #d8efd1; color: #2a5a1d; }
.tag-beginner  { background: #d8efd1; color: #2a5a1d; }
.tag-medium    { background: var(--honey-soft); color: #6f4e0a; }
.tag-challenge { background: #fad7c5; color: #8b3a18; }
.tag-advanced  { background: #f1c4d3; color: #7a1f3d; }
.tag-cc {
  background: var(--teal-soft); color: var(--teal-deep);
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 0.68rem; letter-spacing: 0;
  text-transform: none;
}

.thumb-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumb-lines { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.thumb-lines span {
  display: block;
  height: 6px;
  background: rgba(0,0,0,0.07);
  border-radius: 3px;
}
.thumb-lines span:nth-child(1) { width: 92%; }
.thumb-lines span:nth-child(2) { width: 78%; }
.thumb-lines span:nth-child(3) { width: 84%; }
.thumb-lines span:nth-child(4) { width: 50%; background: var(--honey); }

.worksheet-body {
  padding: 14px 16px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.worksheet-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.worksheet-body h3 a { color: var(--ink); }
.worksheet-body h3 a:hover { color: var(--teal-deep); text-decoration: none; }
.worksheet-body p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.worksheet-card-cta {
  margin-top: 8px;
  display: flex; gap: 8px; align-items: center;
}
.btn-download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 0.85rem;
  border: 0; flex: 1; justify-content: center;
}
.btn-download:hover { background: var(--teal-deep); text-decoration: none; }
.btn-key {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: 999px;
  background: var(--honey-pale); color: var(--ink); font-weight: 600; font-size: 0.82rem;
  border: 1px solid var(--honey);
}
.btn-key:hover { background: var(--honey); text-decoration: none; }

/* =========================== PAGE HEAD =========================== */
.crumbs {
  font-size: 0.85rem; color: var(--ink-mute);
  margin-bottom: 14px;
}
.crumbs a { color: var(--teal-deep); }
.crumbs span { color: var(--ink); font-weight: 600; }
.page-head { margin-bottom: 28px; }
.page-head .kicker {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--teal-deep); background: var(--teal-soft);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.page-head h1 { margin: 0 0 12px; }
.page-head .lead { color: var(--ink-soft); font-size: 1.1rem; margin: 0; max-width: 65ch; }

/* =========================== BAND CARDS =========================== */
.band-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-bottom: 28px;
}
.band-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); transition: transform 0.15s, box-shadow 0.15s;
}
.band-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.band-card .band-label {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  color: var(--teal-deep); line-height: 1;
}
.band-card h3 { margin: 0; font-size: 1.15rem; }
.band-card p { margin: 0; color: var(--ink-soft); }
.band-card .band-count {
  margin-top: auto;
  background: var(--honey-pale); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 0.88rem;
  align-self: flex-start;
}

/* =========================== PILL ROWS =========================== */
.pill-row { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row a {
  display: inline-block;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-size: 0.9rem; font-weight: 500;
}
.pill-row a:hover { background: var(--teal); color: #fff; border-color: var(--teal); text-decoration: none; }

/* =========================== WORKSHEET DETAIL =========================== */
.worksheet-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px; align-items: stretch; margin-bottom: 28px;
}
@media (max-width: 800px) { .worksheet-head { grid-template-columns: 1fr; } }
.worksheet-head h1 { margin: 8px 0 12px; }
.worksheet-meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.worksheet-head .lead { color: var(--ink-soft); margin: 0 0 18px; font-size: 1.05rem; }

.worksheet-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.worksheet-preview .paper {
  background: #fffefb;
  border: 1px solid var(--line);
  border-radius: 6px;
  aspect-ratio: 8.5 / 11;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.worksheet-preview .paper .pn {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; color: var(--teal); letter-spacing: 0.04em;
}
.worksheet-preview .paper .ptitle {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; line-height: 1.2; color: var(--ink);
}
.worksheet-preview .paper hr {
  border: 0; border-top: 1px solid var(--line); margin: 4px 0;
}
.worksheet-preview .paper .row {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem; color: var(--ink-mute);
}
.worksheet-preview .paper .qline {
  display: block; height: 8px; background: rgba(0,0,0,0.05); border-radius: 3px;
  margin: 6px 0;
}
.worksheet-preview .paper .qline.short { width: 60%; }
.worksheet-preview .paper .qline.med   { width: 80%; }
.worksheet-preview .paper .answer-box {
  display: inline-block; width: 50px; height: 18px;
  border: 1px solid var(--line); border-radius: 3px;
  margin-left: 6px;
}
.worksheet-preview .paper .grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: auto;
}
.worksheet-preview .paper .grid div {
  border: 1px solid var(--line); border-radius: 4px;
  padding: 6px 8px; font-size: 0.78rem; color: var(--ink-mute);
}
.worksheet-preview .stamp {
  position: absolute; top: 12px; right: 12px;
  background: var(--honey); color: var(--ink);
  padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transform: rotate(6deg);
}

/* meta box */
.meta-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0;
}
.meta-box dl {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px 22px; margin: 0;
}
.meta-box dt {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--teal-deep); font-weight: 700;
}
.meta-box dd { margin: 4px 0 0; font-weight: 600; font-family: var(--font-display); }
.meta-box dd code { background: var(--cream-deep); padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

.objectives {
  background: var(--cream-deep);
  border-left: 4px solid var(--honey);
  padding: 16px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.objectives h3 { margin: 0 0 8px; }
.objectives ul { margin: 0; padding-left: 22px; }
.objectives li { margin-bottom: 4px; }

/* prose */
.prose { line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 14px; }
.prose h3 { font-size: 1.18rem; margin: 24px 0 8px; color: var(--teal-deep); }
.prose p { margin: 0 0 14px; color: var(--ink); }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose blockquote {
  border-left: 4px solid var(--teal);
  padding: 4px 18px; margin: 18px 0;
  background: var(--teal-soft); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--teal-deep); font-style: italic;
}
.prose figure.inline-image {
  margin: 20px 0; max-width: 100%;
}
.prose figure.inline-image img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.prose figure.inline-image figcaption {
  margin-top: 8px; font-size: 0.85rem; color: var(--muted, #6b7280);
}

/* answer key */
.answer-key-table {
  width: 100%; border-collapse: collapse;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.answer-key-table th, .answer-key-table td {
  padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.answer-key-table th {
  background: var(--cream-deep); color: var(--teal-deep);
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.02em;
}
.answer-key-table td:last-child { font-family: ui-monospace, "SFMono-Regular", monospace; font-weight: 700; color: var(--teal-deep); }

/* =========================== BROWSE TABLE =========================== */
.browse-matrix {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px; overflow-x: auto; margin-bottom: 28px;
}
.browse-matrix table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.browse-matrix th, .browse-matrix td {
  padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line);
}
.browse-matrix th:first-child, .browse-matrix td:first-child { text-align: left; }
.browse-matrix thead th { color: var(--teal-deep); font-weight: 700; font-family: var(--font-display); }
.browse-matrix tbody tr:hover { background: var(--cream-deep); }

/* =========================== INLINE LINK SLOT (editorial) =========================== */
.inline-link-slot {
  display: block;
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--honey-pale);
  border-left: 3px solid var(--honey);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.inline-link-slot strong { color: var(--teal-deep); }

/* =========================== FOOTER =========================== */
.site-footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.92);
  margin-top: 56px;
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--honey); margin: 0 0 12px;
  font-family: var(--font-body); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer a:hover { color: var(--honey); }
.footer-brand strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,0.78); margin: 0 0 12px; font-size: 0.92rem; }
.footer-recommended a, .footer-recommended span {
  display: block; padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92); font-size: 0.88rem;
}
.footer-recommended a:last-child, .footer-recommended span:last-child { border-bottom: 0; }
.footer-bottom {
  max-width: var(--maxw); margin: 24px auto 0;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* =========================== PRINT =========================== */
@media print {
  .site-header, .sidebar, .site-footer, .cta-row, .crumbs, .worksheet-card-cta,
  .recommended-card, .filter-grid { display: none !important; }
  .layout { grid-template-columns: 1fr; }
  body { background: #fff; }
  .worksheet-preview { box-shadow: none; border: 0; padding: 0; }
}
