/* The Reformation — /reformation.
   A museum-quality parchment-and-gold exhibit focused on the Protestant
   Reformation: forerunners, the spark, the reformers and their families, the
   Five Solas, the confessions, the key events, and an honest reckoning with
   the hard parts. Desktop is a wide poster with an era rail; mobile becomes a
   vertical timeline. Colours hardcoded to the site's antique palette, with
   four harmonious family accents. Mirrors traditions.css (rf- prefix). */

.rf-page {
  position: relative;
  min-height: 100vh;
  padding: 0 0 70px;
  color: #3a3327;
  font-family: 'Cormorant Garamond', serif;
  background: transparent;
}

/* Decorative layer kept in markup but disabled, so the site background shows. */
.rf-bg { display: none; }

.rf-hero, .rf-canvas-wrap, .rf-timeline, .rf-note,
#reformation-page > noscript { position: relative; z-index: 1; }

/* Hero */
.rf-hero {
  text-align: center;
  max-width: 820px;
  margin: 56px auto 0;
  padding: 26px clamp(18px, 4vw, 34px) 30px;
  background: rgba(246, 239, 223, 0.93);
  border: 1px solid rgba(168, 130, 63, 0.38);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(60, 45, 20, 0.15);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.rf-hero-eyebrow {
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.34em;
  text-transform: uppercase; color: #a8823f; margin: 0 0 14px;
}
.rf-hero-title {
  font-family: 'Cinzel', serif; font-weight: 700; line-height: 1.06;
  font-size: clamp(32px, 5.4vw, 56px); margin: 0 0 6px;
  background: linear-gradient(180deg, #9a7a34 0%, #7a5e26 62%, #5f4a1e 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: #7a5e26;
  text-shadow: 0 1px 0 rgba(255,251,238,0.4);
}
.rf-hero-sub {
  font-size: clamp(17px, 2.4vw, 23px); font-style: italic; color: #6b5a34;
  margin: 0 auto; max-width: 680px;
}
.rf-flourish {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 18px auto 22px; max-width: 440px; color: #b8974e;
}
.rf-flourish::before, .rf-flourish::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #c9a24e 40%, #c9a24e 60%, transparent);
}
.rf-flourish i { transform: translateY(1px); }

/* Search */
.rf-search-wrap {
  display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto;
  background: rgba(251,246,234,0.92); border: 1.5px solid #b89a5c;
  box-shadow: 0 2px 10px rgba(90,70,30,0.08), inset 0 0 0 1px rgba(255,252,242,0.7);
  padding: 0 8px 0 14px;
}
.rf-search-wrap i { color: #a8823f; }
.rf-search {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #3a3327; padding: 12px 4px;
}
.rf-search::placeholder { color: #a89a78; }
.rf-search-clear { border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 6px; line-height: 0; display: none; }
.rf-search-clear.show { display: inline-flex; }
.rf-hint { text-align: center; font-size: 16px; color: #7d7057; min-height: 24px; margin: 14px auto 0; padding: 0 16px; }
.rf-hint b { color: #a8823f; font-weight: 600; }

/* Legend + methodology row */
.rf-legend {
  display: flex; flex-wrap: wrap; gap: 9px 20px; justify-content: center; align-items: center;
  width: max-content; max-width: calc(100% - 32px);
  margin: 14px auto 2px; padding: 9px 20px; font-size: 14px; color: #5f5647;
  background: rgba(250, 244, 229, 0.88);
  border: 1px solid rgba(168, 130, 63, 0.34);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(60, 45, 20, 0.10);
}
.rf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.rf-legend .dot {
  width: 14px; height: 4px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.10);
}
.rf-methodology-row { text-align: center; margin: 6px 0 0; }
.rf-methodology-btn {
  font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #6b5a34; background: transparent; border: none; cursor: pointer;
  border-bottom: 1px solid #c9a24e; padding: 2px 2px 3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.rf-methodology-btn:hover { color: #3a3327; border-color: #a8823f; }

/* Canvas */
.rf-canvas-wrap { overflow-x: auto; overflow-y: hidden; padding: 42px 0 36px; }
.rf-canvas { position: relative; }

.rf-canvas-sizer::before {
  content: '';
  position: absolute;
  inset: -32px -36px;
  z-index: 0;
  border-radius: 16px;
  background: radial-gradient(125% 92% at 50% 0%,
    rgba(255, 251, 240, 0.97) 0%,
    rgba(247, 240, 221, 0.95) 46%,
    rgba(234, 223, 195, 0.95) 100%);
  border: 1px solid rgba(150, 116, 54, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 253, 245, 0.9),
    inset 0 0 110px rgba(138, 104, 44, 0.14),
    0 20px 54px rgba(56, 42, 16, 0.22);
}

.rf-connectors { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.rf-conn { fill: none; stroke: #a8823f; stroke: var(--ec, #a8823f); stroke-width: 2.6; opacity: 0.95; stroke-linecap: round; }
.rf-conn-glow { fill: none; stroke: #fffaef; stroke-width: 8; opacity: 0.85; stroke-linecap: round; }
.rf-conn-influence { fill: none; stroke: #a89263; stroke-width: 1.8; opacity: 0.6; stroke-dasharray: 3 8; stroke-linecap: round; }
.rf-conn.lit { stroke-width: 4.4; opacity: 1; }
.rf-conn-glow.lit { stroke: #fffdf7; stroke-width: 12.5; opacity: 1; }
.rf-conn.dim, .rf-conn-glow.dim, .rf-conn-influence.dim { opacity: 0.08; }
.rf-conn-influence.lit { opacity: 0.95; stroke-width: 2.4; }

/* ---- Era bands + the time rail ---- */
.rf-band, .rf-era, .rf-rail, .rf-rail-tick, .rf-rail-arrow {
  position: absolute; z-index: 0; pointer-events: none;
}
.rf-band { right: 0; }
.rf-band--tint { background: linear-gradient(90deg, rgba(150,116,54,0.085), rgba(150,116,54,0.035)); }

.rf-era { left: 0; text-align: right; }
.rf-era-name {
  display: block; font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; line-height: 1.22; color: #6b5426; text-wrap: balance;
}
.rf-era-range {
  display: block; margin-top: 5px; font-family: 'Cinzel', serif; font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #a8823f;
}

.rf-rail {
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg,
    rgba(168,130,63,0) 0%, rgba(168,130,63,0.55) 5%,
    rgba(168,130,63,0.55) 95%, rgba(168,130,63,0) 100%);
}
.rf-rail-tick {
  box-sizing: border-box; width: 10px; height: 10px; border-radius: 50%;
  background: #f7f0e2; border: 2px solid #b8974e;
}
.rf-rail-arrow {
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 8px solid rgba(168,130,63,0.75);
}

/* Plaque cards */
.rf-card {
  position: absolute; z-index: 2; box-sizing: border-box; min-height: 118px;
  background: linear-gradient(165deg, #fdf8ec 0%, #f7eed6 58%, #f1e5c6 100%);
  border: 1px solid #ab8646;
  border-color: color-mix(in srgb, var(--fc, #ab8646) 42%, #ab8646);
  border-radius: 8px;
  padding: 15px 16px 24px; text-align: center; cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,252,0.9),
    inset 0 0 0 4px #e3d1a0,
    inset 0 1px 0 5px rgba(255,255,255,0.5),
    0 10px 24px rgba(62,46,16,0.20);
  transition: transform 150ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.rf-card::after {
  content: ''; position: absolute; left: 8px; right: 8px; top: 8px; bottom: 8px;
  border: 1px solid rgba(184,151,78,0.35); border-radius: 4px; pointer-events: none;
}
.rf-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,252,0.9),
    inset 0 0 0 4px #ecd79f,
    0 0 0 3px rgba(184,151,78,0.26),
    0 0 0 3px color-mix(in srgb, var(--fc, #b8974e) 30%, transparent),
    0 18px 34px rgba(62,46,16,0.26);
}
.rf-card-fam {
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  border-top-left-radius: 8px; border-top-right-radius: 8px;
  background: var(--fc, #a8823f);
  background: linear-gradient(90deg, transparent, var(--fc, #a8823f) 16%, var(--fc, #a8823f) 84%, transparent);
}
.rf-card-ord {
  position: absolute; top: 11px; left: 13px;
  font-family: 'Cinzel', serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; color: #a98f57;
  color: color-mix(in srgb, var(--fc, #a98f57) 60%, #8a7038);
  opacity: 0.7;
}
.rf-card-medallion {
  width: 42px; height: 42px; margin: 2px auto 8px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #a8823f; color: var(--fc, #a8823f);
  background: radial-gradient(circle at 40% 35%, #fbf4e2, #ecd9a9);
  box-shadow: inset 0 0 0 1px #d8bd7e, 0 1px 3px rgba(120,90,30,0.2);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--fc, #d8bd7e) 55%, #d8bd7e), 0 1px 3px rgba(120,90,30,0.2);
}
.rf-card-medallion svg { width: 21px; height: 21px; }
.rf-card-medallion img, .rf-drawer-medallion img, .rf-tl-dot img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}
.rf-card-name { font-family: 'Cinzel', serif; font-size: 16.5px; font-weight: 600; line-height: 1.18; color: #4f3a12; margin: 0; text-wrap: balance; }
.rf-card-date { font-family: 'Cinzel', serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #a8823f; color: var(--fc, #a8823f); margin: 4px 0 7px; }
.rf-card-desc {
  font-size: 14px; line-height: 1.45; color: #544b39; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.rf-card-explore {
  position: absolute; left: 0; right: 0; bottom: 6px; margin: 0;
  font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #a8823f; opacity: 0; transition: opacity 150ms ease;
}
.rf-card:hover .rf-card-explore, .rf-card:focus-visible .rf-card-explore { opacity: 1; }

.rf-card-tag {
  display: inline-block; margin-top: 8px; font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #8a7038;
  background: #efe3c6; border: 1px solid #d8c290; padding: 2px 8px; border-radius: 3px;
}

/* The spark — the hinge of the whole poster gets a gilded seal. */
.rf-card--spark {
  background: linear-gradient(165deg, #f8eed2 0%, #efe1b9 60%, #e8d7a8 100%);
  border-color: #a9863c;
  box-shadow:
    inset 0 0 0 1px rgba(255,252,240,0.9),
    inset 0 0 0 4px #d9c084,
    0 14px 34px rgba(70,50,14,0.28);
}
.rf-card--spark::after { border-color: rgba(169,134,60,0.45); }
.rf-card--spark .rf-card-name { color: #5b4212; }
.rf-card--spark .rf-card-medallion {
  color: #6b4f1e;
  background: radial-gradient(circle at 38% 32%, #fdf1c8, #ddbe6a 68%, #c2a04c);
  box-shadow: inset 0 0 0 2px #b9954a, 0 2px 6px rgba(120,90,30,0.32);
}
.rf-card--spark .rf-card-tag { color: #6b4f1e; background: #ecd79f; border-color: #c2a04c; }

/* The Five Solas — bright gold watchword tiles. */
.rf-card--sola {
  background: linear-gradient(165deg, #fbf1d6 0%, #f4e5bd 100%);
  border-color: #c2a04c;
}
.rf-card--sola .rf-card-name { font-style: italic; color: #6b4f1e; }
.rf-card--sola .rf-card-tag { color: #6b4f1e; background: #ecd79f; border-color: #c2a04c; }

/* Confessions — parchment "document" tone with the family accent kept. */
.rf-card--confession {
  background: linear-gradient(165deg, #fbf6ea 0%, #f2ead6 100%);
}
.rf-card--confession .rf-card-tag { color: #5f5647; background: #ece4d2; border-color: #cfc2a2; }

/* Turning points — a cooler bronze, factual. */
.rf-card--event {
  background: linear-gradient(165deg, #f6efdd 0%, #ece0c4 100%);
  border-color: #b09154;
}
.rf-card--event .rf-card-name { font-style: italic; color: #5b4d2a; }
.rf-card--event .rf-card-tag { color: #6b5a34; background: #e8dcc0; border-color: #c9b585; }

/* The honest reckoning — sober slate/ash, so it reads as gravity, not glory.
   Deliberately NOT the "outside Christianity" styling from /traditions: these
   are hard truths within the story, described and not defended. */
.rf-card--honest {
  background: linear-gradient(165deg, #eeeae3 0%, #e2ddd3 100%);
  border-color: #9b968c;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,252,0.8),
    inset 0 0 0 4px #d4cfc4,
    0 8px 20px rgba(50,46,38,0.18);
}
.rf-card--honest::after { border-color: rgba(120,114,102,0.3); }
.rf-card--honest .rf-card-name { color: #4a453d; }
.rf-card--honest .rf-card-date { color: #7a746a; }
.rf-card--honest .rf-card-medallion {
  color: #6f6a60;
  background: radial-gradient(circle at 40% 35%, #f2efe9, #d6d1c6);
  box-shadow: inset 0 0 0 2px #b7b1a5, 0 1px 3px rgba(80,74,64,0.2);
}
.rf-card--honest .rf-card-tag { color: #6a655c; background: #e0dbd1; border-color: #b7b1a5; }
.rf-card--honest .rf-card-explore { color: #8a8478; }

/* Highlight states */
.rf-card.lit {
  box-shadow:
    inset 0 0 0 1px rgba(255,253,246,0.9), inset 0 0 0 4px #ecca6a,
    0 0 0 3px rgba(200,160,60,0.35),
    0 0 0 3px color-mix(in srgb, var(--fc, #c8a03c) 40%, transparent),
    0 8px 22px rgba(120,90,30,0.24);
}
.rf-card.selected {
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255,253,246,0.9), inset 0 0 0 4px #dca934,
    0 0 0 4px rgba(168,130,63,0.55),
    0 0 0 4px color-mix(in srgb, var(--fc, #a8823f) 60%, transparent),
    0 14px 34px rgba(120,90,30,0.32);
}
.rf-card.dim { opacity: 0.26; filter: saturate(0.55); }

/* Honest-layer divider — the caption sits on a chip so it stays legible. */
.rf-divider { position: absolute; z-index: 2; text-align: center; }
.rf-divider .rule { border-top: 1px dashed #b7b1a5; margin: 0 0 -15px; }
.rf-divider p {
  display: inline-block; position: relative; margin: 0;
  font-family: 'Cinzel', serif; font-size: 11.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: #5f5a51;
  background: #f2efe8; border: 1px solid rgba(120,114,102,0.34);
  border-radius: 999px; padding: 5px 16px;
}

/* Note plaque */
.rf-note {
  max-width: 420px; margin: 14px auto 0; text-align: center;
  background: linear-gradient(165deg, #faf3e2, #efe2c4); border: 1px solid #cdb987;
  box-shadow: inset 0 0 0 3px #e2d0a0, 0 4px 14px rgba(90,68,28,0.12); padding: 14px 20px;
}
.rf-note b { font-family: 'Cinzel', serif; color: #7a5e26; letter-spacing: 0.04em; }
.rf-note p { font-size: 14px; color: #6b6152; margin: 5px 0 0; line-height: 1.45; }

/* ---- Mobile vertical timeline (hidden on desktop) ---- */
.rf-timeline { display: none; max-width: 560px; margin: 8px auto 0; padding: 0 16px; position: relative; }
.rf-timeline::before { content: ''; position: absolute; left: 30px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, #d9bd76, #c9a24e); }
.rf-tl-item { position: relative; padding: 0 0 16px 56px; }
.rf-tl-dot {
  position: absolute; left: 20px; top: 20px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fbf4e2, #ecd9a9); color: #a8823f;
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px #d8bd7e, 0 1px 3px rgba(120,90,30,0.2);
}
.rf-tl-dot svg { width: 13px; height: 13px; }
.rf-tl-card {
  background: linear-gradient(165deg, #fdf8ec, #f1e5c6); border: 1px solid #b8974e; border-radius: 6px;
  border-left: 4px solid var(--fc, #b8974e);
  box-shadow: inset 0 0 0 3px #e3d1a0, 0 4px 12px rgba(90,68,28,0.14); padding: 13px 15px; cursor: pointer; text-align: left;
}
.rf-tl-card--honest { background: linear-gradient(165deg, #eeeae3, #e2ddd3); border-color: #9b968c; box-shadow: inset 0 0 0 3px #d4cfc4, 0 4px 12px rgba(50,46,38,0.14); }
.rf-tl-card--honest .rf-tl-name { color: #4a453d; }
.rf-tl-card--honest .rf-tl-date { color: #7a746a; }
.rf-tl-name { font-family: 'Cinzel', serif; font-size: 16px; font-weight: 600; color: #6b4f1e; margin: 0; }
.rf-tl-date { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: #a8823f; margin: 2px 0 6px; }
.rf-tl-desc { font-size: 15px; line-height: 1.4; color: #5f5647; margin: 0; }
.rf-tl-era {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 22px 0 12px 56px; padding-bottom: 6px;
  border-bottom: 1px dashed rgba(150,116,54,0.32);
}
.rf-tl-era:first-child { margin-top: 4px; }
.rf-tl-era-name { font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: #6b5426; }
.rf-tl-era-range { font-family: 'Cinzel', serif; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #a8823f; }

.rf-tl-divider { margin: 6px 0 16px 56px; }
.rf-tl-divider .rule { border-top: 1px dashed #b7b1a5; margin: 0 0 7px; }
.rf-tl-divider p { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6a655c; margin: 0; }

/* ---- Detail drawer ---- */
.rf-scrim { position: fixed; inset: 0; background: rgba(38,32,20,0.5); z-index: 1190; opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms; }
.rf-scrim.open { opacity: 1; visibility: visible; }
.rf-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 94vw);
  background: linear-gradient(180deg, #f7f0de, #f2e8d0); border-left: 2px solid #b89a5c; z-index: 1200;
  transform: translateX(100%); transition: transform 260ms ease; overflow-y: auto;
  box-shadow: -14px 0 44px rgba(60,45,20,0.24);
}
.rf-drawer.open { transform: translateX(0); }
.rf-drawer-head { position: relative; padding: 24px 26px 16px; border-bottom: 1px solid #e2d5b8; background: linear-gradient(180deg, rgba(255,250,236,0.6), transparent); }
.rf-drawer-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 4px; line-height: 0; }
.rf-drawer-close:hover { color: #2c2a26; }
.rf-drawer-medallion { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #a8823f; margin-bottom: 10px; background: radial-gradient(circle at 40% 35%, #fbf4e2, #ecd9a9); box-shadow: inset 0 0 0 1px #d8bd7e; }
.rf-drawer-medallion svg { width: 24px; height: 24px; }
.rf-drawer-name { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 700; color: #6b4f1e; margin: 0 0 4px; line-height: 1.12; }
.rf-drawer-meta { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #a8823f; margin: 0; }
.rf-drawer-body { padding: 18px 26px 34px; }
.rf-drawer-summary { font-size: 17px; line-height: 1.5; color: #4a4335; margin: 0 0 16px; }
.rf-drawer-row { display: flex; gap: 10px; font-size: 15px; color: #5f5647; padding: 8px 0; border-top: 1px solid #e6d9bd; }
.rf-drawer-row .k { font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: #a8823f; min-width: 96px; padding-top: 2px; }
.rf-drawer-row .v { flex: 1; }
.rf-drawer h3 { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5e26; margin: 20px 0 8px; }
.rf-drawer ul { margin: 0; padding-left: 18px; }
.rf-drawer li { font-size: 15px; color: #5f5647; line-height: 1.42; margin-bottom: 5px; }
.rf-callout { border-left: 3px solid #c9a24e; background: rgba(233,220,181,0.4); padding: 10px 14px; margin: 16px 0 0; }
.rf-callout .lbl { font-family: 'Cinzel', serif; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #a8823f; display: block; margin-bottom: 3px; }
.rf-callout p { font-size: 15px; line-height: 1.45; color: #4a4335; margin: 0; }
.rf-callout--myth { border-left-color: #b98f7e; background: rgba(226,202,190,0.35); }
.rf-callout--myth .lbl { color: #9a6a5a; }
.rf-callout--source { border-left-color: #8a9a6a; background: rgba(206,214,186,0.32); }
.rf-callout--source .lbl { color: #6f7d4a; }
.rf-drawer-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.rf-drawer-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 0.04em; color: #6b4f1e; background: #efe4ca; border: 1px solid #cdb987; padding: 12px 15px; text-decoration: none; transition: border-color 140ms ease, background 140ms ease; }
.rf-drawer-link:hover { border-color: #a8823f; background: #eaddbe; color: #6b4f1e; }
.rf-drawer-link i { color: #a8823f; }
.rf-drawer-trace {
  width: 100%; margin-top: 18px; font-family: 'Cinzel', serif; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: #fbf6ea;
  background: #a8823f; border: none; padding: 13px; cursor: pointer; transition: background 140ms ease;
}
.rf-drawer-trace:hover { background: #8a6d2f; }
@media (max-width: 760px) { .rf-drawer-trace { display: none; } }

/* Methodology modal */
.rf-modal-scrim { position: fixed; inset: 0; background: rgba(38,32,20,0.55); z-index: 1210; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 200ms; }
.rf-modal-scrim.open { opacity: 1; visibility: visible; }
.rf-modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: linear-gradient(180deg, #f8f1df, #f2e8d0); border: 1.5px solid #b89a5c; box-shadow: 0 18px 50px rgba(38,32,20,0.28); }
.rf-modal-head { position: relative; padding: 24px 28px 6px; text-align: center; }
.rf-modal-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; color: #8a7f68; cursor: pointer; padding: 4px; line-height: 0; }
.rf-modal-close:hover { color: #2c2a26; }
.rf-modal h2 { font-family: 'Cinzel', serif; font-size: 23px; font-weight: 700; color: #6b4f1e; margin: 0; }
.rf-modal-body { padding: 12px 28px 28px; }
.rf-modal-body p { font-size: 16px; line-height: 1.5; color: #4a4335; margin: 0 0 10px; }
.rf-modal-body ul { margin: 8px 0 0; padding-left: 20px; }
.rf-modal-body li { font-size: 15px; line-height: 1.45; color: #5f5647; margin-bottom: 7px; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .rf-canvas-wrap { display: none; }
  .rf-timeline { display: block; }
  .rf-hero { margin-top: 40px; }
  .rf-legend { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rf-card, .rf-drawer, .rf-scrim, .rf-conn, .rf-conn-glow, .rf-modal-scrim { transition: none; }
  html.scroll-smooth { scroll-behavior: auto; }
}
