/* Public buyer guides. Uses the existing Goon Packs tokens from site.css. */

.blog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.blog-nav { display: flex; align-items: center; gap: 2px; }
.blog-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  border-radius: var(--pill); color: var(--ink-muted); font-weight: 600; text-decoration: none;
}
.blog-nav a[aria-current="page"] { color: var(--brand); }
@media (hover: hover) { .blog-nav a:hover { color: var(--ink); background: var(--lilac); } }

.blog-home { max-width: 1120px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.blog-hero { max-width: 760px; }
.blog-label { color: var(--brand); font: 700 15px/22px var(--font-sans); }
.blog-home h1, .article-head h1 {
  margin-top: 10px; font: 800 clamp(40px, 7vw, 72px)/0.98 var(--font-display);
  letter-spacing: -0.035em; text-wrap: balance;
}
.blog-intro, .article-deck {
  max-width: 680px; margin-top: 20px; color: var(--ink-muted);
  font: 400 19px/29px var(--font-sans);
}
.guide-list {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
  margin: 48px 0 0; padding: 0; list-style: none;
}
.guide-card {
  display: flex; flex-direction: column; min-height: 100%; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised);
}
.guide-number { color: var(--brand); font: 700 15px/22px var(--font-sans); }
.guide-card h2 { margin-top: 28px; font: 800 28px/31px var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.guide-card h2 a { text-decoration: none; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.guide-card { position: relative; }
.guide-card p { margin-top: 12px; color: var(--ink-muted); font-size: 17px; line-height: 25px; }
.guide-meta { margin-top: auto !important; padding-top: 28px; font-weight: 600; }
@media (hover: hover) {
  .guide-card { transition: border-color 150ms ease-out, transform 150ms ease-out; }
  .guide-card:hover { border-color: var(--brand); transform: translateY(-2px); }
}

.note, .formula {
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised);
}
.note strong, .formula strong { display: block; margin-bottom: 6px; }
.formula { border-color: var(--brand); }
.comparison { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 23px; }
.comparison th, .comparison td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison th { font-weight: 700; }
.comparison th:first-child, .comparison td:first-child { padding-left: 0; }
.comparison th:last-child, .comparison td:last-child { padding-right: 0; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
.table-wrap .comparison { min-width: 580px; }
.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border: 2px solid var(--brand); border-radius: 5px;
}
.article-cta {
  max-width: 720px; margin-top: 56px; padding: 28px;
  border-radius: var(--radius-lg); background: var(--night); color: #F6EEF2;
}
.article-cta h2 { margin: 0; font: 800 28px/31px var(--font-display); letter-spacing: -0.02em; }
.article-cta p { margin-top: 10px; color: #A89CAD; font-size: 16px; line-height: 24px; }
.article-cta .btn { width: 100%; margin-top: 20px; white-space: normal; text-align: center; }
/* .article-body a paints links pink; without this the label matches the pill and vanishes. */
.article-cta .btn-primary { color: var(--on-brand); }
.related { max-width: 720px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font: 800 24px/28px var(--font-display); }
.related ul { margin: 12px 0 0; padding-left: 20px; }
.related li + li { margin-top: 8px; }
.related a { color: var(--brand); }

@media (min-width: 760px) {
  .guide-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-card { padding: 28px; }
}

/* The post card, after the glass card on 21st.dev: a frosted panel over a soft colour wash, a
   16:9 image that zooms on hover, and an author row under a hairline. Built in CSS;
   the original is React with framer-motion, which this site has no build step for. */
.blog-home { position: relative; }
/* Glass needs something behind it to blur, and this page is otherwise flat */
.blog-home::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38rem 26rem at 10% 4%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%),
    radial-gradient(32rem 24rem at 90% 24%, color-mix(in srgb, var(--lilac) 55%, transparent), transparent 72%),
    radial-gradient(30rem 22rem at 58% 96%, color-mix(in srgb, var(--lemon) 12%, transparent), transparent 70%);
}
.guide-list, .featured-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }

.featured {
  display: block; overflow: hidden; max-width: 420px; margin-top: 40px; padding: 0;
  border-radius: 18px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--surface-raised) 42%, transparent);
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.22), inset 0 1px 0 color-mix(in srgb, #FFFFFF 18%, transparent);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .featured { -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
/* Without the blur the text would sit on whatever is behind it, so the panel goes solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .featured { background: var(--surface-raised); }
}

.featured-art {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 100% at 25% 15%, #3B2E55 0%, #17131A 70%);
}
.featured-art img { width: min(58%, 260px); height: auto; }
/* The cover fills the 16:9 frame edge to edge; the logo rule above only sized a mark inside it */
.featured-art img.featured-cover { width: 100%; height: 100%; object-fit: cover; }

/* The pointer-only flourish. Touch and keyboard get the card link itself, which always works. */
/* Dark and blurred enough that the brand pill underneath cannot read through a pink button */
.featured-peek { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgb(23 19 26 / 0.72); }
@supports (backdrop-filter: blur(1px)) { .featured-peek { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); } }
.featured-peek-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: var(--pill);
  background: var(--brand); color: var(--on-brand); font: 600 15px/22px var(--font-sans);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent);
}

.featured-copy { display: block; padding: 18px 20px 20px; }
.featured h2 { margin: 0; font: 800 clamp(24px, 3vw, 30px)/1.12 var(--font-display); letter-spacing: -0.02em; max-width: none; }
.featured h2 a { color: var(--ink); text-decoration: none; }
.featured-excerpt { margin-top: 8px; max-width: none; color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.card-by { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.card-by-avatar { border-radius: 50%; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.card-by-name { color: var(--ink); font: 600 14px/20px var(--font-sans); }
.card-by-time { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--ink-muted); font: 500 13px/18px var(--font-sans); }
.featured .guide-meta { margin: 0 !important; padding: 0; font: inherit; }

@media (hover: hover) {
  .featured:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 22px 54px color-mix(in srgb, var(--brand) 16%, rgb(0 0 0 / 0.26)); }
  .featured:hover h2 a { color: var(--brand); }
  .featured:hover .featured-peek { opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .featured, .featured h2 a { transition: border-color 300ms ease-out, box-shadow 300ms ease-out, color 300ms ease-out; }
  .featured-art img { transition: transform 500ms ease-out; }
  .featured-peek { transition: opacity 300ms ease-out; }
  .featured:hover .featured-art img { transform: scale(1.08); }
}

@media (max-width: 600px) {
  .blog-bar { align-items: flex-start; }
  .blog-nav { flex-wrap: wrap; justify-content: flex-end; }
  .blog-nav a { min-height: 36px; padding-inline: 8px; font-size: 14px; }
  .blog-home { padding-top: 40px; }
  .blog-home h1 { font-size: 40px; line-height: 40px; }
}

/* The nav is a floating pill whose items open a panel on hover or keyboard focus. No script: the
   blog pages allow none, so this is :hover and :focus-within only. */
.blog-bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface-raised) 88%, transparent); backdrop-filter: blur(10px); }
.blog-nav {
  gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--surface-raised); box-shadow: 0 6px 20px rgb(0 0 0 / 0.06);
}
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--pill); color: var(--ink-muted); font-weight: 600; text-decoration: none; }
.nav-item > a[aria-current="page"] { color: var(--brand); }
@media (hover: hover) { .nav-item > a:hover { color: var(--ink); background: var(--lilac); } }
.nav-item > a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* The legal panel hangs off a menu icon instead of the word Terms: square box, no text padding,
   and the name the word used to give now lives in aria-label. */
.nav-item > a.nav-menu { width: 40px; padding: 0; justify-content: center; }
.nav-menu svg { display: block; width: 20px; height: 20px; }

/* Right-aligned to its item: the nav sits at the right edge, so centring a panel under an item
   pushed it past the viewport and gave the page a horizontal scrollbar. */
.nav-panel { position: absolute; top: calc(100% + 10px); right: 0; padding-top: 4px; opacity: 0; visibility: hidden; }
.nav-panel-inner {
  display: grid; gap: 4px; width: max-content; max-width: min(92vw, 420px); padding: 10px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--surface-raised);
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.18);
}
.nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .nav-panel { transition: opacity 160ms ease-out, visibility 160ms, translate 160ms ease-out, scale 160ms ease-out; translate: 0 6px; scale: 0.97; transform-origin: top right; }
  .nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel { translate: 0 0; scale: 1; }
}
.nav-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 600; text-decoration: none; }
@media (hover: hover) { .nav-panel a:hover { background: var(--lilac); } }
.nav-panel a:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.nav-feature { align-items: flex-start !important; max-width: 360px; }
.nav-feature img { flex: none; border-radius: 10px; }
.nav-feature span { display: grid; gap: 2px; font-weight: 400; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.nav-feature strong { color: var(--ink); font-size: 15px; line-height: 22px; }
.nav-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-pack-art { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--lilac); }
.nav-pack-art svg { width: 26px; height: 26px; }
@media (max-width: 600px) {
  .blog-nav { gap: 2px; padding: 4px; }
  /* 44px stays the smallest thing worth tapping, even when the labels shrink */
  .nav-item > a { min-height: 44px; padding: 0 10px; font-size: 14px; }
  .nav-item > a.nav-menu { width: 44px; padding: 0; }
  .nav-panel-inner { max-width: min(92vw, 320px); }
  .nav-packs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- One column for every blog page ----------
   The guide's content floated in the middle of a page whose header and footer ran edge to edge, so
   nothing lined up. Header, content and footer now share one measured column. */
:root {
  --blog: 1040px;
  --blog-edge: max(var(--gutter), (100% - var(--blog)) / 2);
}
.blog-bar { padding-inline: var(--blog-edge); }
.blog-home { max-width: none; padding-inline: var(--blog-edge); }
.site-footer { padding-inline: var(--blog-edge); }

/* ---------- The guide, layout 3b: a sticky "On this page" rail and one reading column ---------- */
.guide { padding: 48px var(--blog-edge) 96px; }
.guide-rail { display: none; }

.article-body { max-width: 680px; color: var(--ink); font: 400 18px/30px var(--font-sans); }
/* Anchored sections land below the sticky header rather than under it */
.article-body [id] { scroll-margin-top: 96px; }

.guide-head { display: flex; flex-direction: column; gap: 16px; }
.crumbs { display: flex; gap: 8px; color: var(--ink-muted); font: 500 13px/18px var(--font-sans); }
.crumbs a { color: inherit; text-decoration: none; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); text-decoration: underline; } }
.crumb-sep { color: var(--ink-muted); }
.guide-head h1 { font: 800 clamp(36px, 5vw, 46px)/1.05 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-muted); font: 500 14px/20px var(--font-sans); }
.byline-mark { width: 28px; height: 28px; border-radius: 50%; }
.byline-name { color: var(--ink); font-weight: 600; }

.guide-intro { margin-top: 32px; }
.guide-intro p + p { margin-top: 18px; }
.article-body .lead { font: 500 21px/33px var(--font-sans); }

/* Sections are separated by space and a heading, not by boxes: prose belongs in the column */
.article-body section { margin-top: 48px; }
.article-body h2 { font: 800 28px/1.2 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.article-body h2 + p { margin-top: 14px; }
.article-body strong { font-weight: 700; }
.category { margin-top: 32px !important; }
.article-body h3 { font: 700 21px/1.25 var(--font-display); letter-spacing: -0.01em; }
.category h3 + p { margin-top: 10px; }
/* One plain link per category. The pink stays on the single call to action. */
.category-link { margin-top: 12px; }
.category-link a { color: var(--ink); font: 600 15px/22px var(--font-sans); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (hover: hover) { .category-link a:hover { color: var(--brand); } }
.article-body a:focus-visible, .toc a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.guide-end { margin-top: 56px; }
.guide-end .btn { width: 100%; }
/* The same call to action the rest of the site uses: the deeper pink with a white label, which is
   4.57:1 where the bright accent under white is 2.9:1. It leaves the page, so it carries an arrow. */
.guide-rail .btn-primary, .guide-end .btn-primary { gap: 8px; background: var(--brand-deep); color: #FFFFFF; text-decoration: none; }
.guide-rail .btn-primary svg, .guide-end .btn-primary svg { flex: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .guide-rail .btn-primary svg, .guide-end .btn-primary svg { transition: transform 150ms ease-out; }
  .guide-rail .btn-primary:hover svg, .guide-end .btn-primary:hover svg { transform: translateX(3px); }
}
.guide-end .btn { border-radius: 12px; }
/* One fact under the button, in the conventional form: where the price starts */
.cta-note { margin-top: 8px; color: var(--ink-muted); text-align: center; font: 500 13px/18px var(--font-sans); }

/* The rail */
.toc-title { color: var(--ink-muted); font: 600 13px/18px var(--font-sans); }
.toc { display: flex; flex-direction: column; margin: 12px 0 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a {
  display: block; margin-left: -1px; padding: 7px 14px; border-left: 2px solid transparent;
  color: var(--ink-muted); font: 500 14px/20px var(--font-sans); text-decoration: none;
}
@media (hover: hover) { .toc a:hover { color: var(--ink); } }
.rail-cta { margin-top: 20px; }
.rail-cta .btn { width: 100%; min-height: 46px; border-radius: 12px; font-size: 15px; }

/* The marker follows the section in view. scroll-target-group needs no script (Chrome, Edge, Arc
   140+). Kept as its own rule: an unknown pseudo-class would void any selector list it sat in. */
.toc { scroll-target-group: auto; }
.toc a:target-current { border-left-color: var(--ink); color: var(--ink); font-weight: 650; }
/* Where it is not supported (Safari, Firefox): Overview on arrival, then whichever section was clicked */
@supports not (scroll-target-group: auto) {
  .toc li:first-child a { border-left-color: var(--ink); color: var(--ink); font-weight: 650; }
  .guide:has(:target) .toc li:first-child a { border-left-color: transparent; color: var(--ink-muted); font-weight: 500; }
  .guide:has(#overview:target) .toc a[href="#overview"],
  .guide:has(#stock:target) .toc a[href="#stock"],
  .guide:has(#the-pawg-lover:target) .toc a[href="#the-pawg-lover"],
  .guide:has(#busty-but-slim:target) .toc a[href="#busty-but-slim"],
  .guide:has(#thick-hourglass:target) .toc a[href="#thick-hourglass"],
  .guide:has(#the-chocolate-lover:target) .toc a[href="#the-chocolate-lover"],
  .guide:has(#pricing:target) .toc a[href="#pricing"] { border-left-color: var(--ink); color: var(--ink); font-weight: 650; }
}

/* Wide enough for both: the rail appears, sticks under the header, and carries the one CTA */
@media (min-width: 1000px) {
  /* Starts at the column's left edge, so the rail lines up under the logo instead of floating inside */
  .guide { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 64px; padding-top: 56px; }
  .guide-rail { display: block; position: sticky; top: 96px; align-self: start; margin-top: 152px; }
  .guide-end { display: none; }
}
@media (max-width: 600px) {
  .article-body { font-size: 17px; line-height: 28px; }
  .article-body .lead { font-size: 19px; line-height: 30px; }
  .article-body h2 { font-size: 24px; }
}
