/* ==========================================================================
   The Ground Help Center — styles for /help and /help/**
   Loaded after css/home.css + css/pages.css (tokens, nav, buttons, footer come from there).
   Everything here is scoped to body.help-body so it cannot leak into other pages.
   ========================================================================== */

:root {
  /* mapped onto the brand tokens in css/home.css */
  --hc-green: var(--gold);
  --hc-green-dark: var(--forest-600);
  --hc-green-soft: #e4efe8;
  --hc-navy: var(--forest-900);
  --hc-ink: var(--ink);
  --hc-text: #26332d;
  --hc-muted: var(--ink-soft);
  --hc-line: rgba(20, 32, 27, 0.12);
  --hc-bg: var(--paper);
  --hc-bg-soft: var(--bone);
  --hc-radius: 22px;
  --hc-shadow: 0 1px 2px rgba(14, 32, 24, .06), 0 18px 40px -24px rgba(14, 32, 24, .35);
  --hc-font: var(--sans);
  --hc-font-head: var(--serif);
}

body.help-body {
  background: var(--hc-bg);
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 76px; /* fixed nav */
}
body.help-body * { box-sizing: border-box; }
body.help-body a { color: var(--hc-green-dark); text-decoration: none; }
body.help-body a:hover { text-decoration: underline; }
/* list defaults inside the help center */
body.help-body .hc-article ul > li { list-style-type: disc; }
body.help-body .hc-article ol > li { list-style-type: decimal; }
body.help-body .hc-popular li, body.help-body .hc-related li, body.help-body .hc-search-page li, body.help-body .hc-quick li,
body.help-body .hc-cat li, body.help-body .hc-toc li, body.help-body .hc-article-list li, body.help-body .steps > ol > li { list-style: none; }

.hc-wrap { width: min(1240px, 100% - 40px); margin: 0 auto; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.big { width: 32px; height: 32px; color: var(--hc-green-dark); }
.hc-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: var(--hc-navy); color: #fff !important; font-weight: 600; font-size: 15px; border: 1.5px solid var(--hc-navy);
  transition: transform .15s, background .15s;
}
.hc-btn:hover { text-decoration: none !important; transform: translateY(-1px); background: #0e3448; }
.hc-btn.ghost { background: transparent; color: var(--hc-navy) !important; }
.hc-btn.ghost:hover { background: var(--hc-bg-soft); }

/* ---------------------------------------------------------------- header */
.hc-header { border-bottom: 1px solid var(--hc-line); background: #fff; }
.hc-header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; padding: 10px 0; }
.hc-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hc-font-head); font-weight: 400; font-size: 24px; color: var(--hc-ink) !important; letter-spacing: -.01em; }
.hc-brand .ico { color: var(--hc-green-dark); }
.hc-brand:hover { text-decoration: none !important; }
.hc-admin-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--hc-muted) !important; white-space: nowrap; }
.hc-admin-link .ico { width: 16px; height: 16px; }

/* search box (header + hero share it) */
.hc-search { position: relative; display: flex; align-items: center; gap: 10px; background: var(--hc-bg-soft); border: 1.5px solid var(--hc-line); border-radius: 999px; padding: 0 16px; }
.hc-search:focus-within { border-color: var(--forest-600); background: #fff; box-shadow: 0 0 0 4px rgba(0, 121, 102, .14); }
.hc-search .ico { color: var(--hc-muted); }
.hc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--hc-ink); height: 42px; outline: none; }
.hc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-search-compact { flex: 1; max-width: 520px; }
.hc-search-hero { max-width: 680px; margin: 28px auto 0; padding: 0 20px; }
.hc-search-hero input { height: 56px; font-size: 17px; }
.hc-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; background: #fff; border: 1px solid var(--hc-line);
  border-radius: 12px; box-shadow: var(--hc-shadow); max-height: 420px; overflow: auto; text-align: left;
}
.hc-results a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--hc-line); color: var(--hc-ink) !important; }
.hc-results a:last-child { border-bottom: 0; }
.hc-results a:hover, .hc-results a.active { background: var(--hc-green-soft); text-decoration: none !important; }
.hc-results strong { display: block; font-weight: 600; font-size: 15px; }
.hc-results small { display: block; color: var(--hc-muted); font-size: 13px; margin-top: 2px; }
.hc-results .empty { padding: 14px 16px; color: var(--hc-muted); font-size: 14px; }
.hc-results mark, .hc-search-page mark { background: rgba(227, 184, 92, .45); color: inherit; border-radius: 3px; padding: 0 1px; }
.hc-search-page a small { display: block; color: var(--hc-muted); font-size: 13.5px; font-weight: 400; margin-top: 2px; }

/* ---------------------------------------------------------------- landing */
.hc-hero { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 50% 120%, rgba(31, 58, 44, .95), transparent 70%), var(--forest-900); color: var(--bone); text-align: center; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hc-hero h1 { margin: 0 0 18px; line-height: .9; font-weight: 400; }
.hc-hero h1 .grot { display: block; font-size: clamp(46px, 7.4vw, 112px); }
.hc-hero h1 .ital { display: block; font-size: clamp(46px, 7vw, 108px); white-space: normal; }
.hc-hero p { max-width: 640px; margin: 0 auto; color: rgba(243, 238, 227, .78); font-size: 18px; }
body.help-body .hc-hero p a { color: var(--gold); border-bottom: 1.5px solid currentColor; }
.hc-hero .hc-search { background: var(--paper); border-color: transparent; }
.hc-hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 20px; font-size: 14px; color: rgba(243, 238, 227, .6); }
body.help-body .hc-hero-tags a { color: var(--bone); background: transparent; border: 1px solid var(--line-dark); border-radius: 999px; padding: 5px 13px; transition: border-color .2s, color .2s; }
body.help-body .hc-hero-tags a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.hc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 48px 0 8px; }
.hc-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 26px 22px; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: #fff; color: var(--hc-text) !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hc-card:hover { text-decoration: none !important; transform: translateY(-4px); box-shadow: var(--hc-shadow); border-color: rgba(0, 121, 102, .4); }
.hc-card h2 { font-family: var(--hc-font-head); font-size: 30px; font-weight: 400; letter-spacing: -.01em; margin: 6px 0 0; color: var(--hc-ink); line-height: 1.25; }
.hc-card p { margin: 0; color: var(--hc-muted); font-size: 15px; flex: 1; }
.hc-card-count { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--hc-green-dark); margin-top: 6px; }
.hc-card-count .ico { width: 16px; height: 16px; }

.hc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 0 8px; }
.hc-panel { border: 1px solid var(--hc-line); border-radius: var(--hc-radius); padding: 26px 28px; background: var(--hc-bg-soft); }
.hc-panel h2 { font-family: var(--hc-font-head); font-size: 30px; font-weight: 400; margin: 0 0 6px; color: var(--hc-ink); }
.hc-panel p { margin: 0 0 14px; color: var(--hc-muted); font-size: 15px; }
.hc-quick { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.hc-quick li { counter-increment: q; display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hc-line); font-weight: 500; }
.hc-quick li::before { content: counter(q); width: 26px; height: 26px; border-radius: 50%; background: var(--forest-700); color: var(--gold); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hc-popular, .hc-related ul, .hc-search-page ul { list-style: none; margin: 0; padding: 0; }
.hc-popular li, .hc-related li, .hc-search-page li { border-top: 1px solid var(--hc-line); }
.hc-popular a, .hc-related a, .hc-search-page a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: var(--hc-ink) !important; font-weight: 500; }
.hc-rel-cat { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hc-green-dark); }
.hc-search-page { padding-top: 40px; }
.hc-search-page h2 { font-family: var(--hc-font-head); font-size: 32px; font-weight: 400; margin: 0 0 8px; }
.hc-search-page small { color: var(--hc-muted); font-weight: 400; }
.hc-no-results { color: var(--hc-muted); }

.hc-contact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin: 40px 0 64px; padding: 28px 32px; border-radius: var(--hc-radius); background: var(--hc-navy); color: #fff; }
.hc-contact .ico.big { color: var(--hc-green); width: 40px; height: 40px; }
.hc-contact h2 { font-family: var(--hc-font-head); margin: 0 0 4px; font-size: 32px; font-weight: 400; color: var(--bone); }
.hc-contact p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15px; }
.hc-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hc-contact .hc-btn { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }
.hc-contact .hc-btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff !important; }

/* ---------------------------------------------------------------- article layout */
.hc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 48px; padding: 32px 0 72px; align-items: start; }
.hc-main { min-width: 0; }

.hc-sidebar { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 8px; font-size: 14.5px; }
.hc-sidebar-toggle { display: none; }
.hc-cat { border-top: 1px solid var(--hc-line); }
.hc-cat:last-child { border-bottom: 1px solid var(--hc-line); }
.hc-cat summary { display: flex; align-items: center; gap: 10px; padding: 11px 4px; cursor: pointer; font-weight: 600; color: var(--hc-ink); list-style: none; }
.hc-cat summary::-webkit-details-marker { display: none; }
.hc-cat summary .ico { width: 18px; height: 18px; color: var(--hc-green-dark); }
.hc-cat summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--hc-muted); border-bottom: 1.5px solid var(--hc-muted); transform: rotate(-45deg); transition: transform .15s; }
.hc-cat[open] summary::after { transform: rotate(45deg); }
.hc-cat ul { list-style: none; margin: 0 0 10px; padding: 0 0 0 28px; }
.hc-cat li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--hc-muted) !important; line-height: 1.35; }
.hc-cat li a:hover { background: var(--hc-bg-soft); text-decoration: none !important; color: var(--hc-ink) !important; }
.hc-cat li a.current { background: var(--forest-700); color: var(--bone) !important; font-weight: 600; }

.hc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--hc-muted); margin-bottom: 18px; }
.hc-crumbs .ico { width: 14px; height: 14px; }
.hc-crumbs a { color: var(--hc-muted) !important; }
.hc-crumbs span { color: var(--hc-ink); }

.hc-toc { position: sticky; top: 92px; font-size: 13.5px; border-left: 1px solid var(--hc-line); padding-left: 16px; max-height: calc(100vh - 110px); overflow: auto; }
.hc-toc-title { font-weight: 700; color: var(--hc-ink); margin-bottom: 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hc-toc ul { list-style: none; margin: 0; padding: 0; }
.hc-toc li { margin: 0; }
.hc-toc li.lvl3 { padding-left: 12px; }
.hc-toc a { display: block; padding: 4px 0; color: var(--hc-muted) !important; line-height: 1.4; }
.hc-toc a.active { color: var(--hc-green-dark) !important; font-weight: 600; }
.hc-toc a:hover { color: var(--hc-ink) !important; text-decoration: none !important; }

/* ---------------------------------------------------------------- article typography */
.hc-article { max-width: 760px; }
.hc-article header { margin-bottom: 28px; }
.hc-article h1, .hc-cat-head h1 { font-family: var(--hc-font-head); font-size: clamp(38px, 4.6vw, 58px); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; color: var(--hc-ink); margin: 0 0 12px; }
.hc-lead { font-size: 18px; color: var(--hc-muted); margin: 0 0 10px; line-height: 1.5; }
.hc-meta { font-size: 13px; color: var(--hc-muted); margin: 0; }
.hc-article h2 { font-family: var(--hc-font-head); font-size: 32px; font-weight: 400; letter-spacing: -.01em; color: var(--hc-ink); margin: 44px 0 12px; padding-top: 8px; line-height: 1.25; scroll-margin-top: 100px; }
.hc-article h3 { font-family: var(--hc-font); font-size: 18px; font-weight: 800; color: var(--hc-ink); margin: 30px 0 8px; scroll-margin-top: 100px; }
.hc-article h4 { font-size: 16px; font-weight: 700; color: var(--hc-ink); margin: 22px 0 6px; }
.hc-article p { margin: 0 0 14px; }
.hc-article ul, .hc-article ol { margin: 0 0 16px; padding-left: 26px; }
.hc-article li { margin: 5px 0; }
.hc-article li > ul, .hc-article li > ol { margin: 6px 0 4px; }
.hc-article hr { border: 0; border-top: 1px solid var(--hc-line); margin: 32px 0; }
.hc-article code { font-family: var(--mono); font-size: .92em; background: var(--hc-bg-soft); border: 1px solid var(--hc-line); border-radius: 6px; padding: 1px 6px; }
.hc-article pre { background: var(--hc-navy); color: #e8f7f1; padding: 16px 18px; border-radius: 10px; overflow: auto; font-size: 14px; }
.hc-article pre code { background: none; border: 0; padding: 0; color: inherit; }
.hc-article strong { color: var(--hc-ink); }
.anchor { margin-left: 8px; color: var(--hc-line) !important; font-weight: 400; opacity: 0; transition: opacity .15s; }
h2:hover .anchor, h3:hover .anchor { opacity: 1; color: var(--forest-600) !important; text-decoration: none !important; }

kbd.ui { font-family: inherit; font-size: .9em; font-weight: 600; color: var(--hc-ink); background: var(--hc-bg-soft); border: 1px solid #d8dadf; border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; padding: 14px 18px; border-radius: 12px; margin: 18px 0 22px; border: 1px solid; background: var(--hc-bg-soft); border-color: var(--hc-line); }
.callout .callout-label { font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding-top: 3px; }
.callout > div > p:last-child { margin-bottom: 0; }
.callout.note { background: #f2f7ff; border-color: #cddcf5; } .callout.note .callout-label { color: #2a5bd7; }
.callout.tip { background: var(--hc-green-soft); border-color: #c2d9cb; } .callout.tip .callout-label { color: var(--hc-green-dark); }
.callout.important { background: #f3f3fc; border-color: #d3d2f4; } .callout.important .callout-label { color: #443fde; }
.callout.warning { background: #fef7f1; border-color: #f9dcc2; } .callout.warning .callout-label { color: #c98b40; }
.callout.danger { background: #fdf2f2; border-color: #f8d4d3; } .callout.danger .callout-label { color: #bc362f; }

.steps > ol { list-style: none; padding: 0; margin: 8px 0 24px; counter-reset: step; }
.steps > ol > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; margin: 0; }
.steps > ol > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--hc-navy); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.steps > ol > li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 6px; border-left: 2px dashed var(--hc-line); }
.steps > ol > li > ul { margin-top: 8px; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.columns .col { border: 1px solid var(--hc-line); border-radius: 12px; padding: 16px 18px; background: #fff; }
.columns .col > :first-child { margin-top: 0; }
.columns .col > :last-child { margin-bottom: 0; }
.columns .col h3, .columns .col h4 { margin-top: 0; }

figure.shot { margin: 18px 0 26px; }
figure.shot img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow); }
figure.shot figcaption { margin-top: 8px; font-size: 13.5px; color: var(--hc-muted); text-align: center; }
.hc-article img { max-width: 100%; height: auto; }

.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--hc-line); border-radius: 10px; }
.hc-article table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.hc-article th, .hc-article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hc-line); vertical-align: top; }
.hc-article th { background: var(--hc-bg-soft); font-weight: 700; color: var(--hc-ink); }
.hc-article tr:last-child td { border-bottom: 0; }

.hc-related { margin-top: 40px; }
.hc-related h2 { font-size: 26px; margin-top: 0; }
.hc-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 36px 0 0; padding: 16px 18px; border: 1px solid var(--hc-line); border-radius: 12px; background: var(--hc-bg-soft); font-size: 15px; }
.hc-feedback button { font: inherit; font-weight: 600; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--hc-navy); background: #fff; color: var(--hc-navy); cursor: pointer; }
.hc-feedback button:hover { background: var(--hc-navy); color: #fff; }
.hc-feedback-thanks { color: var(--hc-muted); }
.hc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.hc-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--hc-line); border-radius: 12px; color: var(--hc-ink) !important; font-weight: 600; }
.hc-pager a span { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hc-muted); }
.hc-pager a.next { text-align: right; align-items: flex-end; }
.hc-pager a:hover { border-color: var(--forest-600); text-decoration: none !important; }

.hc-cat-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.hc-cat-head .ico.big { margin-top: 10px; }
.hc-article-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--hc-line); }
.hc-article-list li { border-bottom: 1px solid var(--hc-line); }
.hc-article-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px; color: var(--hc-ink) !important; }
.hc-article-list a strong { font-size: 17px; font-weight: 600; }
.hc-article-list a span { color: var(--hc-muted); font-size: 15px; }
.hc-article-list a:hover { text-decoration: none !important; background: var(--hc-bg-soft); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .hc-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .hc-toc { display: none; }
}
@media (max-width: 860px) {
  .hc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .hc-sidebar { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .hc-sidebar-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--hc-line); background: #fff; color: var(--hc-ink); cursor: pointer; }
  .hc-sidebar-inner { display: none; margin-top: 12px; border: 1px solid var(--hc-line); border-radius: 12px; padding: 0 12px; }
  .hc-sidebar[data-open="true"] .hc-sidebar-inner { display: block; }
  .hc-search-compact { max-width: none; }
  .hc-header-inner { flex-wrap: wrap; }
  .hc-admin-link { display: none; }
  .hc-two { grid-template-columns: 1fr; }
  .hc-contact { grid-template-columns: 1fr; text-align: left; }
  .hc-pager { grid-template-columns: 1fr; }
  .hc-pager a.next { align-items: flex-start; text-align: left; }
}
@media (max-width: 479px) {
  .hc-wrap { width: min(1240px, 100% - 32px); }
  .hc-article h1, .hc-cat-head h1 { font-size: 26px; }
  .hc-lead { font-size: 16px; }
  .steps > ol > li { padding-left: 44px; }
  .steps > ol > li::before { width: 30px; height: 30px; font-size: 14px; }
  .steps > ol > li:not(:last-child)::after { left: 14.5px; }
  .hc-hero-tags span { display: none; }
}

/* shared nav and footer keep their own link colours inside the help center */
body.help-body .nav a:not(.btn), body.help-body .footer a { color: inherit; }
body.help-body .nav a.btn { color: var(--fg); }
body.help-body .nav a:hover, body.help-body .footer a:hover { text-decoration: none; }
body.help-body .footer ul a:hover { color: var(--gold); }
