/* Huxberry brand guidelines website. Values come from /tokens/huxberry-tokens.css, which is loaded first. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #FFFFFF; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--hux-white);
  color: var(--hux-body);
  font-family: var(--hux-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--hux-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hux-forest-ink); }
:focus-visible { outline: 2px solid var(--hux-sage); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--hux-forest-ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 16px; }
::selection { background: var(--hux-pale-sage); }

h1, h2, h3, h4 { color: var(--hux-text); font-weight: 400; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--hux-text-page-title); line-height: var(--hux-leading-page-title); letter-spacing: var(--hux-tracking-page-title); }
h2 { font-size: var(--hux-text-section-heading); line-height: var(--hux-leading-section-heading); letter-spacing: var(--hux-tracking-section-heading); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: 17px; line-height: 1.4; font-weight: 500; letter-spacing: 0; }
.display { font-size: var(--hux-text-hero); line-height: var(--hux-leading-hero); letter-spacing: var(--hux-tracking-hero); }
p { margin: 0 0 1em; }
.intro { font-size: var(--hux-text-intro); max-width: 62ch; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--hux-moss); }
.eyebrow {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hux-eyebrow); margin: 0 0 12px; line-height: 1.6;
}
.eyebrow-on-dark { color: var(--hux-pale-green); }
strong { font-weight: 500; color: var(--hux-forest-ink); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { font-size: .92em; background: var(--hux-sand); padding: 2px 6px; border-radius: 6px; color: var(--hux-forest-ink); }
pre { background: var(--hux-sand); border-radius: var(--hux-radius-panel); padding: 20px 24px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; margin: 0 0 1.5em; }
pre code { background: none; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--hux-border); margin: 40px 0; }
ul, ol { padding-left: 22px; margin: 0 0 1em; }
li { margin: 0 0 .35em; }
.u { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { max-width: calc(var(--hux-column) + 2 * var(--hux-gutter)); margin: 0 auto; padding: 0 var(--hux-gutter); }
.wrap.narrow { max-width: 820px; }
.band { padding: var(--hux-section) 0; }
.band-white { background: var(--hux-white); }
.band-sand { background: var(--hux-sand); }
.page-head-band { padding-bottom: calc(var(--hux-section) * .75); }
.page-head-band h1 { max-width: 20ch; }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.h-section { margin: 56px 0 20px; }
.h-section:first-child { margin-top: 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 720px) {
  .wrap { padding: 0 var(--hux-gutter-phone); }
  .band { padding: var(--hux-section-phone) 0; }
  .two-up { grid-template-columns: 1fr; }
}

/* ---------- Panels, buttons, badges ---------- */
.panel { border-radius: var(--hux-radius-panel); padding: 32px; }
.panel h2 { font-size: 28px; }
.panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel-sand { background: var(--hux-sand); }
.panel-palesage { background: var(--hux-pale-sage); }
.panel-green { background: var(--hux-deep-green); color: var(--hux-white); }
.panel-green h2, .panel-green h3, .panel-green strong { color: var(--hux-white); }
.panel-green a:not(.btn) { color: var(--hux-white); }
@media (max-width: 720px) { .panel { padding: 24px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--hux-radius-pill);
  background: var(--hux-button); color: var(--hux-white); font-weight: 500; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--hux-duration) var(--hux-easing), color var(--hux-duration) var(--hux-easing);
}
.btn:hover { background: var(--hux-button-hover); color: var(--hux-white); }
.btn-secondary { background: var(--hux-white); color: var(--hux-forest-ink); border-color: var(--hux-hairline); }
.btn-secondary:hover { background: var(--hux-pale-sage); color: var(--hux-forest-ink); border-color: var(--hux-pale-sage); }
.btn-on-dark { background: var(--hux-white); color: var(--hux-forest-ink); }
.btn-on-dark:hover { background: var(--hux-pale-sage); color: var(--hux-forest-ink); }
.badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--hux-sage); color: #fff; font-size: 14px; font-weight: 500; line-height: 1; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--hux-white); border-bottom: 1px solid var(--hux-border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--hux-slate-green); }
.brand img { width: 140px; height: auto; }
.brand-tag { font-size: 15px; font-weight: 500; padding-left: 14px; border-left: 1px solid var(--hux-border); line-height: 1.2; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.site-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.3;
  color: var(--hux-forest-ink); text-decoration: none; white-space: nowrap;
  transition: background-color var(--hux-duration) var(--hux-easing);
}
.site-nav a:hover { background: var(--hux-sand); }
.site-nav a[aria-current="page"] { background: var(--hux-pale-sage); color: var(--hux-deep-green); }
.menu-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px;
  border: 1px solid var(--hux-hairline); background: var(--hux-white); color: var(--hux-forest-ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
}
.menu-toggle-bars { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 2px solid currentColor; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--hux-white); border-bottom: 1px solid var(--hux-border); flex-direction: column; align-items: stretch; padding: 12px var(--hux-gutter) 20px; gap: 4px; }
  .site-nav a { padding: 12px 16px; font-size: 16px; }
  body.nav-open .site-nav { display: flex; }
}
@media (max-width: 720px) {
  .brand img { width: 118px; }
  .brand-tag { display: none; }
  .site-nav { padding-left: var(--hux-gutter-phone); padding-right: var(--hux-gutter-phone); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hux-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 130px; margin-bottom: 20px; }
.footer-brand p { max-width: 36ch; }
.footer-heading { font-size: 15px; font-weight: 500; margin: 0 0 14px; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: var(--hux-slate-green); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--hux-forest-ink); text-decoration: underline; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hux-border); color: var(--hux-slate-green); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Home ---------- */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 14ch; margin-bottom: 20px; }
.hero-copy .intro { margin-bottom: 8px; }
.hero-photo { margin: 0; border-radius: var(--hux-radius-panel); overflow: hidden; aspect-ratio: 4 / 3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { max-width: none; }
}

.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.glance {
  display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--hux-radius-panel);
  background: var(--hux-sand); color: var(--hux-slate-green); text-decoration: none; position: relative; min-height: 260px;
  transition: transform var(--hux-duration) var(--hux-easing);
}
a.glance:hover { color: var(--hux-slate-green); }
a.glance:hover h3 { color: var(--hux-deep-green); }
.glance h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hux-sage); font-size: 14px; }
.glance p { margin: 0; }
.glance-big { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; color: var(--hux-forest-ink); }
.glance-link { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 500; color: var(--hux-deep-green); }
.glance-link::after { content: " →"; }
.glance-idea { background: var(--hux-white); border: 1px solid var(--hux-hairline); }
.glance-logo { background: var(--hux-sand); }
.glance-palette { background: var(--hux-white); border: 1px solid var(--hux-hairline); }
.glance-logo-stage { padding: 28px 8px; display: flex; align-items: center; justify-content: center; }
.glance-logo-stage img { width: 78%; }
.glance-type { background: var(--hux-pale-sage); }
.glance-rules { background: var(--hux-sand); }
.glance-photo { padding: 0; overflow: hidden; background: var(--hux-forest-ink); }
.glance-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.glance-photo-caption { position: relative; margin-top: auto; padding: 28px; background: linear-gradient(to top, rgb(var(--hux-forest-ink-rgb) / .72), rgb(var(--hux-forest-ink-rgb) / 0)); color: #fff; padding-top: 72px; }
.glance-photo-caption h3 { color: var(--hux-pale-green); }
.glance-photo-caption p { color: #fff; font-size: 20px; letter-spacing: -0.01em; }
.proportion { display: flex; gap: 4px; height: 14px; margin: 8px 0 4px; }
.proportion span { border-radius: 999px; display: block; border: 1px solid var(--hux-hairline); }
.palette-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 6px 0 8px; }
.palette-strip span { display: block; aspect-ratio: 1; border-radius: 8px; border: 1px solid rgb(var(--hux-forest-ink-rgb) / .08); }
.specimen-line { font-size: 26px; line-height: 1.2; color: var(--hux-forest-ink); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 6px !important; }
.w400 { font-weight: 400; } .w500 { font-weight: 500; } .w700 { font-weight: 700; }
.rule-list { margin: 4px 0 0; padding-left: 0; list-style: none; }
.rule-list li { padding: 10px 0; border-top: 1px solid var(--hux-hairline); margin: 0; font-size: 15px; line-height: 1.5; }
.rule-list li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 1000px) { .glance-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .glance-grid { grid-template-columns: 1fr; } .glance { min-height: 0; } .glance-photo { min-height: 260px; } }

.chapter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.chapter-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 176px; border-radius: var(--hux-radius-panel);
  background: var(--hux-white); text-decoration: none; color: var(--hux-slate-green);
  transition: background-color var(--hux-duration) var(--hux-easing);
}
.chapter-card:hover { background: var(--hux-pale-sage); color: var(--hux-slate-green); }
.chapter-num { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--hux-sage); }
.chapter-title { font-size: 20px; font-weight: 500; color: var(--hux-forest-ink); line-height: 1.25; letter-spacing: -0.01em; }
.chapter-summary { font-size: 15px; line-height: 1.5; }
@media (max-width: 1000px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chapter-grid { grid-template-columns: 1fr; } .chapter-card { min-height: 0; } }

/* ---------- Guidelines index ---------- */
.chapter-index { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.chapter-row { display: grid; grid-template-columns: 56px 1fr 32px; gap: 20px; align-items: center; padding: 24px 28px; border-radius: var(--hux-radius-panel); background: var(--hux-white); text-decoration: none; color: var(--hux-slate-green); }
.chapter-row:hover { background: var(--hux-pale-sage); color: var(--hux-slate-green); }
.chapter-row .chapter-num { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; color: var(--hux-sage); }
.chapter-row-body { display: flex; flex-direction: column; gap: 4px; }
.chapter-row-arrow { color: var(--hux-deep-green); font-size: 22px; text-align: right; }
@media (max-width: 600px) { .chapter-row { grid-template-columns: 40px 1fr; padding: 20px; } .chapter-row-arrow { display: none; } }

/* ---------- Chapter pages ---------- */
.doc-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr) 208px; gap: 56px; padding-top: 48px; padding-bottom: var(--hux-section); }
.doc { max-width: 780px; min-width: 0; }
.doc-side { font-size: 15px; }
.doc-chapters, .doc-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.side-title { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hux-sage); margin: 0 0 12px; cursor: default; list-style: none; }
.side-title::-webkit-details-marker { display: none; }
.chapter-list, .toc-list { list-style: none; padding: 0; margin: 0; }
.chapter-list li, .toc-list li { margin: 0; }
.chapter-list a, .toc-list a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--hux-slate-green); text-decoration: none; line-height: 1.35; }
.chapter-list a:hover, .toc-list a:hover { background: var(--hux-sand); color: var(--hux-forest-ink); }
.chapter-list a[aria-current="page"] { background: var(--hux-pale-sage); color: var(--hux-deep-green); font-weight: 500; }
.chapter-list .num { display: inline-block; width: 26px; font-weight: 500; color: var(--hux-sage); }
.chapter-list a[aria-current="page"] .num { color: var(--hux-deep-green); }
.toc-list a { padding: 6px 12px; }
.doc-head { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--hux-border); }
.doc-head h1 { margin-bottom: 12px; }
.doc-meta { margin: 0; color: var(--hux-slate-green); display: flex; gap: 10px; }
.toc-inline { display: none; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--hux-border); }
.pager-link { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--hux-radius-panel); background: var(--hux-sand); text-decoration: none; color: var(--hux-slate-green); }
.pager-link:hover { background: var(--hux-pale-sage); }
.pager-link.next { text-align: right; }
.pager-title { font-size: 18px; font-weight: 500; color: var(--hux-forest-ink); }
.pager-link.prev .pager-title::before { content: "← "; }
.pager-link.next .pager-title::after { content: " →"; }
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .doc { max-width: none; }
  .doc-toc { display: none; }
  .doc-chapters { position: static; max-height: none; overflow: visible; }
  .side-details { border: 1px solid var(--hux-hairline); border-radius: var(--hux-radius-panel); padding: 14px 18px; }
  .side-details:not([open]) { padding-bottom: 14px; }
  .side-title { cursor: pointer; margin: 0; }
  .side-details[open] .side-title { margin-bottom: 10px; }
  .side-title::after { content: "+"; float: right; font-weight: 400; font-size: 18px; line-height: 1; }
  .side-details[open] .side-title::after { content: "−"; }
  .toc-inline { display: block; margin: 0 0 28px; padding: 14px 18px; border-radius: var(--hux-radius-panel); background: var(--hux-sand); }
  .toc-inline summary { font-weight: 500; color: var(--hux-forest-ink); cursor: pointer; }
  .toc-inline ol { margin: 10px 0 0; padding-left: 20px; }
  .toc-inline a { color: var(--hux-slate-green); }
}
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager-link.next { text-align: left; } }

/* ---------- Prose (rendered Markdown) ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 16px; font-size: 28px; }
.prose h3 { margin: 32px 0 12px; }
.prose h4 { margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 24px 0; padding: 20px 28px; background: var(--hux-pale-sage); border-radius: var(--hux-radius-panel); color: var(--hux-forest-ink); font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
.prose blockquote p { margin: 0; }
.prose blockquote strong { font-weight: 500; }
.prose img:not(.swatch) { border-radius: var(--hux-radius-panel); margin: 8px 0 24px; }
.prose img.swatch { width: 40px; height: 24px; border-radius: 6px; display: inline-block; vertical-align: middle; }
.prose td:has(> img.swatch) { width: 48px; padding-right: 0; }
.table-wrap { margin: 0 0 1.5em; border: 1px solid var(--hux-border); border-radius: var(--hux-radius-panel); overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--hux-border); }
thead th { border-top: 0; font-weight: 500; color: var(--hux-forest-ink); background: var(--hux-sand); }
tbody th { font-weight: 500; color: var(--hux-forest-ink); }
tr:first-child > td { border-top: 0; }
td code { white-space: nowrap; }
@media (max-width: 720px) { td code, .prose code { white-space: normal; overflow-wrap: anywhere; } td { overflow-wrap: anywhere; } }
table.wide td, table.wide th { white-space: nowrap; }
.nowrap { white-space: nowrap; }
@media (max-width: 720px) { table { font-size: 14px; } th, td { padding: 10px 12px; } }
/* Phones: each row of a chapter table becomes a card, with the column heading as a label */
@media screen and (max-width: 720px) {
  .prose .table-wrap:has(> table.stack) { border: 0; border-radius: 0; overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border: 1px solid var(--hux-hairline); border-radius: 12px; padding: 8px 16px; margin: 0 0 10px; background: var(--hux-white); }
  table.stack td { border: 0; padding: 8px 0; }
  table.stack td + td { border-top: 1px solid var(--hux-hairline); }
  table.stack td:empty { display: none; }
  table.stack td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 500; color: var(--hux-moss); margin-bottom: 2px; }
  table.stack td:has(> img.swatch) { padding: 8px 0 0; width: auto; }
  table.stack td:has(> img.swatch) + td { border-top: 0; padding-top: 4px; }
}
.task { list-style: none; position: relative; padding-left: 32px; margin-left: -22px; }
.tick { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--hux-sage); }
.task.done .tick { background: var(--hux-sage); }
.task.done .tick::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Colours ---------- */
.colour-group { margin-bottom: 56px; }
.colour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.colour-card { border: 1px solid var(--hux-border); border-radius: var(--hux-radius-panel); overflow: hidden; background: var(--hux-white); display: flex; flex-direction: column; }
.colour-chip { height: 124px; display: flex; align-items: flex-end; padding: 16px 20px; border-radius: 15px 15px 0 0; }
.colour-chip-name { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--hux-forest-ink); }
.is-dark .colour-chip-name { color: var(--hux-white); }
.colour-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.colour-role { margin: 0; font-size: 15px; line-height: 1.45; flex: 1; }
.colour-values { margin: 0; display: grid; gap: 6px; }
.colour-values div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 8px; }
.colour-values dt { font-size: 14px; color: var(--hux-moss); }
.colour-values dd { margin: 0; font-size: 14px; }
.copy {
  font: inherit; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--hux-forest-ink);
  background: var(--hux-sand); border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer; line-height: 1.2; position: relative; text-align: left;
  transition: background-color var(--hux-duration) var(--hux-easing);
}
.copy:hover { background: var(--hux-pale-sage); }
.copy.copied { background: var(--hux-sage); color: #fff; }
.copy.copied::after { content: "Copied"; margin-left: 8px; font-weight: 400; }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; margin: 0 0 32px; }
.pair { border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-height: 108px; }
.pair-sample { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.pair-label { font-size: 14px; line-height: 1.3; margin-top: auto; }
.pair-ratio { font-size: 14px; font-weight: 500; opacity: .85; }
.matrix th, .matrix td { text-align: center; white-space: nowrap; }
.matrix tbody th { text-align: left; }
.matrix thead th { text-align: center; }
.matrix thead th:first-child { text-align: left; }
.matrix-chip { display: inline-block; width: 12px; height: 12px; border-radius: 999px; margin-right: 6px; vertical-align: -1px; border: 1px solid rgb(var(--hux-forest-ink-rgb) / .12); }
.matrix .grade-pass { background: var(--hux-pale-sage); color: var(--hux-forest-ink); font-weight: 500; }
.matrix .grade-large { background: var(--hux-sand); color: var(--hux-forest-ink); }
.matrix .grade-fail { color: var(--hux-moss); text-decoration: line-through; }
.matrix .grade-same { color: var(--hux-hairline); }

/* ---------- Type ---------- */
.specimen-hero { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; margin-bottom: 24px; }
.specimen-glyphs { font-size: clamp(120px, 18vw, 220px); line-height: .9; letter-spacing: -0.04em; color: var(--hux-forest-ink); margin: 0; }
.specimen-family { font-size: 32px; color: var(--hux-forest-ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.weights { display: grid; gap: 0; border-top: 1px solid var(--hux-border); margin-bottom: 40px; }
.weight-card { padding: 24px 0; border-bottom: 1px solid var(--hux-border); }
.weight-sample { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.02em; color: var(--hux-forest-ink); margin: 0 0 8px; }
.weight-alpha { font-size: 18px; color: var(--hux-slate-green); margin: 0 0 8px; word-break: break-word; }
.scale-list { border-top: 1px solid var(--hux-border); }
.scale-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--hux-border); align-items: center; }
.scale-spec { color: var(--hux-slate-green); }
.scale-spec strong { display: block; font-size: 16px; margin-bottom: 4px; }
.scale-sample p { margin: 0; }
.sample-hero, .sample-page-title, .sample-section-heading { text-wrap: balance; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dos ul { margin: 0; padding-left: 20px; }
@media (max-width: 800px) {
  .specimen-hero { grid-template-columns: 1fr; gap: 16px; }
  .scale-row { grid-template-columns: 1fr; gap: 12px; }
  .dos { grid-template-columns: 1fr; }
}

/* ---------- Logo ---------- */
.logo-section { margin-bottom: 56px; }
.logo-stage-primary { display: flex; align-items: center; justify-content: center; padding: 72px 40px; border: 1px solid var(--hux-border); border-radius: var(--hux-radius-panel); margin-bottom: 20px; }
.logo-stage-primary img { width: min(100%, 720px); }
.ground-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ground { margin: 0; border-radius: var(--hux-radius-panel); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; position: relative; padding: 24px; overflow: hidden; }
.ground img { width: 66%; position: relative; }
.ground figcaption { position: absolute; left: 18px; bottom: 14px; font-size: 14px; color: var(--hux-forest-ink); }
.ground.is-dark figcaption { color: var(--hux-white); }
.ground-photo { background-size: cover; background-position: center; }
.ground-scrim::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(var(--hux-forest-ink-rgb) / .6), rgb(var(--hux-forest-ink-rgb) / .25)); }
.hmarks { display: flex; gap: 20px; align-items: center; justify-content: center; position: relative; }
.hmarks img { height: 46px; width: auto; }
.hmark-dark { display: inline-flex; padding: 10px 12px; border-radius: 10px; }
.clearspace { margin: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.clearspace-frame { container-type: inline-size; width: min(100%, 560px); padding: 1.751cqw; outline: 1px dashed var(--hux-sage); outline-offset: 0; position: relative; }
.clearspace-frame .cs-edge { display: none; }
.clearspace-frame img { width: 100%; }
.clearspace figcaption { font-size: 14px; text-align: center; max-width: 42ch; }
.dont-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.dont { margin: 0; }
.dont-stage { height: 120px; border-radius: 12px; background: var(--hux-sand); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.dont-stage img { width: 64%; }
.dont-stage::after { content: "✕"; position: absolute; top: 8px; right: 12px; color: var(--hux-slate-green); font-size: 16px; }
.dont-stage-photo { background-image: var(--photo); background-size: cover; background-position: 50% 30%; }
.dont figcaption { font-size: 14px; margin-top: 8px; color: var(--hux-slate-green); }
.file-preview { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 10px; }
.file-preview img { display: block; }
.file-preview img.mark { height: 32px; width: auto; }
.file-preview img.word { width: 160px; height: auto; }
.files td { vertical-align: middle; }
.legacy { margin-top: 24px; }
.legacy summary { cursor: pointer; color: var(--hux-slate-green); }
.legacy ul { margin-top: 12px; }

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
.download-card { display: flex; flex-direction: column; border: 1px solid var(--hux-border); border-radius: var(--hux-radius-panel); overflow: hidden; text-decoration: none; color: var(--hux-slate-green); background: var(--hux-white); transition: background-color var(--hux-duration) var(--hux-easing); }
.download-card:hover { background: var(--hux-sand); color: var(--hux-slate-green); }
.download-card:hover .download-title { color: var(--hux-deep-green); }
.download-preview { height: 112px; display: flex; align-items: center; justify-content: center; border-radius: 15px 15px 0 0; }
.download-glyph { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: inherit; }
.download-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.download-title { font-size: 18px; font-weight: 500; color: var(--hux-forest-ink); }
.download-meta { font-size: 15px; line-height: 1.45; }
.file-list { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; column-gap: 40px; }
.file-list li { margin: 0 0 8px; break-inside: avoid; }
.file-list .small { color: var(--hux-moss); margin-left: 6px; }
.swatch-files { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch-files a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--hux-border); border-radius: 999px; text-decoration: none; color: var(--hux-forest-ink); font-size: 14px; }
.swatch-files a span { width: 22px; height: 22px; border-radius: 999px; display: block; }
.swatch-files a:hover { background: var(--hux-sand); }
@media (max-width: 640px) { .file-list { columns: 1; } }
