/* Resources & Guides: article page (.guide-article) and the shared list rows (.gi-*) used by the About page Resources section.
   Static file: the site's Tailwind is precompiled, so new styling lives here. */

.guide-article, .resources-section {
  --blue: #1e78b6;
  --blue-dark: #145f92;
  --blue-pale: #edf6fa;
  --plum: #5d3d45;
  --plum-soft: #816b71;
  --ink: #0a1d2a;
  --surface: #f9f9fa;
  --line: #e5e7ea;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  overflow-x: clip;
}
.guide-article *, .resources-section * { box-sizing: border-box; }
html:has(.guide-article) { scroll-behavior: smooth; }

/* ---------- Library ---------- */
.gi-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.gi-row:first-child { border-top: 0; }
.gi-row:hover { background: var(--surface); }
.gi-text { display: block; min-width: 0; }
.gi-text > span { display: block; }
.gi-kicker { color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.gi-row-title { margin-top: 4px; color: var(--blue); font-size: 18px; font-weight: 500; line-height: 1.3; }
.gi-desc { margin-top: 4px; color: var(--plum); font-size: 14px; line-height: 1.5; }
.gi-meta { margin-top: 6px; color: var(--plum-soft); font-size: 13px; }
.gi-arrow { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--blue-pale); color: var(--blue); font-size: 18px; }
.gi-row:hover .gi-arrow { background: var(--blue); color: #fff; }

/* Tabbed list inside the About page Resources section (.resources-section) */
.rs-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.rs-pill { padding: 9px 18px; border: 0; border-radius: 999px; background: #eef5f7; color: var(--blue); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.rs-pill:hover { background: var(--blue-pale); }
.rs-pill.is-active { background: var(--blue); color: #fff; }
.rs-soon { margin-left: 4px; font-size: 12px; font-weight: 400; }
.rs-list { overflow-x: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rs-list .gi-row { min-height: 130px; }
.rs-list .gi-row:hover { background: #fff; }
.rs-list a.gi-row:hover { background: var(--surface); }
.rs-list .gi-text > span { margin-top: 4px; }
.rs-list .gi-text > .gi-kicker { margin-top: 0; }
/* Three rows (3 x 130px) plus the two divider lines; the scrollbar is styled so it stays visible on macOS. */
.rs-scroll { max-height: 392px; overflow-y: scroll; scrollbar-width: thin; scrollbar-color: var(--blue) var(--blue-pale); }
.rs-scroll::-webkit-scrollbar { width: 8px; }
.rs-scroll::-webkit-scrollbar-track { border-radius: 999px; background: var(--blue-pale); }
.rs-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--blue); }

/* ---------- Article ---------- */
.guide-article { background: #fff; color: var(--plum); line-height: 1.7; }
.guide-article a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.guide-article .hero-figure { margin: 0; background: var(--surface); }
.guide-article .hero-image { display: block; width: 100%; height: 58vw; min-height: 280px; max-height: 720px; object-fit: cover; object-position: center 52%; }
.guide-article .caption { max-width: 1440px; margin: 0 auto; padding: 9px 22px 12px; color: #6e6e70; font-size: 11px; line-height: 1.45; }

.guide-article .article-heading { max-width: 1160px; margin: 0 auto; padding: 50px 22px 42px; text-align: center; }
.guide-article .eyebrow { margin: 0 0 15px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.guide-article h1, .guide-article h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: -.025em; }
.guide-article h1 { max-width: 1060px; margin: 0 auto; color: var(--blue); font-size: clamp(36px, 4.1vw, 58px); line-height: 1.12; }
.guide-article .dek { max-width: 890px; margin: 22px auto 0; color: var(--ink); font-size: clamp(16px, 1.35vw, 19px); font-weight: 500; line-height: 1.45; }
.guide-article .meta { margin: 28px 0 0; color: var(--plum-soft); font-size: 12px; }
.guide-article .meta strong { color: var(--plum); }

.guide-article .guide-video { max-width: 900px; margin: 0 auto; padding: 0 22px 56px; }
.guide-article .guide-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: var(--ink); }

.guide-article .article-shell { display: block; max-width: 1180px; margin: 0 auto; padding: 46px 22px 76px; border-top: 1px solid var(--line); }
.guide-article .share-rail { display: flex; gap: 12px; margin-bottom: 30px; }
.guide-article .share-rail a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--blue); font-weight: 700; text-decoration: none; }
.guide-article .share-rail a:hover { background: var(--blue-pale); }

.guide-article .article-body { color: var(--plum); font-family: "Playfair Display", Georgia, serif; font-size: 17px; line-height: 1.78; overflow-wrap: anywhere; }
.guide-article .article-body p { margin: 0 0 31px; }
.guide-article .article-body h2 { margin: 64px 0 22px; color: var(--blue); font-size: clamp(27px, 2.5vw, 36px); line-height: 1.18; scroll-margin-top: 24px; }
.guide-article .article-body a { font-weight: 500; }
.guide-article .article-body ul, .guide-article .article-body ol { margin: 0 0 31px; padding-left: 1.4em; }
.guide-article .article-body ul { list-style: disc; }
.guide-article .article-body ol { list-style: decimal; }
.guide-article .article-body li { margin-bottom: 10px; }
.guide-article .article-body > p:first-child::first-letter { float: left; margin: 10px 10px 0 0; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 60px; line-height: .74; }

.guide-article .guide-download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding: 22px 24px; border-radius: 14px; background: var(--blue-pale); font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; font-size: 16px; }
.guide-article .guide-download strong { color: var(--ink); }
.guide-article .guide-download a { padding: 12px 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.guide-article .guide-download a:hover { background: var(--blue-dark); }

.guide-article .article-index { display: none; }

.guide-article .related { max-width: 1180px; margin: 0 auto; padding: 0 22px 76px; }
.guide-article .related h2 { margin: 0 0 22px; color: var(--blue); font-size: 28px; }
.guide-article .related-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.guide-article .related-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
.guide-article .related-card:hover { background: var(--surface); }
.guide-article .related-card span { display: block; }
.guide-article .related-kicker { color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.guide-article .related-title { margin-top: 6px; color: var(--blue); font-family: "Playfair Display", Georgia, serif; font-size: 22px; line-height: 1.25; }
.guide-article .related-meta { margin-top: 10px; color: var(--plum-soft); font-size: 13px; }

.guide-article .map-cta { display: grid; min-height: 360px; place-items: center; padding: 54px 22px; background: linear-gradient(rgba(13, 101, 158, .12), rgba(13, 101, 158, .26)), var(--blue); text-align: center; }
.guide-article .map-cta-inner { max-width: 820px; color: #fff; }
.guide-article .map-cta .eyebrow { color: rgba(255, 255, 255, .82); }
.guide-article .map-cta h2 { margin: 0 auto; color: #fff; font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif; font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; line-height: 1.16; letter-spacing: -.025em; text-shadow: 0 6px 8px rgba(0, 0, 0, .16); }
.guide-article .map-cta p { max-width: 680px; margin: 18px auto 27px; font-size: 16px; line-height: 1.6; }
.guide-article .map-cta p.eyebrow { margin: 0 0 15px; font-size: 12px; }
.guide-article .map-cta a { display: inline-block; padding: 13px 23px; border-radius: 999px; background: #fff; color: var(--blue-dark); font-weight: 700; text-decoration: none; }

/* ---------- Wider screens ---------- */
@media (min-width: 761px) {
  .guide-article .hero-image { height: clamp(360px, 53vw, 720px); }
  .guide-article .caption { padding: 9px clamp(22px, 5vw, 74px) 12px; }
  .guide-article .article-heading { padding: 58px 30px 48px; }
  .guide-article .meta { font-size: 12px; }
  .guide-article .article-shell { display: grid; grid-template-columns: 54px minmax(0, 760px); gap: 46px; justify-content: center; align-items: start; padding: 64px 28px 100px; }
  .guide-article .share-rail { position: sticky; top: 24px; display: grid; align-content: start; gap: 12px; margin-bottom: 0; }
  .guide-article .share-rail a { width: 46px; height: 46px; }
  .guide-article .article-body { font-size: clamp(16px, 1.25vw, 18px); }
  .guide-article .map-cta { min-height: 430px; padding: 70px 28px; }
  .guide-article .related-grid { grid-template-columns: repeat(3, 1fr); }
  .gi-row { padding: 22px 28px; }
}
@media (min-width: 1024px) {
  .guide-article .article-shell { grid-template-columns: 62px minmax(0, 760px) 190px; }
  .guide-article .article-index { position: sticky; top: 24px; display: block; padding: 20px 0 20px 20px; border-left: 2px solid var(--blue-pale); font-size: 12px; line-height: 1.5; }
  .guide-article .article-index strong { display: block; margin-bottom: 12px; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; }
  .guide-article .article-index a { display: block; margin-bottom: 8px; color: var(--plum); text-decoration: none; }
}
