:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #627084;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f4f7fa;
  --blue: #0d63ce;
  --teal: #028477;
  --gold: #c88a12;
  --red: #c0362c;
  --shadow: 0 18px 50px rgba(31, 46, 70, 0.14);
  --admin-panel: rgba(255, 255, 255, 0.84);
  --admin-line: rgba(95, 122, 151, 0.22);
  --admin-depth: 0 24px 70px rgba(17, 37, 62, 0.16), 0 2px 0 rgba(255, 255, 255, 0.8) inset;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Aptos", "Inter", "SF Pro Display", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(13, 99, 206, 0.08), rgba(2, 132, 119, 0.1) 42%, rgba(200, 138, 18, 0.08)),
    linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-body .topbar {
  margin: 14px 14px 0 300px;
  width: auto;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--admin-depth);
  transform: translateZ(0);
}

.admin-body .brand strong {
  font-size: 14px;
}

.admin-body .desktop-nav {
  display: none;
}

.admin-sidebar nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #223349;
  background: rgba(255, 255, 255, 0.58);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-sidebar nav a:hover {
  background: white;
  border-color: var(--admin-line);
  box-shadow: 0 12px 30px rgba(22, 48, 76, 0.12);
  transform: translateX(3px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-logo {
  width: 48px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.brand small,
.metrics,
.notice small,
.event small {
  color: var(--muted);
  font-size: 13px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.nav-item {
  position: relative;
  padding: 10px 0;
}

.nav-item:hover .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.submenu a {
  padding: 8px 10px;
  border-radius: 6px;
}

.submenu a:hover {
  background: var(--soft);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: clamp(18px, 4vw, 52px);
  min-height: 650px;
  padding: 92px clamp(20px, 5vw, 72px) 54px;
  color: white;
  background:
    linear-gradient(90deg, rgba(7, 20, 35, 0.78) 0%, rgba(7, 20, 35, 0.5) 42%, rgba(7, 20, 35, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 20, 35, 0.12), rgba(7, 20, 35, 0.42)),
    var(--hero-bg, url("/assets/sarmi-hero-bg.png")) center center / cover no-repeat;
}

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

.eyebrow,
.section-head span,
.pill {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #85f0df;
}

.hero h1 {
  max-width: 900px;
  margin: 12px 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-actions,
.metrics,
.reaction {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn,
.reaction button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.btn:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.btn.primary {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.btn.danger {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.admin-body .btn {
  box-shadow: 0 10px 22px rgba(22, 48, 76, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-body .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(22, 48, 76, 0.16);
}

.admin-body .btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.hero-panel {
  padding: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.ai-badge {
  display: inline-flex;
  padding: 6px 10px;
  color: white;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.section,
.page-title,
.article,
.admin-wrap,
.auth,
.ai-console {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 54px 0;
}

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

.service {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-radius: 8px;
}

.service-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service p,
.post-card p,
.side-panel,
.article p,
.admin-note,
.ai-console p {
  color: var(--muted);
}

.admin-body .admin-note {
  padding: 18px;
  border-radius: 8px;
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.news-slider {
  display: grid;
  gap: 14px;
}

.slider-track {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #101923;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.slide > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
  color: white;
  background: linear-gradient(135deg, rgba(16, 25, 35, 0.96), rgba(20, 32, 46, 0.88));
}

.slide h2 {
  margin: 10px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
}

.slide p,
.slide .post-time {
  color: rgba(255, 255, 255, 0.76);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slider-controls > button,
.slider-controls [data-slide-dot] {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.slider-controls > button {
  width: 34px;
  height: 34px;
  font-size: 22px;
}

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

.slider-controls [data-slide-dot] {
  width: 10px;
  height: 10px;
  padding: 0;
}

.slider-controls [data-slide-dot].active {
  width: 24px;
  background: var(--blue);
}

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

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

.search-news {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 18px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(1180px, calc(100% - 36px));
  margin: -24px auto 54px;
}

.pagination a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 900;
}

.pagination a.active,
.pagination a:hover {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  min-height: 390px;
}

.post-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.post-card div {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px;
}

.post-card h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-time {
  display: block;
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.post-card.featured img {
  height: 100%;
  aspect-ratio: auto;
}

.read-more {
  width: fit-content;
  margin: auto 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.side-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-left: 3px solid var(--blue);
  background: var(--soft);
}

.notice,
.event {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice span,
.event span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.jdih-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.jdih-filter {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.jdih-filter a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.jdih-filter a.active,
.jdih-filter a:hover {
  color: white;
  background: var(--blue);
}

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

.document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.document-card span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.document-card h3 {
  margin: 6px 0;
}

.document-card p,
.empty-state {
  color: var(--muted);
}

.empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.leaders-block {
  display: grid;
  gap: 18px;
}

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

.term-banner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  color: white;
  background: #14202e;
  border-radius: 8px;
}

.term-banner span {
  color: #a9d7d1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.term-banner strong {
  font-size: 22px;
}

.leaders article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--soft);
  border-radius: 8px;
}

.leaders img {
  width: 160px;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}

.leaders span {
  color: var(--blue);
  font-weight: 900;
}

.ai-console {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 56px;
  padding: 30px;
  color: white;
  background: #14202e;
  border-radius: 8px;
}

.ai-console .eyebrow,
.ai-console p {
  color: #a9d7d1;
}

.ai-console form {
  display: flex;
  gap: 10px;
}

.ai-console input {
  flex: 1;
  min-height: 46px;
  border: 1px solid #34506b;
  border-radius: 8px;
  padding: 0 14px;
}

.ai-answer {
  min-height: 48px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.ai-answer p {
  margin: 0 0 10px;
}

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

.ai-results a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.ai-results a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.page-title {
  padding: 62px 0 18px;
}

.page-title h1 {
  max-width: 780px;
  margin: 8px 0;
  font-size: 44px;
  line-height: 1.08;
}

.article {
  max-width: 860px;
  padding: 56px 0;
}

.article h1 {
  margin: 10px 0;
  font-size: 48px;
  line-height: 1.06;
}

.article-byline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.article-byline strong {
  color: var(--blue);
}

.article-byline strong::after {
  content: "-";
  margin-left: 8px;
  color: var(--muted);
}

.news-photo {
  margin: 24px 0;
}

.article .news-photo img,
.print-article .news-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.news-photo figcaption {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.news-gallery {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.ai-summary {
  padding: 18px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

.reaction {
  margin-top: 26px;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.icon-action {
  display: inline-flex;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 46, 70, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.icon-action strong {
  font-size: 11px;
  line-height: 1;
}

.icon-action:hover,
.icon-action.active {
  border-color: rgba(13, 99, 206, 0.35);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 46, 70, 0.13);
}

.auth {
  display: grid;
  min-height: 70vh;
  place-items: center;
}

.admin-body main {
  min-height: calc(100vh - 150px);
  perspective: 1200px;
}

.admin-sidebar {
  position: fixed;
  top: 14px;
  bottom: 18px;
  left: 14px;
  z-index: 25;
  width: 260px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--admin-depth);
  backdrop-filter: blur(18px);
}

.sidebar-title {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.sidebar-title span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-title strong {
  line-height: 1.15;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.sidebar-user img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-sidebar nav {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.admin-main {
  margin-left: 286px;
}

.admin-body .auth form,
.admin-body .editor,
.admin-body .stats div,
.admin-body .table > div,
.admin-body .admin-note {
  border: 1px solid var(--admin-line);
  background: var(--admin-panel);
  box-shadow: var(--admin-depth);
  backdrop-filter: blur(18px);
}

.auth form,
.editor {
  display: grid;
  width: min(520px, 100%);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.wide-editor {
  width: min(820px, 100%);
}

.gallery-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(95, 122, 151, 0.22);
  border-radius: 8px;
  background: rgba(245, 248, 252, 0.74);
}

.gallery-editor > strong {
  color: #14202e;
}

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

.existing-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.existing-gallery figure {
  margin: 0;
}

.existing-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.existing-gallery figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: white;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  border-color: rgba(95, 122, 151, 0.3);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(13, 99, 206, 0.12), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

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

.success {
  width: fit-content;
  padding: 12px 14px;
  color: #075d53;
  border: 1px solid rgba(2, 132, 119, 0.25);
  border-radius: 8px;
  background: rgba(2, 132, 119, 0.09);
  font-weight: 800;
}

.admin-wrap {
  padding: 48px 0;
}

.admin-body .admin-wrap {
  padding: 34px 0 64px;
}

.admin-body .admin-wrap > h1 {
  width: fit-content;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(17, 37, 62, 0.1);
  font-size: 34px;
  line-height: 1.08;
}

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

.admin-body .stats {
  gap: 18px;
  transform-style: preserve-3d;
}

.stats div,
.table > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-body .stats div,
.admin-body .table > div,
.admin-body .editor {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-body .stats div:hover,
.admin-body .table > div:hover,
.admin-body .editor:hover {
  border-color: rgba(13, 99, 206, 0.28);
  box-shadow: 0 30px 80px rgba(17, 37, 62, 0.2), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-3px) rotateX(1deg);
}

.stats strong {
  display: block;
  font-size: 38px;
}

.admin-body .stats strong {
  color: var(--blue);
}

.table {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-body .table {
  gap: 12px;
}

.table span {
  display: block;
  color: var(--muted);
}

.admin-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.admin-body .admin-row-main strong {
  color: #14202e;
}

.admin-row.text-only {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-row img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-row-main {
  min-width: 0;
}

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

.audit-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  gap: 16px;
  align-items: center;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.94), rgba(255, 255, 255, 0.82));
  box-shadow: 0 22px 70px rgba(15, 61, 46, 0.12);
}

.audit-status.bad {
  border-color: rgba(220, 38, 38, 0.3);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.94), rgba(255, 255, 255, 0.82));
}

.audit-status strong {
  display: block;
  color: #047857;
  font-size: 22px;
}

.audit-status.bad strong {
  color: #b91c1c;
}

.audit-status span {
  color: var(--muted);
}

.audit-status code,
.audit-hash {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #31506c;
  font-size: 12px;
}

.audit-row .admin-row-main {
  display: grid;
  gap: 5px;
}

.admin-actions form {
  margin: 0;
}

.current-cover {
  width: min(100%, 420px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-body .current-cover {
  box-shadow: 0 18px 45px rgba(22, 48, 76, 0.14);
}

.current-cover.portrait {
  width: 180px;
  height: 220px;
  aspect-ratio: auto;
}

.current-cover.hero-preview {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
}

.appearance-editor {
  width: min(760px, 100%);
}

.leader-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

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

.leader-editor {
  width: 100%;
}

.term-editor {
  width: 100%;
  margin-bottom: 18px;
}

.compact {
  grid-template-columns: 1fr 1fr 120px auto;
  align-items: end;
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 64px);
  color: white;
  background: #101923;
  font-size: 13px;
}

.footer strong {
  font-size: 14px;
}

.footer p {
  margin: 6px 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer span {
  display: block;
  text-align: right;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.print-body {
  background: white;
}

.print-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 42px;
}

.print-article header {
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.print-article header span {
  font-weight: 900;
  text-transform: uppercase;
}

.print-article h1 {
  margin: 8px 0;
  font-size: 34px;
  line-height: 1.12;
}

.print-article img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 20px 0;
}

.print-article section {
  padding: 16px;
  border-left: 4px solid var(--teal);
  background: var(--soft);
}

@media print {
  .print-article {
    max-width: none;
    padding: 0;
  }
}

.admin-body .footer {
  margin: 0 14px 18px;
  width: auto;
  border-radius: 8px;
  background: rgba(16, 25, 35, 0.94);
  box-shadow: 0 20px 60px rgba(17, 37, 62, 0.16);
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-body .topbar {
    margin: 10px auto 0;
    width: min(100% - 20px, 1240px);
  }

  .menu-toggle {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .mobile-nav.open {
    display: grid;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav .submenu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    transform: none;
  }

  .hero,
  .split,
  .post-card.featured,
  .leaders article,
  .compact,
  .admin-row,
  .jdih-layout,
  .document-card,
  .slide {
    grid-template-columns: 1fr;
  }

  .slider-track {
    min-height: 610px;
  }

  .grid-4,
  .post-grid,
  .leaders,
  .stats,
  .leader-admin-grid,
  .account-grid,
  .gallery-field {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero h1,
  .article h1,
  .page-title h1 {
    font-size: 38px;
  }

  .ai-console form,
  .search-news,
  .footer {
    flex-direction: column;
  }

  .footer span {
    text-align: left;
  }
}
