/* ═══════════════════════════════════════════════════════════════════════════
   WROITER — Method Hub Design System
   Warm amber accent on dark base. Distinct from research (black/gold)
   and blog (dark blue/cyan).
   ═══════════════════════════════════════════════════════════════════════════ */

.method-hub {
  --mh-bg: #12100c;
  --mh-surface: rgba(228,213,183,0.03);
  --mh-border: rgba(228,213,183,0.08);
  --mh-border-hover: rgba(228,213,183,0.18);
  --mh-accent: #d4a24e;
  --mh-accent-dim: rgba(212,162,78,0.5);
  --mh-text: #ddd8cb;
  --mh-text-dim: #9e9585;
  --mh-text-faint: #6a6358;

  background: var(--mh-bg);
  color: var(--mh-text);
  padding-top: 80px;
}

.method-hub .site-header {
  background: rgba(18,16,12,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(228,213,183,0.06);
}

/* ── Atmosphere ── */
.mh-atmo {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.mh-atmo-glow {
  position: absolute;
  top: 6%; left: 50%;
  width: 70vw; height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(212,162,78,0.03) 0%, transparent 70%);
}
.mh-atmo-cool {
  position: absolute;
  top: 20%; left: 55%;
  width: 30vw; height: 25vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(74,158,191,0.01) 0%, transparent 60%);
}

/* ── Hero ── */
.mh-hero {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  text-align: center;
  border-bottom: 1px solid rgba(228,213,183,0.04);
  margin-bottom: 56px;
}
.mh-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-accent);
  margin-bottom: 20px;
}
.mh-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 400;
  color: var(--mh-text);
  line-height: 1.2;
  margin: 0 0 20px;
}
.mh-hero h1 em {
  font-style: italic;
  color: var(--mh-accent);
}
.mh-lead {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--mh-text-dim);
  max-width: 620px;
  margin: 0 auto 32px;
  font-weight: 300;
}
.mh-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ── Content container ── */
.mh-container {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Page cards ── */
.mh-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 16px;
  border-bottom: 1px solid rgba(228,213,183,0.04);
  text-decoration: none;
  transition: background 0.3s;
  margin: 0 -16px;
  border-radius: 2px;
}
.mh-card:first-of-type {
  border-top: 1px solid rgba(228,213,183,0.04);
}
.mh-card:hover {
  background: rgba(212,162,78,0.03);
  text-decoration: none;
}
.mh-card-num {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--mh-accent-dim);
  line-height: 1;
  padding-top: 2px;
}
.mh-card:hover .mh-card-num {
  color: var(--mh-accent);
}
.mh-card-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--mh-text);
  line-height: 1.3;
  margin-bottom: 6px;
}
.mh-card-desc {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mh-text-dim);
  line-height: 1.6;
  max-width: 600px;
  font-weight: 300;
}
.mh-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mh-text-faint);
  margin-top: 6px;
}

/* ── Section labels ── */
.mh-section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-accent);
  margin-bottom: 24px;
  margin-top: 56px;
}

/* ── Interpretation callout ── */
.mh-callout {
  border-left: 3px solid var(--mh-accent-dim);
  background: rgba(212,162,78,0.04);
  border-radius: 0 2px 2px 0;
  padding: 20px 24px;
  margin: 56px 0 24px;
}
.mh-callout-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mh-accent);
  margin-bottom: 8px;
}
.mh-callout p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mh-text-dim);
  margin: 0;
  font-weight: 300;
}
.mh-callout a {
  color: var(--mh-accent);
}

/* ── Evidence links ── */
.mh-evidence {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(228,213,183,0.04);
}
.mh-evidence h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--mh-text);
  margin-bottom: 16px;
}
.mh-evidence p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--mh-text-dim);
  max-width: 620px;
  font-weight: 300;
}
.mh-evidence a {
  color: var(--mh-accent);
}
.mh-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.mh-nav-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mh-accent);
  padding: 8px 16px;
  border: 1px solid rgba(212,162,78,0.15);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.mh-nav-link:hover {
  background: rgba(212,162,78,0.06);
  border-color: rgba(212,162,78,0.3);
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Method Article Pages — subpages share the warm amber base
   ═══════════════════════════════════════════════════════════════════════════ */

/* Article hero (left-aligned, not centered like hub) */
.mh-article-hero {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  border-bottom: 1px solid rgba(228,213,183,0.04);
  margin-bottom: 48px;
}
.mh-article-hero .mh-label {
  margin-bottom: 16px;
}
.mh-article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  color: var(--mh-text);
  line-height: 1.2;
  margin: 0 0 16px;
}
.mh-article-hero .mh-lead {
  margin: 0 0 28px;
  max-width: 680px;
}

/* Article body */
.mh-article {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 32px 64px;
}
.mh-article section {
  margin-bottom: 40px;
}
.mh-article h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  color: var(--mh-text);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.mh-article h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--mh-text);
  margin: 24px 0 8px;
}
.mh-article p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mh-text-dim);
  font-weight: 300;
  margin: 0 0 16px;
  max-width: 72ch;
}
.mh-article strong {
  color: var(--mh-text);
  font-weight: 500;
}
.mh-article a {
  color: var(--mh-accent);
}
.mh-article ul, .mh-article ol {
  padding-left: 24px;
  margin: 0 0 16px;
}
.mh-article li {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--mh-text-dim);
  font-weight: 300;
  margin-bottom: 8px;
}
.mh-article code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(228,213,183,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--mh-accent);
}
.mh-article em {
  color: var(--mh-text);
}

/* Callout inside articles */
.mh-article .mh-callout {
  margin: 24px 0;
}

/* Flow grid (how-it-works) */
.mh-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.mh-flow-card {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 20px;
}
.mh-flow-num {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--mh-accent-dim);
  margin-bottom: 8px;
}
.mh-flow-card h3 {
  margin: 0 0 6px;
}
.mh-flow-card p {
  margin: 0;
  font-size: 14px;
}

/* Signal grid (how-it-works) */
.mh-signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.mh-signal-card {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 20px;
}
.mh-signal-card strong {
  display: block;
  margin-bottom: 6px;
}
.mh-signal-card p {
  margin: 0;
  font-size: 14px;
}

/* Score band grid (how-it-works) */
.mh-band-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.mh-band {
  background: var(--mh-surface);
  border: 1px solid var(--mh-border);
  border-radius: 4px;
  padding: 20px;
}
.mh-band-range {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--mh-accent);
  margin-bottom: 8px;
}
.mh-band p {
  margin: 0;
  font-size: 14px;
}

/* Tables */
.mh-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.mh-article th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-text-faint);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mh-border);
}
.mh-article td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(228,213,183,0.04);
  color: var(--mh-text-dim);
  font-weight: 300;
}
.mh-article .table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.mh-article details {
  margin: 12px 0;
}
.mh-article summary {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mh-accent);
  cursor: pointer;
  font-weight: 400;
}
.mh-article details ul {
  margin-top: 8px;
}

/* Note callout */
.mh-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mh-text-faint);
  margin: 16px 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .mh-hero { padding: 48px 20px 40px; }
  .mh-container { padding-left: 20px; padding-right: 20px; }
  .mh-card { grid-template-columns: 36px 1fr; gap: 12px; padding: 20px 12px; margin: 0 -12px; }
  .mh-card-num { font-size: 22px; }
  .mh-card-title { font-size: 17px; }
  .mh-cta-row { flex-direction: column; align-items: center; }
  .mh-article-hero { padding: 48px 20px 36px; }
  .mh-article { padding-left: 20px; padding-right: 20px; }
  .mh-flow-grid { grid-template-columns: 1fr 1fr; }
  .mh-signal-grid { grid-template-columns: 1fr; }
  .mh-band-grid { grid-template-columns: 1fr 1fr; }
}
