@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  --night: #0b0d1a; --deep: #121530; --navy: #1a1e3e; --indigo: #2d2b55; --plum: #4a3f6b;
  --gold: #d4a843; --gold-light: #f0d68a; --cream: #faf8f3; --warm-white: #f5f2eb;
  --text: #2c2c3a; --text-sec: #5a5a72; --text-lt: #8888a0; --border: #e2dfd8;
  --fire: #c0392b; --fire-bg: #fdf2ef; --fire-bd: #e8a89c; --fire-row: #fef9f7;
  --earth: #3d7a4a; --earth-bg: #eef5f0; --earth-bd: #8bb89a; --earth-row: #f5faf6;
  --air: #4a7ea5; --air-bg: #edf2f7; --air-bd: #8badc9; --air-row: #f3f7fb;
  --water: #4a5aad; --water-bg: #ededf7; --water-bd: #8b8fc9; --water-row: #f3f3fa;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Source Sans 3', -apple-system, sans-serif; color: var(--text); background: #fff; line-height: 1.7; font-size: 15px; -webkit-font-smoothing: antialiased; }

/* === COVER === */
.cover { background: linear-gradient(170deg, var(--night) 0%, var(--deep) 30%, var(--navy) 60%, var(--indigo) 100%); color: #fff; text-align: center; padding: 80px 40px 60px; position: relative; overflow: hidden; min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.cover::before { content: ''; position: absolute; inset: 0; background: radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.6), transparent), radial-gradient(1.5px 1.5px at 40% 15%, rgba(255,255,255,.7), transparent), radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1.5px 1.5px at 85% 55%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,.4), transparent), radial-gradient(1px 1px at 50% 90%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,.3), transparent), radial-gradient(1.5px 1.5px at 60% 80%, rgba(255,255,255,.4), transparent), radial-gradient(2px 2px at 45% 40%, rgba(212,168,67,.4), transparent), radial-gradient(2px 2px at 75% 50%, rgba(212,168,67,.3), transparent); pointer-events: none; }
.cover svg.cover-wheel { position: relative; z-index: 1; margin-bottom: 32px; filter: drop-shadow(0 0 20px rgba(212,168,67,.15)); }
.cover h1 { font-family: 'Playfair Display', serif; font-size: 48px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; z-index: 1; position: relative; }
.cover .sub { font-family: 'Playfair Display', serif; font-size: 20px; font-style: italic; color: var(--gold-light); margin-bottom: 40px; z-index: 1; position: relative; }
.cover .line { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 16px; z-index: 1; position: relative; }
.cover .tag { font-size: 12px; color: rgba(255,255,255,.45); letter-spacing: 4px; text-transform: uppercase; z-index: 1; position: relative; }

/* === CONTENT === */
.c { max-width: 760px; margin: 0 auto; padding: 50px 36px 70px; }

/* === PREPARED FOR === */
.prepared { margin-bottom: 40px; padding: 28px 32px; background: var(--cream); border-radius: 10px; border: 1px solid var(--border); }
.prepared h2 { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--text-lt); margin-bottom: 18px; }
.prep-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.prep-field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.prep-field .blank { display: block; border-bottom: 1.5px solid var(--border); min-height: 28px; font-size: 15px; color: var(--text); padding: 2px 0; }
.prep-field.full { grid-column: 1 / -1; }

/* === WORKSHEET === */
.ws { margin-top: 56px; }
.ws-field { margin-bottom: 20px; }
.ws-field label { display: block; font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ws-field .ws-lines { border: 1px solid var(--border); border-radius: 8px; background: var(--cream); min-height: 60px; padding: 12px 16px; }
.ws-field .ws-lines .ln { border-bottom: 1px solid #e2dfd8; min-height: 28px; padding: 4px 0; font-size: 14px; color: var(--text-sec); }
.ws-field .ws-lines .ln:last-child { border-bottom: none; }
.ws-insert { text-align: center; padding: 40px 20px; border: 2px dashed var(--border); border-radius: 10px; margin: 20px 0; color: var(--text-lt); font-size: 14px; font-style: italic; }

/* === TOC === */
.toc { margin-bottom: 50px; padding: 30px 32px; background: var(--cream); border-radius: 10px; border: 1px solid var(--border); display: none; }
.toc h2 { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; letter-spacing: 4px; text-transform: uppercase; color: var(--text-lt); text-align: center; margin-bottom: 20px; }
.toc ol { list-style: none; columns: 2; column-gap: 32px; }
.toc li { padding: 4px 0; font-size: 14px; color: var(--text-sec); break-inside: avoid; }
.toc .n { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--gold); margin-right: 6px; }

/* === SECTIONS === */
.s { margin-top: 56px; }
.sh { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sh .n { font-family: 'Playfair Display', serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 4px; }
.sh h2 { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--night); line-height: 1.2; }
h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
h4 { font-size: 15px; font-weight: 600; margin: 14px 0 4px; }
p { margin-bottom: 12px; color: var(--text-sec); }
strong { color: var(--text); }
ul, ol { margin: 6px 0 14px 22px; color: var(--text-sec); }
li { margin-bottom: 3px; }

/* === DROP CAPS === */
.dc::first-letter { font-family: 'Playfair Display', serif; float: left; font-size: 3.4em; line-height: 1; padding-right: 8px; padding-top: 4px; color: var(--navy); font-weight: 700; }

/* === SECTION DIVIDERS === */
.divider { text-align: center; margin: 56px 0 0; padding: 0; color: var(--gold); opacity: .35; font-size: 11px; letter-spacing: 6px; }
.divider::before { content: '\2726  \2727  \2726  \2727  \2726'; }

/* === FORMULA === */
.f { text-align: center; font-family: 'Playfair Display', serif; font-size: 18px; font-style: italic; color: var(--navy); margin: 22px 0; padding: 16px; background: var(--cream); border-radius: 8px; border: 1px solid var(--border); }

/* === CALLOUT === */
.cb { background: var(--cream); border-left: 3px solid var(--gold); padding: 14px 18px; margin: 16px 0; border-radius: 0 8px 8px 0; font-size: 14px; }
.cb strong { color: var(--navy); }
.cb.tip { border-left-color: #7a9e7a; background: #f4f8f4; }

/* === TIME UNKNOWN BANNER === */
.time-unknown-banner { background: linear-gradient(135deg, #2d2b55, #1a1e3e); border: 1px solid var(--gold); border-radius: 10px; padding: 16px 22px; margin-bottom: 28px; font-size: 14px; color: var(--gold-light); line-height: 1.6; }
.time-unknown-banner strong { color: var(--gold); }

/* === DIAGRAM CONTAINERS === */
.diagram { text-align: center; margin: 24px 0; }
.diagram svg { max-width: 100%; height: auto; }
.diagram-caption { font-size: 12px; color: var(--text-lt); margin-top: 8px; font-style: italic; }

/* === TABLES === */
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 18px; font-size: 13px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
th { background: var(--navy); color: rgba(255,255,255,.9); font-weight: 500; text-align: left; padding: 8px 12px; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; border-bottom: 2px solid var(--gold); }
td { padding: 7px 12px; border-bottom: 1px solid #eee; vertical-align: top; color: var(--text-sec); }
tr:last-child td { border-bottom: none; }
td:first-child { color: var(--text); font-weight: 500; }
td.g { font-size: 18px; text-align: center; width: 36px; vertical-align: middle; }

/* Table hover states + alternating rows */
tbody tr:nth-child(even) td { background-color: rgba(0,0,0,.02); }
tbody tr:hover td { background-color: rgba(212,168,67,.08); transition: background-color .15s; }
body.dark-mode tbody tr:nth-child(even) td { background-color: rgba(255,255,255,.02); }
body.dark-mode tbody tr:hover td { background-color: rgba(212,168,67,.1); }

/* Color-coded zodiac rows */
tr.fire td { background: var(--fire-row); }
tr.fire td.g { color: var(--fire); }
tr.earth td { background: var(--earth-row); }
tr.earth td.g { color: var(--earth); }
tr.air td { background: var(--air-row); }
tr.air td.g { color: var(--air); }
tr.water td { background: var(--water-row); }
tr.water td.g { color: var(--water); }

/* === GRIDS === */
.grid1 { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 14px 0; }

.gc { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.gc h4 { margin: 0 0 2px; font-size: 14px; }
.gc p { font-size: 13px; margin: 0; line-height: 1.5; }

/* Planet cards */
.pc { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.pc .pg { font-size: 22px; color: var(--gold); line-height: 1; }
.pc h4 { margin: 0; font-size: 14px; }
.pc .kw { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .5px; }
.pc p { font-size: 13px; margin: 2px 0 0; line-height: 1.45; }

/* Category label */
.cat { background: linear-gradient(135deg, var(--navy), var(--indigo)); color: #fff; padding: 10px 18px; border-radius: 8px; margin: 24px 0 12px; }
.cat h3 { color: #fff; margin: 0; font-size: 16px; }
.cat span { color: rgba(255,255,255,.6); font-size: 12px; }

/* House mini-card */
.hc { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.hc .num { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--gold); float: left; margin-right: 10px; line-height: 1; }
.hc .name { font-weight: 600; font-size: 13px; color: var(--navy); }
.hc p { font-size: 12.5px; margin: 2px 0 0; line-height: 1.45; }

/* Element cards */
.ec { border-radius: 8px; padding: 14px 16px; border: 1px solid; }
.ec .el-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.ec h4 { margin: 0; font-family: 'Playfair Display', serif; font-size: 16px; }
.ec .signs { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.ec p { font-size: 13px; margin: 0; line-height: 1.5; }
.ec.fire { background: var(--fire-bg); border-color: var(--fire-bd); } .ec.fire h4, .ec.fire .signs { color: var(--fire); }
.ec.earth { background: var(--earth-bg); border-color: var(--earth-bd); } .ec.earth h4, .ec.earth .signs { color: var(--earth); }
.ec.air { background: var(--air-bg); border-color: var(--air-bd); } .ec.air h4, .ec.air .signs { color: var(--air); }
.ec.water { background: var(--water-bg); border-color: var(--water-bd); } .ec.water h4, .ec.water .signs { color: var(--water); }

/* Modality cards */
.mc { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; text-align: center; }
.mc h4 { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--navy); margin: 0 0 1px; }
.mc .role { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.mc .signs { font-size: 12px; color: var(--plum); margin: 4px 0; font-weight: 500; }
.mc p { font-size: 12.5px; margin: 4px 0 0; text-align: left; }

/* Aspect cards */
.ac { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; position: relative; }
.ac h4 { margin: 0; font-family: 'Playfair Display', serif; font-size: 15px; }
.ac .deg { position: absolute; top: 10px; right: 12px; font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: rgba(0,0,0,.12); }
.ac .nt { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; display: inline-block; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; }
.ac .nt.h { color: var(--earth); background: var(--earth-bg); }
.ac .nt.t { color: var(--fire); background: var(--fire-bg); }
.ac .nt.n { color: var(--plum); background: #f0edf5; }
.ac p { font-size: 12.5px; margin: 0; }
.ac.maj { border-color: var(--gold); border-width: 2px; box-shadow: 0 2px 8px rgba(212,168,67,.12); }
.ac:not(.maj) { border-style: dashed; opacity: .85; }

/* Polarity */
.pol { background: var(--cream); border-radius: 10px; padding: 16px 20px; margin: 14px 0; border: 1px solid var(--border); }
.pr { display: grid; grid-template-columns: 1fr 80px 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.pr:last-child { border-bottom: none; }
.pr .l { text-align: right; color: var(--plum); }
.pr .m { text-align: center; font-family: 'Playfair Display', serif; font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .5px; text-transform: uppercase; line-height: 1.3; }
.pr .r { text-align: left; color: var(--air); }
.pr strong { display: block; color: var(--text); font-size: 12px; }

/* Checklist */
.cl { margin: 16px 0; }
.ci { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; align-items: start; }
.ci:last-child { border-bottom: none; }
.ci .st { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ci h4 { margin: 0; font-size: 14px; }
.ci p { margin: 0; font-size: 13px; }

/* Glyph grid */
.gg { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 14px 0; }
.gi { text-align: center; padding: 8px 4px; background: var(--cream); border-radius: 6px; border: 1px solid var(--border); }
.gi .sy { font-size: 20px; display: block; color: var(--plum); }
.gi .nm { font-size: 12px; color: var(--text-sec); }

/* Footer */
.ft { text-align: center; margin-top: 50px; padding: 30px 20px; background: var(--navy); color: rgba(255,255,255,.5); font-size: 12px; border-radius: 10px; }
.ft .z { font-size: 16px; letter-spacing: 5px; color: var(--gold); opacity: .4; margin-bottom: 8px; }

/* === INPUT FORM === */
.birth-form { z-index: 1; position: relative; width: 100%; max-width: 440px; margin: 0 auto; text-align: left; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.birth-form label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.birth-form input { width: 100%; padding: 12px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(212,168,67,.3); border-radius: 8px; color: #fff; font-family: 'Source Sans 3', sans-serif; font-size: 15px; transition: border-color .2s; }
.birth-form input::placeholder { color: rgba(255,255,255,.3); }
.birth-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
.birth-form button { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold), #c09530); color: var(--night); font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; border: none; border-radius: 8px; cursor: pointer; margin-top: 8px; transition: transform .15s, box-shadow .15s; }
.birth-form button:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(212,168,67,.4); }
/* Style date/time inputs on webkit */
.birth-form input[type="date"]::-webkit-calendar-picker-indicator,
.birth-form input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.5); }

/* Checkbox: "I don't know my birth time" */
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 400; letter-spacing: .5px; text-transform: none; color: var(--gold-light); user-select: none; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkbox-label .checkmark { width: 20px; height: 20px; border: 1.5px solid rgba(212,168,67,.4); border-radius: 4px; background: rgba(255,255,255,.06); flex-shrink: 0; position: relative; transition: border-color .2s, background .2s; }
.checkbox-label input[type="checkbox"]:checked + .checkmark { border-color: var(--gold); background: rgba(212,168,67,.2); }
.checkbox-label input[type="checkbox"]:checked + .checkmark::after { content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 14px; font-weight: 700; }
.checkbox-hint { display: none; margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.4); font-style: italic; letter-spacing: 0; }

/* === Kerykeion SVG overrides === */
.diagram svg { max-width: 600px; }

@media (max-width: 600px) {
  .cover h1 { font-size: 32px; }
  .c { padding: 24px 16px 40px; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
  .gg { grid-template-columns: repeat(4, 1fr); }
  .dc::first-letter { font-size: 2.8em; }
  .form-row { grid-template-columns: 1fr; }
  .prep-fields { grid-template-columns: 1fr; }
}
/* === DOWNLOAD BUTTONS === */
.download-bar { display: flex; gap: 10px; margin-top: 16px; }
.dl-btn { padding: 10px 20px; font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 600; border: 1.5px solid var(--gold); background: transparent; color: var(--gold); border-radius: 6px; cursor: pointer; transition: all .2s; }
.dl-btn:hover { background: var(--gold); color: var(--night); }
.dl-csv { border-color: var(--navy); color: var(--navy); }
.dl-csv:hover { background: var(--navy); color: #fff; }

/* === SYNASTRY: Link on index page === */
.syn-link { text-align: center; margin-top: 12px; z-index: 1; position: relative; }
.syn-link a { color: var(--gold-light); text-decoration: none; font-size: 14px; opacity: .7; transition: opacity .2s; }
.syn-link a:hover { opacity: 1; }

/* === SYNASTRY: Two-person form === */
.syn-form { max-width: 820px; }
.syn-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 8px; }
.syn-person { position: relative; }
.syn-person-label { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--gold); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(212,168,67,.2); text-align: center; letter-spacing: 1px; }

/* === SYNASTRY: Prepared-for grid (two columns) === */
.syn-prep-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; }
.syn-prep-col { }
.syn-prep-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 12px; text-align: center; }
.syn-prep-divider { width: 1px; background: var(--border); }

/* === SYNASTRY: Compatibility score ring === */
.syn-score-ring { text-align: center; margin: 24px auto; position: relative; width: 180px; height: 180px; }
.syn-score-svg { width: 180px; height: 180px; }
.syn-score-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 700; color: var(--navy); }
.syn-score-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, 40%); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

/* === SYNASTRY: Score breakdown cards === */
.syn-score-breakdown { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0; }

/* === SYNASTRY: Element comparison bars === */
.syn-element-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.syn-bar-pair { margin-top: 8px; }
.syn-bar-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.syn-bar-name { font-size: 11px; font-weight: 600; color: var(--text-sec); min-width: 60px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.syn-bar-track { flex: 1; height: 10px; background: rgba(0,0,0,.06); border-radius: 5px; overflow: hidden; }
.syn-bar-fill { height: 100%; border-radius: 5px; transition: width .3s ease; min-width: 2px; }
.syn-bar-val { font-size: 12px; font-weight: 700; min-width: 18px; color: var(--text); }

/* Bar fill colors by element */
.syn-bar-fire { background: var(--fire); }
.syn-bar-earth { background: var(--earth); }
.syn-bar-air { background: var(--air); }
.syn-bar-water { background: var(--water); }
.syn-bar-mod { background: var(--navy); }

@media (max-width: 600px) {
  .syn-columns { grid-template-columns: 1fr; gap: 16px; }
  .syn-prep-grid { grid-template-columns: 1fr; }
  .syn-prep-divider { width: 100%; height: 1px; }
  .syn-element-grid { grid-template-columns: 1fr; }
  .syn-score-breakdown { grid-template-columns: 1fr; }
}

/* === LOADING SPINNER === */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(0,0,0,.15); border-top-color: var(--night); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.birth-form button:disabled, .syn-form button:disabled { opacity: .7; cursor: wait; }

/* === SYNASTRY OVERVIEW === */
.syn-overview { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.syn-overview .syn-score-ring { width: auto; height: auto; margin: 0; flex-shrink: 0; }
.syn-overview .syn-stats { flex: 1; min-width: 200px; }
.syn-bar-label { font-size: 12px; font-weight: 600; color: var(--text-sec); min-width: 60px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.syn-compare-bar { background: var(--cream); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 14px 0; }

@media print {
  /* === PAGE SETUP === */
  @page { size: letter; margin: 0.6in 0.7in; }

  /* === RESET FOR PRINT === */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; color-adjust: exact !important; }
  body { font-size: 11pt; line-height: 1.5; color: #1a1a2e !important; background: #fff !important; }

  /* === HIDE INTERACTIVE ELEMENTS === */
  .dark-toggle, .download-bar, .dl-btn, .dl-csv, .share-url-bar, .copy-btn,
  .loading-screen, .accordion-trigger, .accordion-controls, .compare-cta,
  .daily-focus, .syn-link, .back-to-top, .progress-bar, .toc-pill,
  .toc-sheet, .toc-sheet-backdrop, .planet-tooltip,
  a[href="/"], a[href="/compatibility"] { display: none !important; }

  /* === FORCE ALL ACCORDIONS OPEN === */
  .accordion-content { max-height: none !important; overflow: visible !important; display: block !important; opacity: 1 !important; }

  /* === COVER PAGE === */
  .cover { min-height: auto; padding: 60px 40px 40px; page-break-after: always; background: #0b0d1a !important; color: #fff !important; }
  .cover h1 { font-size: 28pt; }
  .cover .sub { font-size: 12pt; }
  .cover .tag { font-size: 9pt; }
  .cover .line { background: #d4a843 !important; }

  /* === CONTENT CONTAINER === */
  .c { max-width: 100%; padding: 0; }

  /* === TYPOGRAPHY — optimized for print === */
  h2 { font-size: 16pt; color: #1a1a2e !important; }
  h3 { font-size: 13pt; color: #1a1a2e !important; }
  h4 { font-size: 11pt; }
  .sh h2 { font-size: 18pt; border-bottom: 1.5pt solid #d4a843; padding-bottom: 4pt; color: #1a1a2e !important; }
  .sh .n { font-size: 9pt; color: #8888a0 !important; }
  .dc::first-letter { font-size: 2.8em; color: #1a1e3e !important; opacity: 1 !important; }
  p { font-size: 11pt; orphans: 3; widows: 3; }

  /* === SECTIONS — smart page breaks === */
  .s { opacity: 1 !important; transform: none !important; margin-top: 24pt; page-break-inside: avoid; }
  .divider { display: none; }

  /* === TOC — print as clean list === */
  .toc { display: block !important; position: static !important; width: auto !important; height: auto !important; background: #f8f6f0 !important; border: 1pt solid #e0ddd5 !important; padding: 16pt 20pt; margin-bottom: 20pt; page-break-after: always; border-radius: 0 !important; }
  .toc h2 { font-size: 14pt; margin-bottom: 8pt; color: #1a1a2e !important; }
  .toc ol { columns: 2; column-gap: 20pt; }
  .toc li { font-size: 10pt; break-inside: avoid; margin-bottom: 4pt; }
  .toc li a { color: #1a1a2e !important; text-decoration: none !important; }

  /* === CARDS — clean print borders === */
  .gc, .pc, .hc, .mc, .ec, .ac { background: #fff !important; border: 0.5pt solid #d0cdc5 !important; border-radius: 4pt !important; page-break-inside: avoid; margin-bottom: 8pt; box-shadow: none !important; }
  .gc:hover, .pc:hover, .hc:hover, .mc:hover, .ec:hover, .ac:hover { transform: none !important; box-shadow: none !important; }

  /* === GRIDS — 2-column on print === */
  .grid2 { grid-template-columns: 1fr 1fr; gap: 8pt; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; gap: 8pt; }

  /* === CALLOUT BOXES === */
  .cb { background: #f8f6f0 !important; border-left: 3pt solid #d4a843 !important; padding: 8pt 12pt; page-break-inside: avoid; color: #1a1a2e !important; }
  .cb strong { color: #1a1a2e !important; }
  .cb.tip { background: #f0f5ef !important; border-left-color: #3d7a4a !important; }

  /* === PLAIN ENGLISH SUMMARIES === */
  .pe-section-summary { background: #faf8f0 !important; border-left: 2pt solid #d4a843 !important; padding: 8pt 12pt; margin-bottom: 12pt; page-break-inside: avoid; }
  .pe-section-summary strong { color: #1a1a2e !important; }
  .plain-english { page-break-inside: avoid; }

  /* === PREPARED FOR / OVERVIEW === */
  .prepared { background: #f8f6f0 !important; border: 0.5pt solid #d0cdc5 !important; padding: 16pt; page-break-inside: avoid; }
  .prep-field label { color: #5a5a72 !important; }
  .prep-field .blank { color: #1a1a2e !important; }

  /* === CHARTS & DIAGRAMS === */
  .diagram, .element-donut, .aspect-web { page-break-inside: avoid; }
  .diagram svg { max-width: 100%; height: auto; }

  /* === SYNASTRY-SPECIFIC === */
  .syn-overview { page-break-inside: avoid; }
  .syn-score-ring text { fill: #1a1a2e !important; }
  .syn-compare-bar { page-break-inside: avoid; }
  .syn-bar-label { color: #1a1a2e !important; }
  .syn-bar-val { color: #1a1a2e !important; }

  /* === ASPECT NATURE TAGS === */
  .nt { border: 0.5pt solid currentColor !important; }
  .nt.h { color: #3d7a4a !important; background: #f0f5ef !important; }
  .nt.t { color: #c0392b !important; background: #fdf2ef !important; }
  .nt.n { color: #4a3f6b !important; background: #f0eef5 !important; }

  /* === ELEMENT COLORS (force for print) === */
  .ec { border-left: 3pt solid currentColor !important; }

  /* === LIFESTYLE SECTION === */
  .lifestyle-section { page-break-before: always; background: #f8f6f0 !important; padding: 20pt !important; }
  .lifestyle-card { background: #fff !important; border: 0.5pt solid #d0cdc5 !important; page-break-inside: avoid; }
  .lifestyle-tag { background: #f0eee8 !important; color: #1a1a2e !important; border: 0.5pt solid #d0cdc5 !important; }

  /* === TABLES === */
  table { page-break-inside: avoid; }
  th { background: #1a1e3e !important; color: #fff !important; }
  td { color: #1a1a2e !important; border-color: #d0cdc5 !important; }

  /* === FOOTER === */
  .ft { page-break-before: always; text-align: center; padding: 20pt 0; border-top: 0.5pt solid #d0cdc5; }
  .ft .z { font-size: 16pt; letter-spacing: 6pt; color: #d4a843 !important; }

  /* === LINKS — show URLs in print === */
  .c a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #8888a0; }
  .toc a[href]::after { content: none; }

  /* === DEGREE BADGE (make visible in print) === */
  .deg { color: rgba(0,0,0,.15) !important; }

  /* === NAV LINKS AT BOTTOM === */
  p:last-of-type a[href="/"], p:last-of-type a[href="/compatibility"] { display: none !important; }
  .c + p { display: none !important; }
}

/* === DARK MODE === */
body.dark-mode {
  --night: #0a0c14; --deep: #0f1118; --navy: #1a1d2e; --indigo: #2d2b55; --plum: #6a5f8b;
  --gold: #e0b84d; --gold-light: #f0d68a; --cream: #1a1d2e; --warm-white: #151828;
  --text: #e0ddd5; --text-sec: #b0aec0; --text-lt: #9898b0; --border: #2a2d3e;
  --fire: #e05a4e; --fire-bg: #2a1815; --fire-bd: #5a2820; --fire-row: #1e1412;
  --earth: #5aaa6a; --earth-bg: #152a1a; --earth-bd: #285a35; --earth-row: #121e14;
  --air: #6a9ec5; --air-bg: #152030; --air-bd: #284a6a; --air-row: #121820;
  --water: #6a7acd; --water-bg: #15182a; --water-bd: #283060; --water-row: #12141e;
}
body.dark-mode { background: var(--deep); }
body.dark-mode .cover { background: linear-gradient(170deg, #050710 0%, #0a0c14 30%, #0f1220 60%, #1a1840 100%); }
body.dark-mode table th { background: #1a1d2e; }
body.dark-mode td { border-bottom-color: #2a2d3e; }
body.dark-mode .gc, body.dark-mode .pc, body.dark-mode .hc, body.dark-mode .mc, body.dark-mode .ec, body.dark-mode .ac { background: #1e2135; border-color: var(--border); }
body.dark-mode .cb { background: #1e2135; border-left-color: var(--gold); }
body.dark-mode .cb.tip { background: #1a2518; border-left-color: #5a8a5a; }
body.dark-mode .ft { background: #0f1118; }
body.dark-mode .prepared, body.dark-mode .toc { background: var(--cream); border-color: var(--border); }
body.dark-mode .pol { background: var(--cream); border-color: var(--border); }
body.dark-mode .pr { border-bottom-color: var(--border); }
body.dark-mode .ws-field .ws-lines { background: var(--cream); border-color: var(--border); }
body.dark-mode .ws-field .ws-lines .ln { border-bottom-color: var(--border); }
/* Dark mode text contrast fixes */
body.dark-mode .sh h2 { color: var(--text); }
body.dark-mode h3 { color: var(--gold-light); }
body.dark-mode .dc::first-letter { color: var(--gold); opacity: .5; }
body.dark-mode .f { color: var(--gold-light); }
body.dark-mode .cb strong { color: var(--gold-light); }
body.dark-mode .hc .name { color: var(--gold-light); }
body.dark-mode .mc h4 { color: var(--gold-light); }
body.dark-mode .ws-field label { color: var(--gold-light); }
body.dark-mode .syn-prep-name { color: var(--text); }
body.dark-mode .syn-score-value { color: var(--text); }
body.dark-mode .dl-csv { border-color: var(--gold); color: var(--gold); }
body.dark-mode .cat { background: linear-gradient(135deg, #1a1d2e, #2d2b55); }
body.dark-mode .f { background: var(--cream); border-color: var(--border); }
body.dark-mode .diagram svg text { fill: var(--text-lt); }
body.dark-mode a { color: var(--gold); }
body.dark-mode .birth-form input { background: rgba(255,255,255,.06); border-color: rgba(212,168,67,.25); }
body.dark-mode .syn-compare-bar { background: var(--cream); border-color: var(--border); }
/* Synastry dark mode fixes */
body.dark-mode .syn-score-ring text { fill: var(--text); }
body.dark-mode .syn-bar-label { color: var(--text); }
body.dark-mode .syn-bar-val { color: var(--gold-light); }
body.dark-mode .syn-bar-track { background: rgba(255,255,255,.08); }
body.dark-mode .syn-overview { border-color: var(--border); }
body.dark-mode .deg { color: rgba(255,255,255,.08); }

/* Synastry aspect type headings */
h3.aspect-harmonious { color: var(--earth); }
h3.aspect-tension { color: var(--fire); }
h3.aspect-neutral { color: var(--plum); }
body.dark-mode h3.aspect-harmonious { color: #6aad7a; }
body.dark-mode h3.aspect-tension { color: #e07060; }
body.dark-mode h3.aspect-neutral { color: #9a8abf; }

/* Synastry person profile cards */
.gc.person-1 { border-left: 3px solid var(--gold); }
.gc.person-2 { border-left: 3px solid var(--plum); }
.gc .person-meta { font-size: 12px; font-weight: 600; }
.gc .person-meta.gold { color: var(--gold); }
.gc .person-meta.plum { color: var(--plum); }

/* Synastry summary text */
.syn-summary { margin-top: 14px; font-size: 14px; }

/* Synastry aspect subtitle */
.aspect-subtitle { font-size: 13px; color: var(--text-sec); }

/* Synastry cross-aspect detail */
.cross-detail { font-size: 12px; color: var(--text-lt); }
.syn-bar-names { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-lt); margin-top: 4px; }
.bar-label { font-size: 10px; font-weight: 700; color: #fff; }

/* === DARK TOGGLE BUTTON === */
.dark-toggle { position: fixed; top: 16px; right: 16px; z-index: 1000; background: rgba(255,255,255,.1); border: 1px solid rgba(212,168,67,.3); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; backdrop-filter: blur(8px); }
.dark-toggle:hover { background: rgba(212,168,67,.2); transform: scale(1.1); }
.dark-toggle-icon { font-size: 18px; color: var(--gold-light); line-height: 1; }
body.dark-mode .dark-toggle { background: rgba(0,0,0,.3); border-color: rgba(212,168,67,.4); }

/* === ACCORDION === */
.accordion-trigger { background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; display: flex; align-items: center; }
.accordion-icon { display: inline-block; width: 20px; height: 20px; position: relative; transition: transform .3s ease; }
.accordion-icon::before, .accordion-icon::after { content: ''; position: absolute; background: var(--gold); border-radius: 1px; transition: transform .3s ease; }
.accordion-icon::before { width: 12px; height: 2px; top: 9px; left: 4px; }
.accordion-icon::after { width: 2px; height: 12px; top: 4px; left: 9px; }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(90deg); opacity: 0; }
.sh { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.sh .n { width: 100%; }
.sh h2 { flex: 1; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.accordion-content.open { max-height: none; }

/* === STICKY TOC WITH SCROLL SPY === */
.toc.sticky { position: sticky; top: 16px; z-index: 50; max-height: calc(100vh - 32px); overflow-y: auto; transition: box-shadow .3s; }
.toc.sticky.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.toc a { color: var(--text-sec); text-decoration: none; transition: color .2s; display: inline; }
.toc a:hover { color: var(--gold); }
.toc li.active a { color: var(--gold); font-weight: 600; }
.toc li { transition: padding-left .2s; }
.toc li.active { padding-left: 8px; }
body.dark-mode .toc.sticky.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.4); }

/* === LOADING SCREEN === */
.loading-screen { position: fixed; inset: 0; z-index: 9999; background: linear-gradient(170deg, var(--night) 0%, var(--deep) 30%, var(--navy) 60%, var(--indigo) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.loading-screen.active { opacity: 1; pointer-events: all; }
.loading-screen .loading-wheel { animation: loading-spin 8s linear infinite; }
.loading-screen .loading-text { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--gold-light); margin-top: 24px; }
.loading-screen .loading-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 8px; letter-spacing: 2px; text-transform: uppercase; }
@keyframes loading-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-dots::after { content: ''; animation: dots 1.5s steps(3, end) infinite; }
@keyframes dots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } }

/* === SYNASTRY BAR ELEMENT COLORS === */
.syn-bar-fill.syn-el-fire { background: var(--fire); }
.syn-bar-fill.syn-el-earth { background: var(--earth); }
.syn-bar-fill.syn-el-air { background: var(--air); }
.syn-bar-fill.syn-el-water { background: var(--water); }
.syn-bar-fill.person-2 { opacity: .7; }

/* === WORKSHEET SUMMARY (print only) === */
.ws-summary { display: none; }

/* === SHARE URL BAR + COPY BUTTON === */
.share-url-bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; background: var(--cream); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.share-url-bar input { flex: 1; background: transparent; border: none; color: var(--text-sec); font-size: 13px; font-family: 'Source Sans 3', sans-serif; outline: none; }
.copy-btn { background: var(--navy); color: #fff; border: none; border-radius: 4px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.copy-btn:hover { background: var(--indigo); }
.copy-btn.copied { background: var(--earth); }
body.dark-mode .share-url-bar { background: #1a1d2e; border-color: var(--border); }
body.dark-mode .share-url-bar input { color: var(--text); }
body.dark-mode .copy-btn { background: var(--gold); color: var(--night); }

/* === 768px MEDIA QUERY === */
@media (max-width: 768px) {
  .c { padding: 30px 20px 50px; }
  .sh h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .toc.sticky { position: relative; top: auto; max-height: none; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table thead, table tbody, table tr { display: table; width: 100%; table-layout: fixed; }
  .dark-toggle { top: 8px; right: 8px; width: 36px; height: 36px; }
  .dark-toggle-icon { font-size: 16px; }
}

/* === ACCORDION CONTROLS === */
.accordion-controls { text-align: right; margin: -30px 0 20px; }
.accordion-toggle-all {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--text-sec);
  cursor: pointer; transition: all .2s; letter-spacing: .5px;
}
.accordion-toggle-all:hover { border-color: var(--gold); color: var(--gold); }
body.dark-mode .accordion-toggle-all { color: var(--text-lt); border-color: var(--border); }
body.dark-mode .accordion-toggle-all:hover { border-color: var(--gold); color: var(--gold); }

/* === CITY AUTOCOMPLETE === */
.city-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: var(--navy); border: 1px solid rgba(212,168,67,.3);
  border-radius: 0 0 8px 8px; max-height: 200px; overflow-y: auto;
}
.city-option {
  padding: 10px 16px; font-size: 14px; color: rgba(255,255,255,.8);
  cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05);
}
.city-option:hover { background: rgba(212,168,67,.15); color: #fff; }
.city-option:last-child { border-bottom: none; }

/* === ORB STRENGTH BARS === */
.orb-bar { height: 3px; border-radius: 1.5px; margin-top: 8px; background: var(--border); position: relative; }
.orb-bar-fill { height: 100%; border-radius: 1.5px; position: absolute; left: 0; top: 0; }
.orb-bar-fill.h { background: var(--earth); }
.orb-bar-fill.t { background: var(--fire); }
.orb-bar-fill.n { background: var(--gold); }

/* === RETROGRADE === */
.retro-badge {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--fire);
  background: var(--fire-bg); border: 1px solid var(--fire-bd);
  border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: middle;
}
.retro-note {
  font-size: 12.5px; color: var(--text-sec);
  border-left: 2px solid var(--fire-bd); padding-left: 10px; margin-top: 6px;
}
body.dark-mode .retro-badge { background: #2a1815; border-color: #5a2820; }
body.dark-mode .retro-note { border-left-color: #5a2820; }

/* === SCROLL REVEAL === */
.s { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.s.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ENHANCEMENTS — appended 2026-03-05
   ============================================================ */

/* === 1. READING PROGRESS BAR === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(212,168,67,.5);
}

/* === 2. SIDEBAR TOC (desktop >= 1200px) === */
@media (min-width: 1200px) {
  .toc.sidebar-mode {
    display: block;
    position: fixed;
    left: max(20px, calc((100vw - 760px) / 2 - 230px));
    top: 70px;
    width: 190px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    z-index: 50;
    scrollbar-width: none;
  }
  .toc.sidebar-mode::-webkit-scrollbar { display: none; }
  .toc.sidebar-mode h2 { display: none; }
  .toc.sidebar-mode ol {
    columns: 1;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .toc.sidebar-mode li {
    font-size: 12px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid rgba(212,168,67,.15);
    transition: border-color .3s, color .3s, padding-left .2s;
  }
  .toc.sidebar-mode li.active {
    border-left-color: var(--gold);
    padding-left: 14px;
  }
  .toc.sidebar-mode li.active a {
    color: var(--gold);
    font-weight: 600;
  }
  .toc.sidebar-mode .n { display: none; }
  .toc.sidebar-mode a {
    color: var(--text-lt);
    text-decoration: none;
    font-size: 12px;
    line-height: 1.4;
    transition: color .2s;
  }
  .toc.sidebar-mode a:hover { color: var(--gold-light); }
  /* Hide inline placeholder when sidebar is active */
  .toc-inline-placeholder { display: none; }
}
/* Below 1200px, show inline TOC normally */
@media (max-width: 1199px) {
  .toc-inline-placeholder { display: none; }
}

/* === 3. BACK-TO-TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(212,168,67,.3);
  color: var(--gold-light);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s, background .2s, color .2s;
  z-index: 100;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--night);
  transform: translateY(-2px);
}
body.dark-mode .back-to-top {
  background: rgba(26,30,46,.9);
  border-color: rgba(212,168,67,.4);
}
body.dark-mode .back-to-top:hover {
  background: var(--gold);
  color: var(--night);
}

/* === 4. COVER TWINKLING STARS === */
@keyframes twinkle-1 { 0%, 100% { opacity: .7; } 50% { opacity: .2; } }
@keyframes twinkle-2 { 0%, 100% { opacity: .5; } 50% { opacity: .1; } }
@keyframes twinkle-3 { 0%, 100% { opacity: .4; } 50% { opacity: .8; } }

.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 22% 35%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 78% 68%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 35% 82%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 88% 25%, rgba(212,168,67,.5), transparent),
    radial-gradient(1px 1px at 12% 55%, rgba(255,255,255,.4), transparent);
  pointer-events: none;
  animation: twinkle-1 4s ease-in-out infinite;
  z-index: 0;
}

/* === 5. PLANET CARD HOVER === */
.pc {
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.pc:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,168,67,.12);
}
body.dark-mode .pc:hover {
  box-shadow: 0 8px 24px rgba(212,168,67,.08);
}
/* Also add hover to aspect cards and house cards */
.ac, .hc, .gc, .mc, .ec {
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease;
}
.ac:hover, .hc:hover, .gc:hover, .mc:hover, .ec:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
body.dark-mode .ac:hover, body.dark-mode .hc:hover, body.dark-mode .gc:hover,
body.dark-mode .mc:hover, body.dark-mode .ec:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
}

/* === 6. SIGN-ADAPTIVE ACCENT THEMING === */
body[data-element="fire"] { --gold: #d4a043; --gold-light: #f0ca78; }
body[data-element="earth"] { --gold: #c8a848; --gold-light: #e8d080; }
body[data-element="air"] { --gold: #c4ac58; --gold-light: #e8d48a; }
body[data-element="water"] { --gold: #b0a8c0; --gold-light: #d0c8e0; }
/* Dark mode variants */
body.dark-mode[data-element="fire"] { --gold: #e8b060; --gold-light: #f5d890; }
body.dark-mode[data-element="earth"] { --gold: #d4b858; --gold-light: #edd890; }
body.dark-mode[data-element="air"] { --gold: #d0b868; --gold-light: #ecd898; }
body.dark-mode[data-element="water"] { --gold: #c0b8d8; --gold-light: #dcd0f0; }

/* === 7. ENHANCED SCROLL REVEAL (override existing .s rules) === */
.s {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.s.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === 8. MOBILE BOTTOM SHEET TOC === */
.toc-pill {
  display: none;
}
@media (max-width: 1199px) {
  .toc-pill {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--gold-light);
    border: 1px solid rgba(212,168,67,.3);
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    cursor: pointer;
    z-index: 200;
    backdrop-filter: blur(12px);
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,.4);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: 1px;
  }
  .toc-pill:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,.5);
  }
  body.dark-mode .toc-pill {
    background: rgba(26,30,46,.95);
    border-color: rgba(212,168,67,.4);
  }

  .toc-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
    border-top: 1px solid rgba(212,168,67,.3);
    border-radius: 20px 20px 0 0;
    padding: 24px 28px 40px;
    z-index: 301;
    transform: translateY(100%);
    transition: transform .4s cubic-bezier(.22,1,.36,1);
    max-height: 65vh;
    overflow-y: auto;
  }
  .toc-sheet.open { transform: translateY(0); }
  .toc-sheet h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-light);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 16px;
  }
  .toc-sheet .handle {
    width: 36px;
    height: 4px;
    background: rgba(212,168,67,.3);
    border-radius: 2px;
    margin: 0 auto 16px;
  }
  .toc-sheet ol {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .toc-sheet li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(212,168,67,.1);
  }
  .toc-sheet li:last-child { border-bottom: none; }
  .toc-sheet a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
  }
  .toc-sheet li.active a { color: var(--gold-light); font-weight: 600; }
  .toc-sheet a:hover { color: var(--gold-light); }
  .toc-sheet .n {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-right: 8px;
    font-weight: 600;
  }

  .toc-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    backdrop-filter: blur(2px);
  }
  .toc-sheet-backdrop.open {
    opacity: 1;
    pointer-events: all;
  }
}

/* === 9. PLANET TOOLTIP === */
.planet-tooltip {
  position: fixed;
  background: var(--navy);
  color: var(--gold-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
  z-index: 500;
  border: 1px solid rgba(212,168,67,.3);
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  white-space: nowrap;
}
.planet-tooltip.visible { opacity: 1; }

/* === PLAIN ENGLISH SECTION === */
.plain-english {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--cream), rgba(212,168,67,.05));
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}
.plain-english h2 {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
}
.plain-english .pe-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-lt);
  margin: -18px 0 24px;
  font-style: italic;
}
.pe-item {
  margin-bottom: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}
.pe-item:last-child { margin-bottom: 0; }
.pe-label {
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.pe-sign {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.pe-text {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.65;
  margin: 0;
}
.pe-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.pe-badge {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-sec);
}
.pe-badge strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pe-badge.strength {
  background: rgba(61,122,74,.08);
  border: 1px solid rgba(61,122,74,.2);
}
.pe-badge.strength strong { color: var(--earth); }
.pe-badge.caution {
  background: rgba(192,57,43,.06);
  border: 1px solid rgba(192,57,43,.15);
}
.pe-badge.caution strong { color: var(--fire); }

/* Dark mode */
body.dark-mode .plain-english {
  background: linear-gradient(135deg, var(--cream), rgba(212,168,67,.03));
}
body.dark-mode .pe-badge.strength {
  background: rgba(90,170,106,.08);
  border-color: rgba(90,170,106,.2);
}
body.dark-mode .pe-badge.caution {
  background: rgba(224,90,78,.06);
  border-color: rgba(224,90,78,.15);
}

@media (max-width: 600px) {
  .pe-bottom { grid-template-columns: 1fr; }
  .plain-english { padding: 24px 20px; }
}

/* === SECTION PLAIN ENGLISH SUMMARIES === */
.pe-section-summary { background: rgba(212,168,67,.06); border-left: 3px solid var(--gold); padding: 12px 16px; margin-bottom: 16px; border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.6; }
.pe-section-summary p {
  margin: 0;
  color: var(--text-sec);
}
.pe-section-summary strong {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
body.dark-mode .pe-section-summary { background: rgba(212,168,67,.08); }

/* === LIFESTYLE RECOMMENDATIONS === */
.lifestyle-section {
  margin-top: 56px;
  padding: 36px 32px;
  background: linear-gradient(170deg, var(--navy) 0%, var(--indigo) 50%, var(--plum) 100%);
  border-radius: 12px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.lifestyle-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,.2), transparent);
  pointer-events: none;
}
.lifestyle-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 6px;
  position: relative;
}
.lifestyle-section .ls-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  font-style: italic;
  margin-bottom: 28px;
  position: relative;
}
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.lifestyle-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,168,67,.15);
  border-radius: 10px;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.lifestyle-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-light);
  margin: 0 0 4px;
}
.lifestyle-card .ls-source {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.lifestyle-card .ls-why {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin: 0 0 12px;
}
.lifestyle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lifestyle-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(212,168,67,.12);
  border: 1px solid rgba(212,168,67,.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold-light);
  letter-spacing: .3px;
}
/* Full-width card for content */
.lifestyle-card.full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .lifestyle-grid { grid-template-columns: 1fr; }
  .lifestyle-section { padding: 28px 20px; }
}


