:root {
  color-scheme: light;
  --ink: #0a1628;
  --muted: #4a5568;
  --line: #c5d0de;
  --paper: #f0f4f8;
  --panel: #ffffff;
  --navy: #0a1628;
  --red: #b91c1c;
  --blue: #1e3a5f;
  --green: #2e6250;
  --shadow: 0 18px 45px rgba(10, 22, 40, 0.12);
  --btn-surface: #e8eef4;
  --btn-surface-hover: #dbe4ef;
  --btn-surface-border: #b8c4d4;
  --btn-surface-text: #0a1628;
  --highlight: #ffffff;
  --highlight-muted: #dbeafe;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 12px;
}

.brand-logo {
  display: block;
  height: auto;
  max-height: 52px;
  max-width: min(420px, 72vw);
  object-fit: contain;
  width: auto;
}

@media (max-width: 640px) {
  .brand-logo {
    max-height: 40px;
    max-width: min(300px, 68vw);
  }
}

.brand-mark {
  display: none;
}

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

.brand strong {
  font-size: 1.1rem;
}

.brand small,
.eyebrow,
.post-meta,
label {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

nav {
  display: flex;
  font-family: Arial, sans-serif;
  gap: 10px;
}

.site-header nav a {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
}

.hero {
  background:
    linear-gradient(90deg, rgba(21, 37, 58, 0.92), rgba(21, 37, 58, 0.64)),
    linear-gradient(135deg, var(--navy), var(--red) 58%, var(--blue));
  color: white;
  min-height: 52vh;
  padding: clamp(56px, 9vw, 118px) clamp(18px, 4vw, 48px);
}

.hero-copy {
  max-width: 780px;
}

.hero .eyebrow {
  color: #dbeafe;
}

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

h1 {
  font-size: clamp(3rem, 9vw, 7.25rem);
  line-height: 0.92;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  max-width: 720px;
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.content-band {
  padding: 44px clamp(18px, 4vw, 48px) 70px;
}

.section-heading {
  margin-bottom: 22px;
}

.post-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.draft-list {
  display: grid;
  gap: 18px;
}

.post-card,
.bot-panel,
.preview-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.post-card {
  padding: 24px;
}

.post-card p {
  color: #313741;
  line-height: 1.6;
}

.post-image {
  margin: 0 0 18px;
}

.post-image img {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-image figcaption,
.image-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 8px;
}

.post-image a {
  color: var(--red);
  font-weight: 800;
  margin-left: 6px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 8px;
  margin-bottom: 14px;
}

.post-meta span {
  background: #eef1f4;
  border-radius: 3px;
  padding: 5px 7px;
}

.bot-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  padding: clamp(24px, 4vw, 48px);
}

.bot-panel,
.preview-panel {
  padding: 24px;
}

.bot-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: 1rem/1.45 Arial, sans-serif;
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

select {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: 1rem/1.45 Arial, sans-serif;
  padding: 12px;
  width: 100%;
}

.primary-action {
  background: var(--red);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: 800 1rem/1 Arial, sans-serif;
  min-height: 48px;
  padding: 14px 18px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.primary-action:hover:not(:disabled) {
  background: #8a2826;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.7;
}

.draft-card .primary-action {
  margin-top: 10px;
  width: 100%;
}

.empty-state {
  box-shadow: none;
}

@media (max-width: 820px) {
  .site-header,
  .bot-shell {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  .site-header nav a {
    flex: 1;
    text-align: center;
  }
}

/* Red Point Authority newsroom refresh */
body {
  background: var(--paper);
}

.site-header {
  background: #ffffff;
  border-bottom: 3px solid var(--red);
  min-height: 68px;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
}

.site-header nav a {
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  color: var(--btn-surface-text);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-header-user {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  max-width: 100%;
}

.site-header-user-avatar {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 28px;
  object-fit: cover;
  width: 28px;
}

.site-header-user-avatar--placeholder {
  align-items: center;
  background: var(--deep);
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
}

.site-header-user-name {
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header nav a:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero {
  background:
    linear-gradient(90deg, rgba(11, 19, 31, 0.92), rgba(11, 19, 31, 0.64) 48%, rgba(163, 48, 45, 0.24)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/United%20States%20Capitol%20west%20front%20edit2.jpg?width=2400");
  background-position: center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: min(680px, 72vh);
  padding-bottom: 24px;
}

.hero h1 {
  max-width: 880px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tags span,
.topic-chips span,
.mini-topics span {
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 10px;
  text-transform: uppercase;
}

.hero-credit {
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  margin: 32px 0 0;
}

.news-band {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: 210px minmax(0, 1fr) 270px;
  padding: 36px clamp(18px, 4vw, 48px) 70px;
}

.category-rail,
.briefing-panel {
  border-top: 4px solid var(--navy);
  position: sticky;
  top: 92px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-list a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  font-family: Arial, sans-serif;
  justify-content: space-between;
  padding: 12px;
}

.category-list strong {
  color: var(--red);
}

.briefing-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  padding: 18px;
}

.briefing-panel ul {
  color: #313741;
  line-height: 1.55;
  margin: 0;
  padding-left: 18px;
}

.lead-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  margin-bottom: 18px;
}

.lead-image {
  background:
    linear-gradient(135deg, rgba(21, 37, 58, 0.96), rgba(163, 48, 45, 0.82)),
    url("https://commons.wikimedia.org/wiki/Special:Redirect/file/Flag%20of%20the%20United%20States.svg?width=1800");
  background-position: center;
  background-size: cover;
  min-height: 360px;
}

.lead-image img {
  display: block;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  width: 100%;
}

.lead-copy {
  padding: clamp(22px, 4vw, 38px);
}

.lead-copy h3 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
}

.lead-copy p {
  color: #313741;
  font-size: 1.08rem;
  line-height: 1.55;
}

.topic-chips,
.mini-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-chips {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin: 18px 0;
  padding: 14px 0;
}

.topic-chips span,
.mini-topics span {
  background: #ffffff;
  border-color: var(--line);
  color: var(--navy);
}

.mini-topics {
  margin-top: 12px;
}

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

.post-card,
.bot-panel,
.preview-panel {
  border-radius: 4px;
  box-shadow: none;
}

.post-card h3 {
  font-size: 1.62rem;
}

.bot-shell {
  grid-template-columns: minmax(340px, 0.85fr) minmax(360px, 1.15fr);
}

.profile-editor {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}

.compact-heading h2 {
  font-size: 1.55rem;
}

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

.profile-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.profile-card legend {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 6px;
  text-transform: uppercase;
}

.secondary-action {
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font: 800 0.92rem/1 Arial, sans-serif;
  min-height: 44px;
  padding: 12px 16px;
  transition: background 0.15s ease;
}

.secondary-action:hover:not(:disabled) {
  background: #1e3552;
}

.secondary-action.danger-action {
  background: #5c1f1e;
}

.secondary-action.danger-action:hover:not(:disabled) {
  background: #742826;
}

@media (max-width: 1050px) {
  .news-band {
    grid-template-columns: 1fr;
  }

  .category-rail,
  .briefing-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .post-list,
  .bot-shell {
    grid-template-columns: 1fr;
  }

  .lead-copy h3 {
    font-size: 2rem;
  }
}

/* Professional edition */
:root {
  --cream: #eef2f7;
  --newsprint: #ffffff;
  --deep: #0a1628;
  --rule: #c5d0de;
  --accent: #b91c1c;
}

.pro-hero {
  min-height: min(620px, 68vh);
  padding-top: clamp(64px, 8vw, 104px);
}

.pro-hero h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.ticker-band {
  align-items: center;
  background: var(--deep);
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px clamp(18px, 4vw, 48px);
}

.ticker-band strong,
.ticker-band span {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.ticker-band strong {
  color: #ffffff;
}

.ticker-band span {
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  padding-left: 12px;
}

.front-grid,
.opinion-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 48px);
}

.front-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
}

.opinion-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  padding-top: 12px;
}

.compact-section {
  align-items: end;
  border-bottom: 2px solid var(--deep);
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.compact-section h2,
.panel-heading h2,
.review-panel h2 {
  font-size: clamp(1.35rem, 2vw, 2.1rem);
}

.pro-lead {
  border: 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(300px, 0.85fr);
  margin-bottom: 18px;
}

.pro-lead .lead-image {
  background: #e5e7eb;
  min-height: 430px;
}

.lead-image {
  margin: 0;
}

.lead-image figcaption,
.story-thumb figcaption {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 7px;
}

.lead-copy {
  background: var(--newsprint);
  border-top: 4px solid var(--accent);
}

.lead-copy h3 {
  letter-spacing: 0;
}

.secondary-stories {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secondary-card,
.story-row,
.newsletter-box {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.secondary-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.secondary-card > img,
.secondary-card figure img,
.story-thumb img,
.draft-image img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.secondary-card h3 {
  font-size: 1.45rem;
}

.editorial-list {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.story-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 220px minmax(0, 1fr);
  padding: 16px;
}

.story-thumb {
  min-width: 0;
}

.story-copy h3 {
  font-size: 1.55rem;
}

.article-excerpt p {
  margin-bottom: 10px;
}

.article-subhead,
.generated-card .preview-subhead {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 1.1em 0 0.35em;
  text-transform: uppercase;
}

.image-credit-line {
  color: var(--muted);
  margin: -4px 0 8px;
}

.article-dek {
  font-size: 1.08rem;
  line-height: 1.5;
}

.comments-section {
  border-top: 1px solid var(--rule);
  margin-top: 16px;
  padding-top: 12px;
}

.comment-toggle {
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  font: 800 0.82rem/1 Arial, sans-serif;
  padding: 0;
  text-transform: uppercase;
}

.comments-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

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

.comment {
  background: #f6f7f8;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
}

.comment-header + p,
.comment p {
  margin: 8px 0 0;
}

.comment-meta time {
  color: var(--muted);
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  margin-left: 0;
}

.comment strong {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.comment-form {
  display: grid;
  gap: 8px;
}

.comment-form input,
.comment-form textarea {
  background: #ffffff;
}

.comment-actions {
  margin-top: 8px;
}

.comment-reply-button {
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0;
  text-transform: uppercase;
}

.comment-reply-button:hover {
  color: var(--accent);
}

.comment-reply-panel {
  margin-top: 10px;
}

.comment-reply-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.comment-reply-context {
  margin: 0;
}

.comment-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-signed-in--compact {
  margin: 0;
}

.comment-node {
  display: grid;
  gap: 0;
}

.comment-reply {
  background: #fafbfc;
}

.newsletter-box {
  margin-top: 18px;
  padding: 16px;
}

.newsletter-box p {
  color: #313741;
  line-height: 1.5;
}

.quiet {
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.image-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--deep), var(--accent));
  color: white;
  display: flex;
  font-family: Arial, sans-serif;
  font-weight: 800;
  justify-content: center;
  text-transform: uppercase;
}

/* Editor desk redesign */
.desk-shell {
  display: grid;
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 48px) 60px;
}

.desk-topbar,
.compose-panel,
.profiles-panel,
.review-panel {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.desk-topbar {
  align-items: center;
  border-top: 4px solid var(--accent);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.desk-topbar h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  margin-bottom: 0;
}

.desk-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.desk-status span,
.secondary-link {
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  border-radius: 999px;
  color: var(--btn-surface-text);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.secondary-link:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.desk-grid {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.compose-panel,
.profiles-panel,
.review-panel {
  padding: 18px;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.panel-heading h2 {
  margin-bottom: 0;
}

.compact-button {
  min-height: 40px;
  padding: 11px 16px;
}

.desk-form,
.profiles-form {
  display: grid;
  gap: 14px;
}

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

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

.desk-form label,
.profiles-form label {
  font-size: 0.76rem;
}

.desk-form textarea,
.profiles-form textarea {
  min-height: 96px;
}

.profile-card {
  background: #f0f4f8;
}

.review-list {
  display: grid;
  gap: 14px;
}

.draft-review-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 16px;
  grid-template-columns: 190px minmax(0, 1fr) 140px;
  padding: 14px;
}

.draft-image img {
  border-radius: 3px;
  height: 100%;
}

.draft-main h3 {
  font-size: 1.35rem;
}

.draft-main p {
  color: #313741;
  line-height: 1.45;
}

.draft-actions {
  align-items: start;
  display: flex;
  justify-content: end;
}

.draft-empty {
  background: #ffffff;
  border: 1px dashed var(--rule);
  color: var(--muted);
  display: grid;
  font-family: Arial, sans-serif;
  gap: 6px;
  padding: 22px;
}

@media (max-width: 1080px) {
  .front-grid,
  .opinion-layout,
  .desk-grid,
  .pro-lead {
    grid-template-columns: 1fr;
  }

  .category-rail,
  .briefing-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .secondary-stories,
  .story-row,
  .draft-review-card,
  .two-col {
    grid-template-columns: 1fr;
  }

  .desk-topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .draft-actions {
    justify-content: stretch;
  }
}

/* Carousel homepage */
.masthead-strip {
  background: var(--newsprint);
  border-bottom: 1px solid var(--rule);
  padding: 28px clamp(18px, 4vw, 48px);
}

.masthead-strip h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 10px;
}

.masthead-strip p:not(.eyebrow) {
  color: #313741;
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 0;
  max-width: 860px;
}

/* Unified image previews */
.media-frame {
  aspect-ratio: 16 / 9;
  background: #e8ebf0;
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.media-frame img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-frame--empty {
  align-items: center;
  background: linear-gradient(135deg, var(--navy), #2a3f58);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  justify-content: center;
}

.media-frame--empty span {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-shell,
.category-strip {
  padding: 28px 0;
}

.carousel-shell {
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.carousel-shell:not(.carousel-shell-top) {
  background: #eef2f7;
}

.carousel-shell-top {
  background-color: #eef2f7;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.48) 0%,
      rgba(238, 242, 247, 0.75) 100%
    ),
    url("/images/american-flag-bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding-top: 20px;
  position: relative;
}

.carousel-shell-inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 clamp(18px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.carousel-heading {
  background: #fff;
  border: 1px solid var(--rule);
  margin-bottom: 10px;
  padding: 10px 14px;
  text-align: center;
}

.carousel-heading h2 {
  font-family: Arial, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.featured-carousel-layout {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
}

.featured-carousel-main {
  align-self: center;
  display: grid;
  gap: 0;
  min-width: 0;
  width: 100%;
}

.carousel-tiles {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.carousel-tile {
  align-items: stretch;
  background: #ffffff;
  border: 2px solid var(--btn-surface-border);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  gap: 0;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

.carousel-tile::before {
  background: transparent;
  border-radius: 4px 0 0 4px;
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  transition: background 0.35s ease, width 0.35s ease;
  width: 0;
}

.carousel-tile:hover {
  background: var(--highlight-muted);
  border-color: var(--blue);
}

.carousel-tile.active {
  background: #dbeafe;
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.14);
  transform: translateX(-2px);
}

.carousel-tile.active::before {
  background: var(--red);
  width: 4px;
}

.carousel-tile-thumb {
  flex-shrink: 0;
  overflow: hidden;
  width: 88px;
}

.carousel-tile-thumb .media-frame {
  aspect-ratio: 16 / 9;
}

.carousel-tile-copy {
  display: grid;
  gap: 4px;
  padding: 10px 12px 10px 0;
}

.carousel-tile-category {
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.carousel-tile.active .carousel-tile-copy strong {
  color: var(--navy);
}

.carousel-tile-copy strong {
  color: var(--ink);
  display: -webkit-box;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.35;
  overflow: hidden;
}

.carousel-card-link {
  color: inherit;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 300px;
  text-decoration: none;
}

.carousel-card-link:hover .read-link,
.story-title-link:hover,
.read-link:hover {
  color: var(--red);
}

.carousel-card {
  animation: carouselFadeIn 0.65s ease;
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 300px;
  overflow: hidden;
}

@keyframes carouselFadeIn {
  from {
    opacity: 0.35;
  }

  to {
    opacity: 1;
  }
}

.read-link {
  color: var(--navy);
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: 8px;
  text-decoration: underline;
  text-transform: uppercase;
}

.story-title-link {
  color: inherit;
  text-decoration: none;
}

.story-title-link:hover {
  text-decoration: underline;
}

.story-thumb-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.article-page {
  background: #ffffff;
  padding: 0 0 48px;
}

.article-page-layout {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px clamp(18px, 4vw, 48px) 0;
}

.article-main-column {
  min-width: 0;
}

.article-back {
  font-family: Arial, sans-serif;
  margin: 0 0 16px;
}

.article-back a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-back a:hover {
  color: var(--red);
}

.article-full {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  padding: clamp(24px, 4vw, 40px);
}

.article-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.article-kicker {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.article-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.06;
  margin: 0 0 14px;
}

.article-full .article-dek {
  color: #313741;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 16px;
}

.article-byline {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  gap: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-byline-author {
  color: var(--ink);
  font-weight: 800;
}

.article-byline-sep {
  opacity: 0.5;
}

.article-source-ref {
  background: #f6f3ef;
  border-left: 3px solid var(--accent, #b42318);
  margin: 0 0 22px;
  padding: 12px 14px;
}

.article-source-ref-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.article-source-ref-headline {
  font-size: 0.98rem;
  line-height: 1.45;
  margin: 0;
}

.article-source-ref-headline a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-source-publisher {
  color: var(--muted);
  font-weight: 400;
}

.article-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.article-topics span {
  background: #f6f7f8;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  text-transform: uppercase;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.75;
  margin-top: 0;
}

.article-body p {
  margin: 0 0 1.15em;
}

.article-body .article-subhead {
  font-size: 1.12rem;
  margin: 1.8em 0 0.55em;
}

.article-discussion-break {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2.4em 0 1.25em;
  padding: 1.5em 1rem;
  text-align: center;
}

.article-discussion-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.article-discussion-question {
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

.preview-discussion-break {
  opacity: 1;
}

.affiliate-book-shelf {
  margin: 0 0 2.4em;
  padding: 0 0 0.25em;
}

.affiliate-book-shelf-header {
  margin: 0 0 1rem;
  text-align: center;
}

.affiliate-book-shelf-label {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.affiliate-book-shelf-heading {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.affiliate-book-shelf-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 34rem;
}

.affiliate-book-shelf-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.affiliate-book {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 12px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.affiliate-book:hover,
.affiliate-book:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(10, 22, 40, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.affiliate-book-cover {
  background: #e8eef4;
  display: block;
  overflow: hidden;
  width: 72px;
}

.affiliate-book-cover img {
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.affiliate-book-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.affiliate-book-title {
  color: var(--ink);
  display: -webkit-box;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.affiliate-book-author {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
}

.affiliate-book-cta {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-top: 2px;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .affiliate-book-grid {
    grid-template-columns: 1fr;
  }

  .affiliate-book {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .affiliate-book-cover {
    width: 88px;
  }
}

.article-figure {
  margin: 0 0 24px;
}

.article-figure .media-frame {
  aspect-ratio: 16 / 9;
}

.article-hero-frame {
  margin: 0 0 24px;
}

.article-hero-frame .media-frame {
  aspect-ratio: 16 / 9;
}

.article-figure figcaption {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 8px;
}

.post-share-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    linear-gradient(180deg, #0f2340 0%, #0a1628 100%);
  border: 1px solid #7f1d1d;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  overflow: hidden;
  padding: 0 20px 20px;
  position: relative;
  text-align: center;
}

.post-share-section::before {
  background: linear-gradient(
    180deg,
    #b91c1c 0%,
    #b91c1c 33.33%,
    #ffffff 33.33%,
    #ffffff 66.66%,
    #1e3a5f 66.66%,
    #1e3a5f 100%
  );
  content: "";
  display: block;
  height: 7px;
  margin: 0 -20px 18px;
}

.post-share-label {
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.post-share-label::before,
.post-share-label::after {
  color: #ef4444;
  content: "★";
  font-size: 0.58rem;
  margin: 0 9px;
  vertical-align: middle;
}

.post-share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.post-share-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(10, 22, 40, 0.18);
  color: #0a1628;
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
  width: 42px;
}

.post-share-icon {
  align-items: center;
  display: flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.post-share-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.post-share-btn:hover,
.post-share-btn:focus-visible {
  background: #b91c1c;
  border-color: #991b1b;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.35);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.post-share-btn.is-copied {
  background: #1e3a5f;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.35);
  color: #ffffff;
  transform: none;
}

.post-share-section + .post-rating-section {
  margin-top: 16px;
}

.post-rating-section {
  background: #fff;
  border: 1px solid var(--line);
  margin-top: 36px;
  padding: 18px 20px;
  text-align: center;
}

.post-rating-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin-bottom: 10px;
}

.post-rating-heading .sidebar-eyebrow {
  margin: 0;
}

.post-rating-average {
  color: #d97706;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.post-rating-bar {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.post-rating-stars {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.post-rating-star {
  background: transparent;
  border: 0;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.post-rating-star:hover:not(:disabled),
.post-rating-star.highlight {
  color: #f59e0b;
}

.post-rating-star.active {
  color: #d97706;
}

.post-rating-star:disabled {
  cursor: default;
}

.post-rating-summary {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  margin: 0;
}

.post-rating-thanks {
  font-size: 0.82rem;
  margin: 0;
}

.preview-seo-panel {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}

.preview-seo-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.preview-seo-list div {
  display: grid;
  gap: 4px;
}

.preview-seo-list dt {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-seo-list dd {
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0;
}

.author-card {
  background: #f8f9fa;
  border-left: 4px solid var(--navy);
  margin-top: 36px;
  padding: 18px 20px;
}

.author-card-layout {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
}

.author-card-copy h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.author-card h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
}

.author-card-role {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.author-card-bio {
  color: #4a515c;
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.author-card .writer-vote-bar {
  margin-top: 4px;
}

@media (max-width: 560px) {
  .author-card-layout {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .author-card .writer-avatar-frame {
    width: 72px;
  }
}

.article-comments {
  border-top: 1px solid var(--rule);
  margin-top: 36px;
  padding-top: 24px;
}

.article-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.sidebar-rail {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 16px;
}

.sidebar-rail h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

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

.rail-story {
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  text-decoration: none;
}

.rail-story:hover strong {
  color: var(--red);
}

.rail-story-thumb {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  width: 72px;
}

.rail-story-thumb .media-frame {
  aspect-ratio: 16 / 9;
}

.rail-story-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rail-story-copy strong {
  display: -webkit-box;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.35;
  overflow: hidden;
}

.rail-story-copy span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.article-more-strip {
  background: #ffffff;
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 32px clamp(18px, 4vw, 48px) 0;
}

.article-more-inner {
  margin: 0 auto;
  max-width: 1240px;
}

.article-more-heading {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.article-more-heading h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0;
}

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

.more-card {
  border: 1px solid var(--rule);
  color: inherit;
  display: grid;
  gap: 0;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.more-card:hover {
  border-color: var(--red);
  box-shadow: 0 10px 28px rgba(21, 37, 58, 0.08);
}

.more-card-thumb {
  display: block;
  overflow: hidden;
}

.more-card-thumb .media-frame {
  aspect-ratio: 16 / 9;
}

.more-card-copy {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.more-card-copy strong {
  font-size: 1rem;
  line-height: 1.3;
}

.more-card-copy span {
  color: #4a515c;
  display: -webkit-box;
  font-size: 0.88rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
  overflow: hidden;
}

.comments-heading {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.featured-toggle {
  margin-top: 10px;
}

.posts-page-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.carousel-image {
  margin: 0;
  min-width: 0;
}

.carousel-image .media-frame {
  height: 100%;
  min-height: 300px;
}

.carousel-copy {
  align-self: center;
  padding: clamp(18px, 3vw, 28px);
}

.carousel-copy h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

.carousel-copy p {
  color: #313741;
  display: -webkit-box;
  font-size: 0.96rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  overflow: hidden;
}

.carousel-controls {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 14px;
}

.carousel-controls button {
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  border-radius: 999px;
  color: var(--btn-surface-text);
  cursor: pointer;
  font: 800 0.78rem/1 Arial, sans-serif;
  padding: 9px 12px;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.carousel-controls button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  height: 11px;
  padding: 0;
  width: 11px;
}

.carousel-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-empty {
  background: var(--newsprint);
  border: 1px dashed var(--rule);
  padding: 28px;
}

.category-strip {
  background: var(--newsprint);
}

.category-pills {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.category-pills a {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  display: flex;
  font-family: Arial, sans-serif;
  justify-content: space-between;
  padding: 14px;
}

.category-pills a.active {
  background: #f6eaea;
}

.category-pills strong {
  color: var(--accent);
}

.featured-form {
  display: grid;
  gap: 10px;
}

.auto-feature-settings,
.daily-point-settings,
.daily-stats-report-settings {
  display: grid;
  gap: 12px;
}

.auto-feature-settings {
  border-top: 1px solid var(--rule);
  margin-top: 18px;
  padding-top: 18px;
}

.daily-point-form {
  display: grid;
  gap: 12px;
}

.daily-stats-report-form {
  display: grid;
  gap: 12px;
}

.auto-feature-settings h3 {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  margin: 0;
}

.auto-feature-form {
  display: grid;
  gap: 12px;
}

.featured-option {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
  text-transform: none;
}

.featured-option input {
  margin-top: 4px;
  width: auto;
}

.featured-option strong,
.featured-option small {
  display: block;
}

.featured-option strong {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.featured-option small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  margin-top: 4px;
}

.account-page {
  padding: clamp(28px, 6vw, 72px);
}

.contact-page {
  padding: clamp(28px, 6vw, 72px);
}

.account-panel {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  max-width: 1080px;
  padding: clamp(24px, 4vw, 40px);
}

.contact-panel {
  max-width: 760px;
}

.account-panel h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.account-dashboard-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.15;
  margin: 0;
}

.account-dashboard {
  display: grid;
  gap: 24px;
}

.account-header {
  align-items: center;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  padding-bottom: 20px;
}

.account-header-identity {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.account-header-copy {
  min-width: 0;
}

.account-header-meta {
  font-size: 0.88rem;
  margin: 4px 0 0;
  word-break: break-word;
}

.account-header-side {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.account-header-stats {
  display: flex;
  gap: 18px;
  margin: 0;
}

.account-header-stats div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.account-header-stats dt {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.account-header-stats dd {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.account-sign-out {
  white-space: nowrap;
}

.account-dashboard-body {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.account-dashboard-main {
  min-width: 0;
}

.account-dashboard-aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.account-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  min-width: 0;
  padding: 18px;
}

.account-main-section {
  display: grid;
  gap: 16px;
}

.account-section-intro h2,
.account-card-title {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.account-section-intro p,
.account-card-copy {
  margin: 0;
}

.account-empty-state {
  background: #fff;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  margin: 0;
  padding: 28px 20px;
  text-align: center;
}

.account-profile-compact {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.account-profile-avatar {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.account-avatar--profile {
  height: 88px;
  width: 88px;
}

.account-upload-btn {
  font-size: 0.82rem;
  padding: 8px 12px;
}

.account-avatar-section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
}

.account-avatar-section-title {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.account-avatar-picker {
  display: grid;
  gap: 12px;
  width: 100%;
}

.account-avatar-picker-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  margin: 0;
}

.account-avatar-picker .avatar-picker-group {
  display: grid;
  gap: 8px;
}

.account-avatar-picker .avatar-picker-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: none;
}

.account-avatar-picker .avatar-picker-option {
  border-radius: 50%;
}

.account-thread-list {
  display: grid;
  gap: 14px;
}

.account-thread-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.account-thread-card-header {
  align-items: baseline;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding: 12px 16px;
}

.account-thread-article {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.account-thread-article:hover {
  color: var(--accent);
}

.account-thread-card-body {
  display: grid;
  gap: 0;
  padding: 14px 16px 16px;
}

.account-thread-context {
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  margin: 0;
  padding: 10px 16px;
}

.account-comment {
  padding: 0;
}

.account-comment--reply {
  padding-top: 12px;
}

.account-comment-header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.account-comment-meta {
  display: grid;
  gap: 2px;
}

.account-comment-author-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.account-comment-meta time {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
}

.account-comment-text {
  line-height: 1.55;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.account-comment-footer {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.account-thread-reply-btn {
  background: transparent;
  border: 0;
  color: var(--navy);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  justify-self: start;
  letter-spacing: 0.03em;
  padding: 0;
  text-transform: uppercase;
}

.account-thread-reply-btn:hover {
  color: var(--accent);
}

.account-comment-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.account-comment-avatar--placeholder {
  align-items: center;
  background: var(--deep);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 0.85rem;
  font-weight: 700;
  height: 32px;
  place-items: center;
  width: 32px;
}

.account-own-badge {
  background: #eef2ff;
  border-radius: 999px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.account-comment--author .account-comment-text {
  color: var(--ink);
}

.account-comment-replies {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 0;
  margin: 14px 0 0 14px;
  padding-left: 14px;
}

.account-reply-row + .account-reply-row {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.account-reply-panel {
  width: 100%;
}

.account-reply-form {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.account-reply-form textarea {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
  min-height: 84px;
  padding: 10px 12px;
  resize: vertical;
}

.account-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-reply-context {
  font-size: 0.86rem;
  margin: 0;
}

.account-ticket-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.account-ticket {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 10px;
}

.account-ticket:first-child {
  border-top: 0;
  padding-top: 0;
}

.account-ticket-copy {
  display: grid;
  gap: 2px;
}

.account-ticket-copy strong {
  font-size: 0.92rem;
}

.account-ticket-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  gap: 8px;
}

.account-ticket-status {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.account-ticket-status--open,
.account-ticket-status--new {
  background: #fef3c7;
  color: #92400e;
}

.account-ticket-status--closed,
.account-ticket-status--resolved {
  background: #ecfdf5;
  color: #065f46;
}

.account-card--support .form-note {
  margin: 12px 0 0;
}

.account-card--mailing .account-card-copy {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.account-mailing-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.account-mailing-option {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  width: 100%;
}

.account-mailing-option input[type="checkbox"] {
  flex: 0 0 auto;
  height: 1.05rem;
  margin: 2px 0 0;
  padding: 0;
  width: 1.05rem;
}

.account-mailing-option-label {
  cursor: pointer;
  display: grid;
  flex: 1;
  font-size: inherit;
  font-weight: 400;
  gap: 4px;
  margin: 0;
  min-width: 0;
  text-transform: none;
}

.account-mailing-option-label strong {
  font-size: 1rem;
  font-weight: 700;
}

.account-mailing-option-label .quiet {
  display: block;
  line-height: 1.45;
}

.account-avatar {
  border: 2px solid var(--rule);
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.account-avatar--placeholder {
  align-items: center;
  background: var(--deep);
  color: #fff;
  display: grid;
  font-size: 1.4rem;
  font-weight: 700;
  place-items: center;
}

.account-dashboard .verification-banner {
  margin: 0;
}

@media (max-width: 900px) {
  .account-dashboard-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .account-header {
    align-items: flex-start;
  }

  .account-header-side {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }

  .account-header-stats {
    justify-content: flex-start;
    width: 100%;
  }
}

.account-lede {
  color: var(--ink-muted);
  margin: 12px 0 24px;
  max-width: 58ch;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.auth-tab {
  background: var(--btn-surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 10px 16px;
}

.auth-tab.is-active {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

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

.account-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.account-form input,
.account-form textarea,
.account-form select,
.contact-form textarea {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font: inherit;
  padding: 10px 12px;
}

.account-form input:disabled {
  background: #f0f4f8;
  color: var(--ink-muted);
}

.avatar-upload {
  cursor: pointer;
}

.avatar-picker {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  width: 100%;
}

.avatar-picker-group {
  display: grid;
  gap: 8px;
}

.avatar-picker-group-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.avatar-picker-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  max-width: 360px;
}

.avatar-picker-option {
  aspect-ratio: 1;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.avatar-picker-option:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.avatar-picker-option.is-selected {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(178, 34, 52, 0.15);
}

.avatar-picker-option img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.commenter-row-avatar {
  border-radius: 999px;
  height: 32px;
  object-fit: cover;
  width: 32px;
}

.verification-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px 16px;
}

.verification-dev-link a {
  word-break: break-all;
}

.account-status.is-error,
#contactStatus.is-error {
  color: #9b1c1c;
}

.form-note {
  font-size: 0.88rem;
  margin: 0;
}

.contact-gate {
  margin-top: 20px;
}

.anon-user-badge {
  background: #e8eef4;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-muted);
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 4px 8px;
  vertical-align: middle;
}

.comment-header {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.comment-meta {
  display: grid;
  gap: 2px;
}

.comment-author-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-avatar {
  border-radius: 50%;
  flex: 0 0 auto;
  height: 36px;
  object-fit: cover;
  width: 36px;
}

.comment-avatar--placeholder {
  align-items: center;
  background: var(--deep);
  color: #fff;
  display: inline-grid;
  font-size: 0.85rem;
  font-weight: 700;
  place-items: center;
}

.comment-avatar--inline {
  height: 22px;
  vertical-align: middle;
  width: 22px;
}

.comment-signed-in {
  align-items: center;
  background: #eff6ff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 860px) {
  .featured-carousel-layout {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .featured-carousel-main {
    align-self: stretch;
  }

  .carousel-tiles {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 0;
  }

  .carousel-tile {
    flex: 1 1 220px;
  }

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

  .carousel-image .media-frame {
    min-height: 220px;
  }

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

/* CMS console */
.cms-shell {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 24px clamp(18px, 4vw, 48px) 64px;
}

.cms-shell.posts-mode {
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.cms-sidebar {
  background: var(--deep);
  border-radius: 4px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 16px;
  position: sticky;
  top: 92px;
}

.cms-shell.posts-mode .cms-sidebar {
  min-height: calc(100vh - 116px);
}

.cms-sidebar-default {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.cms-sidebar-default.hidden {
  display: none;
}

.cms-main-nav {
  display: grid;
  flex: 1;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.cms-sidebar-posts-mode {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.cms-sidebar-posts-mode.hidden {
  display: none;
}

.cms-back-button {
  flex-shrink: 0;
}

.cms-sidebar-posts-intro {
  flex-shrink: 0;
}

.cms-sidebar-posts-heading {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0;
}

.cms-sidebar-posts-count {
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  margin: 4px 0 0;
}

.cms-sidebar-posts-scroll {
  display: grid;
  flex: 1;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.cms-sidebar-title {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  margin-bottom: 8px;
  padding-bottom: 14px;
}

.cms-sidebar-title .eyebrow {
  color: #ffffff;
}

.cms-sidebar-title strong {
  display: block;
  font-size: 1.25rem;
}

.cms-nav {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font: 800 0.88rem/1 Arial, sans-serif;
  padding: 13px 12px;
  text-align: left;
}

.cms-nav.active,
.cms-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cms-sidebar-posts {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
}

.cms-sidebar-posts.hidden {
  display: none;
}

.cms-sidebar-post {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.cms-sidebar-post:hover,
.cms-sidebar-post.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.34);
}

.cms-sidebar-post.active {
  box-shadow: inset 3px 0 0 var(--red);
}

.cms-sidebar-post-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cms-sidebar-post-status,
.cms-sidebar-post-featured {
  color: rgba(255, 255, 255, 0.72);
  font: 800 0.62rem/1 Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cms-sidebar-post-featured {
  color: #ffffff;
}

.cms-sidebar-post-title {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  line-height: 1.35;
}

.cms-sidebar-post-date {
  color: rgba(255, 255, 255, 0.68);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  line-height: 1.3;
  text-align: left;
}

.cms-sidebar-posts-empty {
  color: rgba(255, 255, 255, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  margin: 0;
}

.posts-page-layout {
  display: grid;
  gap: 18px;
}

.post-settings-panel {
  padding: 18px 20px;
}

.post-settings-form {
  display: grid;
  gap: 16px;
}

.post-settings-header {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: space-between;
}

.post-settings-eyebrow {
  color: var(--accent);
  font: 800 0.68rem/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.post-settings-header h2 {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0;
  max-width: 48rem;
}

.post-settings-live {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px 12px;
}

.post-settings-live.is-live {
  border-color: rgba(34, 85, 51, 0.22);
}

.post-settings-live-value {
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.post-settings-live.is-draft .post-settings-live-value {
  color: var(--muted);
  font-weight: 600;
}

.post-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.post-settings-grid label {
  display: grid;
  gap: 6px;
}

.post-settings-featured {
  align-self: end;
  color: var(--deep);
  text-transform: none;
}

.post-settings-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  gap: 8px 16px;
}

.post-settings-note {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  padding: 10px 12px;
}

.post-preview-actions {
  padding: 14px 18px;
}

.post-preview-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
}

.post-preview-toolbar-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.post-preview-toolbar-meta strong,
.post-preview-toolbar-meta > span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.post-preview-featured {
  color: var(--deep);
  font-size: 0.82rem;
  text-transform: none;
}

.post-preview-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.post-preview-content {
  min-height: 320px;
  overflow: visible;
  padding: 22px;
}

.post-preview-content .generated-card,
.post-preview-content .generated-card-article {
  margin: 0 auto;
  max-width: 760px;
}

.cms-main {
  display: grid;
  gap: 18px;
}

.cms-page {
  display: none;
}

.cms-page.active {
  display: grid;
  gap: 18px;
}

.cms-page-heading {
  align-items: center;
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.cms-page-heading h1 {
  font-size: clamp(1.85rem, 3vw, 3rem);
  margin: 0;
}

.cms-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.cms-panel {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px;
}

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

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-strip,
.manager-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  border-radius: 999px;
  color: var(--btn-surface-text);
  font-family: Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 10px;
  text-transform: uppercase;
}

.generation-preview {
  display: grid;
  gap: 12px;
}

.desk-host-warning {
  background: #7a1e1e;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.45;
  padding: 12px 16px;
  text-align: center;
}

.desk-host-warning a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.make-post-page {
  padding-bottom: 24px;
}

.make-post-form {
  margin-bottom: 6px;
}

.research-panel {
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
}

.research-panel-heading {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.research-results {
  display: grid;
  gap: 8px;
}

.research-results.hidden {
  display: none;
}

.research-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.research-item.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(176, 32, 32, 0.08);
}

.research-headline {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  gap: 4px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.research-headline-text {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.research-source,
.research-selection-source {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.research-stance {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-stance.hidden {
  display: none;
}

.stance-btn {
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  border-radius: 999px;
  color: var(--btn-surface-text);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.stance-btn:hover {
  background: var(--btn-surface-hover);
  border-color: var(--navy);
}

.stance-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.research-headline-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.research-suggested-stance {
  background: #eef2f8;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  text-transform: uppercase;
}

.cms-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auto-poster-layout {
  display: grid;
  gap: 14px;
}

.auto-poster-panel {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.auto-poster-panel--fill {
  background: #f7f8fa;
}

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

.writer-roster-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.writer-roster-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.writer-roster-header h3 {
  margin: 0;
}

.writer-roster-byline {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 4px 0 0;
}

.writer-roster-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.auto-writer-days {
  border: 0;
  margin: 0;
  padding: 0;
}

.auto-writer-day-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.auto-writer-day {
  font-size: 0.88rem;
}

.auto-writer-slots label {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auto-writer-slot {
  display: grid;
  gap: 8px;
}

.auto-writer-count-label {
  display: grid;
  font-size: 0.88rem;
  gap: 6px;
}

.auto-writer-count-label input[type="number"] {
  max-width: 88px;
}

.auto-writer-time-range {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auto-writer-time-range input[type="time"] {
  min-width: 118px;
}

.auto-writer-schedule-status {
  font-size: 0.92rem;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.auto-writer-schedule-status li {
  margin: 0 0 6px;
}

.auto-writer-status-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.auto-writer-status-badge--live {
  background: #0f6d3b;
  color: #fff;
}

.auto-writer-status-badge--draft {
  background: #5c6470;
  color: #fff;
}

.auto-writer-post-link {
  font-size: 0.92rem;
  margin-left: 4px;
}

.auto-writer-slots input[type="time"] {
  margin-left: 0;
}

.site-fill-run-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.site-fill-run-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-fill-count-field {
  display: grid;
  gap: 6px;
  min-width: 160px;
}

.site-fill-progress {
  display: grid;
  gap: 16px;
}

.site-fill-progress.hidden {
  display: none;
}

.site-fill-overall {
  display: grid;
  gap: 8px;
}

.site-fill-progress-heading {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.site-fill-progress-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.site-fill-items {
  display: grid;
  gap: 12px;
}

.site-fill-item {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.site-fill-item-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.site-fill-item-topic {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-fill-item-status {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-left: auto;
  text-transform: uppercase;
}

.site-fill-item-status.is-error {
  color: var(--accent);
}

.site-fill-item-track {
  height: 8px;
}

.site-fill-item-message {
  margin: 0;
}

.site-fill-writers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-fill-writer-option {
  min-width: 180px;
}

@media (max-width: 1080px) {
  .writer-roster-grid {
    grid-template-columns: 1fr;
  }
}

.auto-writer-status {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.auto-writer-status.hidden {
  display: none;
}

.news-sources-grid,
.news-sources-list {
  display: grid;
  gap: 16px;
}

.news-source-category {
  color: var(--ink-muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.news-sources-note {
  margin: 0 0 16px;
}

.news-source-card {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
}

.news-source-card legend {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0 6px;
}

.news-source-stances {
  background: #f7f8fa;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.news-source-stance {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(120px, 1fr) 160px;
}

.news-source-stance-label {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

.research-selection {
  margin: 0;
}

.image-upload-field input[type="file"] {
  margin-top: 4px;
}

.image-upload-preview {
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 8px;
  max-width: 360px;
  padding: 10px;
}

.image-upload-preview.hidden {
  display: none;
}

.image-upload-preview img {
  border-radius: 4px;
  display: block;
  max-height: 180px;
  object-fit: cover;
  width: 100%;
}

.image-upload-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.generation-dock {
  border-top: 4px solid var(--accent);
  bottom: 0;
  box-shadow: 0 -12px 40px rgba(21, 37, 58, 0.1);
  max-height: min(52vh, 640px);
  overflow: auto;
  position: sticky;
  z-index: 4;
}

.generation-dock-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--newsprint);
  padding-bottom: 8px;
}

.generation-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.generation-progress.hidden {
  display: none;
}

.progress-track {
  background: #e8ebf0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--navy), var(--red));
  border-radius: 999px;
  height: 100%;
  transition: none;
  width: 0;
}

.progress-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  margin: 0;
}

.generated-card {
  animation: previewFadeIn 0.5s ease;
}

.generated-card .preview-paragraph {
  animation: previewFadeIn 0.55s ease;
  opacity: 0;
}

.generated-card .preview-paragraph.visible {
  opacity: 1;
}

.generated-card .preview-subhead {
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 1.2em 0 0.4em;
  text-transform: uppercase;
}

@keyframes previewFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.generated-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.post-preview-content .generated-card .preview-paragraph,
.post-preview-content .generated-card .preview-subhead {
  animation: none;
  opacity: 1;
  transform: none;
}

.post-table {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.post-admin-row {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.post-admin-row h3 {
  font-size: 1.25rem;
}

.post-admin-row p {
  color: #313741;
  line-height: 1.45;
}

.post-admin-actions {
  align-content: start;
  display: grid;
  gap: 8px;
  min-width: 140px;
}

.danger-action {
  color: #fff;
}

.ollama-settings-panel {
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.launch-settings-panel {
  background: #f8f4ef;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 16px 18px;
}

.launch-settings-panel h2 {
  font-size: 1.15rem;
  margin: 0;
}

.launch-status-live {
  color: #166534;
  font-weight: 700;
}

.launch-status-soon {
  color: #9b1c1c;
  font-weight: 700;
}

.ollama-status.is-ok {
  color: #166534;
}

.ollama-status.is-error {
  color: #9b1c1c;
}

.profiles-save-status {
  margin: -8px 0 0;
}

.profiles-save-status.is-error {
  color: #9b1c1c;
}

.writer-profile-header {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.writer-profile-avatar {
  align-items: center;
  background: var(--navy);
  border: 2px solid var(--rule);
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  height: 72px;
  justify-items: center;
  overflow: hidden;
  place-items: center;
  width: 72px;
}

.writer-profile-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.writer-profile-avatar.is-empty {
  background: #dbeafe;
  color: var(--navy);
}

.writer-profile-header-copy {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

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

.user-accounts-notice {
  margin: 0 0 16px;
}

.user-accounts-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.user-accounts-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  padding: 12px;
}

.user-account-list-item {
  align-items: center;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 10px;
  text-align: left;
  width: 100%;
}

.user-account-list-item.active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.user-account-list-avatar img,
.user-account-list-avatar span {
  border-radius: 50%;
  display: block;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.user-account-list-avatar span {
  align-items: center;
  background: var(--deep);
  color: #fff;
  display: grid;
  font-weight: 700;
  place-items: center;
}

.user-account-list-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.user-account-list-copy strong,
.user-account-list-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-account-list-copy span {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

.user-account-list-meta {
  font-size: 0.74rem !important;
}

.user-account-editor {
  padding: 18px;
}

.user-account-editor-header {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.user-account-editor-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.user-account-avatar-panel {
  display: grid;
  gap: 12px;
}

.user-account-avatar-preview {
  align-items: center;
  background: var(--deep);
  border-radius: 50%;
  color: #fff;
  display: grid;
  height: 120px;
  justify-self: center;
  overflow: hidden;
  place-items: center;
  width: 120px;
}

.user-account-avatar-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.user-account-avatar-preview.is-placeholder span {
  font-size: 2rem;
  font-weight: 700;
}

.user-account-fields {
  display: grid;
  gap: 14px;
}

.user-account-status.is-error {
  color: #9b1c1c;
}

@media (max-width: 900px) {
  .user-accounts-layout,
  .user-account-editor-grid {
    grid-template-columns: 1fr;
  }
}

.writer-editor-card {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
}

.writer-profiles-intro {
  display: grid;
  gap: 10px;
}

.intro-lead {
  line-height: 1.55;
  margin: 0;
}

.intro-checklist {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 1.2rem;
}

.field-with-hint {
  display: grid;
  gap: 4px;
}

.field-label {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-hint {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 2px;
}

.writer-editor-card legend {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0 6px;
  text-transform: none;
}

.writer-editor-section {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.writer-editor-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.writer-editor-section--bot {
  background: #f7f8fa;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-top: 4px;
  padding: 14px;
}

.writer-editor-section-title {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0;
  text-transform: uppercase;
}

.writer-editor-section-note {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: -6px 0 0;
}

.checkbox-line {
  align-items: center;
  display: flex;
  flex-direction: row;
  gap: 8px;
  text-transform: none;
}

.checkbox-line input {
  width: auto;
}

.tight-heading {
  margin-bottom: 12px;
}

@media (max-width: 1080px) {
  .cms-shell,
  .cms-grid,
  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .cms-shell.posts-mode {
    grid-template-columns: 1fr;
  }

  .cms-shell.posts-mode .cms-sidebar {
    max-height: none;
    min-height: 0;
  }

  .cms-sidebar {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .cms-main-nav,
  .cms-sidebar-posts-scroll {
    max-height: 320px;
  }

  .post-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .cms-page-heading,
  .post-admin-row {
    grid-template-columns: 1fr;
  }

  .cms-page-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .three-col {
    grid-template-columns: 1fr;
  }
}

/* Homepage — below carousel */
.home-feed-toolbar {
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
}

.home-feed-toolbar-inner {
  margin: 0 auto;
  max-width: 1240px;
  padding: 20px clamp(18px, 4vw, 48px) 0;
}

.home-feed-search {
  display: block;
  max-width: 520px;
}

.home-feed-search-label {
  color: var(--red);
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.home-feed-search input {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 1rem;
  padding: 12px 14px;
  width: 100%;
}

.home-feed-search input:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(20, 40, 80, 0.15);
  outline-offset: 1px;
}

.home-feed-search-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 10px 0 0;
}

.feed-show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-bottom: 8px;
}

.feed-show-more-wrap.hidden {
  display: none;
}

.feed-show-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  text-decoration: none;
}

.home-body {
  background: #ffffff;
  border-top: 1px solid var(--rule);
}

.section-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 68px;
  z-index: 4;
}

.section-nav-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 clamp(18px, 4vw, 48px);
}

.section-nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.section-nav-link {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.05em;
  padding: 14px 0;
  text-decoration: none;
  text-transform: uppercase;
}

.section-nav-link:hover,
.section-nav-link.active {
  color: var(--red);
}

.section-nav-link.active {
  box-shadow: inset 0 -3px 0 var(--red);
}

.section-nav-count {
  background: #f1f2f4;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
}

.section-nav-link.active .section-nav-count {
  background: rgba(163, 48, 45, 0.12);
  color: var(--red);
}

.home-layout {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 300px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px clamp(18px, 4vw, 48px) 56px;
}

.home-main {
  min-width: 0;
}

.feed-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
  padding-bottom: 18px;
}

.feed-eyebrow {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.feed-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: 0 0 10px;
}

.feed-dek {
  color: #4a515c;
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
  max-width: 58ch;
}

.news-feed {
  display: grid;
  gap: 0;
}

.story-lead {
  align-items: start;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1fr);
  margin-bottom: 8px;
  padding-bottom: 28px;
}

.story-lead-media,
.story-item-media {
  display: block;
  text-decoration: none;
}

.story-item-media {
  flex-shrink: 0;
  width: 168px;
}

.story-lead-copy,
.story-item-copy {
  min-width: 0;
}

.story-byline {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  gap: 6px;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.story-category {
  color: var(--red);
  font-weight: 800;
}

.story-sep {
  opacity: 0.55;
}

.story-headline {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.12;
  margin: 0 0 10px;
}

.story-lead .story-headline {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
}

.story-headline a {
  color: inherit;
  text-decoration: none;
}

.story-headline a:hover {
  color: var(--red);
}

.story-excerpt {
  color: #313741;
  display: -webkit-box;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
}

.story-lead .story-excerpt {
  -webkit-line-clamp: 4;
  font-size: 1.05rem;
}

.story-continue {
  color: var(--navy);
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 14px;
  text-decoration: underline;
  text-transform: uppercase;
}

.story-continue:hover {
  color: var(--red);
}

.story-list {
  display: grid;
}

.story-item {
  align-items: start;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 18px;
  grid-template-columns: 168px minmax(0, 1fr);
  padding: 22px 0;
}

.story-item:last-child {
  border-bottom: 0;
}

.story-item .story-headline {
  font-size: 1.28rem;
}

.story-item .story-excerpt {
  -webkit-line-clamp: 2;
  font-size: 0.96rem;
}

.story-item .mini-topics,
.story-lead .mini-topics {
  margin-top: 12px;
}

.story-item .mini-topics span,
.story-lead .mini-topics span {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.story-item .comments-section,
.story-lead .comments-section {
  display: none;
}

.feed-empty {
  background: #ffffff;
  border: 1px dashed var(--rule);
  color: var(--muted);
  padding: 32px;
  text-align: center;
}

.feed-empty h3 {
  margin: 0 0 8px;
}

.home-sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 118px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 18px 18px 20px;
}

.sidebar-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.sidebar-eyebrow {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sidebar-lede,
.sidebar-note p {
  color: #4a515c;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.sidebar-list {
  color: #313741;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
  padding-left: 18px;
}

.sidebar-list li + li {
  margin-top: 8px;
}

.sidebar-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-topic-nav {
  display: grid;
  gap: 2px;
}

.sidebar-topic-link {
  align-items: center;
  border-radius: 4px;
  color: var(--navy);
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.35;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: none;
}

.sidebar-topic-link:hover,
.sidebar-topic-link.is-active {
  background: var(--btn-surface-hover);
  color: var(--red);
}

.sidebar-topic-link .topic-count {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.feed-topic-heading {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
  padding-bottom: 14px;
}

.feed-topic-heading.hidden {
  display: none;
}

.feed-topic-eyebrow {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.feed-topic-heading h2 {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.feed-topic-meta {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  margin: 0 0 8px;
}

.feed-topic-clear {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.mini-topic-link {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.mini-topic-link:hover {
  color: var(--red);
}

.sidebar-topic {
  background: #f6f7f8;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.sidebar-note {
  border-top-color: var(--red);
}

.site-footer {
  background: var(--navy);
  border-top: 3px solid var(--red);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0;
  padding: 32px clamp(18px, 4vw, 48px) 28px;
}

.site-footer-shell {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 1240px;
}

.site-footer-main {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
  padding-bottom: 20px;
}

.site-footer-brand {
  display: grid;
  gap: 6px;
}

.site-footer-brand strong {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-footer-brand span {
  color: rgba(255, 255, 255, 0.62);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  max-width: 28ch;
}

.site-footer-nav {
  flex: 1 1 320px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer-links li {
  align-items: center;
  display: inline-flex;
}

.site-footer-links li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.28);
  content: "·";
  font-size: 0.9rem;
  margin: 0 10px;
  pointer-events: none;
}

.site-footer-links a {
  background: none;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer-links a:hover {
  color: #fca5a5;
}

.site-footer-notice {
  color: rgba(255, 255, 255, 0.58);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  line-height: 1.6;
  margin: 0;
  max-width: 72ch;
}

.site-footer-notice a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 2px;
}

.site-footer-notice a:hover {
  color: #fca5a5;
  text-decoration-color: #fca5a5;
}

.site-footer-copy {
  color: rgba(255, 255, 255, 0.42);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin: 0;
}

.legal-page {
  padding: 28px clamp(18px, 4vw, 48px) 48px;
}

.legal-document {
  background: var(--newsprint);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(22px, 4vw, 36px);
}

.legal-back {
  margin: 0 0 16px;
}

.legal-back a {
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--red);
}

.legal-header {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 24px;
  padding-bottom: 18px;
}

.legal-eyebrow {
  color: var(--accent);
  font: 800 0.68rem/1 Arial, sans-serif;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.legal-header h1 {
  color: var(--deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  margin: 0;
}

.legal-content {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-intro {
  font-size: 1.05rem;
  margin-top: 0;
}

.legal-content section {
  margin-top: 28px;
}

.legal-content h2 {
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.legal-content h3 {
  color: var(--deep);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 16px 0 8px;
}

.legal-content p,
.legal-content li {
  margin: 0 0 12px;
}

.legal-content ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal-content a {
  color: var(--navy);
  font-weight: 700;
}

.legal-content a:hover {
  color: var(--red);
}

@media (max-width: 760px) {
  .site-footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .home-layout,
  .article-page-layout {
    grid-template-columns: 1fr;
  }

  .home-sidebar,
  .article-sidebar {
    position: static;
  }

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

/* Homepage writer spotlight */
.writers-spotlight {
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  padding: 22px clamp(18px, 4vw, 48px);
}

.writers-spotlight-inner {
  margin: 0 auto;
  max-width: 1240px;
}

.writers-spotlight-header {
  margin-bottom: 16px;
}

.writers-spotlight-eyebrow {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.writers-spotlight-header h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  margin: 0;
}

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

.writer-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--rule);
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 14px 16px;
}

.writer-avatar {
  display: block;
}

.writer-avatar-frame {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  width: 88px;
}

.writer-avatar-frame img {
  object-fit: cover;
}

.writer-card-copy h3 {
  font-size: 1.08rem;
  margin: 0 0 2px;
}

.writer-card-byline {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.writer-card-blurb {
  color: #4a515c;
  display: -webkit-box;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.5;
  margin: 0 0 10px;
  overflow: hidden;
}

.writer-vote-bar {
  align-items: center;
  display: flex;
  gap: 8px;
}

.writer-vote-btn {
  align-items: center;
  background: var(--btn-surface);
  border: 1px solid var(--btn-surface-border);
  border-radius: 999px;
  color: var(--btn-surface-text);
  cursor: pointer;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  padding: 6px 10px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.writer-vote-btn:hover:not(:disabled) {
  background: var(--btn-surface-hover);
  border-color: var(--navy);
}

.writer-vote-btn.active {
  background: #f3e7e7;
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
  color: var(--red);
}

.writer-vote-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.writer-vote-icon {
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .writers-spotlight-grid {
    grid-template-columns: 1fr;
  }

  .writer-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .writer-avatar-frame {
    width: 72px;
  }
}

@media (max-width: 720px) {
  .section-nav {
    top: 0;
  }

  .story-lead,
  .story-item {
    grid-template-columns: 1fr;
  }

  .story-item-media {
    width: 100%;
  }

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

.cms-sidebar-post-rating {
  color: var(--muted);
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  margin-top: 4px;
}

.post-settings-ratings {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.post-rating-admin {
  display: grid;
  gap: 12px;
}

.post-rating-admin-summary {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.post-rating-admin-average {
  font-size: 1.8rem;
  line-height: 1;
}

.post-rating-admin-meta {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
}

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

.post-rating-admin-star {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.post-rating-admin-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.post-rating-admin-bar span {
  background: #d97706;
  display: block;
  height: 100%;
}

.post-rating-admin-count {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-align: right;
}

.site-stats-panel {
  display: grid;
  gap: 18px;
}

.site-stats-updated {
  margin: 0;
}

.site-stats-filter-note {
  margin: 0 0 16px;
}

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

.site-stats-grid-content {
  margin-top: -4px;
}

.site-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.site-stat-label {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.site-stat-value {
  font-size: 1.55rem;
  line-height: 1.1;
}

.site-stat-detail {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
}

.site-stats-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-stats-block h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.site-stats-table-wrap {
  overflow-x: auto;
}

.site-stats-table {
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  width: 100%;
}

.site-stats-table th,
.site-stats-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 6px;
  text-align: left;
}

.site-stats-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-stats-channel-list,
.site-stats-list,
.site-stats-seo-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.site-stats-channel-label {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  text-transform: capitalize;
}

.site-stats-channel-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.site-stats-channel-bar span {
  background: var(--navy);
  display: block;
  height: 100%;
}

.site-stats-channel-value,
.site-stats-list li,
.site-stats-seo-list li {
  align-items: center;
  display: flex;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  justify-content: space-between;
}

.site-stats-seo-notes {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.seo-admin-panel {
  display: grid;
  gap: 20px;
}

.social-sharing-panel,
.social-sharing-form {
  display: grid;
  gap: 20px;
}

.social-sharing-panel,
.social-sharing-form {
  display: grid;
  gap: 20px;
}

.social-today-panel {
  display: grid;
  gap: 14px;
}

.social-today-list {
  display: grid;
  gap: 14px;
}

.social-today-item {
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.social-today-copy strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.social-today-copy span {
  color: var(--muted);
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.social-today-copy p {
  color: #313741;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.social-today-item--posted {
  background: #f8f9fb;
}

.social-shared-badge.is-posted {
  background: #e8f5e9;
  color: #2e6b34;
}

.social-posted-panel {
  display: grid;
  gap: 14px;
}

.social-tweet-preview-drafted {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  margin: 0;
}

.social-tweet-preview-url {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  margin: 0 0 10px;
  word-break: break-all;
}

.social-today-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-shared-badge {
  background: #dcfce7;
  border-radius: 999px;
  color: #166534;
  font: 700 0.72rem/1 Arial, sans-serif;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  text-transform: uppercase;
}

.social-tweet-preview {
  background: #f8fafc;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
}

.social-tweet-preview.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.social-tweet-preview-label {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  text-transform: uppercase;
}

.social-tweet-preview-text {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.social-sharing-intro {
  display: grid;
  gap: 12px;
}

.social-writer-grid {
  display: grid;
  gap: 18px;
}

.social-writer-card {
  display: grid;
  gap: 14px;
}

.social-writer-card-heading {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.social-writer-card-heading h2 {
  margin: 0 0 4px;
}

.social-status-pill {
  border-radius: 999px;
  font: 700 0.72rem/1 Arial, sans-serif;
  letter-spacing: 0.05em;
  padding: 7px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.social-status-pill.is-ok {
  background: #dcfce7;
  color: #166534;
}

.social-status-pill.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.social-share-log {
  display: grid;
  gap: 10px;
}

.social-share-log-item {
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.social-share-log-item.is-ok {
  border-left: 3px solid #166534;
}

.social-share-log-item.is-error {
  border-left: 3px solid #b91c1c;
}

.social-share-log-item time,
.social-share-log-item span,
.social-share-log-error {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
}

.social-share-log-error {
  color: #b91c1c;
}

.social-sharing-status.is-ok {
  color: #166534;
}

.social-sharing-status.is-error {
  color: #b91c1c;
}

.seo-site-panel,
.seo-technical-panel,
.seo-posts-panel {
  display: grid;
  gap: 14px;
}

.seo-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-technical-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-technical-links a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.seo-posts-table-wrap {
  overflow: auto;
}

.seo-posts-table {
  border-collapse: collapse;
  width: 100%;
}

.seo-posts-table th,
.seo-posts-table td {
  border-bottom: 1px solid var(--rule);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.seo-posts-table th {
  color: #6b7280;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-post-row.has-issues {
  background: #fff8f8;
}

.seo-post-editor-row.hidden {
  display: none;
}

.seo-post-editor {
  background: #f8fafc;
  border: 1px solid var(--rule);
  border-radius: 4px;
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
}

.seo-flag {
  background: #eef2f7;
  border-radius: 999px;
  color: #334155;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
  padding: 3px 8px;
  text-transform: uppercase;
}

.seo-flag.is-ok {
  background: #ecfdf5;
  color: #047857;
}

.seo-flag.is-warning {
  background: #fef2f2;
  color: #b91c1c;
}

.seo-flag.is-custom {
  background: #eff6ff;
  color: #1d4ed8;
}

.field-hint.is-ok {
  color: #047857;
}

.field-hint.is-warning {
  color: #b91c1c;
}

.seo-snippet-preview {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px;
}

.seo-snippet-url {
  color: #15803d;
  font-size: 0.82rem;
  margin: 0 0 4px;
}

.seo-snippet-title {
  color: #1a0dab;
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.seo-snippet-description {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 980px) {
  .seo-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mobile-api-panel {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.mobile-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-api-key-field {
  display: grid;
  gap: 6px;
}

.mobile-api-key-input {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
}

.mobile-api-meta {
  display: grid;
  gap: 6px;
}

.mobile-api-meta code,
.mobile-api-example {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
}

.mobile-api-example {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.comments-admin-panel {
  display: grid;
  gap: 18px;
}

.manual-reply-report-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.manual-reply-report-list div {
  display: grid;
  gap: 4px;
}

.manual-reply-report-list dt {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.manual-reply-report-list dd {
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.manual-reply-report-list a {
  color: inherit;
}

.comments-manual-reply-panel,
.comments-auto-reply-panel,
.commenters-panel {
  display: grid;
  gap: 12px;
}

.commenters-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.commenter-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto auto 1fr auto;
  padding: 10px 12px;
}

.commenter-name {
  font-weight: 600;
}

.commenter-meta {
  font-size: 0.82rem;
  text-align: right;
  white-space: nowrap;
}

.commenter-dispatch-report-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.commenter-dispatch-report-list li {
  font-size: 0.92rem;
  line-height: 1.45;
}

.comment-admin-badge-commenter {
  background: #eef2ff;
  color: #3730a3;
}

.auto-reply-form {
  margin-top: 4px;
}

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

.comments-admin-list-heading h2 {
  font-size: 1.05rem;
  margin: 0;
}

.comment-admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.comment-admin-card.active {
  border-color: var(--navy);
}

.comment-admin-card-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.comment-admin-post-title {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.comment-admin-post-title a {
  color: inherit;
  text-decoration: none;
}

.comment-admin-post-title a:hover {
  color: var(--red);
}

.comment-admin-meta {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  margin: 0;
}

.comment-admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.comment-admin-badge {
  background: #eef2f7;
  border-radius: 999px;
  color: var(--navy);
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.comment-admin-badge-negative {
  background: #fee2e2;
  color: #991b1b;
}

.comment-admin-badge-writer {
  background: #dbeafe;
  color: #1e3a8a;
}

.comment-admin-badge-replied {
  background: #dcfce7;
  color: #166534;
}

.comment-admin-text {
  line-height: 1.5;
  margin: 0;
}

.comment-admin-reply {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.comment-admin-reply-form {
  display: grid;
  gap: 10px;
}

.comment-thread {
  display: grid;
  gap: 10px;
}

.comment-replies {
  border-left: 3px solid #dbeafe;
  display: grid;
  gap: 10px;
  margin-left: 12px;
  padding-left: 14px;
}

.comment-writer-reply {
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px 14px;
}

.writer-reply-badge {
  background: #dbeafe;
  border-radius: 999px;
  color: #1e3a8a;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-stats-grid,
  .site-stats-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-stats-grid,
  .site-stats-columns {
    grid-template-columns: 1fr;
  }
}

.backups-panel {
  display: grid;
  gap: 18px;
}

.backups-lede {
  margin-top: 0;
}

.backup-location-row {
  display: grid;
  gap: 10px;
}

.backup-location-row + .backup-location-row {
  margin-top: 16px;
}

.backup-browse-button {
  justify-self: start;
}

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

.backup-folder-browser {
  display: grid;
  gap: 14px;
}

.backup-folder-browser-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.backup-folder-current {
  margin: 6px 0 0;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  word-break: break-all;
}

.backup-folder-drives {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.backup-folder-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.backup-folder-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.backup-folder-item:hover {
  border-color: var(--blue);
  background: #f8fbff;
}

.backups-last-run ul {
  margin: 12px 0 0;
}
