/* Flood Surfers Editorial, Guides & Trust Pages Stylesheet */
:root {
  --bg: #071322;
  --surface: #0d2038;
  --surface-2: #122b4a;
  --border: rgba(118, 255, 3, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --text: #edf4fb;
  --muted: #a4bbd4;
  --accent: #76ff03;
  --cyan: #00e5ff;
  --gold: #ffd54f;
  --coral: #ff7043;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 18% 0%, #0f2c4d 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.ed-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 19, 34, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.ed-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ed-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow Condensed', 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.ed-brand:hover { text-decoration: none; }
.ed-brand img { width: 32px; height: 32px; border-radius: 8px; }
.ed-brand span { color: var(--accent); }
.ed-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
}
.ed-links a { color: #d6e6f7; }
.ed-links a.active, .ed-links a:hover { color: var(--accent); text-decoration: none; }
.ed-cta {
  background: linear-gradient(135deg, #76ff03, #00e676);
  color: #041320 !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.ed-cta:hover { filter: brightness(1.08); text-decoration: none; }

.ed-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.ed-container.wide { max-width: 1120px; }

.ed-breadcrumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.ed-breadcrumb a { color: var(--muted); }
.ed-breadcrumb a:hover { color: var(--cyan); }

.ed-hero {
  background: linear-gradient(145deg, rgba(18, 43, 74, 0.92), rgba(9, 25, 45, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 32px;
}
.ed-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(118, 255, 3, 0.10);
  border: 1px solid rgba(118, 255, 3, 0.28);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ed-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.18;
  margin: 0 0 14px;
  color: #fff;
}
.ed-hero p.lead {
  font-size: 1.08rem;
  color: #cfe0f2;
  margin: 0 0 18px;
  max-width: 760px;
}
.ed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.ed-article {
  background: rgba(13, 32, 56, 0.78);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 34px 30px;
}
.ed-article h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.ed-article h2:first-child { margin-top: 0; }
.ed-article h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: var(--cyan);
  margin: 24px 0 8px;
}
.ed-article p { margin: 0 0 16px; color: #dbe8f6; }
.ed-article ul, .ed-article ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: #dbe8f6;
}
.ed-article li { margin-bottom: 8px; }

.ed-callout {
  background: rgba(0, 229, 255, 0.08);
  border-left: 4px solid var(--cyan);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
}
.ed-callout.green {
  background: rgba(118, 255, 3, 0.08);
  border-left-color: var(--accent);
}
.ed-callout strong { color: #fff; }

.ed-table-wrap { overflow-x: auto; margin: 20px 0; }
table.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
table.ed-table th, table.ed-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
}
table.ed-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-weight: 700;
}

.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.ed-card {
  background: rgba(13, 32, 56, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.ed-card:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 255, 3, 0.45);
  text-decoration: none;
}
.ed-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.ed-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.32;
}
.ed-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.ed-card-foot {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.ed-related {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
}
.ed-related h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  margin: 0 0 14px;
}

/* Interactive Eco Calculator */
.calc-panel {
  background: linear-gradient(145deg, #102845, #0a1b30);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  margin: 22px 0 30px;
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.calc-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #cfe0f2;
  margin-bottom: 8px;
}
.calc-field input, .calc-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  background: rgba(5, 14, 26, 0.85);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}
.calc-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.calc-stat {
  background: rgba(7, 19, 34, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
}
.calc-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.1;
}
.calc-stat-lbl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}

.ed-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 14, 26, 0.92);
  padding: 36px 20px;
  margin-top: 48px;
}
.ed-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--muted);
}
.ed-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ed-footer-links a { color: #cfe0f2; }

@media (max-width: 640px) {
  .ed-hero, .ed-article, .calc-panel { padding: 22px 18px; }
}
