:root {
  --paper: #fbfaf6;
  --paper-deep: #f2efe6;
  --surface: #ffffff;
  --ink: #102019;
  --muted: #667068;
  --faint: #929a94;
  --line: #dfe3dc;
  --green: #0f6344;
  --green-dark: #082d20;
  --green-ink: #0a4e35;
  --mint: #b7e4c7;
  --orange: #bf6f28;
  --orange-bright: #ff8b52;
  --shadow: 0 22px 60px rgba(8, 45, 32, 0.09);
  --radius: 24px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(183, 228, 199, 0.18), transparent 26rem),
    var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.reader-open .site-footer {
  margin-top: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

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

.page-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(16, 32, 25, 0.08);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1380px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.alpha-brand > img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(8, 45, 32, 0.16);
}

.alpha-wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.alpha-wordmark span {
  color: var(--green);
}

.alpha-brand small {
  padding-left: 11px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions,
.primary-tabs {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 24px;
}

.primary-tabs {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.tab-button {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.tab-button.active {
  color: #fff;
  background: var(--green);
}

.account-pill {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.account-pill.signed-in::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #28a66f;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.editorial-hero {
  min-height: 610px;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 100px;
}

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

.collaboration-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.collaboration-mark img {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.collaboration-mark > span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
}

.collaboration-mark div {
  display: grid;
  gap: 3px;
}

.collaboration-mark strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.collaboration-mark small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.editorial-hero h1,
.editor-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.8vw, 94px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-intro {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(15, 99, 68, 0.2);
}

.button.primary:hover {
  background: var(--green-ink);
}

.button.secondary {
  border-color: var(--line);
  color: var(--green-ink);
  background: var(--surface);
}

.button.danger {
  border-color: rgba(160, 50, 50, 0.2);
  color: #963a34;
  background: #fff7f5;
}

.button.danger:hover {
  border-color: rgba(160, 50, 50, 0.4);
  background: #ffefec;
}

.button.text-button {
  padding-inline: 12px;
  color: var(--green-ink);
  background: transparent;
}

.button.text-button::after {
  content: "↗";
  margin-left: 8px;
  color: var(--orange);
}

.hero-manifesto {
  position: relative;
  margin: 0 0 10px;
  padding: 34px;
  border: 1px solid rgba(183, 228, 199, 0.34);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 82, 0.22), transparent 45%),
    linear-gradient(145deg, var(--green-dark), #0b4833);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-manifesto::after {
  content: "α";
  position: absolute;
  right: -8px;
  bottom: -62px;
  color: rgba(183, 228, 199, 0.08);
  font-family: var(--serif);
  font-size: 210px;
  font-style: italic;
}

.hero-manifesto p {
  position: relative;
  z-index: 1;
  margin: 6px 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.manifesto-number {
  position: relative;
  z-index: 1;
  color: var(--mint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.hero-manifesto i {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 1px;
  margin: 14px 0;
  display: block;
  background: var(--orange-bright);
}

.editorial-gallery {
  padding: 18px 0 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  min-height: 270px;
  grid-column: span 5;
  border-radius: 22px;
  background: var(--green-dark);
  box-shadow: 0 18px 44px rgba(8, 45, 32, 0.1);
  overflow: hidden;
}

.gallery-card.gallery-wide {
  grid-column: span 7;
}

.gallery-card:nth-child(3) {
  grid-column: span 4;
}

.gallery-card:nth-child(4) {
  grid-column: span 8;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 25, 18, 0.78));
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card div {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}

.gallery-card div span {
  color: var(--mint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.gallery-card div strong {
  max-width: 310px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.08;
  text-align: right;
}

.article-library {
  padding: 76px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.editor-workspace h2,
.login-panel h2,
.preview-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.article-total {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.system-notice {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(191, 111, 40, 0.25);
  border-radius: 12px;
  color: #80501f;
  background: #fff8ec;
  font-size: 12px;
  line-height: 1.5;
}

.library-tools {
  margin: 36px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
}

.search-field,
.select-field {
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.search-field {
  padding: 0 16px;
  gap: 10px;
}

.search-field svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search-field input,
.select-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.select-field {
  padding: 0 13px;
}

.featured-article {
  width: min(1040px, 100%);
  height: 355px;
  min-height: 0;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(16, 32, 25, 0.065);
  overflow: hidden;
}

.featured-image,
.article-card-image {
  position: relative;
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 139, 82, 0.7), transparent 18%),
    radial-gradient(circle at 70% 65%, rgba(183, 228, 199, 0.48), transparent 24%),
    var(--green-dark);
  overflow: hidden;
}

.featured-image img,
.article-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.featured-article:hover .featured-image img,
.article-card:hover .article-card-image img {
  transform: scale(1.025);
}

.featured-image::after,
.article-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 45, 32, 0.25));
}

.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: 100px;
  font-style: italic;
}

.featured-content {
  min-width: 0;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.featured-content > div {
  min-width: 0;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-meta .category {
  color: var(--green);
}

.article-meta .draft {
  padding: 4px 7px;
  border-radius: 999px;
  color: #80501f;
  background: #fff1d8;
}

.featured-content h3,
.article-card h3 {
  margin: 20px 0 16px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.featured-content h3 {
  max-width: 100%;
  margin: 14px 0 11px;
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.06;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.featured-content > div > p,
.article-card-content > p {
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.55;
}

.featured-content > div > p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.58;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card-content > p {
  margin: 0;
  font-size: 15px;
}

.article-open-row {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.read-link {
  padding: 0;
  border: 0;
  color: var(--green-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.read-link::after {
  content: " →";
  color: var(--orange);
}

.admin-card-actions {
  display: flex;
  gap: 5px;
}

.admin-card-actions button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
}

.admin-card-actions button:hover {
  color: var(--green);
  border-color: var(--green);
}

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

.article-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card-image {
  height: 220px;
}

.article-card-image .image-fallback {
  font-size: 68px;
}

.article-card-content {
  padding: 25px;
}

.article-card h3 {
  font-size: 28px;
  line-height: 1.12;
}

.empty-state {
  min-height: 350px;
  padding: 70px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.46);
}

.empty-state > span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 58px;
  font-style: italic;
}

.empty-state h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
}

.editor-shell {
  padding: 78px 0 110px;
}

.editor-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: 90px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.editor-heading h1 {
  font-size: clamp(48px, 6vw, 76px);
}

.editor-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

.login-panel {
  width: min(560px, 100%);
  margin: 70px auto 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.login-panel h2 {
  font-size: 34px;
}

.login-panel > p {
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.login-panel label,
.field {
  display: grid;
  gap: 8px;
}

.login-panel label > span,
.field > span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field > span b {
  color: var(--orange);
}

.article-openable {
  cursor: pointer;
  outline: 0;
}

.article-openable:focus-visible {
  border-color: rgba(15, 99, 68, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 99, 68, 0.12), var(--shadow);
}

.article-openable .read-link {
  font-weight: 700;
}

.field > span em {
  margin-left: 6px;
  color: var(--green);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.login-panel input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input,
.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.login-panel input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(15, 99, 68, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 99, 68, 0.09);
}

.field > small {
  justify-self: end;
  color: var(--faint);
  font-size: 10px;
}

.form-message {
  min-height: 18px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-message.error {
  color: #a03232;
}

.form-message.success {
  color: var(--green);
}

.editor-workspace {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  gap: 36px;
}

.article-form {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.form-section {
  padding: 36px;
  border-bottom: 1px solid var(--line);
}

.form-section-title {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
}

.form-section-title > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
}

.form-section-title h2 {
  font-size: 31px;
}

.form-section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 20px;
}

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

.card-mode-fieldset {
  min-width: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}

.card-mode-fieldset legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

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

.card-mode-option {
  position: relative;
  min-height: 142px;
  padding: 18px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-mode-option:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 99, 68, 0.42);
}

.card-mode-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 99, 68, 0.08);
  background: #f7fbf8;
}

.card-mode-option:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-mode-option input {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}

.card-mode-option > span {
  display: grid;
  gap: 8px;
}

.card-mode-option strong {
  max-width: 150px;
  padding-right: 15px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.18;
}

.card-mode-option small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.card-mode-option b {
  width: max-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(183, 228, 199, 0.38);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-mode-panel {
  padding: 24px;
  border: 1px solid rgba(15, 99, 68, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(183, 228, 199, 0.12), rgba(255, 255, 255, 0.96)),
    #fff;
}

.card-builder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.card-builder-heading h3 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.ai-button {
  min-height: 42px;
  flex: 0 0 auto;
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.ai-button::before {
  content: "✦";
  margin-right: 7px;
  color: var(--orange);
}

.ai-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.card-builder-help,
.card-publication-warning,
.card-mode-message {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.card-builder-help {
  margin: 12px 0 20px;
}

.card-builder-help.error,
.card-mode-message.error {
  color: #a03232;
}

.card-builder-help.success,
.card-mode-message.success {
  color: var(--green);
}

.card-options-grid {
  gap: 16px;
}

.reused-card-data {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reused-card-data span {
  padding: 7px 9px;
  border: 1px solid rgba(15, 99, 68, 0.18);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  font-size: 9px;
  font-weight: 500;
}

.reused-card-data span::before {
  content: "✓";
  margin-right: 5px;
  color: var(--green);
}

.card-publication-warning {
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(15, 99, 68, 0.12);
}

.card-mode-message {
  min-height: 16px;
  margin: -4px 0 0;
}

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

.upload-field {
  position: relative;
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #b9c2bb;
  border-radius: 16px;
  text-align: center;
  background: #fafbf8;
  overflow: hidden;
  cursor: pointer;
}

.upload-field:hover,
.upload-field.dragging {
  border-color: var(--green);
  background: #f4faf6;
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-field .upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 19px;
}

.upload-field strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.upload-field small {
  max-width: 230px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.upload-field img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.upload-field.has-image img {
  display: block;
}

.upload-field.has-image::after {
  content: "Change image";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 45, 32, 0.85);
  font-size: 10px;
  font-weight: 600;
}

.distribution-section {
  background: linear-gradient(120deg, rgba(183, 228, 199, 0.13), rgba(255, 255, 255, 0.78));
}

.distribution-choice {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border: 1px solid rgba(15, 99, 68, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.distribution-choice > div > strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.distribution-choice > div > p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.distribution-toggle {
  min-width: 190px;
  justify-content: flex-end;
}

.distribution-toggle strong {
  max-width: 125px;
  line-height: 1.35;
}

.distribution-safety {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.publish-bar {
  padding: 27px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #f7f8f4;
}

.status-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.status-toggle input {
  position: absolute;
  opacity: 0;
}

.status-toggle > span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cfd5d0;
  transition: background 160ms ease;
}

.status-toggle > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 160ms ease;
}

.status-toggle input:checked + span {
  background: var(--green);
}

.status-toggle input:checked + span::after {
  transform: translateX(16px);
}

.status-toggle strong {
  font-size: 11px;
  font-weight: 600;
}

.publish-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-actions .button {
  min-height: 42px;
  padding-inline: 16px;
}

.live-preview {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.preview-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.preview-heading h2 {
  font-size: 30px;
}

.preview-heading > span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(183, 228, 199, 0.36);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-card-image {
  height: 230px;
  background:
    radial-gradient(circle at 28% 32%, rgba(255, 139, 82, 0.72), transparent 18%),
    radial-gradient(circle at 72% 64%, rgba(183, 228, 199, 0.55), transparent 25%),
    var(--green-dark);
}

.preview-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-card-content {
  padding: 26px;
}

.preview-card-content h3 {
  margin: 16px 0 11px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.preview-card-content > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
}

.preview-question {
  margin-top: 23px;
  padding: 16px;
  border-left: 2px solid var(--orange);
  color: #fff;
  background: var(--green-dark);
}

.preview-question small {
  display: block;
  margin-bottom: 7px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.preview-question strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.manage-shell {
  padding: 76px 0 110px;
}

.manage-heading {
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 70px;
  border-bottom: 1px solid var(--line);
}

.manage-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.1vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.manage-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

.manage-panel {
  margin-top: 56px;
}

.manage-toolbar,
.manage-controls,
.manage-article-row,
.manage-article-meta,
.manage-article-details,
.manage-article-actions {
  display: flex;
  align-items: center;
}

.manage-toolbar {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.manage-toolbar h2 {
  font-size: 38px;
}

.manage-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px 110px;
  gap: 14px;
  margin-bottom: 22px;
}

.manage-search,
.manage-controls .filter-field {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.manage-search input,
.manage-controls .filter-field select {
  min-height: 30px;
  font-size: 13px;
}

.manage-summary {
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-summary strong {
  color: var(--green);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

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

.manage-article-row {
  min-height: 126px;
  padding: 14px;
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(8, 45, 32, 0.045);
}

.manage-article-image {
  width: 146px;
  height: 96px;
  flex: 0 0 146px;
  border-radius: 12px;
  background: var(--green-dark);
  overflow: hidden;
}

.manage-article-image img,
.manage-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manage-image-fallback {
  display: grid;
  place-items: center;
  color: rgba(183, 228, 199, 0.6);
  font-family: var(--serif);
  font-size: 44px;
  font-style: italic;
}

.manage-article-main {
  min-width: 0;
  flex: 1;
}

.manage-article-meta,
.manage-article-details {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.manage-article-meta > span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--line-strong);
}

.manage-status,
.manage-card-state {
  padding: 6px 9px;
  border-radius: 999px;
}

.manage-status.published,
.manage-card-state.linked {
  color: var(--green);
  background: rgba(183, 228, 199, 0.35);
}

.manage-status.draft,
.manage-card-state.pending {
  color: #87631f;
  background: #fff4d4;
}

.manage-article-main h3 {
  margin: 11px 0 13px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-article-actions {
  justify-content: flex-end;
  gap: 8px;
}

.manage-article-actions .button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 11px;
}

.manage-article-details-panel {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.manage-article-details-panel summary {
  width: fit-content;
  margin: 2px 0 -2px;
  padding: 15px 2px 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
}

.manage-article-details-panel summary::-webkit-details-marker {
  display: none;
}

.manage-article-details-panel summary::after {
  content: "↓";
  margin-left: 8px;
  color: var(--orange);
}

.manage-article-details-panel[open] summary::after {
  content: "↑";
}

.manage-expanded-grid {
  padding: 26px 4px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 42px;
}

.manage-expanded-copy,
.manage-expanded-aside {
  display: grid;
  align-content: start;
  gap: 28px;
}

.manage-expanded-copy section,
.manage-expanded-aside section {
  min-width: 0;
}

.manage-expanded-copy .eyebrow,
.manage-expanded-aside .eyebrow {
  margin-bottom: 9px;
}

.manage-detail-brief {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.5;
}

.manage-detail-body {
  display: grid;
  gap: 18px;
}

.manage-detail-body p {
  margin: 0;
  color: #2e4037;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
}

.manage-expanded-aside {
  padding: 24px;
  border-radius: 16px;
  background: #f4f7f1;
}

.manage-expanded-aside section {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.manage-expanded-aside strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.manage-expanded-aside a {
  width: fit-content;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.manage-expanded-aside span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.manage-card-pending-copy {
  color: #87631f !important;
}

.manage-detail-news-image {
  margin: 0;
}

.manage-detail-news-image img {
  width: 100%;
  max-height: 480px;
  border-radius: 14px;
  object-fit: cover;
}

.manage-detail-news-image figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manage-empty {
  min-height: 280px;
  padding: 40px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.manage-empty > span {
  color: var(--orange);
  font-family: var(--serif);
  font-size: 52px;
  font-style: italic;
}

.manage-empty h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}

.manage-empty p {
  margin: 0;
  color: var(--muted);
}

.linkedin-shell {
  padding: 76px 0 110px;
}

.linkedin-heading {
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: end;
  gap: 70px;
  border-bottom: 1px solid var(--line);
}

.linkedin-heading h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 6.1vw, 84px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.linkedin-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
}

.approval-guard {
  margin-top: 34px;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(15, 99, 68, 0.2);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(183, 228, 199, 0.22), rgba(255, 255, 255, 0.8));
}

.approval-guard-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 18px;
  font-weight: 600;
}

.approval-guard strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.approval-guard p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.connection-pill {
  padding: 8px 11px;
  border: 1px solid rgba(160, 50, 50, 0.22);
  border-radius: 999px;
  color: #8c3434;
  background: rgba(255, 244, 242, 0.9);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.queue-panel {
  margin-top: 56px;
}

.queue-toolbar,
.queue-toolbar-actions,
.queue-counts,
.linkedin-card-meta,
.linkedin-card-actions {
  display: flex;
  align-items: center;
}

.queue-toolbar {
  margin-bottom: 24px;
  justify-content: space-between;
  gap: 24px;
}

.queue-toolbar h2 {
  font-size: 38px;
}

.queue-toolbar-actions {
  gap: 18px;
}

.queue-counts {
  gap: 8px;
}

.queue-counts span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
}

.queue-counts b {
  color: var(--green);
}

.system-notice.error {
  border-color: rgba(160, 50, 50, 0.22);
  color: #8c3434;
  background: #fff4f2;
}

.linkedin-queue {
  display: grid;
  gap: 24px;
}

.linkedin-queue-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(8, 45, 32, 0.07);
  overflow: hidden;
}

.linkedin-card-media {
  min-height: 100%;
  background: var(--green-dark);
}

.linkedin-card-media img,
.linkedin-image-fallback {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.linkedin-image-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--serif);
  font-size: 80px;
}

.linkedin-card-body {
  min-width: 0;
  padding: 32px;
}

.linkedin-card-meta {
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linkedin-status {
  padding: 6px 9px;
  border-radius: 999px;
  color: #7d5d1f;
  background: #fff5d9;
}

.linkedin-status.approved,
.linkedin-status.published {
  color: var(--green);
  background: rgba(183, 228, 199, 0.36);
}

.linkedin-status.failed {
  color: #8c3434;
  background: #fff4f2;
}

.linkedin-card-body h3 {
  margin: 18px 0 7px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.linkedin-card-source {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.linkedin-ai-assistant {
  margin-bottom: 18px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(15, 99, 68, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 82, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(183, 228, 199, 0.15), rgba(255, 255, 255, 0.96));
}

.linkedin-ai-assistant > div {
  min-width: 0;
}

.linkedin-ai-assistant span {
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.linkedin-ai-assistant p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.linkedin-ai-assistant small {
  min-height: 15px;
  margin-top: 5px;
  display: block;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.45;
}

.linkedin-ai-assistant small.success {
  color: var(--green);
}

.linkedin-ai-assistant small.error {
  color: #a03232;
}

.linkedin-ai-button {
  min-width: 142px;
  flex: 0 0 auto;
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.linkedin-ai-button::before {
  content: "✦";
  margin-right: 7px;
  color: var(--orange);
}

.linkedin-copy-field {
  display: grid;
  gap: 8px;
}

.linkedin-copy-field > span,
.linkedin-link-preview > span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linkedin-copy-field textarea {
  width: 100%;
  min-height: 270px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}

.linkedin-copy-field textarea:focus {
  border-color: rgba(15, 99, 68, 0.7);
  box-shadow: 0 0 0 3px rgba(15, 99, 68, 0.09);
}

.linkedin-copy-field textarea[readonly] {
  color: #33483e;
  background: #f7f8f4;
}

.linkedin-copy-field small {
  justify-self: end;
  color: var(--faint);
  font-size: 9px;
}

.linkedin-link-preview {
  margin-top: 16px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: #f7f8f4;
}

.linkedin-link-preview a {
  color: var(--green);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.linkedin-card-actions {
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 8px;
}

.linkedin-card-actions .button {
  min-height: 42px;
  padding-inline: 15px;
}

.button:disabled,
.linkedin-publish-disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
}

.linkedin-approval-message {
  margin: 16px 0 0;
  color: var(--green);
  font-size: 11px;
  line-height: 1.5;
}

.linkedin-empty {
  min-height: 330px;
  padding: 52px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--line);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

.linkedin-empty > span {
  width: 55px;
  height: 55px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: #0a66c2;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 600;
}

.linkedin-empty h3 {
  font-size: 31px;
}

.linkedin-empty p {
  max-width: 470px;
  margin: 9px 0 22px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
}

.reader {
  padding: 44px 0 110px;
}

.reader-back {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}

.reader-back::before {
  content: "← ";
  color: var(--orange);
}

.reader-header {
  max-width: 920px;
  margin: 65px auto 45px;
  text-align: center;
}

.reader-header h1 {
  margin: 22px 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.reader-deck {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
}

.reader-byline {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
}

.reader-byline img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.reader-cover {
  position: relative;
  width: min(1120px, 100%);
  height: min(620px, 55vw);
  min-height: 360px;
  margin: 0 auto;
  border-radius: 28px;
  background: var(--green-dark);
  overflow: hidden;
}

.reader-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reader-layout {
  max-width: 930px;
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 52px;
}

.reader-aside {
  position: sticky;
  top: 110px;
  align-self: start;
}

.reader-aside p {
  margin: 0 0 6px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reader-aside a {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--green);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
}

.reader-share {
  display: grid;
  gap: 7px;
}

.reader-share button {
  min-height: 37px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: #fff;
  font-size: 10px;
  font-weight: 600;
}

.reader-copy {
  min-width: 0;
}

.reader-copy > p {
  margin: 0 0 25px;
  color: #26382f;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.78;
}

.reader-copy > p:first-child::first-letter {
  float: left;
  margin: 7px 9px 0 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 78px;
  line-height: 0.72;
}

.reader-news-image {
  margin: 42px 0;
}

.reader-news-image img {
  width: 100%;
  max-height: 520px;
  border-radius: 18px;
  object-fit: cover;
}

.reader-news-image figcaption {
  margin-top: 9px;
  color: var(--faint);
  font-size: 9px;
}

.reader-question {
  position: relative;
  margin-top: 58px;
  padding: 38px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 139, 82, 0.24), transparent 42%),
    var(--green-dark);
  overflow: hidden;
}

.reader-question::after {
  content: "α";
  position: absolute;
  right: -5px;
  bottom: -63px;
  color: rgba(183, 228, 199, 0.08);
  font-family: var(--serif);
  font-size: 180px;
  font-style: italic;
}

.reader-question .eyebrow {
  color: var(--mint);
}

.reader-question h2 {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 10px 0 28px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.reader-question .button {
  position: relative;
  z-index: 1;
  color: var(--green-dark);
  background: var(--mint);
}

.reader-card-pending {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(183, 228, 199, 0.34);
  border-radius: 12px;
  color: var(--mint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reader-admin-row {
  max-width: 930px;
  margin: 28px auto 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--green-dark);
}

.footer-inner {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer-lockup div {
  display: grid;
  gap: 3px;
}

.footer-lockup strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.footer-lockup span,
.footer-inner p,
.footer-inner a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.footer-inner p strong {
  color: #fff;
}

.footer-inner a {
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  max-width: 350px;
  padding: 13px 16px;
  border-radius: 11px;
  color: #fff;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .editorial-hero {
    grid-template-columns: 1fr 260px;
    gap: 50px;
  }

  .editor-workspace {
    grid-template-columns: 1fr;
  }

  .live-preview {
    position: static;
    max-width: 520px;
  }

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

  .linkedin-heading {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
  }

  .manage-heading {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 42px;
  }

  .manage-article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .linkedin-queue-card {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 28px, 1220px);
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 68px;
  }

  .alpha-brand > img {
    width: 38px;
    height: 38px;
  }

  .alpha-wordmark {
    font-size: 21px;
  }

  .alpha-brand small,
  .account-pill {
    display: none;
  }

  .header-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    gap: 0;
    overflow: hidden;
  }

  .primary-tabs {
    padding: 3px;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .tab-button {
    flex: 0 0 auto;
  }

  .tab-button {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .editorial-hero {
    min-height: 0;
    padding: 54px 0 45px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 38px;
  }

  .collaboration-mark {
    margin-bottom: 38px;
  }

  .editorial-hero h1,
  .editor-heading h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-intro {
    font-size: 18px;
  }

  .hero-manifesto {
    display: grid;
    grid-template-columns: 25px 1fr;
    gap: 6px 12px;
  }

  .hero-manifesto i {
    display: none;
  }

  .hero-manifesto p {
    margin: 0;
    font-size: 22px;
  }

  .article-library {
    padding: 56px 0 78px;
  }

  .library-tools {
    grid-template-columns: 1fr;
  }

  .editorial-gallery {
    padding: 8px 0 58px;
    grid-template-columns: 1fr;
  }

  .gallery-card,
  .gallery-card.gallery-wide,
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4) {
    min-height: 260px;
    grid-column: auto;
  }

  .featured-article {
    height: auto;
    min-height: 0;
    max-width: 620px;
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 220px;
  }

  .featured-content {
    min-height: 270px;
    padding: 25px 27px;
  }

  .featured-content h3 {
    font-size: clamp(29px, 8vw, 36px);
  }

  .featured-content > div > p {
    -webkit-line-clamp: 3;
  }

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

  .editor-shell {
    padding: 55px 0 80px;
  }

  .linkedin-shell {
    padding: 55px 0 82px;
  }

  .manage-shell {
    padding: 55px 0 82px;
  }

  .linkedin-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 42px;
  }

  .linkedin-heading h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .linkedin-heading > p {
    font-size: 17px;
  }

  .manage-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 42px;
  }

  .manage-heading h1 {
    font-size: clamp(44px, 12vw, 64px);
  }

  .manage-heading > p {
    font-size: 17px;
  }

  .manage-controls {
    grid-template-columns: 1fr 1fr;
  }

  .manage-search {
    grid-column: 1 / -1;
  }

  .manage-article-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
  }

  .manage-article-image {
    width: 112px;
    height: 96px;
    flex-basis: 112px;
  }

  .manage-article-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .manage-expanded-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .approval-guard {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .connection-pill {
    grid-column: 2;
    justify-self: start;
  }

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

  .queue-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .linkedin-card-media,
  .linkedin-card-media img,
  .linkedin-image-fallback {
    min-height: 300px;
    height: 55vw;
    max-height: 420px;
  }

  .editor-heading {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 45px;
  }

  .editor-heading > p {
    font-size: 17px;
  }

  .form-section {
    padding: 26px 20px;
  }

  .form-grid.two-columns,
  .upload-grid {
    grid-template-columns: 1fr;
  }

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

  .card-mode-option {
    min-height: 112px;
  }

  .card-builder-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ai-button {
    width: 100%;
  }

  .distribution-choice {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .distribution-toggle {
    min-width: 0;
    justify-content: flex-start;
  }

  .publish-bar {
    padding: 23px 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .publish-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .publish-actions .text-button {
    grid-column: 1 / -1;
  }

  .reader {
    padding-top: 28px;
  }

  .reader-header {
    margin: 45px auto 32px;
  }

  .reader-header h1 {
    font-size: clamp(43px, 13vw, 65px);
  }

  .reader-deck {
    font-size: 18px;
  }

  .reader-cover {
    min-height: 280px;
    height: 58vw;
    border-radius: 19px;
  }

  .reader-layout {
    margin-top: 40px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .reader-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 18px;
  }

  .reader-aside a {
    margin-bottom: 0;
  }

  .reader-share {
    grid-template-columns: 1fr 1fr;
  }

  .reader-copy > p {
    font-size: 18px;
    line-height: 1.7;
  }

  .reader-question {
    padding: 28px;
  }

  .footer-inner {
    padding: 35px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .alpha-wordmark {
    display: none;
  }

  .alpha-brand small {
    display: block;
    padding-left: 0;
    border: 0;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .featured-image {
    height: 190px;
  }

  .featured-content {
    min-height: 250px;
    padding: 22px 20px;
  }

  .login-panel {
    padding: 25px;
  }

  .article-form {
    border-radius: 18px;
  }

  .approval-guard {
    padding: 20px;
  }

  .queue-toolbar-actions,
  .queue-counts {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-toolbar-actions .button,
  .queue-counts span {
    width: 100%;
  }

  .linkedin-card-body {
    padding: 24px 20px;
  }

  .linkedin-card-body h3 {
    font-size: 28px;
  }

  .linkedin-ai-assistant {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .linkedin-ai-button {
    width: 100%;
  }

  .linkedin-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .linkedin-card-actions .button {
    width: 100%;
  }

  .manage-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .manage-toolbar .button {
    width: 100%;
  }

  .manage-controls {
    grid-template-columns: 1fr;
  }

  .manage-search {
    grid-column: auto;
  }

  .manage-summary {
    min-height: 68px;
  }

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

  .manage-article-image {
    width: 100%;
    height: 180px;
  }

  .manage-article-main h3 {
    white-space: normal;
  }

  .manage-article-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .manage-expanded-grid {
    padding-top: 20px;
  }

  .manage-expanded-aside {
    padding: 20px;
  }

  .manage-detail-brief {
    font-size: 21px;
  }

  .form-section-title {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
  }

  .publish-actions {
    grid-template-columns: 1fr;
  }

  .publish-actions .text-button {
    grid-column: auto;
  }

  .reader-cover {
    min-height: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Article system v4: editorial archive + reader from the approved Figma concept ---------- */

.header-vote-yard,
.header-enter {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.header-vote-yard {
  color: var(--ink);
}

.header-enter {
  min-height: 44px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
}

.header-enter:hover {
  background: var(--green-ink);
}

#libraryView,
#readerView {
  background: #f7f3ea;
}

#libraryView > .editorial-hero,
#libraryView > .editorial-gallery {
  display: none;
}

.archive-hero {
  min-height: 360px;
  padding: 80px 0 68px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: 90px;
}

.archive-hero .eyebrow {
  margin-bottom: 24px;
}

.archive-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 6.3vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.archive-hero > p {
  max-width: 470px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.article-library {
  padding: 0 0 112px;
  display: flex;
  flex-direction: column;
  border-top: 0;
}

.article-library .system-notice {
  order: 0;
}

.article-library .featured-slot {
  order: 1;
}

.article-library .archive-tools {
  order: 2;
}

.article-library .article-grid {
  order: 3;
}

.article-library .empty-state {
  order: 4;
}

.featured-slot {
  width: 100%;
  display: block !important;
}

.featured-slot.hidden {
  display: none !important;
}

.featured-article {
  width: 100%;
  height: 560px;
  min-height: 560px;
  margin: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 0.9fr);
  border-radius: 26px;
  box-shadow: none;
  cursor: pointer;
}

.featured-image {
  min-height: 560px;
}

.featured-image::after {
  background:
    linear-gradient(180deg, transparent 55%, rgba(8, 45, 32, 0.28)),
    linear-gradient(90deg, transparent 70%, rgba(8, 45, 32, 0.08));
}

.featured-content {
  padding: clamp(38px, 4.3vw, 58px);
}

.featured-content h3 {
  margin: 24px 0 18px;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.04;
}

.featured-content > div > p {
  display: block;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-line-clamp: initial;
}

.featured-question {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  gap: 8px;
}

.featured-question span,
.article-list-question span {
  color: var(--orange-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-question strong {
  max-width: 470px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.featured-content .article-open-row {
  margin-top: 22px;
  padding-top: 0;
}

.featured-read-link {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.featured-read-link span {
  margin-left: 7px;
  color: var(--mint);
}

.archive-tools {
  margin: 38px 0 0;
  padding: 12px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.topic-filter-pills {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-filter-pills::-webkit-scrollbar {
  display: none;
}

.topic-filter {
  min-height: 38px;
  padding: 0 15px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topic-filter:hover,
.topic-filter.active {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.archive-tools .search-field {
  min-height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.archive-select-fallback {
  display: none;
}

.archive-tools .article-total {
  margin: 0;
  white-space: nowrap;
}

.article-grid {
  width: 100%;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.article-list-row {
  position: relative;
  width: 100%;
  min-height: 164px;
  padding: 20px 4px 20px 0;
  display: grid;
  grid-template-columns: 46px 190px minmax(300px, 1.35fr) minmax(220px, 0.85fr) minmax(150px, 0.55fr) 28px;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.article-list-row:hover {
  background: rgba(255, 255, 255, 0.42);
}

.article-row-index {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.article-list-cover {
  position: relative;
  width: 190px;
  height: 124px;
  border-radius: 12px;
  background: var(--green-dark);
  overflow: hidden;
}

.article-list-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.article-list-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(8, 45, 32, 0.2));
  pointer-events: none;
}

.article-list-row:hover .article-list-cover img {
  transform: scale(1.035);
}

.article-list-cover .image-fallback {
  font-size: 58px;
}

.article-list-primary {
  min-width: 0;
}

.article-list-kicker {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--green);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-list-primary h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 29px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-list-brief {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.48;
}

.article-list-question {
  display: grid;
  gap: 9px;
}

.article-list-question strong {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.article-question-empty span {
  color: var(--muted);
}

.article-list-question.article-question-empty strong {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
}

.article-list-arrow {
  color: var(--green);
  font-size: 24px;
}

.article-list-row > .admin-card-actions {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 11px;
}

.reader {
  padding: 32px 0 84px;
}

.reader-utility {
  min-height: 78px;
  padding: 10px 0 16px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.reader-back {
  color: var(--green);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.reader-back::before {
  color: var(--green);
}

.reader-utility-details {
  display: flex;
  align-items: flex-start;
  gap: clamp(34px, 5vw, 74px);
}

.reader-utility-item {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.reader-utility-item > span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-utility-item > a,
.reader-utility-item > strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.reader-source-summary > a {
  color: var(--green);
}

.reader-all-sources {
  position: relative;
}

.reader-all-sources summary {
  width: fit-content;
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.reader-all-sources ul {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 0;
  width: min(300px, 70vw);
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  list-style: none;
}

.reader-all-sources a {
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
}

.reader-copy-link {
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.reader-header {
  max-width: none;
  margin: 54px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.75fr);
  align-items: end;
  gap: 72px;
  text-align: left;
}

.reader-title-block .article-meta {
  margin-bottom: 24px;
}

.reader-header h1 {
  margin: 0;
  font-size: clamp(55px, 6vw, 78px);
  line-height: 1.01;
}

.reader-intro {
  padding-bottom: 5px;
}

.reader-deck {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

.reader-byline {
  margin-top: 24px;
  justify-content: flex-start;
}

.reader-cover {
  width: 100%;
  height: clamp(420px, 43vw, 560px);
  min-height: 0;
  border-radius: 24px;
}

.reader-content-layout {
  width: min(1040px, 100%);
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(300px, 340px);
  align-items: start;
  gap: 44px;
}

.reader-content-layout.without-debate {
  width: min(760px, 100%);
  grid-template-columns: minmax(0, 1fr);
}

.reader-copy {
  width: 100%;
  margin: 0;
}

.reader-debate-rail {
  position: sticky;
  top: 104px;
  min-width: 0;
  padding: 22px;
  border-radius: 22px;
  color: var(--paper);
  background: var(--green-dark);
  overflow: hidden;
}

.reader-debate-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--orange-bright);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-debate-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.reader-debate-rail .reader-vote-heading {
  margin: 34px 0 22px;
}

.reader-debate-rail .reader-vote-heading .eyebrow {
  color: var(--orange-bright);
}

.reader-debate-rail .reader-vote-heading h2 {
  color: var(--paper);
  font-size: clamp(27px, 2.6vw, 34px);
}

.reader-debate-rail .reader-vote-heading > p:last-child {
  color: rgba(247, 243, 234, 0.74);
}

.reader-debate-rail .shared-vote-card {
  margin-top: 20px;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}

.reader-card-fallback {
  margin-top: 0;
  border: 0;
  background: var(--green-dark);
}

.reader-card-fallback p {
  color: rgba(247, 243, 234, 0.74);
}

.reader-card-link {
  min-height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.reader-end-loop {
  width: 100%;
  min-height: 76px;
  margin-top: 76px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  text-transform: uppercase;
}

.reader-end-loop i {
  color: var(--orange-bright);
  font-family: var(--sans);
  font-size: 12px;
  font-style: normal;
}

.reader-admin-row {
  max-width: 1040px;
}

@media (max-width: 1180px) {
  .header-enter {
    display: none;
  }

  .article-list-row {
    grid-template-columns: 36px 160px minmax(260px, 1.2fr) minmax(190px, 0.8fr) minmax(130px, 0.55fr) 24px;
    gap: 18px;
  }

  .article-list-cover {
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 980px) {
  .archive-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
    gap: 42px;
  }

  .featured-article {
    height: 500px;
    min-height: 500px;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  }

  .featured-image {
    min-height: 500px;
  }

  .archive-tools {
    grid-template-columns: minmax(0, 1fr) 200px;
  }

  .archive-tools .article-total {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .article-list-row {
    grid-template-columns: 32px 150px minmax(0, 1fr) minmax(145px, 0.45fr) 24px;
  }

  .article-list-cover {
    width: 150px;
    height: 104px;
  }

  .article-list-brief {
    display: none;
  }

  .reader-content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 34px;
  }
}

@media (max-width: 780px) {
  .header-vote-yard {
    display: none;
  }

  .archive-hero {
    min-height: 0;
    padding: 56px 0 44px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 26px;
  }

  .archive-hero .eyebrow {
    margin-bottom: 18px;
  }

  .archive-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .archive-hero > p {
    max-width: 560px;
    font-size: 15px;
  }

  .featured-article {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-image {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .featured-content {
    padding: 28px 24px;
  }

  .featured-content h3 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .archive-tools {
    margin-top: 28px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .topic-filter-pills {
    grid-column: 1 / -1;
  }

  .archive-tools .search-field {
    min-width: 0;
  }

  .archive-tools .article-total {
    grid-column: auto;
  }

  .article-list-row {
    min-height: 176px;
    padding-block: 20px;
    grid-template-columns: 28px 112px minmax(0, 1fr) 22px;
    align-items: start;
    gap: 14px;
  }

  .article-list-cover {
    width: 112px;
    height: 92px;
  }

  .article-list-primary {
    align-self: start;
  }

  .article-list-primary h3 {
    font-size: clamp(22px, 5.8vw, 28px);
  }

  .article-list-question {
    grid-column: 3 / 5;
    margin-top: -38px;
  }

  .article-list-question strong {
    max-width: 340px;
  }

  .article-list-arrow {
    grid-column: 4;
    grid-row: 1;
  }

  .reader-utility {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
  }

  .reader-utility-details {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    gap: 28px;
  }

  .reader-copy-link {
    grid-column: 2;
    grid-row: 1;
  }

  .reader-header {
    margin: 46px 0 34px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .reader-header h1 {
    font-size: clamp(44px, 11vw, 64px);
  }

  .reader-intro {
    max-width: 620px;
  }

  .reader-cover {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .reader-content-layout {
    width: min(720px, 100%);
    margin-top: 48px;
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .reader-debate-rail {
    position: static;
  }

  .reader-end-loop {
    margin-top: 56px;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 20px);
  }

  .primary-tabs {
    max-width: calc(100vw - 92px);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .archive-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-tools .article-total {
    justify-self: start;
  }

  .article-list-row {
    min-height: 0;
    grid-template-columns: 96px minmax(0, 1fr) 20px;
  }

  .article-row-index {
    display: none;
  }

  .article-list-cover {
    width: 96px;
    height: 86px;
  }

  .article-list-question {
    grid-column: 2 / 4;
    margin-top: 0;
  }

  .article-list-arrow {
    grid-column: 3;
  }

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

  .reader-source-summary {
    grid-column: 1 / -1;
  }

  .reader-header h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .reader-deck {
    font-size: 16px;
  }

  .reader-debate-rail {
    padding: 19px;
    border-radius: 18px;
  }

  .reader-end-loop {
    padding: 22px;
    gap: 10px;
    font-size: 15px;
  }
}

/* ---------- Article system v2: sources, rich content and uniform archive ---------- */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.sources-editor {
  display: grid;
  gap: 12px;
}

.source-editor-row {
  min-width: 0;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 248, 244, 0.7);
}

.source-editor-row:first-child {
  padding: 0;
  border: 0;
  background: transparent;
}

.source-remove-button {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(160, 50, 50, 0.24);
  border-radius: 10px;
  color: #8f3434;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.add-source-button {
  width: max-content;
  max-width: 100%;
  margin-top: 13px;
  padding-inline: 0;
}

.field-guidance {
  margin: 6px 0 22px;
  color: var(--faint);
  font-size: 10px;
  line-height: 1.5;
}

.media-alt-fields {
  margin-top: 20px;
}

.featured-slot {
  display: none !important;
}

.article-grid {
  width: 100%;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.article-card {
  width: 100%;
  min-width: 0;
  min-height: 278px;
  display: grid;
  grid-template-columns: minmax(280px, 0.39fr) minmax(0, 0.61fr);
  align-items: stretch;
  border-radius: 22px;
}

.article-card-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 278px;
}

.article-card-content {
  min-width: 0;
  padding: clamp(26px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.article-card h3 {
  max-width: 760px;
  margin: 16px 0 12px;
  font-size: clamp(30px, 3vw, 43px);
  line-height: 1.06;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article-card-content > p {
  max-width: 720px;
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.58;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-card .article-open-row {
  width: 100%;
  margin-top: auto;
}

.article-meta time,
.article-meta span {
  overflow-wrap: anywhere;
}

.reader,
.reader * {
  min-width: 0;
}

.reader-header h1,
.reader-deck,
.reader-byline,
.reader-aside,
.reader-copy {
  overflow-wrap: anywhere;
}

.reader-layout {
  max-width: 980px;
  grid-template-columns: minmax(170px, 195px) minmax(0, 1fr);
}

.reader-sources ul {
  margin: 0 0 25px;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
}

.reader-sources li {
  min-width: 0;
}

.reader-sources a {
  max-width: 100%;
  margin: 0;
  display: inline;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.reader-sources > span {
  margin-bottom: 25px;
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.reader-share {
  margin-top: 22px;
  grid-template-columns: minmax(0, 1fr);
}

.reader-share button {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.rich-article-body {
  color: #26382f;
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.rich-article-body > * {
  max-width: 100%;
}

.rich-article-body p {
  margin: 0 0 25px;
}

.rich-article-body > p:first-of-type::first-letter {
  float: left;
  margin: 8px 9px 0 0;
  color: var(--green);
  font-family: var(--serif);
  font-size: 78px;
  line-height: 0.72;
}

.rich-article-body h2,
.rich-article-body h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.rich-article-body h2 {
  margin: 50px 0 18px;
  font-size: clamp(31px, 4vw, 46px);
  line-height: 1.08;
}

.rich-article-body h3 {
  margin: 38px 0 15px;
  font-size: clamp(25px, 3vw, 33px);
  line-height: 1.15;
}

.rich-article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.rich-article-body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(15, 99, 68, 0.36);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.rich-article-body ul,
.rich-article-body ol {
  margin: 0 0 30px;
  padding-left: 1.35em;
}

.rich-article-body li {
  padding-left: 0.25em;
}

.rich-article-body li + li {
  margin-top: 9px;
}

.rich-article-body blockquote {
  margin: 38px 0;
  padding: 6px 0 6px 25px;
  border-left: 3px solid var(--orange);
  color: var(--green-ink);
  font-size: clamp(22px, 3vw, 30px);
  font-style: italic;
  line-height: 1.45;
}

.rich-article-body code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: rgba(15, 99, 68, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.rich-article-figure,
.reader-news-image {
  width: 100%;
  max-width: 100%;
  margin: 42px 0;
}

.rich-article-figure img,
.reader-news-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 18px;
  object-fit: contain;
}

.rich-article-figure figcaption,
.reader-news-image figcaption {
  margin-top: 10px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.reader-vote-section {
  width: 100%;
  max-width: 100%;
  margin-top: clamp(62px, 9vw, 96px);
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.reader-vote-heading {
  margin-bottom: 25px;
}

.reader-vote-heading .eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reader-vote-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.reader-vote-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.reader-card-fallback {
  margin-top: 55px;
  padding: 20px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, 0.62);
}

.reader-card-fallback p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.reader-card-fallback a {
  color: var(--green);
  overflow-wrap: anywhere;
}

.manage-source-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.manage-source-list a {
  display: inline;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .article-grid {
    gap: 18px;
  }

  .article-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .article-card-image {
    height: clamp(190px, 54vw, 280px);
    min-height: 0;
  }

  .article-card-content {
    padding: 24px;
  }

  .article-card h3 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .reader-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .reader-aside {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.36fr);
  }

  .reader-share {
    margin-top: 0;
  }

  .source-editor-row,
  .source-editor-row:first-child {
    padding: 14px;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid var(--line);
    background: rgba(247, 248, 244, 0.7);
  }

  .source-editor-row:first-child .source-remove-button {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1220px);
  }

  .library-tools,
  .news-details-grid,
  .media-alt-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-card-content {
    padding: 21px 18px;
  }

  .article-meta {
    gap: 6px;
    font-size: 9px;
  }

  .reader-header {
    margin-inline: 0;
  }

  .reader-header h1 {
    font-size: clamp(39px, 12vw, 55px);
    line-height: 1.01;
  }

  .reader-byline {
    align-items: flex-start;
    text-align: left;
  }

  .reader-cover {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .reader-aside {
    padding-bottom: 22px;
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 1px solid var(--line);
  }

  .reader-share {
    width: min(180px, 100%);
  }

  .rich-article-body {
    font-size: 18px;
    line-height: 1.7;
  }

  .rich-article-body > p:first-of-type::first-letter {
    font-size: 66px;
  }

  .rich-article-body h2 {
    margin-top: 42px;
  }

  .rich-article-body blockquote {
    padding-left: 18px;
    font-size: 22px;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(100% - 20px, 1220px);
  }

  .article-card-image {
    height: 190px;
  }

  .article-card-content {
    padding: 19px 16px;
  }

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

  .reader-header h1 {
    font-size: clamp(36px, 12vw, 48px);
  }

  .reader-deck {
    font-size: 17px;
  }

  .reader-vote-section {
    margin-top: 58px;
    padding-top: 32px;
  }
}

/* ---------- Article system v3: tables, wide reader and a quieter archive ---------- */

.markdown-toolbar {
  min-height: 42px;
  margin-bottom: -8px;
  padding: 7px 9px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  color: var(--muted);
  background: rgba(247, 248, 244, 0.9);
}

.markdown-toolbar label {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.markdown-toolbar label b {
  color: var(--orange);
}

.markdown-toolbar button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(15, 99, 68, 0.25);
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.markdown-toolbar button:hover,
.markdown-toolbar button:focus-visible {
  color: #fff;
  border-color: var(--green);
  outline: 0;
  background: var(--green);
}

.markdown-toolbar + textarea {
  position: relative;
  border-radius: 0 0 11px 11px;
}

.editorial-gallery {
  padding: 12px 0 64px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.editorial-gallery .gallery-card,
.editorial-gallery .gallery-card.gallery-wide,
.editorial-gallery .gallery-card:nth-child(3),
.editorial-gallery .gallery-card:nth-child(4) {
  min-height: 210px;
  grid-column: auto;
  border-radius: 18px;
}

.editorial-gallery .gallery-card div {
  right: 17px;
  bottom: 16px;
  left: 17px;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.editorial-gallery .gallery-card div strong {
  max-width: 100%;
  font-size: clamp(18px, 1.6vw, 22px);
  text-align: left;
}

.reader-layout {
  width: min(1040px, 100%);
  max-width: 1040px;
  grid-template-columns: minmax(0, 1fr);
  gap: 42px;
}

.reader-meta-strip {
  position: static;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reader-meta-groups {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 58px);
}

.reader-meta-block {
  min-width: 0;
}

.reader-meta-block.reader-sources {
  flex: 1 1 auto;
}

.reader-meta-block p {
  margin: 0 0 7px;
}

.reader-sources ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
}

.reader-sources a {
  margin: 0;
}

.reader-reading-time {
  flex: 0 0 auto;
}

.reader-reading-time span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.4;
  white-space: nowrap;
}

.reader-meta-strip .reader-share {
  width: auto;
  margin: 0;
}

.reader-meta-strip .reader-share button {
  width: auto;
  min-width: 126px;
  min-height: 42px;
  padding-inline: 18px;
}

.reader-copy {
  width: min(920px, 100%);
  margin-inline: auto;
}

.reader-admin-row {
  max-width: 1040px;
}

.rich-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 38px 0 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 45, 32, 0.055);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.rich-table-scroll:focus-visible {
  outline: 3px solid rgba(15, 99, 68, 0.18);
  outline-offset: 3px;
}

.rich-table-scroll table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
}

.rich-table-scroll th,
.rich-table-scroll td {
  min-width: 140px;
  max-width: 320px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rich-table-scroll th:last-child,
.rich-table-scroll td:last-child {
  border-right: 0;
}

.rich-table-scroll tbody tr:last-child td {
  border-bottom: 0;
}

.rich-table-scroll th {
  color: #fff;
  background: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rich-table-scroll th:first-child {
  border-radius: 15px 0 0;
}

.rich-table-scroll th:last-child {
  border-radius: 0 15px 0 0;
}

.rich-table-scroll tbody tr:nth-child(even) td {
  background: rgba(183, 228, 199, 0.11);
}

.rich-table-scroll .align-center {
  text-align: center;
}

.rich-table-scroll .align-right {
  text-align: right;
}

.rich-table-scroll a {
  font-weight: 600;
}

@media (max-width: 780px) {
  .editorial-gallery {
    padding: 4px 0 52px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .editorial-gallery .gallery-card,
  .editorial-gallery .gallery-card.gallery-wide,
  .editorial-gallery .gallery-card:nth-child(3),
  .editorial-gallery .gallery-card:nth-child(4) {
    min-height: clamp(155px, 36vw, 210px);
  }

  .reader-layout {
    margin-top: 36px;
    gap: 34px;
  }

  .reader-meta-strip {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .reader-meta-groups {
    gap: 26px;
  }
}

@media (max-width: 560px) {
  .markdown-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .markdown-toolbar button {
    width: 100%;
    min-height: 36px;
  }

  .editorial-gallery .gallery-card div {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .editorial-gallery .gallery-card div strong {
    font-size: 16px;
  }

  .reader-meta-strip {
    padding: 16px 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .reader-meta-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .reader-sources ul {
    gap: 7px 14px;
  }

  .reader-meta-strip .reader-share,
  .reader-meta-strip .reader-share button {
    width: 100%;
  }

  .rich-table-scroll {
    margin: 30px 0 34px;
    border-radius: 13px;
  }

  .rich-table-scroll th,
  .rich-table-scroll td {
    min-width: 128px;
    padding: 12px 13px;
  }
}

/* v4 must win over the legacy compatibility layer above. */
.article-library > .featured-slot {
  display: block !important;
}

.article-library > .featured-slot.hidden {
  display: none !important;
}

.reader-content-layout > .reader-copy {
  width: 100%;
  margin: 0;
}

.reader-content-layout > .reader-card-fallback {
  margin-top: 0;
  border: 0;
  color: var(--paper);
  background: var(--green-dark);
}

/* Keep editorial artwork at its authored ratio instead of cropping its edges. */
.featured-image img,
.article-list-cover img,
.reader-cover img {
  object-fit: contain;
}

.featured-article:hover .featured-image img,
.article-list-row:hover .article-list-cover img {
  transform: none;
}

@media (min-width: 781px) {
  .featured-article {
    height: auto;
    min-height: 460px;
  }

  .featured-image {
    min-height: 460px;
  }

  .featured-content {
    min-height: 460px;
    padding: 32px 34px;
  }

  .featured-content h3 {
    margin: 16px 0 12px;
    font-size: clamp(34px, 3vw, 40px);
  }

  .featured-content > div > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .featured-question {
    padding-top: 16px;
  }

  .featured-content .article-open-row {
    margin-top: 16px;
  }
}

.reader-cover {
  width: min(1120px, 100%);
  height: min(620px, 55vw);
  min-height: 360px;
  background: #ede8dc;
}

/* Compact article embed: the full Vote Yard card must fit a narrow reading rail. */
.reader-debate-rail .reader-vote-heading h2 {
  font-size: clamp(24px, 2.1vw, 29px);
  line-height: 1.08;
}

.reader-debate-rail .shared-vote-card .card-image {
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #ede8dc;
}

.reader-debate-rail .shared-vote-card .card-body {
  padding: 20px;
}

.reader-debate-rail .shared-vote-card h3 {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.reader-debate-rail .shared-vote-card .context {
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.5;
}

.reader-debate-rail .shared-vote-card .binary-row,
.reader-debate-rail .shared-vote-card .debate-sides {
  margin-top: 20px;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.reader-debate-rail .shared-vote-card .binary-option {
  min-height: 76px;
  padding: 14px;
}

.reader-debate-rail .shared-vote-card .binary-option strong {
  font-size: 16px;
}

@media (min-width: 781px) {
  .reader-debate-rail {
    max-height: calc(100vh - 124px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 243, 234, 0.42) rgba(247, 243, 234, 0.08);
  }

  .reader-debate-rail::-webkit-scrollbar {
    width: 8px;
  }

  .reader-debate-rail::-webkit-scrollbar-track {
    background: rgba(247, 243, 234, 0.08);
  }

  .reader-debate-rail::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(247, 243, 234, 0.42);
    background-clip: padding-box;
  }
}

@media (max-width: 900px) {
  .reader-cover {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 780px) {
  .featured-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .reader-header h1 {
    font-size: clamp(34px, 9.5vw, 44px);
    line-height: 1.04;
  }

  .reader-debate-rail {
    max-height: none;
    overflow: visible;
    scrollbar-gutter: auto;
  }
}

@media (max-width: 560px) {
  .reader-debate-rail .reader-vote-heading h2 {
    font-size: 25px;
  }

  .reader-debate-rail .shared-vote-card h3 {
    font-size: 23px;
  }
}
