/* Layout and components for the web edition. Colors and type come from tokens.css. */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--cc-phantom); background: var(--cc-cloud); line-height: 1.5; font-size: var(--text-p2); -webkit-font-smoothing: antialiased; }
a { color: var(--cc-dark-green); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--cc-brand-green); outline-offset: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--cc-dark-green); color: var(--cc-white); padding: 28px 22px 40px; }
.sidebar .brand { display: block; margin-bottom: 22px; }
.sidebar .brand img { height: 40px; width: auto; }
.sidebar .search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--cc-white); font: inherit; font-size: 14px; margin-bottom: 18px; }
.sidebar .search::placeholder { color: var(--cc-steel); }
.toc { list-style: none; }
.toc > li { margin: 2px 0; }
.toc a { display: block; text-decoration: none; color: var(--cc-smoke); padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.toc a:hover, .toc a.active { background: rgba(255,255,255,.08); color: var(--cc-white); }
.toc .ch > a { color: var(--cc-white); font-weight: 700; margin-top: 10px; }
.toc .num { color: var(--cc-brand-green); font-weight: 700; margin-right: 8px; font-size: 12px; }
.toc ul { list-style: none; padding-left: 14px; }
.sidebar .meta { margin-top: 26px; font-size: 12px; color: var(--cc-steel); }
.menu-btn { display: none; }

main { padding: 32px 40px 80px; min-width: 0; }
.status-bar { max-width: 1180px; margin: 0 auto 20px; background: var(--cc-white); border: 1px solid var(--cc-smoke); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--cc-arsenic); }
.status-bar strong { color: var(--cc-dark-green); }

/* Pages: each one is a 16:9 sheet on screen and one PDF page in print */
.page { position: relative; max-width: 1180px; margin: 0 auto 28px; background: var(--cc-white); border-radius: 20px; padding: 48px 52px 72px; aspect-ratio: 16 / 9; min-height: auto; display: grid; grid-template-columns: minmax(220px, 30%) 1fr; gap: 40px; scroll-margin-top: 20px; }
.page.full { grid-template-columns: 1fr; }
.page .side { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; }
.page .body { min-width: 0; }
.page h2 { font-size: 40px; line-height: 1.1; font-weight: 600; color: var(--cc-phantom); letter-spacing: -0.01em; }
.page h3 { font-size: 15px; font-weight: 700; color: var(--cc-dark-green); margin-bottom: 6px; }
.page p, .page li { color: var(--cc-arsenic); font-size: 15px; }
.page .lede { font-size: 15px; color: var(--cc-arsenic); max-width: 46ch; }
.page .lede + .lede { margin-top: 10px; }
.page-foot { position: absolute; left: 52px; right: 52px; bottom: 22px; display: flex; justify-content: space-between; font-size: 12px; color: var(--cc-graphite); }
.page-foot b { color: var(--cc-phantom); font-weight: 700; }
.page.dark .page-foot span { color: var(--cc-white); }
.pager { position: absolute; right: 52px; bottom: 44px; display: flex; gap: 24px; font-size: 13px; }
.pager a { text-decoration: none; color: var(--cc-dark-green); font-weight: 600; }

/* Cover and dividers */
.page.dark { overflow: hidden; background-color: var(--cc-dark-green); color: var(--cc-white); }
/* Soft Brand Green glow on Dark Green pages (the same glow as the Signature Green carousel). No line grids or dot patterns on brand backgrounds: solid color or a soft gradient only (Chad, Dec 6, 2026). */
.page.dark { background-image: radial-gradient(ellipse 62% 105% at 92% 100%, rgba(26,193,105,.32) 0%, rgba(26,193,105,.10) 45%, rgba(26,193,105,0) 100%); }
.page.dark h2, .page.dark p, .page.dark .page-foot, .page.dark .page-foot b { color: var(--cc-white); }
.page.dark .pager a { color: var(--cc-white); }
.cover h1 { font-size: 64px; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; }
.cover h1 span { display: block; font-weight: 300; color: var(--cc-smoke); }
.cover .cover-logo { height: 56px; width: auto; margin-bottom: 40px; align-self: flex-start; }
.cover .cover-meta { font-size: 14px; color: var(--cc-smoke); margin-top: 28px; }
.page.divider { padding-bottom: 104px; container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 24px; }
.divider .copy { position: relative; max-width: 100%; }
.divider .big { position: relative; align-self: flex-end; font-size: clamp(84px, 15cqw, 260px); font-weight: 300; line-height: 1; color: var(--cc-white); margin: 0; }
.divider h2 { font-size: clamp(34px, 5.2cqw, 84px); line-height: 1.05; overflow-wrap: anywhere; }
.divider .sub { margin-top: 14px; max-width: 40ch; font-size: clamp(14px, 1.6cqw, 22px) !important; color: var(--cc-smoke) !important; }

/* Panels */
.panel { background: var(--cc-kit-offwhite); border-radius: 16px; padding: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.note { font-size: 13px !important; color: var(--cc-arsenic); }
.small { font-size: 13px !important; }
ul.clean { list-style: none; }
ul.clean li { padding: 6px 0; border-top: 1px solid var(--cc-smoke); }
ul.clean li:first-child { border-top: 0; }
ul.dots { padding-left: 18px; }
ul.dots li { margin: 4px 0; }
ol.qs { padding-left: 22px; }
ol.qs li { margin: 5px 0; font-size: 14px; }

/* Logo viewer */
.viewer { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.stage { position: relative; border-radius: 16px; display: grid; place-items: center; min-height: 300px; flex: 1; transition: background .2s ease; }
.stage img { width: 62%; max-width: 520px; height: auto; }
.stage.mark img { width: auto; height: 46%; max-height: 190px; }
.stage .stage-label { position: absolute; left: 16px; bottom: 12px; font-size: 12px; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--cc-smoke); background: var(--cc-white); color: var(--cc-phantom); padding: 7px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab .sw { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.tab[aria-selected="true"] { background: var(--cc-dark-green); border-color: var(--cc-dark-green); color: var(--cc-white); }
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.dl .lbl { color: var(--cc-arsenic); margin-right: 4px; }
.btn { display: inline-block; text-decoration: none; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; background: var(--cc-brand-green); color: var(--cc-dark-green); border: 0; cursor: pointer; }
.btn.ghost { background: var(--cc-white); border: 1px solid var(--cc-smoke); color: var(--cc-dark-green); font-weight: 600; }
.vinfo { font-size: 13px; color: var(--cc-arsenic); min-height: 2.6em; }

/* Clearspace drawing */
.cs-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; height: 100%; }
.cs-stage { background: var(--cc-kit-offwhite); border-radius: 16px; display: grid; place-items: center; padding: 20px; min-height: 280px; }
.cs-box { position: relative; background: rgba(26,193,105,.12); outline: 1.5px solid var(--cc-dark-green); }
.cs-box .logo { display: block; background: var(--cc-white); outline: 1px solid var(--cc-steel); }
.cs-tag { position: absolute; background: var(--cc-black); color: var(--cc-white); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cs-tag.tl { left: 0; top: 0; }
.cs-tag.br { right: 0; bottom: 0; }
.cs-dim { position: absolute; font-size: 11px; font-weight: 700; color: var(--cc-dark-green); }

/* Pairings */
.pair { border-radius: 12px; overflow: hidden; border: 1px solid var(--cc-smoke); background: var(--cc-white); }
.pair .tile { aspect-ratio: 16/9; display: grid; place-items: center; }
.pair .tile img { width: 64%; height: auto; }
.pair .tile.m img { width: auto; height: 52%; }
.pair .cap { padding: 8px 10px; font-size: 12px; color: var(--cc-arsenic); line-height: 1.35; }
.pair .cap b { color: var(--cc-phantom); }

/* Misuse */
.mis { border-radius: 12px; border: 1px solid var(--cc-smoke); overflow: hidden; background: var(--cc-white); }
.mis .tile { aspect-ratio: 16/10; display: grid; place-items: center; background: var(--cc-kit-offwhite); position: relative; overflow: hidden; }
.mis .tile img { width: 60%; height: auto; }
.mis .x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--cc-phantom); color: var(--cc-white); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.mis .cap { padding: 8px 10px; font-size: 12.5px; color: var(--cc-arsenic); }

/* Color */
.sw-lg { border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 130px; border: 1px solid var(--cc-smoke); cursor: pointer; text-align: left; font: inherit; width: 100%; }
.sw-lg .n { font-weight: 700; font-size: 18px; }
.sw-lg .h { font-size: 13px; font-weight: 600; }
.sw-lg .c { font-size: 11px; opacity: .9; display: block; margin-top: 4px; line-height: 1.35; }
.sw-lg .h { line-height: 1.5; }
.sw-lg.row { min-height: 0; flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; }
.sw-lg.row > span:last-child { text-align: right; margin-left: auto; }
.sw-lg.tall { min-height: 240px; }
.sw-sm { min-height: 150px; padding: 12px; }
.sw-sm .n { font-size: 15px; }
table.ct { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ct th, table.ct td { overflow-wrap: anywhere; text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--cc-smoke); color: var(--cc-arsenic); }
table.ct th { color: var(--cc-phantom); font-weight: 700; }
.demo { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 13px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.18); margin-right: 4px; }

/* Typography */
.spec { display: grid; grid-template-columns: 110px 1fr; gap: 8px 18px; align-items: baseline; }
.spec .w { font-size: 14px; color: var(--cc-arsenic); }
.spec .s { font-size: 17px; color: var(--cc-phantom); line-height: 1.35; border-bottom: 1px solid var(--cc-smoke); padding-bottom: 6px; overflow-wrap: anywhere; }
.tester { margin-top: 14px; }
.tester .t { font-size: 32px; line-height: 1.15; color: var(--cc-dark-green); outline: none; border-radius: 8px; padding: 6px 8px; background: var(--cc-kit-offwhite); }
.scale-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: baseline; gap: 16px; border-bottom: 1px solid var(--cc-smoke); padding: 6px 0; }
.scale-row .px { font-size: 12px; color: var(--cc-graphite); }
.scale-row .ex { color: var(--cc-phantom); line-height: 1.15; overflow-wrap: anywhere; min-width: 0; }

/* Applications */
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--cc-smoke); background: var(--cc-white); }
.shot img { width: 100%; height: auto; }
.shot .cap { padding: 8px 10px; font-size: 12.5px; color: var(--cc-arsenic); line-height: 1.4; }
.missing { border: 1.5px dashed var(--cc-space); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--cc-arsenic); }

/* Language */
.quote { font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--cc-dark-green); }
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd .col { border-radius: 14px; padding: 18px; background: var(--cc-kit-offwhite); }
.dd .col h3 { margin-bottom: 8px; }
.dd li { font-size: 14px; margin: 5px 0; }

/* Resources */
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.res a.card { display: block; text-decoration: none; border: 1px solid var(--cc-smoke); border-radius: 12px; padding: 14px 16px; background: var(--cc-white); }
.res a.card:hover { border-color: var(--cc-brand-green); }
.res a.card b { display: block; color: var(--cc-dark-green); font-size: 15px; }
.res a.card span { font-size: 12.5px; color: var(--cc-arsenic); }
details.files { margin-top: 10px; font-size: 13px; }
details.files summary { cursor: pointer; font-weight: 700; color: var(--cc-dark-green); }
details.files ul { columns: 2; padding-left: 18px; margin-top: 6px; }
details.files li { font-size: 12.5px; break-inside: avoid; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--cc-phantom); color: var(--cc-white); padding: 8px 14px; border-radius: 10px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }

/* Tablet and mobile */
@media (max-width: 1100px) {
  .page.divider { min-height: 380px; }
  .sw-lg.tall { min-height: 170px; }
  .stationery { grid-template-columns: 1fr; }
  .st-letter { max-width: 420px; }
  .page { aspect-ratio: auto; grid-template-columns: 1fr; gap: 24px; padding: 36px 32px 84px; }
  .page-foot { left: 32px; right: 32px; }
  .pager { right: 32px; }
}
@media (max-width: 860px) {
  .scale-row .ex[style*="64px"] { font-size: 44px !important; }
  .scale-row .ex[style*="48px"] { font-size: 36px !important; }
  .scale-row .ex[style*="32px"] { font-size: 26px !important; }
  .scale-row .ex[style*="24px"] { font-size: 21px !important; }
  .stationery { grid-template-columns: 1fr; }
  .portraits { grid-template-columns: 1fr 1fr; }
  .sw-lg.row { flex-direction: column; align-items: flex-start; }
  .sw-lg.row > span:last-child { text-align: left; margin-left: 0; }
  .sw-lg.tall { min-height: 150px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 86vw; max-width: 320px; z-index: 30; transform: translateX(-105%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .menu-btn { display: flex; width: 100%; position: sticky; top: 0; z-index: 20; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-size: 14px; background: var(--cc-dark-green); color: var(--cc-white); border: 0; padding: 12px 16px; }
  main { padding: 12px 12px 60px; }
  .page { border-radius: 16px; padding: 28px 20px 112px; }
  .page h2 { font-size: 32px; }
  .cover h1 { font-size: 44px; }
  .page-foot { left: 20px; right: 20px; bottom: 16px; flex-direction: column; gap: 2px; }
  .pager { right: 20px; left: 20px; bottom: 62px; justify-content: space-between; }
  .missing ul { columns: 1 !important; }
  .grid2, .grid3, .dd, .res, .cs-wrap { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .stage { min-height: 220px; }
  .stage img { width: 80%; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
  details.files ul { columns: 1; }
  .cs-stage { overflow-x: auto; }
  table.ct { font-size: 12px; }
  table.ct th, table.ct td { padding: 5px 4px; }
}

/* Print: one 16:9 page per sheet, generated by export-pdf.py */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { background: var(--cc-white); }
  .sidebar, .menu-btn, .status-bar, .pager, .toast, .no-print { display: none !important; }
  .shell { display: block; }
  main { padding: 0; }
  .page { width: 1600px; height: 900px; max-width: none; aspect-ratio: auto; margin: 0; border-radius: 0; padding: 64px 72px 80px; break-after: page; page-break-after: always; grid-template-columns: 30% 1fr; gap: 56px; }
  .page.full { grid-template-columns: 1fr; }
  .page-foot { left: 72px; right: 72px; bottom: 30px; }
  .page.divider { display: flex; }
  .page.divider h2 { font-size: clamp(34px, 5.2cqw, 84px); }
  .page h2 { font-size: 48px; }
  .cover h1 { font-size: 80px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  details.files { display: none; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Values */
.value { position: relative; padding-top: 44px; }
.value .vn { position: absolute; left: 22px; top: 14px; font-size: 13px; font-weight: 800; color: var(--cc-graphite); letter-spacing: .06em; }
.value h3 { font-size: 20px; margin-bottom: 8px; color: var(--cc-dark-green); }
.value p { font-size: 15px; }
.value .note { margin-top: 10px; font-size: 12.5px !important; color: var(--cc-graphite); }
.fr { font-family: var(--font-accent); }
.fr-demo { padding: 22px 26px; }
.fr-demo p { margin: 0; line-height: 1.3; }

/* Portrait template grids */
.portraits { grid-template-columns: repeat(4, 1fr); align-items: start; }
.portraits .shot img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Stationery display (details replaced for this guide; kit PDFs untouched) */
.stationery { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.st-cards { display: grid; gap: 12px; }
.card-d { position: relative; container-type: inline-size; aspect-ratio: 241 / 156; background: var(--cc-light-gray); border-radius: 8px; box-shadow: 0 0 0 1px var(--cc-smoke); overflow: hidden; }
.card-d.dark { background: var(--cc-dark-green); display: grid; place-items: center; box-shadow: none; }
.card-d.dark img { width: 52%; height: auto; }
.card-d .nm { position: absolute; left: 8%; top: 11%; font-weight: 700; font-size: 6cqw; letter-spacing: .03em; text-transform: uppercase; color: var(--cc-black); }
.card-d .mk { position: absolute; right: 8%; top: 9%; width: 22%; height: auto; }
.card-d .ln { position: absolute; left: 8%; bottom: 11%; font-size: 4.2cqw; line-height: 1.7; color: var(--cc-arsenic); }
.card-d .ln i { font-style: normal; color: var(--cc-graphite); display: inline-block; width: 2.2em; }
.st-letter { max-width: 340px; }
.lh-d { position: relative; container-type: inline-size; aspect-ratio: 612 / 859; background: var(--cc-light-gray); border-radius: 6px; box-shadow: 0 0 0 1px var(--cc-smoke); overflow: hidden; }
.lh-d .lg { position: absolute; left: 10%; top: 7%; width: 28%; height: auto; }
.lh-d .bars { position: absolute; left: 10%; right: 10%; top: 30%; display: grid; gap: 2.2cqw; }
.lh-d .bars b { display: block; height: 1.3cqw; width: 100%; background: var(--cc-smoke); border-radius: 2px; }
.lh-d .bars b.gap { background: none; height: 2cqw; }
.lh-d .sig { position: absolute; right: 10%; bottom: 7%; text-align: right; display: grid; gap: .6cqw; }
.lh-d .sig strong { font-size: 3.4cqw; letter-spacing: .03em; text-transform: uppercase; color: var(--cc-black); }
.lh-d .sig span { font-size: 2.8cqw; color: var(--cc-arsenic); }
.page .st-cards .note, .page .st-letter .note { font-size: 12.5px !important; }
