:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-alt: #eaf0ee;
  --text: #102220;
  --muted: #475e5b;
  --border: #cfe0dc;
  --primary: #0f6b63;
  --primary-hover: #0a4f49;
  --accent: #b45309;
  --danger: #b91c1c;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 34, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 34, 32, 0.08);
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ad slots: zero-height silent until enabled */
.gfs-ad-slot {
  max-width: 1120px;
  margin: 16px auto;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.gfs-ad-slot:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--primary);
}

.gf-site-icon {
  border-radius: 8px;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero + Interactive Stage */
.hero-section {
  padding: 32px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 65ch;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.metric-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.metric-value.is-amber {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--surface);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

/* Interactive Exposure Calculator Stage */
.tool-stage {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.tool-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tool-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 4px;
}

.tool-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field-input,
.field-select {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  width: 100%;
}

.serving-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.serving-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

.serving-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.serving-meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.step-btn:hover {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.step-val {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.calc-results {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.result-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.result-total-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.result-total-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.gauge-item {
  margin-bottom: 12px;
}

.gauge-item:last-of-type {
  margin-bottom: 8px;
}

.gauge-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  gap: 8px;
}

.gauge-track {
  height: 8px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gauge-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.gauge-fill.is-amber {
  background: var(--accent);
}

.gauge-fill.is-danger {
  background: var(--danger);
}

.calc-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* Lead Figure */
.lead-figure {
  margin: 0 0 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lead-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-caption {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* Hub Spoke Cards */
.section-block {
  padding: 32px 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.section-desc {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
  max-width: 70ch;
}

.spoke-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.spoke-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.spoke-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.spoke-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.spoke-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.spoke-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.spoke-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
  margin: 0;
}

.spoke-summary {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.spoke-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

/* Breadcrumb & Page Header */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-hero {
  padding: 16px 0 24px;
}

/* Prose Article */
.prose-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1.25;
  margin: 36px 0 12px;
  color: var(--text);
  padding-top: 8px;
  border-top: 1px solid var(--surface-alt);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  margin: 24px 0 8px;
  color: var(--text);
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  margin: 20px 0;
  padding: 12px 16px;
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: var(--text);
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--text);
}

/* FAQ Block */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  background: var(--bg);
}

.faq-q {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.faq-a {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

/* Engagement & Comments */
.engage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.engage-btn:hover,
.engage-btn[data-gf-liked] {
  background: var(--surface-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.share-msg {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.comments-box,
.ticket-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.comment-form,
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 24px;
}

.comment-item {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  margin-bottom: 12px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 700;
  color: var(--text);
}

.owner-badge {
  background: var(--primary);
  color: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-disclaimer {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 12px;
  max-width: 62ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-content: start;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  h1 {
    font-size: 28px;
  }

  .prose h2,
  .section-heading {
    font-size: 22px;
  }

  .metric-strip,
  .spoke-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .prose-shell,
  .faq-section,
  .tool-stage,
  .comments-box {
    padding: 20px 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
