/* =====================================================================
   Deliverup app layer (v19)
   Loaded last on every public page. Makes the site look and feel like a
   phone app: one clean font, a light grey app background with white cards,
   a slim top bar, a bottom tab bar on phones, Facebook-style posts and
   comments, and quick taps. Admin pages don't load this file.
   ===================================================================== */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

.app {
  /* app palette */
  --app-bg: #F0F2F5;
  --card: #FFFFFF;
  --card-line: #E4E6EB;
  --soft: #F0F2F5;
  --hover: #F2F3F5;
  --muted: #65676B;
  --ink: #1C1E21;
  --ink-2: #3A3D42;
  --ink-3: #65676B;
  --paper: #F0F2F5;
  --line: #E4E6EB;
  --r-card: 14px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 1px rgba(0, 0, 0, 0.03);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.14);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --appbar: 56px;
  --tabbar: 60px;

  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  font-feature-settings: "cv11", "ss01";   /* Inter's friendlier a and simpler shapes */
}
.app main { background: transparent; }

/* Headings: Inter for app screens, Montserrat kept for big brand moments */
.app h1, .app h2, .app h3 { font-family: var(--font); letter-spacing: -0.015em; }
.app .lp-hero h1, .app .lp-close h2, .app .lp-big, .app .hero h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

/* Smooth, app-like page changes (browsers without support just load normally) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Buttons, inputs, taps ---------- */
.app .btn { font-family: var(--font); font-weight: 600; border-radius: 999px; letter-spacing: 0; transition: transform 0.08s ease, background-color 0.15s, box-shadow 0.15s; }
.app .btn:active, .app .tabbar__a:active, .app .topic__act:active, .app .up:active, .app .boards a:active { transform: scale(0.96); }
.app .btn--primary { box-shadow: 0 2px 6px rgba(242, 117, 24, 0.28); }
.app input[type="text"], .app input[type="email"], .app input[type="search"], .app input[type="url"], .app input[type="tel"], .app textarea, .app select {
  font-family: var(--font); font-size: 16px; border-radius: 12px; border: 1px solid #CED0D4; background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.app input:focus, .app textarea:focus, .app select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 137, 53, 0.18); outline: none; }
.app .linkbtn { font-family: var(--font); }
.app .muted { color: var(--muted); }

/* ---------- Top app bar ---------- */
.app .sh { background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--card-line); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02); padding-top: env(safe-area-inset-top); }
.app .sh__in { min-height: var(--appbar); }
.app .sh .brand img { height: 28px; width: auto; }
.app .sh__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--ink); }
.app .sh__icon:hover { background: #E4E6EB; color: var(--ink); }
.app .sh__join { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; font-weight: 600; }
.app .sh__join.is-member { background: var(--soft); padding: 0 12px 0 8px; }
.app .announce { font-size: 0.875rem; }

@media (max-width: 999.98px) {
  /* phones and tablets: navigation lives in the tab bar, so the top bar is just logo + actions */
  .app.has-tabbar .sh__menu { display: none; }
  .app.has-tabbar .sh__in { grid-template-columns: auto 1fr; }
  .app.has-tabbar .sh .brand { justify-self: start; }
  .app.has-tabbar .sh__tools { gap: 8px; }
  .app .sh__join.is-member span { display: none; }
  .app .sh__join.is-member { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
}
@media (min-width: 1000px) {
  .app .sh__in { min-height: 60px; }
  .app .sh .brand img { height: 32px; }
  .app .sh__nav a { border-radius: 10px; font-weight: 600; color: var(--ink-3); min-height: 44px; padding: 0 16px; }
  .app .sh__nav a[aria-current="page"] { color: var(--accent-deep); background: transparent; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
  .app .sh__icon { display: none; }
}

/* ---------- Bottom tab bar (phones and tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 999.98px) {
  .app.has-tabbar { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
  .app .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 0 4px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--card-line); box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04); }
  .tabbar__a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: #6B6F75;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.01em; transition: transform 0.08s, color 0.15s; }
  .tabbar__a:hover { color: var(--ink); }
  .tabbar__a .ico { stroke-width: 2; }
  .tabbar__a[aria-current="page"] { color: var(--accent-deep); }
  .tabbar__a[aria-current="page"] .ico { stroke-width: 2.3; }
  .tabbar__i { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 28px; border-radius: 14px; transition: background-color 0.15s; }
  .tabbar__a[aria-current="page"] .tabbar__i { background: var(--accent-wash); }
  /* the big orange "Post" button in the middle */
  .tabbar__a--new .tabbar__i { width: 48px; height: 48px; margin-top: -18px; border-radius: 50%; background: var(--accent); color: #fff;
    box-shadow: 0 6px 16px rgba(242, 117, 24, 0.40), 0 0 0 4px #fff; }
  .tabbar__a--new .ico { stroke-width: 2.6; }
  .tabbar__a--new[aria-current="page"] .tabbar__i { background: var(--accent-strong); }
  .tabbar__a--new { color: var(--ink); }
  /* things that sit at the bottom of the screen move up above the tab bar */
  .app .cookiebar { bottom: calc(var(--tabbar) + 8px + env(safe-area-inset-bottom)); }
  .app .toasts { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); }
}

/* ---------- Cookie bar: a small sheet, not a wall ---------- */
.app .cookiebar { left: 10px; right: 10px; max-width: 560px; margin: 0 auto; padding: 12px 14px; gap: 10px 12px; border-radius: 16px; box-shadow: var(--shadow-pop); }
.app .cookiebar p { flex: 1 1 240px; font-size: 0.8125rem; line-height: 1.45; }
.app .cookiebar .btn { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.app .cookiebar__ico { display: none; }

/* ---------- Footer: small and quiet, like an app's "about" screen ---------- */
.app .sf { background: var(--card); border-top: 1px solid var(--card-line); font-size: 0.875rem; }
.app .sf .wrap { padding-top: 28px; padding-bottom: 24px; }
.app .sf__brand p { color: var(--muted); }
.app .sf nav h2 { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.app .sf nav a, .app .sf__linkbtn { color: var(--ink-2); font-size: 0.875rem; }
.app .sf__legal { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
@media (max-width: 999.98px) {
  .app .sf { background: transparent; border-top: 0; }
  .app .sf .wrap { padding-top: 8px; }
  .app .sf .brand img { height: 26px; }
  .app .sf__cols { gap: 16px; }
  .app .sf__navs { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .app .sf__navs nav { flex: 1 1 50%; }
  .app .sf nav a { min-height: 36px; }
  .app .sf .socials { gap: 6px; }
}

/* ---------- Cards everywhere ---------- */
.app .compose, .app .topics, .app .post, .app .replybox, .app .sidecard, .app .fempty, .app .fjoin, .app .fsearch--big, .app .joincard, .app .gate,
.app .authcard, .app .card, .app .poll, .app .qotd {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card);
}

/* ---------- Forum feed ---------- */
.app .forum { padding-top: 12px; gap: 12px; }
.app .forum__main { gap: 10px; }
.app .forum__head h1 { font-size: 1.5rem; font-weight: 800; }
.app .forum__head p { color: var(--muted); font-size: 0.9375rem; }

/* board chips: a horizontal pill row */
.app .boards { gap: 8px; padding: 2px 0 4px; }
.app .boards a { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--card-line); font-weight: 600; font-size: 0.875rem; color: var(--ink-2); box-shadow: var(--shadow-card); }
.app .boards a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 1180px) {
  .app .forum__boards .boards { flex-direction: column; gap: 2px; }
  .app .forum__boards .boards a { min-height: 44px; border: 0; background: transparent; box-shadow: none; border-radius: 10px; font-size: 0.9375rem; }
  .app .forum__boards .boards a:hover { background: #E4E6EB; }
  .app .forum__boards .boards a[aria-current="page"] { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-card); }
  .app .forum__boards .boards a small { margin-left: auto; }
}

/* the join nudge for guests */
.app .fjoin { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(135deg, #FFF4EA, #FFFFFF 70%); }
.app .fjoin p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.app .fjoin .btn { flex: none; min-height: 38px; padding: 0 16px; }

/* search card */
.app .fsearch--big { padding: 14px; }
.app .fsearch__label { font-size: 1rem; font-weight: 700; }
.app .fsearch__row input { border-radius: 999px; padding-left: 16px; background: var(--soft); border-color: transparent; }
.app .fsearch__row input:focus { background: #fff; }
.app .fsearch__row .btn { border-radius: 999px; }

/* "What's on your mind?" composer */
.app .compose__sum { padding: 12px 14px; }
.app .compose__fake { min-height: 42px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 0.9688rem; border: 0; }
.app .compose__sum:hover .compose__fake { background: #E4E6EB; }
.app .compose__sum .btn { display: none; }
.app .compose[open] .compose__sum { border-bottom: 1px solid var(--card-line); }
.app .ptype__opt span, .app .bpick__opt span { border-radius: 999px; }

/* filters: driver types + sort, as quiet pill rows */
.app .dfilter, .app .sorts nav { scrollbar-width: none; }
.app .dfilter a, .app .sorts a { border-radius: 999px; font-weight: 600; font-size: 0.8125rem; }
.app .sorts a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: none; }

/* the feed list: each topic is its own card */
.app .topics { background: transparent; border: 0; box-shadow: none; border-radius: 0; display: grid; gap: 10px; }
.app .topic { display: block; position: relative; padding: 12px 16px 0; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.app .topic:first-child { border-top: 1px solid var(--card-line); }
.app .topic.is-pinned { background: #FFFDF9; border-color: #F5DCC3; }
.app .topic--team { border-color: #F5DCC3; }
.topic__head { display: flex; align-items: center; gap: 10px; }
.topic__who { flex: 1; min-width: 0; }
.topic__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; line-height: 1.25; }
.app .topic__by { font-weight: 700; font-size: 0.9375rem; color: var(--ink); }
.app .topic__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 2px 0 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.3; }
.app .topic__meta .bchip, .app .topic__meta .dchip { padding: 0; border: 0; background: transparent; font-size: 0.8125rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.app .topic__meta .bchip:hover { color: var(--ink); text-decoration: underline; }
.app .topic__meta .dchip::before { content: "·"; margin: 0 4px 0 0; }
.app .topic__meta .dot { margin: 0 1px; }
.app .topic .pin { font-size: 1rem; }
.app .topic__title { display: block; margin: 10px 0 2px; font-weight: 700; font-size: 1.0938rem; line-height: 1.35; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.app .topic__title:visited { color: var(--ink); }
.app .topic__title:hover { text-decoration: none; color: var(--ink); }
.app .topic__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; text-decoration: none; }
.app .topic__thumb { display: block; margin: 10px -16px 0; }
.app .topic__thumb img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 0; }
.topic__bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 10px -8px 0; padding: 4px 0; border-top: 1px solid var(--card-line); }
.topic__bar > form { display: flex; }
.app .topic__bar .up, .topic__act { flex: 1; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px; min-height: 40px; min-width: 0; padding: 0 6px;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 0.875rem/1 var(--font); text-decoration: none; cursor: pointer; }
.app .topic__bar .up:hover, .topic__act:hover { background: var(--hover); color: var(--ink); }
.app .topic__bar .up.is-on { color: var(--accent-deep); background: transparent; }
.app .topic__bar .up--mine { cursor: default; }
.app .topic__bar .up__arrow { font-size: 0.8125rem; }
.app .topic__bar .up .up__n::after { content: " Useful"; font-weight: 600; }
.app .topic__new { margin: 0 -16px; padding: 8px 16px 10px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--card-line); background: #FCFCFD; border-radius: 0 0 var(--r-card) var(--r-card); }
.app .topic__new a { color: var(--accent-deep); font-weight: 600; }
.app .topics--compact .topic__excerpt { display: none; }
.app .topics--compact .topic__new { display: none; }

/* phones: posts run edge to edge like a real feed */
@media (max-width: 599.98px) {
  .app .forum { padding-left: 0; padding-right: 0; }
  .app .forum__main > *:not(.topics), .app .forum__boards, .app .forum__side { margin-left: 10px; margin-right: 10px; }
  .app .topics { gap: 8px; }
  .app .topic { border-radius: 0; border-left: 0; border-right: 0; }
  .app .topic__new { border-radius: 0; }
}

/* badges next to names: small and calm */
.app .fbadge { padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1.5; }
.app .fbadge:not(.fbadge--team):not(.fbadge--op) { background: var(--accent-wash); color: var(--accent-deep); }

/* avatars: round, crisp */
.app .ava { flex: none; border-radius: 50%; font-family: var(--font); font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }

/* ---------- One topic: the post and its comments ---------- */
.app .topicpage { max-width: 720px; padding-top: 12px; }
.app .crumbs { font-size: 0.8125rem; color: var(--muted); margin-bottom: 8px; }
.app .crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.app .post { padding: 14px 16px; gap: 12px; }
.app .post__title { font-size: 1.3125rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.015em; margin: 4px 0 10px; }
.app .post__by p { font-size: 0.875rem; }
.app .post__body { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.app .post__actions { margin: 12px -6px 0; padding-top: 6px; border-top: 1px solid var(--card-line); gap: 4px; }
.app .post__actions .linkbtn, .app .post__actions .freport button { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 0.875rem; text-decoration: none; }
.app .post__actions .linkbtn:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.app .post .up { border-radius: 12px; border-color: var(--card-line); }

.app .replies { gap: 10px; margin-top: 10px; }
.app .replies__h { font-size: 1rem; font-weight: 700; margin: 4px 2px 0; }
.app .replies__list { gap: 14px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 14px 12px; }
.app .replies__list:empty { display: none; }
.app .replies__none { margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); text-align: center; }

/* comments: avatar + grey bubble + tiny actions underneath (like Facebook) */
.app .reply { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.app .reply--team .reply__bubble { background: #FFF4EA; }
.reply__col { flex: 1; min-width: 0; }
.reply__bubble { display: inline-block; max-width: 100%; padding: 8px 12px 9px; border-radius: 18px; background: var(--soft); }
.app .reply__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 0.8125rem; line-height: 1.35; }
.app .reply__head b { font-weight: 700; color: var(--ink); }
.app .reply__head .flair, .app .reply__head .dchip { font-size: 0.75rem; color: var(--muted); }
.app .reply__body { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.app .reply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 3px 0 0 12px; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.app .reply__actions .up { flex-direction: row; gap: 4px; min-height: 26px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--muted); font: 700 0.75rem/1 var(--font); }
.app .reply__actions .up .up__n::after { content: " Helpful"; }
.app .reply__actions .up.is-on { color: var(--accent-deep); background: transparent; }
.app .reply__actions .up:hover { color: var(--ink); background: transparent; text-decoration: underline; }
.app .reply__actions .linkbtn, .app .reply__actions .freport button { min-height: 26px; padding: 0; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.reply__time { color: var(--muted); font-weight: 500; text-decoration: none; }
.reply__time:hover { text-decoration: underline; color: var(--ink); }
.app .reply__kids { margin-top: 10px; padding-left: 0; border-left: 0; gap: 10px; }
.app .reply__kids .reply { background: transparent; }
.app .reply__kids .ava { width: 28px !important; height: 28px !important; font-size: 0.6875rem; }

/* reply box: a rounded "Write a reply…" bar */
.app .replybox { padding: 12px; gap: 10px; }
.app .rform textarea { min-height: 44px; border-radius: 20px; padding: 10px 16px; background: var(--soft); border-color: transparent; resize: none; }
.app .rform textarea:focus { background: #fff; }
.app .replybox--guest { display: block; padding: 16px; }
.app .replybox--guest h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 700; }
.app .rr .rform { margin-top: 6px; }

/* ---------- Side cards ---------- */
.app .sidecard { padding: 14px 16px; }
.app .sidecard h2 { font-size: 1rem; font-weight: 700; }
.app .sidecard--brand { background: var(--ink); color: #E8EAED; border-color: var(--ink); }
.app .sidecard--brand h2 { color: #fff; }

/* ---------- Empty states, flash messages ---------- */
.app .fempty { border-style: solid; padding: 32px 16px; }
.app .fempty h2 { font-size: 1.1875rem; font-weight: 800; }
.app .flash { border-radius: 12px; margin: 10px auto 0; max-width: 720px; box-shadow: var(--shadow-card); font-size: 0.9375rem; }

/* ---------- Home page (logged-out landing): keep the punchy look, sharpen it ---------- */
.app .lp-yes, .app .lp-latest, .app .lp-end { background: var(--card); }
.app .lp-how, .app .lp-faq { background: var(--app-bg); }
.app .lp-steps li, .app .lp-posts a { border-radius: var(--r-card); box-shadow: var(--shadow-card); border-color: var(--card-line); }
.app .lp-join { border-radius: 20px; box-shadow: var(--shadow-pop); }
.app .faq { border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); }

/* ---------- Join / sign in / account ---------- */
.app .authpage, .app .accountpage { padding-top: 12px; }
.app .joinform input, .app .authcard input { min-height: 48px; }
.app .joinform .btn, .app .authcard .btn { min-height: 48px; width: 100%; }

/* ---------- Toasts ---------- */
.app .toast { border-radius: 14px; box-shadow: var(--shadow-pop); font-family: var(--font); }

/* ---------- Partner ads keep their own dark look ---------- */
.app .pad { border-radius: 14px; }

/* ---------- v19 fixes after the first look ---------- */
/* footer now light: dark text and outlined social buttons */
.app .sf { color: var(--ink-2); }
.app .sf a { color: var(--ink-2); }
.app .sf .socials__a { border-color: var(--card-line); background: var(--card); color: var(--ink); font-size: 0.8125rem; min-height: 36px; }
.app .sf .socials__a svg { color: var(--accent); }
.app .sf .socials__a:hover { border-color: var(--accent); color: var(--ink); }
/* vehicle emoji beside a name */
.demoji { font-size: 0.875rem; line-height: 1; }
/* the opening post on a topic page, as a post card */
.app .post--card { display: block; padding: 14px 16px 0; }
.app .post--card .post__main { min-width: 0; }
.app .post--card .topic__head { margin-bottom: 12px; }
.app .post--card .post__title { margin: 0 0 8px; }
.app .post__flair { margin: 2px 0 0; font-size: 0.75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; }
.app .post__flair .dchip { padding: 0; border: 0; background: transparent; font-size: 0.75rem; color: var(--muted); }
.app .post__flair .flair::before { content: "· "; }
.app .post--card .post__actions { margin: 12px -8px 0; padding: 4px 0; border-top: 1px solid var(--card-line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 4px; }
.app .post--card .post__actions .freport { display: flex; }
.app .post--card .post__actions .freport button { min-height: 40px; padding: 0 10px; }
.app .post--card .up { flex-direction: row; }
.app .post--card .post__img img { border-radius: 12px; max-height: 480px; }
@media (max-width: 599.98px) {
  .app .topicpage { padding-left: 0; padding-right: 0; }
  .app .topicpage > .crumbs, .app .topicpage > .replies > .replies__h, .app .topicpage .topicpage__more > h2, .app .flash { margin-left: 12px; margin-right: 12px; }
  .app .post--card, .app .replies__list, .app .replies__none, .app .replybox { border-radius: 0; border-left: 0; border-right: 0; }
  .app .topicpage__more .topic { border-radius: 0; border-left: 0; border-right: 0; }
}
/* phones: less above the first post */
@media (max-width: 599.98px) {
  .app .forum__head p { display: none; }
  .app .forum__head h1 { font-size: 1.375rem; }
  .app .fsearch--big .fsearch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .app .fsearch--big { padding: 10px 12px; }
  .app .fjoin { padding: 10px 12px; }
}

/* ---------- v20: fixes from the live audit ---------- */
/* "Today's question" is a dark card with white text: keep it dark (the generic white card style hid the text) */
.app .qotd { background: linear-gradient(135deg, #242829, #2E3640); border-color: #242829; color: #fff; }
/* the empty replies list no longer draws an empty white bar */
.app .replies__list:not(:has(li)) { display: none; }
/* footer on a light background: trust row text and divider lines */
.app .sf .trust { border-color: var(--card-line); }
.app .sf .trust li { color: var(--ink-2); }
.app .sf .trust b { color: var(--ink); }
.app .sf .trust .ico { color: var(--accent); }
.app .sf__legal { border-top-color: var(--card-line); }
.app .sf hr, .app .sf .trust { border-bottom-color: var(--card-line); }

/* ---------- v21: everything in one calm style ---------- */
/* Fold-out questions (Quick questions, Delete my account, and any other <details class="faq">):
   one tidy list, comfortable padding, a + that turns into × when open */
.app .faq { margin: 0; padding: 0 16px; background: var(--card); border: 1px solid var(--card-line); border-radius: 0; box-shadow: none; text-align: left; }
.app .faq + .faq { border-top: 0; }
.app .faq:first-of-type { border-radius: var(--r-card) var(--r-card) 0 0; }
.app .faq:last-of-type { border-radius: 0 0 var(--r-card) var(--r-card); box-shadow: var(--shadow-card); }
.app .faq:first-of-type:last-of-type { border-radius: var(--r-card); }
.app .faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 12px 0; font-weight: 600; font-size: 1rem; color: var(--ink); cursor: pointer; }
.app .faq > summary::-webkit-details-marker { display: none; }
.app .faq > summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365676B' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s; }
.app .faq[open] > summary::after { transform: rotate(45deg); }
.app .faq > p, .app .faq > div { margin: -2px 0 14px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.app .lp-faq h2 { margin-bottom: 14px; }
.app .lp-contact { margin-top: 14px; }

/* Delete my account: a quiet "danger zone" row, not a box inside a box */
.app form[data-confirm-delete] { padding: 0; overflow: hidden; }
.app form[data-confirm-delete] .faq { border: 0; border-radius: 0; box-shadow: none; padding: 0 18px; }
.app form[data-confirm-delete] .faq > summary { color: var(--red); }
.app form[data-confirm-delete] .faq .btn { margin: 0 0 16px; }

/* Cards used on account, join and help pages: the same card as everywhere else */
.app .card2 { border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 18px; }
.app .card2 h2 { font-size: 1.0625rem; font-weight: 700; }
.app .card2--accent { background: #FFF7F0; border-color: #F5DCC3; }
.app .empty { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 32px 16px; }
.app .empty h2 { font-size: 1.1875rem; font-weight: 800; }
.app .chips a { border-color: var(--card-line); background: var(--card); font-weight: 600; font-size: 0.875rem; box-shadow: var(--shadow-card); }
.app .chips a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Account: a short, friendly header and simple cards */
.app .acct { padding-top: 14px; }
.app .acct__head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.app .acct__head .ava { width: 52px !important; height: 52px !important; font-size: 1rem; }
.app .acct__head h1 { font-size: 1.375rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.app .acct__head p { font-size: 0.875rem; }
.app .acct__out { grid-column: 1 / -1; }
.app .acct__out .btn { min-height: 34px; padding: 0 14px; font-size: 0.8125rem; background: var(--card); border-color: var(--card-line); }
@media (min-width: 600px) { .app .acct__head { grid-template-columns: auto minmax(0, 1fr) auto; } .app .acct__out { grid-column: auto; } }
.app .acct__tiles { gap: 10px; }
.app .acct__tiles a { border-radius: var(--r-card); border-color: var(--card-line); box-shadow: var(--shadow-card); padding: 16px; }
.app .acct__tiles b { font-size: 1.25rem; }
.app .acct__next h2, .app .acct__sec > h2 { font-size: 1.0625rem; font-weight: 700; margin: 6px 0 10px; }
.app .acct__cards { gap: 10px; }
.app .acard { background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px; }
.app .acard:hover { border-color: var(--accent); }
.app .acct__note { font-size: 0.875rem; margin: 0 0 10px; }
/* your posts: a plain list */
.mylist { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.mylist li + li { border-top: 1px solid var(--card-line); }
.mylist a { display: grid; gap: 3px; padding: 14px 40px 14px 16px; color: var(--ink); text-decoration: none; position: relative; }
.mylist a::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #B0B3B8; }
.mylist a:hover { background: var(--hover); color: var(--ink); }
.mylist b { font-weight: 700; font-size: 0.9688rem; line-height: 1.35; }
.mylist small { color: var(--muted); font-size: 0.8125rem; }

/* Composer: the board is chosen for you; "Change" opens the list */
.app .bpick-more { border: 1px solid var(--card-line); border-radius: 12px; background: var(--soft); }
.app .bpick-more > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; cursor: pointer; font-size: 0.875rem; color: var(--ink-2); }
.app .bpick-more > summary::-webkit-details-marker { display: none; }
.app .bpick-more > summary b { color: var(--ink); }
.app .bpick-more > summary span { margin-left: auto; color: var(--accent-deep); font-weight: 600; }
.app .bpick-more[open] > summary span { visibility: hidden; }
.app .bpick-more .bpick { padding: 0 12px 12px; border: 0; margin: 0; }
.app .compose .ptype legend, .app .compose .field > span { font-weight: 600; }

/* Footer on phones and tablets: logo, socials, one short row of links. Nothing else. */
.app .sf .sf__mini { display: none; }
@media (max-width: 999.98px) {
  .app .sf__navs { display: none; }
  .app .sf .trust { display: none; }
  .app .sf .sf__mini { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0 18px; margin: 4px 0 12px; }
  .app .sf__mini a, .app .sf__mini .sf__linkbtn { min-height: 36px; display: inline-flex; align-items: center; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
  .app .sf__cols { padding: 16px 0 4px; }
  .app .sf__legal { border-top: 0; padding-top: 4px; }
}

/* calmer spacing between page sections on phones */
@media (max-width: 599.98px) {
  .app .sec { padding-top: 32px; padding-bottom: 32px; }
  .app .sec--tight { padding-top: 24px; padding-bottom: 24px; }
}

/* v24: sign-in code and one-tap link pages */
.app .mpage__form { max-width: 360px; margin: 20px 0 16px; display: grid; gap: 12px; }
.app .mpage__form .btn { width: 100%; justify-content: center; }
.app .codeform__in { font-size: 1.75rem !important; font-weight: 700; letter-spacing: .18em; text-indent: .18em; text-align: center; padding: 14px 10px !important; font-variant-numeric: tabular-nums; }
.app .codeform__in::placeholder { color: #C4C7CC; font-weight: 600; }
.app .mpage .flash { max-width: 360px; margin: 14px 0 0; }
.app .mpage__again { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.app .mpage__again .linkbtn { background: none; border: 0; padding: 0; color: #B4500C; font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,137,53,.6); }
