@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-400.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-600.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-700.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-800.ttf") format("truetype");
  font-display: swap;
  font-weight: 800;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-400.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-600.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-700.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

: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: "Source Sans 3", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1,
h2,
h3,
.brand strong,
.desktop-nav,
.btn,
.pill,
.section-head,
.portal-stats {
  font-family: "Plus Jakarta Sans", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

.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;
}

.headline-bar {
  color: white;
  background: #0b4d9b;
}

.headline-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1180px, calc(100% - 36px));
  min-height: 46px;
  margin: 0 auto;
}

.headline-bar span {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #152132;
  background: #f3c623;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.headline-bar a {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.headline-bar time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.portal-stats {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2.2fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 26px;
  margin-bottom: 8px;
  padding: 22px;
  border: 1px solid rgba(13, 99, 206, 0.16);
  border-radius: 8px;
  background: linear-gradient(110deg, #f5f9ff 0%, #f8fcfb 56%, #fffaf0 100%);
}

.portal-stats-title {
  display: grid;
  align-content: center;
  gap: 7px;
  padding-right: 24px;
  border-right: 1px solid rgba(23, 32, 42, 0.12);
}

.portal-stats-title span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-stats-title p {
  margin: 0;
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

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

.portal-stats-grid article {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 42, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.portal-stats-grid strong {
  color: #123d68;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.portal-stats-grid span {
  margin-top: 7px;
  font-size: 13px;
  font-weight: 700;
}

.portal-stats-grid small {
  margin-top: 3px;
  color: var(--muted);
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px;
}

.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.hero-artwork {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  background: #102c23;
}

.hero-artwork > img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-artwork-link {
  position: absolute;
  bottom: 13.7%;
  display: block;
  height: 6.7%;
  border-radius: 8px;
}

.hero-artwork-news {
  left: 5.6%;
  width: 13.5%;
}

.hero-artwork-services {
  left: 20.2%;
  width: 13.7%;
}

.hero-artwork-link:focus-visible {
  outline: 3px solid #ffdf00;
  outline-offset: 3px;
}

.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;
}

.pill.pill-pemerintahan,
.pill.pill-berita-utama {
  color: #0756a6;
  background: #e9f3ff;
}

.pill.pill-pendidikan {
  color: #8a5a04;
  background: #fff5d9;
}

.pill.pill-kesehatan,
.pill.pill-pelayanan {
  color: #08715f;
  background: #e4f7f1;
}

.pill.pill-infrastruktur,
.pill.pill-ekonomi-umkm {
  color: #6b4298;
  background: #f1eafe;
}

.pill.pill-pariwisata-budaya,
.pill.pill-agenda {
  color: #a0441e;
  background: #fff0e8;
}

.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;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.year-filter a {
  min-width: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.year-filter a:hover,
.year-filter a.active {
  border-color: var(--teal);
  color: white;
  background: var(--teal);
}

.category-filter a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  background: white;
  font-size: 13px;
  font-weight: 700;
}

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

.news-listing {
  padding-top: 28px;
}

.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%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
  background: #e8f0f2;
}

.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;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

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

.slide-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  color: white;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.slide-read span {
  font-size: 18px;
  line-height: 1;
}

.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));
  align-items: stretch;
}

.news-list-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.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 .page-nav {
  width: auto;
  min-width: 118px;
  padding: 0 16px;
}

.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;
}

.compact-news .post-card {
  min-height: 360px;
}

.compact-news .post-card img {
  aspect-ratio: 4 / 3;
}

.compact-news .post-card div {
  padding: 14px;
}

.compact-news .post-card .read-more {
  margin-top: auto;
}

.news-list-grid .post-card {
  min-height: 380px;
}

.news-list-grid .post-card img {
  aspect-ratio: 4 / 3;
  object-position: center;
}

.news-list-grid .post-card .read-more {
  margin-top: auto;
}

.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;
}

.jdih-category-manager {
  display: grid;
  gap: 14px;
  width: min(820px, 100%);
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid rgba(20, 116, 103, 0.22);
  border-radius: 8px;
  background: rgba(239, 248, 245, 0.82);
}

.jdih-category-manager > div span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.jdih-category-manager h2 {
  margin: 3px 0 0;
  color: #173f3b;
  font-size: 20px;
}

.jdih-category-form {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.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;
}

.jdih-preview {
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(20, 53, 48, 0.08);
}

.jdih-preview header {
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.jdih-preview header span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.jdih-preview h2 {
  margin: 6px 0;
  color: #173f3b;
  font-size: 22px;
  line-height: 1.25;
}

.jdih-preview header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.jdih-preview iframe {
  display: block;
  width: 100%;
  height: min(76vh, 880px);
  border: 0;
  background: #eef2f1;
}

.jdih-preview-download {
  display: grid;
  gap: 14px;
  padding: 28px 22px;
}

.jdih-preview-download p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.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;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

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

.officials-feature {
  margin-top: -28px;
  padding-top: 30px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(20, 32, 46, 0.08);
  border-bottom: 1px solid rgba(20, 32, 46, 0.08);
}

.officials-feature .section-head {
  margin-bottom: 0;
}

.officials-feature .leaders article {
  min-height: 190px;
}

.officials-feature .leaders article > div {
  display: grid;
  gap: 8px;
  align-content: center;
}

.officials-feature .leaders h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.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: 1px solid rgba(20, 32, 46, 0.08);
  border-radius: 8px;
}

.leaders img {
  width: 160px;
  height: 190px;
  object-fit: cover;
  object-position: top center;
  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;
}

.article-content {
  display: grid;
  gap: 18px;
  margin: 24px 0 8px;
  max-width: 860px;
}

.article-content p {
  margin: 0;
  color: #243449;
  font-size: 18px;
  line-height: 1.78;
}

.announcement-article {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.announcement-header {
  padding: 30px 32px;
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--soft);
}

.announcement-header h1 {
  max-width: 760px;
  margin: 14px 0 12px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.announcement-header p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #31445b;
  font-size: 18px;
  line-height: 1.7;
}

.announcement-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.announcement-content {
  margin-top: 28px;
}

.announcement-content .article-content {
  margin: 0;
}

.announcement-image {
  margin: 0 0 26px;
}

.announcement-image img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
}

.announcement-image figcaption {
  margin-top: 9px;
  padding-left: 10px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.announcement-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  min-height: 138px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 46, 70, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.announcement-card:hover {
  border-color: rgba(13, 99, 206, 0.32);
  box-shadow: 0 16px 32px rgba(31, 46, 70, 0.12);
  transform: translateY(-2px);
}

.announcement-card > img,
.announcement-card-mark {
  width: 100%;
  height: 100%;
  min-height: 138px;
  object-fit: cover;
  background: #e8f0ee;
}

.announcement-card-mark {
  display: grid;
  place-items: center;
  color: #147467;
  font-size: 38px;
  font-weight: 900;
}

.announcement-card > div {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
}

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

.announcement-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.announcement-card small {
  color: var(--muted);
  font-size: 12px;
}

.announcement-document {
  margin-top: 24px;
}

.print-article .article-content {
  gap: 12px;
  margin-top: 18px;
}

.print-article .article-content p {
  font-size: 14px;
  line-height: 1.65;
}

.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;
}

.related-news {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

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

.related-grid .post-card {
  min-height: 100%;
}

.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 auto minmax(0, 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;
}

.editor .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 800;
}

.editor .checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}

.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;
}

.profile-photo-editor {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 206px;
}

.announcement-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(20, 116, 103, 0.18);
  border-radius: 8px;
  background: #f6faf8;
}

.announcement-admin-preview {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.profile-photo-preview {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 3px solid rgba(229, 185, 51, 0.68);
  border-radius: 50%;
  background: #f4f7f6;
}

.profile-photo-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.profile-photo-controls strong {
  color: #173f3b;
  font-size: 16px;
}

.profile-photo-controls > span {
  color: #66807b;
  font-size: 12px;
  line-height: 1.45;
}

.profile-photo-controls label {
  margin-top: 4px;
}

.profile-photo-controls input[type="file"] {
  min-height: auto;
  padding: 8px;
  font-size: 12px;
}

.profile-photo-controls .btn {
  justify-self: start;
}

.admin-row img.admin-avatar {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(20, 116, 103, 0.22);
  border-radius: 50%;
  object-fit: cover;
}

.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);
}

/* Refined admin workspace: quiet surfaces, clear navigation, and denser content. */
.admin-body {
  color: #17302d;
  background-color: #f2f6f4;
  background-image:
    linear-gradient(rgba(29, 78, 72, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 72, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

.admin-body .topbar {
  min-height: 72px;
  margin: 16px 18px 0 306px;
  padding: 12px 22px;
  border-color: rgba(20, 65, 59, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(20, 53, 48, 0.08);
}

.admin-body .brand {
  gap: 10px;
}

.admin-body .brand-logo {
  width: 42px;
  height: 48px;
}

.admin-body .brand strong {
  color: #173f3b;
  font-size: 15px;
  letter-spacing: 0;
}

.admin-body .brand small {
  margin-top: 2px;
  color: #66807b;
  font-size: 12px;
}

.admin-sidebar {
  top: 16px;
  bottom: 16px;
  left: 18px;
  width: 270px;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: #143d38;
  box-shadow: 0 18px 48px rgba(16, 51, 46, 0.2);
  backdrop-filter: none;
}

.sidebar-title {
  gap: 6px;
  padding: 16px 14px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
}

.sidebar-title span {
  color: #f2c34b;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.sidebar-title strong {
  color: #ffffff;
  font-size: 18px;
}

.sidebar-user {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 10px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-user img {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(242, 195, 75, 0.78);
}

.sidebar-user strong {
  color: #ffffff;
  font-size: 14px;
}

.sidebar-user span {
  margin-top: 2px;
  color: #b9d4ce;
  font-size: 10px;
  letter-spacing: 0.07em;
}

.admin-sidebar nav {
  gap: 4px;
  padding: 3px 1px 10px;
}

.admin-sidebar nav a {
  position: relative;
  min-height: 42px;
  padding: 11px 12px 11px 16px;
  border: 0;
  border-radius: 6px;
  color: #dbece7;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.admin-sidebar nav a::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 5px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.admin-sidebar nav a:hover {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: translateX(2px);
}

.admin-sidebar nav a.active {
  color: #143d38;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(4, 24, 21, 0.16);
}

.admin-sidebar nav a.active::before {
  background: #e5b933;
}

.admin-sidebar nav .logout-link {
  margin-top: 10px;
  color: #ffcdc8;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
}

.admin-sidebar nav .logout-link:hover {
  color: #ffffff;
  background: rgba(190, 54, 44, 0.26);
}

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

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

.admin-body .admin-wrap {
  width: min(1320px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.admin-body .admin-wrap > h1 {
  position: relative;
  width: auto;
  margin: 0 0 26px;
  padding: 0 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #143d38;
  font-size: 32px;
  line-height: 1.15;
}

.admin-body .admin-wrap > h1::before {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: #e5b933;
  content: "";
}

.admin-body .auth form,
.admin-body .editor,
.admin-body .stats div,
.admin-body .table > div,
.admin-body .admin-note {
  border-color: rgba(20, 65, 59, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(20, 53, 48, 0.07);
  backdrop-filter: none;
}

.admin-body .editor {
  gap: 16px;
  padding: 26px;
}

.admin-body .editor label {
  color: #274c46;
  font-size: 13px;
}

.admin-body input,
.admin-body textarea,
.admin-body select {
  min-height: 44px;
  border-color: #d7e3df;
  border-radius: 6px;
  background: #fbfdfc;
  box-shadow: none;
}

.admin-body input:focus,
.admin-body textarea:focus,
.admin-body select:focus {
  border-color: #178274;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(23, 130, 116, 0.13);
}

.admin-body .btn {
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 6px;
  box-shadow: none;
  font-size: 13px;
}

.admin-body .btn:hover {
  box-shadow: 0 7px 16px rgba(20, 53, 48, 0.12);
  transform: translateY(-1px);
}

.admin-body .btn.primary {
  border-color: #147467;
  background: #147467;
}

.admin-body .btn.primary:hover {
  background: #0f6258;
}

.admin-body .stats {
  gap: 14px;
}

.admin-body .stats div {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 21px;
}

.admin-body .stats div::after {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 74px;
  height: 74px;
  border: 14px solid rgba(229, 185, 51, 0.18);
  border-radius: 50%;
  content: "";
}

.admin-body .stats strong {
  position: relative;
  z-index: 1;
  color: #147467;
  font-size: 38px;
}

.admin-body .stats span {
  position: relative;
  z-index: 1;
  color: #637b76;
  font-size: 13px;
  font-weight: 700;
}

.admin-body .table {
  gap: 8px;
  margin-top: 18px;
}

.admin-body .table > div {
  min-height: 84px;
  padding: 14px 16px;
}

.admin-body .stats div:hover,
.admin-body .table > div:hover,
.admin-body .editor:hover {
  border-color: rgba(20, 116, 103, 0.3);
  box-shadow: 0 15px 34px rgba(20, 53, 48, 0.11);
  transform: translateY(-2px);
}

.admin-body .admin-row-main strong {
  margin-bottom: 3px;
  color: #173f3b;
  font-size: 15px;
}

.admin-body .table span {
  color: #66807b;
  font-size: 13px;
  line-height: 1.45;
}

.admin-row img {
  width: 96px;
  height: 66px;
  border-radius: 6px;
}

.admin-body .footer {
  margin: 0 18px 18px 306px;
  padding: 18px 22px;
  border-radius: 8px;
  background: #143d38;
  box-shadow: none;
}

@media (max-width: 920px) {
  .headline-bar > div {
    align-items: flex-start;
    padding: 10px 0;
  }

  .headline-bar a {
    white-space: normal;
  }

  .headline-bar time {
    display: none;
  }

  .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);
  }

  .admin-body .footer {
    margin: 0 10px 10px;
  }

  .admin-body .admin-wrap {
    width: min(100% - 28px, 1320px);
    padding-top: 28px;
  }

  .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;
  }

  .slide {
    grid-template-rows: minmax(230px, 42%) 1fr;
  }

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

  .portal-stats-title {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 32, 42, 0.12);
  }

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

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

  .announcement-upload {
    grid-template-columns: 1fr;
  }

  .profile-photo-editor {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: auto;
  }

  .profile-photo-preview {
    width: 78px;
    height: 78px;
  }

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

  .hero.hero-artwork {
    padding: 0;
  }

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

  .announcement-article {
    padding-top: 36px;
  }

  .announcement-header {
    padding: 24px;
  }

  .article-content p {
    font-size: 16px;
    line-height: 1.72;
  }

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

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

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

@media (max-width: 640px) {
  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .pagination .page-nav {
    min-width: 100%;
  }

  .officials-feature {
    margin-top: -18px;
  }

  .officials-feature .leaders article {
    min-height: 140px;
  }

  .officials-feature .leaders h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .leaders article {
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .leaders img {
    width: 112px;
    height: 140px;
  }

  .term-banner {
    align-items: flex-start;
    flex-direction: column;
  }
}
