/* =====================================================================
   askJBoss 2.92 — the Afrideals look on EVERY page.
   Pine #12403c, gold #f4b942, warm cream, Inter. Left menu on every page (wide screens).
   Loaded after askjboss.css, askjboss-x.css and askjboss-dark.css; a page's own styles still come after.
   ===================================================================== */

/* ---------- Colours and type (light) ---------- */
html:not([data-theme="dark"]) {
  --bg: #fdf8ee; --card: #ffffff; --line: #e3dccb; --soft: #f3ecdc; --soft-2: #f8f2e4;
  --ink: #0f1f1c; --ink-2: #1f332f; --muted: #4c5f5b; --muted-2: #5b6d69;
  --green: #12403c; --green-dark: #0a2522; --green-soft: #e6efe9; --green-text: #12403c; --gold: #f4b942;
  --x-ink: #12403c; --x-ink-2: #1b4c47; --x-ink-3: #3a5a55; --x-paper: #fdf8ee; --x-line: #e3dccb; --x-gold: #f4b942; --x-cream: #fdfcfa; --x-sage: #a9bdb8;
  --hub-tint: #e6efe9; --hub-gold-soft: #fbe7b5; --hub-gold-text: #8f5f06;
}
/* ---------- Night mode: Afrideals dark surfaces, readable greens for buttons ---------- */
html[data-theme="dark"] {
  --bg: #0b1f1c; --card: #13302c; --line: #24433f; --soft: #18382f; --soft-2: #112925;
  --ink: #f3efe6; --ink-2: #ddd8cc; --muted: #a9bdb8; --muted-2: #95aaa4;
  --green-soft: #1d3f39; --gold: #f4b942;
  --x-ink: #0a2522; --x-paper: #0b1f1c; --x-line: #24433f; --x-gold: #f4b942; --x-cream: #f3efe6; --x-sage: #a9bdb8;
  --hub-tint: #1d3f39; --hub-gold-soft: #3b3218; --hub-gold-text: #f4b942;
}
html { --display: "Inter", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { background: var(--bg); font-family: var(--body); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
h1 { font-weight: 900; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
html[data-theme="dark"] :focus-visible { outline-color: #f4b942; }

/* ---------- Top bar ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
html:not([data-theme="dark"]) .topbar { background: rgba(255, 255, 255, .96); }
.search { background: var(--bg); border: 1px solid var(--line); }
html:not([data-theme="dark"]) .search { background: #fdf8ee; }
.wallet-pill { background: #f4b942; color: #12403c; }
.topnav-row { background: var(--card); border-bottom-color: var(--line); }
.top-links a { border-radius: 999px; }
.top-links a.on { background: #12403c; color: #fdfcfa; }
html[data-theme="dark"] .top-links a.on { background: #f4b942; color: #12403c; }

/* ---------- Buttons, chips, forms ---------- */
.btn { border-radius: 999px; }
.btn-primary, .btn-dark { background: #12403c; color: #fdfcfa; }
.btn-primary:hover, .btn-dark:hover { background: #0a2522; color: #fdfcfa; }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn-dark { background: #f4b942; color: #12403c; }
html[data-theme="dark"] .btn-primary:hover, html[data-theme="dark"] .btn-dark:hover { background: #f7c766; color: #12403c; }
.btn-gold { background: #f4b942; color: #12403c; }
.btn-gold:hover { background: #f7c766; color: #12403c; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); }
.btn-soft { background: var(--soft); color: var(--ink); }
.chip { border: 1px solid var(--line); }
.chip:hover { box-shadow: none; border-color: var(--green); }
.chip.active { background: #12403c; color: #fdfcfa; border-color: #12403c; }
html[data-theme="dark"] .chip.active { background: #f4b942; color: #12403c; border-color: #f4b942; }
html:not([data-theme="dark"]) .input, html:not([data-theme="dark"]) .select, html:not([data-theme="dark"]) .textarea { border-color: #d9d0bb; }
.input, .select, .textarea { border-radius: 8px; }
.input:focus, .select:focus, .textarea:focus { outline-color: var(--green); border-color: var(--green); }
.field label, .label { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.card, .post, .side-card, .svc-card, .plain-block, .hx-compose { border-radius: 14px; border: 1px solid var(--line); box-shadow: none; }
.alert-ok { background: #e6efe9; color: #12403c; border: 1px solid #c4dacf; }
html[data-theme="dark"] .alert-ok { background: #1d3f39; color: #f3efe6; border-color: #24433f; }
.seg a.on { color: var(--ink); border-bottom-color: #f4b942; }
.new-pill { background: #f4b942; color: #12403c; }

/* ---------- Left menu (every page) ---------- */
.hx-left-nav a { border-radius: 999px; padding: 6px 12px 6px 6px; }
.hx-left-nav a span { border-radius: 50%; background: transparent; color: var(--ink); }
.hx-left-nav a:hover { background: var(--soft); color: var(--ink); }
.hx-left-nav a.on, html[data-theme="dark"] .hx-left-nav a.on { background: #12403c; color: #fdfcfa; font-weight: 600; }
.hx-left-nav a.on span, html[data-theme="dark"] .hx-left-nav a.on span { background: transparent; color: #f4b942; }
.hx-left-places { border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.hx-left-places h2 { color: var(--hub-gold-text); letter-spacing: .3em; font-size: 11.5px; font-family: var(--body); }
.hx-left-places a b { background: var(--hub-tint); color: var(--green-text); padding: 1px 10px; border-radius: 999px; font-weight: 600; }
html[data-theme="dark"] .hx-left-places a b { color: #f4b942; }
.hx-left-places .hx-left-add { color: var(--hub-gold-text); }
.site-left-foot { margin: 0; padding: 0 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.site-left-foot b { color: var(--hub-gold-text); font-weight: 600; }

.site-left { display: none; }
@media (min-width: 1200px) {
  .site-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 4px; max-width: 1480px; margin: 0 auto; padding-left: 20px; align-items: start; }
  .site-body { min-width: 0; }
  .site-left { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; padding: 22px 0 24px; max-height: calc(100vh - 80px); overflow-y: auto; scrollbar-width: thin; }
  body:has(.site-left) .topnav-row { display: none; }
  body:has(.site-left) .topbar-inner { max-width: 1480px; }
  .site-body .layout, .site-body .layout.two { max-width: 1180px; }
}
/* the homepage keeps its own three columns; show its menu from 1200px too */
@media (min-width: 1200px) and (max-width: 1359px) {
  .home.hx { max-width: 1240px; grid-template-columns: 210px minmax(0, 1fr) 300px; gap: 22px; }
  .home.hx .hx-left { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
  body:has(.hx-left) .topnav-row { display: none; }
}

/* ---------- Footer: pine band ---------- */
.site-footer { max-width: none; margin: 32px 0 0; background: #0a2522; color: #a9bdb8; padding-top: 32px; }
.site-footer > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.site-footer a, .site-footer .ft-col a { color: #e9efe9; }
.site-footer a:hover { color: #f4b942; }
.site-footer b, .site-footer .ft-col b { color: #fdfcfa; }
.site-footer .ft-desc { color: #a9bdb8; }
.site-footer .ft-logo img { background: #fdfcfa; border-radius: 10px; padding: 4px 8px; }
.site-footer .btn-soft { background: rgba(253, 252, 250, .1); color: #fdfcfa; }
.site-footer .lang-switch label { color: #a9bdb8; }
.site-footer .lang-switch select { background: #13302c; color: #fdfcfa; border: 1px solid #24433f; }
.site-footer .online-stats { color: #a9bdb8; }
.site-footer .store-badges a { background: rgba(253, 252, 250, .1); color: #fdfcfa; }
.site-footer .ft-maker b { color: #f4b942; font-weight: 600; }

/* ---------- Phone bottom bar ---------- */
.bottom-nav a.on, .bottom-nav a[aria-current="page"] { color: #12403c; }
html[data-theme="dark"] .bottom-nav a.on, html[data-theme="dark"] .bottom-nav a[aria-current="page"] { color: #f4b942; }

/* footer links readable on the pine band in both modes (beats the older ".site-footer nav.ft-col a") */
html .site-footer nav.ft-col a, html .site-footer nav a, html .site-footer p a { color: #e9efe9; }
html .site-footer nav.ft-col a:hover, html .site-footer nav a:hover { color: #f4b942; }
html .site-footer .ft-grid { border-color: #24433f; }
