/* Handwriting Craft — Swiss Penmanship Press Atelier (hc-academy-atelier) */
@import url("/assets/design-tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--base-size);
  line-height: 1.66;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 999;
  background: var(--plate-bg); color: #FFFFFF; padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.hc-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 34px);
}

/* Two-Tier Stationery Header */
.hc-utility-bar {
  background: var(--plate-bg);
  color: var(--plate-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.hc-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 7px;
}
.hc-util-toggle {
  appearance: none;
  background: transparent;
  color: var(--plate-ink);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 2px;
  padding: 8px 14px;
  min-height: var(--touch-min);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.hc-util-toggle:hover { border-color: var(--accent); color: #FFFFFF; }

.hc-masthead {
  background: var(--surface);
  border-bottom: 2px solid var(--rule-strong);
}
.hc-masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-night { display: none; }
html[data-theme="night"] .logo-day { display: none; }
html[data-theme="night"] .logo-night { display: block; }

.hc-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  padding-block: 10px;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* Tactile Letterpress Drafting Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch-min);
  padding: 11px 21px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.16s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #1E5BC2 0%, #1449A0 100%);
  color: #FFFFFF;
  border-color: #0E3473;
  box-shadow: 0 3px 0 #0A2552, 0 6px 14px rgba(20, 73, 160, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #2769D6 0%, #1752B5 100%);
  border-color: #0E3473;
  color: #FFFFFF;
  box-shadow: 0 5px 0 #0A2552, 0 10px 20px rgba(20, 73, 160, 0.30);
}
.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0A2552, 0 2px 6px rgba(20, 73, 160, 0.18);
}
.hc-hero-plate .btn-primary {
  background: linear-gradient(180deg, #DC5A38 0%, #C84B2A 100%);
  border-color: #8F2C14;
  box-shadow: 0 3px 0 #701F0C, 0 8px 18px rgba(200, 75, 42, 0.32);
}
.hc-hero-plate .btn-primary:hover {
  background: linear-gradient(180deg, #E86846 0%, #D25230 100%);
  box-shadow: 0 5px 0 #701F0C, 0 12px 22px rgba(200, 75, 42, 0.40);
}
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 3px 0 var(--border);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 0 var(--border);
}
.btn-secondary:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--border); }
.hc-hero-plate .btn-secondary {
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}
.hc-hero-plate .btn-secondary:hover {
  border-color: #F48062;
  color: #FFFFFF;
  background: rgba(244, 128, 98, 0.18);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.34);
}
html[data-theme="night"] .btn-secondary { color: #8BB8FF; border-color: #6FA8FF; background: var(--surface); }
html[data-theme="night"] .btn-secondary:hover { border-color: #F48062; color: #F48062; background: var(--surface-alt); }
html[data-theme="night"] .hc-hero-plate .btn-secondary { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.56); }
html[data-theme="night"] .hc-hero-plate .btn-secondary:hover { border-color: #F48062; color: #FFFFFF; background: rgba(244, 128, 98, 0.14); }

html[data-theme="night"] .btn-primary {
  background: linear-gradient(180deg, #87B8FF 0%, #6FA8FF 100%);
  border-color: #4B85DB;
  color: #07101E;
  box-shadow: 0 3px 0 #264F8C;
}
html[data-theme="night"] .btn-primary:hover {
  background: linear-gradient(180deg, #9EC7FF 0%, #7DB2FF 100%);
  color: #07101E;
  box-shadow: 0 5px 0 #264F8C;
}
html[data-theme="night"] .hc-hero-plate .btn-primary {
  background: linear-gradient(180deg, #F69176 0%, #F48062 100%);
  border-color: #B84C31;
  color: #081220;
  box-shadow: 0 3px 0 #7C2F1C;
}

/* Home Dark Prussian Hero Plate */
.hc-hero-plate {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(22px, 3.6vw, 40px);
}
.hc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  border: 2px solid var(--rule-strong);
  background: var(--plate-bg);
}
.hc-hero-copy {
  background: var(--plate-bg);
  color: var(--plate-ink);
  padding: clamp(24px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 6px solid var(--accent);
}
.hc-spec-stamp {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B9CBE0;
  margin-bottom: 10px;
}
.hc-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #FFFFFF;
}
.hc-hero-lead {
  font-size: 1.04rem;
  line-height: 1.6;
  color: #D7E1EE;
  margin: 0 0 22px;
  max-width: 56ch;
}
.hc-hero-photo { position: relative; min-height: 300px; background: #0D1B2A; overflow: hidden; }
.hc-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Page-Type Header 2: Tool Press Ribbon (Compact, Controls Immediate Above Fold) */
.hc-tool-ribbon {
  background: var(--surface);
  border-bottom: 2px solid var(--rule-strong);
  padding-block: 18px 20px;
}
.hc-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.hc-breadcrumb a { color: var(--primary); text-decoration: none; }
.hc-breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.hc-tool-ribbon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 24px;
}
.hc-tool-ribbon h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  margin: 0 0 6px;
}
.hc-tool-ribbon p {
  margin: 0;
  color: var(--muted);
  max-width: 66ch;
  font-size: 0.96rem;
}
.hc-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hc-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
}

/* Page-Type Header 3: Hub Drafting Header */
.hc-hub-header {
  background: var(--surface);
  border-bottom: 2px solid var(--rule-strong);
  padding-block: 28px;
}
.hc-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  align-items: center;
}
.hc-hub-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.14;
  margin: 4px 0 12px;
}
.hc-hub-header p { margin: 0 0 18px; color: var(--muted); max-width: 62ch; }
.hc-hub-photo { border: 2px solid var(--rule-strong); aspect-ratio: 16 / 10; overflow: hidden; }
.hc-hub-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Page-Type Header 4: Editorial Monograph (Guides) */
.hc-monograph-head {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding-block: 28px 24px;
}
.hc-monograph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: center;
}
.hc-monograph-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.9vw, 2.4rem);
  line-height: 1.14;
  margin: 6px 0 12px;
}
.hc-monograph-lead { color: var(--muted); font-size: 1.04rem; line-height: 1.6; margin: 0; max-width: 62ch; }
.hc-monograph-plate {
  border: 1.5px solid var(--rule-strong);
  padding: 6px;
  background: var(--surface);
}
.hc-monograph-plate img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* Page-Type Header 5: Stationery Press Books Banner */
.hc-books-header {
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  padding-block: 30px;
}
.hc-books-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin: 6px 0 10px;
}
.hc-books-header p { color: var(--muted); max-width: 68ch; margin: 0; }

/* Main Section */
.hc-section { padding-block: 30px 44px; }

/* 2-Column Drafting Bench Studio */
.studio-shell {
  background: var(--surface);
  border: 2px solid var(--rule-strong);
  padding: clamp(16px, 2.8vw, 26px);
  margin-bottom: 34px;
  box-shadow: 5px 5px 0 rgba(18, 38, 58, 0.08);
}
.studio-atelier-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.atelier-spec-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}
.ctrl-btn {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 3px;
  padding: 8px 14px;
  min-height: var(--touch-min);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--border);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.ctrl-btn:hover { transform: translateY(-1px); border-color: var(--primary); color: var(--primary); box-shadow: 0 3px 0 var(--border); }
.ctrl-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 0 #0A2552;
}
.ctrl-btn:active { transform: translateY(1px); box-shadow: 0 0 0 var(--border); }
html[data-theme="night"] .ctrl-btn:hover { color: var(--primary); }
html[data-theme="night"] .ctrl-btn[aria-pressed="true"] {
  background: var(--primary);
  color: #081220;
  border-color: var(--primary);
}

.hc-bench-grid {
  display: grid;
  grid-template-columns: minmax(270px, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.hc-bench-rail {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 16px;
}
.hc-bench-rail h2 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin: 0 0 12px;
  line-height: 1.25;
}
.studio-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 0.84rem; font-weight: 700; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--touch-min);
  padding: 9px 11px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 2px;
}
.field select { text-overflow: ellipsis; padding-right: 26px; }
.hc-bench-stage { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.preview-stage {
  --text: #0D1B2A;
  --muted: #334155;
  --primary: #1B4988;
  --accent: #B42318;
  background: #FFFFFF;
  color: #0D1B2A;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 2px;
  padding: 14px;
  overflow-x: auto;
}

html[data-studio-focus="true"] .hc-masthead,
html[data-studio-focus="true"] .hc-utility-bar,
html[data-studio-focus="true"] .hc-hero-plate,
html[data-studio-focus="true"] .hc-tool-ribbon,
html[data-studio-focus="true"] .hc-hub-header,
html[data-studio-focus="true"] .hc-monograph-head,
html[data-studio-focus="true"] .hc-books-header,
html[data-studio-focus="true"] .hc-specimen-head,
html[data-studio-focus="true"] .hc-specimen-grid,
html[data-studio-focus="true"] .hc-reading-split,
html[data-studio-focus="true"] .hc-syllabus,
html[data-studio-focus="true"] .hc-footer,
body.atelier-focus-on .hc-masthead,
body.atelier-focus-on .hc-utility-bar,
body.atelier-focus-on .hc-hero-plate,
body.atelier-focus-on .hc-tool-ribbon,
body.atelier-focus-on .hc-reading-split,
body.atelier-focus-on .hc-syllabus,
body.atelier-focus-on .hc-footer { display: none; }

/* Specimen Photo Directory */
.hc-specimen-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 2px solid var(--rule-strong);
  padding-bottom: 10px;
  margin: 34px 0 20px;
}
.hc-specimen-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  margin: 0;
}
.hc-specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}
.hc-specimen-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hc-specimen-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}
.hc-specimen-item:hover { transform: translateY(-3px); border-top-color: var(--accent); box-shadow: 0 10px 22px rgba(12, 31, 56, 0.10); }
.hc-specimen-photo { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); }
.hc-specimen-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s cubic-bezier(0.2, 0, 0, 1); }
.hc-specimen-item:hover .hc-specimen-photo img { transform: scale(1.04); }
.hc-specimen-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.hc-num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--accent); }
.hc-specimen-body h3 { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.28; margin: 0; color: var(--text); }

/* Sidebar-Anchored 2-Column Editorial Split (Replaces Lower-Half Cloned Stack) */
.hc-reading-split {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-block: 30px;
  padding-top: 24px;
  border-top: 2px solid var(--rule-strong);
}
.hc-margin-rail {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hc-toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rule-strong);
  padding: 16px 18px;
}
.hc-toc-box h2 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--accent);
}
.hc-toc-box ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.hc-toc-box a { text-decoration: none; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.hc-toc-box a:hover { color: var(--accent); text-decoration: underline; }

.hc-note-band {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  padding: 15px 18px;
  font-size: 0.94rem;
}

.hc-main-prose { min-width: 0; }
.hc-prose-block {
  max-width: 72ch;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.hc-prose-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.hc-prose-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.68rem);
  margin: 0 0 10px;
  line-height: 1.22;
}

.data-table-wrap { overflow-x: auto; margin-block: 20px; border: 1px solid var(--rule-strong); }
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th {
  background: var(--plate-bg);
  color: #FFFFFF;
  text-align: left;
  padding: 11px 14px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }

/* Diagrams */
.diagram-figure { width: 100%; background: var(--surface); border: 1px solid var(--border); padding: 14px; margin: 0 0 24px; }
.diagram-mobile-stack { display: none; gap: 10px; margin-top: 8px; }
.diagram-step { width: 100%; background: var(--surface-alt); padding: 12px; border-left: 3px solid var(--primary); }

/* Horizontal Stationery Catalog Rows (/books/) */
.hc-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-block: 10px 30px;
}
.hc-catalog-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  background: var(--surface);
  border: 1.5px solid var(--rule-strong);
  padding: 22px;
  align-items: center;
}
.hc-catalog-cover { border: 1px solid var(--border); background: var(--surface-alt); }
.hc-catalog-cover img { width: 100%; height: auto; }
.hc-catalog-meta h2 { font-family: var(--font-display); font-size: 1.48rem; margin: 6px 0 8px; }
.hc-catalog-sub { color: var(--muted); margin: 0 0 12px; font-size: 1.02rem; }
.hc-catalog-specs {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  background: var(--surface-alt);
  padding: 10px 14px;
  border-left: 3px solid var(--primary);
  margin-bottom: 16px;
}

/* Archival Legal Sheet */
.hc-legal-sheet {
  max-width: 74ch;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rule-strong);
  padding: clamp(24px, 4vw, 42px);
}
.hc-legal-sheet h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 2.8vw, 2.25rem); margin: 8px 0 10px; }

/* Single-Column Ruled Syllabus Continuation Index (Replaces Cloned 6-Box Band) */
.hc-syllabus {
  background: var(--surface-alt);
  border-top: 2px solid var(--rule-strong);
  padding-block: 34px;
}
.hc-syllabus-list {
  border-top: 1.5px solid var(--rule-strong);
  margin-top: 14px;
}
.hc-syllabus-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 36px;
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  min-height: var(--touch-min);
}
.hc-syllabus-row:hover { background: var(--surface); color: var(--accent); }
.hc-syllabus-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}
.hc-syllabus-title { font-weight: 700; font-size: 1rem; }
.hc-syllabus-arrow { font-family: var(--font-mono); font-weight: 700; text-align: right; color: var(--primary); transition: transform 0.16s ease; }
.hc-syllabus-row:hover .hc-syllabus-arrow { transform: translateX(5px); color: var(--accent); }

/* SEO & Robustness Components: Freshness Stamp, Quick-Spec DL, Cite/CSV Bar, Concise Q&A */
.hc-freshness-line {
  font-family: var(--font-mono);
  font-size: 0.79rem;
  color: var(--muted);
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hc-quick-spec {
  background: var(--surface);
  border: 1.5px solid var(--rule-strong);
  border-left: 5px solid var(--primary);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.hc-quick-spec h2 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 12px;
}
.hc-quick-dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px 18px;
  margin: 0;
}
.hc-quick-dl div { background: var(--surface-alt); padding: 9px 12px; border: 1px solid var(--border); }
.hc-quick-dl dt { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hc-quick-dl dd { margin: 3px 0 0; font-size: 0.92rem; font-weight: 700; color: var(--text); }

.hc-qa-block {
  margin-block: 26px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
}
.hc-qa-block h2 { font-family: var(--font-display); font-size: 1.28rem; margin: 0 0 12px; }
.hc-qa-item { border-top: 1px solid var(--border); padding-block: 10px; }
.hc-qa-item:first-of-type { border-top: none; padding-top: 0; }
.hc-qa-item summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
}
.hc-qa-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; color: var(--primary); }
.hc-qa-item[open] summary::after { content: "−"; color: var(--accent); }
.hc-qa-item p { margin: 6px 0 4px; color: var(--muted); font-size: 0.95rem; }

.hc-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: var(--plate-bg);
  color: #FFFFFF;
  border-left: 4px solid var(--accent);
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hc-toast.is-open { opacity: 1; transform: translateY(0); }

/* Footer */
.hc-footer {
  background: var(--plate-bg);
  color: var(--plate-ink);
  padding-block: 42px;
  border-top: 4px solid var(--accent);
}
.hc-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.hc-footer h3 { font-family: var(--font-display); color: #FFFFFF; margin-top: 0; }
.hc-footer a { color: #B9D4F8; }
.hc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hc-footer li a { display: inline-flex; align-items: center; min-height: 44px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

@media print {
  :root, html, html[data-theme="night"] {
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #F8FAFC;
    --text: #0D1B2A;
    --muted: #334155;
    --primary: #1B4988;
    --accent: #9E2A1C;
    --gold: #7C4D0B;
    --border: #CBD5E1;
    --rule-strong: #0D1B2A;
    --plate-bg: #FFFFFF;
    --plate-ink: #0D1B2A;
  }
  .hc-utility-bar, .hc-masthead, .hc-syllabus, .hc-footer, .btn-row, .studio-atelier-bar, .skip-link, .hc-toast { display: none !important; }
  body { background: #FFFFFF !important; color: #0D1B2A !important; }
  .hc-hero-plate, .hc-hero-copy { background: #FFFFFF !important; color: #0D1B2A !important; border: none !important; }
  .hc-hero-copy h1, .hc-hero-lead, .hc-spec-stamp { color: #111827 !important; }
  .hc-specimen-item, .hc-catalog-row, .hc-note-band, .data-table, .diagram-figure { background: #FFFFFF !important; color: #0D1B2A !important; }
  .data-table th { background: #F1F5F9 !important; color: #000000 !important; border-bottom: 2px solid #0D1B2A !important; }
}

/* Printable PDF Packs Grid & Companion Strip (MC-07) */
.hc-printables-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-block: 14px 36px;
}
.hc-printable-card {
  background: var(--surface);
  border: 1.5px solid var(--rule-strong);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  gap: 14px;
}
.hc-printable-thumb {
  border: 1px solid var(--border);
  background: #FFFFFF;
  overflow: hidden;
  aspect-ratio: 1200 / 1553;
}
.hc-printable-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hc-printable-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hc-printable-body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}
.hc-printable-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
.hc-pack-companion, .hc-hub-printables-banner {
  background: var(--surface-alt);
  border: 1.5px solid var(--rule-strong);
  border-left: 5px solid var(--accent);
  padding: 18px 22px;
  margin-block: 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hc-pack-companion h2, .hc-hub-printables-banner h2 {
  font-family: var(--font-display);
  font-size: 1.26rem;
  margin: 0;
}
.hc-pack-companion p, .hc-hub-printables-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.hc-pack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Christmas 2026 Featured 12-Page Workbook Showcase */
.hc-christmas-feature {
  background: var(--surface);
  border: 2px solid var(--rule-strong);
  border-top: 5px solid #9E2A1C;
  padding: clamp(20px, 3vw, 28px);
  margin-block: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 26px;
  align-items: center;
}
.hc-christmas-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  margin: 6px 0 10px;
  color: var(--text);
}
.hc-christmas-copy p {
  margin: 0 0 14px;
  color: var(--muted);
}
.hc-christmas-specs {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--surface-alt);
  border-left: 3px solid #16533A;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.hc-christmas-previews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hc-christmas-preview-card {
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hc-christmas-preview-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 1553;
  object-fit: cover;
  border: 1px solid var(--border);
}
.hc-christmas-preview-card span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

@media (max-width: 960px) {
  .hc-hero-grid, .hc-hub-grid, .hc-monograph-grid, .hc-bench-grid, .hc-reading-split, .hc-specimen-grid, .hc-specimen-grid.cols-2, .hc-printables-grid, .hc-catalog-row, .hc-footer-grid, .hc-christmas-feature {
    grid-template-columns: 1fr;
  }
  .hc-margin-rail { position: static; }
  .hc-catalog-cover { max-width: 240px; }
}
@media (max-width: 680px) {
  .hc-syllabus-row { grid-template-columns: 1fr 24px; gap: 4px 10px; }
  .hc-syllabus-tag { grid-column: 1 / -1; }
  .diagram-figure { padding: 10px; }
  .diagram-figure > img { display: none; }
  .diagram-mobile-stack { display: grid; }
  .data-table thead { display: none; }
  .data-table tr { display: block; border-bottom: 2px solid var(--border); padding: 10px; }
  .data-table td { display: block; border: none; padding: 4px 0; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--primary); }
}
