/* ==========================================================================
   Celliara Guide V2 — long-form editorial explanation

   Loaded only on posts assigned template-guide-v2.php (a separate system; the
   legacy guide stylesheets are untouched). Same publication as Review, Best Of,
   Compare and Category Hub V2 (tokens copied, not imported) with its own
   identity: an annotated article. The question and its short answer are the
   one memorable moment; the rest is a quiet reading column with a contents
   rail and editorial notes in the margin of the text.
   Namespace: .gv2 / .gv2-*.
   ========================================================================== */

.page-guide-v2 {
  --gv2-ink: #050504;
  --gv2-raised: #0e0e0b;
  --gv2-line: rgba(255, 255, 255, 0.1);
  --gv2-line-strong: rgba(255, 255, 255, 0.18);
  --gv2-gold: #c8a86a;
  --gv2-gold-bright: #e2c88e;
  --gv2-gold-line: rgba(200, 168, 106, 0.4);
  --gv2-gold-wash: rgba(200, 168, 106, 0.05);
  --gv2-ivory: #f1ecdf;
  --gv2-copy: #d3ccbd;
  --gv2-muted: #a0998a;

  --gv2-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", serif;
  --gv2-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gv2-small: 0.875rem;
  --gv2-body: 1.125rem;

  /* Desktop frame (owner direction 2026-10-12): the same 1640px frame and 28px gutter as Review V2
     (review-v2-body.css --rv2p-frame), so guides and reviews read as one publication. Inside it,
     ONE article column beside the contents rail: every element shares its edges, and its width is
     the reading limit (760px at 18px; 800px from 1600px at 19px, so lines stay the same length). */
  --gv2-column: 760px;
  --gv2-rail: 248px;
  --gv2-gap: clamp(40px, 5vw, 80px);
  --gv2-wide: 1640px;
  --gv2-gutter: clamp(18px, 4vw, 48px);
  --gv2-radius: 6px;
  --gv2-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  background: var(--gv2-ink);
  color: var(--gv2-copy);
  font-family: var(--gv2-sans);
}

html:has(> body.page-guide-v2) {
  color-scheme: dark;
  scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(> body.page-guide-v2) {
    scroll-behavior: smooth;
  }
}

html:has(> body.page-guide-v2),
body.page-guide-v2 {
  overflow-x: clip !important;
}

.page-guide-v2 .gv2 {
  margin-inline: calc(-1 * var(--spacing-md, 16px));
  display: block;
  background: var(--gv2-ink);
  color: var(--gv2-copy);
  font-size: var(--gv2-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-bottom: clamp(48px, 6vw, 96px);
}

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

/* Site chrome styles bare elements (p/h2 margins, every <nav> as the fixed
   header, every <section> padded). Reset at low specificity. */
html :where(.gv2) p,
html :where(.gv2) ul,
html :where(.gv2) ol,
html :where(.gv2) h1,
html :where(.gv2) h2,
html :where(.gv2) h3,
html :where(.gv2) h4,
html :where(.gv2) figure {
  margin: 0;
}

html :where(.gv2) section,
html :where(.gv2) header,
html :where(.gv2) aside {
  padding: 0;
}

html :where(.gv2) nav {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  height: auto;
  padding: 0;
  background: none;
  transition: none;
}

.page-guide-v2 #page.site.grid-container {
  --max-width: none;
}

.gv2 a:focus-visible,
.gv2 summary:focus-visible {
  outline: 2px solid var(--gv2-gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.gv2-wrap {
  width: 100%;
  max-width: calc(var(--gv2-wide) + 2 * var(--gv2-gutter));
  margin-inline: auto;
  padding-inline: var(--gv2-gutter);
}

/* ── Hero: the question ───────────────────────────────────────────────────── */

.gv2-hero {
  padding-top: clamp(28px, 4vw, 56px);
}

.gv2-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  font-size: 0.8125rem;
  color: var(--gv2-muted);
}

.gv2-crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  opacity: 0.55;
}

.gv2-crumbs a {
  color: var(--gv2-muted);
  text-decoration: none;
}

.gv2-crumbs a:hover {
  color: var(--gv2-ivory);
}

.gv2-crumbs [aria-current] {
  color: var(--gv2-copy);
}

.gv2-hero__kicker {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--gv2-serif);
  font-style: italic;
  font-size: 1.1875rem;
  color: var(--gv2-gold);
}

.gv2-hero__kicker a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gv2-gold-line);
  text-underline-offset: 4px;
}

.gv2-hero__kicker a:hover {
  color: var(--gv2-gold-bright);
}

.gv2-hero__title {
  margin-top: 12px;
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: clamp(2.375rem, 5.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--gv2-ivory);
  text-wrap: balance;
}

.gv2-hero__deck {
  margin-top: clamp(18px, 2vw, 26px);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--gv2-copy);
}

.gv2-byline {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--gv2-line);
  display: grid;
  gap: 6px;
  font-size: var(--gv2-small);
  line-height: 1.55;
  color: var(--gv2-muted);
}

.gv2-byline__who {
  color: var(--gv2-copy);
}

.gv2-byline a {
  color: var(--gv2-ivory);
  text-decoration: underline;
  text-decoration-color: var(--gv2-line-strong);
  text-underline-offset: 3px;
}

.gv2-byline a:hover {
  text-decoration-color: var(--gv2-gold);
}

.gv2-byline__sep {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 12px;
  vertical-align: -0.1em;
  background: var(--gv2-line-strong);
}

/* ── The short answer: the page's one bold moment ─────────────────────────── */

.gv2-answer {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--gv2-gold);
}

.gv2-answer__label {
  font-family: var(--gv2-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gv2-gold);
}

.gv2-answer__text {
  margin-top: 10px;
  font-family: var(--gv2-serif);
  font-size: clamp(1.375rem, 2.3vw, 1.6875rem);
  line-height: 1.45;
  color: var(--gv2-ivory);
}

/* ── Article layout: one grid for question, contents rail and reading column ─ */

.gv2-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.gv2-hero,
.gv2-answer,
.gv2-body {
  min-width: 0;
}

.gv2-rail {
  margin-top: clamp(32px, 4vw, 48px);
}

.gv2-body {
  margin-top: clamp(32px, 4vw, 56px);
}

@media (min-width: 1100px) {
  /* Rail and article are one composition, centred in the Review V2 frame (owner direction
     2026-10-12) so the outer margins balance; at 1100px it fills the frame. */
  .gv2-layout {
    grid-template-columns: var(--gv2-rail) minmax(0, var(--gv2-column));
    justify-content: center;
    column-gap: var(--gv2-gap);
    grid-auto-rows: auto;
  }

  .gv2-layout > * {
    grid-column: 2;
  }

  .gv2-layout > .gv2-rail {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin-top: clamp(72px, 7vw, 104px);
  }

  .gv2-rail .gv2-toc {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .gv2-body {
    margin-top: clamp(48px, 5vw, 72px);
  }
}

@media (min-width: 1100px) {
  .page-guide-v2 {
    --gv2-gutter: 28px;
    --gv2-rail: 260px;
  }
}

/* ONE article column (owner direction 2026-10-12): hero, short answer, headings, prose, notes,
   tables, examples, sources and the closing decision modules all share its left and right edges.
   From 1100px it sits beside the contents rail; below that it fills the screen. Notes stay inline
   beneath the text they explain. */
.gv2-hero,
.gv2-answer,
.gv2-body,
.gv2-next {
  width: 100%;
  max-width: var(--gv2-column);
}

@media (min-width: 1600px) {
  .page-guide-v2 {
    --gv2-column: 800px;
  }

  .page-guide-v2 .gv2 {
    font-size: 1.1875rem;
  }
}

/* Contents */
.gv2-toc__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  font-family: var(--gv2-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--gv2-gold);
}

.gv2-toc__summary::-webkit-details-marker {
  display: none;
}

.gv2-toc__summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
}

.gv2-toc__details[open] > .gv2-toc__summary::after {
  transform: rotate(-135deg);
}

.gv2-toc__list {
  list-style: none;
  padding: 0;
  margin-top: 4px;
  border-left: 1px solid var(--gv2-line);
}

.gv2-toc__list a {
  display: block;
  padding: 8px 0 8px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: var(--gv2-small);
  line-height: 1.4;
  color: var(--gv2-muted);
  text-decoration: none;
}

.gv2-toc__list a:hover {
  color: var(--gv2-ivory);
}

.gv2-toc__list a[aria-current="true"] {
  color: var(--gv2-ivory);
  border-left-color: var(--gv2-gold);
}

@media (max-width: 1099.98px) {
  .gv2-toc {
    border-top: 1px solid var(--gv2-line);
    border-bottom: 1px solid var(--gv2-line);
  }

  .gv2-toc__list {
    border-left: 0;
    padding-bottom: 12px;
  }

  .gv2-toc__list a {
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .gv2-toc__summary {
    cursor: default;
    pointer-events: none;
    min-height: 0;
    margin-bottom: 8px;
  }

  .gv2-toc__summary::after {
    display: none;
  }
}

/* ── The article ──────────────────────────────────────────────────────────── */

.gv2-body > p,
.gv2-body > ul,
.gv2-body > ol {
  margin-bottom: 1.25em;
}

.gv2-body > ul,
.gv2-body > ol {
  padding-left: 1.25em;
}

.gv2-body > ul li,
.gv2-body > ol li {
  margin-bottom: 0.7em;
  padding-left: 0.25em;
}

.gv2-body > ul li::marker {
  color: var(--gv2-gold);
}

.gv2-body strong {
  color: var(--gv2-ivory);
  font-weight: 600;
}

.gv2-body a {
  color: var(--gv2-ivory);
  text-decoration: underline;
  text-decoration-color: var(--gv2-gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gv2-body a:hover {
  color: var(--gv2-gold-bright);
  text-decoration-color: var(--gv2-gold);
}

.gv2-body > h2 {
  margin: 2.4em 0 0.7em;
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  line-height: 1.12;
  color: var(--gv2-ivory);
  scroll-margin-top: 96px;
  text-wrap: balance;
}

.gv2-body > h2:first-child {
  margin-top: 0;
}

.gv2-body > h3 {
  margin: 2em 0 0.55em;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gv2-ivory);
  scroll-margin-top: 96px;
}

.gv2-body > h4 {
  margin: 1.6em 0 0.5em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gv2-ivory);
}

/* A study finding: the term leads, the hairline marks it as evidence. */
.gv2-body > .gv2-finding {
  padding-left: 18px;
  border-left: 1px solid var(--gv2-line-strong);
}

.gv2-finding > strong:first-child {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9375rem;
  color: var(--gv2-ivory);
}

/* Editorial notes: Celliara's translation (gold) and the evidence limit (neutral). */
.gv2-note {
  margin: 1.9em 0;
  padding: 18px 22px 4px;
  border-left: 2px solid var(--gv2-gold);
  background: var(--gv2-gold-wash);
  border-radius: 0 var(--gv2-radius) var(--gv2-radius) 0;
}

.gv2-note--limit {
  border-left-color: var(--gv2-muted);
  background: rgba(255, 255, 255, 0.025);
}

.gv2-note__label {
  font-family: var(--gv2-serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.3;
  color: var(--gv2-gold);
}

.gv2-note--limit .gv2-note__label {
  color: var(--gv2-ivory);
}

.gv2-note p:not(.gv2-note__label) {
  margin: 6px 0 14px;
}

/* FAQ: visible questions and answers (the FAQPage schema is read from these). */
.gv2-body > .gv2-faq__q {
  margin-top: 0;
  padding-top: 1.1em;
  border-top: 1px solid var(--gv2-line);
}

.gv2-body > .gv2-faq__title + .gv2-faq__q {
  border-top: 0;
  padding-top: 0;
}

/* Disclosure beside a commission-earning link. */
.gv2-disclosure {
  font-size: var(--gv2-small);
  line-height: 1.55;
  color: var(--gv2-muted);
  padding: 10px 14px;
  border: 1px solid var(--gv2-line);
  border-radius: var(--gv2-radius);
}

/* ── Governed modules ─────────────────────────────────────────────────────── */

.gv2-module {
  margin: 2.4em 0;
}

.gv2-module__title {
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--gv2-ivory);
}

.gv2-module__intro {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--gv2-muted);
}

.gv2-table {
  margin-top: 18px;
  border-top: 1px solid var(--gv2-line-strong);
}

.gv2-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.gv2-table thead th {
  padding: 12px 14px 10px 0;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gv2-muted);
  border-bottom: 1px solid var(--gv2-line);
}

.gv2-table tbody th,
.gv2-table tbody td {
  padding: 14px 14px 14px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--gv2-line);
}

.gv2-table tbody th {
  font-weight: 600;
  color: var(--gv2-ivory);
  width: 26%;
}

.gv2-module--claims tbody th {
  width: 38%;
  font-weight: 500;
  font-style: italic;
  font-family: var(--gv2-serif);
  font-size: 1.0625rem;
}

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

  .gv2-table tr {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--gv2-line);
  }

  .gv2-table tbody th,
  .gv2-table tbody td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .gv2-table tbody th {
    margin-bottom: 8px;
    font-size: 1rem;
  }

  .gv2-table tbody td + td,
  .gv2-table tbody th + td {
    margin-top: 10px;
  }

  .gv2-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gv2-muted);
    margin-bottom: 2px;
  }

  .gv2-module--claims tbody th {
    width: auto;
  }
}

.gv2-examples {
  list-style: none;
  padding: 0;
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .gv2-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gv2-example {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--gv2-line);
  border-radius: var(--gv2-radius);
  background: var(--gv2-raised);
}

.gv2-example__img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #1b1a16, #090907 70%);
  border-radius: 4px;
}

.gv2-example__brand {
  font-size: 0.8125rem;
  color: var(--gv2-muted);
}

.gv2-example__name {
  font-family: var(--gv2-serif);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--gv2-ivory);
}

.gv2-example__name a,
.gv2-example__link {
  color: inherit;
  text-decoration: none;
}

.gv2-example__score {
  margin-top: 6px;
  font-size: var(--gv2-small);
  color: var(--gv2-muted);
}

.gv2-example__score span {
  font-family: var(--gv2-serif);
  font-size: 1.125rem;
  color: var(--gv2-ivory);
}

.gv2-example__cited {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--gv2-muted);
}

.gv2-example__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--gv2-small);
  font-weight: 600;
  color: var(--gv2-gold);
}

.gv2-example__link:hover {
  color: var(--gv2-gold-bright);
}

/* ── Sources ──────────────────────────────────────────────────────────────── */

.gv2-sources {
  margin-top: clamp(56px, 6vw, 88px);
  padding-top: 26px;
  border-top: 1px solid var(--gv2-line-strong);
}

.gv2-sources__title {
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: 1.875rem;
  color: var(--gv2-ivory);
}

.gv2-sources__intro {
  margin-top: 6px;
  font-size: 1rem;
  color: var(--gv2-muted);
}

.gv2-sources__group {
  margin-top: 22px;
}

.gv2-sources__type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gv2-gold);
  letter-spacing: 0.01em;
}

.gv2-sources ul {
  list-style: none;
  padding: 0;
  margin-top: 6px;
}

.gv2-sources li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gv2-line);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.gv2-sources a {
  color: var(--gv2-ivory);
  text-decoration: underline;
  text-decoration-color: var(--gv2-line-strong);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.gv2-sources a:hover {
  text-decoration-color: var(--gv2-gold);
}

.gv2-sources__pub,
.gv2-sources__note {
  display: block;
  font-size: 0.8125rem;
  color: var(--gv2-muted);
}

.gv2-sources__note {
  font-style: italic;
}

/* ── Where to go next ─────────────────────────────────────────────────────── */

.gv2-next {
  margin-top: clamp(64px, 7vw, 104px);
  padding-top: 30px;
  border-top: 1px solid var(--gv2-line-strong);
}

.gv2-next__title {
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  color: var(--gv2-ivory);
}

.gv2-next__grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

@media (min-width: 640px) {
  .gv2-next__grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }

  .gv2-route--best {
    grid-column: 1 / -1;
  }

  .gv2-route--best .gv2-route__awards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

.gv2-route {
  padding: 22px 22px 18px;
  border: 1px solid var(--gv2-line);
  border-radius: var(--gv2-radius);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gv2-route--best {
  border-color: var(--gv2-gold-line);
  background: var(--gv2-gold-wash);
}

.gv2-route__title {
  font-family: var(--gv2-serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--gv2-ivory);
}

.gv2-route__body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--gv2-copy);
}

.gv2-route ul {
  list-style: none;
  padding: 0;
}

.gv2-route li {
  border-top: 1px solid var(--gv2-line);
}

.gv2-route__awards li {
  padding: 8px 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.gv2-route__award {
  display: block;
  font-family: var(--gv2-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gv2-gold);
}

.gv2-route a {
  color: var(--gv2-ivory);
  text-decoration: none;
}

.gv2-route__list a,
.gv2-route__awards a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.gv2-route__list a {
  min-height: 44px;
  font-size: 0.9375rem;
}

.gv2-route a:hover {
  color: var(--gv2-gold-bright);
}

.gv2-route__cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gv2-gold) !important;
  border-bottom: 1px solid var(--gv2-gold-line);
}

.gv2-route--best .gv2-route__cta {
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gv2-gold);
  color: #14110b !important;
}

.gv2-route--best .gv2-route__cta:hover {
  background: var(--gv2-gold-bright);
}

.gv2-related {
  margin-top: 26px;
}

.gv2-related__title {
  font-family: var(--gv2-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--gv2-gold);
}

.gv2-related ul {
  list-style: none;
  padding: 0;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.gv2-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gv2-ivory);
  text-decoration: underline;
  text-decoration-color: var(--gv2-gold-line);
  text-underline-offset: 4px;
  font-size: 1rem;
}

.gv2-related a:hover {
  color: var(--gv2-gold-bright);
}

@media (prefers-reduced-motion: reduce) {
  .gv2 *,
  .gv2 *::before,
  .gv2 *::after {
    transition: none !important;
    animation: none !important;
  }
}
