:root {
  --navy: #10243f;
  --navy-mid: #17345a;
  --navy-deep: #0b1830;
  --gold: #c4a15a;
  --gold-warm: #d7ad55;
  --gold-soft: #e8d7a8;
  --cream: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1d2633;
  --muted: #5d6774;
  --line: #e4dccb;
  --danger: #9b2c2c;
  --ok: #1f6b4a;
  --shadow: 0 18px 40px rgba(16, 36, 63, 0.12);
  --radius: 18px;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -10%, #fff8e8 0, transparent 28%),
    #f3eee4;
  font-family: Vazirmatn, Tahoma, sans-serif;
  line-height: 1.8;
}

body[data-page="news"] .page-main,
body[data-page="announcements"] .page-main,
body[data-page="dashNews"] .page-main,
body[data-page="dashAnnouncements"] .page-main {
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.ck-content,
.article-body {
  --ck-content-font-family: Vazirmatn, Tahoma, sans-serif;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

body[data-page="news"] .ck-content *:not(code):not(pre),
body[data-page="announcements"] .ck-content *:not(code):not(pre),
body[data-page="dashNews"] .ck-content *:not(code):not(pre),
body[data-page="dashAnnouncements"] .ck-content *:not(code):not(pre),
body[data-page="news"] .article-body *:not(code):not(pre),
body[data-page="announcements"] .article-body *:not(code):not(pre) {
  font-family: Vazirmatn, Tahoma, sans-serif !important;
}

img {
  max-width: 100%;
  display: block;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

.page-main {
  flex: 1;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
}

.header-top {
  background: #0c2340;
  color: #fff;
}

.header-top__inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark,
.header-top .brand__mark {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
  filter: invert(78%) sepia(42%) saturate(620%) hue-rotate(6deg) brightness(1.12);
}

.header-top .brand__logo {
  height: 76px;
  width: auto;
  max-width: min(840px, 92vw);
  object-fit: contain;
  filter: invert(78%) sepia(42%) saturate(620%) hue-rotate(6deg) brightness(1.12);
}

.brand--light {
  margin-bottom: 16px;
}

.brand--light .brand__mark,
.brand--light .brand__logo {
  filter: brightness(0) invert(1);
}

.brand--light .brand__mark {
  width: 48px;
  height: 48px;
}

.brand--light .brand__logo {
  max-width: min(360px, 100%);
  height: 40px;
}

.header-top__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.util-nav {
  display: flex;
  align-items: center;
}

.util-nav__link,
.util-nav a {
  color: #fff;
  font-size: 0.84rem;
  padding: 4px 12px;
  white-space: nowrap;
  line-height: 1.2;
}

.util-nav__link + .util-nav__link {
  border-inline-start: 1px solid rgba(255, 255, 255, 0.55);
}

.util-nav__link:hover,
.util-nav__link.is-active,
.footer__link:hover,
.card-link:hover {
  color: #f0d9a0;
}

.search-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #c4a15a;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.header-main {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transform: translateY(50%);
  z-index: 6;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.main-nav {
  width: max-content;
  max-width: calc(100% - 80px);
  margin: 0 auto;
  background: #c6a971;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(8, 22, 40, 0.18);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
  padding: 2px 10px;
  pointer-events: auto;
}

.menu-item {
  position: relative;
}

.menu-item__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0c2340;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 12px;
  white-space: nowrap;
}

.menu-item.is-current > .menu-item__link,
.menu-item__link:hover {
  color: #081628;
}

.menu-item__caret {
  width: 0;
  height: 0;
  border-inline-start: 4px solid transparent;
  border-inline-end: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.dropdown {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
}

.dropdown a:hover {
  background: var(--cream);
}

.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  display: block;
}

.search-panel {
  background: #102033;
  padding: 14px 0 18px;
}

.search-panel__form {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-panel input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
}

.breadcrumb {
  background: #e9e9e9;
  color: #8a8a8a;
  font-size: 0.84rem;
  min-height: 36px;
  padding-top: 28px;
}

.breadcrumb__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: var(--navy);
}

body[data-page="home"] .page-main {
  margin-top: 0;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: #fff;
}

.mobile-nav {
  display: none;
  background: #102033;
  padding: 4px 12px 16px;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 80;
}

.mobile-nav[hidden] {
  display: none !important;
}

.util-nav--mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  padding: 8px 4px 12px;
}

.util-nav--mobile a {
  padding: 10px 8px;
}

.mobile-nav a,
.mobile-acc summary {
  color: #fff;
}

.mobile-acc {
  display: block;
  position: relative;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 8px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  line-height: 1.4;
}

.mobile-acc summary::-webkit-details-marker,
.mobile-acc summary::marker {
  display: none;
  content: "";
}

.mobile-acc summary::after {
  content: "";
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-inline-start: 5px solid transparent;
  border-inline-end: 5px solid transparent;
  border-top: 6px solid currentColor;
}

.mobile-acc[open] summary::after {
  transform: rotate(180deg);
}

.mobile-acc__panel {
  display: grid;
  gap: 2px;
  padding: 0 8px 12px 20px;
}

.mobile-acc__panel a {
  display: block;
  color: var(--gold-soft);
  padding: 10px 8px;
  line-height: 1.4;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--navy {
  background: var(--navy);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Slider */

.slider {
  position: relative;
  height: min(72vh, 640px);
  overflow: hidden;
  background: var(--navy-deep);
}

.slider [data-slides] {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(8, 18, 34, 0.78) 0%, rgba(8, 18, 34, 0.42) 52%, rgba(8, 18, 34, 0.22) 100%),
    linear-gradient(to top, rgba(8, 18, 34, 0.45), transparent 42%);
}

.slide__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.slide__kicker {
  display: inline-block;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.slide h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.35;
  max-width: 20ch;
}

.slide p {
  margin: 0;
  color: #dbe3ef;
  font-size: 1.05rem;
}

.slider__nav {
  position: absolute;
  z-index: 3;
  inset-inline: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider__btn,
.slider__dots button {
  pointer-events: auto;
  border: 0;
  cursor: pointer;
}

.slider__btn {
    font-size:xxx-large;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  color: #fff;
}

.slider__dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.slider__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.slider__dots button.is-active {
  background: var(--gold);
  width: 28px;
  border-radius: 999px;
}

.showcase-section {
  padding-bottom: 56px;
}

.showcase {
  --showcase-gap: 20px;
  --per-view: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.showcase__viewport {
  overflow: hidden;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.showcase__track {
  display: flex;
  gap: var(--showcase-gap);
  transition: transform 0.55s ease;
  will-change: transform;
}

.showcase__item {
  flex: 0 0 150px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: var(--navy);
  user-select: none;
  -webkit-user-select: none;
}

.showcase__square {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}

.showcase__square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-user-drag: none;
  pointer-events: none;
}

.showcase__name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 4.5em;
}

.showcase__btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.showcase__btn:hover {
  background: var(--navy-mid);
}

.showcase.is-dragging {
  user-select: none;
}

.showcase.is-dragging .showcase__viewport {
  cursor: grabbing;
  touch-action: none;
}

.showcase.is-dragging .showcase__item {
  pointer-events: none;
}

/* Home sections */

.section {
  padding: 72px 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 6px;
}

.section h2,
.article h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.home-feed {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.home-feed__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 28px;
  min-height: 0;
}

.home-feed__news,
.home-feed__side .panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.home-feed__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-feed__body .list-item,
.home-feed__body .news-card {
  flex: 1;
}

.home-feed__side .panel__head h2 {
  font-size: 1.15rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 12px;
}

.list-item,
.news-card {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.list-item h3,
.news-card h3,
.faculty h3,
.card h3,
.article h1 {
  margin: 8px 0 0;
  color: var(--navy);
  line-height: 1.5;
}

.list-item p,
.news-card p,
.faculty p {
  margin: 6px 0 0;
  color: var(--muted);
}

.list-item {
  grid-template-columns: 1fr;
  align-items: start;
}

.item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-line {
  display: inline-block;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.article .item-meta {
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: #efe6d2;
  color: #6d5420;
  font-size: 0.75rem;
  font-weight: 700;
}

.chip--ok {
  background: #e7f6ee;
  color: var(--ok);
}

.chip--err {
  background: #fdecec;
  color: var(--danger);
}

.chip--warn {
  background: #fff4e0;
  color: #8a5a12;
}

.toolbar-search {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-search input,
.toolbar-search select {
  min-width: min(180px, 100%);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}

.toolbar-search input {
  min-width: min(260px, 100%);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn--danger {
  background: #fdecec;
  color: var(--danger);
  border: 1px solid #f0c4c4;
}

.btn--danger:hover {
  background: #f8d4d4;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.toolbar h2 {
  margin: 0;
  color: var(--navy);
}

.panel-nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
}

.panel-nav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.panel-nav__link {
  color: #d7deea;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.panel-nav__link:hover,
.panel-nav__link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.panel-nav__link.is-active {
  color: var(--gold-soft);
}

.panel-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card {
  width: min(560px, 100%);
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 28px 28px;
}

.form-card::before {
  content: "";
  display: block;
  height: 6px;
  margin: 0 -28px 24px;
  background: linear-gradient(90deg, var(--gold), var(--gold-warm), var(--gold-soft));
}

.form-card .form {
  margin-top: 8px;
}

.news-card {
  grid-template-columns: 132px 1fr;
}

.news-card img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}

.news-aside {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}

.news-aside img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.news-aside h3 {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--navy);
}

.more-link {
  color: var(--navy-mid);
  font-weight: 700;
}

/* Inner pages */

.page-hero {
  background:
    linear-gradient(120deg, rgba(11, 24, 48, 0.88), rgba(16, 36, 63, 0.72)),
    url("../img/slides/hall.jpg") center/cover;
  color: #fff;
  padding: 72px 0 56px;
}

.page-hero p {
  max-width: 72ch;
  color: #d7deea;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.faculty,
.stat,
.person-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}

.stack {
  display: grid;
  gap: 16px;
}

.prose {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.prose h2 {
  margin: 0 0 12px;
}

.prose p {
  margin: 0 0 12px;
}

.prose .btn {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.data-table tbody tr:nth-child(even) {
  background: var(--cream);
}

.data-table .btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.data-table__codes {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.person-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: start;
  color: inherit;
}

a.person-card:hover {
  border-color: var(--gold);
}

.person-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--navy);
}

.person-card h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.5;
}

.person-card p {
  margin: 8px 0 0;
}

.person-card__degree {
  margin: 6px 0 0;
  color: #5c4a2a;
  font-size: 0.92rem;
}

.person-card__contacts {
  margin: 8px 0 0;
  color: #4a5560;
  font-size: 0.9rem;
}

.person-card .item-meta {
  margin-top: 8px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.person-detail {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.person-detail img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--navy);
}

.person-detail h1 {
  margin: 0;
}

.data-table tbody th {
  width: 11rem;
  background: var(--cream);
  color: var(--navy);
  font-weight: 700;
}

.group-links {
  display: grid;
  gap: 10px;
}

.group-links__item {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

.group-links__item:hover {
  border-color: var(--gold);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 1.8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label,
.form .form-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
}

.alert--ok {
  background: #e7f6ee;
  color: var(--ok);
}

.alert--err {
  background: #fdecec;
  color: var(--danger);
}

.btn--line {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.auth-card,
.status-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card {
  width: min(460px, 100%);
  margin-inline: auto;
  padding: 0 28px 28px;
}

.auth-card::before,
.status-card::before {
  content: "";
  display: block;
  height: 6px;
  margin: 0 -28px 24px;
  background: linear-gradient(90deg, var(--gold), var(--gold-warm), var(--gold-soft));
}

.status-card::before {
  margin: 0 0 8px;
}

.auth-card__brand {
  text-align: center;
  margin-bottom: 22px;
}

.auth-card__brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.auth-card__brand h2 {
  margin: 0 0 6px;
  color: var(--navy);
}

.auth-card__brand p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.form .password-field input {
  width: 100%;
  padding-inline-end: 44px;
}

.password-field__toggle {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy-mid);
  cursor: pointer;
  padding: 0;
}

.password-field__toggle svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
}

.password-field__toggle .icon-eye-off,
.password-field__toggle.is-visible .icon-eye {
  display: none;
}

.password-field__toggle .icon-eye,
.password-field__toggle.is-visible .icon-eye-off {
  display: block;
}

.password-field__toggle:hover {
  color: var(--navy);
  background: var(--cream);
}

.auth-card__actions,
.status-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-card__actions {
  margin-top: 6px;
}

.auth-card__actions .btn,
.status-card__actions .btn {
  flex: 1 1 140px;
}

.form .otp-input {
  text-align: center;
  letter-spacing: 0.45em;
  font-size: 1.35rem;
  font-weight: 700;
}

.auth-card__more {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  justify-items: center;
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  padding: 0;
}

.auth-card__staff {
  margin: 22px 0 0;
  text-align: center;
  font-size: 0.84rem;
}

.auth-card__staff a {
  color: var(--muted);
}

.status-card {
  text-align: center;
  padding: 36px 28px 40px;
}

.status-card__code {
  margin: 0;
  color: var(--gold);
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
}

.status-card h2 {
  margin: 8px 0 12px;
  color: var(--navy);
}

.status-card p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--muted);
}

.status-card__actions {
  justify-content: center;
  margin-top: 28px;
}

.map {
  display: block;
  height: 240px;
  border: 0;
  width: 100%;
  border-radius: 14px;
  margin-top: 16px;
  background: #eef3ea;
}

.map--large {
  height: 420px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}

.article img.cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 20px;
}

.article-body {
  line-height: 1.95;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.article-body th,
.article-body td {
  border: 1px solid var(--line);
  padding: 8px 10px;
}

.article-body figure {
  margin: 16px 0;
}

.article-body figure img,
.article-body p img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.article-body p {
  margin: 0 0 12px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 14px 0;
  padding-inline-start: 22px;
}

.article-body h3,
.article-body h4 {
  margin: 18px 0 8px;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.news-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.form-card--wide {
  width: min(960px, 100%);
}

.form-hint {
  font-size: 13px;
  font-weight: 500;
  color: #6d6458;
}

.cover-upload__status {
  margin: 0;
}

.cover-upload__status.is-ok {
  color: var(--ok);
}

.cover-upload__status.is-err {
  color: var(--danger);
}

.cover-upload.is-busy {
  opacity: 0.85;
}

.upload-preview,
.gallery-keep {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.upload-preview img,
.gallery-keep img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.form .gallery-keep__item {
  width: auto;
  font-weight: 500;
}

.form .gallery-keep__item input {
  width: auto;
}

.admin-sheet {
  width: min(980px, 100%);
  margin-inline: auto;
  background:
    linear-gradient(180deg, rgba(196, 161, 90, 0.08), transparent 90px),
    var(--paper);
  border: 2px solid var(--navy);
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-sheet__head {
  display: grid;
  grid-template-columns: 96px 1fr 180px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, #0c2340 0%, var(--navy-mid) 100%);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}

.admin-sheet__emblem {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 215, 168, 0.45);
}

.admin-sheet__emblem img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: invert(78%) sepia(42%) saturate(620%) hue-rotate(6deg) brightness(1.12);
}

.admin-sheet__titles {
  text-align: center;
  min-width: 0;
}

.admin-sheet__country {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold-soft);
}

.admin-sheet__org {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #d7deea;
  line-height: 1.6;
}

.admin-sheet__titles h2 {
  margin: 6px 0 2px;
  color: #fff;
  font-size: 1.25rem;
}

.admin-sheet__titles p:last-child {
  margin: 0;
  font-size: 0.84rem;
  color: #c9d3e2;
}

.admin-sheet__meta {
  margin: 0;
  display: grid;
  gap: 8px;
  background: rgba(11, 24, 48, 0.35);
  border: 1px solid rgba(232, 215, 168, 0.28);
  padding: 10px 12px;
  font-size: 0.78rem;
}

.admin-sheet__meta div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.admin-sheet__meta dt {
  color: var(--gold-soft);
}

.admin-sheet__meta dd {
  margin: 0;
  font-weight: 700;
}

.admin-sheet__note {
  margin: 16px 22px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
}

.admin-sheet__note.is-ok {
  background: #e7f6ee;
  color: var(--ok);
  border-color: #b7deca;
}

.admin-sheet__note.is-err {
  background: #fdecec;
  color: var(--danger);
  border-color: #f0c4c4;
}

.admin-form {
  padding: 8px 22px 24px;
}

.admin-block {
  margin-top: 18px;
}

.admin-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 0;
  padding: 8px 10px;
  background: #e8eef6;
  color: var(--navy);
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  border-bottom: 0;
}

.admin-block__title span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--navy);
  border-inline-start: 1px solid var(--navy);
}

.admin-cell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 70px;
  border-inline-end: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
  background: #fff;
}

.admin-cell--span-2 {
  grid-column: span 2;
}

.admin-cell > label,
.admin-cell__label {
  display: block;
  padding: 5px 10px 4px;
  background: #eef2f7;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  border-bottom: 1px solid #d5dbe4;
}

.admin-form .admin-cell > input,
.admin-form .admin-cell > select {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 10px;
  min-height: 38px;
}

.admin-form .admin-cell > input:focus,
.admin-form .admin-cell > select:focus {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.admin-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  align-items: center;
}

.admin-choice__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #c5cdd8;
  background: #f7f9fc;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.admin-choice__item:has(input:checked) {
  border-color: var(--navy);
  background: #e8eef6;
  color: var(--navy);
}

.admin-choice__item input {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--navy);
}

.admin-docs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--navy);
  background:
    repeating-linear-gradient(
      -45deg,
      #fbf8f1,
      #fbf8f1 10px,
      #f4efe4 10px,
      #f4efe4 20px
    );
}

.admin-doc {
  background: #fff;
  border: 1px solid var(--navy);
  padding: 10px;
  text-align: center;
}

.admin-doc__caption {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.admin-doc h4 {
  margin: 2px 0 10px;
  color: var(--navy);
  font-size: 0.92rem;
}

.admin-doc__frame {
  position: relative;
  min-height: 170px;
  border: 1px dashed #8b96a6;
  background: repeating-linear-gradient(
    45deg,
    #f7f9fc,
    #f7f9fc 8px,
    #eef2f7 8px,
    #eef2f7 16px
  );
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-doc.is-uploaded .admin-doc__frame {
  border-style: solid;
  border-color: var(--navy);
  background: #0b1830;
}

.admin-doc__frame img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: #0b1830;
}

.admin-doc__empty {
  display: grid;
  gap: 4px;
  color: var(--navy-mid);
  padding: 12px;
}

.admin-doc__empty span {
  font-weight: 700;
}

.admin-doc__empty small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.admin-doc__progress {
  position: absolute;
  inset: auto 10px 10px;
  height: 22px;
  background: rgba(11, 24, 48, 0.78);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.admin-doc__progress span {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-doc__progress i {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  background: var(--gold);
}

.admin-doc__pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--navy);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-doc__pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-doc.is-busy .admin-doc__pick {
  opacity: 0.55;
  pointer-events: none;
}

.admin-doc__status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.admin-doc__status.is-ok {
  color: var(--ok);
}

.admin-doc__status.is-err {
  color: var(--danger);
}

.admin-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 2px solid var(--navy);
}

.admin-sheet__actions .btn {
  border-radius: 4px;
  min-width: 160px;
}

.admin-form.is-saving .admin-sheet__actions .btn[type="submit"] {
  opacity: 0.65;
  pointer-events: none;
}

.admin-sheet__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-form--readonly .admin-cell > input,
.admin-form--readonly .admin-cell > select {
  color: var(--navy);
  pointer-events: none;
}

.admin-form--readonly .admin-choice__item {
  cursor: default;
}

.status-card code {
  direction: ltr;
  display: inline-block;
  margin-top: 8px;
}

/* Footer */

.site-footer {
  margin-top: auto;
  background: var(--navy-deep);
  color: #d5dce8;
}

.footer__main {
  padding: 40px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: auto 1.2fr 0.8fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.footer__crest {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.footer__crest img {
    max-height: 300px;
  height: 40vh;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__about,
.footer__info,
.footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links,
.footer__info {
  display: grid;
  gap: 8px;
}

.footer__copy {
    display: grid;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    font-size: 0.9rem;
    color: #9aa6b8;
    grid-auto-flow: row;
}

@media (max-width: 1200px) {
  .util-nav:not(.util-nav--mobile),
  .header-main {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .header-top {
    padding-bottom: 0;
  }

  .header-top__inner {
    min-height: 72px;
    width: min(1280px, calc(100% - 24px));
    gap: 10px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .header-top .brand__logo {
    max-width: 100%;
    height: 42px;
  }

  .header-top .brand__mark {
    width: 40px;
    height: 40px;
  }

  .header-top__tools {
    flex-shrink: 0;
    gap: 8px;
  }

  .breadcrumb {
    padding-top: 8px;
  }

  body[data-page="home"] .page-main {
    margin-top: 0;
  }

  .section {
    padding: 48px 0;
  }

  .split,
  .home-feed,
  .cards,
  .stats,
  .contact-grid,
  .article-layout,
  .footer__grid,
  .news-card,
  .list-item {
    grid-template-columns: 1fr;
  }

  .home-feed__side {
    grid-template-rows: auto;
  }

  .home-feed__body .list-item,
  .home-feed__body .news-card {
    flex: none;
  }

  .slider {
    height: min(62vh, 480px);
  }

  .slide h2 {
    max-width: none;
    font-size: clamp(1.35rem, 6vw, 2.2rem);
  }

  .slide p {
    font-size: 0.95rem;
  }

  .news-card img {
    width: 100%;
    height: 180px;
  }

  .data-table {
    min-width: 520px;
  }

  .data-table__codes {
    white-space: normal;
  }

  .person-card,
  .person-detail {
    grid-template-columns: 72px 1fr;
  }

  .person-detail img {
    width: 72px;
    height: 72px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .footer__crest img {
    height: auto;
    max-height: 160px;
    width: min(180px, 100%);
  }

  .map--large {
    height: 280px;
  }

  .showcase__item,
  .showcase__square {
    width: 120px;
  }

  .showcase__square {
    height: 120px;
  }

  .showcase__viewport {
    cursor: grab;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel__head {
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-panel__form {
    flex-direction: column;
  }

  .auth-card,
  .status-card {
    padding-inline: 20px;
  }

  .form-card {
    padding-inline: 20px;
  }

  .form-card::before {
    margin-inline: -20px;
  }

  .admin-sheet {
    outline-offset: 2px;
  }

  .admin-sheet__head {
    grid-template-columns: 72px 1fr;
  }

  .admin-sheet__meta {
    grid-column: 1 / -1;
  }

  .admin-form {
    padding-inline: 14px;
  }

  .admin-grid,
  .admin-docs {
    grid-template-columns: 1fr 1fr;
  }

  .admin-cell--span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1140px, calc(100% - 20px));
  }

  .header-top__inner {
    min-height: 64px;
  }

  .header-top .brand__logo {
    height: 34px;
  }

  .prose {
    padding: 18px;
  }

  .cards {
    gap: 12px;
  }

  .slider__btn {
    font-size: 2rem;
    width: 36px;
    height: 36px;
  }

  .showcase {
    --showcase-gap: 14px;
    --per-view: 2;
    display: block;
    position: relative;
  }

  .showcase--single {
    --per-view: 1;
    --showcase-gap: 0px;
  }

  .showcase__viewport {
    min-height: 0;
  }

  .showcase__track {
    gap: var(--showcase-gap);
  }

  .showcase--pair .showcase__item {
    flex: 0 0 calc((100% - var(--showcase-gap)) / 2);
    width: auto;
  }

  .showcase--single .showcase__item {
    flex: 0 0 100%;
    width: auto;
  }

  .showcase:not(.showcase--single):not(.showcase--pair) .showcase__item {
    flex: 0 0 calc((100% - var(--showcase-gap)) / 2);
    width: auto;
  }

  .showcase__square {
    width: min(158px, 100%);
    height: auto;
    aspect-ratio: 1;
    padding: 12px;
  }

  .showcase--single .showcase__square {
    width: min(188px, 72%);
  }

  .showcase--single .showcase__btn {
    top: 76px;
  }

  .showcase__name {
    min-height: 3.2em;
    font-size: 0.86rem;
    padding-inline: 6px;
  }

  .showcase__btn {
    position: absolute;
    z-index: 3;
    top: 62px;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    opacity: 0.92;
    box-shadow: 0 8px 18px rgba(16, 36, 63, 0.22);
  }

  .showcase [data-showcase-prev] {
    inset-inline-start: 4px;
  }

  .showcase [data-showcase-next] {
    inset-inline-end: 4px;
  }

  .footer__copy {
    text-align: center;
  }

  .admin-sheet__head,
  .admin-grid,
  .admin-docs {
    grid-template-columns: 1fr;
  }

  .admin-cell--span-2 {
    grid-column: span 1;
  }

  .admin-sheet__titles h2 {
    font-size: 1.05rem;
  }

  .admin-sheet__actions .btn {
    min-width: 0;
    flex: 1 1 140px;
  }
}

@media (max-width: 340px) {
  .showcase:not(.showcase--pair) {
    --per-view: 1;
    --showcase-gap: 0px;
  }

  .showcase:not(.showcase--pair) .showcase__item {
    flex: 0 0 100%;
  }

  .showcase:not(.showcase--pair) .showcase__square {
    width: min(188px, 72%);
  }

  .showcase:not(.showcase--pair) .showcase__btn {
    top: 76px;
  }
}
