/* Resources: hub, blog, tour, guides, updates, help. Self-contained; linked only from those pages. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/InterVariable.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/GeistMonoVariable-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- page head ---------- */
.rhead { position: relative; overflow: hidden; background: var(--ink); color: var(--fg); padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 84px); }
.rhead::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 90% at 85% 0%, rgba(109,74,255,.35), transparent 70%), radial-gradient(45% 80% at 5% 100%, rgba(255,122,26,.22), transparent 70%); }
.rhead .wrap { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.rhead h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 17em; color: #fff; }
.rhead .lede { color: #b6bed0; }
.rhead__meta { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em; color: #8a93a8; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rhead .crumbs { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #8a93a8; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.rhead .crumbs { align-items: center; }
.rhead .crumbs > * { display: inline-flex; align-items: center; min-height: 32px; line-height: 1; }
.rhead .crumbs a { color: #c9cfdd; }
.rhead .crumbs a:hover { color: var(--orange); }
.rhead__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- icon tile ---------- */
.res-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, rgba(255,122,26,.16), rgba(109,74,255,.16)); border: 1px solid var(--line); color: var(--orange-ink); }
.res-ic svg { width: 21px; height: 21px; }

/* ---------- hub ---------- */
.res-group + .res-group { margin-top: clamp(40px, 6vw, 72px); }
.res-group__head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 42rem; }
.res-group__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.res-group__head p { color: var(--fg-2); }
.res-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.res-card { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s; min-width: 0; }
.res-card:hover, .res-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.res-card h3 { font-size: 1.2rem; }
.res-card p { color: var(--fg-2); font-size: .96rem; line-height: 1.5; }
.res-card__kind { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.res-card__go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; font-size: .92rem; color: var(--accent-text); }
.res-card__go svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.res-card:hover .res-card__go svg { transform: translateX(3px); }

/* ---------- blog index ---------- */
.post-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.post-card:hover, .post-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; }
.post-card p { color: var(--fg-2); max-width: 46rem; }
.post-meta { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- article / guide layout ---------- */
.art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.art-toc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 20px 22px; }
.art-toc h2 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: 10px; }
.art-toc ol { counter-reset: t; display: grid; gap: 2px; }
.art-toc li { counter-increment: t; font-size: .94rem; }
.art-toc li a { color: var(--fg-2); display: inline-flex; gap: 10px; min-height: 40px; align-items: center; }
.art-toc li a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: .78rem; color: var(--fg-3); }
.art-toc li a:hover { color: var(--accent-text); }
@media (min-width: 960px) {
  .art { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; }
  .art-toc { position: sticky; top: calc(var(--header-h) + 24px); }
}
.prose { max-width: 44rem; min-width: 0; }
.prose > section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); letter-spacing: -0.028em; margin-bottom: 14px; }
.prose h3 { font-size: 1.12rem; margin: 24px 0 8px; }
.prose p { color: #343b4a; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + ol, .prose ol + p, .prose ul + h3, .prose p + .callout, .prose .callout + p { margin-top: 16px; }
.prose ul { display: grid; gap: 8px; color: #343b4a; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.prose ol.steps-list { counter-reset: s; display: grid; gap: 12px; }
.prose ol.steps-list li { counter-increment: s; position: relative; padding-left: 42px; color: #343b4a; }
.prose ol.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: .74rem; font-weight: 600; background: var(--ink); color: #fff; }
.prose a:not(.btn) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }
.callout { padding: 16px 20px; border-radius: var(--r-md); background: #fff4e8; border: 1px solid rgba(196,80,10,.28); color: #5c2806; font-size: .98rem; }
.callout strong { color: #5c2806; }
.prose .callout p { color: inherit; }
.byline { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .04em; color: var(--fg-3); }

/* ---------- related ---------- */
.rel { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.rel a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .96rem; transition: border-color .25s, transform .4s var(--ease-out); }
.rel a:hover, .rel a:focus-visible { border-color: var(--orange); transform: translateY(-2px); }
.rel svg { width: 14px; height: 14px; flex: none; color: var(--orange-ink); }
.rel small { display: block; font-weight: 450; color: var(--fg-2); font-size: .82rem; }

/* ---------- checklist ---------- */
.check { display: grid; gap: 10px; margin-top: 8px; }
.check__group { padding: clamp(18px, 2.6vw, 26px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.check__group h3 { margin: 0 0 12px; font-size: 1.12rem; }
.check__item { display: flex; align-items: flex-start; gap: 14px; min-height: 40px; padding: 8px 0; cursor: pointer; color: #343b4a; font-size: 1rem; line-height: 1.45; }
.check__item + .check__item { border-top: 1px solid var(--line); }
.check__item input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer; }
.check__item input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.check__item input:checked { background: var(--orange); border-color: var(--orange); }
.check__item input:checked::after { opacity: 1; }
.check__item input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.check__tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn--sm.is-plain { --btn-bg: var(--surface); }

/* ---------- tour ---------- */
.tour { display: grid; gap: clamp(36px, 6vw, 72px); counter-reset: tour; }
.tour-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; scroll-margin-top: calc(var(--header-h) + 16px); }
.tour-step:nth-child(even) .tour-step__copy { order: 2; }
.tour-step__copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.tour-step__num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; background: var(--orange); color: var(--ink); box-shadow: 0 0 0 6px rgba(255,122,26,.16); }
.tour-step h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.tour-step p { color: var(--fg-2); }
.tour-step ul { display: grid; gap: 8px; color: var(--fg-2); font-size: .98rem; }
.tour-step ul li { position: relative; padding-left: 22px; }
.tour-step ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.tour-step__media { min-width: 0; display: grid; gap: 12px; }
.tour-step__media .frame { transform: none; }
.tour-step__media figcaption { font-size: .86rem; color: var(--fg-3); }
.tour-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tour-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; font-size: .9rem; }
.tour-nav a:hover { border-color: var(--orange); }
.tour-nav b { font-family: var(--font-mono); font-weight: 600; color: var(--orange-ink); }
@media (max-width: 900px) {
  .tour-step { grid-template-columns: minmax(0, 1fr); }
  .tour-step:nth-child(even) .tour-step__copy { order: 0; }
}

/* ---------- phases (rollout) ---------- */
.phases { display: grid; gap: 16px; }
.phase { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.phase__days { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.phase__days strong { display: block; font-family: var(--font-sans); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; color: var(--fg); margin-bottom: 4px; }
.phase h3 { margin-bottom: 8px; }
.phase p { color: var(--fg-2); }
.phase ul { display: grid; gap: 7px; margin-top: 12px; color: var(--fg-2); font-size: .98rem; }
.phase ul li { position: relative; padding-left: 22px; }
.phase ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@media (max-width: 640px) { .phase { grid-template-columns: minmax(0, 1fr); } }

/* ---------- updates ---------- */
.log { display: grid; gap: 40px; max-width: 52rem; }
.log__month { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.log__month > h2 { font-size: 1.3rem; letter-spacing: -0.02em; position: sticky; top: calc(var(--header-h) + 20px); }
.log__items { display: grid; gap: 14px; min-width: 0; }
.log__item { padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.log__item h3 { font-size: 1.08rem; margin-bottom: 6px; }
.log__item p { color: var(--fg-2); font-size: .97rem; }
.log__date { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--fg-3); display: block; margin-bottom: 8px; }
.log__tag { display: inline-block; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); margin-left: 8px; }
@media (max-width: 720px) { .log__month { grid-template-columns: minmax(0, 1fr); } .log__month > h2 { position: static; } }

/* ---------- help ---------- */
.help-steps { display: grid; gap: 14px; counter-reset: h; }
.help-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.help-step::before { counter-increment: h; content: counter(h); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; background: var(--ink); color: #fff; }
.help-step h3 { margin-bottom: 4px; }
.help-step p { color: var(--fg-2); font-size: .97rem; }
.help-step a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.qa { display: grid; gap: 12px; max-width: 52rem; }
.qa details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 20px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font-family: var(--font-mono); font-size: 1.3rem; color: var(--orange-ink); flex: none; }
.qa details[open] summary::after { content: '\2212'; }
.qa details > div { padding: 0 20px 18px; color: var(--fg-2); }
.qa details > div p + p { margin-top: 10px; }
.qa a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.contact-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border-radius: var(--r-xl); border: 1px dashed var(--line-strong); background: var(--surface); }
.contact-box p { color: var(--fg-2); max-width: 34rem; }
.contact-box a[data-sales-email] { font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 40px; }

/* ---------- print (checklists and guides) ---------- */
@media print {
  .nav, .progress, .footer, .final-wrap, .rhead__cta, .art-toc, .check__tools, .rel-section, [data-site-header], [data-site-footer], .skip { display: none !important; }
  .rhead { background: #fff; color: #000; padding: 0 0 16px; }
  .rhead h1, .rhead .lede, .rhead__meta { color: #000; }
  .rhead::before { display: none; }
  .section { padding-block: 16px; }
  .art { display: block; }
  .check__group { break-inside: avoid; box-shadow: none; }
  .check__item input { border-color: #000; }
}
