/* Monero Academy — warm near-black + Monero orange. No external fonts (Tor-friendly). */
:root {
  --bg: #131110;
  --bg-raise: #1c1815;
  --bg-raise2: #241f1b;
  --line: #332c26;
  --text: #ece6df;
  --muted: #a39a90;
  --orange: #f26822;        /* Monero orange */
  --orange-soft: #ff8b4d;
  --teal: #4fb8a8;          /* beginner */
  --violet: #b08ae8;        /* advanced */
  --ok: #6fbf73;
  --err: #e06c5c;
  --radius: 10px;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* Light theme (toggled via the /theme cookie — no JavaScript needed). */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #faf8f4;
  --bg-raise: #ffffff;
  --bg-raise2: #f2ece4;
  --line: #e3dbcf;
  --text: #211c18;
  --muted: #6b6258;
  --orange: #d9531a;       /* slightly deeper orange for contrast on light */
  --orange-soft: #b8430f;
}
html[data-theme="light"] .site-header { background: rgba(255,253,250,.97); }
.theme-toggle { font-size: 1.15rem; line-height: 1; padding: 0 .15rem; }

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; font-size: 16.5px;
}
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.1rem; }
a { color: var(--orange-soft); text-decoration: none; transition: color .15s ease; }
/* Hover feedback: a subtle color brighten on content links (not nav/brand/buttons).
   The playful underline is reserved for real article text (prose / lesson body) so
   card- and chip-style links don't get an odd underline. */
main a:not(.btn):hover { color: var(--orange); }
main a:not(.btn):active { color: var(--orange); }
.prose a:not(.btn):hover, .lesson-body a:not(.btn):hover, .lesson-lead a:hover {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
img { max-width: 100%; height: auto; display: block; }
/* On-brand text selection: bright Monero orange highlight with black text. */
::selection { background: #f26822; color: #000; }
::-moz-selection { background: #f26822; color: #000; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-raise2); padding: .1em .35em; border-radius: 5px; word-break: break-all; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 2rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--orange); color: #000; padding: .4rem .8rem; z-index: 99; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---- header / footer ---- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(19,17,16,.97); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; font-size: 1.12rem; transition: color .15s ease; }
.brand:hover { text-decoration: none; color: var(--orange-soft); }
.brand-mark { color: var(--orange); font-family: var(--mono); font-size: 1.5rem; line-height: 1; }
.brand-logo { height: 38px; width: 38px; display: block; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-size: .95rem; }
.site-nav a:hover { color: var(--orange-soft); text-decoration: none; }
/* Keep the auth link + theme toggle together so the sun/moon never wraps alone. */
.nav-end { display: inline-flex; align-items: center; gap: 1.1rem; }
.onion-line a code { color: var(--orange-soft); word-break: break-all; }

/* Header search ------------------------------------------------------------- */
.site-search { position: relative; flex: 1 1 200px; max-width: 320px; display: flex; }
.site-search input { flex: 1; min-width: 0; background: var(--bg-raise); color: var(--text);
  border: 1px solid var(--line); border-radius: 7px 0 0 7px; padding: .42rem .7rem; font-size: .9rem; }
.site-search input:focus { outline: none; border-color: var(--orange); }
.site-search-btn { background: var(--bg-raise2); border: 1px solid var(--line); border-left: 0;
  border-radius: 0 7px 7px 0; color: var(--muted); cursor: pointer; padding: 0 .6rem; font-size: .9rem; }
.site-search-btn:hover { color: var(--orange-soft); }
.search-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.45); max-height: 70vh; overflow-y: auto; }
.suggest-group { font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); padding: .5rem .8rem .2rem; }
.suggest-item { display: flex; flex-direction: column; gap: .1rem; padding: .45rem .8rem; color: var(--text); }
.suggest-item:hover, .suggest-item.active { background: var(--bg-raise2); text-decoration: none; }
.suggest-title { font-size: .9rem; }
.suggest-sub { font-size: .74rem; color: var(--muted); }
.suggest-all { display: block; padding: .55rem .8rem; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--orange-soft); }
.suggest-all:hover, .suggest-all.active { background: var(--bg-raise2); text-decoration: none; }
.search-page-form { display: flex; gap: .5rem; max-width: 560px; margin-top: .6rem; }
.search-page-form input { flex: 1; background: var(--bg-raise); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .8rem; font-size: 1rem; }
.search-page-form input:focus { outline: none; border-color: var(--orange); }

.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.2rem 0 2.6rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid a { display: block; color: var(--muted); padding: .15rem 0; }
.footer-grid a:hover { color: var(--orange-soft); }
/* Links inside a footer paragraph stay inline so sentences don't break mid-line. */
.footer-grid p a { display: inline; padding: 0; color: var(--orange-soft); }
.footer-brand { font-weight: 700; margin: 0 0 .4rem; }
.footer-head { font-weight: 600; margin: 0 0 .5rem; color: var(--text); }
.footer-donate { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.xmr-addr { font-size: .78rem; }
.donate-grid { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
.donate-qr { display: block; border-radius: 8px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.donate-grid > div { flex: 1; min-width: 240px; }
.onion-line code { font-size: .75rem; }

/* ---- hero ---- */
.hero { padding: 4rem 0 3rem; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(242,104,34,.13), transparent 60%),
    var(--bg);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .8rem; max-width: 22ch; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 1.6rem; }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: .65rem 1.3rem; border-radius: var(--radius);
  font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: 1rem; font-family: var(--sans);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--orange); color: #161005; }
.btn-primary:hover { background: var(--orange-soft); color: #160d02; box-shadow: 0 6px 18px rgba(242,104,34,.32); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-soft); }
.btn-sm { padding: .35rem .8rem; font-size: .88rem; }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }

/* ---- sections / cards ---- */
.section { padding: 2.6rem 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head h2 { margin: 0; font-size: 1.35rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.card { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.card a.card-link { color: var(--text); display: flex; flex-direction: column; height: 100%; }
.card a.card-link:hover { text-decoration: none; }
.card-thumb { aspect-ratio: 16/9; background: var(--bg-raise2); object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.card-thumb-empty { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-raise2), #2c241d);
  display: flex; align-items: center; justify-content: center; color: var(--orange); font-family: var(--mono); font-size: 2.2rem; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { font-weight: 650; font-size: 1.02rem; margin: 0; }
.card-desc { color: var(--muted); font-size: .9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: .5rem; display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }

.badge { display: inline-block; font-family: var(--mono); font-size: .72rem; padding: .12rem .55rem;
  border-radius: 999px; border: 1px solid; letter-spacing: .03em; text-transform: uppercase; }
.badge-beginner { color: var(--teal); border-color: var(--teal); }
.badge-intermediate { color: var(--orange-soft); border-color: var(--orange); }
.badge-advanced { color: var(--violet); border-color: var(--violet); }
.badge-neutral { color: var(--muted); border-color: var(--line); }

/* ---- sponsors ---- */
.sponsors { margin: 2.6rem 0 0; padding: 1.1rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); }
.sponsors-label { margin: 0 0 .7rem; font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); }
/* Narrow min so all 5 main sponsors sit on one row on the wide homepage, yet
   collapse to a single stacked column in the narrow lesson/course sidebar. */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }
.sponsor-card { display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem; border: 1px solid var(--line);
  border-radius: 8px; color: var(--text); background: var(--bg); font-size: .85rem; min-width: 0; }
.sponsor-card .sponsor-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sponsor-card:hover { border-color: var(--orange); text-decoration: none; }
.sponsor-name { font-weight: 650; color: var(--orange-soft); }
.sponsor-rating { font-size: .76rem; color: var(--muted); }
.sponsor-desc { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* secondary (lesser) sponsors — deliberately low-key, sits near page foot */
.sponsors-secondary { margin: 2.4rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.sponsor-tier { margin-top: 1rem; }
.sponsor-tier:first-of-type { margin-top: .4rem; }
.sponsor-tier-head { margin: 0 0 .15rem; font-family: var(--mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .07em; color: var(--orange-soft); }
.sponsor-mini-list { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: .35rem 1.1rem; font-size: .82rem; }
.sponsor-mini-list li { color: var(--muted); }
.sponsor-mini-list a { color: var(--text); }

/* Sponsors page — detailed cards */
.sponsor-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: .8rem; }
.sponsor-detail { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.sponsor-detail-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sponsor-detail-head h3 { margin: 0; font-size: 1.05rem; color: var(--orange-soft); }
.sponsor-detail-desc { color: var(--muted); font-size: .9rem; margin: 0; }
.sponsor-detail .sponsor-rating { font-size: .8rem; color: var(--muted); margin: 0; }
.sponsor-detail .btn { align-self: flex-start; }
.sponsor-detail-links { margin-top: auto; display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
a.sponsor-rating-link { display: inline-block; color: var(--orange-soft); text-decoration: none; }
a.sponsor-rating-link:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.sponsor-become ol { margin: .6rem 0 1rem 1.2rem; }
.sponsor-become li { margin: .35rem 0; }

/* Main (top-tier) sponsors — clean cards with a subtle orange accent, all five
   on one row (smaller min so they fit). They lead because they pay the most. */
.sponsor-detail-grid--main { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; }
.sponsor-detail--main { padding: 1rem 1.05rem; border-color: var(--orange); }
.sponsor-detail--main .sponsor-detail-head h3 { font-size: 1.05rem; }
.sponsor-detail--main .sponsor-detail-desc { font-size: .88rem; }
.sponsor-mini-list a:hover { color: var(--orange-soft); }
.sponsor-mini-desc { color: var(--muted); }

/* ---- lesson page ---- */
.lesson-layout, .list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; padding-top: 2rem; }
/* List pages (e.g. quizzes) with a sponsor rail: align the rail to the top of the content. */
.list-aside .sponsors { margin-top: 0; }
.video-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-title { margin: 1.1rem 0 .3rem; font-size: 1.55rem; }
.lesson-meta { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.lesson-desc { white-space: pre-wrap; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1.6rem 0; }
.lesson-nav a { flex: 1; max-width: 48%; }
.lesson-nav .next { text-align: right; margin-left: auto; }
.resource-list { list-style: none; padding: 0; margin: .4rem 0 0; }
.resource-list li { padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
details.transcript { margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
details.transcript summary { padding: .7rem 1rem; cursor: pointer; font-weight: 600; }
details.transcript .transcript-body { padding: 0 1rem 1rem; white-space: pre-wrap; color: var(--muted); font-size: .93rem; max-height: 420px; overflow-y: auto; }
.sidebar-box { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.sidebar-box h3 { margin: 0 0 .6rem; font-size: .95rem; }
.playlist { list-style: none; margin: 0; padding: 0; counter-reset: lesson; }
.playlist li { counter-increment: lesson; padding: .35rem 0; font-size: .9rem; display: flex; gap: .5rem; }
.playlist li::before { content: counter(lesson, decimal-leading-zero); font-family: var(--mono); color: var(--muted); font-size: .78rem; padding-top: .15rem; }
.playlist li.current { color: var(--orange); font-weight: 600; }
.playlist li.current a { color: var(--orange); }
.playlist li a { color: var(--text); }
.tag-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag-chip { font-family: var(--mono); font-size: .74rem; color: var(--muted); border: 1px solid var(--line);
  padding: .1rem .55rem; border-radius: 999px; }
a.tag-chip:hover { color: var(--orange-soft); border-color: var(--orange); text-decoration: none; }

/* ---- comments ---- */
.comments { margin-top: 2.4rem; }
.comment { border-top: 1px solid var(--line); padding: 1rem 0; }
.comment-head { font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.comment-name { color: var(--orange-soft); font-weight: 600; }
.comment-body { white-space: pre-wrap; font-size: .96rem; }

/* ---- forms ---- */
form.stacked { display: flex; flex-direction: column; gap: .9rem; max-width: 560px; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .25rem; }
input[type=text], input[type=password], input[type=url], input[type=email], input[type=number], textarea, select {
  width: 100%; background: var(--bg-raise); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; font-family: inherit; font-size: .95rem; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); outline: none; }
textarea { min-height: 110px; resize: vertical; }
.field-hint { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.form-error { color: var(--err); font-size: .88rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin: 1rem 0; font-size: .93rem; }
.flash-ok { background: rgba(111,191,115,.12); border: 1px solid var(--ok); color: var(--ok); }
.flash-err { background: rgba(224,108,92,.12); border: 1px solid var(--err); color: var(--err); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---- quizzes ---- */
.quiz-question { background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.quiz-question h3 { margin: 0 0 .7rem; font-size: 1.02rem; }
.quiz-question .q-num { font-family: var(--mono); color: var(--orange); margin-right: .5rem; }
.answer-option { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; font-size: .96rem; }
.answer-option input { margin-top: .3rem; accent-color: var(--orange); }
.quiz-score { text-align: center; padding: 2rem; background: var(--bg-raise); border: 1px solid var(--orange); border-radius: var(--radius); margin-bottom: 1.6rem; }
.quiz-score .score-big { font-size: 3rem; font-weight: 800; color: var(--orange); font-family: var(--mono); }
.result-correct { border-left: 3px solid var(--ok); }
.result-wrong { border-left: 3px solid var(--err); }
.result-tag { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; }
.result-tag.ok { color: var(--ok); }
.result-tag.bad { color: var(--err); }
.explanation { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); margin-top: .6rem; padding-top: .6rem; }

/* ---- tables (admin) ---- */
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.list input[type=number] { width: 70px; }
.admin-bar { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 1.4rem 0; padding: .8rem 1rem;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.admin-bar a { color: var(--text); }
.admin-bar a:hover { color: var(--orange-soft); }
.inline-form { display: inline; }
.row-actions { display: flex; gap: .5rem; align-items: center; }

/* ---- misc ---- */
.page-head { padding: 2.4rem 0 0; }
.page-head h1 { margin: 0 0 .4rem; }
.prose { max-width: 70ch; }
.prose p { margin: .9rem 0; }
/* Text-first lesson layout */
/* Hero/blog images share the page's dark background, so frame them to stand out. */
.lesson-hero { width: 100%; max-width: 760px; height: auto; border-radius: 10px; margin: .2rem 0 1rem; display: block;
    background: var(--bg-raise); border: 1px solid var(--line);
    box-shadow: 0 6px 22px rgba(0,0,0,.45); }
.lesson-lead { font-size: 1.12rem; line-height: 1.6; opacity: .92; margin: .6rem 0 1.2rem; }
.lesson-body { max-width: 72ch; line-height: 1.7; }
.lesson-body h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.lesson-body h3 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
.lesson-body p { margin: .9rem 0; }
.lesson-body ul, .lesson-body ol { margin: .8rem 0 .8rem 1.3rem; }
.lesson-body li { margin: .35rem 0; }
.lesson-body a { text-decoration: underline; }
.lesson-body code { background: rgba(255,255,255,.08); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.lesson-body pre { background: var(--bg-raise2); border: 1px solid var(--line); border-radius: 8px;
  padding: .8rem 1rem; overflow-x: auto; margin: 1rem 0; }
.lesson-body pre code { background: none; padding: 0; font-size: .86rem; color: var(--text);
  white-space: pre; word-break: normal; }
.lesson-body table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .9rem; display: block; overflow-x: auto; }
.lesson-body th, .lesson-body td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.lesson-body thead th { background: var(--bg-raise2); color: var(--text); font-weight: 650; }
.lesson-body tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.lesson-body strong { font-weight: 600; }
.center { text-align: center; }
.mt-2 { margin-top: 1.4rem; }
.qr-box { background: #fff; padding: 12px; display: inline-block; border-radius: 8px; }
/* Account / auth pages */
.auth-wrap { max-width: 460px; margin: 1.5rem auto; }
.auth-form input { width: 100%; }
.account-page { max-width: 780px; margin: 0 auto; }
.account-page .section { margin-top: 2rem; }

@media (max-width: 880px) {
  .lesson-layout, .list-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 2.6rem 0 2.2rem; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
