:root {
  color-scheme: light;
  --bg: #f4efe7;
  --bg-soft: #efe6da;
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: #fffaf3;
  --ink: #171515;
  --muted: #645d55;
  --faint: #8b8279;
  --line: rgba(65, 51, 42, 0.14);
  --accent: #9f2f35;
  --accent-soft: rgba(159, 47, 53, 0.1);
  --accent-2: #0f625f;
  --accent-3: #b36c25;
  --success: #466d3a;
  --shadow: 0 20px 60px rgba(59, 43, 28, 0.12);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(159, 47, 53, 0.08), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(15, 98, 95, 0.08), transparent 22%),
    radial-gradient(circle at 50% 95%, rgba(179, 108, 37, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f3eb 0%, #f4efe7 46%, #efe6da 100%);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", "Aptos", sans-serif;
}

button,
input,
select {
  font: inherit;
}

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

.page-shell {
  position: relative;
  width: min(100%, 1420px);
  margin: 0 auto;
  padding: 28px;
  overflow: clip;
}

.brand-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 16px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 21, 21, 0.12);
  background: rgba(255, 250, 243, 0.86);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-grid,
.page-accent {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page-grid {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(35, 24, 18, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 24, 18, 0.08) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 82%);
}

.page-accent {
  filter: blur(16px);
  border-radius: 999px;
}

.accent-one {
  width: 360px;
  height: 360px;
  top: -100px;
  right: -90px;
  background: radial-gradient(circle, rgba(159, 47, 53, 0.2), transparent 68%);
}

.accent-two {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(15, 98, 95, 0.16), transparent 70%);
}

.hero,
.controls,
.stats-grid,
.content-grid,
.comparison-grid,
.sources {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.stat-card,
.sources {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 247, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.report-line {
  margin: 0 0 14px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3,
p,
dl,
dt,
dd {
  margin: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  max-width: 8ch;
}

.report-subtitle {
  margin-top: 14px;
  max-width: 28ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  line-height: 1.12;
  color: var(--accent-2);
}

.hero-body {
  max-width: 64ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.toggle:hover,
.group-chip:hover,
.state-chip:hover,
.recommendation-item:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #fffaf3;
}

.button.secondary {
  background: transparent;
  border-color: rgba(23, 21, 21, 0.18);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.hero-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  color: var(--faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-meta dd {
  margin-top: 8px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.stat-panel {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 239, 229, 0.96));
  border: 1px solid rgba(65, 51, 42, 0.12);
  padding: 18px;
}

.stat-panel.compact h2 {
  font-size: 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.panel-topline span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.snapshot-total strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.snapshot-total p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.grade-rail {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.grade-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.grade-label {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 21, 21, 0.06);
  font-weight: 800;
  font-size: 0.82rem;
}

.grade-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(23, 21, 21, 0.08);
  overflow: hidden;
}

.grade-fill {
  display: block;
  height: 100%;
  width: var(--grade-width, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(159, 47, 53, 0.74), rgba(15, 98, 95, 0.7));
}

.grade-details {
  color: var(--muted);
  font-size: 0.85rem;
}

.change-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  margin-top: 14px;
}

.change-item {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.55;
}

.change-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.controls {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.9fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.86);
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toggle {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(23, 21, 21, 0.14);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.toggle.active {
  background: var(--ink);
  color: #fffaf3;
  border-color: var(--ink);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-weight: 600;
}

.quick-links a {
  border-bottom: 1px solid transparent;
}

.quick-links a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 18px;
  min-height: 168px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-card strong {
  display: block;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.stat-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.content-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.standard-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(247, 239, 229, 0.7);
  border: 1px solid rgba(65, 51, 42, 0.08);
}

.standard-index {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.standard-card h3 {
  margin-top: 18px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.standard-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.insight-panel {
  display: grid;
  align-content: start;
}

.spotlight-body {
  display: grid;
  gap: 14px;
}

.spotlight-body > p {
  color: var(--muted);
  line-height: 1.7;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(159, 47, 53, 0.09);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.chip-rail,
.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.group-chip,
.state-chip {
  border: 1px solid rgba(23, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
}

.group-chip.active,
.state-chip.active {
  color: #fffaf3;
  background: var(--ink);
  border-color: var(--ink);
}

.state-chip.disabled {
  opacity: 0.7;
  cursor: default;
}

.tone-b {
  --chip-tone: rgba(15, 98, 95, 0.12);
}

.tone-c {
  --chip-tone: rgba(179, 108, 37, 0.12);
}

.tone-d,
.tone-f,
.tone-a {
  --chip-tone: rgba(159, 47, 53, 0.12);
}

.group-chip.tone-b:not(.active),
.state-chip.tone-b:not(.active) {
  background: var(--chip-tone);
}

.group-chip.tone-c:not(.active),
.state-chip.tone-c:not(.active) {
  background: var(--chip-tone);
}

.group-chip.tone-f:not(.active),
.state-chip.tone-f:not(.active) {
  background: var(--chip-tone);
}

.state-list {
  padding-top: 4px;
}

.detail-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(247, 239, 229, 0.86));
  border: 1px solid rgba(65, 51, 42, 0.1);
  padding: 18px;
}

.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-topline span {
  font-weight: 800;
  font-size: 1.12rem;
}

.detail-topline strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.detail-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 21, 21, 0.05);
  color: var(--muted);
  font-size: 0.84rem;
}

.comparison-bars {
  display: grid;
  gap: 12px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.comparison-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(23, 21, 21, 0.08);
  font-weight: 800;
}

.comparison-stack {
  display: grid;
  gap: 6px;
}

.comparison-track {
  height: 11px;
  border-radius: 999px;
  background: rgba(23, 21, 21, 0.08);
  overflow: hidden;
}

.comparison-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.comparison-track.before span {
  background: rgba(159, 47, 53, 0.52);
}

.comparison-track.after span {
  background: rgba(15, 98, 95, 0.54);
}

.comparison-values {
  color: var(--muted);
  font-weight: 700;
}

.comparison-note {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.recommendation-list {
  display: grid;
  gap: 12px;
}

.recommendation-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(247, 239, 229, 0.72);
  border: 1px solid rgba(65, 51, 42, 0.08);
}

.recommendation-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf3;
  font-weight: 800;
  font-size: 0.82rem;
}

.recommendation-item p {
  color: var(--muted);
  line-height: 1.65;
}

.sources {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sources div {
  display: grid;
  gap: 8px;
}

.sources p {
  color: var(--muted);
}

.sources a {
  width: fit-content;
  color: var(--accent-2);
  font-weight: 700;
  border-bottom: 1px solid rgba(15, 98, 95, 0.28);
}

.sources > p {
  max-width: 34ch;
  text-align: right;
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  color: var(--accent-2);
  font-weight: 800;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-panel {
  margin-top: 18px;
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 252, 247, 0.94));
  box-shadow: var(--shadow);
}

.blog-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.blog-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(247, 239, 229, 0.72);
  border: 1px solid rgba(65, 51, 42, 0.08);
}

.blog-card.featured {
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(247, 239, 229, 0.88));
  border-color: rgba(159, 47, 53, 0.18);
}

.blog-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.blog-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

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

.blog-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 0.84rem;
}

.blog-card.empty {
  grid-column: 1 / -1;
  text-align: center;
}

.blog-cta {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-cta p {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.65;
}

.blog-page,
.post-page {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 28px;
}

.blog-hero,
.post-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.blog-hero-copy {
  max-width: 60ch;
}

.blog-hero-copy h1,
.post-article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.blog-hero-copy p,
.post-article .post-excerpt {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.blog-hero-actions {
  display: flex;
  gap: 10px;
}

.blog-index,
.post-article {
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 247, 0.94));
  box-shadow: var(--shadow);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.9rem;
}

.post-body {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  color: var(--ink);
  line-height: 1.8;
}

.post-body p {
  max-width: 72ch;
}

.admin-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(159, 47, 53, 0.08), transparent 24%),
    radial-gradient(circle at 85% 14%, rgba(15, 98, 95, 0.08), transparent 22%),
    linear-gradient(180deg, #f8f3eb 0%, #f4efe7 46%, #efe6da 100%);
}

.admin-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
}

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-card {
  width: min(560px, 100%);
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 252, 247, 0.94));
  box-shadow: var(--shadow);
}

.login-brand,
.admin-brand {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 900;
}

.login-card h1 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.login-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-form label,
.editor-form label {
  display: grid;
  gap: 8px;
}

.login-form span,
.editor-form span,
.post-search {
  color: var(--muted);
  font-size: 0.86rem;
}

.login-form input,
.editor-form input,
.editor-form textarea,
.editor-form select,
.post-search input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(65, 51, 42, 0.14);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.login-hint {
  font-size: 0.86rem;
}

.login-error {
  min-height: 1.4em;
  color: #9f2f35;
  font-weight: 700;
}

.dashboard-shell {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 247, 0.92));
  box-shadow: var(--shadow);
}

.admin-topbar p {
  margin-top: 8px;
  color: var(--muted);
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.admin-stat span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-stat strong {
  display: block;
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.8fr;
  gap: 16px;
}

.admin-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 252, 247, 0.92));
  box-shadow: var(--shadow);
}

.post-search {
  margin-bottom: 12px;
}

.posts-list {
  display: grid;
  gap: 10px;
}

.post-row {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(65, 51, 42, 0.12);
  background: rgba(247, 239, 229, 0.72);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.post-row.active {
  background: linear-gradient(180deg, rgba(159, 47, 53, 0.12), rgba(255, 255, 255, 0.92));
  border-color: rgba(159, 47, 53, 0.22);
}

.post-row strong {
  display: block;
  font-size: 1rem;
}

.post-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.post-row span {
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.editor-form textarea {
  resize: vertical;
  min-height: 120px;
}

.editor-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
}

.checkbox-row input {
  width: auto;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.danger {
  border: 1px solid rgba(159, 47, 53, 0.2);
  background: rgba(159, 47, 53, 0.08);
  color: var(--accent);
}

.post-preview {
  margin-top: 12px;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(247, 239, 229, 0.72);
  border: 1px dashed rgba(65, 51, 42, 0.18);
}

@media (max-width: 1120px) {
  .blog-grid,
  .admin-stats,
  .dashboard-grid,
  .editor-options,
  .blog-list {
    grid-template-columns: 1fr;
  }

  .blog-cta,
  .admin-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-topbar-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .admin-shell {
    padding: 16px;
  }

  .hero,
  .content-grid,
  .comparison-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .blog-panel,
  .sources {
    padding: 16px;
  }

  .hero-meta,
  .standards-list {
    grid-template-columns: 1fr;
  }

  .comparison-row,
  .grade-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .comparison-values,
  .grade-details {
    grid-column: 2;
  }

  .panel-heading {
    flex-direction: column;
  }

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

  .blog-hero,
  .post-hero {
    flex-direction: column;
  }
}

.tone-a .grade-fill,
.tone-a .comparison-track.after span {
  background: linear-gradient(90deg, rgba(88, 88, 88, 0.72), rgba(129, 129, 129, 0.72));
}

.tone-b .grade-fill,
.tone-b .comparison-track.after span {
  background: linear-gradient(90deg, rgba(15, 98, 95, 0.7), rgba(51, 128, 94, 0.7));
}

.tone-c .grade-fill,
.tone-c .comparison-track.after span {
  background: linear-gradient(90deg, rgba(179, 108, 37, 0.74), rgba(208, 146, 69, 0.74));
}

.tone-d .grade-fill,
.tone-d .comparison-track.after span {
  background: linear-gradient(90deg, rgba(168, 96, 43, 0.72), rgba(208, 124, 61, 0.72));
}

.tone-f .grade-fill,
.tone-f .comparison-track.after span {
  background: linear-gradient(90deg, rgba(159, 47, 53, 0.76), rgba(188, 76, 58, 0.76));
}

@media (max-width: 1120px) {
  .hero,
  .content-grid,
  .comparison-grid,
  .stats-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .quick-links {
    justify-content: flex-start;
  }

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

  .sources > p {
    text-align: left;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .sources,
  .controls {
    padding: 16px;
  }

  .hero-meta,
  .standards-list {
    grid-template-columns: 1fr;
  }

  .comparison-row,
  .grade-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .comparison-values,
  .grade-details {
    grid-column: 2;
  }

  .panel-heading {
    flex-direction: column;
  }
}
