/* === IDOLS OF ASH GUIDE — SHARED STYLES === */

:root {
  --bg: #0d0d0f;
  --bg2: #141418;
  --bg3: #1c1c22;
  --border: #2a2a32;
  --text: #e8e6e0;
  --muted: #8a8880;
  --accent: #c8a96e;
  --accent2: #7c6fcd;
  --danger: #c05c5c;
  --green: #5c9e78;
  --warn: #c0922a;
  --mono: 'Courier New', monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,15,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center;
  height: 52px;
  overflow-x: auto;
}
.nav-brand {
  font-size: 15px; font-weight: 700;
  color: var(--accent); text-decoration: none;
  margin-right: 24px; white-space: nowrap;
}
nav a:not(.nav-brand) {
  color: var(--muted); text-decoration: none;
  font-size: 13px; padding: 0 12px; height: 52px;
  display: flex; align-items: center;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
nav a:not(.nav-brand):hover { color: var(--text); border-color: var(--accent); }
nav a.active { color: var(--text); border-bottom: 2px solid var(--accent); }

/* LAYOUT */
.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* BREADCRUMB */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* HERO STRUCTURE */
.hero { padding: 56px 0 40px; }
h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 14px;
}
h1 em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 600px; margin-bottom: 24px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}

/* QUICK NAV */
.quick-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.qn-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--muted); transition: all .15s; white-space: nowrap;
}
.qn-btn:hover { color: var(--text); border-color: var(--accent); }

/* TOC */
.toc {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; margin-bottom: 48px;
}
.toc-title {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.toc li { font-size: 14px; }
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* CONTENT TYPOGRAPHY */
.content-section { margin-bottom: 60px; }
h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -.01em;
  border-top: 1px solid var(--border); padding-top: 32px; margin-bottom: 20px;
}
h3 { font-size: 16px; font-weight: 700; color: var(--accent); margin: 24px 0 10px; }
p { color: var(--muted); margin-bottom: 14px; }
p strong { color: var(--text); font-weight: 600; }
p em { color: var(--text); font-style: italic; }

/* RELATED CARDS */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px; margin-top: 16px;
}
.related-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  text-decoration: none; color: var(--text);
  transition: border-color .15s; display: block;
}
.related-card:hover { border-color: var(--accent); }
.related-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.related-title { font-size: 13px; font-weight: 600; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  font-size: 12px; color: var(--muted);
}
footer a { color: var(--muted); }
.update-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; color: var(--muted); margin-bottom: 12px;
}
.update-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
