/* Guide index (/guide) + article (/guide/{slug}). Shared heads, crumbs, .more, venue cards and
   .glinks come from partners.css (loaded first). Long-read typography: body 17px / 1.8, measure <= 72ch. */

/* ---------- index ---------- */
.gi-feature {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px;
  margin-top: 70px; padding: 50px; border-radius: var(--r-lg); background: var(--paper);
  transition: background-color .3s ease-out;
}
.gi-feature:hover { background: var(--paper-2); }
.gi-no { font-size: 15px; font-weight: 700; color: var(--neon); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.gi-feature .gi-no { font-size: 56px; line-height: 1; letter-spacing: -2px; color: color-mix(in srgb, var(--neon) 80%, var(--ink)); }
.gi-feature-title { font-size: 30px; font-weight: 700; line-height: 1.32; letter-spacing: -0.5px; }
.gi-feature-sum { margin-top: 14px; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 44em; }
.gi-feature .more { margin-top: 22px; }
.gi-feature:hover .more { color: var(--neon); }
.gi-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 14px; font-size: var(--fs-sm); color: var(--ink-3); }

.gi-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 60px; margin-top: 50px; }
.gi-list li { border-top: 1px solid var(--line); }
.gi-list a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 30px 0 32px; }
.gi-list .gi-no { padding-top: 5px; }
.gi-item-title { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.3px; transition: color .3s ease-out; }
.gi-list a:hover .gi-item-title { color: var(--neon); }
.gi-item-sum { display: block; margin-top: 8px; color: var(--ink-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gi-list .gi-meta { margin-top: 10px; }
.gi-empty { margin-top: 70px; padding: 56px 24px; text-align: center; border-radius: var(--r-lg); background: var(--paper); color: var(--ink-2); }

.gi-cats { margin-top: var(--sec-gap); padding-top: 40px; border-top: 1px solid var(--line); }
.gi-cats-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.gi-cats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.gi-cats a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--paper); font-weight: 600; color: var(--ink-2);
  transition: border-color .3s ease-out, color .3s ease-out;
}
.gi-cats a:hover { border-color: var(--ink-3); color: var(--ink); }

@media (max-width: 1023px) {
  .gi-feature { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 40px; margin-top: 50px; }
  .gi-feature .gi-no { font-size: 40px; }
  .gi-feature-title { font-size: 25px; }
  .gi-list { gap: 0 32px; }
}
@media (max-width: 767px) {
  .gi-feature { padding: 26px 22px; margin-top: 30px; border-radius: var(--r-md); }
  .gi-feature .gi-no { font-size: 28px; }
  .gi-feature-title { font-size: 20px; }
  .gi-feature-sum { font-size: 15px; }
  .gi-list { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .gi-list a { grid-template-columns: 32px minmax(0, 1fr); padding: 22px 0; }
  .gi-item-title { font-size: 17px; }
  .gi-item-sum { font-size: 14px; }
  .gi-cats { padding-top: 30px; }
  .gi-cats a { height: 40px; padding: 0 16px; font-size: 14px; }
}

/* ---------- article ---------- */
.ga-head { max-width: calc(900px + var(--gutter) * 2); margin-left: auto; margin-right: auto; }
/* with a TOC the body column sits right of it; line the head up with that column */
@media (min-width: 1024px) {
  .ga:has(.toc) .ga-head { max-width: calc(1180px + var(--gutter) * 2); }
  .ga:has(.toc) .ga-head > * { margin-left: 280px; max-width: 900px; }
}
.ga-title { font-size: 40px; }
.ga-lead { font-size: 20px; line-height: 1.7; }
.ga-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; padding-bottom: 30px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-3); }
.ga-meta time { color: var(--ink-2); }

.ga-grid {
  display: grid; grid-template-columns: 220px minmax(0, 900px); justify-content: center; gap: 0 60px;
  margin-top: 50px; align-items: start;
}
.ga-grid > .ga-body:only-child { grid-column: 1 / -1; max-width: 900px; width: 100%; margin: 0 auto; }
/* when there is no TOC, center the 900px column under the head */
.ga-grid:not(:has(.toc)) { grid-template-columns: minmax(0, 900px); }
.ga-body { min-width: 0; }

.toc { position: sticky; top: calc(var(--hd-h, 186px) + 20px); font-size: var(--fs-sm); }
.toc-title { font-weight: 700; color: var(--ink); margin-bottom: 12px; font-size: var(--fs-md); }
.toc ol { border-left: 1px solid var(--line); }
.toc a {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px;
  padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--ink-3); line-height: 1.5; transition: color .3s ease-out, border-color .3s ease-out;
}
.toc a:hover { color: var(--ink); border-left-color: var(--neon); }
.toc-n { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-3); }

/* the long read */
.prose-article { font-size: 17px; line-height: 1.8; color: var(--ink-2); }
.prose-article > * { max-width: 72ch; }
.prose-article > * + * { margin-top: 1.15em; }
.prose-article h2 {
  max-width: none; margin-top: 2.6em; padding-top: 28px; border-top: 1px solid var(--line-2);
  font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: -0.5px; color: var(--ink);
  scroll-margin-top: calc(var(--hd-h, 186px) + 20px); /* sticky site header */
}
.prose-article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose-article h3 { margin-top: 2em; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -0.3px; color: var(--ink); }
.prose-article h2 + *, .prose-article h3 + * { margin-top: .7em; }
.prose-article strong { color: var(--ink); font-weight: 700; }
.prose-article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .3s ease-out; }
.prose-article a:hover { color: var(--neon); }
.prose-article ul, .prose-article ol { padding-left: 1.3em; }
.prose-article ul { list-style: disc; }
.prose-article ol { list-style: decimal; }
.prose-article li { padding-left: .2em; }
.prose-article li + li { margin-top: .45em; }
.prose-article li::marker { color: var(--ink-3); }
.prose-article blockquote {
  margin-left: 0; margin-right: 0; padding: 22px 26px; border-radius: var(--r-md);
  background: var(--paper); border-left: 3px solid var(--lantern); color: var(--ink);
}
.prose-article blockquote > * + * { margin-top: .6em; }
.prose-article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* partner photos inside the article: real width/height attrs keep the box ratio (no layout shift);
   tall portrait shots are capped and center-cropped so one photo never fills the whole screen */
.prose-article figure { max-width: none; margin: 2em 0; }
.prose-article figure img {
  display: block; width: 100%; height: auto; max-height: 600px; object-fit: cover;
  border-radius: var(--r-lg); background: var(--paper);
}
.prose-article figcaption { margin-top: 10px; font-size: var(--fs-sm); line-height: 1.6; color: var(--ink-3); }
.prose-article figcaption a { color: var(--ink-2); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.prose-article figcaption a:hover { color: var(--neon); }
.prose-article h3 + .table-scroll { margin-top: .9em; }

.prose-article .table-scroll { max-width: none; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }
.prose-article .table-scroll:focus-visible { outline-offset: 2px; }
.prose-article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; min-width: 520px; }
.prose-article th, .prose-article td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.prose-article th { background: var(--paper-2); color: var(--ink); font-weight: 600; white-space: nowrap; }
.prose-article tr:last-child td { border-bottom: 0; }
.prose-article td { color: var(--ink-2); }
.prose-article tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--paper) 60%, transparent); }

/* FAQ accordion */
.faq { margin-top: 90px; scroll-margin-top: calc(var(--hd-h, 186px) + 20px); }
.faq-title { font-size: 30px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 30px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 10px; align-items: start;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 600; line-height: 1.5; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-qt { color: var(--neon); }
.faq-q { font-weight: 700; color: var(--neon); }
.faq-qt { transition: color .3s ease-out; }
.faq-ic { position: relative; width: 14px; height: 14px; margin-top: 6px; }
.faq-ic::before, .faq-ic::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--ink-3); transition: transform .3s ease-in; }
.faq-ic::after { transform: rotate(90deg); }
.faq-item[open] .faq-ic::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a-in { padding: 0 34px 26px 42px; font-size: 16px; line-height: 1.8; color: var(--ink-2); }
.faq-a-in a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--neon); text-underline-offset: 3px; }

.ga-foot { margin-top: 60px; padding: 24px 28px; border-radius: var(--r-md); background: var(--paper); font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-3); }
.ga-foot .more { display: inline-flex; margin-left: 8px; font-size: var(--fs-sm); }

.ga-venues, .ga-related { margin-top: var(--sec-gap); }

@media (max-width: 1023px) {
  .ga-title { font-size: 32px; }
  .ga-lead { font-size: 18px; }
  .ga-grid { grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
  .ga-head, .ga-grid { max-width: calc(760px + var(--gutter) * 2); }
  .toc { position: static; margin-bottom: 40px; padding: 22px 24px; border-radius: var(--r-md); background: var(--paper); }
  .toc ol { border-left: 0; }
  .toc a { padding: 6px 0; border-left: 0; margin-left: 0; }
  .toc a:hover { border-left: 0; }
  .faq { margin-top: 70px; }
  .faq-title { font-size: 25px; }
}
@media (max-width: 1023px) { .ga { --hd-h: 130px; } }
@media (max-width: 767px) {
  .ga-title { font-size: 26px; }
  .ga-lead { font-size: 15px; }
  .ga-meta { padding-bottom: 22px; }
  .prose-article { font-size: 16px; }
  .prose-article h2 { font-size: 21px; padding-top: 22px; margin-top: 2.2em; }
  .prose-article h3 { font-size: 18px; }
  .prose-article blockquote { padding: 18px 18px; }
  .prose-article table { font-size: 14px; }
  .prose-article th, .prose-article td { padding: 10px 12px; }
  .prose-article figure { margin: 1.6em 0; }
  .prose-article figure img { max-height: 440px; }
  .prose-article figcaption { font-size: 12px; }
  .faq { margin-top: 50px; }
  .faq-title { font-size: 20px; margin-bottom: 20px; }
  .faq-item summary { font-size: 16px; grid-template-columns: 22px minmax(0, 1fr) 16px; padding: 18px 0; }
  .faq-a-in { padding: 0 0 22px 32px; font-size: 15px; }
  .ga-foot { padding: 20px; }
}
