:root {
  --bg: #f4f8ef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #102b19;
  --muted: rgba(16, 43, 25, 0.72);
  --line: rgba(22, 53, 31, 0.14);
  --accent: #0e7490;
  --accent-dark: #0b3d4a;
  --soft: rgba(47, 111, 62, 0.08);
  --warn: #9a6518;
  --radius: 1.25rem;
  --shadow: 0 18px 48px rgba(22, 53, 31, 0.10);
  --shadow-soft: 0 12px 34px rgba(22, 53, 31, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 62, 0.11), transparent 34rem),
    linear-gradient(180deg, #f9fcf6 0%, var(--bg) 52%, #eef5e9 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--accent-dark);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  z-index: 20;
}

.skip-link:focus {
  left: 1rem;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 252, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block,
.page-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-brand,
.site-home,
.page-nav a {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.divider-dot {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1.5rem;
  align-items: end;
  padding: 4.4rem 0 2rem;
}

.eyebrow,
.mini-label {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: -0.055em;
}

h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.88;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.hero-lead,
.section-heading p {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1.15rem;
}

.hero-card strong {
  display: block;
  font-size: 1.2rem;
}

.hero-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px 210px;
  gap: 0.85rem;
  margin: 1rem auto 2.3rem;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 0 1rem;
  font: inherit;
  font-weight: 700;
}

.section {
  padding: 2.5rem 0;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.summary-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.news-list {
  display: grid;
  gap: 2.2rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(22, 53, 31, 0.10);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
}

.news-card h3 {
  font-size: clamp(1.12rem, 1.65vw, 1.65rem);
  line-height: 1.12;
}

.news-card h3 a {
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.news-meta,
.news-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.55rem;
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.chip.warn {
  color: var(--warn);
  background: rgba(154, 101, 24, 0.10);
}

.news-summary {
  color: var(--muted);
  line-height: 1.56;
}

.news-side {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.score-box {
  border-radius: 0.9rem;
  background: rgba(47, 111, 62, 0.07);
  padding: 0.7rem;
}

.score-box span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.score-box strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.open-link,
.archive-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 900;
}

.archive-list {
  display: grid;
  gap: 0.75rem;
}

.archive-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.95rem 1rem;
}

.archive-item p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.1rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-weight: 900;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero,
  .controls,
  .news-card,
  .archive-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.9rem, 18vw, 5rem);
  }
}


/* Three-lane Nanny-Delvin News editorial layout */
.news-section-group {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 2.8rem;
  padding: 0;
}

.news-section-group::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(47, 111, 62, 0.88), rgba(47, 111, 62, 0.12));
}

.news-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(22, 53, 31, 0.16);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(225, 240, 220, 0.74)),
    radial-gradient(circle at top right, rgba(47, 111, 62, 0.10), transparent 16rem);
  box-shadow: 0 18px 42px rgba(22, 53, 31, 0.09);
}

.news-section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.news-section-heading h3 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.news-section-heading p {
  margin: 0.75rem 0 0;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.52;
  font-size: 1rem;
}

.section-count {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: var(--accent);
  color: white;
  font-weight: 900;
  white-space: nowrap;
}

.news-section-group .news-card {
  margin-left: 0;
}

.news-section-group .news-card + .news-card {
  margin-top: 0.2rem;
}

.news-summary {
  margin-bottom: 0.65rem;
}

.news-meta {
  margin: 0.65rem 0 0.75rem;
}

.news-tags {
  margin: 0.75rem 0 0;
}

.chip {
  padding: 0.32rem 0.52rem;
  font-size: 0.78rem;
}

.open-link {
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .news-section-group::before {
    left: -0.9rem;
  }

  .news-section-heading,
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-side {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .news-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-count {
    justify-self: start;
  }

  .news-side {
    grid-template-columns: 1fr;
  }
}
/* Passive lane-count stripe with in-page lane jumps */
.result-stripe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 77, 65, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.58);
  color: rgba(20, 42, 31, 0.72);
  font-weight: 650;
}

.result-stripe > * {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.result-stripe > *:not(:last-child)::after {
  content: "|";
  margin-left: 0.75rem;
  color: rgba(20, 42, 31, 0.28);
  font-weight: 500;
}

.result-stripe strong {
  color: #0c321b;
  font-weight: 900;
}

.result-stripe-label {
  color: #0c321b;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.result-lane-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.result-lane-link:hover,
.result-lane-link:focus {
  color: #0b5b6f;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  outline: none;
}

.result-lane-link:disabled {
  cursor: default;
  opacity: 0.55;
  text-decoration: none;
}

.lane-focus-pulse {
  animation: lanePulse 0.9s ease-out;
}

@keyframes lanePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 116, 144, 0.28);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(14, 116, 144, 0);
  }
}

@media (max-width: 700px) {
  .result-stripe {
    align-items: flex-start;
    gap: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }

  .result-stripe > *:not(:last-child)::after {
    margin-left: 0.55rem;
  }
}

/* Practical Trust intelligence layer */
.watch-panel {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.45rem;
  border: 1px solid rgba(15, 77, 65, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.62);
}

.watch-panel h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.watch-panel p:last-child {
  margin-bottom: 0;
}

.practical-shortlist {
  margin: 1.2rem 0 1.1rem;
}

.shortlist-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(14, 116, 144, 0.18);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(229,247,250,0.62));
  box-shadow: 0 18px 46px rgba(14, 116, 144, 0.08);
}

.shortlist-heading h3 {
  margin: 0.15rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.shortlist-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.25rem;
}

.shortlist-list li::marker {
  font-weight: 900;
  color: #0b5b6f;
}

.shortlist-list a {
  color: #0c321b;
  font-weight: 850;
  text-decoration: none;
}

.shortlist-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.shortlist-list p {
  margin: 0.2rem 0 0;
  color: rgba(20, 42, 31, 0.72);
  line-height: 1.45;
}

.action-relevance,
.grant-fit {
  display: grid;
  gap: 0.25rem;
  margin: 0.9rem 0;
  padding: 0.85rem 0.95rem;
  border-left: 4px solid #0e7490;
  border-radius: 0.85rem;
  background: rgba(14, 116, 144, 0.08);
  color: rgba(20, 42, 31, 0.78);
}

.action-relevance strong,
.grant-fit strong {
  color: #0c321b;
  font-weight: 900;
}

.grant-fit em {
  font-style: normal;
  color: rgba(20, 42, 31, 0.68);
}

.pressure-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.pressure-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.58rem;
  background: rgba(12, 50, 27, 0.08);
  color: #0c321b;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 700px) {
  .watch-panel {
    padding: 1rem;
  }

  .shortlist-card {
    padding: 1rem;
  }

  .action-relevance,
  .grant-fit {
    padding: 0.8rem;
  }
}

/* Operational radar layer: digest + source health */
.ops-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.ops-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(14, 116, 144, 0.07);
}

.ops-card h2 {
  margin: 0.12rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.ops-list {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  padding-left: 1.25rem;
}

.ops-list li::marker {
  color: #0b5b6f;
  font-weight: 900;
}

.ops-list a {
  display: block;
  color: #0c321b;
  font-weight: 850;
  text-decoration: none;
}

.ops-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ops-list span {
  display: block;
  margin-top: 0.12rem;
  color: rgba(20, 42, 31, 0.66);
  font-size: 0.88rem;
}

.ops-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.7rem;
}

.ops-metrics span {
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  background: rgba(12, 50, 27, 0.08);
  color: #0c321b;
  font-weight: 750;
}

.ops-metrics .warn {
  background: rgba(185, 28, 28, 0.08);
  color: #7f1d1d;
}

@media (max-width: 820px) {
  .ops-panel {
    grid-template-columns: 1fr;
  }
}
/* Four-control radar filter row */
.controls {
  display: grid !important;
  grid-template-columns:
    minmax(280px, 1.5fr)
    minmax(210px, 0.65fr)
    minmax(180px, 0.55fr)
    minmax(170px, 0.5fr) !important;
  gap: 1rem !important;
  align-items: center !important;
}

.controls input,
.controls select {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 980px) {
  .controls {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 620px) {
  .controls {
    grid-template-columns: 1fr !important;
  }
}
