/* Rizz Ventures — editorial pages (pillars, theses, regulatory landscape, radar, legal).
   Same tokens as style.css: a dusk band with light fog, then paper with the golden thread. */
.ed { background: var(--paper); color: var(--ink); }
.ed .site-header { background: rgb(24,16,11); }
.ed .site-header::after { display: none; }
.ed .nav a[aria-current='page']::after { transform: scaleX(1); background: var(--glow); }

/* hero band */
.ed-hero { position: relative; overflow: hidden; isolation: isolate; color: var(--on-ink);
  background: radial-gradient(120% 90% at 80% 0%, #3a261a 0%, rgba(58,38,26,0) 60%), linear-gradient(180deg, #1a1310 0%, #241812 70%, #2c1d15 100%);
  padding: calc(var(--header-h) + var(--space-10)) 0 clamp(var(--space-16), 8vw, var(--space-24)); }
.ed-fog { position: absolute; inset: -10% -20%; z-index: -1; pointer-events: none; opacity: 0.22; }
.ed-fog i { position: absolute; inset: 0; background: url('assets/fog-a-m.webp') center / cover no-repeat; }
.ed-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(242,168,104,0) 0%, rgba(242,168,104,0.7) 30%, rgba(158,63,20,0.6) 70%, rgba(158,63,20,0) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .ed-fog i { animation: ed-drift 60s ease-in-out infinite alternate; }
  @keyframes ed-drift { from { transform: translate3d(-4%, 0, 0) scale(1.05); } to { transform: translate3d(4%, -2%, 0) scale(1.1); } }
}
.ed-hero-inner { position: relative; }
.ed-hero .crumbs { margin-bottom: var(--space-10); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) 0; font-size: var(--text-xs); color: var(--on-img-muted); }
.crumbs li + li::before { content: '/'; margin-inline: var(--space-3); opacity: 0.5; }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--glow); }
.crumbs [aria-current] { color: var(--on-ink); display: inline-flex; min-height: 32px; align-items: center; }
.ed-kicker { color: var(--glow); margin-bottom: var(--space-4); }
.ed-h1 { font-family: var(--font-display); font-size: var(--text-3xl); letter-spacing: -0.02em; line-height: 1.02; max-width: 20ch; }
.ed-lede { margin-top: var(--space-6); max-width: 60ch; font-size: var(--text-lg); line-height: 1.45; color: var(--on-img); }
.ed-mnav { display: none; }

/* body with the golden thread */
.ed-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); gap: clamp(var(--space-10), 6vw, var(--space-20)); padding-block: clamp(var(--space-12), 6vw, var(--space-20)); align-items: start; }
.ed-body-single { grid-template-columns: minmax(0, 1fr); }
.ed-article { position: relative; padding-left: clamp(var(--space-8), 4vw, var(--space-16)); max-width: 50rem; }
.ed-article::before { content: ''; position: absolute; left: 6px; top: -4rem; bottom: 0; width: 1.5px;
  background: linear-gradient(180deg, rgba(242,168,104,0.9) 0%, var(--accent) 40%, rgba(158,63,20,0.35) 85%, rgba(158,63,20,0) 100%);
  transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .ed-article::before { animation: ed-thread 1600ms var(--ease-out) both; }
  @keyframes ed-thread { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.ed-sec { position: relative; }
.ed-sec + .ed-sec, .ed-intro + .ed-sec, .facts + .ed-sec { margin-top: clamp(var(--space-12), 5vw, var(--space-16)); }
.ed-sec > h2 { font-family: var(--font-display); font-size: var(--text-2xl); letter-spacing: -0.015em; line-height: 1.08; margin-bottom: var(--space-5); position: relative; }
.ed-sec > h2::before { content: ''; position: absolute; top: 0.45em; left: calc(-1 * clamp(var(--space-8), 4vw, var(--space-16)) + 2px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--glow); box-shadow: 0 0 0 4px rgba(242,168,104,0.22); }
.ed-article p { max-width: 64ch; color: var(--ink-soft); }
.ed-article p + p { margin-top: var(--space-4); }
.ed-article a:not(.link-arrow):not(.btn) { color: var(--ink); text-decoration-color: rgba(158,63,20,0.55); text-underline-offset: 3px; }
.ed-article a:not(.link-arrow):not(.btn):hover { color: var(--accent); }
.ed .link-arrow { color: var(--accent); }
.ed-intro p:first-child { font-size: var(--text-lg); line-height: 1.5; color: var(--ink); }
.ed-note { font-size: var(--text-sm); color: var(--muted) !important; margin-top: var(--space-4); }
.ed code { font-size: 0.92em; background: rgba(20,33,27,0.06); padding: 0.05em 0.35em; border-radius: 3px; }
.ed :focus-visible { outline-color: var(--accent); }
.ed .site-header :focus-visible, .ed-hero :focus-visible { outline-color: var(--glow); }

/* lists and cards */
.reg-list, .th-cards, .hub-cards, .sources, .timeline, .inline-links { list-style: none; }
.reg-list li { padding-block: var(--space-4); border-top: 1px solid var(--rule); display: grid; gap: var(--space-1); }
.reg-list li:last-child { border-bottom: 1px solid var(--rule); }
.reg-list a { font-family: var(--font-display); font-size: var(--text-lg); text-decoration: none !important; }
.reg-list span { font-size: var(--text-sm); color: var(--ink-soft); max-width: 64ch; }
.reg-list + .ed-note + p, .reg-list + p { margin-top: var(--space-5); }
.th-cards { display: grid; gap: var(--space-4); }
.th-card, .hub-card { background: rgba(243,225,195,0.55); border: 1px solid var(--rule); border-radius: 4px; padding: var(--space-6); }
.th-card h3, .hub-card h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.1; margin-bottom: var(--space-3); }
.th-card h3 a, .hub-card h3 a { text-decoration: none !important; }
.th-card p, .hub-card p { font-size: var(--text-sm); }
.th-card .link-arrow { margin-top: var(--space-3); }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--space-4); }
.ed-aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); display: grid; gap: var(--space-6); }
.ed-card { border-top: 2px solid var(--glow); padding-top: var(--space-5); }
.ed-card .eyebrow { color: var(--muted); margin-bottom: var(--space-2); }
.rd-compact .rd-title { font-size: var(--text-base); }
.rd-compact .rd-comment { font-size: var(--text-xs); }
.rd-full .rd-item { padding-block: var(--space-8); }
.rd-full .rd-title { font-size: var(--text-xl); }

/* faq inside articles */
.ed-article .faq-list { margin-left: 0; }
.ed-article .faq-a p { color: var(--ink-soft); }

/* hub table and facts */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: rgba(255,255,255,0.35); }
.status-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 44rem; }
.status-table th, .status-table td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
.status-table thead th { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: var(--muted); background: rgba(243,225,195,0.6); }
.status-table tbody th { font-weight: 500; white-space: nowrap; }
.status-table tbody tr:last-child > * { border-bottom: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 4px; background: rgba(243,225,195,0.45); }
.facts > div { padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--rule); }
.facts > div:nth-child(odd) { border-right: 1px solid var(--rule); }
.facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: var(--space-1); }
.facts dd { font-size: var(--text-sm); }
.timeline li { display: grid; grid-template-columns: 10rem 1fr; gap: var(--space-4); padding-block: var(--space-3); border-top: 1px solid var(--rule); font-size: var(--text-sm); color: var(--ink-soft); }
.tl-d { font-weight: 500; color: var(--ink); }
.sources li { padding-block: var(--space-2); font-size: var(--text-sm); }
.sources a::after { content: ' ↗'; color: var(--accent); text-decoration: none; display: inline-block; margin-left: 2px; }
.inline-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.inline-links a { display: inline-flex; min-height: 44px; align-items: center; }
.disclaimer { margin-top: var(--space-10); padding: var(--space-5) var(--space-6); border-left: 2px solid var(--accent); background: rgba(158,63,20,0.05); }
.disclaimer p { font-size: var(--text-sm); color: var(--ink-soft); }
.pager { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--rule); font-size: var(--text-sm); }
.pager a { min-height: 44px; display: inline-flex; align-items: center; }

/* footer meets paper directly */
.ed .site-footer { background: linear-gradient(180deg, var(--paper) 0%, var(--gold-sand) 100%); border-top: 1px solid var(--rule); }

@media (max-width: 1080px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); }
  .ed-aside { position: static; }
  .ed-mnav { display: flex; gap: var(--space-6); overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) var(--space-6); padding: 0 var(--gutter) var(--space-2); scrollbar-width: none; border-bottom: 1px solid var(--rule-img); }
  .ed-mnav::-webkit-scrollbar { display: none; }
  .ed-mnav a { flex: none; font-size: var(--text-sm); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--on-img); white-space: nowrap; }
  .ed-mnav a[aria-current='page'] { color: var(--glow); box-shadow: inset 0 -1px 0 var(--glow); }
}
@media (max-width: 560px) {
  .ed-hero { padding-top: calc(var(--header-h) + var(--space-6)); }
  .ed-article { padding-left: var(--space-6); }
  .ed-article::before { left: 3px; }
  .ed-sec > h2::before { left: calc(-1 * var(--space-6) - 1px); width: 8px; height: 8px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(odd) { border-right: 0; }
  .facts > div:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
  .timeline li { grid-template-columns: 1fr; gap: var(--space-1); }
  .th-card, .hub-card { padding: var(--space-5); }
}

/* scene image behind the hero band on pillar and thesis pages (same photography as the home) */
.ed-scene { position: absolute; inset: 0; z-index: -2; }
.ed-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0.42; }
.ed-has-scene .ed-hero { background: #1a1310; }
.ed-has-scene .ed-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,16,11,0.92) 0%, rgba(24,16,11,0.72) 45%, rgba(24,16,11,0.35) 100%), linear-gradient(0deg, rgba(24,16,11,0.7) 0%, rgba(24,16,11,0) 40%); }
@media (max-width: 860px) { .ed-has-scene .ed-hero::before { background: linear-gradient(0deg, rgba(24,16,11,0.9) 0%, rgba(24,16,11,0.7) 60%, rgba(24,16,11,0.55) 100%); } }
.ed-404 .ed-hero { min-height: 50vh; }
