/* ColoStone theme (metanexusorbit.com).
   Layout: a store front. Utility strip, sticky slate search header, white department bar with a mega menu,
   limestone ground with white product surfaces, slate footer capped by a dry-stone course (Kentucky limestone walls). */
:root {
  --ground: #f2f3ef;      /* limestone page ground */
  --surface: #ffffff;     /* product cards, panels */
  --stone: #e4e8e1;       /* hero band, tiles */
  --stone-2: #c9d1c6;     /* the stone course, strong borders */
  --line: #d8ddd5;
  --pic: #f6f7f4;         /* behind product illustrations */
  --ink: #1b2421;
  --ink-2: #47534e;
  --muted: #69746f;
  --moss: #1e6b55;        /* bluegrass green: buy buttons, links */
  --moss-hover: #17584a;
  --moss-ink: #ffffff;
  --moss-soft: #e0eee8;
  --ochre: #c98a14;       /* rank one, top pick */
  --ochre-ink: #6f4a00;
  --ochre-soft: #faefd5;
  --slate: #1f2a27;       /* header and footer */
  --slate-2: #2a3632;
  --on-slate: #eef1ef;
  --on-slate-2: #a8b4af;
  --tile-l: 93%;          /* lightness of the coloured icon squares */
  --tile-ink-l: 34%;
  --shadow: 0 1px 2px rgba(27, 36, 33, .06), 0 10px 30px -12px rgba(27, 36, 33, .22);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1240px;
  --head-h: 115px;       /* sticky header: search bar + department bar */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111715; --surface: #18201d; --stone: #1f2925; --stone-2: #33403b; --line: #2b3632; --pic: #e9ece7;
    --ink: #e5eae7; --ink-2: #b5c0bb; --muted: #8b9792;
    --moss: #52b392; --moss-hover: #6cc6a6; --moss-ink: #0b1411; --moss-soft: #1b2f28;
    --ochre: #e2ac44; --ochre-ink: #f2cd82; --ochre-soft: #302716;
    --slate: #0c1210; --slate-2: #16201c; --on-slate: #e5eae7; --on-slate-2: #93a09a;
    --tile-l: 24%; --tile-ink-l: 78%;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #111715; --surface: #18201d; --stone: #1f2925; --stone-2: #33403b; --line: #2b3632; --pic: #e9ece7;
  --ink: #e5eae7; --ink-2: #b5c0bb; --muted: #8b9792;
  --moss: #52b392; --moss-hover: #6cc6a6; --moss-ink: #0b1411; --moss-soft: #1b2f28;
  --ochre: #e2ac44; --ochre-ink: #f2cd82; --ochre-soft: #302716;
  --slate: #0c1210; --slate-2: #16201c; --on-slate: #e5eae7; --on-slate-2: #93a09a;
  --tile-l: 24%; --tile-ink-l: 78%;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -14px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 20px); }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-stretch: 108%; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; }
.i { width: 1.1em; height: 1.1em; flex: none; stroke-width: 2; vertical-align: -.17em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.cs-wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.cs-label { font: 500 12px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.cs-eyebrow { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); margin: 0 0 14px; }
.cs-dek { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 64ch; margin: 10px 0 0; }
.cs-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.cs-note-top { margin: -6px 0 14px; }
.cs-count { font: 500 13px var(--mono); color: var(--muted); vertical-align: 3px; margin-left: 4px; }
.cs-empty { display: flex; gap: 10px; align-items: flex-start; padding: 18px 20px; border: 1px dashed var(--stone-2); border-radius: 10px; color: var(--ink-2); margin: 0; }
.cs-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--moss); white-space: nowrap; }
.cs-more:hover { color: var(--moss-hover); text-decoration: underline; text-underline-offset: 3px; }

/* the dry-stone course: two staggered rows of stones, painted with a token colour through a mask */
.cs-course { height: 14px; background: var(--stone-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='14'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='0' width='30' height='6' rx='2.5'/%3E%3Crect x='32' y='0' width='20' height='6' rx='2.5'/%3E%3Crect x='54' y='0' width='36' height='6' rx='2.5'/%3E%3Crect x='92' y='0' width='24' height='6' rx='2.5'/%3E%3Crect x='118' y='0' width='12' height='6' rx='2.5'/%3E%3Crect x='0' y='8' width='12' height='6' rx='2.5'/%3E%3Crect x='14' y='8' width='34' height='6' rx='2.5'/%3E%3Crect x='50' y='8' width='22' height='6' rx='2.5'/%3E%3Crect x='74' y='8' width='30' height='6' rx='2.5'/%3E%3Crect x='106' y='8' width='24' height='6' rx='2.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 132px 14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='14'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='0' width='30' height='6' rx='2.5'/%3E%3Crect x='32' y='0' width='20' height='6' rx='2.5'/%3E%3Crect x='54' y='0' width='36' height='6' rx='2.5'/%3E%3Crect x='92' y='0' width='24' height='6' rx='2.5'/%3E%3Crect x='118' y='0' width='12' height='6' rx='2.5'/%3E%3Crect x='0' y='8' width='12' height='6' rx='2.5'/%3E%3Crect x='14' y='8' width='34' height='6' rx='2.5'/%3E%3Crect x='50' y='8' width='22' height='6' rx='2.5'/%3E%3Crect x='74' y='8' width='30' height='6' rx='2.5'/%3E%3Crect x='106' y='8' width='24' height='6' rx='2.5'/%3E%3C/g%3E%3C/svg%3E") repeat-x left top / 132px 14px; }

/* ---------- icon squares (category photos) ---------- */
.ico-tile { --s: 38px; width: var(--s); height: var(--s); border-radius: 22%; display: inline-flex; align-items: center; justify-content: center; flex: none;
  background: hsl(var(--h, 150) 32% var(--tile-l)); color: hsl(var(--h, 150) 45% var(--tile-ink-l)); }
.ico-tile .i { width: 55%; height: 55%; }
.ico-tile.has-3d { background: hsl(var(--h, 150) 22% 93%); }
.ico-tile.has-3d img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(27, 36, 33, .16)); }

/* ---------- buttons ---------- */
.cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: 8px; border: 0;
  font: 700 15.5px/1.2 var(--text); cursor: pointer; transition: background-color .15s, transform .15s; text-align: center; }
.cs-btn-buy { background: var(--moss); color: var(--moss-ink); }
.cs-btn-buy:hover { background: var(--moss-hover); }
.cs-btn-buy:active { transform: translateY(1px); }
.cs-btn-sm { min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.cs-btn-block { width: 100%; }
.cs-btn-line { border: 1px solid var(--on-slate-2); color: var(--on-slate); background: transparent; }
.cs-btn-line:hover { border-color: var(--on-slate); }
a .buy-note, button .buy-note { color: inherit !important; font-size: max(.78em, 11px) !important; font-weight: 700 !important; opacity: 1;
  margin: 0 0 0 4px !important; padding: 3px 7px !important; border-radius: 999px; background: rgba(0, 0, 0, .2) !important;
  letter-spacing: 0; line-height: 1.1; display: inline-block; white-space: nowrap; vertical-align: middle; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--slate); }
.cs-util { background: var(--slate-2); color: var(--on-slate-2); font-size: 13px; }
.cs-util-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.cs-util p { margin: 0; display: flex; align-items: center; gap: 7px; }
.cs-util p .i { color: var(--moss-hover); }
.cs-util nav { display: flex; gap: 18px; }
.cs-util a:hover { color: var(--on-slate); }
.cs-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--slate); color: var(--on-slate); }
.cs-head-in { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.cs-logo { display: inline-flex; align-items: center; gap: 10px; font: 650 22px/1 var(--display); font-stretch: 112%; letter-spacing: -.01em; color: var(--on-slate); flex: none; }
.cs-logo b { font-weight: 800; color: var(--ochre); }
.cs-mark { width: 36px; height: 36px; flex: none; }
.cs-mark-bg { fill: var(--slate-2); }
.cs-mark-s1 { fill: #9fb3a8; }
.cs-mark-s2 { fill: #d9ded6; }
.cs-mark-s3 { fill: var(--ochre); }
.cs-search { flex: 1; display: flex; min-width: 0; max-width: 680px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--surface); }
.cs-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font-size: 15.5px; background: transparent; color: var(--ink); outline: none; }
.cs-search:focus-within { box-shadow: 0 0 0 3px var(--ochre); }
.cs-search button { display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 0 20px; background: var(--moss); color: var(--moss-ink); font-weight: 700; cursor: pointer; }
.cs-search button:hover { background: var(--moss-hover); }
.cs-links { display: flex; gap: 4px; margin-left: auto; }
.cs-links a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--on-slate); }
.cs-links a .i { color: var(--on-slate-2); }
.cs-links a:hover { background: var(--slate-2); }
.cs-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--slate-2); border-radius: 8px; background: transparent; color: var(--on-slate); align-items: center; justify-content: center; cursor: pointer; }
.cs-burger .i { width: 22px; height: 22px; }
.cs-dept { background: var(--surface); border-bottom: 1px solid var(--line); color: var(--ink); }
.cs-dept-in { display: flex; align-items: center; gap: 6px; min-height: 46px; }
.cs-dept-all { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--stone); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cs-dept-all[aria-expanded="true"] { background: var(--moss-soft); color: var(--moss); }
.cs-dept-all .i:last-child { width: 15px; height: 15px; transition: transform .15s; }
.cs-dept-all[aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
.cs-dept-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); mask: linear-gradient(90deg, #000 92%, transparent); padding-right: 40px; }
.cs-dept-row::-webkit-scrollbar { display: none; }
.cs-dept-row a { flex: none; padding: 7px 10px; border-radius: 7px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.cs-dept-row a:hover { background: var(--stone); color: var(--ink); }
.cs-mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 140px); overflow-y: auto; }
.cs-mega.open { display: block; }
.cs-mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px 28px; padding-block: 24px 8px; }
.cs-mega-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-mega-col > a { font-size: 14.5px; color: var(--ink-2); padding: 2px 0; }
.cs-mega-col > a:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.cs-mega-col > a.cs-mega-dept { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cs-mega-foot { border-top: 1px solid var(--line); padding-block: 14px 18px; margin: 14px 0 0; }
.cs-mega-foot a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--moss); }

/* ---------- home ---------- */
.cs-hero { background: var(--stone); }
.cs-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; padding-block: 52px 40px; }
.cs-hero h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 800; font-stretch: 116%; letter-spacing: -.02em; line-height: 1.02; max-width: 15ch; }
.cs-hero-sub { font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin: 18px 0 26px; }
.cs-bigsearch { display: flex; align-items: center; gap: 10px; max-width: 620px; height: 58px; padding: 0 6px 0 18px; background: var(--surface); border: 1px solid var(--stone-2); border-radius: 10px; }
.cs-bigsearch:focus-within { border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-soft); }
.cs-bigsearch > .i { color: var(--muted); width: 20px; height: 20px; }
.cs-bigsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; outline: none; color: var(--ink); }
.cs-bigsearch button { height: 46px; padding: 0 22px; border: 0; border-radius: 7px; background: var(--moss); color: var(--moss-ink); font-weight: 700; font-size: 16px; cursor: pointer; }
.cs-bigsearch button:hover { background: var(--moss-hover); }
.cs-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; }
.cs-try span { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.cs-try a { padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.cs-try a:hover { border-color: var(--moss); color: var(--moss); }
.cs-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 30px 0 0; }
.cs-stats div { display: flex; flex-direction: column-reverse; }
.cs-stats dt { font-size: 13.5px; color: var(--muted); }
.cs-stats dd { margin: 0; font: 700 30px/1.1 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.cs-starter { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.cs-starter-img { display: block; aspect-ratio: 16 / 8; background: var(--pic); }
.cs-starter-img img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cs-starter-body { padding: 20px 22px 22px; }
.cs-starter h2 { font-size: 22px; margin-bottom: 14px; }
.cs-starter h2 a:hover { color: var(--moss); }
.cs-starter-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.cs-starter-list li { display: flex; align-items: center; gap: 12px; }
.cs-starter-list img { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: var(--pic); flex: none; }
.cs-starter-list span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cs-starter-list small { font-size: 12.5px; color: var(--ochre-ink); font-weight: 700; }
.cs-starter-list b { font-size: 15px; font-weight: 600; line-height: 1.3; }

.cs-sec { padding-block: 56px; }
.cs-sec + .cs-sec { padding-top: 8px; }
.cs-sec-stone { background: var(--stone); padding-block: 52px; }
.cs-sec-stone + .cs-sec { padding-top: 56px; }
.cs-sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cs-sechead h2 { font-size: 28px; font-weight: 750; }
.cs-sechead p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.cs-shelf-h { display: flex; align-items: center; gap: 12px; }
.cs-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.cs-dtile { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, transform .15s; }
.cs-dtile:hover { border-color: var(--moss); transform: translateY(-2px); }
.cs-dtile-pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; background: hsl(var(--h, 150) 22% 93%); margin-bottom: 8px; color: hsl(var(--h, 150) 45% 34%); }
.cs-dtile-img { width: 72%; height: 82%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(27, 36, 33, .18)); }
.cs-dtile-pic > .i { width: 40%; height: 40%; }
.cs-dtile strong { font-size: 15px; line-height: 1.3; }
.cs-dtile small { font-size: 13px; color: var(--muted); }

/* product cards */
.cs-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; gap: 12px; min-width: 0; }
.cs-pcard-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 8px; background: var(--pic); overflow: hidden; color: var(--muted); }
.cs-pcard-img img { width: 84%; height: 84%; object-fit: contain; transition: transform .2s; }
.cs-pcard:hover .cs-pcard-img img { transform: scale(1.04); }
.cs-pcard-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 0 2px; }
.cs-pcard h3 { font: 650 16px/1.3 var(--text); }
.cs-pcard h3 a:hover { color: var(--moss); }
.cs-pcard-from { margin: auto 0 0; font-size: 13.5px; color: var(--muted); }
.cs-pcard-from a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--stone-2); text-underline-offset: 3px; }
.cs-pcard-from a:hover { color: var(--moss); }
.cs-ai { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; font: 500 10.5px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; background: rgba(27, 36, 33, .72); color: #fff; }
.cs-badge { align-self: flex-start; display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--ochre-soft); color: var(--ochre-ink); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.cs-rank { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--ink); color: var(--surface); font: 500 14px/1 var(--mono); font-variant-numeric: tabular-nums; }
.cs-rank-sm { width: 24px; height: 24px; font-size: 12px; }

/* guide cards */
.cs-cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; transition: border-color .15s; }
.cs-card:hover { border-color: var(--moss); }
.cs-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden; }
.cs-card-img img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); transition: transform .25s; }
.cs-card:hover .cs-card-img img { transform: scaleX(-1) scale(1.03); }
.cs-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.cs-card-dept { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--moss); }
.cs-card strong { font: 650 17px/1.3 var(--display); font-stretch: 104%; }
.cs-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--muted); }
.cs-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cs-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cs-card-row { flex-direction: row; }
.cs-card-row .cs-card-img { width: 150px; aspect-ratio: auto; flex: none; }
.cs-card-row .cs-card-body { padding: 12px 16px; }
.cs-card-row strong { font-size: 16px; }

/* method band */
.cs-method { background: var(--slate); color: var(--on-slate); padding-block: 56px; }
.cs-method-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.cs-method .cs-label { color: var(--on-slate-2); }
.cs-method h2 { font-size: 32px; font-weight: 800; color: var(--on-slate); margin-bottom: 12px; }
.cs-method-head p { color: var(--on-slate-2); font-size: 16px; max-width: 42ch; margin-bottom: 22px; }
.cs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.cs-steps li { counter-increment: step; padding: 20px; border-radius: 12px; background: var(--slate-2); }
.cs-steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px; background: var(--ochre); color: #1b2421; font: 500 15px var(--mono); }
.cs-steps h3 { font-size: 18px; color: var(--on-slate); margin-bottom: 8px; }
.cs-steps p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--on-slate-2); }

/* ---------- page headers & generic blocks ---------- */
.cs-phead { background: var(--stone); padding-block: 28px 34px; }
.cs-phead h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; font-stretch: 112%; letter-spacing: -.015em; margin-top: 12px; }
.cs-phead h1 small { font: 500 15px var(--mono); color: var(--muted); }
.cs-phead-row { display: flex; gap: 22px; align-items: center; }
.cs-phead-tile { border-radius: 18px; }
.cs-phead-row .cs-label { margin: 10px 0 0; }
.cs-phead-row h1 { margin-top: 4px; }
.cs-phead-search .cs-bigsearch { margin-top: 18px; }
.cs-phead-search h1 { margin-top: 0; }
.cs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--muted); }
.cs-crumbs a:hover { color: var(--moss); text-decoration: underline; }
.cs-crumbs .cs-sep { width: 14px; height: 14px; opacity: .6; }
.cs-crumbs [aria-current] { color: var(--ink-2); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 16px 0 0; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.cs-meta li { display: inline-flex; align-items: center; gap: 7px; }
.cs-meta .i { color: var(--moss); }
.cs-page { padding-block: 36px 64px; }
.cs-block + .cs-block { margin-top: 44px; }
.cs-block .cs-sechead h2 { font-size: 24px; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tags a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.cs-tags a > .i { margin-left: 4px; color: var(--muted); }
.cs-tags a:hover { border-color: var(--moss); color: var(--ink); }
.cs-tags-big a { padding: 8px 14px 8px 8px; font-weight: 600; font-size: 15px; }
.cs-plist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cs-plist a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); height: 100%; }
.cs-plist a:hover { border-color: var(--moss); }
.cs-plist a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cs-plist b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.cs-plist small { font-size: 13px; color: var(--muted); }
.cs-plist-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--moss-soft); color: var(--moss); flex: none; }
.cs-plist-pic { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 8px; background: var(--pic); flex: none; color: var(--muted); overflow: hidden; }
.cs-plist-pic img { width: 88%; height: 88%; object-fit: contain; }
.cs-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.cs-pager a, .cs-pager span { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: 500 14px var(--mono); }
.cs-pager a:hover { border-color: var(--moss); color: var(--moss); }
.cs-pager .cur { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cs-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px 34px; min-width: 0; }

/* ---------- category ---------- */
.cs-catlayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.cs-aisles { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 20px); max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; padding-right: 4px; }
.cs-aisles ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.cs-aisles a { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); }
.cs-aisles a:hover { border-left-color: var(--moss); color: var(--ink); background: var(--surface); }
.cs-aisles small { font: 500 12px var(--mono); color: var(--muted); align-self: center; }
.cs-aisles .cs-ready { color: var(--moss); }
.cs-catmain { min-width: 0; }
.cs-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cs-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.cs-tile:hover { border-color: var(--moss); }
.cs-tile strong { font-size: 14.5px; line-height: 1.3; }
.cs-tile small { font-size: 12.5px; color: var(--muted); }
.cs-tile small.is-ready { color: var(--moss); font-weight: 700; }
.cs-storeband { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border-radius: 12px; background: var(--moss-soft); }
.cs-storeband > div { flex: 1; min-width: 220px; }
.cs-storeband h3 { font-size: 19px; margin-bottom: 4px; }
.cs-storeband p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cs-storeband-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--surface); color: var(--moss); }
.cs-storeband-ico .i { width: 24px; height: 24px; }

/* departments directory */
.cs-dirgrid { columns: 4 250px; column-gap: 16px; }
.cs-dircol { break-inside: avoid; margin-bottom: 16px; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.cs-dircol-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cs-dircol-head span { display: flex; flex-direction: column; }
.cs-dircol-head strong { font: 700 17px/1.2 var(--display); }
.cs-dircol-head small { font-size: 13px; color: var(--muted); }
.cs-dircol ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.cs-dircol li a { font-size: 14.5px; color: var(--ink-2); }
.cs-dircol li a:hover { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.cs-dircol .cs-more { font-size: 14px; }

/* ---------- guide ---------- */
.cs-ghead { background: var(--stone); }
.cs-ghead-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding-block: 28px 34px; }
.cs-ghead h1 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; font-stretch: 114%; letter-spacing: -.02em; line-height: 1.05; margin-top: 14px; }
.cs-ghead-img { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--pic); position: relative; }
.cs-ghead-img img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cs-ghead-img figcaption { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 5px; font-size: 11px; background: rgba(27, 36, 33, .72); color: #fff; }
.cs-glayout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; align-items: start; padding-block: 32px 64px; }
.cs-gmain { min-width: 0; }
.cs-disc { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.cs-disc .i { color: var(--moss); margin-top: 3px; }
.cs-disc a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }
.cs-lead { font-size: 17.5px; }
.cs-narrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14.5px; }
.cs-narrow span { font-weight: 700; margin-right: 4px; }
.cs-narrow a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.cs-narrow a:hover { border-color: var(--moss); color: var(--moss); }
.cs-gsec { margin-top: 48px; }
.cs-h2 { font-size: 26px; font-weight: 750; margin-bottom: 18px; }
.cs-glance { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 12px; }
.cs-gl { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.cs-gl.is-top { border: 2px solid var(--ochre); padding: 13px; }
.cs-gl .cs-rank { position: absolute; top: 10px; left: 10px; z-index: 1; }
.cs-gl.is-top .cs-rank { background: var(--ochre); color: #1b2421; }
.cs-gl-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--pic); overflow: hidden; }
.cs-gl-img img { width: 82%; height: 82%; object-fit: contain; }
.cs-gl-name { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.cs-gl-name:hover { color: var(--moss); }
.cs-gl-for { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.cs-gl .cs-btn { margin-top: auto; }
.cs-score { display: flex; align-items: center; gap: 6px; margin: 0; font-variant-numeric: tabular-nums; }
.cs-score b { font: 700 17px var(--display); }
.cs-score small { font-size: 12.5px; color: var(--muted); }
.cs-meter { flex: 1; max-width: 120px; height: 6px; border-radius: 3px; background: var(--stone); overflow: hidden; margin-left: 4px; }
.cs-meter i { display: block; height: 100%; border-radius: 3px; background: var(--moss); }
.cs-score-lg b { font-size: 26px; }
.cs-pdp { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cs-pdp + .cs-pdp { margin-top: 18px; }
.cs-pdp-media { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cs-pdp-img { position: relative; margin: 0; }
.cs-pdp-img img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8%; border-radius: 10px; background: var(--pic); }
.cs-pdp-img .cs-ai { top: 8px; bottom: auto; }
.cs-pdp-img figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.cs-specs { margin: 0; display: grid; border-top: 1px solid var(--line); }
.cs-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cs-specs dt { color: var(--muted); }
.cs-specs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.cs-pdp-body { min-width: 0; }
.cs-pdp-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.cs-pdp h3 { font-size: 24px; font-weight: 750; }
.cs-brandline { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.cs-score-lg { margin-top: 12px; }
.cs-pdp-sum { font-size: 16.5px; color: var(--ink-2); margin: 14px 0 0; }
.cs-fit { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; }
.cs-fit .i { color: var(--moss); margin-top: 3px; }
.cs-buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 4px; padding: 14px 16px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); }
.cs-buybox .cs-btn { flex: none; white-space: nowrap; }
.cs-buybox > small { flex: 1; min-width: 180px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cs-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.cs-pc > div { padding: 14px 16px; border-radius: 10px; background: var(--ground); }
.cs-pc h4 { display: flex; align-items: center; gap: 7px; font: 700 15px var(--text); margin-bottom: 8px; }
.cs-pros h4 .i { color: var(--moss); }
.cs-cons h4 .i { color: var(--ochre); }
.cs-pc ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14.5px; line-height: 1.5; }
.cs-verdict { margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--moss); background: var(--moss-soft); border-radius: 0 10px 10px 0; font-size: 15.5px; }
.cs-verdict b { display: block; font: 500 11.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--moss); margin-bottom: 3px; }
.cs-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.cs-table th, .cs-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cs-table thead th { font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--ground); }
.cs-table tbody tr:last-child > * { border-bottom: 0; }
.cs-table tbody th a { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.cs-table tbody th a:hover { color: var(--moss); }
.cs-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.cs-faq { display: grid; gap: 8px; }
.cs-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cs-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 650; cursor: pointer; list-style: none; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary .i { transition: transform .15s; color: var(--muted); }
.cs-faq details[open] summary .i { transform: rotate(180deg); }
.cs-faq .cs-prose { padding: 0 18px 6px; font-size: 15.5px; }
.cs-methodbox { margin-top: 48px; padding: 22px 24px; border-radius: 12px; background: var(--slate); color: var(--on-slate); }
.cs-methodbox h2 { display: flex; align-items: center; gap: 9px; font-size: 20px; color: var(--on-slate); margin-bottom: 10px; }
.cs-methodbox h2 .i { color: var(--ochre); }
.cs-methodbox .cs-prose { color: var(--on-slate-2); font-size: 15.5px; }
.cs-methodbox .cs-prose a { color: var(--on-slate); }
.cs-gside { min-width: 0; align-self: stretch; }
.cs-sticky { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.cs-topbox { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--surface); border: 2px solid var(--ochre); }
.cs-topbox .cs-btn, .cs-gl .cs-btn { white-space: nowrap; padding-inline: 10px; }
.cs-topbox .cs-label { color: var(--ochre-ink); margin: 0; }
.cs-topbox img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 6%; border-radius: 8px; background: var(--pic); }
.cs-topbox strong { font-size: 16px; line-height: 1.3; }
.cs-topbox > small { font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.cs-toc { padding: 16px 0 6px; }
.cs-toc .cs-label { padding-left: 14px; }
.cs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.cs-toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--ink-2); }
.cs-toc a:hover { color: var(--ink); }
.cs-toc a.active { border-left-color: var(--moss); color: var(--moss); font-weight: 600; }
.cs-toc-sub a { padding-left: 24px; font-size: 13.5px; color: var(--muted); }

/* ---------- prose ---------- */
.cs-prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); max-width: 72ch; }
.cs-prose h2 { font-size: 23px; margin: 32px 0 12px; }
.cs-prose h3 { font-size: 19px; margin: 24px 0 8px; }
.cs-prose strong { color: var(--ink); }
.cs-prose a { color: var(--moss); text-decoration: underline; text-decoration-color: var(--stone-2); text-underline-offset: 3px; }
.cs-prose a:hover { text-decoration-color: var(--moss); }
.cs-prose ul, .cs-prose ol { padding-left: 22px; margin: 0 0 1em; }
.cs-prose li { margin: 6px 0; }
.cs-prose li::marker { color: var(--moss); }
.cs-prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--ochre); border-radius: 0 10px 10px 0; background: var(--ochre-soft); color: var(--ink); }
.cs-prose blockquote p { margin: 0; }
.cs-prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; display: block; overflow-x: auto; }
.cs-prose th, .cs-prose td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; }
.cs-prose > :first-child { margin-top: 0; }
.cs-prose > :last-child { margin-bottom: 0; }
.cs-lede { font-size: 19px; line-height: 1.6; color: var(--ink); }

/* ---------- static pages ---------- */
.cs-doc { display: grid; grid-template-columns: 200px minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.cs-doc-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 20px); }
.cs-doc-nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.cs-doc-nav a:hover { background: var(--surface); color: var(--ink); }
.cs-doc-nav a[aria-current] { background: var(--ink); color: var(--surface); font-weight: 600; }
.cs-cocard { padding: 18px 20px; border-radius: 12px; background: var(--slate); color: var(--on-slate); position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h) + 20px); }
.cs-cocard .cs-label { color: var(--on-slate-2); }
.cs-cocard dl { margin: 0; display: grid; gap: 12px; }
.cs-cocard dt { font-size: 12.5px; color: var(--on-slate-2); }
.cs-cocard dd { margin: 2px 0 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.cs-cocard a { color: var(--on-slate); text-decoration: underline; text-decoration-color: var(--on-slate-2); text-underline-offset: 3px; }

/* ---------- catalog item ---------- */
.cs-item { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-top: 16px; }
.cs-item-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 750; line-height: 1.2; }
.cs-item-path { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.cs-buycard { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cs-buycard .cs-label { margin: 0; }
.cs-buycard > small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ---------- 404 ---------- */
.cs-lost { background: var(--stone); }
.cs-lost-in { padding-block: 72px 56px; display: flex; flex-direction: column; gap: 6px; }
.cs-lost h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; font-stretch: 116%; }
.cs-lost .cs-bigsearch { margin: 16px 0 12px; }

/* ---------- footer ---------- */
.cs-foot > .cs-course { background: var(--slate); }
.cs-foot { background: linear-gradient(var(--ground) 14px, var(--slate) 14px); color: var(--on-slate-2); }
.cs-foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, .7fr)) minmax(0, 1.1fr); gap: 32px; padding-block: 44px 28px; }
.cs-foot-brand p { margin: 14px 0 0; font-size: 14.5px; max-width: 36ch; }
.cs-foot-mail { display: flex; align-items: center; gap: 8px; }
.cs-foot-mail a { color: var(--on-slate); overflow-wrap: anywhere; }
.cs-foot-mail a:hover { text-decoration: underline; }
.cs-foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.cs-foot h2 { font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--on-slate); margin-bottom: 4px; }
.cs-foot-col a:hover { color: var(--on-slate); }
.cs-foot-co { font-style: normal; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.5; }
.cs-foot-co strong { color: var(--on-slate); }
.cs-foot-note { padding-block: 20px 28px; border-top: 1px solid var(--slate-2); font-size: 13.5px; }
.cs-foot-note p { margin: 0 0 6px; }
.cs-foot-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 12px !important; }
.cs-foot-bottom a { display: inline-flex; align-items: center; gap: 5px; }
.cs-foot-bottom a:hover { color: var(--on-slate); }

/* ---------- Creators API blocks (only where enabled) ---------- */
.api-picks-slot:empty { display: none; }
.api-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 14px; }
.api-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.api-img { display: flex; align-items: center; justify-content: center; height: 150px; background: #fff; border-radius: 8px; overflow: hidden; }
.api-img img { max-width: 100%; max-height: 150px; object-fit: contain; }
.api-title { font-size: 14px; line-height: 1.35; margin: 0; font-weight: 700; font-family: var(--text); }
.api-brand { font-size: 12.5px; color: var(--muted); margin: 0; }
.api-card .api-buy { margin-top: auto; width: 100%; height: auto; white-space: normal; }
.api-disclaimer { font-size: 11px; line-height: 1.5; opacity: .65; margin: 12px 0 0; }
.api-item { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 18px; }
.api-item-img { background: #fff; border-radius: 12px; padding: 16px; display: flex; justify-content: center; border: 1px solid var(--line); }
.api-item-img img { max-width: 100%; max-height: 380px; object-fit: contain; }
.api-sub { font-size: 18px; margin: 24px 0 8px; }
.api-features { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; }

/* the guide's main column decides its own layout (it is narrower than the window when the side rail shows) */
.cs-gmain { container-type: inline-size; }
@container (max-width: 760px) {
  .cs-pdp { grid-template-columns: 210px minmax(0, 1fr); gap: 22px; padding: 20px; }
  .cs-pc { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 600px) {
  .cs-glance { grid-template-columns: minmax(0, 1fr); }
  .cs-gl { display: grid; grid-template-columns: 92px minmax(0, 1fr); grid-auto-flow: dense; column-gap: 14px; row-gap: 6px; align-items: start; }
  .cs-gl > * { grid-column: 2; }
  .cs-gl .cs-rank { grid-column: 1; grid-row: 1; top: 6px; left: 6px; width: 26px; height: 26px; font-size: 12px; }
  .cs-gl-img { grid-column: 1; grid-row: 1 / span 5; aspect-ratio: 1; }
  .cs-pdp { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .cs-pdp-media { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; align-items: start; }
  .cs-pdp-img figcaption { display: none; }
}
@container (max-width: 420px) {
  .cs-pdp-media { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cs-foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-foot-brand, .cs-foot-co { grid-column: span 3; }
  .cs-foot-co { grid-row: 3; }
  .cs-doc { grid-template-columns: 190px minmax(0, 1fr); }
  .cs-cocard { grid-column: 2; position: static; }
  .cs-cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --head-h: 0px; }
  .cs-head { position: relative; top: auto; }
  .cs-head-in { flex-wrap: wrap; gap: 10px 14px; padding-block: 10px; }
  .cs-logo { font-size: 20px; }
  .cs-search { order: 3; flex-basis: 100%; max-width: none; height: 44px; }
  .cs-search button span { display: none; }
  .cs-search button { padding: 0 16px; }
  .cs-links { display: none; }
  .cs-burger { display: inline-flex; }
  .cs-head.nav-open .cs-links { display: flex; flex-direction: column; order: 4; flex-basis: 100%; margin: 0; padding: 6px 0 4px; border-top: 1px solid var(--slate-2); }
  .cs-head.nav-open .cs-links a { padding: 12px 6px; }
  .cs-util nav { display: none; }
  .cs-hero-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 36px 32px; }
  .cs-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-method-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cs-catlayout { grid-template-columns: minmax(0, 1fr); }
  .cs-aisles { display: none; }
  .cs-ghead-in { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cs-ghead-img { aspect-ratio: 16 / 9; }
  .cs-glayout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cs-gside { display: none; }
  .cs-item { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cs-doc { grid-template-columns: minmax(0, 1fr); }
  .cs-doc-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .cs-doc-nav a { flex: none; background: var(--surface); border: 1px solid var(--line); }
  .cs-cocard { grid-column: auto; }
  .api-item { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cs-rows, .cs-plist, .cs-cards3 { grid-template-columns: minmax(0, 1fr); }
  .cs-paper { padding: 22px 18px; }
}
@media (max-width: 520px) {
  .cs-util { font-size: 12px; }
  .cs-hero h1 { font-size: 34px; }
  .cs-hero-sub { font-size: 16.5px; }
  .cs-bigsearch { height: 52px; padding-left: 14px; }
  .cs-bigsearch button { padding: 0 14px; height: 42px; }
  .cs-stats { gap: 12px 26px; }
  .cs-stats dd { font-size: 24px; }
  .cs-depts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cs-dtile { padding: 8px 8px 10px; }
  .cs-dtile strong { font-size: 13.5px; }
  .cs-dtile small { font-size: 12px; }
  .cs-cards4 { grid-template-columns: minmax(0, 1fr); }
  .cs-pgrid { gap: 10px; }
  .cs-pcard { padding: 10px; }
  .cs-pcard h3 { font-size: 14.5px; }
  .cs-pcard .cs-btn { padding: 8px; font-size: 14px; }
  .cs-pcard .buy-note { display: none !important; }
  .cs-sechead h2 { font-size: 24px; }
  .cs-steps { grid-template-columns: minmax(0, 1fr); }
  .cs-card-row .cs-card-img { width: 112px; }
  .cs-phead-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cs-phead-tile { --s: 64px !important; }
  .cs-foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-foot-brand, .cs-foot-co { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
