:root {
  --bg: #f3f5f7;
  --paper: #ffffff;
  --ink: #171b21;
  --muted: #535b65;
  --line: rgba(23, 27, 33, 0.14);
  --accent: #d71920;
  --panel: #f0f2f4;
}

.managed-featured-posts,
#managedLatestPosts {
  display: contents;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  text-underline-offset: 0.18em;
}

.article-link {
  color: inherit;
  text-decoration: none;
}

.article-link:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 28px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar.is-compact {
  padding-top: 6px;
  padding-bottom: 6px;
}

.topbar.is-compact .brand-logo {
  width: clamp(150px, 16vw, 190px);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: clamp(220px, 22vw, 270px);
  height: auto;
  object-fit: contain;
}

.eyebrow,
.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.section-heading h3,
.story-copy h2,
.story-tile h3,
.news-item h4,
.info-block h4,
.admin-header h2,
.editor-dashboard h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.76;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  opacity: 1;
}

.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.section-menu {
  display: block;
  flex: 1;
}

.section-menu > summary {
  display: none;
}

.ghost-button,
.primary-button,
.secondary-button,
.close-button,
.admin-panel button {
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ghost-button,
.close-button {
  background: rgba(23, 22, 19, 0.03);
  border-color: var(--line);
  color: var(--ink);
}

.ghost-button {
  padding: 10px 18px;
}

.ghost-button.small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.primary-button,
.secondary-button {
  padding: 12px 22px;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 22px rgba(215, 25, 32, 0.22);
}

.secondary-button {
  background: var(--accent);
  color: white;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover,
.close-button:hover,
.admin-panel button:hover {
  transform: translateY(-1px);
}

.content {
  padding-top: 28px;
}

.lead-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  padding: 24px 0 12px;
  align-items: center;
}

.story-copy {
  display: block;
  padding: 8px 4px 8px 0;
}

.story-copy h2 {
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  max-width: 620px;
  margin-top: 8px;
}

.dek {
  max-width: 620px;
  margin: 18px 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
}

.story-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.story-visual {
  display: block;
  position: relative;
  min-height: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, #b9c0c8 0%, #626f7d 35%, #171b21 100%);
  box-shadow: 0 24px 50px rgba(19, 24, 30, 0.14);
}

.sun-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.82), rgba(215, 25, 32, 0.12) 60%, transparent 72%);
  top: 36px;
  right: 42px;
}

.skyline {
  position: absolute;
  inset: auto 0 0 0;
}

.skyline-back {
  height: 220px;
  bottom: 76px;
  background:
    linear-gradient(180deg, rgba(41, 53, 60, 0.26), rgba(19, 22, 25, 0.7)),
    linear-gradient(90deg,
      rgba(78, 87, 94, 0.8) 0 6%,
      transparent 6% 10%,
      rgba(83, 92, 98, 0.85) 10% 16%,
      transparent 16% 20%,
      rgba(62, 70, 76, 0.8) 20% 26%,
      transparent 26% 30%,
      rgba(83, 92, 98, 0.85) 30% 38%,
      transparent 38% 43%,
      rgba(61, 71, 82, 0.8) 43% 53%,
      transparent 53% 60%,
      rgba(91, 102, 105, 0.8) 60% 74%,
      transparent 74% 100%);
  opacity: 0.75;
}

.skyline-front {
  height: 170px;
  bottom: 0;
  background:
    linear-gradient(180deg, rgba(27, 31, 34, 0.2), rgba(12, 18, 23, 0.95)),
    linear-gradient(90deg,
      rgba(16, 28, 38, 0.96) 0 10%,
      transparent 10% 12%,
      rgba(25, 35, 41, 0.95) 12% 22%,
      transparent 22% 26%,
      rgba(17, 30, 38, 0.96) 26% 36%,
      transparent 36% 39%,
      rgba(24, 35, 43, 0.96) 39% 54%,
      transparent 54% 58%,
      rgba(18, 31, 41, 0.94) 58% 75%,
      transparent 75% 80%,
      rgba(13, 23, 29, 0.97) 80% 100%);
}

.feature-badge {
  position: absolute;
  left: 26px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 22, 19, 0.14);
  color: var(--ink);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 12px 28px rgba(17, 19, 20, 0.12);
}

.feature-badge span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.feature-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.top-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 26px 0 10px;
}

.story-tile {
  display: block;
  padding: 22px 20px 18px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.03);
}

.story-tile-featured {
  background: linear-gradient(180deg, rgba(215, 25, 32, 0.07), rgba(255, 255, 255, 0.76));
}

.story-tile:hover h3,
.news-item:hover h4,
.story-copy:hover h2,
.info-focus a:hover {
  color: var(--accent);
}

.story-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.story-tile h3 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.06;
  margin-bottom: 10px;
}

.story-tile p,
.news-item p,
.info-block p,
.item-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.main-column-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 24px;
  margin-top: 26px;
}

.latest-news,
.info-block {
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.04);
}

.latest-news {
  padding: 22px 24px 6px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-heading h3 {
  font-size: clamp(1.7rem, 2vw, 2.3rem);
}

.news-item {
  display: grid;
  grid-template-columns: 1.4fr 0.72fr;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.news-item:hover {
  background: rgba(23, 27, 33, 0.025);
}

.news-item:first-of-type {
  border-top: none;
}

.news-item h4 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.16;
  margin-bottom: 8px;
}

.item-visual {
  min-height: 140px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
}

.managed-post-featured {
  border-color: rgba(215, 25, 32, 0.2);
}

.item-visual-a {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, #d5c4a9, #597780 60%, #1d2631);
}

.item-visual-b {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.32)),
    linear-gradient(135deg, #e8d1b4, #b38167 35%, #412f2c 100%);
}

.item-visual-c {
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.08), rgba(0, 0, 0, 0.26)),
    linear-gradient(135deg, #c9d4d0, #70858c 40%, #1f2b31 100%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.category-view {
  padding: 28px 0 52px;
}

.category-view[hidden] {
  display: none;
}

.newsletter-view {
  padding: 28px 0 52px;
}

.newsletter-view[hidden] {
  display: none;
}

.about-view {
  padding: 28px 0 56px;
}

.about-view[hidden] {
  display: none;
}

.about-back-link {
  display: inline-block;
  margin-bottom: 30px;
}

.about-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.about-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.about-heading > p:last-child {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-value-card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.about-value-card .category-eyebrow {
  margin: 0 0 12px;
}

.about-value-card h2 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.about-value-card > p:last-child {
  max-width: 56ch;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-authors {
  margin-top: 54px;
}

.about-authors-heading {
  margin-bottom: 24px;
}

.about-authors-heading .category-eyebrow {
  margin: 0 0 8px;
}

.about-authors-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.about-authors-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.author-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.author-profile-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.author-profile-avatar {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.author-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-details {
  min-width: 0;
}

.author-profile-details .category-eyebrow {
  margin: 0 0 5px;
  font-size: 0.72rem;
}

.author-profile-details h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.author-profile-bio {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.author-profile-email {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.newsletter-back-link {
  display: inline-block;
  margin-bottom: 30px;
}

.newsletter-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.newsletter-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5.8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.newsletter-heading > p:last-child {
  max-width: 58ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
}

.newsletter-signup,
.newsletter-reading {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(20, 20, 20, 0.045);
}

.newsletter-signup {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(215, 25, 32, 0.2), transparent 38%),
    linear-gradient(150deg, #20252c, #171b21 72%);
  color: #ffffff;
}

.newsletter-mark {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.newsletter-signup h2,
.newsletter-reading h2 {
  margin: 20px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.08;
}

.newsletter-signup > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.newsletter-signup form {
  margin-top: 28px;
}

.newsletter-signup label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.newsletter-email-row {
  display: grid;
  gap: 10px;
}

.newsletter-email-row input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
}

.newsletter-email-row input:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.newsletter-email-row .primary-button {
  min-height: 46px;
}

.newsletter-privacy {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.newsletter-thank-you {
  display: flex;
  min-height: 62px;
  align-items: center;
  margin: 28px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 3px solid #ef454b;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.5;
}

.newsletter-reading {
  background: rgba(255, 255, 255, 0.58);
}

.newsletter-reading-heading .category-eyebrow {
  margin: 0;
}

.newsletter-reading h2 {
  margin: 8px 0 20px;
}

.newsletter-story-list {
  display: grid;
}

.newsletter-story {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.newsletter-story:first-child {
  border-top: 0;
  padding-top: 0;
}

.newsletter-story-number {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.newsletter-story-content {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.newsletter-story .story-tag {
  margin: 0;
  font-size: 0.66rem;
}

.newsletter-story-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.22;
  transition: color 0.2s ease;
}

.newsletter-story-dek {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.newsletter-story:hover .newsletter-story-title,
.newsletter-story:focus-visible .newsletter-story-title {
  color: var(--accent);
}

.newsletter-story:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.category-back-link {
  display: inline-block;
  margin-bottom: 28px;
}

.category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.category-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.category-description {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.category-count {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
}

.category-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(27, 27, 27, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(27, 27, 27, 0.08);
}

.category-story:hover h2 {
  color: var(--accent);
}

.category-story-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px;
  padding: 30px;
}

.category-story h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.category-story-featured h2 {
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

.category-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.category-read-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
}

.category-story-art {
  display: block;
  min-height: 150px;
  border-radius: 16px;
  background-position: center;
  background-size: cover;
}

.category-story-art.has-photo {
  background-repeat: no-repeat;
}

.category-story-featured .category-story-art {
  min-height: 245px;
}

.category-art-0 {
  background:
    radial-gradient(circle at 72% 25%, rgba(232, 179, 120, 0.9), transparent 25%),
    linear-gradient(145deg, #c9d1d2, #697987 52%, #252d35);
}

.category-art-1 {
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(23, 27, 33, 0.28)),
    linear-gradient(145deg, #e6d5bd, #a67d67 48%, #3b4145);
}

.category-art-2 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(23, 27, 33, 0.42)),
    linear-gradient(145deg, #d0d6ca, #778889 48%, #26333b);
}

.category-art-3 {
  background:
    radial-gradient(circle at 30% 65%, rgba(215, 25, 32, 0.52), transparent 28%),
    linear-gradient(145deg, #d4d0c8, #737b80 52%, #252a30);
}

.info-block {
  padding: 22px 20px;
}

.info-focus ol {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 18px;
}

.info-focus li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.info-focus li > a {
  color: inherit;
  text-decoration: none;
}

.info-focus span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(215, 25, 32, 0.08);
  color: var(--accent);
  font-size: 0.8rem;
}

.article-view {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 28px 64px;
}

.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--accent);
}

.article-content {
  width: min(820px, 100%);
  margin: 48px auto 0;
}

.article-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.article-dek {
  max-width: 68ch;
  margin: 20px 0 18px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.article-meta span:first-child {
  color: var(--accent);
  font-weight: 700;
}

.article-image {
  min-height: 340px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(23, 27, 33, 0.08), rgba(23, 27, 33, 0.56)),
    linear-gradient(135deg, #c2c9d0, #6b7784 52%, #171b21);
  background-position: center;
  background-size: cover;
}

.article-image.item-visual-a {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, #d5c4a9, #597780 60%, #1d2631);
}

.article-image.item-visual-b {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.32)),
    linear-gradient(135deg, #e8d1b4, #b38167 35%, #412f2c 100%);
}

.article-image.item-visual-c {
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.08), rgba(0, 0, 0, 0.26)),
    linear-gradient(135deg, #c9d4d0, #70858c 40%, #1f2b31);
}

.article-gallery {
  position: relative;
  aspect-ratio: 1.48;
  min-height: 360px;
  max-height: 620px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 18px 36px rgba(23, 27, 33, 0.16);
}

.article-gallery-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-gallery-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 34%, rgba(12, 21, 28, 0.22) 53%, rgba(5, 20, 25, 0.94) 100%);
}

.article-gallery-caption {
  position: absolute;
  right: 7%;
  bottom: 112px;
  left: 7%;
  color: #fff;
}

.article-gallery-label-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.article-gallery-category {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 6px 15px;
  border-radius: 999px;
  background: #168fff;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.article-gallery-label-rule {
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
}

.article-gallery-caption p {
  max-width: 28ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

.article-gallery-controls button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(8, 24, 31, 0.55);
  color: #fff;
  transform: translateY(-50%);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.article-gallery-controls button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.article-gallery-controls button:hover,
.article-gallery-controls button:focus-visible {
  border-color: #fff;
  background: rgba(8, 24, 31, 0.82);
}

#previousArticleImage {
  left: 18px;
}

#nextArticleImage {
  right: 18px;
}

.article-gallery-pagination {
  position: absolute;
  right: 18px;
  bottom: 30px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
}

.article-gallery-indicators {
  display: flex;
  align-items: center;
  gap: 9px;
}

.article-gallery-indicator {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.article-gallery-indicator[aria-current="true"] {
  background: #168fff;
  transform: scale(1.2);
}

.article-gallery-indicator:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.article-body {
  max-width: 68ch;
  margin: 30px auto 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 1.2em;
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 68ch;
  margin: 42px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.article-author-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
}

.article-author-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author-details {
  min-width: 0;
}

.article-author-eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-author-details h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.article-author-bio {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.article-author-email {
  display: inline-block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.related-stories {
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.related-stories-heading {
  margin-bottom: 18px;
}

.related-stories-heading .category-eyebrow {
  margin-bottom: 8px;
}

.related-stories-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1;
}

.related-stories-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-story {
  display: block;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 27, 27, 0.08);
}

.related-story h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.related-story:hover h3 {
  color: var(--accent);
}

.related-story .story-tag {
  margin-bottom: 10px;
}

.related-story .category-read-link {
  margin-top: 14px;
}

.site-footer {
  margin-top: 24px;
  padding: 48px max(28px, calc((100% - 1224px) / 2)) 18px;
  background: #171b21;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, 0.55fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: 48px;
  max-width: 1224px;
  margin: 0 auto;
  padding-bottom: 36px;
}

.footer-logo {
  display: inline-block;
  max-width: 260px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-brand > p,
.footer-note > p:not(.footer-kicker) {
  max-width: 30ch;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.footer-navigation {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 11px;
}

.footer-navigation h2 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.footer-navigation a,
.footer-top-link {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible,
.footer-top-link:hover,
.footer-top-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.footer-kicker {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.25;
}

.footer-top-link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
}

.footer-bottom {
  max-width: 1224px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
}

.article-view[hidden],
.content[hidden] {
  display: none;
}

.info-promo {
  background: linear-gradient(160deg, #171b21, #2a3038);
  color: white;
}

.info-promo .section-tag,
.info-promo p {
  color: rgba(255, 255, 255, 0.72);
}

.info-promo h4 {
  font-size: 2rem;
  margin: 10px 0 8px;
}

.info-promo .secondary-button {
  margin-top: 18px;
}

.admin-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: start center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(11, 12, 14, 0.62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 30;
}

.admin-shell.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.admin-shell.login-mode {
  place-items: center;
}

.admin-panel {
  position: relative;
  width: min(1280px, calc(100vw - 48px));
  min-width: 0;
  min-height: calc(100vh - 48px);
  background: var(--paper);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.24);
  padding: 26px 34px 34px;
}

.admin-panel.login-mode {
  width: min(520px, calc(100vw - 48px));
  min-height: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.ws-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-header h2 {
  font-size: 1.65rem;
}

.muted {
  color: var(--muted);
}

.close-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}

.login-form {
  display: grid;
  gap: 16px;
  padding: 20px 0 10px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}

.login-form input {
  border: 1px solid var(--line);
  background: rgba(23, 22, 19, 0.02);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 1rem;
}

.full-width {
  width: 100%;
}

.editor-dashboard {
  padding-top: 28px;
}

.hidden {
  display: none !important;
}

.ws-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.ws-welcome h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.ws-welcome > div > p:last-child,
.ws-view-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ws-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.ws-user-avatar-fallback,
.ws-user-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.ws-user-avatar {
  object-fit: cover;
}

.ws-user-details {
  display: grid;
  gap: 3px;
  width: auto;
  height: auto;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.ws-user-details > span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.ws-user-role {
  color: var(--muted);
  font-size: 0.78rem;
}

.ws-navigation {
  display: flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.admin-panel .ws-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.admin-panel .ws-navigation button[aria-current="page"] {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(23, 27, 33, 0.06);
}

.ws-navigation button span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.ws-view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ws-view-heading h3 {
  margin-bottom: 5px;
  font-size: 1.65rem;
}

.admin-panel .ws-view-heading > button {
  flex: 0 0 auto;
}

.ws-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.ws-table {
  min-width: 760px;
}

.ws-table th,
.ws-table td {
  padding: 17px 14px;
}

.ws-table td {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ws-table td strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 650;
}

.status-select {
  max-width: 154px;
  padding: 7px 28px 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  appearance: none;
  background-color: var(--panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23535b65' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.status-select.published {
  background-color: rgba(33, 129, 86, 0.1);
  color: #1c734f;
}

.status-select.review {
  background-color: rgba(197, 115, 35, 0.1);
  color: #a45c1c;
}

.status-select.draft {
  background-color: rgba(79, 87, 106, 0.1);
  color: #495a6e;
}

.status-select:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.2);
}

.ws-table tbody tr:hover {
  background: rgba(23, 27, 33, 0.025);
}

.section-reorder-hint {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.ws-table tr[data-section-row] {
  transition: background 0.15s ease, opacity 0.15s ease;
  cursor: grab;
}

.ws-table tr[data-section-row]:active {
  cursor: grabbing;
}

.ws-table tr[data-section-row]:hover {
  background: rgba(23, 27, 33, 0.035);
}

.ws-table tr.is-dragging {
  opacity: 0.4;
  background: var(--panel);
}

.section-order-cell {
  white-space: nowrap;
}

.section-drag-handle {
  display: inline-block;
  margin-right: 10px;
  color: #858c94;
  font-size: 1.2rem;
  vertical-align: middle;
  cursor: grab;
}

.section-position {
  display: inline-block;
  min-width: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.section-move-button {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

.section-move-button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.section-move-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats-row > div {
  background: var(--panel);
  border-radius: 14px;
  padding: 16px 14px;
  border: 1px solid var(--line);
}

.stats-row span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-row strong {
  font-size: 2rem;
  line-height: 1;
}

.post-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) repeat(2, minmax(130px, 0.8fr)) repeat(3, minmax(130px, 0.9fr)) auto;
  align-items: end;
  gap: 12px;
  margin: 22px 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.post-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.post-filters input,
.post-filters select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
}

.post-filters input:focus,
.post-filters select:focus {
  outline: 3px solid rgba(215, 25, 32, 0.15);
  border-color: var(--accent);
}

.admin-panel .post-filters > button {
  min-height: 42px;
  white-space: nowrap;
}

.post-filter-summary {
  min-height: 1.4em;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-filter-summary.filter-error {
  color: var(--accent);
  font-weight: 600;
}

.post-filter-empty {
  padding: 26px 14px;
  text-align: center;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

th,
td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status.published {
  background: rgba(33, 129, 86, 0.1);
  color: #1c734f;
}

.status.review {
  background: rgba(197, 115, 35, 0.1);
  color: #a45c1c;
}

.status.validation {
  background: rgba(197, 115, 35, 0.1);
  color: #a45c1c;
}

.status.draft {
  background: rgba(79, 87, 106, 0.1);
  color: #495a6e;
}

.admin-panel button.danger {
  color: var(--accent);
  background: rgba(215, 25, 32, 0.05);
  border-color: rgba(215, 25, 32, 0.12);
}

.admin-panel tbody button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
}

.post-editor {
  padding-top: 6px;
}

.section-editor {
  padding-top: 6px;
}

.section-editor .post-form-grid {
  max-width: 860px;
}

.section-editor .post-form-actions {
  max-width: 860px;
}

.user-editor {
  padding-top: 6px;
}

.user-editor form {
  max-width: 860px;
}

.about-settings-form {
  max-width: 860px;
}

.about-settings-form .post-form-grid {
  gap: 20px 24px;
}

.about-settings-form .post-form-actions {
  margin-top: 24px;
}

.profile-photo-field {
  gap: 12px;
}

.profile-photo-control {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo-preview,
.profile-photo-placeholder {
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  object-fit: cover;
}

.profile-photo-placeholder {
  font-size: 1.15rem;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-photo-control:focus-within .ghost-button,
.profile-photo-control input:focus-visible + label {
  outline: 3px solid rgba(215, 25, 32, 0.2);
}

.user-invite-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.user-invite-status {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.user-invite-status:empty {
  display: none;
}

.field-optional {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 400;
}

.post-editor-heading {
  align-items: flex-start;
  margin-bottom: 26px;
}

.post-editor-heading h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.post-editor-heading .ws-kicker {
  margin-bottom: 8px;
}

.post-editor-heading .ghost-button {
  flex: 0 0 auto;
}

.post-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.post-field {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.post-field-wide {
  grid-column: 1 / -1;
}

.post-field input,
.post-field select,
.post-field textarea,
.post-photo-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 12px 14px;
  font: inherit;
  font-weight: 400;
}

.post-field textarea {
  resize: vertical;
  line-height: 1.55;
}

.post-field input:focus,
.post-field select:focus,
.post-field textarea:focus,
.post-photo-fields input:focus {
  outline: 3px solid rgba(215, 25, 32, 0.15);
  border-color: var(--accent);
}

.post-input-suffix {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
}

.post-input-suffix input {
  max-width: 120px;
}

.field-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
}

.post-featured-field {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.post-featured-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.post-photos {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.post-photos-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.post-photos-heading h4 {
  margin: 0 0 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.post-photos-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.photo-upload-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  cursor: pointer;
}

.post-photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.post-photo-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.post-photo-card > img {
  width: 100%;
  height: 132px;
  border-radius: 9px;
  background: white;
  object-fit: cover;
}

.post-photo-fields {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.post-photo-fields label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.post-photo-fields input {
  padding: 9px 10px;
  font-size: 0.84rem;
}

.photo-remove-button {
  justify-self: start;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 3px 0;
}

.photo-remove-button:hover {
  text-decoration: underline;
}

.post-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.post-form-actions .post-form-feedback {
  flex: 1;
  color: var(--muted);
  font-size: 0.84rem;
}

.danger-button {
  border: 1px solid rgba(215, 25, 32, 0.2);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(215, 25, 32, 0.07);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-button:hover {
  background: rgba(215, 25, 32, 0.13);
}

.confirm-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.confirm-dialog::backdrop {
  background: rgba(11, 12, 14, 0.58);
  backdrop-filter: blur(3px);
}

.confirm-dialog h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.confirm-dialog p:not(.ws-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 980px) {
  .lead-story,
  .main-column-layout,
  .top-stories {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 24px;
  }

  .ws-welcome {
    align-items: flex-start;
  }

  .post-photo-list {
    grid-template-columns: 1fr;
  }

  .post-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-filter-search {
    grid-column: 1 / -1;
  }

  .admin-panel .post-filters > button {
    grid-column: 1 / -1;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-group {
    width: 100%;
    justify-content: center;
  }

  .brand-logo {
    width: min(270px, 72vw);
  }

  .topbar.is-compact .brand-logo {
    width: min(190px, 52vw);
  }

  .main-nav {
    width: 100%;
  }

  .section-menu {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.7fr);
    gap: 36px;
  }

  .footer-note {
    grid-column: 1 / -1;
  }

  .newsletter-layout {
    grid-template-columns: 1fr;
  }

  .author-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0 8px;
  }

  .topbar.is-compact {
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .brand-group {
    width: auto;
    justify-content: flex-start;
  }

  .brand-logo {
    width: min(160px, 46vw);
  }

  .topbar.is-compact .brand-logo {
    width: min(120px, 36vw);
  }

  .section-menu {
    position: relative;
    display: block;
    width: auto;
    flex: 0 0 auto;
  }

  .section-menu > summary {
    position: relative;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0;
    list-style: none;
    cursor: pointer;
  }

  .section-menu > summary::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -7px currentColor, 0 7px currentColor;
    content: "";
    transform: translate(-50%, -50%);
  }

  .section-menu:not([open]) .main-nav {
    display: none;
  }

  .section-menu > summary::-webkit-details-marker {
    display: none;
  }

  .section-menu .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 6;
    display: flex;
    width: max-content;
    min-width: 170px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(23, 27, 33, 0.14);
  }

  .section-menu .main-nav a {
    padding: 10px 12px;
  }

  .admin-shell {
    padding: 10px;
  }

  .admin-panel {
    width: 100%;
    min-height: calc(100vh - 20px);
    padding: 20px 16px;
    border-radius: 16px;
  }

  .admin-header-brand {
    gap: 12px;
  }

  .admin-brand-logo {
    width: 92px;
  }

  .admin-header h2 {
    font-size: 1.2rem;
  }

  .admin-header .close-button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .ws-welcome {
    flex-direction: column;
    gap: 16px;
  }

  .ws-user-chip {
    gap: 12px;
  }

  .ws-user-avatar-fallback,
  .ws-user-avatar {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .ws-navigation {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
  }

  .admin-panel .ws-navigation button {
    justify-content: space-between;
    width: 100%;
  }

  .ws-view-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .post-form-grid {
    grid-template-columns: 1fr;
  }

  .post-filters {
    grid-template-columns: 1fr;
  }

  .post-filter-search,
  .admin-panel .post-filters > button {
    grid-column: auto;
  }

  .post-field-wide {
    grid-column: auto;
  }

  .post-photos-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-photo-card {
    grid-template-columns: 1fr;
  }

  .post-photo-card > img {
    height: 190px;
  }

  .post-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .post-form-actions .post-form-feedback {
    order: 2;
  }

  .post-form-actions button {
    width: 100%;
  }

  .story-copy h2 {
    font-size: 2.5rem;
  }

  .news-item {
    grid-template-columns: 1fr;
  }

  .category-view {
    padding-top: 20px;
  }

  .newsletter-view {
    padding-top: 20px;
  }

  .about-view {
    padding-top: 20px;
  }

  .about-values,
  .author-card-grid {
    grid-template-columns: 1fr;
  }

  .about-authors {
    margin-top: 38px;
  }

  .author-profile-card {
    padding: 18px;
  }

  .newsletter-back-link {
    margin-bottom: 22px;
  }

  .newsletter-heading {
    margin-bottom: 22px;
  }

  .newsletter-story-title {
    font-size: 1.1rem;
  }

  .category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .category-stories {
    grid-template-columns: 1fr;
  }

  .category-story,
  .category-story-featured {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .category-story-featured .category-story-art {
    min-height: 190px;
    order: -1;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .article-view {
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-content {
    margin-top: 30px;
  }

  .article-author-card {
    align-items: flex-start;
    gap: 14px;
    margin-top: 32px;
    padding: 18px;
  }

  .article-author-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    font-size: 1rem;
  }

  .article-author-details h2 {
    font-size: 1.25rem;
  }

  .article-image {
    min-height: 230px;
  }

  .article-gallery {
    width: 100%;
    aspect-ratio: 0.92;
    min-height: 0;
    border-radius: 20px;
  }

  .article-gallery-caption {
    right: 7%;
    bottom: 80px;
  }

  .article-gallery-label-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .article-gallery-category {
    min-height: 30px;
    padding: 5px 12px;
    font-size: 0.78rem;
  }

  .article-gallery-caption p {
    max-width: 25ch;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .article-gallery-controls button {
    top: 50%;
    width: 46px;
    height: 46px;
  }

  .article-gallery-controls button svg {
    width: 28px;
    height: 28px;
  }

  #previousArticleImage {
    left: 12px;
  }

  #nextArticleImage {
    right: 12px;
  }

  .article-gallery-pagination {
    bottom: 22px;
    gap: 14px;
  }

  .related-stories-list {
    grid-template-columns: 1fr;
  }

  .related-story {
    min-height: auto;
  }

  .site-footer {
    margin-top: 12px;
    padding: 36px 16px 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }

  .footer-note {
    grid-column: auto;
  }
}
