:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f0f2f3;
  --ink: #111315;
  --muted: #626b73;
  --line: #d8dde2;
  --dark: #0d0f10;
  --dark-2: #171a1d;
  --yellow: #ffd000;
  --yellow-strong: #f2bf00;
  --green: #148a41;
  --red: #b42335;
  --shadow: 0 18px 60px rgba(17, 19, 21, 0.16);
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-body {
  background: #eef1f4;
}

body.portal-body {
  background: #eef1f4;
}

body.news-body {
  background: #f4f6f7;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(40px, 5.4vw, 70px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(13, 15, 16, 0.96);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: #b9c0c6;
  font-size: 11px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 34px);
  color: #e4e8eb;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.phone-link:hover {
  color: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phone-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 10px 24px rgba(255, 208, 0, 0.28);
}

.button-primary:hover {
  background: var(--yellow-strong);
  border-color: var(--yellow-strong);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.8);
  border-color: #b8c1c8;
  color: var(--ink);
}

.button-large {
  min-height: 56px;
  min-width: 188px;
  font-size: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  background: #e9eef2;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center right;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(245, 246, 247, 0.98) 0%, rgba(245, 246, 247, 0.94) 31%, rgba(245, 246, 247, 0.42) 57%, rgba(245, 246, 247, 0.18) 100%),
    linear-gradient(180deg, rgba(245, 246, 247, 0) 62%, rgba(245, 246, 247, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  width: var(--container);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 0 74px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 26px;
  align-content: center;
}

.hero-subtitle {
  max-width: 600px;
  color: #30373d;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.46;
}

.hero-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #252b30;
  font-size: 17px;
  font-weight: 650;
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-checks li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 13px;
  font-weight: 900;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lead-card,
.admin-card,
.calculator,
.income-result,
.analytics-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.lead-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

.lead-card h2 {
  font-size: 26px;
  line-height: 1.12;
}

.lead-card p,
.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

label {
  display: grid;
  gap: 7px;
  color: #333b42;
  font-size: 13px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 96px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #9a8200;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.25);
}

.form-submit {
  width: 100%;
  margin-top: 2px;
  grid-column: 1 / -1;
}

.form-status {
  min-height: 20px;
  color: var(--green);
  font-weight: 750;
  grid-column: 1 / -1;
}

.form-note {
  grid-column: 1 / -1;
}

.form-status.error {
  color: var(--red);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #2a2f34;
  color: #ffffff;
}

.proof-strip article {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 26px clamp(20px, 3vw, 48px);
  background: var(--dark);
}

.proof-strip strong {
  color: var(--yellow);
  font-size: 30px;
  line-height: 1;
}

.proof-strip span {
  color: #cfd5da;
  font-size: 15px;
  line-height: 1.38;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head p,
.analytics-section p,
.income-result p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-card {
  display: grid;
  gap: 16px;
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.benefit-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.icon-circle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--dark);
  font-size: 20px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.calculator,
.income-result {
  padding: clamp(22px, 3vw, 34px);
}

.calculator {
  display: grid;
  gap: 20px;
}

.calculator h2 {
  max-width: 600px;
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.segment-control button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.segment-control button.active {
  background: var(--yellow);
  border-color: var(--yellow);
}

input[type="range"] {
  min-height: 24px;
  padding: 0;
  accent-color: var(--yellow-strong);
}

input[type="checkbox"] {
  width: auto;
  min-height: auto;
  accent-color: var(--yellow-strong);
}

.range-value {
  color: var(--muted);
  font-size: 14px;
}

.income-result {
  display: grid;
  align-content: center;
  gap: 18px;
  background: var(--dark);
  color: #ffffff;
}

.income-result > span {
  color: #b9c0c6;
  font-size: 15px;
  font-weight: 700;
}

.income-result > strong {
  color: #39d06f;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.income-result dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.income-result dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.income-result dt,
.income-result dd {
  margin: 0;
}

.income-result dt,
.income-result p {
  color: #b9c0c6;
}

.income-result dd {
  font-weight: 850;
}

.analytics-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 38px;
  align-items: center;
}

.analytics-section > div:first-child {
  display: grid;
  gap: 20px;
  align-content: start;
}

.analytics-preview {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.preview-toolbar,
.metric-row,
.source-bars p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.preview-toolbar span,
.metric-row span,
.source-bars span {
  color: var(--muted);
  font-size: 13px;
}

.metric-row {
  align-items: stretch;
}

.metric-row article {
  flex: 1;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbfb;
}

.metric-row strong {
  font-size: 26px;
}

.chart {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
  height: 190px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background:
    linear-gradient(#eef1f3 1px, transparent 1px) 0 0 / 100% 25%,
    #ffffff;
}

.chart span {
  display: block;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--yellow), #f0a900);
}

.source-bars {
  display: grid;
  gap: 10px;
}

.source-bars p {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f3f5f6;
}

.faq-section {
  padding-top: 24px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 18px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px max(20px, calc((100vw - 1180px) / 2));
  background: var(--dark);
  color: #ffffff;
}

.site-footer strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.admin-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 60px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-topbar h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.admin-card {
  padding: 20px;
}

.admin-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  margin: 16px 0;
}

.admin-form .form-status {
  grid-column: 1 / -1;
}

.admin-list,
.lead-list,
.variant-list {
  display: grid;
  gap: 10px;
}

.lead-item,
.variant-item,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 14px;
}

.lead-item {
  display: grid;
  gap: 8px;
}

.lead-item pre {
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  color: #20262b;
  font-size: 13px;
  line-height: 1.45;
}

.lead-meta,
.admin-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.variant-item {
  display: grid;
  gap: 10px;
}

.variant-item textarea {
  min-height: 76px;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 0 max(20px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(216, 221, 226, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #ffffff;
  color: #30373d;
  font-size: 13px;
  font-weight: 800;
}

.portal-shell {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.portal-login {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: end;
  min-height: calc(100vh - 126px);
}

.portal-login h1,
.portal-section-head h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.portal-kicker {
  margin-bottom: 10px;
  color: #59636c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-login-form,
.portal-panel,
.story-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 19, 21, 0.08);
}

.portal-login-form {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.portal-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
}

.portal-sidebar,
.portal-main,
.story-list {
  display: grid;
  align-content: start;
  gap: 14px;
}

.portal-panel {
  padding: 18px;
}

.portal-panel h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.portal-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 0 8px;
}

.portal-section-head select {
  max-width: 220px;
  background: #ffffff;
}

.story-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) minmax(140px, 180px);
  gap: 10px;
  margin: 0 0 14px;
}

.job-toolbar,
.source-import {
  display: grid;
  gap: 10px;
}

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

.portal-metrics article {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #f8fafb;
}

.portal-metrics span,
.source-row span,
.user-row span,
.run-row span,
.story-card time,
.story-meta {
  color: var(--muted);
  font-size: 13px;
}

.portal-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.source-list,
.run-list,
.user-list,
.user-form,
.source-edit-form {
  display: grid;
  gap: 9px;
}

.source-row,
.run-row,
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #f8fafb;
}

.source-row div,
.user-row div,
.run-row {
  min-width: 0;
}

.source-row strong,
.source-row span,
.user-row strong,
.user-row span,
.run-row strong,
.run-row span {
  display: block;
}

.source-row strong,
.user-row strong,
.run-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.user-form {
  margin-bottom: 10px;
}

.user-form .button {
  width: 100%;
}

.status-on,
.status-off {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 900;
}

.status-on {
  background: rgba(20, 138, 65, 0.12);
  color: var(--green);
}

.status-off {
  background: rgba(180, 35, 53, 0.1);
  color: var(--red);
}

.source-actions,
.schedule-form,
.export-actions,
.preflight-list {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: wrap;
}

.source-actions .button,
.schedule-form .button,
.export-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.source-edit-form {
  margin: -4px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.source-import {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #ffffff;
}

.source-error {
  color: var(--red) !important;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.story-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.story-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.story-card h2 {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.12;
}

.story-card p {
  color: #323a41;
  font-size: 16px;
  line-height: 1.52;
}

.story-badges,
.story-meta,
.story-sources,
.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.story-badges span,
.story-meta span,
.story-sources a {
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef1f4;
  font-size: 12px;
  font-weight: 800;
}

.story-badges span:first-child {
  background: var(--yellow);
  color: var(--dark);
}

.story-sources a {
  color: #30373d;
}

.story-drafts {
  display: grid;
  gap: 8px;
}

.story-diagnostics dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.story-diagnostics div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #f8fafb;
}

.story-diagnostics dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.story-diagnostics dd {
  margin: 5px 0 0;
  font-size: 13px;
}

.story-diagnostics pre {
  overflow: auto;
  max-height: 260px;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #f8fafb;
  font-size: 12px;
}

.story-editor form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.story-editor textarea[name="body"] {
  min-height: 180px;
}

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

.story-detail-grid .portal-panel {
  box-shadow: none;
}

.preflight-list {
  align-items: start;
}

.schedule-form input {
  max-width: 230px;
}

.story-drafts details {
  padding: 10px 12px;
  box-shadow: none;
}

.story-drafts summary {
  font-size: 13px;
}

.story-drafts textarea {
  margin-top: 10px;
  min-height: 110px;
  background: #f8fafb;
  font-size: 13px;
}

.story-actions .button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.empty-state {
  color: var(--muted);
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #30373d;
  font-size: 14px;
  font-weight: 850;
}

.news-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.news-hero {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-bottom: 30px;
}

.news-hero h1 {
  max-width: 860px;
}

.news-hero p:last-child,
.preview-note {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.news-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto auto;
  gap: 10px;
  margin-bottom: 22px;
}

.preview-note {
  margin-bottom: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-story-card,
.public-empty,
.news-detail article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 19, 21, 0.08);
}

.public-story-card a {
  display: grid;
  gap: 14px;
  min-height: 310px;
  padding: 20px;
}

.public-story-card span,
.news-detail article > span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.public-story-card h2 {
  font-size: 26px;
  line-height: 1.12;
}

.public-story-card p,
.news-detail p {
  color: #30373d;
  line-height: 1.58;
}

.news-detail p {
  white-space: pre-line;
}

.public-story-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.public-empty {
  grid-column: 1 / -1;
  padding: 30px;
}

.news-detail article {
  display: grid;
  gap: 18px;
  max-width: 840px;
  padding: clamp(22px, 4vw, 42px);
}

.news-detail h1 {
  max-width: 820px;
}

.news-detail h2 {
  font-size: 24px;
}

.news-detail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.news-detail a,
.back-link {
  color: #3a4d63;
  font-weight: 850;
}

@media (max-width: 1060px) {
  .main-nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lead-card {
    max-width: 560px;
  }

  .benefit-grid,
  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .analytics-section,
  .split-section,
  .admin-grid,
  .news-filters,
  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .portal-layout,
  .portal-login {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
    padding: 0 14px;
  }

  .header-actions .phone-link {
    display: none;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .button {
    padding: 0 14px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero {
    min-height: auto;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(245, 246, 247, 0.94) 0%, rgba(245, 246, 247, 0.88) 62%, rgba(245, 246, 247, 0.98) 100%);
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-content {
    min-height: auto;
    padding: 44px 0 42px;
  }

  .hero-buttons,
  .site-footer,
  .admin-topbar,
  .public-header,
  .portal-header,
  .portal-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-actions {
    flex-wrap: wrap;
  }

  .portal-shell {
    width: min(100vw - 28px, 1280px);
  }

  .button-large,
  .hero-buttons .button,
  .site-footer .button {
    width: 100%;
  }

  .lead-card {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .proof-strip,
  .benefit-grid,
  .faq-grid,
  .metric-row,
  .metric-grid,
  .story-filters,
  .story-detail-grid,
  .story-diagnostics dl,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .source-row,
  .schedule-form {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding: 54px 0;
  }
}
