:root {
  --navy: #08315f;
  --navy-2: #0e4f86;
  --sky: #53b3e8;
  --sky-soft: #eaf6fd;
  --gold: #f7c948;
  --gold-dark: #8a6200;
  --green: #2e7d64;
  --coral: #b53d29;
  --ink: #142033;
  --muted: #617087;
  --line: #dbe6ef;
  --surface: #ffffff;
  --soft: #f5f9fc;
  --shadow: 0 18px 40px rgba(8, 49, 95, 0.12);
  --radius: 8px;
  --content-font-size: 16px;
}

html.high-contrast {
  --navy: #001a33;
  --navy-2: #003b66;
  --sky: #0077b6;
  --sky-soft: #e6f4ff;
  --gold: #ffd800;
  --gold-dark: #765500;
  --ink: #000000;
  --muted: #354052;
  --line: #526273;
  --soft: #f2f6f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main,
.site-footer {
  font-size: var(--content-font-size);
}

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

img.image-fallback {
  object-fit: contain;
  padding: 32px;
  background: var(--sky-soft);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

.rich-text a,
.contact-info a,
.sitemap-card a {
  color: var(--navy-2);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rich-text a:visited,
.contact-info a:visited,
.sitemap-card a:visited {
  color: #62448a;
}

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

button {
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.main-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand img,
.admin-brand img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
}

.nav-menu > a,
.dropdown-toggle {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink);
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-menu > a:hover,
.nav-menu > a.active,
.dropdown-toggle.active,
.dropdown:hover .dropdown-toggle {
  background: var(--sky-soft);
  color: var(--navy);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown:hover > .dropdown-menu:not([hidden]),
.dropdown:focus-within > .dropdown-menu:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.dropdown-menu a:hover {
  background: var(--sky-soft);
  color: var(--navy);
}

.site-search {
  display: flex;
  align-items: center;
  min-width: 140px;
  max-width: 190px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.site-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 8px 9px;
}

.site-search button {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 20px;
}

.language-switch {
  font-weight: 800;
}

.accessibility-tools {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.accessibility-tools button {
  min-width: 34px;
  min-height: 34px;
  padding: 4px 6px;
  border: 0;
  border-radius: 5px;
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 900;
}

.accessibility-tools button:hover,
.accessibility-tools button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.nav-action {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  min-height: 72vh;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero__overlay {
  min-height: 72vh;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(8, 49, 95, 0.88), rgba(8, 49, 95, 0.42), rgba(8, 49, 95, 0.2));
}

.hero__content {
  max-width: 760px;
  padding: 84px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0;
}

.hero .eyebrow,
.section--blue .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  color: var(--navy);
}

.hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(38px, 7vw, 72px);
}

.hero__lead {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(8, 49, 95, 0.16);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--light {
  background: #fff;
  color: var(--navy);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
  background: #fff;
}

.quick-band {
  background: var(--navy);
  color: #fff;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-grid a {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
  text-align: center;
}

.quick-grid a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.quick-grid a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 76px 0;
}

.section--soft {
  background: var(--soft);
}

.section--blue {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.section--blue h2,
.section--blue p {
  color: #fff;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
}

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

.text-link {
  color: var(--navy);
  font-weight: 800;
  border-bottom: 2px solid var(--gold);
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.news-card,
.person-card,
.notice-card,
.value-card,
.compact-card,
.album-card,
.side-panel,
.contact-form,
.contact-info,
.admin-panel,
.project-row,
.document-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 49, 95, 0.08);
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--sky-soft);
}

.card-body {
  padding: 18px;
}

.card-body h2,
.card-body h3,
.compact-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

.card-body p,
.compact-card p,
.notice-card p,
.value-card p,
.project-row p,
.document-row p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

time {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.notice-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notice-card,
.value-card,
.compact-card {
  padding: 22px;
}

.notice-card span {
  color: var(--coral);
  font-weight: 800;
}

.split-layout,
.content-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: start;
}

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

.feature-list div,
.timeline-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.feature-list strong,
.timeline-item strong {
  color: var(--gold);
  font-size: 24px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: 210px;
  gap: 14px;
}

.gallery-strip .gallery-tile:first-child {
  grid-row: span 2;
}

.gallery-tile,
.gallery-item {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--sky-soft);
}

.gallery-tile img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-tile:hover img,
.gallery-item:hover img {
  transform: scale(1.04);
}

.page-hero {
  padding: 58px 0 52px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.page-hero h1,
.page-hero p {
  max-width: 820px;
  color: #fff;
}

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

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: #a8b8c8;
}

.rich-text {
  font-size: 18px;
}

.rich-text h3 {
  margin: 28px 0 10px;
}

.rich-text p {
  color: #314057;
}

.rich-text ul {
  padding-left: 22px;
}

.side-panel {
  padding: 24px;
}

.side-panel h2 {
  margin-bottom: 12px;
}

.doc-link {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.doc-link span {
  display: block;
  font-weight: 800;
}

.doc-link small,
.muted {
  color: var(--muted);
}

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sky-soft);
}

.person-card div {
  padding: 18px;
}

.person-card h2 {
  margin-top: 10px;
  font-size: 23px;
}

.filter-bar,
.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-bar a {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 800;
}

.filter-bar a.active,
.filter-bar a:hover {
  background: var(--navy);
  color: #fff;
}

.filter-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.filter-panel input,
.filter-panel select,
.admin-form input,
.admin-form select,
.admin-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.filter-panel input {
  flex: 1 1 260px;
}

.filter-panel select {
  flex: 0 1 230px;
}

.article-header {
  padding: 64px 0 28px;
}

.article-header h1 {
  margin: 12px 0;
  max-width: 900px;
  font-size: clamp(34px, 6vw, 58px);
}

.article-image {
  width: min(1160px, calc(100% - 32px));
  height: min(56vw, 520px);
  margin: 0 auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.article-content {
  max-width: 860px;
  padding: 36px 0 76px;
}

.lead {
  font-size: 22px;
  color: var(--navy) !important;
}

.project-list,
.document-list,
.search-results {
  display: grid;
  gap: 16px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sitemap-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 49, 95, 0.08);
}

.sitemap-card h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.sitemap-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.project-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 18px;
}

.project-row img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius);
}

.document-row,
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
}

.result-row {
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-row span {
  color: var(--muted);
}

.album-row,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.album-row {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 28px;
}

.album-card {
  overflow: hidden;
}

.album-card img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.album-card div {
  padding: 18px;
}

.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  position: relative;
  height: 250px;
  text-align: left;
}

.gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(8, 49, 95, 0.78);
  border-radius: var(--radius);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-info,
.contact-form {
  padding: 24px;
}

.contact-info iframe {
  width: 100%;
  height: 300px;
  margin-top: 18px;
  border: 0;
  border-radius: var(--radius);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.social-row a {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: var(--navy);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.not-found {
  min-height: 64vh;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.not-found h1,
.not-found p {
  color: #fff;
}

.flash-wrap {
  display: grid;
  gap: 10px;
  padding-top: 16px;
}

.flash {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--sky-soft);
}

.flash--success {
  border-color: #b9dfcf;
  background: #eaf7f1;
  color: var(--green);
}

.flash--danger {
  border-color: #efc4bb;
  background: #fff1ee;
  color: var(--coral);
}

.flash--warning {
  border-color: #f4df96;
  background: #fff8df;
  color: #7b5d09;
}

.site-footer {
  color: #dce8f3;
  background: #061f3e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 52px 0;
}

.footer-logo {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 8px 0;
  color: #dce8f3;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebed0;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: min(520px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-actions button {
  border: 0;
  border-radius: var(--radius);
  padding: 9px 13px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.cookie-actions .cookie-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(6, 31, 62, 0.88);
}

.lightbox img {
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-size: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, calc(100% - 48px));
  }
}

@media (max-width: 1200px) {
  .main-nav {
    gap: 12px;
  }

  .nav-menu > a,
  .dropdown-toggle {
    padding-inline: 8px;
  }
}

.admin-body {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  background: var(--soft);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  background: var(--navy);
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-weight: 900;
}

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

.admin-sidebar nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #fff;
}

.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  padding: 28px;
  min-width: 0;
}

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

.admin-header h1 {
  font-size: 34px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats div {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 49, 95, 0.08);
}

.admin-stats strong {
  display: block;
  color: var(--navy);
  font-size: 34px;
  line-height: 1;
}

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

.admin-panel {
  padding: 20px;
  margin-bottom: 22px;
}

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

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--navy);
  background: var(--sky-soft);
}

.security-detail {
  max-width: 420px;
  overflow-wrap: anywhere;
}

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

.actions a,
.actions button,
.admin-gallery-grid button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.actions form {
  margin: 0;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 900px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 49, 95, 0.08);
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
}

.check-row input {
  width: auto !important;
  min-height: 0 !important;
}

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

.admin-gallery-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.login-card {
  width: min(430px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.login-card form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.login-card label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

.login-card input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 1320px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 86px;
    left: 16px;
    right: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .dropdown:hover > .dropdown-menu:not([hidden]),
  .dropdown:focus-within > .dropdown-menu:not([hidden]) {
    display: block;
  }

  .site-search {
    max-width: none;
  }

  .accessibility-tools {
    width: max-content;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 860px) {
  .quick-grid,
  .card-grid.three,
  .notice-grid,
  .values-grid,
  .timeline,
  .album-row,
  .gallery-grid,
  .footer-grid,
  .admin-stats,
  .admin-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .split-layout,
  .content-grid,
  .contact-layout,
  .project-row {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 170px;
  }

  .hero,
  .hero__overlay {
    min-height: 64vh;
  }

  .hero__content {
    padding: 64px 0;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .section-heading--split,
  .document-row,
  .admin-header,
  .admin-panel__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .quick-grid,
  .card-grid.three,
  .notice-grid,
  .values-grid,
  .timeline,
  .album-row,
  .gallery-grid,
  .footer-grid,
  .admin-stats,
  .admin-gallery-grid,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

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

  .gallery-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-strip .gallery-tile:first-child {
    grid-row: auto;
  }

  .section {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}
