/* Help center — port of parkane_be support_center.css (mirrors the app's FAQ screens).
   html[data-theme] is set by js/theme.js; dark palette: parkane_app dark_theme_extension.dart. */
:root {
  --primary: #0F6EFF;
  --primary-soft: rgba(15,110,255,.10);
  --ink: #0F2A66;
  --meta: #8A9AB6;
  --eyebrow: #94A1B8;
  --address: #4A5A77;
  --hairline: rgba(15,42,102,.07);
  --page: #FFFFFF;
  --card: #FFFFFF;
  --confirm: #3AAE7A;
  --confirm-soft: rgba(58,174,122,.12);
  --purple: #6B44C0;
  --purple-soft: rgba(107,68,192,.10);
  --tile-ink: rgba(15,42,102,.06);
  --tile-ink2: rgba(138,154,182,.16);
  --cta-shadow: rgba(15,110,255,.28);
  --radius: 20px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #3B7DEB;
  --primary-soft: rgba(96,152,242,.16);
  --ink: #ECF1FA;
  --meta: #7C8BA4;
  --eyebrow: #7C8BA4;
  --address: #AFBCD2;
  --hairline: rgba(163,188,228,.22);
  --page: #0B1220;
  --card: #141D2E;
  --confirm: #58C795;
  --confirm-soft: rgba(88,199,149,.15);
  --purple: #A58BEB;
  --purple-soft: rgba(165,139,235,.16);
  --tile-ink: rgba(236,241,250,.08);
  --tile-ink2: rgba(124,139,164,.18);
  --cta-shadow: rgba(0,0,0,.35);
}

@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 400;
             font-display: swap; src: url("../assets/fonts/Teachers-400.ttf") format("truetype"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 500;
             font-display: swap; src: url("../assets/fonts/Teachers-500.ttf") format("truetype"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 600;
             font-display: swap; src: url("../assets/fonts/Teachers-600.ttf") format("truetype"); }
@font-face { font-family: 'Teachers'; font-style: normal; font-weight: 700;
             font-display: swap; src: url("../assets/fonts/Teachers-700.ttf") format("truetype"); }
@font-face { font-family: 'Gilroy'; font-style: normal; font-weight: 600;
             font-display: swap; src: url("../assets/fonts/Gilroy-700.ttf") format("truetype"); }

/*
 * Material Symbols Rounded subset (from parkane_be) holding only the ICONS in
 * bin/build_help.py. Regenerate with that icon list:
 *   curl -A "<a desktop browser UA>" "https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=chat_bubble,chevron_left,chevron_right,credit_card,info,local_parking,phone_iphone,search,shield,thumb_down,thumb_up,undo"
 * then download the woff2 it points at. No ligature table: reference icons by codepoint only.
 */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../assets/fonts/MaterialSymbolsRounded-help-subset.woff2") format("woff2");
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Teachers', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 40px;
        min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
.section-head { display: flex; align-items: center; justify-content: space-between;
                margin: 24px 0 8px; }
.section-head .eyebrow { margin: 0; }
/* Type below mirrors AppThemeExtension so the webview matches the native
   screens: body() s13w700, heroHeadline, cardSubtitle, eyebrow(), rowTitle. */
.browse-all { color: var(--address); font-weight: 700; font-size: 13px; line-height: 1.45; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--meta);
        font-size: 13px; font-weight: 600; margin-bottom: 16px; }
/* heroHeadline — 20 / w600 / Gilroy / −0.1 / 1.15 */
.hero h1 { font-family: 'Gilroy', 'Teachers', sans-serif; font-size: 20px; line-height: 1.15;
           font-weight: 600; letter-spacing: -0.1px; margin: 0 0 6px; color: var(--ink); }
/* cardSubtitle — 15 / w500 / metaText / −0.15 / 1.25 */
.hero p { margin: 0 0 20px; color: var(--meta); font-size: 15px; font-weight: 500;
          line-height: 1.25; letter-spacing: -0.15px; }
/* eyebrow() — 10.5 / w700 / eyebrowColor / +0.735, and not upper-cased */
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: 0.735px;
           color: var(--eyebrow); margin: 24px 0 8px; }

.ficon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  flex: 0 0 auto;
}

/* Search box */
.search { display: flex; align-items: center; gap: 10px; background: var(--card);
          border: 1px solid var(--hairline); border-radius: var(--radius); padding: 12px 16px; }
.search .ficon { color: var(--meta); }
.search input { border: 0; outline: 0; width: 100%; font-size: 16px; color: var(--ink);
                background: transparent; }
.search input::placeholder { color: var(--meta); }

/* List card of rows */
.list { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
        overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 16px; }
.row + .row { border-top: 1px solid var(--hairline); }
.row .txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
/* rowTitle — 16 / w700 */
.row .title { font-size: 16px; font-weight: 700; color: var(--ink); }
/* cardSubtitle, always on its own line under the title. */
.row .sub { font-size: 15px; font-weight: 500; line-height: 1.25; letter-spacing: -0.15px;
            color: var(--meta); margin-top: 2px; min-width: 0;
            overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--meta); flex: 0 0 auto; }

/* Icon tile */
.tile { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
        justify-content: center; flex: 0 0 auto; }
.tile--primary { color: var(--primary); background: var(--primary-soft); }
.tile--ink     { color: var(--ink);     background: var(--tile-ink); }
.tile--purple  { color: var(--purple);  background: var(--purple-soft); }
.tile--ink2    { color: var(--meta);     background: var(--tile-ink2); }
.tile--confirm { color: var(--confirm);  background: var(--confirm-soft); }

/* Category grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
       padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 116px; }
.cat .name { font-size: 16px; font-weight: 700; color: var(--ink); }
.cat .count { font-size: 11px; color: var(--meta); }

/* Article — headerLarge (24 / w600 / −0.24 / 1.12), caption (11), body() (13 / w500 / 1.45) */
.article h1 { font-size: 24px; font-weight: 600; line-height: 1.12; letter-spacing: -0.24px;
              margin: 6px 0 4px; color: var(--ink); }
.article .updated { color: var(--meta); font-size: 11px; margin-bottom: 20px; }
.article .body { color: var(--address); font-size: 13px; font-weight: 500; line-height: 1.45; }
.article .body p { margin: 0 0 16px; }
.article .body strong { color: var(--address); font-weight: 700; }

/* Structured article body (delete-account): sectioned steps, blockers and an
   effects list, which the paragraph-only body renderer cannot express. Scoped to
   .deletion so none of it reaches a plain article. */
.deletion h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.deletion .intro { font-size: 14px; }
.deletion .block { padding: 20px 0; border-top: 1px solid var(--hairline); }
.deletion .block:first-of-type { border-top: 0; padding-top: 4px; }
.deletion .block--cta { background: var(--primary-soft); border-radius: var(--radius);
                        border-top: 0; padding: 16px; margin: 12px 0; }
.deletion .steps, .deletion .blockers { margin: 0 0 12px; padding-left: 20px; }
.deletion .steps li, .deletion .blockers li { margin-bottom: 8px; }
.deletion .steps li::marker { color: var(--meta); font-weight: 700; }
.deletion .cta-fallback { font-size: 12px; color: var(--meta); text-align: center; margin: 0; }
.deletion .note { font-size: 12px; color: var(--meta); margin: 0; }
.deletion .effects { margin: 0; }
.deletion .effects dt { font-size: 11px; font-weight: 700; color: var(--ink);
                        text-transform: uppercase; letter-spacing: .06em; margin-top: 16px; }
.deletion .effects dt:first-child { margin-top: 0; }
.deletion .effects dd { margin: 5px 0 0; }

/* Helpful — matches the app: heading + two outlined thumb buttons, no card. */
.helpful { margin-top: 28px; }
.helpful .q { font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.helpful .btns { display: flex; gap: 12px; }
.btn-outline { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
               padding: 12px; border: 1px solid var(--hairline); border-radius: 12px;
               background: var(--card); color: var(--primary); font-weight: 600; font-size: 15px; }
.btn-outline .ficon { color: var(--primary); }
.helpful .thanks { display: none; color: var(--confirm); font-weight: 600; }
.helpful.answered .btns { display: none; }
.helpful.answered .thanks { display: block; }

/* Contact CTA — always pinned to the bottom of the viewport. */
.contact { margin-top: auto; text-align: center; padding-top: 24px; }
.contact .lead { color: var(--meta); margin-bottom: 12px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
       padding: 14px 20px; background: var(--primary); color: #fff; border-radius: 16px;
       font-weight: 700; font-size: 16px; border: 0; box-shadow: 0 8px 20px var(--cta-shadow); }
/* Push the hub's contact button to the bottom of the viewport, like the app. */
.cta--bottom { margin-top: auto; }

.empty { text-align: center; padding: 40px 0; }
.empty .ficon { color: var(--meta); }
.empty h2 { font-size: 18px; margin: 12px 0 4px; }
.empty p { color: var(--meta); margin: 0 0 20px; }

[hidden] { display: none !important; }
