:root {
  --bg: #f7f9fb;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #5f6d7d;
  --line: #dbe2ea;
  --accent: #087e8b;
  --accent-deep: #065b67;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(16, 32, 51, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

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

.header-grid {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.86rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a,
.source-link,
.filter-button {
  border-radius: 999px;
  text-decoration: none;
}

.header-nav a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  background: #edf3f6;
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 48px;
  padding: 44px 0 26px;
  align-items: center;
}

.source-date,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.review-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
  padding: 10px 0 34px;
}

.snapshot-copy {
  max-width: 760px;
}

.snapshot-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: 0;
}

.snapshot-copy p {
  color: var(--muted);
  font-size: 0.98rem;
}

.snapshot-copy p:last-child {
  margin-bottom: 0;
}

.source-proof {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  margin: 0;
}

.source-proof div {
  background: var(--panel);
  padding: 16px;
}

.source-proof dt {
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-proof dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.ai-context {
  padding: 0 0 28px;
}

.ai-context h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: 0;
}

.ai-context > p {
  max-width: 800px;
  color: var(--muted);
  font-size: 0.98rem;
}

.qa-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.qa-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.qa-list h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.qa-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.stats div {
  min-width: 0;
  padding: 20px;
  background: var(--panel);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.toolbar-wrap {
  position: sticky;
  top: 77px;
  z-index: 10;
  border-block: 1px solid var(--line);
  background: rgba(247, 249, 251, 0.94);
  backdrop-filter: blur(14px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  align-items: center;
}

.search-field {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0 14px;
}

.search-field svg,
.source-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-field svg {
  color: var(--muted);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.98rem;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0 16px;
}

.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.results-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.results-summary p {
  margin-bottom: 0;
}

.review-sections {
  display: grid;
  gap: 34px;
  padding: 18px 0 64px;
}

.review-section {
  scroll-margin-top: 166px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: 0;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent-deep);
  font-weight: 800;
  padding: 9px 13px;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: var(--accent);
}

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

.review-card {
  display: grid;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.review-card:hover,
.review-card:focus-visible {
  border-color: rgba(8, 126, 139, 0.55);
  box-shadow: 0 14px 34px rgba(8, 126, 139, 0.12);
  transform: translateY(-1px);
}

.review-card[hidden],
.review-section[hidden] {
  display: none;
}

.review-title {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.review-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #f0f4f7;
  padding: 0 9px;
}

.rating-pill {
  color: #7a4b08;
  background: #fff4da !important;
}

.external-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eef7f8;
  color: var(--accent-deep);
}

.external-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 24px;
}

.no-script-summary {
  padding: 0 0 56px;
}

.no-script-summary h2 {
  font-size: 1.35rem;
}

.no-script-summary p,
.no-script-summary li {
  color: var(--muted);
}

.no-script-summary a {
  color: var(--accent-deep);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 24px 0;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .intro,
  .review-snapshot,
  .toolbar {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 34px;
  }

  .stats,
  .qa-list,
  .review-list {
    grid-template-columns: 1fr;
  }

  .toolbar-wrap {
    top: 76px;
  }

  .filter-group {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .results-summary,
  .section-heading {
    display: grid;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .header-grid {
    min-height: 72px;
  }

  .header-nav {
    display: none;
  }

  h1 {
    font-size: 2.15rem;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .external-icon {
    display: none;
  }
}
