/* =========================================================================
   Skin Swappers — An Educational Guide
   Shared stylesheet
   Design direction: a "game settings menu" read — dark, disciplined panels,
   monospace signal labels, one warm amber accent for attention, and the
   rarity-tier color language of game cosmetics used as a recurring motif.
   ========================================================================= */

:root {
  /* Surfaces */
  --ink:        #0E1118;
  --panel:      #151A24;
  --panel-2:    #1B2130;
  --line:       #262D3D;
  --line-soft:  #1E2534;

  /* Text */
  --text:       #EAEDF4;
  --text-dim:   #99A2B6;
  --text-faint: #647089;

  /* Signal + motif */
  --amber:      #E9B44C;   /* primary accent: attention */
  --amber-deep: #C8933A;
  --teal:       #5FD0C4;   /* secondary: the informational thread, used sparingly */
  --danger:     #E5776B;   /* risk emphasis, sparing */

  /* Rarity language (the cosmetic vernacular) */
  --r-common:    #7C8699;
  --r-rare:      #5FA8E8;
  --r-epic:      #9385F0;
  --r-legendary: #E9B44C;

  --radius:      12px;
  --radius-sm:   7px;
  --maxw:        1180px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(233,180,76,0.07), transparent 60%),
    radial-gradient(900px 560px at -6% 4%, rgba(95,208,196,0.05), transparent 55%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ---------- Topbar --------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(14,17,24,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; flex: none;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(147,133,240,0.55), rgba(233,180,76,0.35)),
    var(--panel-2);
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 4px;
  border: 1px dashed rgba(234,237,244,0.55);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand__name span { color: var(--amber); }
.topbar__tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}
@media (max-width: 620px) { .topbar__tag { display: none; } }

/* ---------- Layout --------------------------------------------------------- */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 40px) 60px;
  display: grid;
  grid-template-columns: 262px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* ---------- Sidebar / contents (details = collapsible on mobile) ---------- */
.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}
.sidebar__toggle {
  display: none;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.sidebar__toggle::-webkit-details-marker { display: none; }
.sidebar__toggle::after { content: " ▾"; color: var(--text-faint); }

.toc { display: block; }
.toc__group {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 20px 0 8px;
  padding-left: 2px;
}
.toc__group:first-child { margin-top: 0; }
.toc__link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 7px 10px;
  border-radius: 7px;
  border-left: 2px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.toc__link .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  flex: none;
}
.toc__link:hover { color: var(--text); background: var(--panel); }
.toc__link.is-active {
  color: var(--text);
  background: var(--panel);
  border-left-color: var(--amber);
}
.toc__link.is-active .n { color: var(--amber); }

/* ---------- Content -------------------------------------------------------- */
.content { min-width: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: var(--amber-deep);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; }

.page-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  margin: 0 0 18px;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 34px;
}

.content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin: 48px 0 14px;
}
.content h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin: 30px 0 10px;
  color: var(--text);
}
.content p { margin: 0 0 18px; color: #D3D8E4; }
.content p.muted { color: var(--text-dim); }
.content strong { color: var(--text); font-weight: 600; }

.content ul, .content ol { margin: 0 0 20px; padding-left: 22px; color: #D3D8E4; }
.content li { margin: 8px 0; }
.content li::marker { color: var(--amber-deep); }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- Reusable blocks ------------------------------------------------ */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  background: linear-gradient(180deg, rgba(233,180,76,0.06), transparent 70%), var(--panel);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
}
.callout--danger { border-left-color: var(--danger); background: linear-gradient(180deg, rgba(229,119,107,0.07), transparent 70%), var(--panel); }
.callout--info   { border-left-color: var(--teal);   background: linear-gradient(180deg, rgba(95,208,196,0.06), transparent 70%), var(--panel); }
.callout__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 6px;
}
.callout--danger .callout__label { color: var(--danger); }
.callout--info .callout__label { color: var(--teal); }
.callout p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, opacity .55s ease;
}
a.card:hover { transform: translateY(-3px); border-color: #34405A; background: var(--panel-2); }
.card__n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; margin: 8px 0 6px; }
.card__desc { color: var(--text-dim); font-size: 0.94rem; line-height: 1.55; margin: 0; }
a.card .card__go {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--amber);
  letter-spacing: 0.04em;
}

/* Rarity chips — the cosmetic vernacular, reused as a motif */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--r-common); }
.chip.r-rare::before { background: var(--r-rare); }
.chip.r-epic::before { background: var(--r-epic); }
.chip.r-legendary::before { background: var(--r-legendary); }

/* Definition rows (glossary / faq) */
.deflist { border-top: 1px solid var(--line); margin: 28px 0; }
.defrow { border-bottom: 1px solid var(--line); padding: 20px 0; }
.defrow h3 { margin: 0 0 8px; font-size: 1.08rem; }
.defrow p { margin: 0; color: var(--text-dim); }

/* Two-column comparison (pros/cons style) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.split .col {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}
.split .col h3 { margin-top: 0; }
.split .col--good { border-top: 2px solid var(--teal); }
.split .col--bad  { border-top: 2px solid var(--danger); }
@media (max-width: 620px) { .split { grid-template-columns: 1fr; } }

/* Page navigation footer (prev / next) */
.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 50px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pager a {
  text-decoration: none;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 48%;
  transition: border-color .15s ease, color .15s ease;
}
.pager a:hover { color: var(--text); border-color: #34405A; }
.pager .dir { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 3px; }
.pager .ttl { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.pager a.next { text-align: right; margin-left: auto; }

/* ---------- Home hero + signature (ownership check) ----------------------- */
.hero { margin: 4px 0 10px; }
.hero .lede { max-width: 60ch; }

.ownership {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  margin: 30px 0 8px;
}
.ownership__head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px;
}
.ownership__body {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
}
.pane { padding: 22px; }
.pane__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.pane__cap { color: var(--text-faint); font-size: 0.84rem; margin: 14px 0 0; line-height: 1.5; }

/* left: the drawn cosmetic */
.skin-tile {
  border-radius: 10px;
  border: 1px solid rgba(147,133,240,0.5);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(147,133,240,0.30), transparent 60%),
    linear-gradient(160deg, #23213a, #14131f);
  padding: 18px;
  position: relative;
  box-shadow: 0 0 40px rgba(147,133,240,0.18);
}
.skin-tile .rare-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--r-epic); border: 1px solid rgba(147,133,240,0.55); border-radius: 5px;
  padding: 3px 8px; display: inline-block; margin-bottom: 30px;
}
.skin-tile .art {
  height: 66px; border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(147,133,240,0.7), rgba(95,208,196,0.35) 60%, rgba(233,180,76,0.5)),
    #1a1830;
  margin-bottom: 14px;
  box-shadow: inset 0 0 22px rgba(0,0,0,0.35);
}
.skin-tile .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.skin-tile .sub { color: var(--text-dim); font-size: 0.82rem; }

/* middle divider */
.pane--mid {
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--panel-2);
}
.neq {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--amber);
}

/* right: the server ledger */
.ledger {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #10131c;
  overflow: hidden;
}
.ledger .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
.ledger .row:last-child { border-bottom: 0; }
.ledger .k { color: var(--text-faint); }
.ledger .v { color: var(--text-dim); }
.ledger .v.no { color: var(--danger); }
.ledger .v.yes { color: var(--teal); }

.ownership__foot {
  border-top: 1px solid var(--line);
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.ownership__foot strong { color: var(--text); }

@media (max-width: 720px) {
  .ownership__body { grid-template-columns: 1fr; }
  .pane--mid { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
  .neq { transform: rotate(90deg); }
}

/* ---------- Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(21,26,36,0.5);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.site-footer p { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 10px; line-height: 1.6; }
.site-footer a { color: var(--text-dim); text-decoration: none; display: block; padding: 4px 0; font-size: 0.92rem; }
.site-footer a:hover { color: var(--text); }
.fill {
  color: var(--text-faint);
  border-bottom: 1px dashed var(--line);
  min-width: 120px;
  display: inline-block;
}
.site-footer__base {
  border-top: 1px solid var(--line);
  padding: 18px clamp(16px, 4vw, 40px);
  max-width: var(--maxw);
  margin: 0 auto;
  color: var(--text-faint);
  font-size: 0.8rem;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
@media (max-width: 980px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Focus + mobile ------------------------------------------------- */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 6px; }
  .sidebar__toggle { display: block; }
  .sidebar:not([open]) .toc { display: none; }
  .sidebar[open] .toc {
    display: block;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: var(--panel);
  }
}

/* =========================================================================
   Motion layer — modern transitions, scroll reveals, micro-interactions
   ========================================================================= */

/* Scroll progress bar (element injected by app.js) */
.scroll-progress{
  position: fixed; inset: 0 auto auto 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--teal));
  box-shadow: 0 0 12px rgba(233,180,76,.55);
  z-index: 60;
  transition: width .1s linear;
}

/* Page-load entrance for the heading block */
.js .content > .eyebrow,
.js .content > .page-title,
.js .content > .lede,
.js .hero > .eyebrow,
.js .hero > .page-title,
.js .hero > .lede{ animation: rise .8s var(--ease) both; }
.js .content > .page-title, .js .hero > .page-title{ animation-delay:.06s; }
.js .content > .lede,       .js .hero > .lede{ animation-delay:.13s; }
@keyframes rise{ from{ opacity:0; transform: translateY(20px); } to{ opacity:1; transform:none; } }

/* Scroll reveal — pre-hidden by selector (no flash before app.js runs) */
.js .content h2,
.js .content .ownership,
.js .content .callout,
.js .content .split,
.js .content .chips,
.js .content .pager,
.js .content hr.rule,
.js .content .defrow{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .content .card{ opacity: 0; }   /* cards fade only, keeping hover-lift free */

.js .content h2.is-in,
.js .content .ownership.is-in,
.js .content .callout.is-in,
.js .content .split.is-in,
.js .content .chips.is-in,
.js .content .pager.is-in,
.js .content hr.rule.is-in,
.js .content .defrow.is-in{ opacity:1; transform:none; }
.js .content .card.is-in{ opacity:1; }

/* Staggered cards — delay applied to opacity only so hover stays snappy */
.js .content .card-grid .card:nth-child(2){ transition-delay:0s,0s,0s,.07s; }
.js .content .card-grid .card:nth-child(3){ transition-delay:0s,0s,0s,.14s; }
.js .content .card-grid .card:nth-child(4){ transition-delay:0s,0s,0s,.21s; }
.js .content .card-grid .card:nth-child(5){ transition-delay:0s,0s,0s,.28s; }
.js .content .card-grid .card:nth-child(6){ transition-delay:0s,0s,0s,.35s; }

/* Micro-interactions */
.brand__mark{ transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.brand:hover .brand__mark{ transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 18px rgba(147,133,240,.45); }

.toc__link:hover{ transform: translateX(2px); }

a.card .card__go{ transition: transform .2s var(--ease), color .2s var(--ease); }
a.card:hover .card__go{ transform: translateX(4px); }

.pager a .ttl{ display:inline-block; transition: transform .2s var(--ease); }
.pager a.next:hover .ttl{ transform: translateX(4px); }
.pager a.prev:hover .ttl{ transform: translateX(-4px); }

.site-footer a{ transition: color .15s ease, transform .15s ease; }
.site-footer a:hover{ transform: translateX(2px); }

/* Animated cosmetic tile — a slow spectral shimmer, the "shiny lure" */
.skin-tile .art{
  background: linear-gradient(115deg, #9385F0, #5FD0C4 38%, #E9B44C 76%, #9385F0);
  background-size: 220% 220%;
  animation: shimmer 7s ease-in-out infinite;
  box-shadow: inset 0 0 22px rgba(0,0,0,.35);
}
@keyframes shimmer{ 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.skin-tile{ transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.ownership:hover .skin-tile{ box-shadow: 0 0 56px rgba(147,133,240,.28); }

/* Gentle pulse on the risk flags to draw the eye to the mismatch */
.ledger .v.no{ animation: pulseflag 3.4s ease-in-out infinite; }
@keyframes pulseflag{ 0%,100%{ opacity:1 } 50%{ opacity:.5 } }

/* Failsafe: if enhancement never runs, force everything visible */
.js.reveal-all .content h2,
.js.reveal-all .content .ownership,
.js.reveal-all .content .callout,
.js.reveal-all .content .split,
.js.reveal-all .content .chips,
.js.reveal-all .content .pager,
.js.reveal-all .content hr.rule,
.js.reveal-all .content .defrow,
.js.reveal-all .content .card{ opacity:1 !important; transform:none !important; }

/* Respect reduced-motion: no reveals, no ambient animation */
@media (prefers-reduced-motion: reduce){
  .js .content h2,
  .js .content .ownership,
  .js .content .callout,
  .js .content .split,
  .js .content .chips,
  .js .content .pager,
  .js .content hr.rule,
  .js .content .defrow,
  .js .content .card{ opacity:1 !important; transform:none !important; transition:none !important; }
  .js .content > .eyebrow, .js .content > .page-title, .js .content > .lede,
  .js .hero > .eyebrow, .js .hero > .page-title, .js .hero > .lede{ animation:none !important; }
  .skin-tile .art{ animation:none !important; }
  .ledger .v.no{ animation:none !important; }
  .scroll-progress{ display:none !important; }
}

/* =========================================================================
   Consent UI + legal/footer utilities
   ========================================================================= */

/* Cookie consent banner (injected by app.js) */
.cookie-banner{
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(880px, calc(100% - 28px));
  z-index: 70;
  background: rgba(21,26,36,.97);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  padding: 16px 18px;
  animation: cbrise .5s var(--ease) both;
}
@keyframes cbrise{ from{ opacity:0; transform: translate(-50%, 16px);} to{ opacity:1; transform: translate(-50%, 0);} }
.cookie-banner.is-hidden{ opacity:0; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .3s ease; pointer-events:none; }
.cookie-banner__body{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.cookie-banner__text{ margin:0; color: var(--text-dim); font-size:.92rem; line-height:1.55; flex:1 1 360px; }
.cookie-banner__text strong{ color: var(--text); }
.cookie-banner__text a{ color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions{ display:flex; gap:10px; flex:0 0 auto; }
.cbtn{
  font-family: var(--font-mono); font-size:.74rem; letter-spacing:.03em;
  padding:10px 16px; border-radius:8px; cursor:pointer;
  border:1px solid var(--line); background:transparent; color: var(--text-dim);
  transition: transform .15s var(--ease), border-color .15s ease, background .15s ease, color .15s ease;
}
.cbtn:hover{ transform: translateY(-1px); }
.cbtn--ghost:hover{ color: var(--text); border-color:#34405A; }
.cbtn--primary{ background: var(--amber); color:#1a1406; border-color: var(--amber); font-weight:500; }
.cbtn--primary:hover{ background:#f0c368; border-color:#f0c368; }

/* Footer button styled as a link (Manage cookies) */
.site-footer button.footer-link{
  background:none; border:0; padding:4px 0; margin:0;
  font: inherit; font-size:.92rem; color: var(--text-dim);
  cursor:pointer; display:block; text-align:left;
  transition: color .15s ease, transform .15s ease;
}
.site-footer button.footer-link:hover{ color: var(--text); transform: translateX(2px); }

/* Legal page typography niceties */
.legal-meta{
  font-family: var(--font-mono); font-size:.74rem; letter-spacing:.04em;
  color: var(--text-faint); margin:-10px 0 26px;
}
.legal-note{
  border:1px dashed var(--line); border-radius: var(--radius-sm);
  padding:14px 16px; color: var(--text-faint); font-size:.88rem; margin:26px 0;
}

@media (prefers-reduced-motion: reduce){
  .cookie-banner{ animation:none; }
  .cbtn, .site-footer button.footer-link{ transition:none; }
}
@media (max-width:560px){
  .cookie-banner__actions{ width:100%; }
  .cbtn{ flex:1; text-align:center; }
}
