:root {
  color: #12352c;
  background: #f7f4eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #12352c;
  --green: #176b52;
  --green-dark: #0d503d;
  --cream: #f7f4eb;
  --paper: #fffdf7;
  --soft-green: #e9f4eb;
  --line: rgba(18, 53, 44, .14);
  --muted: #526861;
  --amber: #9a5a08;
  --soft-amber: #fff3d8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; line-height: 1.72; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid rgba(23, 107, 82, .3); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: -80px; left: 18px; padding: 10px 14px; border-radius: 8px; color: white; background: var(--green); font-weight: 800; }
.skip-link:focus { top: 14px; }

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 235, .96);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font: 700 21px Georgia, serif; text-decoration: none; }
.mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: white; background: var(--green); font: 700 18px Arial, sans-serif; }
.topbar nav, footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.topbar nav a, footer nav a { color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.topbar nav a:hover, footer nav a:hover { text-decoration: underline; }

.article-shell { width: min(1120px, calc(100% - 38px)); margin: 0 auto; padding: 38px 0 92px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 45px; color: #71817b; font-size: 13px; }
.breadcrumbs a { color: #506860; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-header { width: min(820px, 100%); margin: 0 auto 42px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.027em; line-height: 1.08; }
h1 { margin: 0 0 20px; font-size: clamp(42px, 7vw, 68px); }
h2 { margin: 46px 0 14px; font-size: clamp(29px, 4vw, 39px); }
h3 { margin: 32px 0 9px; color: var(--ink); font-size: 20px; line-height: 1.25; }
.dek { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: clamp(18px, 2.3vw, 21px); }
.article-meta { margin: 22px 0 0; color: #71817b; font-size: 13px; }

.guide-figure { max-width: 980px; margin: 0 auto 48px; padding: clamp(12px, 2vw, 20px); border: 1px solid var(--line); border-radius: 22px; background: #e6efe6; box-shadow: 0 18px 55px rgba(29, 67, 55, .09); }
.guide-figure img { display: block; width: 100%; height: auto; border-radius: 13px; }
.guide-figure figcaption { padding: 13px 8px 0; color: #597067; font-size: 13px; text-align: center; }

.article-layout { display: grid; grid-template-columns: minmax(0, 730px) 250px; justify-content: center; gap: 64px; }
.article-body { font-family: Georgia, "Times New Roman", serif; }
.article-body > p, .article-body li { color: #344f46; font-size: 19px; }
.article-body > p { margin: 0 0 24px; }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: 17px 0 28px; padding-left: 26px; }
.article-body li + li { margin-top: 10px; }
.article-body blockquote { margin: 34px 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--green); color: var(--ink); font-size: 25px; line-height: 1.42; }
.article-body code { padding: 2px 6px; border-radius: 5px; background: #e9efe9; font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; }
.note { margin: 34px 0; padding: 23px 25px; border: 1px solid #aad0b6; border-radius: 15px; background: var(--soft-green); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.note.warning { border-color: #e8c37d; background: var(--soft-amber); }
.note-label { display: block; margin-bottom: 7px; color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.note.warning .note-label { color: var(--amber); }
.note p { margin: 0; color: #345148; font-size: 15px; }

.try-card { margin: 42px 0; padding: 28px; border-radius: 18px; color: white; background: var(--green); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.try-card h2 { margin: 0 0 10px; color: white; font-size: 29px; }
.try-card p { margin: 0 0 20px; color: #e9f4ee; font-size: 15px; }
.try-card code { color: var(--ink); background: #f5f1e6; }
.button { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 9px; color: var(--green-dark); background: white; font-weight: 850; text-decoration: none; }

.side-card { position: sticky; top: 26px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 253, 247, .7); }
.side-card strong { display: block; margin-bottom: 9px; font-family: Georgia, serif; font-size: 20px; }
.side-card p { margin: 0 0 13px; color: #587068; font-size: 13px; }
.side-card a { display: block; margin-top: 10px; font-size: 14px; font-weight: 750; }

.related { width: min(1120px, calc(100% - 38px)); margin: 0 auto 82px; }
.related h2 { text-align: center; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card { display: flex; flex-direction: column; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--paper); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(18, 53, 44, .08); }
.guide-card .tag { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.guide-card h2, .guide-card h3 { margin: 13px 0 10px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; line-height: 1.15; }
.guide-card p { margin: 0 0 22px; color: #587068; font-size: 14px; }
.guide-card .read { margin-top: auto; color: var(--green); font-size: 13px; font-weight: 850; }

.hub-header { width: min(820px, 100%); margin: 26px auto 55px; text-align: center; }
.hub-grid { grid-template-columns: repeat(2, 1fr); }
.hub-grid .guide-card { min-height: 250px; }
.hub-note { width: min(770px, 100%); margin: 55px auto 0; padding: 26px; border-radius: 16px; background: var(--soft-green); text-align: center; }
.hub-note h2 { margin: 0 0 9px; font-size: 29px; }
.hub-note p { margin: 0; color: #456159; }

.release-list { width: min(780px, 100%); margin: 0 auto; }
.release { position: relative; margin: 0 0 24px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.release.latest { border-color: #8dbda1; box-shadow: 0 18px 45px rgba(23, 107, 82, .08); }
.release-status { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--green-dark); background: var(--soft-green); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.release time { display: block; margin: 15px 0 4px; color: #71817b; font-size: 13px; }
.release h2 { margin: 0 0 12px; font-size: 34px; }
.release > p { color: #526861; }
.release ul { padding-left: 20px; color: #3e5a51; }

footer { padding: 32px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); }
.footer-inner { width: min(1100px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; color: #657a72; font-size: 13px; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .side-card { position: static; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .topbar nav { gap: 14px; }
  .article-shell { padding-top: 26px; }
  .breadcrumbs { margin-bottom: 32px; }
  .article-header { text-align: left; }
  .dek { margin-left: 0; }
  .guide-figure { margin-bottom: 34px; }
  .article-body > p, .article-body li { font-size: 18px; }
  .card-grid, .hub-grid { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Guides: a quiet editorial library, with task-based navigation. */
.guide-hub-header { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 60px; margin: 12px 0 42px; }
.guide-hub-header h1 { font-size: clamp(40px, 5vw, 62px); margin-bottom: 0; }
.guide-hub-header .dek { font-size: 18px; max-width: 360px; margin: 0 0 4px auto; }
.topic-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; padding: 19px 0; border-block: 1px solid var(--line); }
.topic-nav > span { font-size: 12px; color: var(--muted); margin-right: auto; }
.topic-nav a { display: inline-flex; align-items: center; gap: 18px; padding: 8px 0; font-size: 14px; font-weight: 650; text-decoration: none; }
.topic-nav a:hover { text-decoration: underline; }
.featured-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 36px; margin: 32px 0 62px; border: 1px solid var(--line); border-radius: 16px; background: #e9eee4; overflow: hidden; }
.featured-guide h2 { font-size: clamp(30px, 3.5vw, 42px); margin: 0 0 16px; }
.featured-guide p:not(.eyebrow) { color: var(--muted); font-size: 15px; max-width: 390px; }
.featured-guide .button, .hub-note .button { background: var(--green); color: white; font-size: 14px; margin-top: 10px; }
.featured-image { display: block; color: var(--muted); text-decoration: none; min-width: 0; }
.featured-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.featured-image span { display: block; font-size: 12px; margin-top: 10px; text-align: center; }
.guide-collection { margin-top: 54px; scroll-margin-top: 24px; }
.collection-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.collection-header h2 { margin: 0 0 6px; font-size: 34px; }
.collection-header p { margin: 0; font-size: 15px; color: var(--muted); }
.collection-header > span { white-space: nowrap; font-size: 12px; color: var(--muted); }
.hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; }
.hub-grid .guide-card { min-height: 0; padding: 26px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.guide-card:hover { transform: none; box-shadow: none; }
.guide-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.guide-card h3 { font-size: 25px; line-height: 1.2; }
.guide-card .read { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 500; }
.guide-card .read span { font-size: 21px; }
.hub-note { max-width: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 32px 0; border-block: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; margin-top: 64px; }
.hub-note .button { flex-shrink: 0; }
.hub-note p { font-size: 15px; }
.hub-note .eyebrow { font-size: 11px; margin-bottom: 9px; }
.article-header { text-align: left; width: 100%; max-width: 850px; margin: 0 0 40px; }
.article-header h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.1; }
.article-header .dek { margin: 0; max-width: 720px; font-size: 19px; }
.article-meta { color: var(--muted); }
.article-layout { grid-template-columns: minmax(0, 700px) minmax(220px, 260px); justify-content: space-between; gap: 64px; }
.article-body { min-width: 0; }
.article-body h2 { font-size: 32px; line-height: 1.2; scroll-margin-top: 24px; }
.article-body > p, .article-body li { font-size: 19px; line-height: 1.85; }
.article-body code { overflow-wrap: anywhere; }
.quick-answer { border-block: 1px solid var(--line); padding: 24px 0; margin-bottom: 32px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.quick-answer p { font-size: 17px; color: var(--muted); margin: 0 0 12px; }
.quick-answer a { display: inline-block; padding: 6px 0; font-size: 14px; font-weight: 650; }
.side-card { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 0 0 24px; }
.side-card a { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.5; text-decoration: none; }
.side-card a:hover { text-decoration: underline; }
.side-card a span { color: var(--muted); font-size: 11px; }
.side-note { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; font-size: 12px; color: var(--muted); }
.article-body .guide-figure { padding: 12px; margin-top: 40px; box-shadow: none; border-radius: 12px; }
.article-body .guide-figure img { height: auto; }
.article-body .guide-figure figcaption { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.related h2 { text-align: left; font-size: 32px; }
a:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
@media (max-width: 900px) {
  .guide-hub-header { gap: 30px; }
  .featured-guide { gap: 28px; padding: 26px; }
  .hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { display: flex; flex-direction: column; gap: 32px; }
  .article-aside { order: -1; }
  .side-card { position: static; }
}
@media (max-width: 650px) {
  .topbar { gap: 12px; }
  .topbar nav { width: 100%; justify-content: space-between; }
  .topbar nav a, footer nav a { display: inline-flex; min-height: 44px; align-items: center; }
  .breadcrumbs { margin-bottom: 26px; }
  .guide-hub-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; }
  .guide-hub-header .dek { margin: 0; max-width: none; font-size: 16px; }
  .topic-nav { gap: 0 20px; padding: 12px 0; }
  .topic-nav > span { flex-basis: 100%; }
  .topic-nav a { min-height: 44px; gap: 8px; font-size: 13px; }
  .featured-guide { grid-template-columns: 1fr; padding: 24px; margin-bottom: 40px; }
  .featured-image { display: none; }
  .hub-grid { grid-template-columns: 1fr; }
  .collection-header h2 { font-size: 29px; }
  .collection-header > span { font-size: 11px; }
  .hub-note { align-items: flex-start; flex-direction: column; gap: 12px; }
  .article-header .dek { font-size: 17px; }
  .article-body > p, .article-body li { font-size: 18px; }
  .side-card a { min-height: 44px; }
  .try-card { padding: 22px; }
  .try-card .button { font-size: 14px; }
}
.mobile-toc { display: none; }
@media (max-width: 900px) {
  .article-aside { display: none; }
  .mobile-toc { display: block; margin: 0 0 24px; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
  .mobile-toc summary { padding: 12px 0; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 650; }
  .mobile-toc summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
  .mobile-toc a { display: block; padding: 10px 0; min-height: 44px; font-size: 14px; }
}
