/* ============================================================
   REGA — Guide Template v2
   Applies only to generated guide detail pages. Nav/footer remain
   the shared site versions from templates/guide-page.html.
   ============================================================ */

body.guide-v2 {
  --guide-blue: #586DB7;
  --guide-blue-deep: #3F5194;
  --guide-blue-ink: #2B3A6E;
  --guide-lilac: #E1E1FA;
  --guide-peach: #E8896B;
  --guide-peach-soft: #F4D2C2;
  --guide-peach-deep: #C46A4D;
  --guide-cream: #FFF3E5;
  --guide-cream-2: #FFECD5;
  --guide-sand: #FED6AA;
  --guide-paper: #FFFFFF;
  --guide-paper-2: #FFF3E5;
  --guide-ink: #2A2A2A;
  --guide-ink-2: #414141;
  --guide-ink-3: #7A7770;
  --guide-line: rgba(63,81,148,.12);
  --guide-line-strong: rgba(63,81,148,.22);
  --guide-shadow-sm: 0 1px 2px rgba(24,19,39,.06);
  --guide-shadow-md: 0 14px 38px -18px rgba(24,19,39,.22), 0 2px 8px rgba(24,19,39,.05);
  --guide-shadow-lg: 0 40px 80px -40px rgba(44,30,90,.35), 0 8px 24px -12px rgba(24,19,39,.12);
  --guide-radius-sm: 10px;
  --guide-radius-md: 16px;
  --guide-radius-lg: 22px;
  --guide-radius-xl: 32px;
  --guide-read: 68ch;
  background: var(--guide-paper);
  color: var(--guide-ink);
  overflow-x: clip;
}

body.guide-v2.day-mode {
  background: var(--guide-paper);
}

body.guide-v2:not(.day-mode) {
  --guide-blue: #A9B6E8;
  --guide-blue-deep: #C2CCF0;
  --guide-blue-ink: #E1E8FF;
  --guide-lilac: rgba(225,225,250,.18);
  --guide-peach-soft: rgba(232,137,107,.28);
  --guide-cream: #1d2340;
  --guide-cream-2: #20264a;
  --guide-sand: #242c52;
  --guide-paper: #151a33;
  --guide-paper-2: #1d2340;
  --guide-ink: #f4f5ff;
  --guide-ink-2: #d8dcf2;
  --guide-ink-3: #adb4d2;
  --guide-line: rgba(244,245,255,.09);
  --guide-line-strong: rgba(244,245,255,.16);
  background: var(--guide-paper);
}

body.guide-v2 .day-bg,
body.guide-v2 .ambient-bg {
  display: none !important;
}

body.guide-v2::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

body.guide-v2:not(.day-mode)::before {
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(88,109,183,.25), transparent 60%),
    radial-gradient(1100px 700px at 110% 10%, rgba(232,137,107,.12), transparent 55%),
    radial-gradient(700px 500px at 50% 120%, rgba(225,225,250,.08), transparent 60%);
}

body.guide-v2 ::selection {
  background: rgba(88,109,183,.22);
  color: var(--guide-blue-ink);
}

body.guide-v2:not(.day-mode) ::selection {
  background: rgba(169,182,232,.28);
  color: #fff;
}

.guide-v2-main {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  font-family: 'Rubik', 'Assistant', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -.005em;
}

.guide-v2-main .container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.guide-v2-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
}

.guide-v2-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--guide-blue), var(--guide-peach));
  box-shadow: 0 1px 8px rgba(63,81,148,.38);
  transition: width .05s linear;
}

/* Hero */
.guide-v2-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4.5vw, 3rem);
}

.guide-v2-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
  color: var(--guide-ink-3);
  font-size: .9rem;
}

.guide-v2-crumbs a {
  color: var(--guide-ink-3);
  text-decoration: none;
  transition: color .2s ease;
}

.guide-v2-crumbs a:hover {
  color: var(--guide-blue);
}

.guide-v2-crumbs .sep {
  opacity: .55;
}

.guide-v2-hero-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
}

.guide-v2-hero-text {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.guide-v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  color: var(--guide-blue-deep);
  font-family: 'Heebo', 'Rubik', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-v2-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--guide-peach);
}

.guide-v2-title {
  margin: 0 0 1.3rem;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.028em;
  text-wrap: balance;
}

.guide-v2-title em {
  color: var(--guide-peach-deep);
  font-style: normal;
  background: linear-gradient(180deg, transparent 68%, rgba(244,210,194,.65) 68%);
}

body.guide-v2:not(.day-mode) .guide-v2-title em {
  color: #fff;
  background: linear-gradient(180deg, transparent 68%, rgba(232,137,107,.55) 68%);
}

.guide-v2-deck {
  max-width: 58ch;
  margin: 0 0 1.7rem;
  color: var(--guide-ink-2);
  font-size: clamp(1.08rem, 1.45vw, 1.24rem);
  font-weight: 400;
  line-height: 1.65;
  text-wrap: pretty;
}

.guide-v2-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-ink-3);
  font-size: .88rem;
}

.guide-v2-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  font-weight: 600;
}

.guide-v2-meta-item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--guide-blue);
  box-shadow: 0 0 0 3px rgba(88,109,183,.14);
}

.guide-v2-cover-frame {
  position: relative;
  order: -1;
  width: 100%;
}

.guide-v2-cover-frame::before {
  content: '';
  position: absolute;
  inset: 14px 14px -14px -14px;
  z-index: 0;
  border-radius: var(--guide-radius-xl);
  background: linear-gradient(160deg, var(--guide-peach-soft) 0%, var(--guide-lilac) 100%);
}

.guide-v2-cover {
  position: relative;
  z-index: 1;
  aspect-ratio: 21 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: var(--guide-radius-lg);
  background: var(--guide-cream-2);
  box-shadow: 0 30px 60px -25px rgba(20,15,40,.35), 0 12px 30px -15px rgba(20,15,40,.18);
  isolation: isolate;
}

.guide-v2-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}

.guide-v2-cover-frame:hover .guide-v2-cover img {
  transform: scale(1.02);
}

.guide-v2-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(20,15,40,.32) 100%);
}

.guide-v2-cover-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100% - 2rem);
  padding: .48rem .82rem;
  border-radius: 999px;
  background: rgba(255,248,238,.94);
  color: var(--guide-blue-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -10px rgba(0,0,0,.3);
}

.guide-v2-cover-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--guide-peach);
  box-shadow: 0 0 0 3px rgba(232,137,107,.25);
}

/* Layout */
.guide-v2-article {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, var(--guide-read)) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1rem, 3vw, 2.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.guide-v2-toc {
  grid-column: 1;
  align-self: start;
  position: sticky;
  top: calc(1.5rem + 60px);
  min-width: 200px;
  padding: 1.2rem 1.1rem;
  border-right: 1px solid var(--guide-line);
  color: var(--guide-ink-2);
  font-size: .95rem;
}

.guide-v2-toc-label {
  margin-bottom: .9rem;
  color: var(--guide-ink-3);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-v2-toc ol {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-toc;
}

.guide-v2-toc li {
  counter-increment: guide-toc;
}

.guide-v2-toc a {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .25rem 0;
  color: var(--guide-ink-2);
  line-height: 1.45;
  text-decoration: none;
  transition: color .2s ease;
}

.guide-v2-toc a::before {
  content: counter(guide-toc, decimal-leading-zero);
  padding-top: 2px;
  color: var(--guide-blue);
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.guide-v2-toc a:hover,
.guide-v2-toc a.active {
  color: var(--guide-blue-ink);
}

.guide-v2-toc a.active {
  font-weight: 700;
}

.guide-v2-prose {
  grid-column: 2;
  color: var(--guide-ink);
  font-size: 1.16rem;
  line-height: 1.86;
}

.guide-v2-prose > *:first-child {
  margin-top: 0;
}

.guide-v2-prose p {
  margin: 0 0 1.3rem;
  color: var(--guide-ink);
  text-wrap: pretty;
}

.guide-v2-prose > p:first-of-type::first-letter {
  float: right;
  margin: -.22em 0 0 .08em;
  padding-left: .02em;
  color: var(--guide-blue);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 4.05em;
  font-weight: 800;
  line-height: .68;
}

.guide-v2-prose p strong {
  position: relative;
  padding: 0 .08em;
  color: var(--guide-ink);
  font-weight: 800;
  background: linear-gradient(180deg, transparent 62%, var(--guide-peach-soft) 62%);
}

.guide-v2-prose h2 {
  position: relative;
  margin: 3rem 0 1rem;
  padding-right: 1.1rem;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.018em;
}

.guide-v2-prose h2::before {
  content: '';
  position: absolute;
  right: 0;
  top: .34em;
  bottom: .23em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--guide-blue) 0%, var(--guide-peach) 100%);
}

.guide-v2-prose h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 2rem 0 .6rem;
  color: var(--guide-blue-ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}

.guide-v2-prose h3::before {
  content: '';
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--guide-blue);
}

.guide-v2-prose ul,
.guide-v2-prose ol {
  margin: 0 0 1.4rem;
  padding: 0;
  color: var(--guide-ink);
}

.guide-v2-prose ul {
  list-style: none;
}

.guide-v2-prose ul li {
  position: relative;
  margin-bottom: .65rem;
  padding-right: 1.6rem;
  line-height: 1.7;
}

.guide-v2-prose ul li::before {
  content: '';
  position: absolute;
  right: .2rem;
  top: .78em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--guide-blue);
  box-shadow: 0 0 0 3px rgba(88,109,183,.18);
}

.guide-v2-prose ol {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  list-style: none;
  counter-reset: guide-steps;
}

.guide-v2-prose ol li {
  counter-increment: guide-steps;
  position: relative;
  margin: 0;
  padding: .85rem 3.25rem .85rem 1.1rem;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-md);
  background: rgba(255,255,255,.78);
  box-shadow: var(--guide-shadow-sm);
  line-height: 1.65;
  transition: transform .2s ease, box-shadow .2s ease;
}

body.guide-v2:not(.day-mode) .guide-v2-prose ol li {
  background: rgba(255,255,255,.04);
}

.guide-v2-prose ol li:hover {
  transform: translateX(-2px);
  box-shadow: var(--guide-shadow-md);
}

.guide-v2-prose ol li::before {
  content: counter(guide-steps);
  position: absolute;
  right: .9rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--guide-blue) 0%, var(--guide-blue-deep) 100%);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  box-shadow: 0 6px 14px -4px rgba(63,81,148,.5);
}

.guide-v2-prose blockquote,
.guide-v2-prose .pull-quote {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  color: var(--guide-blue-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 1.28rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
  border: 0;
}

.guide-v2-prose blockquote::before,
.guide-v2-prose .pull-quote::before {
  content: '"';
  position: absolute;
  top: -.38em;
  right: -.12em;
  color: rgba(88,109,183,.22);
  font-size: 5.7rem;
  line-height: 1;
  pointer-events: none;
}

.guide-v2-prose figure,
.guide-v2-prose .inline-figure {
  margin: 2.25rem 0;
  overflow: hidden;
  border-radius: var(--guide-radius-lg);
  background: rgba(255,255,255,.82);
  box-shadow: var(--guide-shadow-md);
}

body.guide-v2:not(.day-mode) .guide-v2-prose figure,
body.guide-v2:not(.day-mode) .guide-v2-prose .inline-figure {
  background: rgba(255,255,255,.04);
}

.guide-v2-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
  border-radius: var(--guide-radius-lg);
}

.guide-v2-prose figure img,
.guide-v2-prose .inline-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.guide-v2-prose figcaption {
  margin: 0;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--guide-line);
  background: var(--guide-paper-2);
  color: var(--guide-ink-3);
  font-size: .9rem;
  line-height: 1.5;
  text-align: right;
}

.guide-v2-prose .guide-disclaimer {
  margin: 3rem 0 .5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--guide-line-strong);
  border-radius: var(--guide-radius-md);
  background: var(--guide-paper-2);
  color: var(--guide-ink-3);
  font-size: .88rem;
  line-height: 1.65;
  text-align: right;
}

/* Tables */
.guide-v2-prose .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.9rem 0;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-md);
  background: rgba(255,255,255,.55);
  box-shadow: var(--guide-shadow-sm);
}

body.guide-v2:not(.day-mode) .guide-v2-prose .table-wrap {
  background: rgba(255,255,255,.04);
}

.guide-v2-prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--guide-ink);
  font-size: .95rem;
  text-align: right;
  direction: rtl;
}

.guide-v2-prose th {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--guide-line);
  background: rgba(88,109,183,.10);
  color: var(--guide-blue-ink);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.guide-v2-prose td {
  padding: .78rem 1rem;
  border-bottom: 1px solid var(--guide-line);
  vertical-align: top;
  line-height: 1.55;
}

.guide-v2-prose tr:nth-child(even) td {
  background: rgba(255,255,255,.35);
}

body.guide-v2:not(.day-mode) .guide-v2-prose tr:nth-child(even) td {
  background: rgba(255,255,255,.035);
}

.guide-v2-prose tr:last-child td {
  border-bottom: 0;
}

.guide-v2-prose a {
  color: var(--guide-blue-deep);
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.guide-v2-prose a:hover {
  color: var(--guide-blue-ink);
}

/* Internal links */
.guide-v2-inline-links {
  margin: 2.2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-md);
  background: var(--guide-paper-2);
}

body.guide-v2.day-mode .guide-v2-inline-links {
  background: #FAF7F1;
}

.guide-v2-inline-links-label {
  margin-bottom: .7rem;
  color: var(--guide-ink-3);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.guide-v2-inline-links ul {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-v2-inline-links li {
  margin: 0;
  padding: 0;
}

.guide-v2-inline-links li::before {
  display: none;
}

.guide-v2-inline-links a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .3rem 0;
  color: var(--guide-ink-2);
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}

.guide-v2-inline-links a::before {
  content: '←';
  color: var(--guide-blue);
  font-weight: 900;
}

.guide-v2-inline-links a:hover {
  gap: .75rem;
  color: var(--guide-blue);
}

/* FAQ */
.guide-v2-faq {
  margin: 3.5rem 0 1rem;
}

.guide-v2-faq-title {
  margin: 0 0 .45rem;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.018em;
}

.guide-v2-faq-kicker {
  margin: 0 0 1.75rem;
  color: var(--guide-ink-3);
  font-size: 1rem;
}

.guide-v2-faq-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.guide-v2-faq-item {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-md);
  background: rgba(255,255,255,.82);
  transition: border-color .25s ease, box-shadow .25s ease;
}

body.guide-v2:not(.day-mode) .guide-v2-faq-item {
  background: rgba(255,255,255,.04);
}

.guide-v2-faq-item[open] {
  border-color: rgba(88,109,183,.35);
  box-shadow: var(--guide-shadow-md);
}

.guide-v2-faq-item summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  color: var(--guide-ink);
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

.guide-v2-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-v2-faq-item summary::after {
  content: '';
  flex: 0 0 auto;
  margin-right: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--guide-paper-2);
  background-image: linear-gradient(var(--guide-ink), var(--guide-ink)), linear-gradient(var(--guide-ink), var(--guide-ink));
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 2px, 2px 10px;
  transition: transform .3s ease, background .2s ease;
}

.guide-v2-faq-item[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--guide-blue);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 10px 2px, 0 0;
}

.guide-v2-faq-num {
  flex: 0 0 auto;
  color: var(--guide-blue);
  font-family: 'Heebo', 'Rubik', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.guide-v2-faq-answer {
  padding: 0 1.25rem 1.15rem calc(1.25rem + 26px + 1rem);
  color: var(--guide-ink-2);
  line-height: 1.75;
}

.guide-v2-faq-answer p {
  margin: 0;
  color: var(--guide-ink-2);
}

/* Related */
.guide-v2-related {
  margin: 4rem 0 1rem;
}

.guide-v2-related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.guide-v2-related-title {
  margin: 0;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 800;
}

.guide-v2-related-all {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--guide-blue);
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
}

.guide-v2-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.guide-v2-related-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: var(--guide-radius-lg);
  background: rgba(255,255,255,.82);
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.guide-v2:not(.day-mode) .guide-v2-related-card {
  background: rgba(255,255,255,.04);
}

.guide-v2-related-card::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  bottom: -1px;
  width: 4px;
  background: linear-gradient(180deg, var(--guide-blue), var(--guide-peach));
  opacity: 0;
  transition: opacity .25s ease;
}

.guide-v2-related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88,109,183,.28);
  box-shadow: var(--guide-shadow-md);
}

.guide-v2-related-card:hover::before {
  opacity: 1;
}

.guide-v2-related-media {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--guide-line);
  background:
    radial-gradient(300px 180px at 75% 20%, rgba(232,137,107,.35), transparent 60%),
    linear-gradient(135deg, var(--guide-lilac) 0%, #B9C2E8 100%);
}

.guide-v2-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-v2-related-card:hover .guide-v2-related-media img {
  transform: scale(1.04);
}

.guide-v2-related-body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .95rem 1.15rem 1.1rem;
}

.guide-v2-related-cluster {
  color: var(--guide-blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-v2-related-card h3 {
  margin: 0;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
}

.guide-v2-related-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  color: var(--guide-ink-3);
  font-size: .9rem;
  line-height: 1.55;
}

.guide-v2-related-link {
  margin-top: .2rem;
  color: var(--guide-blue);
  font-size: .9rem;
  font-weight: 800;
}

/* App CTA */
.guide-v2-app-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 4rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(254,214,170,.8);
  border-radius: var(--guide-radius-xl);
  background:
    radial-gradient(500px 300px at 10% 0%, rgba(232,137,107,.30), transparent 60%),
    radial-gradient(500px 300px at 110% 100%, rgba(254,214,170,.70), transparent 60%),
    linear-gradient(145deg, var(--guide-cream) 0%, var(--guide-sand) 100%);
}

body.guide-v2:not(.day-mode) .guide-v2-app-cta {
  border-color: rgba(88,109,183,.28);
  background:
    radial-gradient(500px 300px at 10% 0%, rgba(232,137,107,.16), transparent 60%),
    linear-gradient(145deg, #242c52 0%, #1a1f3d 100%);
}

.guide-v2-app-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,137,107,.30), transparent 70%);
  pointer-events: none;
}

.guide-v2-app-cta > * {
  position: relative;
}

.guide-v2-app-cta h2 {
  margin: 0 0 .5rem;
  padding: 0;
  color: var(--guide-ink);
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.2;
}

.guide-v2-app-cta h2::before {
  display: none;
}

.guide-v2-app-cta p {
  max-width: 48ch;
  margin: 0;
  color: var(--guide-ink-2);
  font-size: 1.02rem;
  line-height: 1.65;
}

.guide-v2-app-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin-top: 1rem;
  color: var(--guide-ink-3);
  font-size: .88rem;
}

.guide-v2-app-stats b {
  color: var(--guide-ink);
  font-weight: 900;
}

.guide-v2-app-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  width: min(220px, 100%);
}

.guide-v2-store-btn {
  display: block;
  width: min(168px, 100%);
  height: 50px;
  line-height: 0;
  flex: 0 0 auto;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: transform .2s ease;
}

.guide-v2-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.guide-v2-store-btn img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border-radius: 0;
  object-fit: contain;
}

@media (max-width: 1080px) {
  .guide-v2-hero-grid {
    gap: 2rem;
  }

  .guide-v2-article {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-v2-toc {
    display: none;
  }

  .guide-v2-prose {
    grid-column: 1;
    max-width: var(--guide-read);
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .guide-v2-main .container {
    padding-inline: 1rem;
  }

  .guide-v2-hero {
    padding-top: 2.25rem;
  }

  .guide-v2-cover {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }

  .guide-v2-cover-frame::before {
    inset: 10px 10px -10px -10px;
  }

  .guide-v2-title {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .guide-v2-prose {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .guide-v2-prose > p:first-of-type::first-letter {
    font-size: 3.4em;
  }

  .guide-v2-prose ol li {
    padding-left: .95rem;
  }

  .guide-v2-faq-item summary {
    padding: 1rem;
  }

  .guide-v2-faq-answer {
    padding: 0 1rem 1rem;
  }

  .guide-v2-app-cta {
    grid-template-columns: 1fr;
  }

  .guide-v2-app-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .guide-v2-store-btn {
    width: min(168px, 100%);
    height: 50px;
  }
}

@media (max-width: 560px) {
  .guide-v2-related-grid {
    grid-template-columns: 1fr;
  }

  .guide-v2-app-buttons {
    flex-direction: column;
  }

  .guide-v2-store-btn {
    width: min(168px, 100%);
    height: 50px;
  }
}

/* Homepage-style sticky navigation for guide pages */
body.guide-v2 .nav,
body.guide-v2 .nav *,
body.guide-v2 .mobile-drawer,
body.guide-v2 .mobile-drawer * {
  box-sizing: border-box;
}

body.guide-v2 .nav {
  position: sticky;
  top: 0;
  z-index: 900;
  padding: 18px 0;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in oklab, var(--guide-paper) 72%, transparent);
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-ink);
  transition: background .6s ease, border-color .3s ease, color .3s ease;
}

body.guide-v2 .nav .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

body.guide-v2 .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

body.guide-v2 .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

body.guide-v2 .nav-brand-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.guide-v2 .nav-brand-mark img.brand-logo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  display: block;
}

body.guide-v2:not(.day-mode) .nav-brand-mark img.brand-logo {
  filter: brightness(0) invert(1);
}

body.guide-v2 .nav-brand-word {
  color: var(--guide-ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

body.guide-v2 .nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

body.guide-v2 .nav-links a {
  position: relative;
  color: var(--guide-ink-2);
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s ease;
}

body.guide-v2 .nav-links a:hover {
  color: var(--guide-ink);
}

body.guide-v2 .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.guide-v2 .nav .theme-toggle {
  position: static;
  top: auto;
  left: auto;
  z-index: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--guide-line-strong);
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--guide-ink);
  box-shadow: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

body.guide-v2 .nav .theme-toggle:hover {
  transform: scale(1.05);
  background: rgba(88,109,183,.10);
  border-color: var(--guide-line-strong);
  color: var(--guide-ink);
}

body.guide-v2 .nav .theme-toggle-icon {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px;
  max-height: 20px;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
  color: currentColor;
  transform: none !important;
  transition: transform .5s cubic-bezier(.34,1.25,.64,1);
}

body.guide-v2 .nav .theme-toggle-icon.sun {
  top: auto !important;
  left: auto !important;
  opacity: 1 !important;
}

body.guide-v2.day-mode .nav .theme-toggle-icon.moon,
body.guide-v2:not(.day-mode) .nav .theme-toggle-icon.sun {
  display: none;
}

body.guide-v2.day-mode .nav .theme-toggle-icon.sun,
body.guide-v2:not(.day-mode) .nav .theme-toggle-icon.moon {
  display: block;
}

body.guide-v2 .nav .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.34,1.25,.64,1), box-shadow .22s ease, background .22s ease;
}

body.guide-v2 .nav .btn-primary {
  background: var(--guide-blue);
  color: #fff;
}

body.guide-v2:not(.day-mode) .nav .btn-primary {
  background: var(--guide-blue);
  color: #151a33;
}

body.guide-v2 .nav .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(74,84,168,.35);
}

body.guide-v2 .nav .btn-arrow {
  transition: transform .3s ease;
}

body.guide-v2 .nav .btn:hover .btn-arrow {
  transform: translateX(-4px);
}

body.guide-v2 .nav-hamburger {
  display: none;
  background: transparent;
  color: var(--guide-ink);
  cursor: pointer;
}

body.guide-v2 .mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  visibility: hidden;
}

body.guide-v2 .mobile-drawer.open {
  pointer-events: auto;
  visibility: visible;
}

body.guide-v2 .mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  transition: opacity .28s ease;
}

body.guide-v2 .mobile-drawer.open .mobile-drawer-backdrop {
  opacity: 1;
}

body.guide-v2 .mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100vh;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #fff;
  color: #14173A;
  box-shadow: -12px 0 40px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}

body.guide-v2:not(.day-mode) .mobile-drawer-panel {
  background: #0E1230;
  color: #fff;
}

body.guide-v2 .mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

body.guide-v2 .mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body.guide-v2:not(.day-mode) .mobile-drawer-head {
  border-bottom-color: rgba(255,255,255,.10);
}

body.guide-v2 .mobile-drawer-close {
  padding: .4rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

body.guide-v2 .mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: auto;
}

body.guide-v2 .mobile-drawer-links a {
  padding: .95rem .5rem;
  border-bottom: 1px solid rgba(0,0,0,.04);
  color: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}

body.guide-v2:not(.day-mode) .mobile-drawer-links a {
  border-bottom-color: rgba(255,255,255,.06);
}

body.guide-v2 .mobile-drawer-cta {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,.08);
}

body.guide-v2:not(.day-mode) .mobile-drawer-cta {
  border-top-color: rgba(255,255,255,.10);
}

body.guide-v2 .mobile-drawer-cta .app-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  border-radius: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: opacity .2s;
}

body.guide-v2 .mobile-drawer-cta .app-btn:hover {
  opacity: .85;
}

body.guide-v2 .mobile-drawer-cta .app-btn svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  fill: #fff;
}

body.guide-v2 .mobile-drawer-cta .app-btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: right;
}

body.guide-v2 .mobile-drawer-cta .app-btn-label small {
  font-size: .7rem;
  opacity: .7;
  font-weight: 400;
}

body.guide-v2 .mobile-drawer-cta .app-btn-label span {
  font-size: 1rem;
  font-weight: 600;
}

body.guide-v2.drawer-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  body.guide-v2 .nav-links {
    display: none;
  }

  body.guide-v2 .nav-hamburger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--guide-line-strong);
  }

  body.guide-v2 .nav-cta-text {
    display: none;
  }

  body.guide-v2 .nav .nav-cta {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  body.guide-v2 .mobile-drawer {
    display: none;
  }
}

@media (max-width: 640px) {
  body.guide-v2 .nav {
    padding: 14px 0;
  }

  body.guide-v2 .nav .container {
    padding: 0 20px;
  }

  body.guide-v2 .nav-brand-mark img.brand-logo {
    width: 34px !important;
    height: 34px !important;
  }
}

/* Homepage footer parity for guide pages */
body.guide-v2 .footer {
  position: relative;
  z-index: 1;
  padding: 80px 0 40px;
  border-top: 1px solid var(--guide-line);
  margin-top: 80px;
  color: var(--guide-ink);
  font-family: 'Assistant', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.guide-v2 .footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

body.guide-v2 .footer-brand-row {
  display: block;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body.guide-v2:not(.day-mode) .footer-brand-row {
  border-bottom-color: rgba(255,255,255,.10);
}

body.guide-v2 .footer-brand-block {
  max-width: 520px;
}

body.guide-v2 .footer .nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

body.guide-v2 .footer .nav-brand-mark {
  background: transparent !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.guide-v2 .footer .nav-brand-mark img.brand-logo {
  width: 52px !important;
  height: 52px !important;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

body.guide-v2:not(.day-mode) .footer .nav-brand-mark img.brand-logo {
  filter: brightness(0) invert(1);
}

body.guide-v2 .footer .nav-brand-word {
  color: var(--guide-ink);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

body.guide-v2 .footer-brand-text {
  margin: .75rem 0 1.25rem;
  max-width: 280px;
  color: var(--guide-ink-3);
  font-size: .95rem;
  line-height: 1.6;
}

body.guide-v2 .footer-social {
  display: flex;
  gap: .85rem;
  margin-top: .25rem;
}

body.guide-v2 .footer-social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 50%;
  color: currentColor;
  text-decoration: none;
  transition: all .2s;
}

body.guide-v2:not(.day-mode) .footer-social-link {
  border-color: rgba(255,255,255,.14);
}

body.guide-v2 .footer-social-link:hover {
  background: rgba(0,0,0,.04);
}

body.guide-v2:not(.day-mode) .footer-social-link:hover {
  background: rgba(255,255,255,.06);
}

body.guide-v2 .footer-social-link svg {
  width: 24px;
  height: 24px;
}

body.guide-v2 .footer-guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

body.guide-v2 .footer-guides-col h5 {
  margin: 0 0 .85rem;
  color: var(--guide-ink);
  font-size: .9rem;
  font-weight: 600;
}

body.guide-v2 .footer-guides-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

body.guide-v2 .footer-guides-col a {
  color: var(--guide-ink-2);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.45;
  transition: color .15s, opacity .15s;
}

body.guide-v2 .footer-guides-col a:hover {
  color: var(--guide-ink);
}

body.guide-v2 .footer-all-guides {
  margin-bottom: 2rem;
}

body.guide-v2 .footer-all-guides a {
  color: var(--guide-ink);
  font-weight: 500;
  text-decoration: none;
  font-size: .95rem;
}

body.guide-v2 .footer-all-guides a:hover {
  opacity: .7;
}

body.guide-v2 .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,.08);
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--guide-ink-3);
}

body.guide-v2:not(.day-mode) .footer-bottom {
  border-top-color: rgba(255,255,255,.10);
}

body.guide-v2 .footer-bottom-left {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

body.guide-v2 .footer-bottom-links {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
}

body.guide-v2 .footer-bottom-links a {
  color: inherit;
  text-decoration: none;
}

body.guide-v2 .footer-bottom-links a:hover {
  color: var(--guide-ink);
}

@media (max-width: 820px) {
  body.guide-v2 .footer-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body.guide-v2 .footer .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  body.guide-v2 .footer-guides-grid {
    grid-template-columns: 1fr;
  }
}
