:root {
  --site-display: Georgia, "Times New Roman", serif;
  --site-body: Arial, Helvetica, sans-serif;
  --site-gold: #deb969;
  --site-button-gradient: linear-gradient(90deg,#d0aa5d,#efcf90);
  --site-button-ink: #2d1736;
  --site-hero: radial-gradient(ellipse at 72% 35%, #60356f 0, transparent 48%), linear-gradient(120deg, #321d3e, #3e1b4d 55%, #25122e);
  --site-glass: rgba(255,255,255,.1);
}
body { font-family:var(--site-body); }
h1,h2,h3,h4 { font-family:var(--site-display); }
input,select,textarea,button { font-family:var(--site-body); }
.hero.hero { background:var(--site-hero); }
.hero .hero-grid { margin-top:0; }
.hero { padding-top:70px; }
.hero > .portrait-nav { display:none; }
.hero h1 { color:var(--site-gold); font-family:var(--site-display); font-style:italic; font-weight:400; }
.hero h1 i { color:inherit; }
.hero .intro { color:#dfd2e5; font:16px/1.8 var(--site-body); }
.hero form { background:var(--site-glass); border:1px solid rgba(231,211,243,.25); border-radius:22px; }
.hero form > p { color:#fff6ee; font:24px/1.2 var(--site-display); }
.hero form label { color:#d3bfdf; font-family:var(--site-body); }
.hero form input { color:#fff8ee; background:rgba(255,255,255,.13); border:1px solid rgba(231,211,243,.3); border-radius:8px; }
.hero form button { color:#31073e; background:var(--site-button-gradient); }
.hero .eyebrow { color:var(--site-gold); }
.year-energy-page.year-energy-page { padding:0; background:#fffaf3; }
.year-energy-hero { padding:70px max(24px,5vw); color:#fff6ee; background:var(--site-hero); }
.year-energy-hero-inner { display:grid; grid-template-columns:1.25fr .8fr; align-items:center; gap:70px; max-width:1180px; margin:auto; }
.year-energy-hero .year-energy-intro h1 { max-width:750px; color:var(--site-gold); font:italic 400 clamp(48px,6vw,82px)/.99 var(--site-display); }
.year-energy-hero .year-energy-intro > p:last-child { color:#dfd2e5; font:16px/1.8 var(--site-body); }
.year-energy-hero .eyebrow { color:var(--site-gold); }
.year-energy-hero .year-energy-form { margin:0; padding:32px; border:1px solid rgba(231,211,243,.25); border-radius:22px; color:#fff6ee; background:var(--site-glass); }
.year-energy-hero .year-energy-fields { grid-template-columns:1fr; gap:18px; }
.year-energy-hero .year-energy-fields label,.year-energy-hero .year-energy-system { color:#d3bfdf; }
.year-energy-hero .year-energy-fields input { min-height:52px; color:#fff6ee; border-color:rgba(231,211,243,.3); background:rgba(255,255,255,.13); }
.year-energy-hero input::placeholder { color:#d3bfdf; }
.year-energy-hero input[type=date] { color-scheme:dark; }
.year-energy-hero .year-energy-submit { width:100%; justify-content:space-between; min-height:58px; font-weight:700; color:#31073e; background:var(--site-button-gradient); }
.year-energy-page .year-energy-results { max-width:1080px; margin:40px auto; padding:0 24px; }
.month-energy-page.month-energy-page { font-family:var(--site-body) !important; }
.month-energy-page .month-energy-hero { min-height:0; padding:70px max(24px,5vw) !important; color:#fff6ee !important; background:var(--site-hero) !important; }
.month-energy-page .month-energy-hero::before { display:none; }
.month-energy-page .month-energy-hero-inner { display:grid; grid-template-columns:1fr; gap:0; align-content:center; max-width:1180px; margin:auto; padding-top:0 !important; }
.month-energy-page .month-energy-hero-inner > .eyebrow { grid-column:1; margin:0 0 10px; color:var(--site-gold) !important; }
.month-energy-page .month-energy-hero h1 { grid-column:1; align-self:end; margin:0 0 24px !important; color:var(--site-gold) !important; font:italic 400 clamp(48px,6vw,82px)/.99 var(--site-display) !important; letter-spacing:0; }
.month-energy-page .month-energy-hero h1 i { font-style:inherit; }
.month-energy-page .month-energy-hero .intro { grid-column:1; align-self:start; color:#dfd2e5 !important; font:16px/1.8 var(--site-body) !important; }
.month-energy-page .month-energy-form { grid-column:1; grid-row:4; width:100%; max-width:940px !important; margin:24px 0 0 !important; padding:32px !important; border:1px solid rgba(231,211,243,.25) !important; border-radius:22px !important; color:#fff6ee !important; background:var(--site-glass) !important; box-shadow:none !important; }
.month-energy-page .month-energy-form::before { display:none; }
.month-energy-page .month-energy-form h2 { color:#fff6ee !important; font:26px/1.2 var(--site-display) !important; }
.month-energy-page .month-energy-kicker { color:var(--site-gold); letter-spacing:.12em; }
.month-energy-page .month-energy-form-grid { grid-template-columns:1fr 1fr .85fr !important; gap:22px !important; align-items:end; }
.month-energy-page .month-energy-form label { color:#d3bfdf !important; font:12px/1.3 var(--site-body) !important; letter-spacing:.04em; }
.month-energy-page .month-energy-form input { min-height:52px; padding:12px !important; border:1px solid rgba(231,211,243,.3) !important; border-radius:8px !important; color:#fff6ee !important; background:rgba(255,255,255,.13) !important; font:16px var(--site-body) !important; }
.month-energy-page .month-energy-form input[type=date] { color-scheme:dark; }
.month-energy-page .month-energy-form input::placeholder { color:#d3bfdf !important; }
.month-energy-page .month-energy-current-period { padding:0; border:0; }
.month-energy-page .month-energy-current-period span,.month-energy-page .month-energy-current-period small { color:#d3bfdf; }
.month-energy-page .month-energy-current-period strong { color:var(--site-gold); font-family:var(--site-display); }
.month-energy-page .month-energy-system-actions { flex-direction:row; gap:12px; margin-top:22px; }
.month-energy-page .month-energy-system-actions button { flex:1 1 0; min-width:0; min-height:52px; }
.month-energy-page .month-energy-form button { margin:0 !important; padding:14px 16px !important; border:1px solid #d5ad56 !important; border-radius:8px !important; color:#fff6ee !important; background:transparent !important; font:600 13px/1.5 var(--site-body) !important; letter-spacing:0; text-transform:none; box-shadow:none; }
.month-energy-page .month-energy-form button.is-selected,.month-energy-page .month-energy-form button:hover { color:#31073e !important; background:linear-gradient(100deg,#e5bd67,#f8e3a6) !important; }
.month-energy-page .month-energy-form > small { color:#d3bfdf; }
.month-energy-page .month-energy-results { padding-top:40px !important; }
.month-energy-page :is(h2,h3,h4) { font-family:var(--site-display) !important; }
.calculator-home .calculator-home-intro { max-width:none; margin:-28px -24px 26px; padding:28px 24px; color:#fff6ee; background:var(--site-hero); }
.calculator-home .calculator-home-intro h1,.calculator-home .calculator-home-intro h1 i { color:var(--site-gold); font-family:var(--site-display); }
.calculator-home .calculator-home-lead { color:#fff6ee; }
.calculator-home .calculator-home-description { color:#dfd2e5; }
.calculator-home .calculator-home-eyebrow { color:var(--site-gold); }
.calculator-home .calculator-home-ornament { margin-bottom:0; }
.database-page .database-hero { padding:32px; margin-bottom:24px; border-radius:18px; background:var(--site-hero); }
.database-page .database-hero h1 { color:var(--site-gold); font-family:var(--site-display); font-style:italic; }
.database-page .database-hero p:not(.eyebrow) { color:#dfd2e5; }
.composite-theme { font:15px/1.5 var(--site-body); background:#fffaf3; }
.composite-theme :is(h1,h2,h3,h4) { font-family:var(--site-display); }
.composite-theme > header { padding:70px max(24px,5vw); background:var(--site-hero); }
.composite-theme > header > nav { display:none; }
.composite-theme .hero { align-items:center; gap:55px; padding:0; background:transparent; }
.composite-theme .hero h1 { color:var(--site-gold); font:italic 400 clamp(48px,6vw,82px)/.99 var(--site-display); }
.composite-theme .intro { color:#dfd2e5; font:16px/1.8 var(--site-body); }
.composite-theme .form { border:1px solid rgba(231,211,243,.25); border-radius:22px; background:var(--site-glass); }
.composite-theme .form h3 { color:#fff6ee; font:24px/1.2 var(--site-display); }
.composite-theme .form input { min-height:48px; font-family:var(--site-body); color:#fff6ee; border-color:rgba(231,211,243,.3); background:rgba(255,255,255,.13); }
.composite-theme .switch button { font-family:var(--site-body); }
.composite-theme .switch button.active { color:#31073e; background:var(--site-button-gradient); }
@media(max-width:900px) {
  .year-energy-hero-inner,.month-energy-page .month-energy-hero-inner { grid-template-columns:1fr; gap:18px; }
  .month-energy-page .month-energy-form { grid-column:1; grid-row:4; max-width:940px !important; }
  .year-energy-hero .year-energy-form { max-width:640px; }
  .composite-theme .hero { grid-template-columns:1fr; }
}
@media(max-width:640px) {
  .hero.hero,.year-energy-hero,.month-energy-page .month-energy-hero,.composite-theme > header { padding:36px 20px !important; }
  .hero h1,.year-energy-hero .year-energy-intro h1,.month-energy-page .month-energy-hero h1,.composite-theme .hero h1 { font-size:44px !important; line-height:1.06 !important; }
  .year-energy-hero .year-energy-form,.month-energy-page .month-energy-form { padding:24px !important; }
  .month-energy-page .month-energy-form-grid { grid-template-columns:1fr !important; }
  .month-energy-page .month-energy-system-actions { flex-direction:column; }
  .month-energy-page .month-energy-system-actions button { flex:0 0 auto; width:100%; }
  .calculator-home .calculator-home-intro { margin:-32px -18px 22px; padding:24px 18px; }
  .composite-theme .forms { grid-template-columns:1fr; }
}

/* Keep year-energy controls independent of the portrait form's global input styles. */
.year-energy-hero-inner > * { min-width:0; }
.year-energy-hero .year-energy-system { flex-wrap:wrap; gap:16px 24px; }
.year-energy-hero .year-energy-system label { text-transform:none; letter-spacing:normal; font-size:16px; }
.year-energy-hero .year-energy-system input[type=radio] { appearance:auto; width:18px; height:18px; min-height:0; flex:0 0 18px; margin:0; padding:0; border:0; background:transparent; }
.year-energy-hero .year-energy-fields label { text-transform:none; letter-spacing:normal; font-size:16px; }
.year-energy-hero .year-energy-fields input { margin-top:0; font-size:16px; }
.year-energy-hero .year-energy-system legend { font-size:14px; }

.calculator-home .calculator-catalog-card:nth-child(2) { border-color:#d0a18d; background:linear-gradient(135deg,#f4dacc,#e8c0ad); }
.calculator-home .calculator-catalog-card:nth-child(2) h2 { color:#542936; }
.calculator-home .calculator-catalog-card:nth-child(2) .calculator-card-description { color:#653d41; }
.calculator-home .calculator-catalog-card:nth-child(2) .calculator-card-category { color:#754537; }
.calculator-home .calculator-catalog-card:nth-child(2) .calculator-card-number { color:#a56450; }
.calculator-home .calculator-catalog-card:nth-child(2) .calculator-card-symbol { color:#754537; border-color:#bf8268; background:#f0c9b4; }
.calculator-home .calculator-catalog-card:nth-child(2) .calculator-card-action { color:#542936; border-color:#c68a72; }

.calculator-home .calculator-home-intro h1 { max-width:none; width:100%; margin:0 auto; text-align:center; white-space:normal; }
.calculator-home .calculator-home-description { max-width:850px; }

.calculator-site-footer { display:block; margin:0; padding:52px 24px 20px; color:#e5d8ed; background:#2b073a; text-align:left; }
.calculator-site-footer-inner { width:100%; max-width:1080px; margin:0 auto; }
.calculator-site-footer-top { display:flex; justify-content:space-between; gap:48px; padding-bottom:44px; }
.calculator-site-footer-brand { display:flex; align-items:center; gap:14px; color:#f3e4fb; text-decoration:none; }
.calculator-site-footer-brand img { width:64px; height:64px; object-fit:contain; }
.calculator-site-footer-brand span { font:12px/1.5 Georgia,serif; letter-spacing:.09em; text-transform:uppercase; }
.calculator-site-footer-top p { margin:18px 0 0; color:#f0d58b; opacity:1; font:14px/1.6 Arial,sans-serif; }
.calculator-site-footer nav { display:flex; flex-direction:column; align-items:flex-start; gap:18px; min-width:150px; max-width:none; margin:0; letter-spacing:.04em; }
.calculator-site-footer nav a { margin:0; color:#fff4fd; opacity:1; text-decoration:none; font:700 12px/1.3 Arial,sans-serif; }
.calculator-site-footer a:hover { color:#e2bd62; }
.calculator-site-footer a:focus-visible { outline:2px solid #e2bd62; outline-offset:5px; }
.calculator-site-footer-bottom { display:flex; justify-content:space-between; gap:20px; padding-top:22px; border-top:1px solid #67436d; font:12px/1.5 Arial,sans-serif; color:#f0d58b; opacity:1; }
.calculator-site-footer-bottom a { color:#fff4fd; text-decoration:none; text-transform:uppercase; font-weight:700; }
@media(max-width:640px) { .calculator-site-footer-top { flex-direction:column; gap:32px; } .calculator-site-footer { padding-top:36px; } }

.composite-theme .hero h1,.composite-theme .hero h1 i { color:var(--site-gold); }
.composite-theme .eyebrow { color:var(--site-gold); }
.month-energy-page .month-birth-fields { display:grid; grid-template-columns:.7fr .7fr 1.2fr; gap:8px; }
.month-energy-page .month-birth-fields input { width:100%; min-width:0; }
.hero form input::placeholder,.composite-theme .form input::placeholder,.energy-cards-form input::placeholder { color:#eadcf0; opacity:1; }

/* Shared calculator headings and form controls, matched to the supplied reference. */
.calculator-home .calculator-home-intro h1,.calculator-home .calculator-home-intro h1 i,
.hero h1,.hero h1 i,.year-energy-hero .year-energy-intro h1,
.energy-cards-hero h1,.energy-cards-hero h1 i,
.composite-theme .hero h1,.composite-theme .hero h1 i { color:var(--site-gold); }
.month-energy-page .month-energy-hero h1,.month-energy-page .month-energy-hero h1 i { color:var(--site-gold) !important; }
.hero form > button,.year-energy-hero .year-energy-submit,.energy-cards-submit { border:1px solid var(--site-gold); border-radius:8px; color:var(--site-button-ink); background:var(--site-button-gradient); min-height:52px; }
.hero .system-choice button,.energy-cards-system-choice button,.composite-theme .switch button { border:1px solid rgba(222,185,105,.65); border-radius:8px; color:#f7ead1; background:rgba(255,255,255,.06); min-height:48px; font:700 14px/1.4 var(--site-body); }
.hero .system-choice button.active,.energy-cards-system-choice button.active,.composite-theme .switch button.active { border-color:var(--site-gold); color:var(--site-button-ink); background:var(--site-button-gradient); }
.month-energy-page .month-energy-form button { border-color:var(--site-gold) !important; border-radius:8px !important; color:#f7ead1 !important; background:rgba(255,255,255,.06) !important; font:700 14px/1.4 var(--site-body) !important; }
.month-energy-page .month-energy-form button.is-selected,.month-energy-page .month-energy-form button:hover { color:var(--site-button-ink) !important; background:var(--site-button-gradient) !important; }
.month-energy-page .month-energy-form button span { color:inherit; }
.hero form > button span,.energy-cards-submit span { color:inherit; }
