/* ═══════════════════════════════════════════════════════════════
   guide.css — Topline How It Works page
   Inherits from styles.css — uses all existing design tokens.
   ═══════════════════════════════════════════════════════════════ */


/* ── BODY ───────────────────────────────────────────────────── */
.guide-body {
  background: var(--parchment);
}

/* ── HERO ───────────────────────────────────────────────────── */
.guide-hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: 4rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.guide-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
          radial-gradient(ellipse 60% 80% at 5% 100%, rgba(107,124,94,0.2) 0%, transparent 60%),
          radial-gradient(ellipse 40% 60% at 95% 0%, rgba(184,92,56,0.12) 0%, transparent 50%);
  pointer-events: none;
}
.guide-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.guide-hero-eyebrow {
  display: block;
  color: var(--sage-lt);
  margin-bottom: 0.75rem;
  letter-spacing: 0.2em;
}
.guide-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--cream);
}
.guide-hero-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(253,250,245,0.75);
  max-width: 520px;
  margin-bottom: 1.75rem;
}
.guide-hero-cta {
  display: inline-block;
}
.guide-hero-rule {
  max-width: var(--content-max);
  margin: 3.5rem auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage), var(--terra), transparent);
  opacity: 0.35;
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.guide-main {
  flex: 1;
}
.guide-layout {
  max-width: calc(var(--content-max) + 2rem);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .guide-sidebar { order: -1; }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.guide-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.guide-section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dark);
}
.guide-section-num {
  color: var(--terra);
  letter-spacing: 0.15em;
}
.guide-section-title {
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
}
.guide-section-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-section-body p {
  font-size: 0.8rem !important;
  line-height: 1.75;
  font-family: inherit;
  color: var(--charcoal);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


.guide-section-body .sub-heading {
  font-size: 0.9rem;
  color: var(--terra) !important;
  margin-top: 20px;
}

.guide-section-body ul {
  margin-left: 20px;
  font-size: 0.6rem;
  color: var(--charcoal);
  font-weight: 300;
}

.guide-section-body ul > li {
  line-height: 1.3rem;
}
.guide-section-body ul > li::marker {
  color: var(--muted);
}

/* ── FEATURE CARDS ──────────────────────────────────────────── */
.guide-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.guide-feature-card {
  background: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.guide-feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-feature-card strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.guide-feature-card p {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
}

/* ── DISCIPLINES GRID ───────────────────────────────────────── */
.guide-disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.guide-disc-card {
  background: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid transparent;
}
.guide-disc-card p {
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  margin-top: 0.5rem;
}
.guide-disc-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius);
}
/* Discipline colours */
.disc-dr { border-left-color: var(--sage); }
.disc-dr .guide-disc-tag { background: var(--sage-pale); color: var(--sage); }
.disc-sj { border-left-color: var(--terra); }
.disc-sj .guide-disc-tag { background: var(--terra-pale); color: var(--terra); }
.disc-ev { border-left-color: var(--charcoal2); }
.disc-ev .guide-disc-tag { background: var(--sage-pale); color: var(--charcoal2); }
.disc-we { border-left-color: #8b6914; }
.disc-we .guide-disc-tag { background: #f5edd5; color: #8b6914; }
.disc-dv { border-left-color: #4a7a8a; }
.disc-dv .guide-disc-tag { background: #d5e8ed; color: #4a7a8a; }
.disc-cd { border-left-color: #7a4a8a; }
.disc-cd .guide-disc-tag { background: #edd5ed; color: #7a4a8a; }
.disc-hn { border-left-color: #2a5a2a; }
.disc-hn .guide-disc-tag {     background: rgba(60, 100, 60, 0.4); color: #2a5a2a; }
.disc-ss { border-left-color: #6a3a9a; }
.disc-ss .guide-disc-tag { background: rgba(120,80,160,0.12); color: #6a3a9a; }

/* ── CURRENCY ───────────────────────────────────────────────── */
.guide-currency-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .guide-currency-pair { grid-template-columns: 1fr; }
}
.guide-currency-card {
  background: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-currency-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ribbon-card .guide-currency-header { background: var(--terra-pale); }
.rosette-card .guide-currency-header { background: var(--sage-pale); }
.guide-currency-icon { font-size: 1.3rem; }
.guide-currency-header h3 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--charcoal);
  flex: 1;
}

.guide-card-row--2col {
  grid-template-columns: repeat(2, 1fr);
}
.guide-currency-type {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.guide-currency-detail {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.guide-currency-section ul {
  list-style: none;
  margin-top: 0.4rem;
}
.guide-currency-section ul li {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--charcoal);
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
}
.guide-currency-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.guide-currency-label {
  font-size: 0.6rem !important;
  letter-spacing: 0.14em;
  color: var(--muted) !important;
  margin-bottom: 0.4rem !important;
}

/* ── TABLES ─────────────────────────────────────────────────── */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.guide-table tr {
  border-bottom: 1px solid var(--border-dark);
}
.guide-table tr:last-child { border-bottom: none; }
.guide-table td {
  padding: 5px 0;
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.5;
}
.guide-table-val {
  text-align: right;
  font-weight: 500;
  color: var(--terra);
  white-space: nowrap;
}

/* ── MEMBER GATE ────────────────────────────────────────────── */
.guide-member-gate {
  font-size: 0.82rem !important;
  color: var(--muted) !important;
  font-style: italic;
  margin-top: 0.25rem !important;
}
.guide-member-gate a {
  color: var(--terra);
  text-decoration: underline;
}

/* ── WELCOME TEASER / RECAP ─────────────────────────────────── */
.guide-welcome-teaser,
.guide-welcome-recap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--cream);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  flex-wrap: wrap;
}
.guide-welcome-icon { font-size: 1.5rem; flex-shrink: 0; }
.guide-welcome-teaser p,
.guide-welcome-recap p {
  font-size: 0.83rem !important;
  flex: 1;
  min-width: 180px;
}

/* ── PRESTIGE TIERS ─────────────────────────────────────────── */
.guide-tiers {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-tier {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border-dark);
  transition: background 0.2s;
  position: relative;
}
.guide-tier:last-child { border-bottom: none; }
.guide-tier.tier-active {
  background: linear-gradient(90deg, rgba(184,92,56,0.05), var(--cream));
  border-left: 3px solid var(--terra);
}
.guide-tier-num {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  min-width: 24px;
  padding-top: 3px;
}
.guide-tier.tier-active .guide-tier-num { color: var(--terra); }
.guide-tier-body { flex: 1; }
.guide-tier-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--charcoal);
  display: block;
  margin-bottom: 0.2rem;
}
.guide-tier-req {
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}
.guide-tier-unlocks {
  font-size: 0.8rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.guide-tier-unlock-label {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--sage);
  margin-right: 0.4rem;
}
.guide-tier-perk {
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 300;
}
.guide-tier-you {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--terra);
  white-space: nowrap;
  padding-top: 4px;
}

/* ── HOSTING ────────────────────────────────────────────────── */
.guide-host-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.guide-host-card {
  background: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.guide-host-card ul {
  list-style: none;
  margin-top: 0.5rem;
}
.guide-host-card li {
  font-size: 0.82rem;
  line-height: 1.8;
  font-weight: 300;
  color: var(--charcoal);
  padding-left: 1rem;
  position: relative;
}
.guide-host-card li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ── INFO BOX ───────────────────────────────────────────────── */
.guide-info-box {
  background: rgba(107,124,94,0.08);
  border: 1px solid rgba(107,124,94,0.25);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.guide-info-box p {
  font-size: 0.83rem !important;
  line-height: 1.7 !important;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.guide-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (max-width: 900px) {
  .guide-sidebar { position: static; }
}
.guide-sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.guide-sidebar-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* Member stats */
.guide-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.82rem;
}
.guide-stat-row:last-of-type { border-bottom: none; }
.guide-stat-row span { color: var(--muted); font-weight: 300; }
.guide-stat-row strong { color: var(--charcoal); }

/* Tier progress bar */
.guide-tier-progress { margin-top: 0.75rem; }
.guide-tier-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.guide-tier-progress-track {
  height: 4px;
  background: var(--border-dark);
  border-radius: 2px;
  overflow: hidden;
}
.guide-tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--terra), var(--sage));
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* Quick facts */
.guide-facts-list {
  list-style: none;
}
.guide-facts-list li {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--charcoal);
  font-weight: 300;
}

/* Sidebar nav */
.guide-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.guide-nav a {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.15s;
}
.guide-nav a:last-child { border-bottom: none; }
.guide-nav a:hover { color: var(--terra); }
.guide-nav a.active {color: var(--charcoal); font-weight: bold;}
/* Signup CTA sidebar */
.guide-signup-cta {
  background: var(--charcoal);
  border-color: transparent;
}
.guide-signup-cta .guide-sidebar-label { color: var(--sage-lt); }
.guide-signup-cta .serif { color: var(--cream); }
.guide-signup-cta p:not(.guide-sidebar-label):not(.serif) { color: rgba(253,250,245,0.6); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
}

/* ── RULES BLOCK ────────────────────────────────────────────── */
.rules-block {
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: var(--gap-md) var(--gap-lg);
  margin-bottom: var(--gap-md);
}

.rules-block-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--gap-sm);
  padding-bottom: var(--gap-xs);
  border-bottom: 1px solid var(--border-dark);
}

/* Table layout (key/value) */
.rules-block table {
  width: 100%;
  border-collapse: collapse;
}

.rules-block td {
  padding: 0.8rem 0;
  font-size: 0.8rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--border-dark);
  vertical-align: top;
}

.rules-block th,
.rules-block td:first-child {
  font-weight: 500;
  color: var(--muted);
  padding-right: var(--gap-sm);
}

.rules-block tr:last-child td {
  border-bottom: none;
}

.rules-block th {
  font-size: 0.8rem;
}


/* List layout */

.guide-section[id] {
  scroll-margin-top: calc(var(--header-h, 64px) + 16px);
}

.guide-section-body ul,
.guide-section-body ol {
  margin-left: 20px;
  font-size: 0.8rem;
  color: var(--charcoal);
  font-weight: 300;
}

.rules-block li {
  font-size: 0.8rem;
  color: var(--charcoal);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-dark);
  padding-left: 6px;
  font-family: "Open Sans", sans-serif;
  font-weight: normal;
  line-height: 1.75;
  margin-left: 6px;
}

.rules-block li:last-child {
  border-bottom: none;
}

.rules-block li::marker{
  color:  var(--terra-lt) !important;
}

.rules-block li ul li {
  margin-left: 20px;
}

/* Plain prose */
.rules-block p {
  font-size: 0.8rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: var(--gap-xs);
}

.rules-block p:last-child {
  margin-bottom: 0;
}

.guide-content {
  counter-reset: guide-sections;
}

.guide-section-num {
  counter-increment: guide-sections;
}

.guide-section-num::before {
  content: counter(guide-sections, decimal-leading-zero);
}

.guide-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.guide-feature-card {
  flex: 1;
  min-width: 0; /* prevents grid blowout */
}

@media (max-width: 600px) {
  .guide-card-row {
    grid-template-columns: 1fr;
  }
  .guide-disc-grid {
    grid-template-columns: 1fr;
  }
  .guide-card-row--2col {
    grid-template-columns: 1fr;
  }
  .guide-currency-pair {
    grid-template-columns: 1fr;
  }
  .guide-layout {
    padding: 1.5rem 1rem 3rem;
  }
  .guide-hero {
    padding: 2.5rem 1rem 2rem;
  }
}


@media (max-width: 600px) {
  .guide-disc-table th:last-child,
  .guide-disc-table td:last-child { display: none; }

  .guide-disc-table th:first-child,
  .guide-disc-table td:first-child { width: 35%; }

  .guide-disc-table th:nth-child(2),
  .guide-disc-table td:nth-child(2) { width: 25%; }
}
