/* De-Graft Afful personal brand kit, v1 (13 Nov 2026)
   Source of truth: the Exam Mastery public page (degraftaffulonline.com/exam-mastery).
   Use for every PERSONAL app and page: degraftaffulonline.com, Exam Mastery, Kasa, Majesty Studio, Life Guides, Hub pages.
   NOT for the farm (hismajestyplacefarm.com), which keeps its own brand.
   How to use: copy this file into the app's public folder and link it FIRST, before the app's own CSS:
     <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Outfit:wght@300;400;600;700&display=swap" rel="stylesheet">
     <link rel="stylesheet" href="/brand.css">
   Then replace the app's own colours with these variables (var(--gold) etc). Do not invent new colours. */

:root{
  /* light (default) */
  --bg:#fbf7ee; --card:#ffffff; --card2:#f3ecdc; --ink:#14203a; --muted:#5d6475; --gold:#a87c05; --gold-soft:#8a6604;
  --btn:#c8960a; --btn-ink:#0a1428; --line:rgba(168,124,5,0.30); --line-soft:rgba(20,32,58,0.12);
  --ok:#2e7d43; --bad:#b03a3a; --amber:#b77400; --okbg:rgba(46,125,67,0.10); --badbg:rgba(176,58,58,0.10); --amberbg:rgba(183,116,0,0.12);
  --hero1:#0a1428; --hero2:#1a2c52; --top:rgba(251,247,238,0.97);
  /* never change between themes */
  --navy:#0a1428; --navy2:#122040; --brand-gold:#dcae3c; --cream:#f4eddc;
  --font-head:'Playfair Display',Georgia,serif; --font-body:'Outfit',system-ui,sans-serif;
  --radius:10px; --radius-btn:8px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0a1428; --card:#122040; --card2:#1a2c52; --ink:#f4eddc; --muted:#b9b0a0; --gold:#dcae3c; --gold-soft:#efd9a7;
    --btn:#c8960a; --btn-ink:#0a1428; --line:rgba(220,174,60,0.30); --line-soft:rgba(220,174,60,0.14);
    --ok:#6cc483; --bad:#e08585; --amber:#f0b54a; --okbg:rgba(108,196,131,0.13); --badbg:rgba(224,133,133,0.13); --amberbg:rgba(240,181,74,0.13);
    --hero1:#08101f; --hero2:#122040; --top:rgba(10,20,40,0.97);
  }
}
:root[data-theme="dark"]{
  --bg:#0a1428; --card:#122040; --card2:#1a2c52; --ink:#f4eddc; --muted:#b9b0a0; --gold:#dcae3c; --gold-soft:#efd9a7;
  --btn:#c8960a; --btn-ink:#0a1428; --line:rgba(220,174,60,0.30); --line-soft:rgba(220,174,60,0.14);
  --ok:#6cc483; --bad:#e08585; --amber:#f0b54a; --okbg:rgba(108,196,131,0.13); --badbg:rgba(224,133,133,0.13); --amberbg:rgba(240,181,74,0.13);
  --hero1:#08101f; --hero2:#122040; --top:rgba(10,20,40,0.97);
}

/* base */
html,body{ background:var(--bg); }
body{ color:var(--ink); font-family:var(--font-body); line-height:1.65; font-size:16px; margin:0; overflow-x:hidden; }
h1,h2{ font-family:var(--font-head); line-height:1.15; }
h1{ font-size:clamp(28px,6vw,44px); margin:0 0 12px; }
h2{ font-size:clamp(21px,4.5vw,27px); margin:28px 0 10px; }
h3{ font-size:16px; margin:4px 0 6px; }
a{ color:var(--gold); }
.muted{ color:var(--muted); } .small{ font-size:14px; }

/* top bar: brand name on the left, links on the right */
.b-top{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 16px; border-bottom:1px solid var(--line-soft); position:sticky; top:0; background:var(--top); z-index:50; flex-wrap:wrap; }
.b-brand{ font-family:var(--font-head); font-size:17px; color:var(--gold); text-decoration:none; font-weight:700; }

/* hero band (always navy, cream text, gold accent) */
.b-hero{ background:linear-gradient(135deg,var(--hero1),var(--hero2)); color:var(--cream); padding:36px 16px 40px; }
.b-hero em{ color:var(--brand-gold); font-style:normal; }
.b-hero p{ color:#e6dcc4; }

/* layout */
.b-wrap{ max-width:820px; margin:0 auto; padding:0 16px; }
.b-card{ background:var(--card); border:1px solid var(--line-soft); border-radius:var(--radius); padding:16px; margin:12px 0; }

/* buttons: ONE gold main button per screen; the rest are outline */
.b-btn{ display:inline-block; background:var(--btn); color:var(--btn-ink); padding:12px 20px; border-radius:var(--radius-btn); font-weight:700; font-size:15.5px; text-decoration:none; border:0; cursor:pointer; font-family:inherit; min-height:44px; }
.b-btn-ghost{ display:inline-block; background:transparent; color:var(--gold); padding:11px 18px; border-radius:var(--radius-btn); font-weight:600; border:1px solid var(--line); cursor:pointer; font-family:inherit; min-height:44px; text-decoration:none; }
.b-btn:focus-visible,.b-btn-ghost:focus-visible{ outline:3px solid var(--brand-gold); outline-offset:2px; }

/* chips and notes */
.b-chip{ display:inline-block; padding:5px 11px; border-radius:6px; margin:4px 4px 4px 0; font-size:14px; background:var(--card2); border:1px solid var(--line-soft); color:var(--ink); }
.b-chip.on{ background:var(--btn); color:var(--btn-ink); border-color:var(--btn); }
.b-ok{ background:var(--okbg); color:var(--ok); border-radius:8px; padding:10px 12px; }
.b-bad{ background:var(--badbg); color:var(--bad); border-radius:8px; padding:10px 12px; }
.b-warn{ background:var(--amberbg); color:var(--amber); border-radius:8px; padding:10px 12px; }

/* forms */
input,select,textarea{ font-family:inherit; font-size:16px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:8px; padding:10px 12px; max-width:100%; box-sizing:border-box; }

/* footer: same line on every personal app */
.b-foot{ border-top:1px solid var(--line-soft); margin-top:40px; padding:18px 16px; font-size:13px; color:var(--muted); text-align:center; }
.b-foot a{ color:var(--gold); }

/* print: always plain black on white */
@media print{ html,body{ background:#fff !important; color:#000 !important; } .b-top,.b-foot,.b-btn,.b-btn-ghost{ display:none !important; } }
