/* Theme Name: Tình Đầu | Version: 1.19.0 | White, orange and indigo; star element colors remain in their own stylesheet. */
:root{--ink:#3e4149;--muted:#6c7078;--paper:#fff;--cream:#fff;--green:#514c96;--green2:#625baa;--gold:#e8770e;--line:#e5e5e9;--red:#b94437;--theme-indigo:#514c96;--theme-orange:#b9550b;--theme-cream:#fff9eb}
body{background:#fff;color:var(--ink);font-family:Roboto,Arial,system-ui,sans-serif;font-size:15px}
.topbar{background:#fff;border-bottom:1px solid var(--line);box-shadow:none;gap:24px}
.brand{font:700 1.4rem/1.3 Roboto,Arial,sans-serif;color:var(--theme-indigo);white-space:nowrap}.brand span{border-color:var(--theme-indigo)}
.navlinks{gap:22px}.navlinks a{color:#55545c;font-weight:500}.navlinks .active{color:var(--theme-orange);border-bottom-color:var(--gold)}
.shell{padding-top:18px}.hero{min-height:96px;padding:8px 0 22px;background:none}.hero h1,.map-shell .hero h1{font:700 clamp(1.65rem,2.5vw,2.35rem)/1.2 Roboto,Arial,sans-serif;letter-spacing:0;color:var(--gold);margin:5px 0 8px}.hero p{line-height:1.6;font-size:.94rem}.eyebrow,.result-kicker{letter-spacing:.07em}.hero-motto{font-family:Roboto,Arial,sans-serif;color:var(--theme-indigo);letter-spacing:.16em}
.panel,.map-card,.analysis-card{background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:none}.panel,.analysis-card{padding:18px}.chart-interpretation{margin-top:20px}
.card-title h2,.map-heading h2,.section-heading h2,.analysis-title h3,.insights h4,.result-card h2{font-family:Roboto,Arial,sans-serif;font-weight:600}.card-title h2,.map-heading h2{font-size:1.05rem}.section-heading h2{font-size:1.45rem;color:var(--theme-orange)}
.analysis-title{border-bottom:1px solid var(--gold);padding-bottom:0;gap:10px;align-items:center}.analysis-title>h2,.analysis-title>h3{font:600 .95rem/1.4 Roboto,Arial,sans-serif;background:var(--theme-indigo);color:white;padding:9px 13px;margin:0;border-radius:0 10px 0 0}.analysis-title>span{padding:6px 0;text-align:right}
.interpretation-head{border-bottom:1px solid var(--gold);padding-bottom:12px}.chart-interpretation .interpretation-head h2,.interpretation-head h3{font:600 1.35rem/1.35 Roboto,Arial,sans-serif;color:var(--theme-indigo)}
.primary,.report-btn{background:var(--theme-orange);border-radius:4px;box-shadow:none;color:#fff;font-weight:600}.primary:hover,.report-btn:hover{background:#9f4808}.secondary{border-color:var(--theme-indigo);color:var(--theme-indigo);border-radius:4px}.secondary:hover:not(:disabled){background:#f4f3fa}
input,select,.chart-inputs input,.chart-inputs select{border:1px solid #cfd0d6;border-radius:4px;background:#fff;color:var(--ink)}input:focus,select:focus,.chart-inputs input:focus,.chart-inputs select:focus{outline:2px solid var(--theme-indigo);outline-offset:2px}.chart-inputs label{margin-top:14px;font-size:.87rem}.chart-inputs input,.chart-inputs select{padding:10px}.chart-divider{margin:16px 0 4px}
.status,.notice,.chart-warnings{background:var(--theme-cream);border-radius:4px}.chart-warnings{border-left-color:var(--gold);color:#80551d}.status.error{background:#fff0ec;color:#9c382d}.hint,.chart-scope{color:var(--muted)}
.result-card{border-radius:6px;background:var(--theme-indigo);box-shadow:none}.result-card h2{color:#fff}.result-card>p,.result-card dt{color:#e2e0f3}.result-card .result-kicker{color:#ffdc9e}.compass-center{background:var(--theme-indigo)}.degree strong{font:600 3.6rem/1 Roboto,Arial,sans-serif}
.chart-orientation{padding:12px 14px;border-radius:4px;margin:12px 0}.chart-orientation h3{color:var(--theme-indigo);font-size:.95rem;margin-bottom:8px}.chart-orientation-block{margin:8px 0;padding-bottom:5px}.chart-orientation p{margin:4px 0}.chart-orientation-block strong{color:#44434f}
.combined-grid{border-color:#d8d6df;background:#d8d6df;border-radius:5px}.combined-cell{background:#fff}.cell-heading h3{color:#444150}.cell-gua{color:#77747e}.combined-cell.is-facing{box-shadow:inset 0 0 0 2px #d97821}.combined-cell.is-sitting{box-shadow:inset 0 0 0 2px #7770b3}.cell-badge{background:#fff2db;color:#875416}.natal-stars .star-entry dt{color:#66626e}
.palace-reading{border:0;border-top:1px solid var(--line);border-radius:0;margin:16px 0;padding:16px 0;background:#fff}.palace-reading h3,.annual-palace-reading h4{color:var(--theme-indigo)}.palace-assessment{color:#5c4c3e;font-weight:600}.palace-star-facts{padding:4px 0 10px}.palace-brief li{margin:6px 0}.palace-technical summary,.annual-palace-reading summary,.chart-admin-pattern summary{color:var(--theme-indigo)}.chart-admin-pattern{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 0;margin-top:8px}.annual-palace-reading{border-color:var(--line);padding:14px 0}.palace-reading-section{margin-top:12px}
.chart-pattern-reading>h3,.hk-guest-summary h3,#chart-palace-readings>h3,#chart-annual-palaces>h3{color:var(--theme-indigo);font-size:1.1rem}#chart-marker-dialog{border-radius:6px}#marker-dialog-title{color:var(--theme-indigo)}#marker-dialog-close{background:#f4f3fa;border:1px solid #d8d5e9;border-radius:4px;color:var(--theme-indigo)}
@media(max-width:1000px){.navlinks{gap:14px}.topbar{gap:16px}.chart-workspace{gap:18px}}
@media(max-width:800px){.hero{min-height:0;padding:6px 0 18px}.hero p{font-size:.86rem}.shell{padding-top:14px}.chart-inputs{margin-bottom:16px}.chart-interpretation{padding:16px}.chart-workspace{display:block}}
@media(max-width:480px){.brand{font-size:1.25rem}.navlinks{gap:12px}.navlinks a{font-size:.78rem}.map-shell .hero h1,.hero h1{font-size:1.65rem;line-height:1.25}.analysis-title>h2,.analysis-title>h3{font-size:.85rem;padding:8px 10px}.combined-card{padding:12px}.chart-interpretation .interpretation-head h2{font-size:1.18rem}.palace-reading{padding:14px 0}.hero-motto{display:none}}

.chart-pattern-reading{margin:0;border:0;border-radius:0;padding:0;background:transparent}.chart-pattern-reading .hk-guest-summary h4{font:600 1.05rem/1.5 Roboto,Arial,sans-serif;color:var(--theme-indigo);margin:0 0 10px}.chart-pattern-reading .hk-guest-summary p{font-size:.94rem;line-height:1.75;margin:8px 0}.chart-pattern-reading .hk-guest-summary .hk-guest-note{font-size:.82rem;color:var(--muted);margin-bottom:0}

/* Tình Đầu: orange section headings, indigo subheadings, brick-red caution. */
.chart-interpretation .interpretation-head h2,.chart-interpretation .chart-pattern-reading>h3,.chart-interpretation #chart-palace-readings>h3,.chart-interpretation #chart-annual-palaces>h3{color:var(--theme-orange)}
.chart-interpretation .verdict.caution{color:#a33d32;background:#fff0eb;border:1px solid #edc7bf}

.chart-pattern-reading .hk-guest-summary{margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.chart-pattern-reading .hk-guest-summary .hk-guest-note{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}

/* Thin separators make interpretation sections easier to scan. */
.chart-interpretation .chart-pattern-reading>h3,.chart-interpretation #chart-palace-readings>h3,.chart-interpretation #chart-annual-palaces>h3{padding-bottom:9px;border-bottom:1px solid #e8c5aa}

/* Facing/sitting are corner labels, without extra palace outlines. */
.combined-cell.is-facing,.combined-cell.is-sitting{box-shadow:none}
.combined-cell{padding-top:36px;padding-bottom:14px}
.combined-cell>.cell-badge{position:absolute;margin:0;padding:0;background:transparent;border:0;border-radius:0;font:700 .95rem/1.2 Roboto,Arial,sans-serif}
.combined-cell>.cell-badge-facing{top:9px;right:10px;color:#12613b}
.combined-cell>.cell-badge-sitting{top:9px;right:10px;color:#c62828}
@media(max-width:480px){.combined-cell{padding-top:30px;padding-bottom:8px}.combined-cell>.cell-badge{font-size:.8rem}.combined-cell>.cell-badge-facing{top:7px;right:6px}.combined-cell>.cell-badge-sitting{top:7px;right:6px}}

.combined-grid .direction-marker{font-size:13px;font-weight:600}.combined-grid .marker-annual{color:#c62828}
@media(max-width:480px){.combined-grid .direction-marker{font-size:12px}}

/* Annual palace headings and explicit house orientation highlights. */
.chart-interpretation .annual-palace-reading>h4{color:#df2028;line-height:1.6}
.chart-interpretation .annual-palace-reading.annual-facing,.chart-interpretation .annual-palace-reading.annual-sitting{padding:14px 12px;border-top:1px solid var(--line);border-left:3px solid #12613b;background:#f3faf5}
.chart-interpretation .annual-palace-reading.annual-sitting{border-left-color:#c62828;background:#fff5f3}
.annual-house-label{display:inline-block;vertical-align:middle;margin-left:8px;padding:2px 8px;border-radius:4px;font:700 .8rem/1.5 Roboto,Arial,sans-serif;white-space:nowrap}.annual-house-facing{color:#12613b;background:#deefe3}.annual-house-sitting{color:#b72222;background:#fbe2dd}

.chart-period-context{margin-bottom:16px}.chart-period-context strong{color:var(--theme-indigo)}

#chart-cheng-men-reading>h3{color:var(--theme-orange);font-size:1.1rem;padding-bottom:9px;border-bottom:1px solid #e8c5aa}#chart-cheng-men-reading p,#chart-cheng-men-reading li{line-height:1.7}.cheng-men-reading-item{padding:14px 0;border-bottom:1px solid var(--line)}.cheng-men-reading-item h4{color:var(--theme-indigo);font-size:1rem;margin:0 0 8px}.cheng-men-reading-item p{margin:7px 0}.cheng-men-reading-item summary{color:var(--theme-indigo);cursor:pointer}.cheng-result-formal_match{color:#12613b}.cheng-result-not_matched{color:#c62828}.cheng-result-review_five{color:#ad6800}

/* Direction names balance the larger flying-star numbers. */
.combined-grid .cell-heading h3{font-size:20px;line-height:1.3;font-weight:700}
@media(max-width:480px){.combined-grid .cell-heading h3{font-size:16px}}
@media(max-width:360px){.combined-grid .cell-heading h3{font-size:14px}}

.annual-orientation-summaries{margin:12px 0 18px}.annual-orientation-summary{padding:12px 0}.annual-orientation-summary+.annual-orientation-summary{border-top:1px solid var(--line)}.annual-orientation-summary h4{font-size:1rem;line-height:1.5;margin:0 0 6px}.annual-summary-facing h4{color:#12613b}.annual-summary-sitting h4{color:#c62828}.annual-orientation-summary p{margin:6px 0;line-height:1.7}

/* Full-width indigo footer with white typography and two columns. */
.site-footer{margin-top:40px;padding:30px 24px 18px;background:#4c5198;border:0;color:#fff;font:400 14px/1.7 Roboto,Arial,sans-serif}.site-footer-inner,.site-footer-bottom{max-width:1200px;margin:0 auto}.site-footer-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px}.site-footer h2{font:700 16px/1.4 Roboto,Arial,sans-serif;text-transform:uppercase;color:#fff;margin:0 0 12px}.site-footer a{color:#fff;text-decoration:none}.site-footer-brand{font-weight:600}.site-footer-about p{margin:7px 0}.site-footer-contact{display:inline-block;text-decoration:underline!important;text-underline-offset:3px}.site-footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.site-footer a:hover{color:#ffe1b7;text-decoration:underline}.site-footer a:focus-visible{outline:2px solid #ffe1b7;outline-offset:4px}.site-footer-bottom{display:flex;justify-content:space-between;gap:16px;margin-top:24px;padding-top:14px;border-top:1px solid #ffffff33;font-size:12px;color:#eeeefa}@media(max-width:600px){.site-footer{padding:24px 16px 16px}.site-footer-inner{grid-template-columns:1fr;gap:24px}.site-footer-bottom{flex-wrap:wrap;gap:4px 16px}}
