/* ============================================================
   10boot OSRS Content Hub — styles.css  (v2 redesign)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #0d0b08;
  --surface:     #131008;
  --surface-2:   #1a1509;
  --surface-3:   #22190c;
  --surface-4:   #2b2010;

  /* Borders */
  --bdr-subtle:  #1c1509;
  --bdr-mid:     #3a2a0e;
  --bdr-gold:    #7a5e22;
  --bdr-bright:  #a07830;

  /* Gold palette */
  --gold:        #c8982e;  /* ~7:1 vs bg — CTAs, links, active            */
  --gold-bright: #e8b840;  /* ~12:1 vs bg — headlines, highlights         */
  --gold-dim:    #a88030;  /* ~5.5:1 vs bg — was #78581e (3:1, fixed)     */
  --gold-glow:   rgba(200, 152, 46, 0.18);

  /* Text */
  --text-hi:     #ecdcaa;  /* ~14:1 vs bg — headings, card titles        */
  --text:        #b4976a;  /*  ~7:1 vs bg — body copy                    */
  --text-mid:    #b08848;  /*  ~5.7:1 vs bg — was #8a6e44 (3.6:1, fixed) */
  --text-low:    #887030;  /*  ~4:1 vs bg  — was #52401e (1.7:1, fixed)  */

  /* Status */
  --green:       #5ea030;  /* ~6:1 vs bg   — Beginner badges ✅           */
  --orange:      #c87828;  /* ~5.7:1 vs bg — Intermediate badges ✅       */
  --red:         #c84848;  /* ~3.9:1 vs bg — was #9e2828 (2.5:1, fixed)  */

  /* Layout */
  --max-w:       1260px;
  --radius:      6px;
  --radius-lg:   10px;

  /* Transitions */
  --t-fast:      0.14s ease;
  --t-med:       0.22s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  min-height: 100vh;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 17px;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle noise texture overlay instead of grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── HEADER ────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(13, 11, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr-subtle);
  box-shadow:
    0 1px 0 rgba(122, 92, 40, 0.12),
    0 4px 24px rgba(0, 0, 0, 0.7);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}

/* Logo */
.site-logo {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity var(--t-fast);
}
.site-logo:hover { opacity: 1; }

.site-logo img {
  height: 42px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

/* Navigation */
nav { display: flex; align-items: center; gap: 4px; }

.tab-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  color: var(--text-mid);
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--t-med), transform var(--t-med);
}

.tab-btn:hover {
  color: var(--text-hi);
  background: rgba(200, 152, 46, 0.06);
}

.tab-btn.active {
  color: var(--gold-bright);
  background: rgba(200, 152, 46, 0.08);
}

.tab-btn.active::after,
.tab-btn:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all var(--t-med);
}

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--bdr-subtle);
  padding: 7px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: runTicker 42s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.t-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 52px;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
}

.t-gem {
  width: 4px; height: 4px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
}

@keyframes runTicker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── MAIN / TABS ───────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px 100px;
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: tabIn 0.2s ease;
}

@keyframes tabIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HERO ───────────────────────────────────────────────── */
.hero-banner {
  margin: 0 -32px;
  position: relative;
  padding: 80px 32px 72px;
  text-align: center;
  overflow: hidden;
  /* Atmospheric dark background with subtle gold centre glow */
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%,
      rgba(180, 130, 30, 0.07) 0%,
      rgba(13, 11, 8, 0.0) 70%),
    linear-gradient(180deg, #0d0b08 0%, #110e09 50%, #0d0b08 100%);
}

/* Faint horizontal rule top */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bdr-gold), transparent);
  pointer-events: none;
}

/* Bottom fade into page */
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

/* Bottom gold line */
.hero-rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-logo {
  height: 130px;
  width: auto;
  /* screen blend makes the black JPG background invisible against the dark page */
  mix-blend-mode: screen;
  filter:
    brightness(1.15)
    drop-shadow(0 0 32px rgba(200, 152, 46, 0.4))
    drop-shadow(0 0 10px rgba(200, 152, 46, 0.25));
  margin-bottom: 24px;
}

.hero-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-hi);
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow:
    0 0 30px rgba(200, 152, 46, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.9);
  margin-bottom: 14px;
}

.hero-headline em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-sub {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(200, 152, 46, 0.25), rgba(200, 152, 46, 0.12));
  border: 1px solid var(--bdr-bright);
  border-radius: var(--radius);
  color: var(--gold-bright);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-med);
  box-shadow:
    0 0 0 1px rgba(200, 152, 46, 0.08) inset,
    0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(200, 152, 46, 0.34), rgba(200, 152, 46, 0.18));
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(200, 152, 46, 0.15) inset,
    0 6px 24px rgba(200, 152, 46, 0.18);
}

.btn-ghost {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bdr-mid);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-med);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--bdr-gold);
  color: var(--text-hi);
  transform: translateY(-1px);
}

/* Gem divider */
.gem-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}
.gem-row::before,
.gem-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--bdr-gold);
  opacity: 0.4;
}
.gem-diamond {
  width: 7px; height: 7px;
  background: var(--gold-dim);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(200, 152, 46, 0.5);
}

/* ── SECTION LABELS ─────────────────────────────────────── */
.sec-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--bdr-mid), transparent);
}

/* ── PAGE SUB-HERO ─────────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 52px 0 40px;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--bdr-gold), transparent);
}

.page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text-hi);
  letter-spacing: 0.06em;
  text-shadow:
    0 0 24px rgba(200, 152, 46, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.8);
}

.page-tag {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--text-mid);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ── CARD BASE ──────────────────────────────────────────── */
.card-base {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
  position: relative;
  overflow: hidden;
}

.card-base:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(122, 94, 34, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(200, 152, 46, 0.06);
}

/* Top-edge gold accent on hover */
.card-base::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.card-base:hover::before { opacity: 1; }

/* ── NEWS CARDS ─────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.news-card {
  composes: card-base;
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.news-card:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(200, 152, 46, 0.06);
}
.news-card:hover::before { opacity: 1; }

.n-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 12px;
}
.n-tag.video     { background: rgba(200, 120, 40, 0.12); color: #d08040; border: 1px solid rgba(200, 120, 40, 0.28); }
.n-tag.update    { background: rgba(80, 160, 48, 0.1);  color: #72b848; border: 1px solid rgba(80, 160, 48, 0.28); }
.n-tag.community { background: rgba(200, 152, 46, 0.1); color: var(--gold); border: 1px solid rgba(200, 152, 46, 0.25); }
.n-tag.event     { background: rgba(158, 40, 40, 0.1);  color: var(--red); border: 1px solid rgba(200, 72, 72, 0.28); }

.n-title {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 8px;
  line-height: 1.35;
}
.n-body {
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.55;
}
.n-date {
  font-size: 0.78rem;
  color: var(--text-low);
  margin-top: 12px;
  font-style: italic;
}

/* ── VIDEO ──────────────────────────────────────────────── */
.video-section { margin-bottom: 56px; }

.video-frame {
  background: var(--surface);
  border: 1px solid var(--bdr-mid);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(122, 94, 34, 0.1);
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border-radius: calc(var(--radius-lg) - 4px);
  border: none;
}

/* ── SERVICES GRID ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 10px;
  margin-bottom: 56px;
}

.svc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-mid);
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all var(--t-fast);
}
.svc-link:hover {
  color: var(--text-hi);
  border-color: var(--bdr-gold);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 152, 46, 0.07);
}
.svc-ico { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* ── SOCIALS ─────────────────────────────────────────────── */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.soc-card {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.soc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.soc-card:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 152, 46, 0.06);
}
.soc-card:hover::before { opacity: 1; }

.soc-icon { font-size: 2.4rem; line-height: 1; margin-bottom: 4px; }
.soc-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
}
.soc-handle { font-size: 0.9rem; color: var(--text-mid); }
.soc-cta {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}
.soc-card:hover .soc-cta { color: var(--gold-bright); }
.soc-cta::after { content: '›'; font-size: 1.1rem; line-height: 0.8; }

/* ── GUIDE FILTERS ─────────────────────────────────────── */
.guide-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: 100px;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--t-fast);
}
.cat-btn:hover {
  background: var(--surface-2);
  border-color: var(--bdr-mid);
  color: var(--text);
}
.cat-btn.active {
  background: rgba(200, 152, 46, 0.1);
  border-color: var(--bdr-gold);
  color: var(--gold);
}

/* ── GUIDE CARDS ─────────────────────────────────────────── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  z-index: 2;
  transition: opacity var(--t-med);
}
.guide-card:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6), 0 0 24px rgba(200, 152, 46, 0.07);
}
.guide-card:hover::before { opacity: 1; }

.guide-thumb {
  height: 110px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bdr-subtle);
  position: relative;
  overflow: hidden;
}
.guide-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(145deg, transparent 55%, rgba(200, 152, 46, 0.04));
}
.guide-thumb-ico {
  font-size: 2.6rem;
  opacity: 0.7;
  position: relative;
  z-index: 1;
  transition: transform var(--t-med), opacity var(--t-med);
}
.guide-card:hover .guide-thumb-ico {
  transform: scale(1.1);
  opacity: 0.9;
}

.guide-body { padding: 14px 16px 16px; }

.g-diff {
  font-family: 'Cinzel', serif;
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.g-diff.easy   { color: var(--green); }
.g-diff.mid    { color: var(--orange); }
.g-diff.hard   { color: var(--red); }

.g-title {
  font-family: 'Cinzel', serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 6px;
  line-height: 1.3;
}
.g-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.45; }

/* ── TOOLS ───────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.tool-card:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 18px rgba(200, 152, 46, 0.06);
}
.tool-card:hover::before { opacity: 1; }

.tool-ico {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--bdr-mid);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.tool-info { flex: 1; }
.tool-name {
  font-family: 'Cinzel', serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 5px;
}
.tool-desc {
  font-size: 0.91rem;
  color: var(--text-mid);
  line-height: 1.45;
  margin-bottom: 10px;
}
.tool-link {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color var(--t-fast);
}
.tool-link:hover { color: var(--gold-bright); }

/* ── COMMUNITY ───────────────────────────────────────────── */
.community-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.disc-panel {
  background: var(--surface);
  border: 1px solid var(--bdr-mid);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.disc-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.disc-ico { font-size: 3rem; margin-bottom: 12px; display: block; }
.disc-panel h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 10px;
}
.disc-panel p {
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Reuse btn-primary for this */
.btn-gold {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 28px;
  background: linear-gradient(135deg, rgba(200, 152, 46, 0.22), rgba(200, 152, 46, 0.10));
  border: 1px solid var(--bdr-bright);
  border-radius: var(--radius);
  color: var(--gold-bright);
  text-decoration: none;
  transition: all var(--t-med);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-gold:hover {
  background: linear-gradient(135deg, rgba(200, 152, 46, 0.32), rgba(200, 152, 46, 0.16));
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(200, 152, 46, 0.2);
}

.rules-box {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.rules-box::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.rule {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--bdr-subtle);
  font-size: 0.93rem;
  line-height: 1.5;
  align-items: flex-start;
}
.rule:last-child { border-bottom: none; }
.rule-n {
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--gold-dim);
  flex-shrink: 0;
  width: 22px;
  padding-top: 3px;
}
.rule-t { color: var(--text); }

/* ── FEATURED SECTION ───────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 56px;
}

.featured-card {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.featured-card:hover {
  border-color: var(--bdr-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 152, 46, 0.05);
}
.featured-card:hover::before { opacity: 1; }

.fc-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.fc-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-hi);
  line-height: 1.3;
}
.fc-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.fc-link {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast);
}
.fc-link:hover { color: var(--gold-bright); }
.fc-link::after { content: '›'; font-size: 1rem; line-height: 0.8; }

/* Boss strip */
.boss-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 56px;
}

.boss-pill {
  background: var(--surface);
  border: 1px solid var(--bdr-subtle);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-fast);
}
.boss-pill:hover {
  border-color: var(--bdr-mid);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 152, 46, 0.06);
}
.boss-pill-ico { font-size: 1.3rem; flex-shrink: 0; }
.boss-pill-name {
  font-family: 'Cinzel', serif;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

/* ── SPACING HELPERS ────────────────────────────────────── */
.mb-lg { margin-bottom: 56px; }
.mt-lg { margin-top: 36px; }
.section-gap { height: 52px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--bdr-subtle);
  text-align: center;
  padding: 24px 32px;
  font-family: 'Cinzel', serif;
  font-size: 0.57rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
}
footer a { color: var(--text-low); text-decoration: none; transition: color var(--t-fast); }
footer a:hover { color: var(--gold); }
footer strong { color: var(--gold-dim); font-weight: 600; }

/* ── GUIDE PAGES ─────────────────────────────────────────── */
.guide-page-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: rgba(13, 11, 8, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr-subtle);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.guide-page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}

.back-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast);
}
.back-btn:hover { color: var(--gold); }

.site-wordmark {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.guide-hero-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%,
      rgba(180, 130, 30, 0.07) 0%,
      transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--bdr-subtle);
  padding: 52px 32px 44px;
  text-align: center;
}

.guide-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.guide-cat-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  background: rgba(200, 152, 46, 0.08);
  color: var(--gold-dim);
  border: 1px solid rgba(200, 152, 46, 0.2);
}

.guide-page-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text-hi);
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(200, 152, 46, 0.25), 0 4px 12px rgba(0,0,0,0.9);
  margin-bottom: 10px;
}

.guide-page-subtitle {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-mid);
}

.guide-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 52px 32px 100px;
}

/* Prose styles for rendered markdown */
.guide-article { color: var(--text); line-height: 1.75; }

.guide-article h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: 0.04em;
  margin: 2.4em 0 0.8em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bdr-subtle);
}
.guide-article h2:first-child { margin-top: 0; }

.guide-article h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin: 1.8em 0 0.6em;
}

.guide-article p {
  margin-bottom: 1.1em;
  font-size: 1rem;
  color: var(--text);
}

.guide-article ul,
.guide-article ol {
  margin: 0.6em 0 1.2em 1.4em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-article li { font-size: 0.97rem; color: var(--text); }
.guide-article li::marker { color: var(--gold-dim); }

.guide-article strong { color: var(--text-hi); font-weight: 600; }
.guide-article em { color: var(--text); font-style: italic; }

.guide-article a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--bdr-gold); transition: color var(--t-fast); }
.guide-article a:hover { color: var(--gold-bright); }

.guide-article blockquote {
  border-left: 2px solid var(--gold-dim);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
  margin: 1.2em 0;
  color: var(--text-mid);
  font-style: italic;
}
.guide-article blockquote p { margin-bottom: 0; }

.guide-article code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--bdr-subtle);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--gold);
}

.guide-article pre {
  background: var(--surface);
  border: 1px solid var(--bdr-mid);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.2em 0;
}
.guide-article pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.88em;
  color: var(--text);
}

.guide-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.93rem;
}
.guide-article th {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  background: var(--surface-2);
  border: 1px solid var(--bdr-subtle);
  padding: 10px 14px;
  text-align: left;
}
.guide-article td {
  border: 1px solid var(--bdr-subtle);
  padding: 9px 14px;
  color: var(--text);
  background: var(--surface);
}
.guide-article tr:nth-child(even) td { background: var(--surface-2); }

.guide-article hr {
  border: none;
  border-top: 1px solid var(--bdr-subtle);
  margin: 2em 0;
}

.guide-wip-notice {
  background: var(--surface);
  border: 1px solid var(--bdr-mid);
  border-left: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
  font-size: 0.92rem;
  color: var(--text-mid);
  font-style: italic;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .featured-grid { grid-template-columns: 1fr; }
  .community-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { padding: 0 20px; }
  main { padding: 0 20px 80px; }

  .hero-banner {
    margin: 0 -20px;
    padding: 60px 20px 56px;
  }
  .hero-logo { height: 90px; margin-bottom: 18px; }

  nav { display: none; flex-direction: column; }
  nav.open {
    display: flex;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: rgba(13, 11, 8, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bdr-subtle);
    padding: 12px 20px;
    gap: 2px;
    z-index: 200;
  }
  nav.open .tab-btn {
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    border-radius: var(--radius);
  }
  .nav-toggle { display: flex; }
}

@media (max-width: 500px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .boss-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 260px; text-align: center; }
}
