:root {
  --canvas: #CDCDCD;
  --surface: #CDCDCD;
  --surface-soft: #CDCDCD;
  --ink: #14171f;
  --ink-soft: #2f3745;
  --muted: #697386;
  --line: #d5e2ec;
  --line-strong: #bacbd8;
  --red: #8b2e3a;
  --red-dark: #64212a;
  --teal: #087a78;
  --amber: #f0a51d;
  --olive: #5f7a35;
  --nav-start: #8b2e3a;
  --nav-end: #5e1f28;
  --content-width: min(1680px, calc(100% - clamp(40px, 5.8vw, 112px)));
  --admin-bg: #eef1f5;
  --admin-ink: #1f2530;
  --admin-line: #dce2ea;
  --shadow: 0 24px 72px rgba(31, 49, 68, 0.14);
  --shadow-soft: 0 12px 34px rgba(31, 49, 68, 0.09);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

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

button,
a,
input,
textarea,
select {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.site-header {
  position: relative;
  border-bottom: 1px solid rgba(20, 23, 31, 0.08);
  background: var(--red);
  backdrop-filter: blur(18px);
}

.top-strip,
.brand-row,
.main-nav,
main,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.top-strip {
  position: absolute;
  top: 36px;
  right: clamp(20px, 2.9vw, 56px);
  z-index: 3;
  width: auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  border-top: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.top-strip nav,
.main-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-strip a,
.site-footer a {
  color: var(--muted);
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(205, 205, 205, 0.8);
  color: var(--ink-soft);
}

.social-links a:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #CDCDCD;
}

.top-strip a:hover,
.site-footer a:hover,
.main-nav a:hover {
  color: var(--red);
}

.brand-row {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px 0 24px;
}

.brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand {
  min-width: min(440px, 100%);
}

.brand-logo {
  width: clamp(280px, 25vw, 430px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.admin-brand-logo {
  width: 148px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(205, 205, 205, 0.16);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  font-weight: 650;
}

.search-box {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.search-box:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(183, 52, 44, 0.12);
}

.search-box label,
.newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-box input,
.search-box button {
  min-width: 0;
  min-height: 50px;
  border: 0;
  background: transparent;
}

.search-box input {
  padding: 0 16px;
  color: var(--ink);
  font-weight: 650;
}

.search-box button {
  padding: 0 19px;
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

.search-box button:hover {
  background: var(--red);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  border-top: 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, var(--nav-start), var(--nav-end));
  box-shadow:
    0 0 0 100vmax var(--nav-end),
    0 12px 30px rgba(18, 50, 74, 0.16);
  clip-path: inset(0 -100vmax);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.main-menu-panel {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.main-nav a,
.category-menu-toggle,
.mobile-menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  border: 0;
  padding: 0 13px;
  background: transparent;
  color: rgba(205, 205, 205, 0.88);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.mobile-menu-toggle {
  display: none;
}

.hamburger-lines {
  display: inline-flex;
  width: 19px;
  flex-direction: column;
  gap: 4px;
}

.hamburger-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.mobile-menu-toggle.is-open .hamburger-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open .hamburger-lines span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .hamburger-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-category-links {
  display: inline-flex;
  align-items: stretch;
}

.category-menu-toggle {
  display: none;
}

.main-nav a::after,
.category-menu-toggle::after,
.mobile-menu-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
}

.main-nav a.is-active::after,
.main-nav a:hover::after,
.mobile-menu-toggle.is-open::after,
.mobile-menu-toggle:hover::after,
.category-menu-toggle.is-open::after,
.category-menu-toggle:hover::after {
  background: var(--amber);
}

.main-nav a.is-active,
.main-nav a:hover,
.mobile-menu-toggle.is-open,
.mobile-menu-toggle:hover,
.category-menu-toggle.is-open,
.category-menu-toggle:hover {
  background: rgba(205, 205, 205, 0.12);
  color: #CDCDCD;
}

main {
  padding: 46px 0 72px;
}

.view,
.admin-view {
  display: none;
}

.view.is-active,
.admin-view.is-active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: stretch;
}

.lead-story {
  position: relative;
  height: clamp(520px, 41vw, 620px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lead-slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.lead-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.image-link,
.image-link img,
.lead-slide > .image-link {
  height: 100%;
}

.lead-story img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.03);
}

.lead-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(28px, 3vw, 46px) clamp(30px, 3.2vw, 52px) 76px;
}

.lead-copy::before {
  content: "Öne çıkan";
  width: max-content;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-copy h1,
.article-hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.lead-copy h1 {
  max-width: 13ch;
  font-size: clamp(37px, 3vw, 56px);
  line-height: 1.04;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.lead-copy h1.is-long-title {
  max-width: 18ch;
  font-size: clamp(27px, 1.72vw, 34px);
  line-height: 1.12;
}

.lead-copy h1 a:hover,
.article-row h2 a:hover,
.article-row h3 a:hover,
.headline-stack h2 a:hover {
  color: var(--red);
}

.lead-copy p,
.page-hero p,
.article-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.lead-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.slider-controls {
  position: absolute;
  right: clamp(18px, 2.4vw, 34px);
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid rgba(205, 205, 205, 0.2);
  border-radius: 999px;
  background: rgba(20, 23, 31, 0.86);
  box-shadow: 0 12px 28px rgba(20, 23, 31, 0.18);
}

.slider-arrow {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(205, 205, 205, 0.1);
  color: #CDCDCD;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.slider-arrow:hover {
  background: var(--red);
}

.slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: rgba(205, 205, 205, 0.36);
  cursor: pointer;
}

.slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--amber);
}

.tag {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--red);
  color: var(--surface);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.teal {
  background: var(--teal);
}

.tag.amber {
  background: var(--amber);
  color: var(--ink);
}

.byline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.byline img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.byline.large img {
  width: 52px;
  height: 52px;
}

.byline-avatars {
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
}

.byline-avatars img + img {
  margin-left: -16px;
}

.headline-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  height: clamp(520px, 41vw, 620px);
}

.headline-stack.is-count-1,
.headline-stack.is-count-2 {
  align-self: start;
  height: auto;
  grid-template-rows: none;
}

.headline-stack article,
.newsletter,
.side-panel,
.profile-card,
.admin-card,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.92);
  box-shadow: var(--shadow-soft);
}

.headline-stack article {
  min-height: 0;
  overflow: hidden;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--red);
}

.headline-stack.is-count-1 article {
  min-height: 220px;
  justify-content: flex-start;
  padding: 22px 24px;
}

.headline-stack.is-count-2 article {
  min-height: 178px;
}

.headline-stack article:nth-child(2) {
  border-left-color: var(--teal);
}

.headline-stack article:nth-child(3) {
  border-left-color: var(--olive);
}

.headline-stack article:hover,
.article-row:hover,
.author-card:hover,
.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(36, 31, 24, 0.12);
}

.headline-stack h2 {
  margin: 8px 0 5px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.28;
  letter-spacing: 0;
}

.headline-stack.is-count-1 h2 {
  -webkit-line-clamp: 4;
  font-size: clamp(23px, 1.8vw, 30px);
  line-height: 1.16;
}

.headline-stack p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 14px;
  line-height: 1.45;
}

.headline-stack.is-count-1 p {
  -webkit-line-clamp: 4;
  font-size: 16px;
  line-height: 1.55;
}

.headline-stack p,
.article-row p,
.profile-card p,
.newsletter p,
.side-panel p,
.text-block p {
  color: var(--muted);
  line-height: 1.6;
}

.content-band,
.split-section,
.category-layout,
.contact-layout {
  margin-top: 52px;
}

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

.section-heading {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 14px;
}

.section-heading h2,
.admin-header h1,
.page-hero h1,
.article-hero h1 {
  margin: 0;
}

.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1;
}

.section-heading a,
.primary-link,
.profile-card a {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 28px;
  align-items: start;
}

.article-row {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.84);
  box-shadow: 0 8px 24px rgba(31, 49, 68, 0.05);
}

.article-row.is-new {
  animation: articleIn 260ms ease both;
}

@keyframes articleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

.article-row img {
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 6px;
  object-fit: contain;
  background: #11141a;
}

.article-row h2,
.article-row h3 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 2.35vw, 32px);
  line-height: 1.22;
  letter-spacing: 0;
}

.article-row p {
  margin: 0 0 12px;
}

.latest-sidebar {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 18px;
}

.sidebar-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.sidebar-block h3 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.popular-block ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.popular-block li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.popular-block li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.popular-block img {
  width: 110px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  object-fit: contain;
  background: #11141a;
}

.popular-block a {
  display: block;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.25;
}

.popular-block a:hover {
  color: var(--red);
}

.popular-block span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.category-pills {
  display: grid;
  gap: 10px;
}

.category-pills a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 0 12px;
  color: var(--ink-soft);
  font-weight: 850;
}

.category-pills a:hover {
  border-color: var(--teal);
  background: rgba(8, 122, 120, 0.08);
  color: var(--teal);
}

.category-pills span {
  min-width: 28px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nav-end);
  color: #CDCDCD;
  font-size: 12px;
}

.load-more {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: linear-gradient(90deg, var(--nav-start), var(--nav-end));
  color: #CDCDCD;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.load-more:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(18, 50, 74, 0.16);
}

.load-more.is-hidden {
  display: none;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

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

.author-card {
  min-height: 172px;
  padding: 20px;
  display: grid;
  gap: 9px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.author-card img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.author-card strong,
.profile-card h2 {
  font-size: 20px;
  line-height: 1.15;
}

.author-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.newsletter,
.side-panel {
  padding: 24px;
}

.newsletter {
  background: var(--ink);
  color: var(--surface);
}

.newsletter p {
  color: rgba(205, 205, 205, 0.72);
}

.newsletter h2,
.side-panel h2,
.admin-card h2 {
  margin: 0 0 10px;
}

.newsletter form,
.contact-form,
.admin-form {
  display: grid;
  gap: 12px;
}

.newsletter input,
.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 12px 13px;
  color: var(--ink);
}

.newsletter input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(183, 52, 44, 0.13);
}

.newsletter button,
.contact-form button,
.admin-form button,
.primary-action {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: var(--surface);
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.newsletter button:hover,
.contact-form button:hover,
.admin-form button:hover,
.primary-action:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.page-hero,
.article-hero {
  min-height: 300px;
  display: grid;
  align-content: end;
  border-bottom: 1px solid var(--line-strong);
  padding: 34px 0 30px;
}

.article-hero {
  justify-items: start;
  text-align: left;
}

.page-hero h1,
.article-hero h1 {
  font-size: clamp(38px, 4.7vw, 64px);
  line-height: 1.04;
}

.article-hero .tag {
  margin-bottom: 18px;
}

.article-hero p {
  margin-top: 18px;
  font-size: 20px;
}

.article-hero .byline {
  justify-content: flex-start;
  margin-top: 22px;
}

.byline-authors a {
  color: inherit;
  font-weight: 850;
}

.byline-authors a:hover {
  color: var(--red);
}

.category-hero,
.image-page-hero {
  min-height: 390px;
  padding: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: var(--surface);
  box-shadow: var(--shadow);
}

.category-hero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0.16)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1400&q=80")
      center/cover;
}

.authors-hero {
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.82), rgba(18, 50, 74, 0.18)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1400&q=80")
      center/cover;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(20, 23, 31, 0.82), rgba(20, 23, 31, 0.18)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1400&q=80")
      center/cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(8, 122, 120, 0.82), rgba(8, 122, 120, 0.16)),
    url("https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&w=1400&q=80")
      center/cover;
}

.category-hero h1,
.image-page-hero h1 {
  color: var(--surface);
}

.category-hero p,
.image-page-hero p {
  color: rgba(205, 205, 205, 0.84);
}

.image-page-hero .eyebrow {
  color: var(--amber);
}

.author-detail-hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(120px, 176px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.author-detail-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--panel);
}

.author-detail-copy h1 {
  margin: 6px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
  color: var(--ink);
}

.author-detail-copy p {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.side-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--surface);
}

.side-panel a {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
  color: var(--ink-soft);
  font-weight: 750;
}

.side-panel a:hover {
  color: var(--red);
}

.article-page {
  max-width: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 34px;
  align-items: start;
}

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

.article-cover {
  width: 100%;
  max-height: 560px;
  margin: 30px 0 36px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-body,
.text-block {
  max-width: 100%;
  margin: 0;
  color: #3d0000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.78;
}

.article-body a,
.text-block a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.text-block {
  color: #24211e;
}

.article-sidebar {
  top: 82px;
}

.article-newsletter {
  background: var(--ink);
  color: #CDCDCD;
}

.article-newsletter p {
  color: rgba(205, 205, 205, 0.72);
}

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

.article-newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.article-newsletter input {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
}

.article-newsletter button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #CDCDCD;
  cursor: pointer;
  font-weight: 900;
}

.share-strip,
.author-bio-card {
  max-width: 100%;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.92);
  box-shadow: var(--shadow-soft);
}

.share-strip {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}

.share-strip strong {
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.author-bio-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.author-bio-card > img {
  width: 118px;
  height: 118px;
  border-radius: 50%;
}

.author-bio-card h2 {
  margin: 6px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.author-bio-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.author-bio-card h2 a:hover,
.profile-card h2 a:hover {
  color: var(--red);
}

.author-socials {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.author-socials a {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(205, 205, 205, 0.92);
  color: var(--ink-soft);
}

.author-socials a:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #CDCDCD;
}

.author-socials.is-light a {
  border-color: rgba(205, 205, 205, 0.28);
  background: rgba(205, 205, 205, 0.12);
  color: #CDCDCD;
}

.related-section {
  margin-top: 46px;
}

.comments-section {
  max-width: 100%;
  margin-top: 46px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.comment-list {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.comment-card,
.comment-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.92);
  box-shadow: var(--shadow-soft);
}

.comment-card {
  padding: 18px;
}

.comment-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-card strong {
  color: var(--ink);
  font-weight: 950;
}

.comment-card time,
.empty-comment {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.comment-card p {
  margin: 0;
  color: #303846;
  line-height: 1.65;
}

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

.comment-form label {
  display: grid;
  gap: 8px;
  color: #424b57;
  font-size: 14px;
  font-weight: 850;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #CDCDCD;
  padding: 12px;
  color: var(--ink);
  font: inherit;
}

.comment-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #CDCDCD;
  cursor: pointer;
  font-weight: 900;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

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

.related-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(205, 205, 205, 0.92);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.related-card img {
  width: 100%;
  aspect-ratio: 1.45;
  border-radius: 8px;
}

.related-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.18;
}

.related-card h3 a:hover {
  color: var(--red);
}

.article-body p:first-child::first-letter {
  float: left;
  padding: 8px 10px 0 0;
  color: var(--red);
  font-size: 74px;
  line-height: 0.85;
}

blockquote {
  margin: 34px 0;
  border-left: 4px solid var(--red);
  padding: 6px 0 6px 22px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.35;
}

.directory-grid {
  margin-top: 30px;
}

.profile-card {
  padding: 20px;
  background: var(--surface);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 1.16;
  border-radius: 6px;
}

.profile-card h2 {
  margin: 16px 0 8px;
}

.profile-card p {
  margin: 0 0 16px;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
}

.contact-info-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.08;
}

.contact-info-card p {
  margin: 0;
}

.contact-info-card a {
  overflow-wrap: anywhere;
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-strong);
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.site-footer strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.admin-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(8, 122, 120, 0.08), rgba(216, 58, 50, 0) 40%),
    var(--canvas);
  color: var(--admin-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial,
    sans-serif;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  background: linear-gradient(180deg, var(--nav-end), #2b141a);
  color: var(--surface);
  box-shadow: 12px 0 38px rgba(18, 50, 74, 0.18);
}

.admin-brand {
  min-height: 56px;
}

.admin-brand .brand-mark {
  background: var(--red);
}

.admin-brand strong {
  display: block;
  font-size: 18px;
}

.admin-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(205, 205, 205, 0.6);
  font-size: 12px;
  font-weight: 750;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
}

.admin-menu-label {
  margin: 14px 0 4px;
  color: rgba(205, 205, 205, 0.42);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-sidebar nav a,
.back-site {
  min-height: 39px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding: 0 12px;
  color: rgba(205, 205, 205, 0.78);
  font-size: 14px;
  font-weight: 750;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.back-site:hover {
  background: rgba(205, 205, 205, 0.12);
  color: var(--surface);
}

.back-site {
  margin-top: auto;
  border: 1px solid rgba(205, 205, 205, 0.18);
}

.admin-main {
  width: min(1680px, calc(100% - 48px));
  min-width: 0;
  padding: 34px 0 70px;
}

.admin-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(205, 205, 205, 0.84);
  box-shadow: var(--shadow-soft);
  padding: 14px 18px;
}

.admin-topbar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-topbar strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.admin-top-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-top-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 13px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
}

.admin-top-actions a:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.admin-header {
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  color: var(--admin-ink);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.primary-action,
.primary-link {
  border-radius: 7px;
}

.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  background: var(--red);
  color: var(--surface);
  padding: 0 16px;
}

.primary-link:hover {
  background: var(--red-dark);
}

.primary-link.passive {
  background: rgba(69, 129, 151, 0.13);
  color: var(--teal);
  pointer-events: none;
}

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

.stats-grid article {
  position: relative;
  overflow: hidden;
  border-color: var(--admin-line);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface);
}

.stats-grid article::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: var(--red);
  opacity: 0.18;
}

.stats-grid article:nth-child(2)::after {
  background: var(--teal);
}

.stats-grid article:nth-child(3)::after {
  background: var(--amber);
}

.stats-grid article:nth-child(4)::after {
  background: var(--olive);
}

.stats-grid span,
.stats-grid small {
  color: #68717d;
  font-size: 13px;
  font-weight: 750;
}

.stats-grid strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1;
}

.compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.9fr);
  gap: 16px;
  margin-top: 18px;
}

.admin-card {
  border-color: var(--admin-line);
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
}

.admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 20px;
  margin: 0;
}

.admin-card-head a,
.admin-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-news-list,
.mini-list {
  display: grid;
  gap: 12px;
}

.admin-news-list article {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-bottom: 1px solid var(--admin-line);
  padding-bottom: 12px;
}

.admin-news-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-news-list img {
  width: 74px;
  aspect-ratio: 1.22;
  border-radius: 8px;
}

.admin-news-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.22;
}

.admin-news-list span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.mini-list span {
  border-bottom: 1px solid var(--admin-line);
  padding-bottom: 12px;
  color: #414956;
}

.chart-bars {
  height: 230px;
  display: flex;
  align-items: end;
  gap: 12px;
  border-left: 1px solid var(--admin-line);
  border-bottom: 1px solid var(--admin-line);
  padding: 12px 12px 30px;
}

.admin-status-card {
  grid-column: 1 / -1;
}

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

.status-list span {
  min-height: 70px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 12px;
  color: var(--muted);
  font-weight: 750;
}

.status-list b {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.chart-bars i {
  position: relative;
  flex: 1;
  min-width: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--olive));
  color: #CDCDCD;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  padding-top: 6px;
}

.chart-bars i span {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  color: #68717d;
  font-size: 11px;
  font-weight: 850;
}

.data-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 16px;
  align-items: start;
}

.media-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.media-card a {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-soft);
}

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

.media-card strong,
.media-card span {
  display: block;
}

.media-card strong {
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card span {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.media-card button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
}

.table-row {
  min-width: 760px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.6fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid var(--admin-line);
}

.table-row.admin-table-5 {
  grid-template-columns: 1.25fr 1fr 0.62fr 0.82fr 1fr;
}

.table-row.admin-table-6 {
  grid-template-columns: 92px 1.15fr 1fr 0.62fr 0.82fr 1fr;
}

.table-thumb {
  width: 72px;
  height: 48px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--surface-soft);
  object-fit: cover;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  background: var(--surface-soft);
  color: #68717d;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.table-row button {
  min-height: 32px;
  margin-right: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  color: #424b57;
  font-weight: 750;
}

.status-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.live {
  background: rgba(8, 122, 120, 0.12);
  color: var(--teal);
}

.status-badge.draft {
  background: rgba(240, 165, 29, 0.16);
  color: #90610c;
}

.table-row button:hover {
  border-color: var(--red);
  color: var(--red);
}

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

.inline-actions a,
.inline-actions button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 10px;
  color: #424b57;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.inline-actions form {
  margin: 0;
}

.inline-actions a:hover,
.inline-actions button:hover {
  border-color: var(--red);
  color: var(--red);
}

.empty-state {
  min-width: 760px;
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
}

.image-preview {
  width: min(360px, 100%);
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 10px;
}

.image-preview img {
  width: 100%;
  max-height: 210px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-form {
  max-width: 1040px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(205, 205, 205, 0.78);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.admin-filter-form label {
  display: grid;
  gap: 7px;
  color: #424b57;
  font-size: 13px;
  font-weight: 850;
}

.admin-filter-form input,
.admin-filter-form select {
  min-height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
}

.admin-filter-form button,
.admin-filter-form a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #CDCDCD;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
}

.admin-filter-form a {
  border: 1px solid var(--admin-line);
  background: var(--surface);
  color: #424b57;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #424b57;
  font-size: 14px;
  font-weight: 850;
}

.author-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(232, 243, 250, 0.58);
  padding: 16px;
}

.author-picker legend {
  padding: 0 8px;
  color: #424b57;
  font-size: 14px;
  font-weight: 900;
}

.field-hint {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-form .author-picker label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 10px;
  cursor: pointer;
}

.admin-form .author-picker input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.admin-form .checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: var(--surface-soft);
  padding: 10px 12px;
}

.admin-form .checkbox-line input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

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

.admin-form button {
  width: max-content;
}

.newsletter-admin-form {
  max-width: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.tox-tinymce {
  border-color: var(--admin-line) !important;
  border-radius: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.tox .tox-menubar,
.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-statusbar {
  background: #CDCDCD !important;
}

.tox .tox-edit-area__iframe {
  background: #CDCDCD !important;
}

.tox.tox-tinymce--toolbar-sticky-on .tox-editor-header {
  z-index: 30 !important;
  box-shadow: 0 10px 24px rgba(17, 24, 31, 0.16) !important;
}

.ck-editor__editable {
  min-height: 520px;
}

.ck.ck-editor,
.ck.ck-editor__main,
.ck.ck-editor__editable,
.ck-content {
  color: #242b36;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-transform: none;
}

.ck.ck-editor__editable_inline {
  padding: 22px;
}

.ck-content p {
  font-weight: 400;
}

.ck-content strong,
.ck-content b {
  font-weight: 700;
}

.ck-content figure.image,
.article-body figure.image,
.text-block figure.image {
  margin: 28px 0;
}

.ck-content figure.image img,
.article-body figure.image img,
.text-block figure.image img,
.article-body img,
.text-block img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.ck-content figure.image figcaption,
.article-body figure.image figcaption,
.text-block figure.image figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.ck-content .editor-lead,
.article-body .editor-lead,
.text-block .editor-lead {
  color: var(--ink-soft);
  font-size: 1.14em;
  font-weight: 700;
  line-height: 1.72;
}

.ck-content .editor-note,
.article-body .editor-note,
.text-block .editor-note {
  border-left: 4px solid var(--red);
  background: rgba(139, 46, 58, 0.08);
  padding: 14px 18px;
}

.ck-content .editor-source,
.article-body .editor-source,
.text-block .editor-source {
  color: var(--muted);
  font-size: 0.9em;
  font-style: italic;
}

.editor-load-error {
  margin: 10px 0 0;
  border: 1px solid rgba(207, 56, 46, 0.28);
  border-radius: 8px;
  background: rgba(207, 56, 46, 0.08);
  padding: 10px 12px;
  color: #8b2e3a;
  font-size: 13px;
  font-weight: 850;
}

.message-detail {
  display: grid;
  gap: 12px;
}

.message-detail p {
  border-top: 1px solid var(--admin-line);
  margin: 6px 0 0;
  padding-top: 18px;
  color: var(--ink);
  line-height: 1.7;
}

.status-list a {
  min-height: 70px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  padding: 12px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.status-list a:hover {
  border-color: var(--red);
  color: var(--red);
}

.status-list a b {
  display: block;
  color: var(--ink);
  font-size: 24px;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(69, 129, 151, 0.2), transparent 36%),
    linear-gradient(135deg, #e9f4fb 0%, #CDCDCD 52%, #edf5fa 100%);
  padding: 24px;
}

.login-shell {
  width: min(480px, 100%);
  padding: 0;
}

.login-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(205, 205, 205, 0.9);
  padding: 30px;
  box-shadow: 0 28px 70px rgba(30, 52, 70, 0.18);
}

.login-card .admin-brand {
  color: var(--ink);
}

.login-card h1 {
  margin: 8px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 0.95;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  max-width: none;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login-form button {
  width: 100%;
}

.form-alert {
  border: 1px solid rgba(183, 52, 44, 0.24);
  border-radius: 10px;
  background: rgba(183, 52, 44, 0.08);
  padding: 12px 14px;
  color: #9f2e28;
  font-weight: 800;
}

.form-alert.success {
  border-color: rgba(8, 122, 120, 0.24);
  background: rgba(8, 122, 120, 0.09);
  color: var(--teal);
}

.setup-notice {
  border: 1px solid rgba(69, 129, 151, 0.24);
  border-radius: 10px;
  background: rgba(69, 129, 151, 0.08);
  padding: 12px 14px;
  font-weight: 800;
}

.setup-notice a {
  color: var(--red);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .hero-grid,
  .latest-layout,
  .article-layout,
  .lead-story,
  .split-section,
  .category-layout,
  .contact-layout,
  .admin-panel-grid {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: 0;
  }

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

  .image-link,
  .image-link img,
  .lead-slide > .image-link {
    height: 100%;
  }

  .lead-story img {
    aspect-ratio: auto;
  }

  .lead-copy h1 {
    max-width: 13ch;
  }

  .latest-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    position: static;
  }

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

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 280px));
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    height: auto;
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 176px;
    overflow: auto;
  }

  .back-site {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --content-width: calc(100% - 28px);
  }

  .top-strip,
  .brand-row,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .top-strip {
    top: 14px;
    right: 14px;
    width: auto;
    align-items: flex-end;
  }

  .brand-row {
    padding: 62px 0 18px;
  }

  .brand {
    align-items: flex-start;
    width: 100%;
  }

  .brand-logo {
    width: 100%;
    max-width: 430px;
  }

  .brand strong {
    font-size: 35px;
  }

  .search-box {
    width: 100%;
  }

  .main-nav {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    overflow: visible;
    gap: 0;
    border-radius: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    min-height: 56px;
    justify-content: space-between;
    gap: 12px;
    border-radius: 0;
    padding: 0 18px;
  }

  .main-menu-panel {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid rgba(205, 205, 205, 0.12);
    background: rgba(8, 30, 47, 0.22);
    padding: 10px;
  }

  .main-menu-panel.is-open {
    display: grid;
  }

  .main-menu-panel > a,
  .main-menu-panel > .category-menu-toggle {
    min-height: 46px;
    justify-content: center;
    border: 1px solid rgba(205, 205, 205, 0.12);
    background: rgba(205, 205, 205, 0.08);
    border-radius: 8px;
    padding: 0 12px;
  }

  .category-menu-toggle {
    display: inline-flex;
  }

  .nav-category-links {
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    border-top: 1px solid rgba(205, 205, 205, 0.12);
    background: rgba(8, 30, 47, 0.28);
    padding: 10px;
  }

  .nav-category-links.is-open {
    display: grid;
  }

  .nav-category-links a {
    min-height: 42px;
    justify-content: center;
    border: 1px solid rgba(205, 205, 205, 0.12);
    background: rgba(205, 205, 205, 0.08);
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
  }

  main {
    width: var(--content-width);
    padding-top: 26px;
  }

  .lead-copy {
    padding: 20px 20px 68px;
    gap: 8px;
  }

  .lead-story {
    height: auto;
    min-height: 0;
  }

  .lead-slide {
    position: relative;
    inset: auto;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    pointer-events: none;
    transform: none;
  }

  .lead-slide.is-active {
    display: grid;
    pointer-events: auto;
  }

  .lead-slide > .image-link {
    height: auto;
  }

  .lead-story img {
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .headline-stack {
    height: auto;
    grid-template-rows: none;
    gap: 18px;
  }

  .headline-stack article {
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    padding: 24px;
  }

  .headline-stack h2,
  .headline-stack.is-count-1 h2 {
    display: block;
    overflow: visible;
    font-size: clamp(27px, 7.4vw, 36px);
    line-height: 1.14;
  }

  .headline-stack p,
  .headline-stack.is-count-1 p {
    display: block;
    overflow: visible;
    font-size: 19px;
    line-height: 1.55;
  }

  .lead-copy h1,
  .page-hero h1,
  .article-hero h1 {
    font-size: 29px;
    line-height: 1.08;
  }

  .lead-copy h1 {
    max-width: none;
  }

  .lead-copy h1.is-long-title {
    max-width: none;
    font-size: 29px;
    line-height: 1.08;
  }

  .lead-copy p,
  .page-hero p,
  .article-hero p {
    font-size: 15px;
    line-height: 1.55;
  }

  .slider-controls {
    right: 14px;
    bottom: 14px;
    padding: 6px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }

  .slider-dot {
    width: 7px;
    height: 7px;
  }

  .slider-dot.is-active {
    width: 18px;
  }

  .article-row,
  .stats-grid,
  .compact-stats,
  .author-grid,
  .directory-grid,
  .related-grid,
  .form-grid,
  .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

  .latest-sidebar {
    grid-template-columns: 1fr;
  }

  .article-row {
    padding: 14px;
  }

  .article-row img {
    aspect-ratio: 1.7;
  }

  .page-hero,
  .article-hero {
    min-height: 240px;
  }

  .category-hero {
    min-height: 300px;
    padding: 24px;
  }

  .author-detail-hero {
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 18px;
  }

  .author-detail-copy h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .author-detail-copy p {
    font-size: 16px;
    line-height: 1.5;
  }

  .article-body,
  .text-block {
    font-size: 20px;
    line-height: 1.84;
  }

  .article-body p:first-child::first-letter {
    font-size: 62px;
  }

  .share-strip,
  .author-bio-card {
    max-width: none;
  }

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

  .author-picker {
    grid-template-columns: 1fr;
  }

  blockquote {
    font-size: 23px;
  }

  .admin-main {
    width: min(1160px, calc(100% - 28px));
  }

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

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

@media (max-width: 480px) {
  .top-strip,
  .brand-row,
  .main-nav,
  .site-footer {
    width: var(--content-width);
  }

  .top-strip {
    width: auto;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-logo {
    width: 100%;
    max-width: none;
  }

  .brand strong {
    font-size: 30px;
  }

  .headline-stack article,
  .newsletter,
  .side-panel,
  .contact-form,
  .admin-form,
  .admin-card,
  .stats-grid article {
    padding: 18px;
  }

  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }
}
