/* BirthCost: "Sage & Terracotta" theme (Red asked for a warmer, classier look than the default, 2026-10-24) */
:root {
  --primary: #2F6B5E;     /* deep sage: links, headings accents */
  --primary-dark: #1F4A41;
  --heading: #26403B;     /* deep green-gray for headings */
  --cta: #C46A4E;         /* warm terracotta: buttons */
  --cta-dark: #A8553B;
  --blush: #F7E7DF;       /* soft blush band */
  --sage-light: #EAF1EC;  /* soft sage band */
  --cream: #FFFBF6;       /* page background */
  --ink: #2E2A2B;
  --muted: #6B6461;
  --line: #E7DDD3;
  --white: #fff;
  --ok: #2F6B5E;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--cta-dark); }
h1, h2, h3 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; color: var(--heading); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.18rem; margin: 1.6rem 0 .5rem; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* header */
.site-header { background: rgba(255, 251, 246, .96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand .name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.35rem; line-height: 1.1; }
.brand .name span { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: .8rem; color: var(--muted); }
.main-nav ul { list-style: none; padding: 0 16px 8px; display: flex; flex-wrap: wrap; gap: 4px 20px; max-width: var(--max); margin: 0 auto; }
.main-nav a { text-decoration: none; font-size: .95rem; color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); border-bottom-color: var(--cta); }

/* hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, var(--blush), transparent 70%), linear-gradient(180deg, var(--sage-light), var(--cream)); padding: 40px 0 26px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cta-dark); margin-bottom: 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 760px; margin: 0; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.updated { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* sections */
main section { padding: 8px 0 18px; }
.band { background: var(--sage-light); padding: 20px 0 28px; margin: 24px 0; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 99px; font-weight: 700; text-decoration: none; border: 2px solid var(--primary); transition: background .15s, color .15s; }
.btn-cta { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-dark); border-color: var(--cta-dark); color: #fff; }
.btn-outline { color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(60, 40, 30, .04); }
.stat .v { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; font-weight: 600; color: var(--heading); }
.stat .l { font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.card h3 { margin-top: 0; }
.card p { margin: .3rem 0; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sage-light); color: var(--heading); font-weight: 700; white-space: nowrap; }
th[data-sort] { cursor: pointer; }
th[data-sort]::after { content: " \2195"; color: var(--cta); font-weight: 400; }
td.num, th.num { text-align: right; white-space: nowrap; }
[data-compare] td:first-child { min-width: 230px; }
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--sage-light); color: var(--primary); white-space: nowrap; }
.pill.ok { background: var(--sage-light); color: var(--ok); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 10px 0; font-size: .94rem; }
.filters input[type=search], .filters select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: .95rem; background: #fff; }

/* callouts */
.note { border-left: 4px solid var(--primary); background: var(--sage-light); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.warn { border-left-color: var(--cta); background: var(--blush); }
.sources { font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px; padding-top: 12px; }
.sources ol { padding-left: 1.2rem; }
details { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0; background: #fff; }
summary { cursor: pointer; font-weight: 700; color: var(--heading); }

/* estimator */
.estimator { border: 1px solid var(--line); border-top: 5px solid var(--cta); border-radius: 18px; padding: 20px; background: #fff; margin: 20px 0; box-shadow: 0 6px 24px rgba(60, 40, 30, .06); }
.estimator h2 { margin-top: 0; }
.est-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
.est-grid label { display: flex; flex-direction: column; justify-content: space-between; font-size: .9rem; font-weight: 700; color: var(--heading); }
.est-grid input, .est-grid select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; margin-top: 4px; background: var(--cream); color: var(--ink); }
.est-grid input:focus, .est-grid select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.est-grid .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.presets button { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 99px; padding: 6px 14px; font-size: .86rem; cursor: pointer; }
.presets button:hover { background: var(--primary); color: #fff; }
.est-result { margin-top: 16px; background: var(--blush); border-radius: var(--radius); padding: 16px 18px; }
.est-big { font-family: "Fraunces", Georgia, serif; font-size: 2.2rem; font-weight: 600; color: var(--heading); }
.est-range { color: var(--muted); }
.est-result table { margin-top: 10px; }

/* ads (hidden until ads_enabled) */
.ad-slot { display: none; }
body.ads-on .ad-slot { display: block; min-height: 250px; margin: 20px 0; }

/* footer */
.site-footer { background: var(--heading); color: #DCE6E1; margin-top: 44px; padding: 30px 0 18px; font-size: .93rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
.site-footer h4 { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: #fff; margin: 0 0 8px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 18px; padding-top: 12px; font-size: .83rem; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand .name span { display: none; }
  th, td { padding: 8px; }
  .header-inner .btn { padding: 8px 14px; font-size: .9rem; }
}
