/* ============================================================
   RADON READY GUIDE — styles.css
   Aesthetic: Authoritative editorial. Think New England Journal
   meets state health department that actually explains things.
   Typefaces: Libre Baskerville (serif authority) + DM Sans (clean body)
   Colors: Deep slate navy, off-white parchment, amber alert accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:        #1a2744;
  --navy-dark:   #111b33;
  --navy-mid:    #243257;
  --amber:       #e8880a;
  --amber-light: #f5a623;
  --amber-pale:  #fff8ed;
  --parchment:   #f7f5f0;
  --white:       #ffffff;
  --text-dark:   #1c1c22;
  --text-mid:    #3d3d4a;
  --text-muted:  #72727f;
  --border:      #dddad4;
  --border-light:#eeebe5;
  --success:     #2d7a4f;
  --danger:      #c0392b;
  --warning:     #e67e22;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 3px rgba(26,39,68,.08);
  --shadow:      0 4px 16px rgba(26,39,68,.11);
  --shadow-lg:   0 12px 40px rgba(26,39,68,.16);
  --max-w:       1120px;
  --col:         680px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--parchment);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--amber); }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.25;
  color: var(--navy-dark);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; margin-top: 2.5rem; margin-bottom: .75rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; margin-top: 2rem; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .4rem; }
p  { margin-bottom: 1.2rem; font-size: 1.035rem; color: var(--text-mid); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: .4rem; color: var(--text-mid); font-size: 1.015rem; }
strong { color: var(--text-dark); font-weight: 600; }
em { font-style: italic; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.col-content { max-width: var(--col); }
.page-wrap { display: grid; grid-template-columns: 1fr minmax(0,var(--col)) 1fr; gap: 0 2rem; }

/* ── Header ── */
.site-header {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.logo-text span { color: var(--amber-light); }

/* Nav */
.site-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.site-nav a.cta {
  background: var(--amber);
  color: var(--navy-dark);
  font-weight: 600;
}
.site-nav a.cta:hover { background: var(--amber-light); }

/* Mobile hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); margin: 4px 0;
  transition: transform .2s;
}

/* ── Hero ── */
.hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 4rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.015) 40px,
    rgba(255,255,255,.015) 41px
  );
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.1rem); max-width: 750px; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 620px; margin: 1rem 0 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .18s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-light); color: var(--navy-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }

/* ── Alert / Banner boxes ── */
.alert {
  border-left: 4px solid;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .97rem;
}
.alert-warning { background: #fff8ed; border-color: var(--amber); }
.alert-danger  { background: #fdf2f2; border-color: var(--danger); }
.alert-info    { background: #eef3fb; border-color: var(--navy); }
.alert-success { background: #edf7f2; border-color: var(--success); }
.alert strong  { display: block; margin-bottom: .25rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }

/* ── Stat boxes ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-align: center;
}
.stat-box .stat-num {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-box .stat-label { font-size: .83rem; color: var(--text-muted); margin-top: .3rem; }

/* ── pCi/L scale ── */
.pcil-scale {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: .85rem;
  font-weight: 600;
}
.pcil-zone {
  flex: 1;
  padding: .6rem .5rem;
  text-align: center;
  color: var(--white);
  line-height: 1.3;
}
.pcil-zone.low    { background: #2d7a4f; }
.pcil-zone.mid    { background: #e67e22; }
.pcil-zone.high   { background: #c0392b; }
.pcil-zone.vhigh  { background: #922b21; }

/* ── State table ── */
.state-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .93rem; }
.state-table th {
  background: var(--navy);
  color: var(--white);
  padding: .65rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.state-table td { padding: .65rem .9rem; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.state-table tr:last-child td { border-bottom: none; }
.state-table tr:nth-child(even) td { background: var(--parchment); }
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-req  { background: #fdecea; color: #c0392b; }
.badge-opt  { background: #edf7f2; color: #2d7a4f; }
.badge-none { background: #f0f0f5; color: var(--text-muted); }
.badge-var  { background: #fff3cd; color: #856404; }

/* ── FAQ accordion ── */
.faq-list { margin: 1.5rem 0; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-dark);
}
.faq-q .faq-icon { font-size: 1.1rem; color: var(--amber); flex-shrink: 0; transition: transform .2s; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 1rem; font-size: .97rem; color: var(--text-mid); }
.faq-a.open { display: block; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: .8rem 0;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { color: var(--border); }

/* ── TOC ── */
.toc {
  background: var(--amber-pale);
  border: 1px solid #f0d9aa;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.toc h4 { margin: 0 0 .75rem; font-size: .95rem; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin-bottom: .3rem; font-size: .9rem; }
.toc a { color: var(--navy); }

/* ── Inline callouts ── */
.callout {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
}
.callout-icon { font-size: 1.8rem; line-height: 1; }
.callout h3 { color: var(--amber-light); margin-top: 0; font-size: 1.1rem; }
.callout p  { color: rgba(255,255,255,.85); font-size: .95rem; margin-bottom: 0; }

/* ── Step list ── */
.step-list { counter-reset: steps; list-style: none; padding: 0; margin: 1.5rem 0; }
.step-list li {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: .75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  background: var(--navy);
  color: var(--white);
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; margin: 1.25rem 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: .97rem;
  color: var(--text-mid);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: .1rem; }

/* ── Sidebar layout ── */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  align-items: start;
}
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 { font-size: .95rem; margin-top: 0; color: var(--navy); border-bottom: 2px solid var(--amber); padding-bottom: .5rem; margin-bottom: .85rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-bottom: 1px solid var(--border-light); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { display: block; padding: .5rem 0; font-size: .88rem; color: var(--text-mid); text-decoration: none; }
.sidebar-links a:hover { color: var(--navy); }

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 1.25rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo-text { font-size: 1rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.55); margin-top: .65rem; line-height: 1.6; }
.footer-col h5 {
  color: var(--white);
  font-family: 'Libre Baskerville', serif;
  font-size: .9rem;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .85rem; }
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
  max-width: var(--max-w); margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ── Disclaimer ── */
.disclaimer {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
  line-height: 1.6;
}

/* ── Tool widget ── */
.tool-widget {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.tool-widget h3 { margin-top: 0; color: var(--navy); }
.tool-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.25rem; }
.tool-field { flex: 1; min-width: 180px; }
.tool-field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text-dark); }
.tool-field input,
.tool-field select {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--parchment);
  transition: border-color .15s;
}
.tool-field input:focus,
.tool-field select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}
.tool-result {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  display: none;
}
.tool-result.visible { display: block; }
.result-level {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.result-level.safe   { color: var(--success); }
.result-level.border { color: var(--warning); }
.result-level.act    { color: var(--danger); }

/* ── Article meta ── */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  padding: .85rem 0 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.meta-chip {
  background: var(--amber-pale);
  border: 1px solid #f0d9aa;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── State hero banner ── */
.state-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-mid));
  color: var(--white);
  padding: 2.5rem 1.25rem 2rem;
}
.state-hero h1 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.state-hero .state-summary {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem;
}
.state-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .85rem;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 600;
}
.state-chip.amber { background: var(--amber); border-color: var(--amber); color: var(--navy-dark); }

/* ── PDF download box ── */
.pdf-box {
  background: var(--white);
  border: 2px dashed var(--amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2rem 0;
}
.pdf-icon { font-size: 2.2rem; flex-shrink: 0; }
.pdf-box h4 { margin: 0 0 .25rem; color: var(--navy); }
.pdf-box p  { margin: 0; font-size: .88rem; color: var(--text-muted); }

/* ── Home page section tiles ── */
.section-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: box-shadow .18s, transform .18s;
  border-top: 3px solid var(--navy);
}
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.tile-icon { font-size: 1.7rem; margin-bottom: .65rem; }
.tile h3 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--navy); }
.tile p  { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── State grid ── */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
  margin: 1.5rem 0;
}
.state-link {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  text-decoration: none;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  transition: background .15s, border-color .15s;
}
.state-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.state-link .zone { display: block; font-size: .72rem; font-weight: 400; color: var(--text-muted); margin-top: .15rem; }
.state-link:hover .zone { color: rgba(255,255,255,.7); }

/* ── Section dividers ── */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--navy-dark);
  margin-bottom: .5rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.75rem; }

/* ── Analytics placeholder ── */
/* <!-- ANALYTICS: paste GA4 tag here --> */
/* <!-- ADSENSE: paste AdSense tag here --> */

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); padding: 1rem; gap: .25rem; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .content-sidebar { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  h1 { font-size: 1.75rem; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ── Print ── */
@media print {
  .site-header, .site-footer, .sidebar, .hero-actions { display: none; }
  body { background: #fff; font-size: 11pt; }
}
