@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');
@import url('/mango-tango-theme.css');

:root {
  --mango: #eec170;
  --mango-soft: #f8e7bd;
  --ink: #242522;
  --muted: #716c62;
  --paper: #fffdf8;
  --paper-2: #f6f1e7;
  --line: #ded6c7;
  --page-bg: #f7f6f2;
  --page-surface: rgba(255,254,250,.94);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 75% -15%, rgba(238,193,112,.18), transparent 34%), var(--page-bg);
  color: var(--ink);
  font: 16px/1.7 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--mango); outline-offset: 3px; border-radius: 4px; }

.static-page-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255,254,250,.9);
  backdrop-filter: blur(14px);
}
.static-page-topbar-inner {
  width: min(1340px, calc(100% - 68px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.static-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.7px;
  white-space: nowrap;
}
.static-page-brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #17140d;
  background: var(--mango);
  border-radius: 9px 9px 9px 2px;
  transform: rotate(-4deg);
  box-shadow: 0 5px 15px rgba(238,193,112,.22);
}
.static-page-brand-mark svg { transform: rotate(4deg); }
.static-page-back {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 6px;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}
.static-page-back:hover { color: var(--ink); background: rgba(238,193,112,.12); transform: translateX(-1px); }

.static-page-content {
  width: min(920px, calc(100% - 68px));
  margin: 42px auto 0;
  padding: 46px 48px 64px;
  background: var(--page-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(32,37,34,.06);
}
.static-page-content h1 {
  margin: 0 0 18px;
  font: 600 clamp(40px, 6vw, 62px)/1.04 'Fraunces', Georgia, serif;
  letter-spacing: -1.8px;
  color: var(--ink);
}
.static-page-content h2 {
  margin: 36px 0 11px;
  font: 600 25px/1.2 'Fraunces', Georgia, serif;
  letter-spacing: -.5px;
  color: var(--ink);
}
.static-page-content h3 { margin: 25px 0 8px; font-size: 17px; color: var(--ink); }
.static-page-content small { display: inline-block; margin-bottom: 5px; color: #8a8174; font-size: 11px; }
.static-page-content p,
.static-page-content li { max-width: 76ch; color: var(--muted); }
.static-page-content p { margin: 0 0 15px; }
.static-page-content strong { color: var(--ink); }
.static-page-content em { color: var(--ink); }
.static-page-content a { color: #8a681f; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.static-page-content > p:first-of-type { margin-top: 0; }
.static-page-content blockquote {
  margin: 20px 0;
  padding: 14px 17px;
  border-left: 3px solid var(--mango);
  background: #fbf2df;
  border-radius: 0 9px 9px 0;
  color: #625944;
}
.static-page-content .post-count {
  display: inline-flex;
  align-items: center;
  margin: 4px 0 18px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--mango);
  color: #17140d;
  font-size: 12px;
  font-weight: 700;
}

.static-page-footer {
  width: min(920px, calc(100% - 68px));
  margin: 0 auto;
  padding: 24px 8px 40px;
  text-align: center;
  color: #8b8f89;
  font-size: 11px;
}
.static-page-footer a {
  color: #8a681f;
  text-decoration: none;
  font-weight: 600;
  transition: color .16s ease;
}
.static-page-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Knowledge / wiki-style pages share the same Mango Tango shell. */
.static-page-shell .hero { padding: 52px 0 26px; max-width: 920px; }
.static-page-shell .hero .eyebrow {
  margin: 0 0 10px;
  color: #8a681f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.static-page-shell .hero h1 { margin: 0; font: 600 clamp(42px,7vw,70px)/1.02 'Fraunces', Georgia, serif; letter-spacing: -2px; }
.static-page-shell .hero p { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.static-page-shell .facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 16px 0 34px; }
.static-page-shell .fact {
  background: rgba(255,254,250,.82);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 7px 22px rgba(36,37,34,.035);
}
.static-page-shell .fact strong { display: block; color: #6e531c; font-size: 16px; }
.static-page-shell .fact span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.static-page-shell .grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; align-items: start; }
.static-page-shell .toc {
  position: sticky;
  top: 88px;
  background: rgba(255,254,250,.88);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 8px 26px rgba(36,37,34,.04);
}
.static-page-shell .toc strong { font-size: 12px; }
.static-page-shell .toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 12px; }
.static-page-shell .toc a:hover { color: #8a681f; }
.static-page-shell .content { min-width: 0; }
.static-page-shell .section {
  background: rgba(255,254,250,.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 27px;
  margin-bottom: 12px;
  box-shadow: 0 8px 26px rgba(36,37,34,.035);
}
.static-page-shell .section h2 { font-size: 26px; margin: 0 0 12px; }
.static-page-shell .section h3 { font-size: 17px; margin: 23px 0 7px; }
.static-page-shell .section p { margin: 0 0 13px; }
.static-page-shell .section p:last-child { margin-bottom: 0; }
.static-page-shell .section ul,
.static-page-shell .section ol { color: var(--muted); padding-left: 22px; }
.static-page-shell .section li { margin: 7px 0; }
.static-page-shell .accent { color: #8a681f; }
.static-page-shell .note { border-left: 3px solid var(--mango); background: #fbf2df; padding: 13px 16px; border-radius: 0 9px 9px 0; color: #625944; margin: 16px 0; }
.static-page-shell .steps { display: grid; gap: 9px; }
.static-page-shell .step { display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: start; }
.static-page-shell .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mango); color: #17140d; font-weight: 800; }
.static-page-shell .cta { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: var(--mango); color: #17140d; border-radius: 10px; padding: 20px 22px; margin-top: 14px; }
.static-page-shell .cta strong { font-size: 17px; }
.static-page-shell .cta a { font-weight: 800; text-decoration: none; border: 1px solid rgba(23,20,13,.28); padding: 7px 12px; border-radius: 7px; color: #17140d; }
.static-page-shell .faq details { border-top: 1px solid var(--line); padding: 13px 0; }
.static-page-shell .faq details:first-child { border-top: 0; }
.static-page-shell .faq summary { cursor: pointer; font-weight: 700; }
.static-page-shell .faq p { padding-top: 8px; margin: 0; }

/* Mango Tango autumn: match the current main app's black / mango presentation. */
html[data-season="autumn"] {
  --page-bg: #000;
  --page-surface: #111;
  --paper: #111;
  --paper-2: #171717;
  --ink: #fff;
  --muted: #b7b7b2;
  --line: #2b2b2b;
}
html[data-season="autumn"] body { background: #000; color: #fff; }
html[data-season="autumn"] .static-page-topbar { background: rgba(0,0,0,.94); border-color: #2b2b2b; }
html[data-season="autumn"] .static-page-brand,
html[data-season="autumn"] .static-page-content h1,
html[data-season="autumn"] .static-page-content h2,
html[data-season="autumn"] .static-page-content h3,
html[data-season="autumn"] .static-page-content strong,
html[data-season="autumn"] .static-page-content em { color: #fff; }
html[data-season="autumn"] .static-page-content,
html[data-season="autumn"] .static-page-shell .fact,
html[data-season="autumn"] .static-page-shell .toc,
html[data-season="autumn"] .static-page-shell .section { background: #111; border-color: #2b2b2b; color: #fff; }
html[data-season="autumn"] .static-page-content p,
html[data-season="autumn"] .static-page-content li,
html[data-season="autumn"] .static-page-shell .hero p,
html[data-season="autumn"] .static-page-shell .fact span,
html[data-season="autumn"] .static-page-shell .toc a { color: #b7b7b2; }
html[data-season="autumn"] .static-page-content a,
html[data-season="autumn"] .static-page-footer a,
html[data-season="autumn"] .static-page-shell .toc a:hover,
html[data-season="autumn"] .static-page-shell .accent { color: #eec170; }
html[data-season="autumn"] .static-page-back { color: #b7b7b2; }
html[data-season="autumn"] .static-page-back:hover { color: #fff; background: rgba(238,193,112,.1); }
html[data-season="autumn"] .static-page-footer { color: #777; }
html[data-season="autumn"] .static-page-shell .fact strong { color: #eec170; }
html[data-season="autumn"] .static-page-content blockquote,
html[data-season="autumn"] .static-page-shell .note { background: #1b1811; color: #d0c9ba; }
html[data-season="autumn"] .static-page-content .post-count { color: #17140d; background: #eec170; }

/* Keep the other seasonal modes compatible with the shared theme engine. */
html[data-season="spring"] {
  --page-bg: #000;
  --page-surface: #111;
  --ink: #fff;
  --muted: #bdbdbd;
  --line: #2b2b2b;
}
html[data-season="winter"] {
  --page-bg: #000;
  --page-surface: #111;
  --ink: #fff;
  --muted: #bdbdbd;
  --line: #fff;
}
html[data-season="summer"] {
  --page-bg: #fff;
  --page-surface: #fffdf8;
}

html[data-season="spring"] body,
html[data-season="winter"] body { background: var(--page-bg); color: var(--ink); }
html[data-season="spring"] .static-page-topbar,
html[data-season="winter"] .static-page-topbar { background: rgba(0,0,0,.94); border-color: var(--line); }
html[data-season="spring"] .static-page-content,
html[data-season="winter"] .static-page-content,
html[data-season="spring"] .static-page-shell .fact,
html[data-season="winter"] .static-page-shell .fact,
html[data-season="spring"] .static-page-shell .toc,
html[data-season="winter"] .static-page-shell .toc,
html[data-season="spring"] .static-page-shell .section,
html[data-season="winter"] .static-page-shell .section { background: var(--page-surface); border-color: var(--line); }
html[data-season="spring"] .static-page-content h1,
html[data-season="spring"] .static-page-content h2,
html[data-season="spring"] .static-page-content h3,
html[data-season="spring"] .static-page-content strong,
html[data-season="spring"] .static-page-content em,
html[data-season="winter"] .static-page-content h1,
html[data-season="winter"] .static-page-content h2,
html[data-season="winter"] .static-page-content h3,
html[data-season="winter"] .static-page-content strong,
html[data-season="winter"] .static-page-content em { color: #fff; }
html[data-season="spring"] .static-page-content p,
html[data-season="spring"] .static-page-content li,
html[data-season="spring"] .static-page-shell .hero p,
html[data-season="spring"] .static-page-shell .fact span,
html[data-season="spring"] .static-page-shell .toc a,
html[data-season="winter"] .static-page-content p,
html[data-season="winter"] .static-page-content li,
html[data-season="winter"] .static-page-shell .hero p,
html[data-season="winter"] .static-page-shell .fact span,
html[data-season="winter"] .static-page-shell .toc a { color: var(--muted); }
html[data-season="spring"] .static-page-content a,
html[data-season="spring"] .static-page-footer a { color: #ff69b4; }
html[data-season="winter"] .static-page-content a,
html[data-season="winter"] .static-page-footer a { color: #fff; }

@media (max-width: 820px) {
  .static-page-topbar-inner { width: min(100% - 32px, 1340px); }
  .static-page-content, .static-page-footer { width: min(100% - 32px, 920px); }
  .static-page-shell .grid { grid-template-columns: 1fr; }
  .static-page-shell .toc { position: static; }
  .static-page-shell .facts { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 520px) {
  .static-page-topbar-inner { min-height: 64px; width: calc(100% - 24px); }
  .static-page-brand { font-size: 18px; }
  .static-page-brand-mark { width: 30px; height: 30px; }
  .static-page-back { font-size: 11px; }
  .static-page-content { width: calc(100% - 24px); margin-top: 18px; padding: 30px 20px 48px; border-radius: 10px; }
  .static-page-content h1 { font-size: 40px; }
  .static-page-content h2 { font-size: 23px; }
  .static-page-footer { width: calc(100% - 24px); padding: 21px 6px 32px; line-height: 1.8; }
  .static-page-shell .hero { padding-top: 40px; }
  .static-page-shell .hero h1 { font-size: 45px; }
  .static-page-shell .facts { grid-template-columns: 1fr; }
  .static-page-shell .section { padding: 21px; }
  .static-page-shell .cta { display: block; }
  .static-page-shell .cta a { display: inline-block; margin-top: 12px; }
}
