/* WealthRank — Blog Shared Styles */
:root {
  --gold: #C9A84C; --gold-light: #E8C97A; --gold-dim: #7a6230;
  --bg: #080808; --bg2: #0f0f0f; --bg3: #161616; --bg4: #1e1e1e;
  --border: rgba(201,168,76,0.13);
  --text: #E8E0D0; --text-dim: #6a6050; --text-mid: #a89880;
  --accent: var(--gold);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* Grain */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.5;
}

/* Read progress */
#read-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9998; width: 0%;
  transition: width .1s linear;
}

/* Layout */
#wr-app {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: #2a2a2a; }

/* Article header */
.art-header {
  padding-bottom: 2rem; border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem; position: relative;
}
.art-header::before {
  content: ''; position: absolute; bottom: -1px;
  left: 0; right: 55%; height: 1px;
  background: var(--accent); opacity: 0.6;
}

.art-meta-top {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.art-tag {
  font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); border: 1px solid; border-color: var(--accent);
  padding: 0.18rem 0.55rem; border-radius: 10px;
  background: rgba(201,168,76,0.06); opacity: 0.9;
}
.art-read-time { font-size: 0.55rem; color: #3a3a3a; letter-spacing: 0.08em; }

.art-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 300; line-height: 1.08;
  color: var(--text); margin-bottom: 0.9rem;
}
.art-title em { font-style: italic; color: var(--gold-light); }

.art-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 300; font-style: italic;
  color: var(--text-mid); line-height: 1.55; margin-bottom: 1.2rem;
}
.art-date-line { font-size: 0.55rem; color: #3a3a3a; letter-spacing: 0.1em; }

/* Article body — THE KEY: bigger, more readable */
.art-body {
  font-size: 0.85rem;
  line-height: 2;
  color: #c8c0b0;
  letter-spacing: 0.01em;
}

.art-body p { margin-bottom: 1.4rem; }

.art-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: var(--text); margin: 2.8rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}

.art-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 400;
  color: var(--text-mid); margin: 2rem 0 0.7rem;
}

.art-body strong { color: var(--gold-light); font-weight: 500; }
.art-body em { color: var(--text-mid); font-style: italic; }

.art-body a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(201,168,76,0.3); transition: border-color .2s;
}
.art-body a:hover { border-color: var(--gold); }

/* Callout */
.callout {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.3rem; margin: 1.8rem 0;
  font-size: 0.82rem; line-height: 1.7;
  border-radius: 0 10px 10px 0;
}
.callout .callout-label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.52rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim);
}

/* Table */
.art-body table {
  width: 100%; border-collapse: collapse;
  margin: 1.8rem 0; font-size: 0.75rem;
}
.art-body th {
  font-size: 0.52rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dim); padding: 0.6rem 1rem;
  background: var(--bg3); border-bottom: 1px solid var(--border);
  text-align: left;
}
.art-body td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(201,168,76,0.04); color: #c8c0b0;
}
.art-body tr:hover td { background: rgba(201,168,76,0.025); }
.art-body td.hi { color: var(--gold-light); font-weight: 500; }

/* Sources note */
.sources-note {
  font-size: 0.62rem; color: var(--text-dim);
  line-height: 1.6; margin-top: 2rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(201,168,76,0.07);
  border-radius: 6px;
}

/* CTA tool */
.cta-tool {
  margin-top: 2.5rem; background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.6rem; border-radius: 0 12px 12px 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta-tool-text { font-size: 0.78rem; color: var(--text); line-height: 1.55; }
.cta-tool-text strong { color: var(--gold-light); font-weight: 500; }
.cta-tool-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--accent); color: #000; border: none;
  padding: 0.65rem 1.3rem; border-radius: 6px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: opacity .2s; flex-shrink: 0; font-weight: 500;
}
.cta-tool-btn:hover { opacity: 0.85; }

/* Share */
.share-section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.section-label {
  font-size: 0.52rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.8rem;
}
.share-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-btn {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  letter-spacing: 0.1em; padding: 0.55rem 1.1rem; border-radius: 8px;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-dim); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem; transition: all .2s;
}
.share-btn:hover { border-color: var(--gold-dim); color: var(--text); }
.share-btn.tw:hover { border-color: rgba(29,161,242,.5); color: #1da1f2; }
.share-btn.li:hover { border-color: rgba(0,119,181,.5); color: #0077b5; }

/* Related */
.related-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.8rem; }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
  background: var(--bg2); border-radius: 12px;
  border: 1px solid var(--border); padding: 1.1rem;
  text-decoration: none; display: block;
  transition: transform .2s ease, background .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.related-card::before {
  content: ''; position: absolute; top: 0; left: 20%; right: 20%;
  height: 1px; background: var(--card-accent, var(--gold-dim));
  opacity: 0; transition: opacity .3s, left .3s, right .3s;
}
.related-card:hover { transform: translateY(-3px); background: var(--bg3); }
.related-card:hover::before { opacity: 1; left: 0; right: 0; }

.rel-tag {
  font-size: 0.45rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.45rem; display: block;
}
.rel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; color: var(--text); line-height: 1.3;
  transition: color .2s;
}
.related-card:hover .rel-title { color: var(--gold-light); }

/* Sidebar integration */
#wr-page{margin-left:220px;padding-top:44px;min-height:100vh;}
@media(max-width:800px){#wr-page{margin-left:0;}}
#wr-app{max-width:680px;margin:0 auto;padding:2.5rem 1.5rem 6rem;}
