/* ==========================================================================
   Highrise Creature Club — Player Council
   Design: Highrise Design System (dark-mode, Museo Sans Rounded)
   ========================================================================== */

/* ---------- FONTS ---------- */
@font-face { font-family: "Museo Sans"; src: url("../fonts/MuseoSans-500.otf") format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans"; src: url("../fonts/MuseoSans-700.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Museo Sans Rounded"; src: url("../fonts/MuseoSansRounded-500.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Museo Sans Rounded"; src: url("../fonts/MuseoSansRounded-700.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Museo Sans Rounded"; src: url("../fonts/MuseoSansRounded-900.otf") format("opentype"); font-weight: 900; font-display: swap; }

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --hr-primary:        #51FFA5;
  --hr-primary-25:     rgba(81,255,165,0.25);
  --hr-primary-press:  #3FE891;
  --hr-secondary:      #8561FF;
  --hr-secondary-25:   rgba(133,97,255,0.25);
  --hr-on-primary:     #0F1014;

  /* Functional */
  --hr-alert:          #FF5B95;
  --hr-alert-15:       rgba(255,91,149,0.15);
  --hr-online:         #64F2A9;
  --hr-destructive:    #EC3326;

  /* Tertiary */
  --hr-banana:         #FFF95F;
  --hr-banana-25:      rgba(255,249,95,0.25);
  --hr-blueberry:      #0DA6FC;
  --hr-tangerine:      #FF9900;

  /* Neutrals — Fishbase scale */
  --hr-whitefish:  #EFEDFF;
  --hr-bonito:     #CCCADC;
  --hr-mackerel:   #A8A7B5;
  --hr-anchovy:    #7D7C88;
  --hr-salmon:     #575660;
  --hr-tuna:       #3F3E46;
  --hr-catfish:    #28272D;
  --hr-eelfish:    #1B191F;
  --hr-eel:        #141317;
  --hr-blackfish:  #010104;

  /* Semantic surfaces */
  --hr-bg-0: var(--hr-blackfish);
  --hr-bg-1: var(--hr-eel);
  --hr-bg-2: var(--hr-eelfish);
  --hr-bg-3: var(--hr-catfish);
  --hr-bg-4: var(--hr-tuna);
  --hr-line:        rgba(255,255,255,0.08);
  --hr-line-strong: rgba(255,255,255,0.14);

  /* Foreground */
  --hr-fg-0: var(--hr-whitefish);
  --hr-fg-1: var(--hr-bonito);
  --hr-fg-2: var(--hr-mackerel);
  --hr-fg-3: var(--hr-anchovy);
  --hr-fg-4: var(--hr-salmon);

  /* Radii */
  --hr-radius-xs:   4px;
  --hr-radius-sm:   8px;
  --hr-radius-md:   12px;
  --hr-radius-lg:   16px;
  --hr-radius-xl:   20px;
  --hr-radius-2xl:  28px;
  --hr-radius-pill: 9999px;

  /* Shadows */
  --hr-shadow-1:    0 1px 2px rgba(0,0,0,0.35);
  --hr-shadow-2:    0 6px 18px rgba(0,0,0,0.45);
  --hr-shadow-3:    0 16px 40px rgba(0,0,0,0.55);
  --hr-shadow-btn:  0 4px 0 rgba(0,0,0,0.25);
  --hr-shadow-press: inset 0 2px 6px rgba(0,0,0,0.35);
  --hr-glow-green:  0 0 28px rgba(81,255,165,0.3);
  --hr-glow-purple: 0 0 28px rgba(133,97,255,0.35);

  /* Spacing */
  --hr-space-1:  4px;  --hr-space-2:  8px;  --hr-space-3:  12px;
  --hr-space-4:  16px; --hr-space-5:  20px; --hr-space-6:  24px;
  --hr-space-8:  32px; --hr-space-10: 40px; --hr-space-12: 48px;

  /* Type stacks */
  --hr-sans: "Museo Sans Rounded", "Nunito", system-ui, sans-serif;
  --hr-body: "Museo Sans", "Nunito Sans", system-ui, sans-serif;
  --hr-tracking-caps:  0.08em;
  --hr-tracking-tight: -0.01em;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--hr-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  background: var(--hr-bg-1);
  color: var(--hr-fg-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- LAYOUT ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 22px; }
section { padding: 40px 0; }
/* `.wrap` (a class) out-specifies `section` and would zero the vertical padding
   on `<section class="wrap">`; restore it at matching specificity. */
section.wrap { padding-top: 40px; padding-bottom: 40px; }
p + p { margin-top: 14px; }
strong { font-weight: 700; color: var(--hr-fg-0); }
a { color: var(--hr-primary); text-decoration: none; font-weight: 700; }
a:hover { color: var(--hr-primary-press); }

/* ---------- BACKGROUND ACCENTS (solid fills only — no gradients) ---------- */
.blob {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: -1;
  animation: float 9s ease-in-out infinite;
}
.blob.b1 { width: 260px; height: 260px; background: var(--hr-primary-25);  top: 6%;  left: -90px;  animation-delay: 0s;   }
.blob.b2 { width: 200px; height: 200px; background: var(--hr-secondary-25); top: 42%; right: -70px; animation-delay: 1.5s; }
.blob.b3 { width: 160px; height: 160px; background: var(--hr-alert-15);     top: 74%; left: 2%;     animation-delay: 3s;   }
@keyframes float { 0%,100%{transform:translateY(0) rotate(-3deg)} 50%{transform:translateY(-24px) rotate(3deg)} }

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--hr-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: var(--hr-tracking-caps);
  text-transform: uppercase;
  color: var(--hr-fg-3);
  margin-bottom: 10px;
}
h1 {
  font: 900 clamp(2.5rem,8vw,4.6rem)/1.0 var(--hr-sans);
  letter-spacing: var(--hr-tracking-tight);
  color: var(--hr-fg-0);
  margin-bottom: 8px;
}
h2 {
  font: 900 clamp(1.6rem,4.5vw,2.4rem)/1.1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-tight);
  color: var(--hr-fg-0);
  margin-bottom: 14px;
}
h3 { font: 700 18px/1.25 var(--hr-sans); color: var(--hr-fg-0); }
h4 { font: 700 15px/1.3 var(--hr-sans); color: var(--hr-fg-0); margin-bottom: 4px; }
p  { font: 500 15px/1.45 var(--hr-body); color: var(--hr-fg-1); }
.lead { font-size: 17px; line-height: 1.4; color: var(--hr-fg-1); max-width: 660px; }

/* ---------- HERO ---------- */
header { padding: 70px 0 50px; text-align: center; position: relative; }
.kicker {
  display: inline-block;
  font-family: var(--hr-sans); font-weight: 700;
  font-size: 11px; letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  background: var(--hr-bg-3); color: var(--hr-primary);
  border: 1px solid var(--hr-line-strong);
  padding: 8px 18px; border-radius: var(--hr-radius-pill);
  margin-bottom: 22px;
}
h1 .pop { color: var(--hr-primary); }
.sub {
  font: 500 clamp(1rem,2.4vw,1.2rem)/1.4 var(--hr-body);
  max-width: 600px; margin: 18px auto 0;
  color: var(--hr-fg-2);
}

/* ---------- PETS ---------- */
.mascot-row { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 38px 0 0; flex-wrap: wrap; }
.pet-wrap { width: 84px; height: 100px; animation: bob 3s ease-in-out infinite; cursor: pointer; }
.pet-wrap:nth-child(2){animation-delay:.3s}
.pet-wrap:nth-child(3){animation-delay:.6s}
.pet-wrap:nth-child(4){animation-delay:.9s}
.pet-wrap object, .pet-wrap svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.pet-wrap.is-jumping{animation:pet-jump .55s cubic-bezier(.28,.84,.42,1) !important}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes pet-jump{0%{transform:translateY(0)}20%{transform:translateY(-20px)}45%{transform:translateY(-24px)}68%{transform:translateY(3px)}82%{transform:translateY(-8px)}100%{transform:translateY(0)}}

/* ---------- NAV TABS ---------- */
.page-tabs {
  position: sticky; top: 0; z-index: 20;
  padding: 12px 0 14px;
  background: rgba(20,19,23,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hr-line);
}
.page-nav-bar { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tab-list { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.page-tab {
  min-width: 120px; min-height: 44px;
  border: 1px solid var(--hr-line-strong);
  border-radius: var(--hr-radius-pill);
  background: var(--hr-bg-3); color: var(--hr-fg-2);
  font: 700 13px/1 var(--hr-sans);
  box-shadow: var(--hr-shadow-btn);
  cursor: pointer;
  transition: transform .15s cubic-bezier(.2,0,0,1), box-shadow .15s, background .12s, color .12s;
}
.page-tab:hover { background: var(--hr-bg-4); color: var(--hr-fg-0); }
.page-tab:active { transform: scale(0.96); box-shadow: var(--hr-shadow-press); }
.page-tab.is-active {
  background: var(--hr-primary); color: var(--hr-on-primary);
  border-color: transparent; font-weight: 900;
  box-shadow: var(--hr-shadow-btn);
  transform: scale(1.04);
}
.tab-panel[hidden] { display: none; }
.roadmap-panel { padding: 18px 0 10px; }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-btn {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 5px 12px; min-height: 30px;
  border: 1px solid var(--hr-line-strong); border-radius: var(--hr-radius-pill);
  background: var(--hr-bg-3); color: var(--hr-fg-3);
  cursor: pointer; transition: background .12s, color .12s;
}
.lang-btn:hover { background: var(--hr-bg-4); color: var(--hr-fg-0); }
.lang-btn.is-active { background: var(--hr-secondary); color: #fff; border-color: transparent; }

/* ---------- SECTIONS ---------- */
.divider { text-align: center; font-size: 1.2rem; letter-spacing: .5em; color: var(--hr-fg-4); padding: 8px 0; }

/* ---------- CARD ---------- */
.card {
  background: var(--hr-bg-2);
  border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-xl);
  padding: 28px 26px;
  box-shadow: var(--hr-shadow-2);
}
.card.tilt, .card.tilt2 { transform: none; }

/* ---------- PERKS ---------- */
.perks { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 14px; margin-top: 26px; }
.perk {
  background: var(--hr-bg-3); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 20px;
  box-shadow: var(--hr-shadow-1);
}
.perk .ico { font-size: 1.7rem; display: block; margin-bottom: 8px; }
.perk h4 { font: 700 15px/1.3 var(--hr-sans); color: var(--hr-fg-0); margin-bottom: 4px; }
.perk p  { font-size: 13px; color: var(--hr-fg-2); }

/* ---------- TIMELINE ---------- */
.timeline { margin-top: 30px; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute;
  left: 9px; top: 8px; bottom: 8px; width: 3px;
  background: var(--hr-bg-4); border-radius: 4px;
}
.tnode { position: relative; margin-bottom: 26px; }
.tnode::before {
  content: ""; position: absolute; left: -34px; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--hr-bg-4); border: 3px solid var(--hr-bg-3);
}
.tnode.now::before { background: var(--hr-primary); border-color: var(--hr-primary-25); animation: pulse 1.8s infinite; }
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(81,255,165,.45)}50%{box-shadow:0 0 0 8px rgba(81,255,165,0)}}
.tyear {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-primary); margin-bottom: 3px;
}
.tnode h4 { font: 700 16px/1.3 var(--hr-sans); color: var(--hr-fg-0); margin: 3px 0 5px; }
.tnode p  { font-size: 14px; color: var(--hr-fg-2); }

/* ---------- HONEST BOX ---------- */
.honest {
  background: var(--hr-bg-3);
  border: 1px solid var(--hr-line-strong);
  border-left: 3px solid var(--hr-primary);
  border-radius: var(--hr-radius-2xl);
  padding: 34px 30px;
  position: relative; overflow: hidden;
  box-shadow: var(--hr-glow-green);
}
.honest::after { content: "🫧"; position: absolute; font-size: 8rem; right: -10px; bottom: -30px; opacity: .07; }
.honest .eyebrow { color: var(--hr-primary); }
.honest h2 { color: var(--hr-primary); }
.honest p  { color: var(--hr-fg-2); font-size: 16px; line-height: 1.6; }

/* ---------- COUNCIL VIZ ---------- */
.council-vis { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.seat {
  flex: 1 1 180px; max-width: 230px; min-width: 0;
  padding: 18px 14px;
  border-radius: var(--hr-radius-lg); border: 1px solid var(--hr-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 700 11px/1.4 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase; text-align: center;
  box-shadow: var(--hr-shadow-2);
}
.seat.elected   { background: var(--hr-primary);   color: var(--hr-on-primary); border-color: transparent; }
.seat.appointed { background: var(--hr-secondary);  color: #fff;               border-color: transparent; }
.seat .big { font: 900 28px/1 var(--hr-sans); display: block; margin-bottom: 6px; }
.seat .seat-label { display: block; max-width: 100%; }
.legend { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--hr-fg-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 14px; height: 14px; border-radius: var(--hr-radius-xs); }
.dot.e { background: var(--hr-primary);   }
.dot.a { background: var(--hr-secondary); }

/* ---------- FACTS STRIP ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin-top: 26px; }
.fact {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 18px; text-align: center;
  box-shadow: var(--hr-shadow-1);
}
.fact .n { font: 900 28px/1 var(--hr-sans); color: var(--hr-primary); }
.fact .l { font: 700 11px/1.3 var(--hr-sans); letter-spacing: var(--hr-tracking-caps); text-transform: uppercase; color: var(--hr-fg-3); margin-top: 6px; }

/* ---------- RIGHTS TABLE ---------- */
.rights { margin-top: 26px; display: grid; gap: 8px; }
.right-row {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-md); padding: 14px 18px;
  box-shadow: var(--hr-shadow-1);
}
.right-row span:first-child { font-weight: 500; font-size: 14px; color: var(--hr-fg-1); }
.tag {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--hr-radius-pill); white-space: nowrap;
}
.tag.decides  { background: var(--hr-primary);    color: var(--hr-on-primary); }
.tag.advises  { background: var(--hr-secondary-25); color: var(--hr-secondary); border: 1px solid var(--hr-secondary); }
.tag.informed { background: var(--hr-bg-4);         color: var(--hr-fg-2); }

/* ---------- FAQ ---------- */
details {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); margin-top: 10px;
  overflow: hidden; box-shadow: var(--hr-shadow-1);
  transition: border-color .15s;
}
details[open] { border-color: var(--hr-line-strong); }
summary {
  padding: 18px 22px;
  font: 700 15px/1 var(--hr-sans); color: var(--hr-fg-0);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--hr-primary); transition: transform .2s cubic-bezier(.2,0,0,1); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 22px 20px; color: var(--hr-fg-2); font-size: 14px; line-height: 1.6; }

/* ---------- FOOTER ---------- */
footer { text-align: center; padding: 56px 0 70px; border-top: 1px solid var(--hr-line); }
.footer-creature {
  width: 110px; height: 110px; margin: 0 auto 20px;
  border-radius: 50% 50% 46% 54%/58% 58% 42% 42%;
  background: var(--hr-primary);
  position: relative; box-shadow: var(--hr-shadow-3);
  animation: bob 3s ease-in-out infinite;
}
.footer-creature .eyes { position: absolute; top: 34%; width: 100%; display: flex; justify-content: center; gap: 18px; }
.footer-creature .eyes span { width: 14px; height: 18px; background: #0d0b10; border-radius: 50%; position: relative; }
.footer-creature .eyes span::after { content: ""; position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; top: 3px; left: 3px; }
.footer-creature .mouth { position: absolute; top: 60%; left: 50%; transform: translateX(-50%); width: 24px; height: 13px; border-bottom: 4px solid #0d0b10; border-radius: 0 0 14px 14px; }
footer h2 { color: var(--hr-fg-0); }
footer p  { color: var(--hr-fg-2); font-size: 14px; max-width: 420px; margin: 10px auto 0; }
.stamp {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-4); margin-top: 24px;
}
.draft {
  display: inline-block; margin-top: 8px;
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  background: var(--hr-bg-3); color: var(--hr-fg-2);
  border: 1px solid var(--hr-line-strong);
  padding: 5px 14px; border-radius: var(--hr-radius-pill);
}

/* ---------- HOLDERS TAB ---------- */
.holders-state { text-align: center; padding: 60px 20px; color: var(--hr-fg-2); }
.holders-spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--hr-bg-4); border-top-color: var(--hr-primary);
  border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 20px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.chart-container { max-width: 460px; margin: 32px auto 0; }
.dist-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin-top: 28px; }
.dist-card {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 22px 20px;
  box-shadow: var(--hr-shadow-1);
}
.dist-card .eyebrow { margin-bottom: 14px; }
.holders-updated {
  text-align: center; font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-3); margin-top: 24px;
}
.stale-badge {
  display: inline-block; font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  background: var(--hr-banana); color: var(--hr-on-primary);
  padding: 2px 10px; border-radius: var(--hr-radius-pill);
  margin-left: 8px; vertical-align: middle;
  animation: pulse 1.8s infinite;
}

/* ---------- CHANGELOG ---------- */
.changelog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
@media(max-width:640px){.changelog-grid{grid-template-columns:1fr}}
.cl-col-title { font: 700 20px/1.2 var(--hr-sans); color: var(--hr-fg-0); margin-bottom: 16px; margin-top: 4px; }
.cl-entry {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 16px 18px;
  box-shadow: var(--hr-shadow-1); margin-bottom: 10px;
}
.cl-date {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-3); margin-bottom: 4px;
}
.cl-title  { font: 700 14px/1.3 var(--hr-sans); color: var(--hr-fg-0); margin-bottom: 4px; }
.cl-body   { font-size: 13px; color: var(--hr-fg-2); line-height: 1.5; }
.cl-tag {
  display: inline-block; font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--hr-radius-pill); margin-top: 8px;
}
.cl-tag.announcement { background: var(--hr-secondary);  color: #fff;               }
.cl-tag.update        { background: var(--hr-primary);    color: var(--hr-on-primary);}
.cl-tag.drop          { background: var(--hr-alert);      color: #fff;               }
.cl-tag.council       { background: var(--hr-banana);     color: var(--hr-on-primary);}
.cl-tag.fix           { background: var(--hr-bg-4);       color: var(--hr-fg-1);      }
.cl-empty { color: var(--hr-fg-3); font-style: italic; font-size: 13px; padding: 10px 0; }
.cl-order-hint {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-3); margin: 6px 0 22px;
}
.cl-order-hint::before { content: "↓ "; }
.cl-latest-badge {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 2px 8px; border-radius: var(--hr-radius-pill);
  background: var(--hr-primary); color: var(--hr-on-primary);
  margin-left: 8px; vertical-align: middle;
}

/* ---------- ROADMAP ---------- */
.rm-track { margin-top: 30px; position: relative; padding-left: 48px; }
.rm-track::before {
  content: ""; position: absolute;
  left: 13px; top: 16px; bottom: 16px; width: 3px;
  background: var(--hr-bg-4); border-radius: 4px;
}
.rm-item { position: relative; margin-bottom: 20px; }
.rm-dot {
  position: absolute; left: -48px; top: 16px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--hr-bg-4); border: 3px solid var(--hr-bg-3);
  box-shadow: var(--hr-shadow-1); z-index: 1;
}
.rm-item.rm-now  .rm-dot { background: var(--hr-primary);   border-color: var(--hr-primary-25);   animation: pulse 1.8s infinite; }
.rm-item.rm-next .rm-dot { background: var(--hr-secondary); border-color: var(--hr-secondary-25); }
.rm-item.rm-soon .rm-dot { background: var(--hr-alert);     border-color: var(--hr-alert-15);     }
.rm-item.rm-later .rm-dot,
.rm-item.rm-goal  .rm-dot { background: var(--hr-banana);   border-color: var(--hr-banana-25);    }
.rm-card {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-xl); padding: 20px 22px 18px;
  box-shadow: var(--hr-shadow-1);
}
.rm-item.rm-now .rm-card  { border-color: rgba(81,255,165,.2); box-shadow: 0 0 0 1px rgba(81,255,165,.1), var(--hr-shadow-2); }
.rm-item.rm-goal .rm-card { background: var(--hr-primary);     border-color: transparent; box-shadow: var(--hr-shadow-2), var(--hr-glow-green); }
.rm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rm-emoji { font-size: 1.8rem; line-height: 1; margin-top: 2px; }
.rm-badge {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--hr-radius-pill); white-space: nowrap;
}
.rm-badge-now   { background: var(--hr-primary);   color: var(--hr-on-primary); }
.rm-badge-next  { background: var(--hr-secondary); color: #fff; }
.rm-badge-soon  { background: var(--hr-alert);     color: #fff; }
.rm-badge-later { background: var(--hr-bg-4);      color: var(--hr-fg-1); }
.rm-badge-goal  { background: var(--hr-on-primary); color: var(--hr-primary); }
.rm-cat {
  display: inline-block; font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--hr-radius-pill); margin-bottom: 8px;
}
.rm-cat-content    { background: var(--hr-alert-15);     color: var(--hr-alert);     }
.rm-cat-governance { background: var(--hr-secondary-25); color: var(--hr-secondary); }
.rm-cat-utility    { background: var(--hr-primary-25);   color: var(--hr-primary);   }
.rm-cat-product    { background: var(--hr-banana-25);    color: var(--hr-banana);    }
.rm-item.rm-goal .rm-cat  { background: rgba(0,0,0,.18); color: var(--hr-on-primary); }
.rm-title { font: 700 16px/1.25 var(--hr-sans); color: var(--hr-fg-0); margin-bottom: 6px; }
.rm-item.rm-goal .rm-title { color: var(--hr-on-primary); }
.rm-desc { font-size: 13px; color: var(--hr-fg-2); line-height: 1.5; }
.rm-item.rm-goal .rm-desc  { color: rgba(15,16,20,.7); }
.rm-note {
  margin-top: 28px; text-align: center;
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-3);
}

/* ---------- GUIDES ---------- */
.guide-track { margin-top: 32px; display: grid; gap: 20px; }
.guide-card {
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-xl); padding: 24px 24px 22px;
  box-shadow: var(--hr-shadow-1);
}
.guide-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.guide-num {
  flex: none; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--hr-primary); color: var(--hr-on-primary);
  font: 900 20px/1 var(--hr-sans);
  box-shadow: var(--hr-shadow-btn);
}
.guide-tag {
  display: inline-block; font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-secondary); background: var(--hr-secondary-25);
  padding: 4px 10px; border-radius: var(--hr-radius-pill); margin-bottom: 6px;
}
.guide-title { font: 700 18px/1.2 var(--hr-sans); color: var(--hr-fg-0); }
.guide-intro { font-size: 14px; color: var(--hr-fg-2); line-height: 1.55; }

/* video embed slot — responsive 16:9 */
.guide-video {
  position: relative; margin: 18px 0;
  aspect-ratio: 16 / 9; width: 100%;
  background: var(--hr-bg-0);
  border: 1px solid var(--hr-line); border-radius: var(--hr-radius-lg);
  overflow: hidden;
}
.guide-video iframe, .guide-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.guide-video-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--hr-fg-3);
  font: 700 12px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
}
.gv-play {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--hr-bg-3); border: 1px solid var(--hr-line-strong);
  color: var(--hr-primary); font-size: 18px; padding-left: 4px;
}

/* numbered step list */
.guide-steps { list-style: none; counter-reset: gstep; display: grid; gap: 12px; margin-top: 4px; }
.guide-steps li {
  position: relative; counter-increment: gstep;
  padding: 12px 16px 12px 48px;
  background: var(--hr-bg-3); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-md);
  font-size: 14px; line-height: 1.5; color: var(--hr-fg-1);
}
.guide-steps li::before {
  content: counter(gstep);
  position: absolute; left: 12px; top: 12px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--hr-bg-4); color: var(--hr-primary);
  font: 900 12px/1 var(--hr-sans);
}
.guide-note {
  margin-top: 14px; padding: 12px 16px;
  background: var(--hr-alert-15); border-left: 3px solid var(--hr-alert);
  border-radius: var(--hr-radius-sm);
  font-size: 13px; line-height: 1.5; color: var(--hr-fg-1);
}

/* anchors for smooth-scroll under the sticky (two-row) tab bar */
#guides-top, #council-top { scroll-margin-top: 124px; }

/* ---------- LANDING HUB ---------- */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.hub-card {
  position: relative; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 20px 20px 22px;
  box-shadow: var(--hr-shadow-1); cursor: pointer;
  font-family: var(--hr-sans);
  transition: transform .15s cubic-bezier(.2,0,0,1), box-shadow .15s, border-color .15s;
}
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--hr-shadow-2); border-color: var(--hr-line-strong); }
.hub-card:active { transform: scale(0.98); }
.hub-ico { font-size: 1.8rem; line-height: 1; margin-bottom: 6px; }
.hub-t { font: 900 18px/1.1 var(--hr-sans); color: var(--hr-fg-0); }
.hub-d { font: 500 13px/1.4 var(--hr-body); color: var(--hr-fg-2); }
.hub-arrow { position: absolute; top: 18px; right: 18px; color: var(--hr-primary); font: 900 16px/1 var(--hr-sans); transition: transform .15s cubic-bezier(.2,0,0,1); }
.hub-card:hover .hub-arrow { transform: translateX(3px); }

/* ---------- GUIDES SUB-TABS ---------- */
.guide-subnav {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 6px; padding-bottom: 6px;
}
.guide-subtab {
  min-height: 40px; padding: 9px 18px;
  border: 1px solid var(--hr-line-strong); border-radius: var(--hr-radius-pill);
  background: var(--hr-bg-3); color: var(--hr-fg-2);
  font: 700 13px/1 var(--hr-sans); cursor: pointer;
  transition: transform .15s cubic-bezier(.2,0,0,1), background .12s, color .12s;
}
.guide-subtab:hover { background: var(--hr-bg-4); color: var(--hr-fg-0); }
.guide-subtab:active { transform: scale(0.96); }
.guide-subtab.is-active { background: var(--hr-primary); color: var(--hr-on-primary); border-color: transparent; font-weight: 900; }
.guide-subpanel[hidden] { display: none; }
.guide-subpanel > section:first-child { padding-top: 26px; }

/* ---------- USEFUL LINKS ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--hr-bg-2); border: 1px solid var(--hr-line);
  border-radius: var(--hr-radius-lg); padding: 16px 18px;
  box-shadow: var(--hr-shadow-1);
  transition: transform .15s cubic-bezier(.2,0,0,1), box-shadow .15s, border-color .15s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--hr-shadow-2); border-color: var(--hr-line-strong); }
.link-ico { font-size: 1.6rem; flex: none; }
.link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.link-title { font: 700 15px/1.2 var(--hr-sans); color: var(--hr-fg-0); }
.link-desc { font-size: 13px; color: var(--hr-fg-2); }
.link-arrow { flex: none; color: var(--hr-primary); font-size: 1.1rem; font-weight: 900; transition: transform .15s cubic-bezier(.2,0,0,1); }
.link-card:hover .link-arrow { transform: translate(2px, -2px); }

/* ---------- BRAND LOGO CHIPS ---------- */
/* Real brand logos sit on a small white tile so any mark — including dark ones
   like the TokenTrove and ETH glyphs — reads clearly on the dark surface. */
.brand-ico {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--hr-radius-md);
  padding: 7px; box-shadow: var(--hr-shadow-1);
}
.brand-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.perk .brand-ico { margin-bottom: 10px; }

/* ---------- FOOTER LINKS ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 24px 0 4px; }
.footer-links a {
  font: 700 11px/1 var(--hr-sans);
  letter-spacing: var(--hr-tracking-caps); text-transform: uppercase;
  color: var(--hr-fg-3);
}
.footer-links a:hover { color: var(--hr-primary); }

/* ---------- SECTION-TRANSITION PADDING ---------- */
.tab-panel > section:last-child { padding-bottom: 52px; }
.guide-subpanel > section:last-child { padding-bottom: 44px; }
footer { margin-top: 28px; }

/* ---------- RESPONSIVE ---------- */
@media(max-width:560px){
  .guide-card{padding:20px 18px}
  .guide-num{width:38px;height:38px;font-size:17px}
  .guide-steps li{padding:12px 14px 12px 44px}
  .guide-subnav{gap:6px}
  .guide-subtab{padding:8px 14px;font-size:12px}
  .hub{grid-template-columns:1fr 1fr;gap:10px}
}
@media(max-width:560px){
  .card{padding:22px 18px}
  .council-vis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
  .seat{width:100%;max-width:none;padding:14px 8px}
  .right-row{grid-template-columns:1fr;gap:8px}
}
@media(max-width:380px){.council-vis{grid-template-columns:1fr}}
