:root {
  --ink: #171717;
  --muted: #62666f;
  --line: #e2e5eb;
  --paper: #ffffff;
  --surface: #ffffff;
  --accent: #0b5d3a;
  --accent-dark: #06422a;
  --navy: #1d2733;
  --teal: #147c7c;
  --gold: #d19a2e;
  --shadow: 0 18px 50px rgba(18, 29, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  /* Brand should be able to stretch until the clock without breaking layout. */
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px 24px;
  min-height: 96px;
  padding: 12px clamp(18px, 4vw, 56px) 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 18px rgba(14, 23, 37, 0.08);
}

.site-header::after {
  grid-column: 1 / -1;
  display: block;
  width: calc(100% + (clamp(18px, 4vw, 56px) * 2));
  height: 4px;
  margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
  background: var(--accent);
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  justify-self: start;
}

.brand-full-logo {
  height: 60px;
  width: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.56rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.top-nav {
  order: 3;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-height: 42px;
  margin-top: 12px;
  margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
  padding-inline: clamp(18px, 4vw, 56px);
  overflow-x: auto;
  background: var(--accent);
  color: white;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.top-nav a {
  flex: 0 0 auto;
  padding: 13px 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0;
}

.top-nav a:hover {
  background: rgba(0, 0, 0, 0.12);
}

.date-clock {
  position: static;
  display: grid;
  justify-self: end;
  justify-items: center;
  gap: 3px;
  min-width: 190px;
  padding: 9px 13px;
  border: 1px solid #e0e4eb;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7f8fa);
  box-shadow: 0 8px 22px rgba(14, 23, 37, 0.08);
}

.date-clock span {
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: capitalize;
}

.date-clock strong {
  text-align: center;
  color: var(--accent-dark);
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.business-directory {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 12px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
}

.home-poll {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.home-poll__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-poll__header h2 {
  margin: 6px 0 0;
  font-size: 1.04rem;
  font-weight: 950;
}

.home-poll__question {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.home-poll__results {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.home-poll-bar__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 900;
}

.home-poll-bar__track {
  height: 8px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
  margin-top: 6px;
}

.home-poll-bar__fill {
  height: 100%;
  background: var(--accent);
}

.directory-title {
  display: grid;
  min-width: 220px;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
}

.directory-title strong {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.directory-title span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.business-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-height: 118px;
  padding: 10px 11px;
  border: 1px solid #e1e5ec;
  border-radius: 6px;
  background: #fafbfc;
}

.business-card b {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.business-card span,
.business-card small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.business-card small {
  margin-top: 5px;
  line-height: 1.35;
}

.business-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
}

.instagram-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 110%, #feda75, #fa7e1e 28%, #d62976 56%, #962fbf 76%, #4f5bd5);
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
}

.instagram-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}


.death-slider {
  margin: 16px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: linear-gradient(180deg, #07110c, #05090f);
  color: white;
}

.death-slider[hidden] {
  display: none;
}

.slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.slider-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.08;
}

.slider-controls {
  display: flex;
  gap: 7px;
}

.slider-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.death-viewport {
  overflow: hidden;
}

.death-track {
  display: flex;
  transition: transform 360ms ease;
}

.death-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  min-height: 345px;
  padding: 28px 20px;
  background: #05090f;
  position: relative;
}

.death-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(90deg, rgba(11, 93, 58, 0.22), transparent 60%);
  pointer-events: none;
}

.death-slide[data-slide-type="notice"]::before {
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.05), transparent 58%),
    linear-gradient(120deg, rgba(11, 93, 58, 0.26), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 84px);
}

.death-slide[data-slide-type="notice"]::after {
  content: "inna lillahi ve inna ileyhi raciun\Ainna lillahi ve inna ileyhi raciun\Ainna lillahi ve inna ileyhi raciun";
  position: absolute;
  inset: 10px;
  display: grid;
  place-items: center;
  font-family: Georgia, \"Times New Roman\", serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 2.1rem);
  letter-spacing: 0.08em;
  line-height: 1.9;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, 0.065);
  transform: rotate(-8deg);
  pointer-events: none;
  white-space: pre-line;
}

.death-slide--news::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.82)),
    var(--slide-bg);
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.death-slide > * {
  position: relative;
  z-index: 1;
}

.death-slide span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.death-slide[data-slide-type="notice"] span {
  color: rgba(255, 255, 255, 0.82);
}

.death-slide h3 {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.08;
}

.death-slide p {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  max-width: 68ch;
}

.death-slide strong {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  max-width: 360px;
  text-align: right;
  line-height: 1.45;
}

.death-slide--news strong {
  display: grid;
  gap: 8px;
}

.death-slide--news em {
  font-style: normal;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.76);
}

.death-slide__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-weight: 900;
}

.death-slide__link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 4px;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 6px 9px;
  background: var(--accent);
}

.primary-link {
  width: fit-content;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #1f1605;
  cursor: pointer;
  font-weight: 900;
}

.primary-link {
  padding: 13px 18px;
}

.tools-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button,
.search-box input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.category-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border-color: #d9dde5;
  cursor: pointer;
  font-weight: 800;
}

.category-tabs button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.search-box {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  min-height: 42px;
  width: min(360px, 100%);
  padding: 0 13px;
  font: inherit;
  text-transform: none;
}

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

.news-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(18, 29, 42, 0.06);
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.news-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(18, 29, 42, 0.11);
}

.news-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.news-card[hidden] {
  display: none;
}

.news-card img {
  aspect-ratio: 16 / 9;
}

.lead-card {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1fr;
}

.lead-card img {
  min-height: 330px;
  aspect-ratio: 16 / 10;
}

.lead-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 28px);
}

.lead-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.lead-card p {
  font-size: 1.05rem;
}

.news-card div {
  padding: 12px;
}

.tag {
  padding: 4px 7px;
  background: var(--accent);
}

.news-card h2 {
  margin: 10px 0 8px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.22;
}

.news-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.news-card time,
.card-meta span {
  color: #7a7f88;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
}

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

.section-heading h2 {
  margin: 12px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  line-height: 1.02;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.feed-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 0;
  padding: 0 0 12px;
  border-bottom: 4px solid var(--accent);
  scroll-margin-top: 116px;
}

.feed-header h2 {
  margin: 10px 0 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.feed-header p {
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.article-detail {
  width: min(860px, 100%);
  margin: 42px auto;
}

.article-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.article-hero h1,
.article-not-found h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  /* Keep headlines bold but not billboard-sized */
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1.25;
}

.article-hero p,
.article-not-found p {
  margin: 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.65;
}

.article-hero time {
  color: #747983;
  font-size: 0.92rem;
  font-weight: 800;
}

.source-link {
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 900;
}

.article-media {
  margin: 0;
}

.article-image {
  width: 100%;
  max-height: 480px;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.article-media figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-body {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  color: #282d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  line-height: 1.78;
}

.article-body p {
  margin: 0;
}

.back-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--accent-dark);
  font-weight: 900;
}

.poll-page {
  width: min(100% - 24px, 1180px);
  margin: 26px auto 56px;
}

.poll-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 14px 40px rgba(14, 23, 37, 0.08);
}

.poll-card h1 {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.12;
}

.poll-question {
  margin: 10px 0 0;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--ink);
}

.poll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

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

.poll-options {
  display: grid;
  gap: 10px;
}

.poll-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 12px;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(14, 23, 37, 0.06);
}

.poll-option input {
  margin-top: 2px;
}

.poll-option span {
  font-weight: 850;
}

.poll-option:has(input:checked) {
  border-color: rgba(11, 93, 58, 0.45);
  box-shadow: 0 14px 28px rgba(11, 93, 58, 0.12);
}

.poll-option:has(input:checked) span {
  color: var(--accent-dark);
}

.poll-vote-button {
  width: fit-content;
}

.poll-vote-button.primary-link {
  background: var(--accent);
  color: white;
}

.poll-vote-button.primary-link:hover {
  filter: brightness(0.98);
}

.poll-message {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
}

.poll-message[data-tone="success"] {
  color: var(--accent-dark);
}

.poll-message[data-tone="warning"] {
  color: #b45309;
}

.poll-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 14px 16px;
  background: #fff;
}

.poll-side {
  position: sticky;
  top: 118px;
}

.poll-results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
}

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

.poll-bar__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-weight: 850;
}

.poll-bar__track {
  height: 10px;
  border-radius: 999px;
  background: #e9eef5;
  overflow: hidden;
  margin-top: 6px;
}

.poll-bar__fill {
  height: 100%;
  background: var(--accent);
}

@media (max-width: 900px) {
  .poll-layout {
    grid-template-columns: 1fr;
  }

  .poll-vote-button {
    width: 100%;
    justify-content: center;
  }

  .poll-side {
    position: static;
  }
}

.article-not-found {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}


.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }

  .icon-button {
    position: static;
    grid-column: 2;
    grid-row: 1;
    display: block;
    justify-self: end;
  }

  .date-clock {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    min-width: 138px;
    padding: 7px 10px;
  }

  .date-clock span {
    font-size: 0.68rem;
  }

  .date-clock strong {
    font-size: 0.98rem;
  }

  .top-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(8px);
  }

  .top-nav.open {
    display: flex;
  }

  .feed-header,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .feed-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .tools-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .death-slide strong {
    grid-column: 1;
    grid-row: auto;
    max-width: none;
    text-align: left;
  }

  .search-box input {
    width: 100%;
  }

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

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

  .lead-card img {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    min-height: 72px;
    padding: 13px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
  }

  .site-header::after {
    width: calc(100% + 24px);
    margin-inline: -12px;
  }

  .brand small {
    display: none;
  }

  .brand-full-logo {
    height: 48px;
  }

  .date-clock {
    min-width: 116px;
  }

  .icon-button {
    grid-column: 2;
    grid-row: 1;
  }

  .date-clock span {
    display: none;
  }

  .top-nav {
    top: 100%;
    right: 12px;
    left: 12px;
  }

  .business-directory {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-title {
    width: 100%;
  }

  .directory-list {
    grid-template-columns: 1fr;
  }

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

  .lead-card {
    grid-column: span 1;
  }

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

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(227, 6, 19, 0.12), transparent 28%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.admin-locked {
  display: grid;
  place-items: center;
}

.admin-login-panel {
  width: min(460px, calc(100% - 28px));
}

.admin-login-panel[hidden],
.admin-header[hidden],
.admin-main[hidden] {
  display: none;
}

.admin-login-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(29, 39, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(29, 39, 51, 0.12);
}

.admin-login-brand {
  width: fit-content;
}

.admin-login-card h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
}

.admin-login-button {
  min-height: 44px;
  justify-content: center;
  padding: 0 18px;
}

#adminLoginMessage {
  min-height: 20px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 900;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(29, 39, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.admin-header__brand,
.admin-header__actions,
.admin-toolbar,
.admin-toolbar__actions,
.admin-card__header,
.admin-repeater-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header__brand {
  align-items: flex-start;
}

.admin-header__brand p,
.admin-toolbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.admin-main {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(29, 39, 51, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(29, 39, 51, 0.08);
}

.admin-toolbar h1,
.admin-card h2 {
  margin: 10px 0 0;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-overview article,
.admin-card,
.admin-repeater-card {
  border: 1px solid rgba(29, 39, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(29, 39, 51, 0.06);
}

.admin-overview article {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 16px;
}

.admin-overview strong {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.admin-overview span {
  color: var(--muted);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 18px;
}

.admin-card {
  padding: 20px;
  border-radius: 18px;
}

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

.admin-card__header,
.admin-repeater-card__header {
  justify-content: space-between;
}

.admin-stack,
.admin-repeaters,
.archive-summary,
.archive-summary__list {
  display: grid;
  gap: 14px;
}

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

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

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

.admin-field--full {
  grid-column: 1 / -1;
}

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

.admin-field input,
.admin-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
}

.admin-field textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-repeater-card {
  padding: 16px;
  border-radius: 16px;
}

.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.danger-button {
  border-color: rgba(185, 0, 10, 0.2);
  color: var(--accent-dark);
}

.admin-toolbar__actions .primary-link {
  min-height: 42px;
  padding-inline: 18px;
}

.archive-summary > p {
  margin: 0;
  color: var(--muted);
}

.archive-summary__list article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #e1e6ef;
  border-radius: 14px;
  background: #fbfcfe;
}

#adminStatus[data-tone="success"] {
  color: #0d6b44;
}

#adminStatus[data-tone="warning"] {
  color: #8f5f00;
}

@media (max-width: 900px) {
  .admin-header,
  .admin-toolbar,
  .admin-header__actions,
  .admin-toolbar__actions {
    align-items: stretch;
    flex-direction: column;
  }

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