:root {
  --ink: #162135;
  --muted: #5b6778;
  --line: #dce5e7;
  --paper: #f6faf9;
  --white: #ffffff;
  --teal: #007c89;
  --coral: #f26d5b;
  --yellow: #f4b942;
  --green: #5aa469;
  --navy: #142235;
  --shadow: 0 24px 70px rgba(20, 34, 53, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(220, 229, 231, .82);
  backdrop-filter: blur(18px);
}

.brand img {
  width: clamp(132px, 11vw, 178px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #2f3e52;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 8px;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--teal);
  background: #eef8f6;
  border-color: #cce7e2;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92vh;
  padding: 150px clamp(20px, 5vw, 84px) 46px;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}

.page-hero { min-height: 62vh; }

.page-hero {
  padding-top: clamp(190px, 16vw, 230px);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 34, 53, .96), rgba(20, 34, 53, .7) 45%, rgba(20, 34, 53, .18)),
    linear-gradient(0deg, rgba(20, 34, 53, .74), transparent 42%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1280px, 100%);
}

.page-hero .hero-content {
  width: min(1360px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}

@media (min-width: 1180px) {
  .page-hero h1 {
    text-wrap: balance;
    font-size: clamp(42px, 4.6vw, 74px);
  }
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

.hero-text {
  width: min(680px, 100%);
  color: rgba(255, 255, 255, .84);
  font-size: clamp(18px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .42);
}

.button.danger {
  color: #fff;
  background: #b9382f;
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1020px, 100%);
  margin-top: 68px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .22);
}

.hero-panel div {
  padding: 22px;
  background: rgba(20, 34, 53, .76);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}

.section {
  padding: clamp(70px, 9vw, 126px) clamp(20px, 5vw, 84px);
}

.intro,
.statement,
.contact {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(300px, 1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: start;
}

.intro-copy,
.rich-text {
  color: #344154;
  font-size: 19px;
}

.intro-copy {
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(20, 34, 53, .08);
  line-height: 1.75;
}

.intro-copy p {
  margin: 0 0 16px;
}

.intro-copy > :last-child {
  margin-bottom: 0;
}

.compact h2 {
  max-width: 850px;
}

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

.feature-card,
.person-card,
.contact-card,
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(20, 34, 53, .08);
}

.feature-card {
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card div {
  padding: 22px;
}

.feature-card span,
.person-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.statement {
  color: var(--white);
  background: var(--navy);
}

blockquote {
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2.2vw, 25px);
}

.testimonial-card {
  position: relative;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 22px;
  color: var(--coral);
  font-size: 94px;
  font-weight: 900;
  line-height: 1;
}

.testimonial-card cite {
  color: var(--teal);
}

cite {
  display: block;
  margin-top: 24px;
  color: var(--yellow);
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.page-content {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(42px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff 0%, #f1f8f6 100%);
}

.page-content .rich-text {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  color: #2f3e52;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(20, 34, 53, .08);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.75;
}

.page-content .rich-text p {
  margin: 0 0 18px;
  padding: 0;
}

.page-content .rich-text p + p {
  margin-top: 0;
}

.page-content .rich-text p::before {
  content: none;
}

.page-content .rich-text strong {
  color: var(--teal);
  font-weight: 900;
}

.page-content .rich-text a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content .rich-text h2,
.page-content .rich-text h3 {
  margin: 28px 0 14px;
  color: var(--ink);
  line-height: 1.15;
}

.page-content .rich-text h2 {
  font-size: clamp(25px, 3vw, 36px);
}

.page-content .rich-text h3 {
  font-size: clamp(21px, 2.2vw, 27px);
}

.page-content .rich-text ul,
.page-content .rich-text ol {
  margin: 18px 0 22px;
  padding-left: 0;
  list-style: none;
}

.page-content .rich-text li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
}

.page-content .rich-text li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--coral);
  border-radius: 999px;
}

.page-content .rich-text table {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-content .rich-text blockquote {
  margin: 22px 0;
  padding: 18px 22px;
  color: var(--ink);
  background: #f1f8f6;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  font-size: 1.05em;
}

.page-content .rich-text > :last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--white);
  background: var(--teal);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
  justify-content: center;
  gap: 12px;
}

.board-officers {
  grid-template-columns: repeat(3, minmax(150px, 180px));
  margin-bottom: 18px;
}

.board-members {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.org-chart {
  display: grid;
  gap: 34px;
}

.org-level {
  position: relative;
}

.org-level h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.5vw, 30px);
}

.org-level + .org-level {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.person-card {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 0;
  padding: 14px 12px;
  text-align: center;
}

.person-photo {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  overflow: hidden;
  background: #f7fbfa;
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

.person-card strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.person-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
}

.contact {
  background: #eaf5f2;
}

.contact-card {
  padding: 26px;
}

.contact-card a:not(.button) {
  color: var(--teal);
  font-weight: 800;
}

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

.partner-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 240px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(20, 34, 53, .08);
}

.partner-logo {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 14px;
  background: #f7fbfa;
  border: 1px solid #e2eeeb;
  border-radius: 8px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

.partner-card h3 {
  margin: 0;
  font-size: 19px;
}

.text-link {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.gazette-feature {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

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

.gazette-preview img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(20, 34, 53, .12);
}

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

.gazette-list article {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gazette-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gazette-list h3 {
  margin: 6px 0 12px;
  font-size: 18px;
}

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

.document-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(20, 34, 53, .08);
}

.document-card span {
  width: fit-content;
  padding: 4px 8px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.document-card h3 {
  margin: 0;
  font-size: 19px;
}

.document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 84px);
  color: rgba(255, 255, 255, .78);
  background: var(--navy);
}

.admin-body {
  background: #eef4f3;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px;
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
}

.admin-logo img {
  width: 220px;
  margin-bottom: 22px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .18));
}

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

.admin-sidebar p {
  margin: 18px 0 6px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, .12);
}

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

.admin-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
}

.admin-topbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-card {
  overflow: hidden;
}

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

.table-heading h2 {
  margin: 0;
  font-size: 28px;
}

.table-search {
  width: min(420px, 100%);
  margin-bottom: 14px;
  background: var(--white);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-table {
  min-width: 780px;
  background: var(--white);
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  vertical-align: middle;
  font-size: 14px;
}

.admin-table tbody tr:nth-child(even) {
  background: #f8fbfa;
}

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

.row-actions form {
  margin: 0;
}

.path-chip {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-library {
  display: grid;
  gap: 18px;
}

.document-library-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.document-library-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
}

.document-library-heading form {
  margin: 0;
}

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

.document-library-stats article {
  padding: 16px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-library-stats strong {
  display: block;
  color: var(--teal);
  font-size: 28px;
}

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

.document-library-toolbar {
  display: grid;
  gap: 10px;
}

.document-library-toolbar input {
  width: min(520px, 100%);
  background: var(--white);
}

.document-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.document-type-list span,
.document-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #174d50;
  background: #e7f5f3;
  border: 1px solid #cce7e2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.document-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.admin-document-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  min-height: 290px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 33, 53, 0.07);
}

.document-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-document-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.admin-document-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-document-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.admin-document-card dl div {
  min-width: 0;
}

.admin-document-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-document-card dd {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-library {
  display: grid;
  gap: 16px;
}

.document-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f1faf8 48%, #fff7ed 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(22, 33, 53, 0.08);
}

.document-library-hero h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
}

.document-library-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.document-library-hero .admin-actions {
  align-self: start;
  justify-content: flex-end;
}

.document-library-hero .admin-actions form {
  margin: 0;
}

.document-library-hero .document-library-stats {
  grid-column: 1 / -1;
}

.document-library-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(180px, 230px) minmax(180px, 230px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-library-toolbar input,
.document-library-toolbar select {
  width: 100%;
  background: #f8fbfa;
}

.document-filter-summary {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: #41605f;
  font-size: 12px;
  font-weight: 900;
}

.document-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.admin-document-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(22, 33, 53, 0.08);
}

.admin-document-card.type-docx,
.admin-document-card.type-doc {
  border-left-color: #2f6fbb;
}

.admin-document-card.type-pptx,
.admin-document-card.type-ppt {
  border-left-color: #c45738;
}

.admin-document-card.type-xlsx,
.admin-document-card.type-xls,
.admin-document-card.type-ods {
  border-left-color: #2d8a56;
}

.admin-document-card.type-pdf,
.admin-document-card.type-pdf2 {
  border-left-color: #b9382f;
}

.document-filemark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 92px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-filemark span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
}

.document-card-content {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.document-card-topline {
  justify-content: flex-start;
}

.document-public-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.document-public-badge.is-public {
  color: #176147;
  background: #e2f5ed;
}

.document-public-badge.is-private {
  color: #7a3f09;
  background: #fff0d8;
}

.admin-document-card h3 {
  font-size: 19px;
}

.admin-document-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.admin-document-card dl div:last-child {
  grid-column: 1 / -1;
}

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

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

.document-year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.document-year-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
}

.document-year-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.document-preview {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  padding: 0;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.document-bulk-bar {
  display: grid;
  grid-template-columns: auto auto auto minmax(180px, 220px) minmax(180px, 220px) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.document-bulk-bar span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.document-bulk-bar select {
  width: 100%;
  background: #f8fbfa;
}

.document-bulk-bar .bulk-selection-button {
  color: #123536;
  background: #eef8f6;
  border: 1px solid #b9ded7;
  box-shadow: none;
  white-space: nowrap;
}

.document-bulk-bar .bulk-selection-button:hover,
.document-bulk-bar .bulk-selection-button:focus-visible {
  color: #ffffff;
  background: var(--teal);
  border-color: var(--teal);
}

.document-select {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.document-select input {
  width: 18px;
  height: 18px;
}

.document-preview iframe,
.document-preview img {
  width: 100%;
  height: 100%;
  border: 0;
}

.document-preview img {
  object-fit: cover;
}

.document-preview-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--ink);
  font-size: 24px;
  font-weight: 1000;
}

.document-preview-modal {
  width: min(1180px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
}

.document-preview-modal::backdrop {
  background: rgba(18, 34, 52, .72);
}

.document-preview-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  background: var(--white);
}

.document-preview-frame {
  min-height: 0;
  background: #edf2f2;
}

.document-preview-frame iframe,
.document-preview-frame img {
  width: 100%;
  height: 100%;
  border: 0;
}

.document-preview-frame img {
  object-fit: contain;
}

.document-preview-unavailable {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  height: 100%;
  padding: 24px;
  text-align: center;
}

.zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 34px;
  padding: 0;
  color: #ffffff;
  background: #122234;
  border-color: #122234;
}

.zoom-button:hover {
  color: #ffffff;
  background: #007c89;
  border-color: #007c89;
}

.zoom-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.admin-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-modal::backdrop {
  background: rgba(20, 34, 53, .55);
}

.admin-modal form {
  padding: 24px;
}

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

.modal-heading h2 {
  margin: 0;
  font-size: 28px;
}

.modal-heading button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted);
  background: #f4f7f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.admin-preview {
  color: var(--white);
  background: #31546b;
  border: 1px solid #31546b;
}

.admin-preview:hover {
  background: #243f52;
}

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

.admin-stat {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat strong,
.admin-stat span {
  display: block;
}

.admin-stat strong {
  font-size: 42px;
}

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

.admin-editor {
  width: 100%;
  max-width: none;
}

.admin-content-editor {
  padding: clamp(42px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-content-editor .rich-text {
  min-height: 320px;
  outline: none;
}

.admin-content-editor .rich-text:focus {
  box-shadow: 0 0 0 4px rgba(0, 124, 137, .12);
}

.editor-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

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

.span-2 {
  grid-column: span 2;
}

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
}

.login-card img {
  width: 190px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-header img {
  width: 150px;
}

.admin-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

.admin-header a.is-active {
  color: var(--teal);
}

.admin-main {
  padding: 28px;
}

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

.admin-card {
  padding: 22px;
}

.admin-card.wide {
  max-width: 980px;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

label.check {
  display: flex;
  align-items: center;
}

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

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

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.editor-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--teal);
  background: #eef8f6;
  border: 1px solid #cce7e2;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.html-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

.alert {
  padding: 10px 12px;
  color: #8d1d13;
  background: #ffe6e1;
  border-radius: 8px;
  font-weight: 800;
}

.alert.success {
  color: #176147;
  background: #e2f5ed;
}

/* Admin refinement */
.admin-body {
  background: #f4f7f7;
}

.admin-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 18px;
  background: #122234;
}

.admin-sidebar .admin-logo {
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  padding: 14px;
  background: #ffffff;
  border-radius: 8px;
}

.admin-sidebar .admin-logo:hover {
  background: #ffffff;
}

.admin-logo img {
  width: 190px;
  margin: 0 auto;
  filter: none;
}

.admin-sidebar p {
  margin: 18px 8px 6px;
  font-size: 11px;
}

.admin-sidebar a {
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 750;
}

.admin-main {
  padding: clamp(18px, 3vw, 34px);
}

.admin-topbar {
  margin-bottom: 22px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-topbar h1 {
  font-size: clamp(24px, 3vw, 32px);
}

.admin-dashboard {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  padding: 18px;
  box-shadow: 0 10px 30px rgba(20, 34, 53, .06);
}

.admin-stat strong {
  font-size: 34px;
  line-height: 1;
}

.admin-card {
  padding: 18px;
  border-color: #dfe8e8;
  box-shadow: 0 10px 30px rgba(20, 34, 53, .06);
}

.login-screen {
  background:
    linear-gradient(120deg, rgba(0, 124, 137, .90), rgba(20, 34, 53, .94)),
    url("images/hero-enfance.png") center/cover;
}

.login-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.login-card img {
  width: 230px;
  margin: 0 auto 14px;
}

.login-card h1 {
  margin-bottom: 18px;
  font-size: 30px;
  text-align: center;
}

.button {
  min-height: 42px;
  padding: 0 16px;
}

.button.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

label {
  font-size: 12px;
}

input,
textarea,
select {
  padding: 10px 11px;
}

.table-heading {
  margin-bottom: 12px;
}

/* Compact admin UI */
.admin-body {
  background: #f6f8f8;
}

.admin-shell {
  grid-template-columns: 224px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 14px;
  background: #132235;
}

.admin-sidebar .admin-logo {
  margin-bottom: 12px;
  padding: 10px;
}

.admin-logo img {
  width: 138px;
}

.admin-sidebar nav {
  gap: 3px;
}

.admin-sidebar p {
  margin: 14px 6px 4px;
  font-size: 10px;
  letter-spacing: .04em;
}

.admin-sidebar a {
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.admin-main {
  padding: 18px 22px;
}

.admin-topbar {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
}

.admin-topbar h1 {
  font-size: 22px;
}

.admin-topbar span {
  font-size: 12px;
}

.admin-actions {
  gap: 7px;
}

.button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 13px;
}

.button.small {
  min-height: 26px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-dashboard {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.admin-stat {
  padding: 13px 14px;
  border-radius: 8px;
}

.admin-stat strong {
  font-size: 26px;
}

.admin-stat span {
  font-size: 12px;
}

.admin-card {
  padding: 14px;
  border-radius: 8px;
}

.table-heading h2,
.modal-heading h2 {
  font-size: 21px;
}

.admin-table {
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
}

.admin-table td {
  font-size: 13px;
}

.table-search {
  margin-bottom: 10px;
}

label {
  gap: 4px;
  margin-bottom: 9px;
  font-size: 11px;
}

input,
textarea,
select {
  padding: 8px 9px;
  border-radius: 7px;
  font-size: 13px;
}

textarea {
  min-height: 74px;
}

.form-grid {
  gap: 10px;
}

.admin-content-editor {
  padding: 24px;
}

.admin-content-editor .rich-text {
  min-height: 240px;
}

.admin-modal {
  width: min(620px, calc(100vw - 32px));
}

.admin-modal form {
  padding: 18px;
}

.modal-heading {
  margin-bottom: 12px;
}

.modal-heading button {
  min-height: 30px;
  border-radius: 7px;
  font-size: 12px;
}

.admin-avatar {
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.document-library-hero {
  padding: 16px;
}

.document-library-hero h2 {
  font-size: 26px;
}

.document-library-toolbar,
.document-bulk-bar {
  padding: 10px;
}

.document-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
}

.admin-document-card {
  gap: 10px;
  padding: 12px;
}

.document-preview {
  height: 170px;
}

.login-card img {
  width: 170px;
}

.table-heading h2 {
  font-size: 24px;
}

.admin-table th {
  font-size: 11px;
  letter-spacing: .03em;
}

.admin-table td {
  font-size: 13px;
}

.admin-modal {
  width: min(680px, calc(100vw - 32px));
}

.admin-modal form {
  padding: 20px;
}

.modal-heading h2 {
  font-size: 24px;
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

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

  .hero,
  .page-hero {
    min-height: 78vh;
  }

  .hero-panel,
  .card-grid,
  .people-grid,
  .partner-grid,
  .document-grid,
  .gazette-feature,
  .gazette-list,
  .intro,
  .statement,
  .contact,
  .admin-grid,
  .admin-dashboard,
  .admin-shell,
  .form-grid,
  .document-library-hero,
  .document-library-toolbar,
  .document-library-stats,
  .document-card-grid,
  .admin-document-card,
  .document-bulk-bar {
    grid-template-columns: 1fr;
  }

  .document-library-hero .document-library-stats {
    grid-column: auto;
  }

  .document-filemark {
    width: 100%;
    height: 54px;
  }

  .span-2 { grid-column: auto; }

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

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

@media (max-width: 560px) {
  .brand img { width: 132px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .section { padding: 58px 18px; }
}
