/* ============================================================
   WellWaterHub — Main Stylesheet
   Aesthetic: Editorial / Field Guide — slate, sand, deep water
   Fonts: Playfair Display (headings) + Source Serif 4 (body)
   ============================================================ */

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

/* ── CSS Custom Properties ── */
:root {
  --slate-900: #0f1923;
  --slate-800: #1a2736;
  --slate-700: #243547;
  --slate-600: #3a5068;
  --slate-400: #6b8eaa;
  --slate-200: #b8cdd9;
  --slate-100: #dde8ef;
  --slate-50:  #f0f5f8;

  --sand-700:  #7a6246;
  --sand-500:  #b89870;
  --sand-300:  #d9c4a5;
  --sand-100:  #f5ede0;

  --water-deep: #0d3d5c;
  --water-mid:  #1a6b96;
  --water-bright: #2196c4;
  --water-light:  #7dc8e8;

  --accent-amber: #d97706;
  --accent-green: #2d7a4f;
  --accent-red:   #c0392b;

  --white: #ffffff;
  --text-primary: #0f1923;
  --text-secondary: #3a5068;
  --text-muted: #6b8eaa;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15,25,35,0.08);
  --shadow-md: 0 4px 16px rgba(15,25,35,0.10);
  --shadow-lg: 0 8px 32px rgba(15,25,35,0.14);

  --max-width: 1160px;
  --content-width: 760px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--water-mid); text-decoration: none; }
a:hover { color: var(--water-deep); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--water-deep); color: var(--white);
  padding: .5rem 1rem; z-index: 999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ── Site Header ── */
.site-header {
  background: var(--slate-900);
  border-bottom: 3px solid var(--water-bright);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1.5rem;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -.01em;
}
.site-logo span { color: var(--water-light); }
.site-logo:hover { text-decoration: none; color: var(--white); }

.main-nav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--slate-200);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 400;
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--slate-700); color: var(--white); text-decoration: none; }
.main-nav a.active { background: var(--water-mid); color: var(--white); }

.nav-cta {
  background: var(--water-bright) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: .4rem .9rem !important;
}
.nav-cta:hover { background: var(--water-mid) !important; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none;
  color: var(--white); cursor: pointer;
  font-size: 1.4rem; padding: .25rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-100);
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .55rem 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--water-mid); }
.breadcrumb span { margin: 0 .4rem; }

/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--water-deep) 100%);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232196c4' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .4;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--water-light);
  margin-bottom: .75rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: .75rem;
}
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--slate-200);
  max-width: 600px;
  line-height: 1.6;
}

/* ── Homepage Hero ── */
.home-hero {
  background: linear-gradient(160deg, var(--slate-900) 0%, var(--water-deep) 55%, var(--slate-800) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--water-bright), var(--water-light), var(--water-bright));
}
.home-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.home-hero h1 em {
  font-style: italic;
  color: var(--water-light);
}
.home-hero .hero-lead {
  font-size: 1.1rem;
  color: var(--slate-200);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--water-light);
  line-height: 1;
}
.hero-stat-label {
  font-size: .75rem;
  color: var(--slate-300, #a0b4c4);
  margin-top: .3rem;
  line-height: 1.3;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--water-bright);
  color: var(--white);
  border-color: var(--water-bright);
}
.btn-primary:hover { background: var(--water-mid); border-color: var(--water-mid); color: var(--white); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); text-decoration: none; color: var(--white); }
.btn-sand {
  background: var(--sand-500);
  color: var(--white);
  border-color: var(--sand-500);
}
.btn-sand:hover { background: var(--sand-700); border-color: var(--sand-700); color: var(--white); text-decoration: none; }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }

/* ── Layout Shell ── */
.layout-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 3rem;
  align-items: start;
}
.layout-main.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--content-width);
}
.layout-main.wide {
  grid-template-columns: 1fr;
  max-width: var(--max-width);
}

/* ── Article Content ── */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--slate-100);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--slate-800);
  margin: 2rem 0 .75rem;
}
.article-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-700);
  margin: 1.5rem 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .82rem;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content p:last-child { margin-bottom: 0; }
.article-content ul, .article-content ol { margin-bottom: 1.2rem; }
.article-content li { margin-bottom: .4rem; }
.article-content strong { font-weight: 600; color: var(--slate-900); }
.article-content em { font-style: italic; }

/* ── Callout Boxes ── */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-left: 4px solid;
}
.callout-info { background: #e8f4fb; border-color: var(--water-mid); }
.callout-warning { background: #fef9e7; border-color: var(--accent-amber); }
.callout-danger { background: #fdf0ee; border-color: var(--accent-red); }
.callout-success { background: #edf7f1; border-color: var(--accent-green); }
.callout-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.callout-info .callout-title { color: var(--water-deep); }
.callout-warning .callout-title { color: #92400e; }
.callout-danger .callout-title { color: #7f1d1d; }
.callout-success .callout-title { color: #14532d; }
.callout p { margin-bottom: 0; font-size: .95rem; }

/* ── Data Tables ── */
.data-table-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: .88rem;
}
.data-table th {
  background: var(--slate-800);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .75rem 1rem;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--slate-50); }
.data-table tr:hover td { background: #e8f4fb; }
.badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.badge-required { background: #fdf0ee; color: var(--accent-red); }
.badge-recommended { background: #fef9e7; color: #92400e; }
.badge-none { background: var(--slate-100); color: var(--text-muted); }
.badge-pass { background: #edf7f1; color: var(--accent-green); }
.badge-fail { background: #fdf0ee; color: var(--accent-red); }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 44px; height: 44px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--slate-900);
}
.card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: .75rem; }
.card a.card-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--water-mid);
  font-family: var(--font-mono);
}

/* ── Section Headings ── */
.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--water-mid);
  margin-bottom: .5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 560px;
  line-height: 1.6;
}

/* ── Hub Sections (homepage) ── */
.hub-section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--slate-100);
}
.hub-section.alt { background: var(--slate-50); }
.hub-section-inner { max-width: var(--max-width); margin: 0 auto; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: .9rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { padding: .35rem 0; border-bottom: 1px solid var(--slate-50); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: .88rem; color: var(--text-secondary); }
.sidebar-links a:hover { color: var(--water-mid); }
.sidebar-cta {
  background: linear-gradient(135deg, var(--water-deep), var(--slate-800));
  color: var(--white);
  text-align: center;
}
.sidebar-cta h4 { color: var(--water-light); border-color: rgba(255,255,255,.1); }
.sidebar-cta p { font-size: .85rem; color: var(--slate-200); margin-bottom: 1rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* ── FAQ ── */
.faq-list { margin: 1.75rem 0; }
.faq-item {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-q {
  background: var(--slate-50);
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: .95rem;
  user-select: none;
  transition: background .15s;
}
.faq-q:hover { background: var(--slate-100); }
.faq-q .faq-icon { font-size: .8rem; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; margin-left: .75rem; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { display: none; padding: 1rem 1.25rem; font-size: .92rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Step Lists ── */
.step-list { list-style: none; padding: 0; counter-reset: steps; margin: 1.75rem 0; }
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--slate-100);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(steps);
  min-width: 32px; height: 32px;
  background: var(--water-deep);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  flex-shrink: 0;
  margin-top: .1rem;
}
.step-list li strong { display: block; font-weight: 600; margin-bottom: .25rem; }
.step-list li p { font-size: .92rem; color: var(--text-secondary); margin: 0; }

/* ── Disclaimer ── */
.disclaimer {
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: .8rem;
  color: var(--sand-700);
  margin: 2.5rem 0 0;
  line-height: 1.6;
}
.disclaimer strong { display: block; margin-bottom: .25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── Tool Container ── */
.tool-container {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.tool-container h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.tool-container .tool-desc { font-size: .9rem; color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Form elements */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-secondary); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .6rem .9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: .9rem;
  background: var(--white);
  color: var(--text-primary);
  transition: border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--water-bright); }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }
.form-select {
  width: 100%; padding: .6rem .9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  background: var(--white);
  color: var(--text-primary);
  appearance: none;
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--water-bright); }

/* Result output */
.result-block {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}
.result-pass { background: #edf7f1; border: 1.5px solid var(--accent-green); }
.result-fail { background: #fdf0ee; border: 1.5px solid var(--accent-red); }
.result-warn { background: #fef9e7; border: 1.5px solid var(--accent-amber); }
.result-title { font-weight: 700; font-size: 1rem; margin-bottom: .5rem; }
.result-pass .result-title { color: var(--accent-green); }
.result-fail .result-title { color: var(--accent-red); }
.result-warn .result-title { color: #92400e; }

/* ── Footer ── */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 3.5rem 1.5rem 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--slate-700);
}
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: .75rem; display: block; }
.footer-brand p { font-size: .82rem; line-height: 1.7; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--slate-200);
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .82rem; color: var(--slate-400); }
.footer-col a:hover { color: var(--water-light); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .76rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom a { color: var(--slate-400); }
.footer-bottom a:hover { color: var(--water-light); }

/* ── Highlight Strip ── */
.highlight-strip {
  background: var(--water-deep);
  color: var(--white);
  padding: 2.5rem 1.5rem;
}
.highlight-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.highlight-strip h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: .4rem;
}
.highlight-strip p { color: var(--slate-200); font-size: .9rem; }

/* ── Status Tags ── */
.tag {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: var(--radius-sm);
  font-size: .72rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.tag-blue { background: #dbeafe; color: #1e40af; }
.tag-green { background: #d1fae5; color: #065f46; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-red { background: #fee2e2; color: #991b1b; }

/* ── Contaminant cards (result tool) ── */
.contaminant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.contaminant-card {
  background: var(--white);
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.contaminant-card .c-name {
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
}
.contaminant-card .c-row {
  display: flex; justify-content: space-between;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.contaminant-card.c-pass { border-color: var(--accent-green); }
.contaminant-card.c-fail { border-color: var(--accent-red); background: #fdf0ee; }
.contaminant-card.c-warn { border-color: var(--accent-amber); background: #fef9e7; }
.contaminant-card .c-status {
  margin-top: .5rem;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--font-mono);
}
.c-pass .c-status { color: var(--accent-green); }
.c-fail .c-status { color: var(--accent-red); }
.c-warn .c-status { color: #92400e; }

/* ── Inline icon ── */
.icon-check { color: var(--accent-green); }
.icon-x { color: var(--accent-red); }
.icon-warn { color: var(--accent-amber); }

/* ── Print download strip ── */
.download-strip {
  background: linear-gradient(90deg, var(--sand-100), var(--sand-300));
  border: 1px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}
.download-strip-icon { font-size: 2.2rem; flex-shrink: 0; }
.download-strip h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .25rem; color: var(--slate-900); }
.download-strip p { font-size: .85rem; color: var(--sand-700); margin: 0; }
.download-strip .btn { margin-left: auto; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .layout-main { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--slate-900); padding: 1rem 1.5rem; gap: .25rem; z-index: 99; border-bottom: 2px solid var(--water-bright); }
  .main-nav.open a { padding: .6rem .5rem; }
  .menu-toggle { display: block; }
  .hero-stats { grid-template-columns: 1fr; gap: .75rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-strip { flex-direction: column; text-align: center; }
  .download-strip .btn { margin-left: 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .highlight-strip-inner { flex-direction: column; }
}

/* ── Utilities ── */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: .85rem; }
.text-mono { font-family: var(--font-mono); font-size: .85rem; }
.inline-flex { display: inline-flex; align-items: center; gap: .4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }


/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--slate-900);
  color: var(--slate-200);
  padding: 1rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  border-top: 3px solid var(--water-bright);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner p {
  font-size: .82rem;
  line-height: 1.55;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.cookie-banner a { color: var(--water-light); }
.cookie-banner-actions {
  display: flex;
  gap: .75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  background: var(--water-bright);
  color: #fff;
  border: none;
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.cookie-btn-accept:hover { background: var(--water-mid); }
.cookie-btn-decline {
  background: transparent;
  color: var(--slate-400);
  border: 1px solid var(--slate-600);
  padding: .55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .82rem;
  cursor: pointer;
  transition: all .15s;
}
.cookie-btn-decline:hover { background: var(--slate-800); color: var(--white); }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; gap: 1rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-decline { flex: 1; text-align: center; }
}

/* ── Contact Form ── */
.contact-form-wrap {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form textarea.form-input { resize: vertical; min-height: 140px; font-family: var(--font-body); }
.contact-form .form-input.error { border-color: var(--accent-red); }
.contact-form .field-error { font-size: .75rem; color: var(--accent-red); margin-top: .3rem; display: none; }
.contact-form .field-error.show { display: block; }
.contact-form-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: var(--radius-md); font-size: .88rem; display: none; }
.contact-form-status.show { display: block; }
.contact-form-status.success { background: #edf7f1; border: 1.5px solid var(--accent-green); color: #14532d; }
.contact-form-status.error { background: #fdf0ee; border: 1.5px solid var(--accent-red); color: #7f1d1d; }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.contact-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 640px) { .contact-form .form-row { grid-template-columns: 1fr; } }

/* ── Trust badges (about/homepage) ── */
.trust-badges { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.trust-badge { display: flex; align-items: center; gap: .5rem; background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius-md); padding: .6rem 1rem; font-size: .82rem; font-weight: 600; color: var(--slate-800); box-shadow: var(--shadow-sm); }
.trust-badge .tb-icon { font-size: 1.1rem; }

/* ── Affiliate block ── */
.affiliate-block { background: var(--sand-100); border: 1.5px solid var(--sand-300); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 2rem 0; display: flex; gap: 1.25rem; align-items: flex-start; }
.affiliate-block .aff-icon { font-size: 2rem; flex-shrink: 0; }
.affiliate-block h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .4rem; color: var(--slate-900); }
.affiliate-block p { font-size: .88rem; color: var(--sand-700); margin-bottom: .75rem; }
.affiliate-disclosure-inline { font-size: .72rem; color: var(--text-muted); font-style: italic; margin-top: .5rem; }

/* ── Author byline ── */
.author-byline { display: flex; align-items: center; gap: .75rem; padding: 1rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--slate-100); }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--water-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.author-meta { font-size: .82rem; color: var(--text-muted); }
.author-meta strong { color: var(--slate-900); display: block; font-size: .9rem; }

/* ── Responsive image figure ── */
.content-figure { margin: 2rem 0; }
.content-figure img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.content-figure figcaption { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; text-align: center; font-style: italic; }
