/* SocialNote Guides — shared styles. Tokens and components are documented in STYLE_GUIDE.md. */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,400..800;1,400&family=JetBrains+Mono:wght@500&display=swap');

:root {
  --gl-navy: #2b3f77;
  --gl-navy-dark: #20315f;
  --gl-navy-light: #e8ebf2;
  --gl-navy-soft: #b8c4e6;
  --gl-ink: #111827;
  --gl-ink-2: #374151;
  --gl-muted: #4b5563;
  --gl-subtle: #6b7280;
  --gl-faint: #9aa3b2;
  --gl-border: #e5e7eb;
  --gl-border-strong: #d3d9e6;
  --gl-surface: #f9fafb;
  --gl-surface-2: #f7f8fb;
  --gl-side: #fbfbfc;
  --gl-green: #047857;
  --gl-green-bg: #d1fae5;
  --gl-blue: #1d4ed8;
  --gl-blue-bg: #dbeafe;
  --gl-rose: #be123c;
  --gl-rose-bg: #ffe4e6;
  --gl-top-h: 60px;
  --gl-font: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gl-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

/* ---------- Base ---------- */

.gl {
  margin: 0;
  background: #fff;
  color: var(--gl-ink);
  font-family: var(--gl-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.gl a { color: var(--gl-navy); }
.gl a:hover { color: var(--gl-navy-dark); }
.gl :focus-visible { outline: 3px solid rgba(43, 63, 119, .35); outline-offset: 2px; }
.gl-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gl-drawer-open { overflow: hidden; }

/* Reserve shell space before the script runs to limit layout shift. */
@media (min-width: 901px) { .gl:not(.gl-ready) { padding: calc(var(--gl-top-h) + 40px) 48px 0 308px; } }
@media (max-width: 900px) { .gl:not(.gl-ready) { padding: calc(var(--gl-top-h) + 24px) 20px 0; } }

.gl-skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 8px 14px; border-radius: 8px; background: var(--gl-navy); color: #fff !important;
  font-weight: 600; text-decoration: none;
}
.gl-skip:focus { top: 10px; }

/* ---------- Buttons ---------- */

.gl-btn, .gl-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  font: 600 14px/1 var(--gl-font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.gl-btn { background: var(--gl-navy); color: #fff !important; border: 1px solid var(--gl-navy); }
.gl-btn:hover { background: var(--gl-navy-dark); border-color: var(--gl-navy-dark); }
.gl-btn[disabled] { opacity: .6; cursor: default; }
.gl-btn-ghost { background: #fff; color: var(--gl-ink-2); border: 1px solid var(--gl-border-strong); }
.gl-btn-ghost:hover { border-color: var(--gl-navy); color: var(--gl-navy); }
.gl-linkbtn { padding: 0; border: 0; background: none; font: inherit; color: var(--gl-ink-2); cursor: pointer; }
.gl-linkbtn:hover { color: var(--gl-navy); }
.gl-icon-btn {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--gl-ink); cursor: pointer;
}
.gl-icon-btn:hover { background: var(--gl-surface-2); }

/* ---------- Top bar ---------- */

.gl-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  height: var(--gl-top-h); padding: 0 24px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--gl-border);
  backdrop-filter: saturate(1.4) blur(8px);
}
.gl-brand { display: flex; align-items: center; gap: 10px; flex: none; width: 212px; text-decoration: none; }
.gl-brand img { display: block; height: 22px; width: auto; }
.gl-brand span { padding-left: 10px; border-left: 1px solid var(--gl-border); color: var(--gl-subtle); font-size: 15px; line-height: 20px; }

.gl-search { position: relative; flex: 1; max-width: 460px; }
.gl-search > svg { position: absolute; left: 12px; top: 11px; color: var(--gl-faint); pointer-events: none; }
.gl-search input {
  width: 100%; height: 38px; padding: 0 40px 0 36px; box-sizing: border-box;
  border: 1px solid var(--gl-border-strong); border-radius: 9px; background: var(--gl-surface);
  font: 400 14px var(--gl-font); color: var(--gl-ink);
}
.gl-search input::placeholder { color: var(--gl-faint); }
.gl-search input:focus { outline: 3px solid rgba(43, 63, 119, .18); outline-offset: 0; border-color: var(--gl-navy); background: #fff; }
.gl-search input::-webkit-search-cancel-button { display: none; }
.gl kbd, .gl-search kbd {
  font: 500 11px/1 var(--gl-mono); padding: 3px 6px;
  border: 1px solid var(--gl-border-strong); border-radius: 5px; background: #fff; color: var(--gl-subtle);
}
.gl-search kbd { position: absolute; right: 10px; top: 9px; }
.gl-results {
  position: absolute; left: 0; right: 0; top: 44px; z-index: 50;
  margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--gl-border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .14);
  max-height: min(440px, 70vh); overflow-y: auto;
}
.gl-results a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.gl-results strong { display: block; color: var(--gl-navy); font-size: 14.5px; font-weight: 650; }
.gl-results span { display: block; color: var(--gl-subtle); font-size: 13px; line-height: 1.4; }
.gl-results [aria-selected="true"] a, .gl-results a:hover { background: var(--gl-navy-light); }
.gl-results .gl-empty { padding: 12px; color: var(--gl-subtle); font-size: 14px; line-height: 1.5; }

.gl-top-links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 600; }
.gl-top-links > a:not(.gl-btn) { color: var(--gl-ink-2); text-decoration: none; }
.gl-top-links > a:not(.gl-btn):hover, .gl-top-links > a[aria-current] { color: var(--gl-navy); }
.gl-top-links .gl-linkbtn { font-weight: 600; }

.gl-home .gl-top .gl-search, .gl-home .gl-search-btn { visibility: hidden; }

/* ---------- Shell ---------- */

.gl-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 232px; min-height: calc(100vh - var(--gl-top-h)); }
.gl-no-toc .gl-shell { grid-template-columns: 260px minmax(0, 1fr); }

.gl-side {
  position: sticky; top: var(--gl-top-h); align-self: start;
  height: calc(100vh - var(--gl-top-h)); overflow-y: auto; box-sizing: border-box;
  padding: 24px 16px 40px; background: var(--gl-side); border-right: 1px solid var(--gl-border);
}
.gl-side ul { display: flex; flex-direction: column; gap: 2px; margin: 0 0 22px; padding: 0; list-style: none; }
.gl-side-label { margin: 0; padding: 0 10px 6px; color: var(--gl-subtle); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gl-side a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--gl-ink-2); font-size: 14px; line-height: 1.4; text-decoration: none; }
.gl-side a:hover { background: #f0f2f6; color: var(--gl-ink); }
.gl-side a[aria-current="page"] { background: var(--gl-navy-light); color: var(--gl-navy); font-weight: 650; }
.gl-side-head, .gl-side-extra { display: none; }
.gl-scrim { display: none; }

.gl-main { min-width: 0; padding: 40px 48px 72px; container-type: inline-size; outline: none; }

.gl-rail {
  position: sticky; top: var(--gl-top-h); align-self: start;
  max-height: calc(100vh - var(--gl-top-h)); overflow-y: auto; box-sizing: border-box;
  padding: 40px 24px 32px 0;
}
.gl-rail-label { margin: 0 0 10px; color: var(--gl-subtle); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gl-toc { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--gl-border); }
.gl-toc a {
  display: block; margin-left: -2px; padding: 5px 0 5px 12px; border-left: 2px solid transparent;
  color: var(--gl-subtle); font-size: 13px; line-height: 1.35; text-decoration: none;
}
.gl-toc a:hover { color: var(--gl-ink); }
.gl-toc a.is-active { border-left-color: var(--gl-navy); color: var(--gl-navy); font-weight: 650; }

.gl-mtoc { display: none; position: sticky; top: var(--gl-top-h); z-index: 20; margin: -40px -48px 28px; background: var(--gl-surface-2); border-bottom: 1px solid var(--gl-border); }
.gl-mtoc summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; font-size: 13.5px; list-style: none; cursor: pointer; }
.gl-mtoc summary::-webkit-details-marker { display: none; }
.gl-mtoc summary span { flex: none; color: var(--gl-subtle); }
.gl-mtoc summary strong { min-width: 0; overflow: hidden; color: var(--gl-navy); font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.gl-mtoc summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px auto; border-right: 2px solid var(--gl-subtle); border-bottom: 2px solid var(--gl-subtle); transform: rotate(45deg); }
.gl-mtoc[open] summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.gl-mtoc ol { max-height: 60vh; overflow-y: auto; margin: 0; padding: 6px 0 10px; list-style: none; background: #fff; border-top: 1px solid var(--gl-border); box-shadow: 0 12px 24px rgba(17, 24, 39, .08); }
.gl-mtoc ol a { display: flex; align-items: center; min-height: 40px; padding: 0 20px; color: var(--gl-ink-2); font-size: 14px; text-decoration: none; }
.gl-mtoc ol a.is-active { color: var(--gl-navy); font-weight: 650; }

/* ---------- Page header ---------- */

.gl .gl-main > .wrap, .gl .gl-main > main { width: auto; max-width: 880px; margin: 0; padding: 0; }
.gl .gl-main > footer { width: auto; max-width: 880px; margin: 0; }
.gl [id] { scroll-margin-top: calc(var(--gl-top-h) + 24px); }

.gl .doc-head { margin: 0 0 40px; padding: 0; border: 0; }
.gl-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; color: var(--gl-subtle); font-size: 13px; line-height: 1.4; }
.gl-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--gl-faint); }
.gl-crumbs a { color: var(--gl-subtle); text-decoration: none; }
.gl-crumbs a:hover { color: var(--gl-navy); text-decoration: underline; }
.gl-crumbs [aria-current] { color: var(--gl-ink); font-weight: 600; }
.gl .doc-head .eyebrow { margin: 0 0 12px; color: var(--gl-subtle); font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.gl .doc-head h1 { margin: 0 0 12px; font-size: clamp(30px, 4.2vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.028em; text-wrap: balance; }
.gl .doc-head .lede { max-width: 68ch; margin: 0; color: var(--gl-muted); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.gl-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 13px; }
.gl-meta li { padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: var(--gl-muted); }
.gl-meta li:first-child { background: var(--gl-navy-light); color: var(--gl-navy); font-weight: 600; }

/* ---------- Article content (scoped to .wrap) ---------- */

.gl .wrap h2 { margin: 56px 0 12px; padding: 0; border: 0; font-size: 26px; font-weight: 750; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.gl .wrap h3 { margin: 32px 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.gl .wrap p, .gl .wrap li { text-wrap: pretty; }
.gl .wrap > p, .gl .wrap > ul, .gl .wrap > ol { max-width: 72ch; }
.gl-has-toc .wrap nav.toc { display: none; }

.gl .callout {
  position: relative; max-width: 72ch; margin: 24px 0; padding: 16px 18px 16px 48px; box-sizing: border-box;
  border: 1px solid #bfd3f8; border-radius: 10px; background: #f3f7ff; color: var(--gl-ink-2);
}
.gl .callout::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; background: var(--gl-blue);
  -webkit-mask: var(--gl-icon-info) center / contain no-repeat; mask: var(--gl-icon-info) center / contain no-repeat;
}
.gl .callout .title { display: block; margin-bottom: 2px; color: var(--gl-ink); font-weight: 700; }
.gl .callout p:last-child { margin-bottom: 0; }
.gl .callout.warn { border-color: #fcd9a3; background: #fffaf0; }
.gl .callout.warn::before { background: #92400e; -webkit-mask-image: var(--gl-icon-warn); mask-image: var(--gl-icon-warn); }
.gl .callout.alert { border-color: #fecaca; background: #fef6f6; }
.gl .callout.alert::before { background: #b91c1c; -webkit-mask-image: var(--gl-icon-warn); mask-image: var(--gl-icon-warn); }
.gl .callout.tip { border-color: #a7e3c9; background: #f0fbf6; }
.gl .callout.tip::before { background: var(--gl-green); -webkit-mask-image: var(--gl-icon-check); mask-image: var(--gl-icon-check); }
:root {
  --gl-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 7.8v.2'/%3E%3C/svg%3E");
  --gl-icon-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 21 20H3Z'/%3E%3Cpath d='M12 9v5M12 17.2v.2'/%3E%3C/svg%3E");
  --gl-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.3 12.3 2.5 2.5 5-5.2'/%3E%3C/svg%3E");
}

.gl figure.shot {
  margin: 28px 0; padding: 8px; box-sizing: border-box;
  border: 1px solid var(--gl-border); border-radius: 12px; background: var(--gl-surface);
  box-shadow: 0 10px 30px rgba(43, 63, 119, .07);
}
.gl figure.shot img { display: block; width: 100%; height: auto; border-radius: 6px; cursor: zoom-in; }
.gl figure.shot figcaption { margin: 0; padding: 10px 6px 4px; color: var(--gl-subtle); font-size: 13.5px; line-height: 1.5; }
.gl .shot-grid { gap: 16px; margin: 28px 0; }
.gl .shot-grid figure.shot { margin: 0; }

.gl .wrap table {
  width: 100%; margin: 24px 0; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--gl-border); border-radius: 10px; overflow: hidden;
  background: #fff; font-size: 14.5px; line-height: 1.55;
}
.gl .wrap th, .gl .wrap td { padding: 11px 14px; border-bottom: 1px solid var(--gl-border); text-align: left; vertical-align: top; }
.gl .wrap th { background: var(--gl-surface-2); color: var(--gl-muted); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--gl-border); }
.gl .wrap tbody tr:last-child td { border-bottom: 0; }

.gl .steps > li { padding-left: 2.75rem; }
.gl .steps > li::before {
  box-sizing: border-box; width: 28px; height: 28px; top: 0;
  background: #fff; border: 2px solid var(--gl-navy); color: var(--gl-navy); font-size: 13px;
}
.gl .checklist li::before { color: var(--gl-green); }
.gl .card { border-radius: 12px; background: var(--gl-surface); color: var(--gl-ink-2); font-size: 15.5px; line-height: 1.65; }
.gl nav.toc { border-radius: 12px; }

.gl-pair { margin: 24px 0; }
@container (min-width: 760px) {
  .gl-pair { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .gl-pair > ol.steps { margin: 4px 0 0; }
  .gl-pair > figure.shot { position: sticky; top: calc(var(--gl-top-h) + 24px); margin: 0; }
}

.gl .doc-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--gl-border); color: var(--gl-subtle); font-size: 13px; }

/* ---------- End of guide ---------- */

.gl-end { display: flex; flex-direction: column; gap: 20px; margin-top: 64px; }
.gl-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 18px; border: 1px solid var(--gl-border); border-radius: 12px; }
.gl-helpful p { margin: 0; font-size: 15px; font-weight: 600; }
.gl-helpful div { display: flex; gap: 8px; }
.gl-helpful button {
  min-width: 72px; height: 36px; padding: 0 14px; border: 1px solid var(--gl-border-strong); border-radius: 8px;
  background: #fff; color: var(--gl-ink-2); font: 600 14px var(--gl-font); cursor: pointer;
}
.gl-helpful button:hover:not([disabled]) { border-color: var(--gl-navy); color: var(--gl-navy); }
.gl-helpful button[disabled] { opacity: .55; cursor: default; }
.gl-helpful .gl-helpful-msg { color: var(--gl-subtle); font-size: 14px; font-weight: 400; }
.gl-helpful .gl-helpful-msg:empty { display: none; }
.gl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gl-pn a { display: block; padding: 16px 18px; border: 1px solid var(--gl-border); border-radius: 12px; text-decoration: none; }
.gl-pn a:hover { border-color: var(--gl-navy-soft); background: #fafbfd; }
.gl-pn span { display: block; color: var(--gl-subtle); font-size: 12.5px; }
.gl-pn strong { display: block; color: var(--gl-navy); font-weight: 700; line-height: 1.35; }
.gl-pn-next { grid-column: 2; text-align: right; }

/* ---------- Dialogs ---------- */

.gl-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; box-sizing: border-box;
  border: 0; border-radius: 16px; background: #fff; color: var(--gl-ink);
  box-shadow: 0 30px 80px rgba(17, 24, 39, .3); font-family: var(--gl-font);
}
.gl-dialog::backdrop { background: rgba(17, 24, 39, .45); }
.gl-dialog-body { padding: 22px 24px 24px; }
.gl-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.gl-dialog h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.01em; }
.gl-dialog .gl-icon-btn { display: inline-flex; margin-right: -10px; }
.gl-fb-intro { margin: 0 0 18px; color: var(--gl-muted); font-size: 14px; line-height: 1.55; }
.gl-fb-intro strong { color: var(--gl-ink-2); font-weight: 600; }
.gl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.gl-field small { color: var(--gl-subtle); font-size: 12.5px; font-weight: 400; }
.gl-field input, .gl-field select, .gl-field textarea {
  box-sizing: border-box; width: 100%; padding: 10px 12px;
  border: 1px solid var(--gl-border-strong); border-radius: 9px; background: #fff;
  font: 400 15px/1.5 var(--gl-font); color: var(--gl-ink);
}
.gl-field textarea { min-height: 120px; resize: vertical; }
.gl-field :focus { outline: 3px solid rgba(43, 63, 119, .18); outline-offset: 0; border-color: var(--gl-navy); }
.gl-fb-status { min-height: 1.2em; margin: 0 0 12px; color: #b91c1c; font-size: 13.5px; }
.gl-fb-status:empty { margin: 0; min-height: 0; }
.gl-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.gl-dialog-actions .gl-btn, .gl-dialog-actions .gl-btn-ghost { height: 40px; padding: 0 16px; }
.gl-lightbox { width: min(1280px, calc(100vw - 48px)); padding: 12px; background: #fff; cursor: zoom-out; }
.gl-lightbox img { display: block; width: 100%; height: auto; border-radius: 8px; }
.gl-lightbox p { margin: 10px 4px 2px; color: var(--gl-subtle); font-size: 14px; }
.gl-lightbox p:empty { display: none; }
.gl-lightbox .gl-lightbox-close { position: absolute; top: 18px; right: 18px; margin: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* ---------- Home page ---------- */

.gl .wrap.wrap--home { max-width: 1180px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.home-hero { margin-bottom: 36px !important; }
.gl .hero-meta { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--gl-subtle); font-size: 13.5px; }
.gl .hero-meta .dot { color: var(--gl-faint); }
.home-search { position: relative; max-width: 720px; margin-top: 24px; }
.home-search svg { position: absolute; left: 16px; top: 17px; color: var(--gl-subtle); pointer-events: none; }
.home-search input {
  box-sizing: border-box; width: 100%; height: 52px; padding: 0 48px 0 46px;
  border: 1px solid var(--gl-border-strong); border-radius: 11px; background: #fff;
  box-shadow: 0 6px 20px rgba(43, 63, 119, .07);
  font: 400 16px var(--gl-font); color: var(--gl-ink);
}
.home-search input::placeholder { color: var(--gl-faint); }
.home-search input:focus { outline: 3px solid rgba(43, 63, 119, .18); outline-offset: 0; border-color: var(--gl-navy); }
.home-search kbd { position: absolute; right: 14px; top: 16px; }
.home-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--gl-subtle); font-size: 13px; }
.home-popular button { padding: 4px 11px; border: 0; border-radius: 999px; background: #f3f4f6; color: var(--gl-ink-2); font: 400 13px var(--gl-font); cursor: pointer; }
.home-popular button:hover { background: var(--gl-navy-light); color: var(--gl-navy); }
.gl .search-status { min-height: 1.3em; margin: 10px 0 0; color: var(--gl-subtle); font-size: 14px; }
.gl .search-status:empty { min-height: 0; margin: 0; }

.home-start-label { margin: 0 0 12px; color: var(--gl-green); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 48px; padding: 0; list-style: none; counter-reset: gl-start; }
.home-start a { display: flex; gap: 14px; height: 100%; box-sizing: border-box; padding: 16px 18px; border: 1px solid var(--gl-border); border-radius: 12px; color: inherit; text-decoration: none; }
.home-start a:hover { border-color: var(--gl-navy-soft); background: #fafbfd; }
.home-start a::before {
  counter-increment: gl-start; content: counter(gl-start);
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--gl-navy); color: #fff; font-size: 13px; font-weight: 700;
}
.home-start strong { display: block; color: var(--gl-navy); font-weight: 700; }
.home-start span { display: block; color: var(--gl-muted); font-size: 13.5px; line-height: 1.45; }

.guide-group { margin: 0 0 44px; }
.guide-group[hidden] { display: none; }
.guide-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding-bottom: 10px; border-bottom: 2px solid var(--gl-ink); }
.gl .guide-group__head h2 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.guide-group__head p { margin: 0; color: var(--gl-subtle); font-size: 13.5px; }
.guide-list { margin: 0; padding: 0; list-style: none; }
.guide-list li[hidden] { display: none; }
.guide-card {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 16px; gap: 20px; align-items: baseline;
  padding: 13px 8px; border-bottom: 1px solid #eef0f3; border-radius: 4px; color: inherit; text-decoration: none;
}
.guide-card:hover { background: var(--gl-surface-2); }
.guide-card__title { color: var(--gl-navy); font-size: 15px; font-weight: 650; line-height: 1.4; }
.guide-card__desc { color: var(--gl-subtle); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.guide-card__arrow { color: var(--gl-faint); }
.guide-card:hover .guide-card__arrow { color: var(--gl-navy); }

.home-aside { position: sticky; top: calc(var(--gl-top-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.home-card { padding: 18px; border: 1px solid var(--gl-border); border-radius: 12px; }
.gl .home-card h2 { margin: 0; font-size: 15px; font-weight: 750; letter-spacing: -.005em; }
.home-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-card__head a { font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-card__head a:hover { text-decoration: underline; }
.gl #release-meta { margin: 4px 0 14px; color: var(--gl-subtle); font-size: 12.5px; line-height: 1.45; }
.change-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.4; }
.change-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.change-list__more a { font-size: 13px; font-weight: 600; text-decoration: none; }
.gl .tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: var(--gl-green-bg); color: var(--gl-green); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gl .tag--improved { background: var(--gl-blue-bg); color: var(--gl-blue); }
.gl .tag--fixed { background: var(--gl-rose-bg); color: var(--gl-rose); }
.home-flow { border: 0; background: var(--gl-navy-light); }
.gl .home-flow h2 { color: var(--gl-navy-dark); }
.home-flow > p { margin: 4px 0 14px; color: var(--gl-muted); font-size: 13px; line-height: 1.45; }
.home-flow ol { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: gl-flow; }
.home-flow li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; }
.home-flow li::before {
  counter-increment: gl-flow; content: counter(gl-flow);
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--gl-navy); color: #fff; font-size: 11px; font-weight: 700;
}
.home-flow strong { display: block; color: var(--gl-navy-dark); font-size: 14px; }
.home-flow span { display: block; color: var(--gl-muted); font-size: 12.5px; line-height: 1.4; }
.home-help { color: var(--gl-muted); font-size: 13.5px; line-height: 1.55; }
.home-help strong { display: block; margin-bottom: 2px; color: var(--gl-ink); }
.home-help .gl-linkbtn { color: var(--gl-navy); font-weight: 600; text-decoration: underline; }

@container (max-width: 980px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-aside { position: static; }
}
@container (max-width: 640px) {
  .home-start { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--gl-border); border-radius: 12px; overflow: hidden; }
  .home-start a { border: 0; border-radius: 0; align-items: center; }
  .home-start li + li a { border-top: 1px solid var(--gl-border); }
  .home-start span { display: none; }
  .guide-card { grid-template-columns: minmax(0, 1fr) 16px; gap: 2px 12px; min-height: 44px; padding: 11px 2px; }
  .guide-card__desc { grid-column: 1; grid-row: 2; font-size: 13px; }
  .guide-card__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .gl-shell, .gl-no-toc .gl-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .gl-rail { display: none; }
  .gl-has-toc .gl-mtoc { display: block; }
  .gl [id] { scroll-margin-top: calc(var(--gl-top-h) + 64px); }
}

@media (max-width: 900px) {
  .gl-top { gap: 4px; padding: 0 6px 0 16px; }
  .gl-brand { width: auto; margin-right: auto; }
  .gl-brand img { height: 20px; }
  .gl-top-links { display: none; }
  .gl-icon-btn { display: inline-flex; }
  .gl-search {
    display: none; position: absolute; left: 0; right: 0; top: var(--gl-top-h); max-width: none;
    padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--gl-border); box-shadow: 0 10px 20px rgba(17, 24, 39, .06);
  }
  .gl-search-open .gl-search { display: block; }
  .gl-search > svg { left: 26px; top: 24px; }
  .gl-search input { height: 44px; font-size: 16px; }
  .gl-search kbd { display: none; }
  .gl-results { left: 12px; right: 12px; top: 58px; }

  .gl-shell { display: block; }
  .gl-side {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(320px, 86vw); height: 100%; padding: 0 10px 32px;
    background: #fff; border: 0; box-shadow: -12px 0 32px rgba(0, 0, 0, .15);
    transform: translateX(100%); visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .gl-drawer-open .gl-side { transform: none; visibility: visible; transition-delay: 0s; }
  .gl-side-head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center;
    height: 56px; margin: 0 -10px 12px; padding: 0 6px 0 20px;
    background: #fff; border-bottom: 1px solid var(--gl-border); font-weight: 700;
  }
  .gl-side-head .gl-icon-btn { margin-left: auto; }
  .gl-side a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 15px; }
  .gl-side-extra { display: flex; flex-direction: column; gap: 10px; padding: 18px 10px 0; border-top: 1px solid var(--gl-border); }
  .gl-side-extra .gl-btn, .gl-side-extra .gl-btn-ghost { height: 44px; }
  .gl-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(17, 24, 39, .4); }
  .gl-scrim[hidden] { display: none; }

  .gl-main { padding: 24px 20px 56px; }
  .gl-mtoc { margin: -24px -20px 24px; }
  .gl .doc-head { margin-bottom: 28px; }
  .gl .doc-head .lede { font-size: 16.5px; }
  .gl .wrap h2 { margin-top: 44px; font-size: 22px; }
  .gl .wrap table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gl .shot-grid { grid-template-columns: 1fr; }
  .gl figure.shot img { cursor: default; }
  .gl-helpful button { height: 44px; flex: 1; }
  .gl-helpful div { flex: 1; min-width: 180px; }
  .gl-pn a { padding: 14px; }
}

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

@media print {
  .gl-top, .gl-side, .gl-rail, .gl-mtoc, .gl-end, .gl-scrim, .gl-skip, .gl-dialog { display: none !important; }
  .gl, .gl:not(.gl-ready) { padding: 0; }
  .gl-shell { display: block; }
  .gl-main { padding: 0; }
  .gl .wrap nav.toc { display: block; }
  .gl .gl-pair { display: block; }
  .gl .gl-pair > figure.shot { position: static; }
  .gl figure.shot { box-shadow: none; }
}
