/* ==========================================================================
   Nail Confidence  ·  design system
   Ported from the Next.js prototype: class names are identical, so the PHP
   templates match the React components one for one.
   Order: tokens · base · chrome · figures · cards · home · archive · article
          · body copy · related · pinterest · footer · utility · responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  --paper: #fffdfc;
  --bg: #fff5f8;
  --bg-2: #ffeaf1;
  --bg-3: #fde8ee;

  --ink: #1d1120;
  --ink-2: #6b5468;
  --ink-3: #9d8797;
  --rule: #f5dce5;
  --rule-2: #fbeef3;

  /* Colourways. Bright, saturated, salon-counter bright. */
  --petal: #ff2f86;
  --coral: #ff6533;
  --lilac: #8b5cf6;
  --mint: #06b0a0;
  --sky: #2589f5;
  --butter: #ef9a00;
  --cherry: #dd0b4e;

  --accent: var(--petal);
  --accent-soft: #ffe1ec;
  --accent-ink: #a3155a;

  --dark: #1d1120;
  --dark-2: #2c1b30;

  --ff-d: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ff-b: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-s: 0 1px 2px rgba(93, 22, 56, .05), 0 3px 10px rgba(93, 22, 56, .05);
  --sh-m: 0 2px 4px rgba(93, 22, 56, .05), 0 12px 28px rgba(93, 22, 56, .09);
  --sh-l: 0 4px 10px rgba(93, 22, 56, .06), 0 26px 56px rgba(93, 22, 56, .14);

  --wrap: 1260px;
  --read: 64ch;

  --nav-h: 68px;
}

.cw-petal  { --accent: var(--petal);  --accent-soft: #ffe1ec; --accent-ink: #a3155a; }
.cw-coral  { --accent: var(--coral);  --accent-soft: #ffe5d9; --accent-ink: #ad3a12; }
.cw-lilac  { --accent: var(--lilac);  --accent-soft: #ece2ff; --accent-ink: #5b28c9; }
.cw-mint   { --accent: var(--mint);   --accent-soft: #d0f4ef; --accent-ink: #0a6f66; }
.cw-sky    { --accent: var(--sky);    --accent-soft: #ddeeff; --accent-ink: #1160b4; }
.cw-butter { --accent: var(--butter); --accent-soft: #ffeecb; --accent-ink: #9a6300; }
.cw-cherry { --accent: var(--cherry); --accent-soft: #ffdbe4; --accent-ink: #9c0736; }

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-b);
  font-size: 17.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--ff-d);
  font-weight: 550;
  line-height: 1.14;
  letter-spacing: -.012em;
  margin: 0;
  /* Softer terminals and the slanted 'g'. Optical sizing is left on auto so
     headings keep weight at 17px and gain detail at 80px. */
  font-variation-settings: "SOFT" 32, "WONK" 1;
}

p { margin: 0 0 1.1em; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--r-s) 0; z-index: 200;
}
.skip:focus { left: 0; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   3. Chrome: masthead, nav, search
   -------------------------------------------------------------------------- */

.mast {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 252, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
}

.brand {
  font-family: var(--ff-d);
  font-size: 25px; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
  /* A word space, since the name is two words. */
  display: inline-flex; align-items: baseline; gap: .17em;
}
.brand b { font-weight: 700; }
.brand span { font-weight: 400; font-style: italic; color: var(--petal); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 6px; flex: 1; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  padding: 8px 11px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--ink-2); white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-2); color: var(--ink); }

.nav-search { position: relative; }
.nav-search input {
  font: inherit; font-size: 14.5px;
  width: 190px; padding: 9px 14px 9px 36px;
  border: 1px solid var(--rule); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  transition: width .22s, border-color .18s;
}
.nav-search input::placeholder { color: var(--ink-3); }
.nav-search input:focus { width: 240px; outline: none; border-color: var(--petal); }
.nav-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }

.nav-pin {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--petal); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700;
  padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: 0 4px 14px rgba(255, 47, 134, .32);
  transition: transform .16s, box-shadow .16s;
}
.nav-pin:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(255, 47, 134, .4); }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-pill); padding: 8px 12px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}

/* --------------------------------------------------------------------------
   4. Figures: the glossy shot, Pinterest save button
   -------------------------------------------------------------------------- */

.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-l); background: var(--accent-soft);
  isolation: isolate;
}
.shot.r23 { aspect-ratio: 2 / 3; }
.shot.r45 { aspect-ratio: 4 / 5; }
.shot.r11 { aspect-ratio: 1 / 1; }
.shot.r32 { aspect-ratio: 3 / 2; }

.shot img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder art while real photography is pending. Reads as lacquer. */
.lacquer {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 22% 12%, rgba(255, 255, 255, .85), transparent 46%),
    radial-gradient(90% 70% at 82% 88%, color-mix(in srgb, var(--accent) 62%, #fff), transparent 60%),
    linear-gradient(152deg, var(--accent-soft), color-mix(in srgb, var(--accent) 34%, #fff));
}
.lacquer::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    118deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 26px);
  mix-blend-mode: soft-light;
}

/* The gloss streak every good nail photo has. */
.sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(107deg, transparent 34%, rgba(255, 255, 255, .3) 46%, transparent 56%);
  opacity: .75;
}

.save {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background: var(--cherry); color: #fff; border: 0;
  font-size: 13px; font-weight: 800; letter-spacing: .01em;
  padding: 9px 17px; border-radius: var(--r-pill);
  opacity: 0; transform: translateY(-5px);
  transition: opacity .18s, transform .18s, background .18s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.shot:hover .save, .save:focus-visible { opacity: 1; transform: none; }
.save:hover { background: #b8093f; }
.save.is-saved { background: var(--ink); }

/* Touch devices never hover, so the button has to be permanently visible. */
@media (hover: none) {
  .save { opacity: 1; transform: none; padding: 7px 14px; font-size: 12px; }
}

/* --------------------------------------------------------------------------
   5. Cards
   -------------------------------------------------------------------------- */

.pin-card { display: block; text-decoration: none; }
.pin-card .card-img { display: block; text-decoration: none; }
.pin-card .shot { box-shadow: var(--sh-s); transition: box-shadow .22s, transform .22s; }
.pin-card:hover .shot { box-shadow: var(--sh-m); transform: translateY(-3px); }

.card-body { padding: 14px 2px 0; }

/* One label, one line, never wraps. */
.card-kick {
  margin: 0 0 9px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ck-cat { color: var(--accent-ink); }
.ck-lay { color: var(--ink-3); }

.card-title {
  font-family: var(--ff-b); font-weight: 600; letter-spacing: -.006em;
  font-size: 18.5px; line-height: 1.36; margin: 0;
  text-wrap: balance;
}
.card-title a { text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s; }
.pin-card:hover .card-title a, .card-title a:hover { background-size: 100% 2px; }

.card-dek { margin: 10px 0 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }

.card-facts { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.fct { display: inline-flex; align-items: center; gap: 5px; }
.fct::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* Lead block: the hero card runs tall, the two stacked cards run wide, so the
   two columns finish at roughly the same height. */
.card-lg .shot { aspect-ratio: 5 / 6; }
.lead-side .shot { aspect-ratio: 3 / 2; }
.card-lg .card-title { font-size: 33px; line-height: 1.18; font-family: var(--ff-d); font-weight: 550; letter-spacing: -.015em; }
.card-lg .card-dek { font-size: 17px; line-height: 1.6; }
.card-md .card-title { font-size: 18.5px; }
.card-sm .card-title { font-size: 17px; line-height: 1.38; }
.card-sm .card-body { padding-top: 13px; }

/* --------------------------------------------------------------------------
   6. Home
   -------------------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 74px 0 66px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(58% 74% at 8% 6%, rgba(255, 47, 134, .2), transparent 62%),
    radial-gradient(52% 66% at 94% 20%, rgba(139, 92, 246, .18), transparent 64%),
    radial-gradient(60% 60% at 60% 108%, rgba(239, 154, 0, .17), transparent 62%);
}
.hero-in { position: relative; z-index: 1; max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 7px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 22px; box-shadow: var(--sh-s);
}
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--petal); }

.hero-h {
  font-size: clamp(44px, 7.4vw, 84px); line-height: .98; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.hero-h em { font-style: italic; color: var(--petal); }

.hero-d { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin: 0 0 30px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn-1 { background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(29, 17, 32, .24); }
.btn-1:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 17, 32, .3); }
.btn-2 { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--sh-s); }
.btn-2:hover { transform: translateY(-2px); box-shadow: var(--sh-m); }

.hero-stats { display: flex; gap: 34px; margin: 38px 0 0; flex-wrap: wrap; }
.stat-num { font-family: var(--ff-d); font-size: 30px; font-weight: 600; line-height: 1; }
.stat-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

/* Lead block: one large card beside two mediums. */
.lead { padding: 8px 0 20px; display: grid; grid-template-columns: 1.32fr 1fr; gap: 30px; align-items: start; }
.lead-side { display: grid; gap: 30px; }

.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 30px; flex-wrap: wrap; }
.sec-title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; }
.sec-title em { font-style: italic; color: var(--petal); }
.sec-sub { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 10px 0 0; max-width: 56ch; }
.sec-all { font-size: 14px; font-weight: 700; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.sec-all:hover { text-decoration: underline; }

.sections { padding: 72px 0 10px; }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 16px; }
.sec-tile {
  position: relative; display: block; text-decoration: none;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-l); padding: 22px 22px 20px;
  overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.sec-tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--accent);
}
.sec-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-m); border-color: transparent; }
.sec-tile h3 { font-size: 21px; margin: 0 0 9px; letter-spacing: -.015em; }
.sec-tile p { font-size: 15px; line-height: 1.58; color: var(--ink-2); margin: 0 0 16px; }
.sec-tile .tile-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); }
.tile-count { color: var(--ink-3); }

.wall { padding: 76px 0 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 32px 26px; }

/* --------------------------------------------------------------------------
   7. Archive
   -------------------------------------------------------------------------- */

.arch-head { padding: 52px 0 34px; position: relative; overflow: hidden; }
.arch-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(56% 100% at 6% 0%, var(--accent-soft), transparent 66%);
}
/* .arch-in used to carry both .wrap and a 760px max-width. Because .wrap sets
   margin-inline auto, the narrower box centred itself and every archive heading
   sat 250px to the right of the grid below it. The measure belongs on the text. */
.arch-in { position: relative; z-index: 1; }
.arch-h { font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -.03em; margin: 12px 0 16px; max-width: 20ch; text-wrap: balance; }
.arch-d { font-size: 18px; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 62ch; }

/* Pages and single articles: the header shares the body's 940px column so the
   title, the standfirst and the first paragraph all start on the same line. */
.arch-head.is-narrow .wrap { width: min(100% - 40px, 940px); }
.arch-count { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }

.chips { display: flex; gap: 9px; flex-wrap: wrap; padding: 0 0 34px; }
.chip {
  display: inline-block; text-decoration: none;
  font-size: 13.5px; font-weight: 700;
  padding: 8px 15px; border-radius: var(--r-pill);
  background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2);
  transition: background .16s, color .16s, border-color .16s;
}
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty {
  border: 1px dashed var(--rule); border-radius: var(--r-l);
  padding: 44px 30px; text-align: center; background: var(--paper);
}
.empty h3 { font-size: 22px; margin: 0 0 10px; }
.empty p { color: var(--ink-2); margin: 0 auto; max-width: 46ch; }

/* --------------------------------------------------------------------------
   8. Article
   -------------------------------------------------------------------------- */

.art { padding-bottom: 30px; }
.art-head { width: min(100% - 40px, 940px); margin: 0 auto; padding: 30px 0 0; }

.crumb { font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent-ink); }
.crumb .here { color: var(--ink-3); }

.kicker { display: flex; align-items: center; gap: 9px; margin: 22px 0 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.k-cat { color: var(--accent-ink); text-decoration: none; }
.k-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }
.k-lay { color: var(--ink-3); }

.art-title { font-size: clamp(33px, 5.2vw, 58px); letter-spacing: -.022em; margin: 0 0 20px; text-wrap: balance; }
.dek { font-size: clamp(17.5px, 2.1vw, 20.5px); line-height: 1.62; color: var(--ink-2); margin: 0 0 26px; max-width: 60ch; }

.rail {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding: 16px 0; border-block: 1px solid var(--rule); margin: 0 0 20px;
}
.rail-i { font-size: 14px; color: var(--ink-2); }
.rail-i b { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }

.share { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0 0 26px; }
.share-lbl { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 3px; }
.sh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink);
  transition: transform .16s, box-shadow .16s, background .16s, color .16s, border-color .16s;
}
.sh:hover { transform: translateY(-1px); box-shadow: var(--sh-s); }
.sh-pin { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.sh-pin:hover { background: #b8093f; border-color: #b8093f; }

.lede { width: min(100% - 40px, 940px); margin: 0 auto 34px; }
.lede .shot { border-radius: var(--r-xl); box-shadow: var(--sh-l); }

.art-wide { width: min(100% - 40px, 940px); margin: 0 auto; }

/* --------------------------------------------------------------------------
   9. Body copy
   -------------------------------------------------------------------------- */

.post-body { font-size: 18px; line-height: 1.78; }
.post-body > p, .post-body > ul, .post-body > ol, .rintro > p, .outro > p { max-width: var(--read); }
/* A rule above every h2 gives the eye a place to stop on a long listicle. */
.post-body h2 {
  font-size: clamp(27px, 3.4vw, 37px); letter-spacing: -.02em;
  margin: 56px 0 18px; padding-top: 30px; max-width: 20ch;
  border-top: 1px solid var(--rule-2); text-wrap: balance;
}
.post-body h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.post-body h3 { font-size: 24px; letter-spacing: -.015em; margin: 0 0 11px; text-wrap: balance; }
.post-body a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); font-weight: 600; }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 1.15em; margin: 0 0 1.3em; max-width: var(--read); }
.post-body li { margin-bottom: .62em; padding-left: .15em; }
.post-body li::marker { color: var(--accent); }
.post-body strong { font-weight: 700; }

.note {
  background: var(--accent-soft); border-radius: var(--r-m);
  padding: 20px 24px; margin: 28px 0; max-width: var(--read);
  border-left: 4px solid var(--accent);
}
.note b { display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.note p:last-child { margin-bottom: 0; }

.jump { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: 24px 26px; margin: 34px 0 40px; }
.jump h2 { font-size: 15px; font-family: var(--ff-b); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.jumplist { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.jumplist li { break-inside: avoid; margin: 0 0 8px; }
.jumplist a { display: flex; gap: 10px; font-size: 15px; text-decoration: none; color: var(--ink-2); font-weight: 600; }
.jumplist a:hover { color: var(--accent-ink); }
.jumplist .n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 800; font-size: 13px; min-width: 20px; }

/* Numbered listicle items: image left, copy right. */
.item {
  display: grid; grid-template-columns: 276px 1fr; gap: 32px;
  padding: 38px 0; border-top: 1px solid var(--rule-2); scroll-margin-top: calc(var(--nav-h) + 20px);
}
.item:first-of-type { border-top: 0; }
.item-shot .shot { border-radius: var(--r-m); box-shadow: var(--sh-s); }
.item-num {
  display: inline-block; font-family: var(--ff-d); font-size: 15px; font-weight: 700;
  color: #fff; background: var(--accent);
  min-width: 30px; text-align: center; padding: 3px 9px;
  border-radius: var(--r-pill); margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.item h3 { margin-bottom: 10px; }
.item p { margin-bottom: .85em; max-width: 56ch; }
.item p:last-child { margin-bottom: 0; }
.item-facts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.fact {
  font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-2);
}
.fact.lvl { background: var(--accent-soft); color: var(--accent-ink); }

/* FAQ */
.faq { margin: 44px 0 0; max-width: var(--read); }
.faq details {
  border-bottom: 1px solid var(--rule); padding: 16px 0;
}
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: 12px 0 0; color: var(--ink-2); }

/* Ad slot, dormant until site.ads.enabled flips. Reserves height either way. */
.adslot { min-height: 280px; margin: 40px auto; max-width: var(--read); display: grid; place-items: center;
  border: 1px dashed var(--rule); border-radius: var(--r-m); color: var(--ink-3); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

/* --------------------------------------------------------------------------
   10. Related, Pinterest band, footer
   -------------------------------------------------------------------------- */

.related { width: min(100% - 40px, var(--wrap)); margin: 64px auto 0; padding-top: 44px; border-top: 1px solid var(--rule); }
.rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 24px; flex-wrap: wrap; }
.rel-head h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.025em; }

.pinband { margin: 72px 0 0; padding: 62px 0; background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.pinband::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(46% 90% at 88% 50%, rgba(255, 47, 134, .3), transparent 66%),
              radial-gradient(40% 80% at 6% 20%, rgba(139, 92, 246, .26), transparent 64%);
}
.pinband-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap; }
.pinband h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 12px; }
.pinband h2 em { font-style: italic; color: #ff87b6; }
.pinband p { color: rgba(255, 255, 255, .74); margin: 0; max-width: 46ch; font-size: 16.5px; }
.pinband .btn-1 { background: var(--petal); box-shadow: 0 8px 26px rgba(255, 47, 134, .4); }

.foot { background: var(--paper); border-top: 1px solid var(--rule); padding: 58px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.foot-brand .brand { font-size: 27px; }
.foot-brand p { font-size: 15px; color: var(--ink-2); margin: 14px 0 0; max-width: 40ch; }
.foot h4 { font-family: var(--ff-b); font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot li a { font-size: 15px; text-decoration: none; color: var(--ink-2); }
.foot li a:hover { color: var(--accent-ink); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.foot-base nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   12. Article components
   Layouts beyond the roundup: guides, comparisons and product picks all need
   blocks a list of items cannot carry.
   -------------------------------------------------------------------------- */

/* Two-column article: body plus a sticky rail. Roundups stay single column. */
.art-grid {
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 54px; align-items: start;
}
.art-main { min-width: 0; }
.side { position: relative; }
.side-stick { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 16px; }

.sbox {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-l); padding: 20px 22px;
}
.sbox-lbl {
  margin: 0 0 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.sbox h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 8px; }
.sbox h3 a { text-decoration: none; }
.sbox h3 a:hover { color: var(--accent-ink); }
.sbox-d { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.sbox-go { font-size: 13.5px; font-weight: 700; color: var(--accent-ink); text-decoration: none; }
.sbox-go:hover { text-decoration: underline; }
.sbox-cat { border-left: 4px solid var(--accent); }

.slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.slist a { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.slist .th {
  flex: 0 0 52px; height: 66px; border-radius: var(--r-s); overflow: hidden;
  background: var(--accent-soft); position: relative;
}
.slist .th img { width: 100%; height: 100%; object-fit: cover; }
.slist .sl-t { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.slist a:hover .sl-t { color: var(--accent-ink); }

/* Sticky table of contents. */
.toc-lbl {
  margin: 0 0 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 46vh; overflow-y: auto; }
.toc-list a {
  display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2);
  text-decoration: none; padding: 6px 10px; border-radius: var(--r-s);
  border-left: 2px solid transparent;
}
.toc-list a:hover { background: var(--bg-2); color: var(--ink); }
.toc-list a.current { border-left-color: var(--accent); color: var(--ink); font-weight: 600; }

/* At a glance. */
.spec {
  list-style: none; margin: 0 0 30px; padding: 18px 22px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-m);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 22px;
  max-width: var(--read);
}
.spec li { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.spec b {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
}
.spec span { font-size: 15px; font-weight: 600; }

/* Checklist. Ticking a box is genuinely useful when you are shopping. */
.tick { list-style: none; margin: 0 0 1.3em; padding: 0; max-width: var(--read); }
.tick li { margin: 0 0 8px; padding: 0; }
.tick label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 16.5px; line-height: 1.5; }
.tick input { appearance: none; flex: 0 0 20px; height: 20px; margin-top: 2px;
  border: 2px solid var(--rule); border-radius: 6px; background: var(--paper); cursor: pointer;
  transition: background .15s, border-color .15s; }
.tick input:checked { background: var(--accent); border-color: var(--accent); }
.tick input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.tick label:hover input { border-color: var(--accent); }

/* Callout variants beside .note. */
.tip, .warn {
  border-radius: var(--r-m); padding: 20px 24px; margin: 28px 0;
  max-width: var(--read); border-left: 4px solid;
}
.tip b, .warn b {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 8px;
}
.tip p:last-child, .warn p:last-child { margin-bottom: 0; }
.tip { background: #eefaf7; border-left-color: var(--mint); }
.tip b { color: #0a6f66; }
.warn { background: #fff3e6; border-left-color: var(--butter); }
.warn b { color: #9a6300; }

/* Numbered steps. Every h2 inside becomes a step. */
.steps { counter-reset: nc-step; }
.steps > h2 {
  counter-increment: nc-step; position: relative;
  padding-left: 58px; padding-top: 0; border-top: 0; margin: 44px 0 14px; min-height: 44px;
  display: flex; align-items: center;
}
.steps > h2::before {
  content: counter(nc-step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--ff-b); font-size: 15px; font-weight: 800;
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
.steps > h2:first-of-type { margin-top: 24px; }

/* Cost comparison bars. */
.costs { margin: 28px 0; max-width: var(--read); display: grid; gap: 10px; }
.costrow { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 14px; align-items: center; font-size: 15px; }
.costrow .nm { font-weight: 600; }
.costrow .track { height: 10px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.costrow .fill { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.costrow .amt { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Comparison table.
   Wide screens get a real table. Narrow screens get one card per row, because
   a table that scrolls sideways cuts text off and nobody scrolls it. */
.tablewrap { margin: 28px 0; max-width: var(--read); }
.compare-table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.compare-table th,
.compare-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.compare-table thead th {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--rule); white-space: nowrap;
}
.compare-table tbody tr:last-child td,
.compare-table tbody tr:last-child th { border-bottom: 0; }
.compare-table th[scope="row"] { font-weight: 700; padding-left: 0; white-space: nowrap; }
.compare-table td:last-child { padding-right: 0; }

@media (max-width: 780px) {
  /* One card per row. The column header rides along on each cell as a
     data-label, so every value still says what it is. */
  .compare-table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td { display: block; width: auto; }

  .compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .compare-table tbody tr {
    background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--r-m); padding: 4px 18px 14px;
    margin-bottom: 12px; box-shadow: var(--sh-s);
  }
  .compare-table tbody tr:last-child { margin-bottom: 0; }

  .compare-table th[scope="row"] {
    font-family: var(--ff-d); font-size: 20px; font-weight: 550; letter-spacing: -.015em;
    padding: 14px 0 10px; border-bottom: 1px solid var(--rule-2); white-space: normal;
  }

  .compare-table td {
    display: grid; grid-template-columns: 40% 1fr; gap: 14px; align-items: baseline;
    padding: 9px 0; border-bottom: 1px solid var(--rule-2); font-size: 15.5px;
  }
  .compare-table tbody tr td:last-child { border-bottom: 0; padding-bottom: 2px; }

  .compare-table td::before {
    content: attr(data-label);
    font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-3); line-height: 1.5;
  }
}

/* The hint only ever applied to the scrolling version, which is gone. */
.scroll-hint { display: none; }

/* Verdict box for product picks. */
.verdict {
  background: var(--accent-soft); border-radius: var(--r-l);
  padding: 22px 26px; margin: 0 0 30px; max-width: var(--read);
  border-left: 4px solid var(--accent);
}
.v-lbl {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px;
}
.v-name { font-family: var(--ff-d); font-size: 25px; font-weight: 550; letter-spacing: -.02em; margin: 0 0 8px; }
.v-why { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* Troubleshooting: symptom, cause, fix. */
.faults { margin: 30px 0; }
.fault { border-top: 1px solid var(--rule-2); padding: 28px 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.fault:first-child { border-top: 0; }
.fault-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fault-top .idx {
  font-family: var(--ff-b); font-size: 12px; font-weight: 800; color: #fff;
  background: var(--accent); padding: 4px 10px; border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}
.fault-top h3 { margin: 0; font-size: 22px; }
.verdict-tag {
  font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pill);
}
.v-save { background: #d7f2ec; color: #0a6f66; }
.v-rework { background: #ffeecb; color: #9a6300; }
.v-bin { background: #ffdbe4; color: #9c0736; }
.fault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fault-grid h4 {
  font-family: var(--ff-b); font-size: 11.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 7px;
}
.fault-grid p { margin: 0; font-size: 16px; line-height: 1.6; }
.fault-grid .fix { background: var(--accent-soft); border-radius: var(--r-m); padding: 16px 18px; }
.fault-grid .fix h4 { color: var(--accent-ink); }

/* Pagination. This markup was being emitted with no styles at all. */
.pagination { margin: 46px 0 10px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-numbers {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--paper);
  font-size: 15px; font-weight: 700; color: var(--ink-2); text-decoration: none;
  transition: border-color .16s, color .16s, background .16s;
}
.page-numbers:hover { border-color: var(--accent); color: var(--ink); }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-numbers.dots { border-color: transparent; background: none; }

@media (max-width: 1080px) {
  .art-grid { grid-template-columns: 1fr; gap: 0; }
  .side { display: none; }
}
@media (max-width: 720px) {
  .art-grid { width: min(100% - 30px, var(--wrap)); }
  .steps > h2 { padding-left: 50px; min-height: 38px; }
  .steps > h2::before { width: 36px; height: 36px; font-size: 13px; }
  .fault-grid { grid-template-columns: 1fr; gap: 16px; }
  .costrow { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .costrow .track { grid-column: 1 / -1; }
  .verdict { padding: 18px 20px; }
  .v-name { font-size: 22px; }
  .sbox { padding: 18px 20px; }
  .spec { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); padding: 16px 18px; }
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .lead { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-search { display: none; }
}

@media (max-width: 720px) {
  /* Mobile is the primary surface here, so text gets larger rather than
     smaller: 17px base, looser leading, and a shorter measure. */
  body { font-size: 17px; line-height: 1.72; }
  .wrap, .nav { width: min(100% - 30px, var(--wrap)); }
  .art-head, .lede, .art-wide, .related { width: min(100% - 30px, 940px); }

  .brand { font-size: 22px; }
  .nav { gap: 12px; }
  .nav-pin { padding: 8px 13px; font-size: 13px; }
  .nav-toggle { padding: 9px 13px; }

  .hero { padding: 44px 0 46px; }
  .hero-h { letter-spacing: -.022em; }
  .hero-d { font-size: 17px; line-height: 1.64; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { gap: 26px; margin-top: 32px; }

  /* Section rhythm needs more air on a narrow column, not less. */
  .sections { padding: 56px 0 6px; }
  .wall { padding: 58px 0 18px; }
  .sec-head { margin-bottom: 24px; }
  .sec-title { font-size: clamp(27px, 8vw, 34px); }

  /* Ten full-width tiles ran to 2000px of scroll. On a phone the section name
     and the count are the whole decision, so the blurb goes and they pair up. */
  .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sec-tile { padding: 16px 16px 14px; border-radius: var(--r-m); }
  .sec-tile p { display: none; }
  .sec-tile h3 { font-size: 17px; line-height: 1.25; margin-bottom: 12px; min-height: 2.5em; }
  .sec-tile .tile-foot { font-size: 12px; }

  /* A pin grid stays two-up on mobile. Collapsing it to one column tripled the
     page height without making anything more readable. The archive grid, which
     carries a dek under every card, does go single column. */
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .grid-3 { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 .card-title {
    font-size: 15.5px; line-height: 1.38; overflow-wrap: break-word;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .grid-4 .card-facts { gap: 10px; font-size: 12px; }
  .card-body { padding-top: 12px; }
  .card-kick { font-size: 10.5px; letter-spacing: .09em; margin-bottom: 7px; }
  .card-title, .card-md .card-title, .card-sm .card-title {
    font-size: 17px; line-height: 1.42; letter-spacing: 0;
  }
  .card-dek { font-size: 15px; line-height: 1.6; }
  .card-facts { gap: 12px; font-size: 12.5px; margin-top: 10px; }
  /* Read time alone is enough under a two-up card. */
  .card-sm .card-facts .fct:first-child { display: none; }

  /* The lead block and the archive grid stay single column and full width. */
  .lead { gap: 26px; }
  .lead .card-lg .shot { aspect-ratio: 4 / 5; }
  .lead .card-lg .card-title { font-size: 26px; line-height: 1.24; }

  /* The two runners-up become compact rows so they read as "next up" rather
     than as two more full-bleed heroes. */
  .lead-side { gap: 18px; }
  .lead-side .pin-card { display: grid; grid-template-columns: 116px 1fr; gap: 16px; align-items: center; }
  .lead-side .shot { aspect-ratio: 1 / 1; border-radius: var(--r-m); }
  .lead-side .card-body { padding: 0; }
  .lead-side .card-dek { display: none; }
  .lead-side .card-title { font-size: 17px; line-height: 1.36; }
  .lead-side .card-kick { margin-bottom: 6px; }
  .lead-side .card-facts { margin-top: 8px; font-size: 12px; }

  .arch-head { padding: 40px 0 26px; }
  .arch-d { font-size: 17px; line-height: 1.62; }
  .chips { padding-bottom: 28px; gap: 8px; }
  .chip { padding: 9px 15px; }

  /* Article */
  .art-head { padding-top: 22px; }
  .rail { gap: 16px 22px; padding: 15px 0; }
  .rail-i { font-size: 14.5px; }
  .lede { margin-bottom: 30px; }
  .lede .shot { border-radius: var(--r-l); }
  .post-body { font-size: 17.5px; line-height: 1.8; }
  .post-body h2 { font-size: clamp(25px, 7vw, 30px); margin: 44px 0 16px; padding-top: 26px; max-width: none; }
  .post-body h3 { font-size: 22px; }
  .note { padding: 18px 20px; }
  .jump { padding: 20px 20px; }
  .jumplist { columns: 1; }
  .jumplist a { font-size: 15.5px; padding: 3px 0; }

  /* Stacked item: image, then number, heading, facts, copy. */
  .item { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
  .item-shot { max-width: 100%; }
  .item-shot .shot { aspect-ratio: 3 / 2; }
  .item p { max-width: none; }
  .item-num { margin-bottom: 12px; }

  .faq summary { font-size: 16.5px; }

  .pinband { padding: 48px 0; }
  .pinband p { font-size: 16px; }
  .related { margin-top: 46px; padding-top: 36px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot { padding: 46px 0 30px; }
}

@media (max-width: 360px) {
  /* Below this a two-up card is too narrow to hold a headline. */
  .grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 .card-title { font-size: 17px; -webkit-line-clamp: none; }
}

/* Cookie notice */

/* A bare `display: flex` beats the browser's own `[hidden] { display: none }`,
   so the bar stayed on screen after Got it was clicked and flashed on every
   load before the script ran. This has to win, hence !important. */
.cookie[hidden] { display: none !important; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--r-l); padding: 16px 20px;
  box-shadow: var(--sh-l); max-width: 720px; margin-inline: auto;
}
.cookie p { margin: 0; flex: 1 1 260px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cookie a { color: var(--accent-ink); font-weight: 600; }
.cookie .btn { padding: 10px 20px; font-size: 14px; }
@media (max-width: 520px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 12px; }
  .cookie .btn { width: 100%; justify-content: center; }
}

/* Mobile drawer */
.drawer { display: none; }
.drawer.open { display: block; border-top: 1px solid var(--rule); background: var(--paper); padding: 14px 0 20px; }
.drawer .wrap { display: grid; gap: 4px; }
.drawer a { text-decoration: none; font-weight: 700; font-size: 16px; padding: 11px 12px; border-radius: var(--r-m); color: var(--ink-2); }
.drawer a:hover { background: var(--bg-2); color: var(--ink); }
