:root {
  --bg: #f4f1ea;
  --paper: rgba(251, 248, 242, 0.92);
  --paper-strong: rgba(251, 248, 242, 0.98);
  --ink: #1f2933;
  --muted: #52606d;
  --line: rgba(216, 210, 199, 0.9);
  --accent: #0f6b6f;
  --accent-deep: #0b5559;
  --accent-soft: rgba(15, 107, 111, 0.1);
  --secondary: #7a8f6a;
  --highlight: #c38b2e;
  --success: #2f6e4f;
  --warning: #9a6b16;
  --danger: #a33a3a;
  --shadow: 0 22px 60px rgba(31, 41, 51, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 107, 111, 0.09), transparent 34%),
    radial-gradient(circle at top right, rgba(195, 139, 46, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f4ee 0%, #f0ebe2 100%);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #ffffff;
  text-decoration: none;
}

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

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

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(251, 248, 242, 0.96), rgba(244, 248, 247, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
  animation: rise-in 500ms ease both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -6rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 107, 111, 0.14), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  gap: 1.25rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1,
.panel-header h2,
.block-heading-row h3 {
  font-family: "Space Grotesk", sans-serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.95;
  max-width: none;
  white-space: nowrap;
}

.hero-text {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: var(--accent-deep);
  font-weight: 600;
}

.hero-subtext {
  margin: 0.85rem 0 0;
  max-width: 48rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero-scope {
  margin: 0.85rem 0 0;
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(15, 107, 111, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-preview {
  align-self: stretch;
}

.preview-card {
  position: relative;
  height: 100%;
  min-height: 16rem;
  padding: 1.2rem;
  border: 1px solid rgba(15, 107, 111, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(235, 243, 242, 0.92));
}

.preview-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.preview-title {
  margin: 0.4rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.05;
}

.preview-meter {
  position: relative;
  width: 100%;
  height: 0.9rem;
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.12);
}

.preview-meter-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f6b6f, #7a8f6a);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.preview-item {
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(68, 55, 38, 0.1);
}

.preview-item-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.25rem;
}

.content-rail {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(230, 241, 242, 0.96), rgba(220, 234, 236, 0.92));
  box-shadow: var(--shadow);
  animation: rise-in 620ms ease both;
}

.rail-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.rail-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.rail-header h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.rail-subtext {
  max-width: 28rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.rail-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 320px);
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 107, 111, 0.55) rgba(15, 107, 111, 0.12);
}

.rail-scroll::-webkit-scrollbar {
  height: 10px;
}

.rail-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.12);
}

.rail-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.45);
}

.rail-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 1rem;
  border: 1px solid rgba(15, 107, 111, 0.14);
  border-radius: 22px;
  background: rgba(248, 252, 252, 0.78);
}

.rail-card-type {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rail-card h3 {
  margin: 0.75rem 0 0.65rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.rail-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.rail-card-meta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.12);
  color: var(--accent-deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.rail-card-video {
  background:
    linear-gradient(180deg, rgba(231, 243, 243, 0.95), rgba(246, 251, 251, 0.84));
}

.rail-card-ad {
  background:
    linear-gradient(180deg, rgba(237, 240, 226, 0.96), rgba(246, 249, 241, 0.88));
  border-style: dashed;
}

.panel {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  animation: rise-in 580ms ease both;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.panel-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.section-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.section-label {
  margin-top: 0.25rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(68, 55, 38, 0.18);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 111, 0.56);
  box-shadow: 0 0 0 4px rgba(15, 107, 111, 0.12);
  background: #fffdf8;
}

textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.input-error {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.input-help {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  font-weight: 700;
}

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

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

.button-primary {
  background: var(--accent);
  color: #fff7f2;
  box-shadow: 0 12px 30px rgba(15, 107, 111, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(68, 55, 38, 0.18);
  color: var(--ink);
}

.button-small {
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.save-note,
.copy-feedback {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.stat-card,
.share-card,
.composition-block,
.breakdown-block,
.notes-block,
.sponsored-module {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
}

.stat-card {
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(90deg, rgba(15, 107, 111, 0.9), rgba(122, 143, 106, 0.6));
}

.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-value {
  margin: 0.4rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.stat-value.is-positive {
  color: var(--success);
}

.stat-value.is-negative {
  color: var(--danger);
}

.stat-value.is-low {
  color: var(--success);
}

.stat-value.is-moderate {
  color: var(--warning);
}

.stat-value.is-high {
  color: var(--danger);
}

.block-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0;
}

.block-heading-row h3 {
  margin: 0;
  font-size: 1.1rem;
}

.breakdown-block,
.composition-block,
.notes-block,
.share-card,
.sponsored-module {
  margin-top: 1rem;
}

.breakdown-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: var(--accent-soft);
}

.breakdown-name {
  color: var(--muted);
  font-weight: 600;
}

.breakdown-value {
  font-weight: 700;
}

.composition-bars {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.composition-row {
  display: grid;
  gap: 0.5rem;
}

.composition-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.composition-track {
  width: 100%;
  height: 0.9rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.1);
}

.composition-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f6b6f, #7a8f6a);
}

.note-list {
  margin: 0;
  padding: 0.9rem 1rem 1rem 2rem;
  color: var(--muted);
  line-height: 1.6;
}

.note-list li + li {
  margin-top: 0.45rem;
}

.share-summary {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink);
  line-height: 1.7;
  white-space: pre-line;
}

.module-kicker {
  margin: 0 0 0.2rem;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-copy {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.sponsored-grid {
  display: grid;
  gap: 0.9rem;
  padding: 0 1rem 1rem;
}

.sponsored-card {
  padding: 1rem;
  border: 1px dashed rgba(15, 107, 111, 0.26);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(237, 245, 245, 0.9), rgba(248, 251, 251, 0.88));
}

.sponsored-card-transport {
  background: linear-gradient(180deg, rgba(233, 245, 248, 0.92), rgba(247, 251, 252, 0.88));
}

.sponsored-card-lodging {
  background: linear-gradient(180deg, rgba(236, 242, 232, 0.94), rgba(248, 251, 246, 0.88));
}

.sponsored-card-prep {
  background: linear-gradient(180deg, rgba(245, 239, 232, 0.94), rgba(251, 248, 245, 0.88));
}

.sponsored-card-dining {
  background: linear-gradient(180deg, rgba(247, 241, 231, 0.94), rgba(252, 249, 244, 0.88));
}

.sponsored-card-planning {
  background: linear-gradient(180deg, rgba(237, 245, 245, 0.9), rgba(248, 251, 251, 0.88));
}

.sponsored-type {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sponsored-icon {
  margin: 0.55rem 0 0;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.sponsored-card h4 {
  margin: 0.7rem 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
}

.sponsored-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sponsored-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

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

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-copy,
.footer-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-nav a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
  cursor: pointer;
}

.footer-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.consent-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1100;
  width: min(32rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(251, 248, 242, 0.98);
  box-shadow: var(--shadow);
}

.consent-banner[hidden],
.consent-modal-backdrop[hidden] {
  display: none !important;
}

.consent-title {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.consent-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.consent-actions,
.consent-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.consent-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 41, 51, 0.48);
}

.consent-modal {
  width: min(42rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.consent-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.consent-modal h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.consent-close {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
}

.consent-intro {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.consent-option-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.consent-option {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.consent-option-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.consent-option-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.consent-option input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--accent);
}

.consent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.12);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.section-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.section-link {
  align-self: flex-start;
}

.rail-header-meta {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.rail-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.rail-card-link .rail-card {
  height: 100%;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(251, 248, 242, 0.96), rgba(236, 245, 244, 0.94)),
    var(--paper);
  box-shadow: var(--shadow);
}

.content-hero-text {
  margin: 0.9rem 0 0;
  color: var(--accent-deep);
  font-size: 1.15rem;
  font-weight: 600;
}

.content-hero-subtext {
  max-width: 44rem;
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.content-hero-copy h1,
.content-hero-title,
.article-page h1,
.article-prose h2,
.sidebar-card h3,
.filter-group h3,
.article-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.content-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 3.8rem);
  line-height: 0.96;
}

.content-hero-card {
  height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(15, 107, 111, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 242, 241, 0.88));
}

.content-hero-label,
.sidebar-label,
.article-card-label,
.article-kicker {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-hero-title {
  margin: 0.45rem 0 0.8rem;
  font-size: 1.45rem;
  line-height: 1.1;
}

.content-hero-list,
.article-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.articles-layout,
.article-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.25rem;
}

.articles-main,
.articles-sidebar,
.article-page {
  min-width: 0;
}

.articles-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.articles-topline h2,
.articles-topline h3 {
  margin: 0;
}

.filter-panel,
.billboard-ad,
.sidebar-card,
.article-card,
.article-empty-state,
.article-page {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.filter-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.filter-group h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.filter-chip-row,
.tag-filter-row,
.article-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip,
.tag-filter,
.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 55, 38, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  font-weight: 600;
}

.filter-chip,
.tag-filter {
  cursor: pointer;
}

.filter-chip.is-active,
.tag-filter.is-active {
  border-color: rgba(15, 107, 111, 0.44);
  background: rgba(15, 107, 111, 0.12);
  color: var(--accent-deep);
}

.tag-filter {
  gap: 0.5rem;
}

.tag-filter strong {
  font-size: 0.82rem;
}

.tag-pill {
  min-height: 0;
  padding: 0.38rem 0.7rem;
  color: var(--accent-deep);
  background: rgba(15, 107, 111, 0.08);
  font-size: 0.88rem;
}

.billboard-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background:
    linear-gradient(135deg, rgba(239, 244, 229, 0.96), rgba(250, 251, 244, 0.94));
}

.billboard-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.billboard-copy h3 {
  margin: 0.4rem 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.billboard-copy p,
.results-summary {
  margin: 0;
  color: var(--muted);
}

.articles-feed {
  margin-top: 1rem;
}

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

.article-card,
.article-empty-state {
  padding: 1.15rem;
}

.article-card h3 {
  margin: 0.7rem 0 0.6rem;
  font-size: 1.35rem;
  line-height: 1.15;
}

.article-card-link {
  color: inherit;
  text-decoration: none;
}

.article-card-copy,
.sidebar-card p,
.article-prose p,
.article-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.article-meta-row,
.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-card-sponsored,
.sidebar-card-sponsored,
.article-inline-ad {
  background:
    linear-gradient(180deg, rgba(237, 240, 226, 0.96), rgba(246, 249, 241, 0.88));
}

.articles-sidebar {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.sidebar-card {
  padding: 1.15rem;
}

.sidebar-card h3 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.2rem;
}

.article-page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.article-page {
  padding: 1.5rem;
}

.article-page h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 0.98;
}

.back-link {
  margin-bottom: 0.8rem;
}

.article-prose {
  display: grid;
  gap: 1rem;
}

.article-prose h2 {
  margin: 0.8rem 0 0;
  font-size: 1.35rem;
}

.article-inline-ad {
  padding: 1rem;
  border: 1px dashed rgba(15, 107, 111, 0.18);
  border-radius: 20px;
}

.sponsored-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.article-empty-state h3 {
  margin: 0 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
}

.legal-shell {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2 {
  font-family: "Space Grotesk", sans-serif;
}

.legal-card h1 {
  margin-top: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.legal-card h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-card a {
  color: var(--accent-deep);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 4.8vw, 3.6rem);
  }

  .rail-scroll {
    grid-auto-columns: minmax(240px, 290px);
  }
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 1.5rem, 100%);
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .content-hero,
  .hero-grid,
  .layout,
  .articles-layout,
  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.3rem;
  }

  .footer-grid {
    flex-direction: column;
  }

  .rail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rail-header-meta {
    justify-items: start;
    width: 100%;
  }

  .articles-topline {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .hero-copy h1 {
    white-space: normal;
    max-width: 12ch;
  }

  .hero-preview {
    max-width: 100%;
  }

  .preview-card {
    min-height: auto;
  }

  .content-rail,
  .panel,
  .site-footer,
  .content-hero,
  .article-page,
  .filter-panel,
  .billboard-ad {
    padding: 1.15rem;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rail-scroll {
    grid-auto-columns: minmax(250px, 78vw);
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .consent-banner {
    right: 0.75rem;
    bottom: 0.75rem;
    width: min(30rem, calc(100% - 1.5rem));
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero,
  .panel,
  .content-rail,
  .site-footer,
  .content-hero,
  .article-page,
  .filter-panel,
  .billboard-ad {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.9rem);
    line-height: 1;
  }

  .hero-text,
  .hero-subtext,
  .hero-scope {
    font-size: 0.98rem;
  }

  .hero-chip {
    width: 100%;
    justify-content: center;
  }

  .preview-card {
    padding: 1rem;
  }

  .rail-header h2,
  .panel-header h2 {
    font-size: 1.3rem;
  }

  .rail-scroll {
    grid-auto-columns: minmax(84vw, 84vw);
    scroll-snap-type: x proximity;
  }

  .rail-card {
    min-height: 200px;
    scroll-snap-align: start;
  }

  .field-grid,
  .summary-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .action-row,
  .block-heading-row,
  .footer-grid {
    align-items: stretch;
  }

  .block-heading-row {
    flex-direction: column;
  }

  .button,
  .button-small,
  .consent-banner,
  .consent-modal,
  .section-link {
    width: 100%;
  }

  .stat-card {
    padding: 0.9rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .breakdown-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .consent-banner {
    right: 0.5rem;
    bottom: 0.5rem;
    border-radius: 18px;
  }

  .consent-modal-backdrop {
    padding: 0.5rem;
  }

  .consent-modal {
    max-height: calc(100vh - 1rem);
    padding: 1rem;
    border-radius: 20px;
  }

  .consent-option {
    flex-direction: column;
  }

  .consent-option input[type="checkbox"] {
    width: 1.4rem;
    height: 1.4rem;
    margin-top: 0.4rem;
  }

  .billboard-ad,
  .articles-topline,
  .article-meta-row,
  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
