:root {
  /* Core branch palette */
  --navy-950: #171c32;
  --navy-900: #202642;
  --navy-800: #2c2f55;

  --branch-grey-800: #5f6772;
  --branch-grey-700: #757d89;
  --branch-grey-500: #969da6;
  --branch-grey-200: #d9dde2;
  --branch-grey-100: #eef0f2;

  --gold-700: #a97518;
  --gold-600: #c58d23;
  --gold-500: #d59b27;
  --gold-200: #ead3a3;

  --white: #ffffff;
  --ink: #23252b;
  --text-muted: #646873;
  --danger: #a63c35;
  --success-border: #4f7358;
  --border-light: rgba(255, 255, 255, 0.16);
  --shadow: rgba(15, 18, 31, 0.22);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.mobile-menu-lock {
  overflow: hidden;
}

body.signout-modal-lock {
  overflow: hidden;
}

main {
  position: relative;
  isolation: isolate;
  flex: 1;
  background:
    /* Extremely faint textile grain */
    repeating-linear-gradient(47deg,
      rgba(255, 255, 255, 0.008) 0,
      rgba(255, 255, 255, 0.008) 1px,
      transparent 1px,
      transparent 7px),
    repeating-linear-gradient(-43deg,
      rgba(23, 28, 50, 0.010) 0,
      rgba(23, 28, 50, 0.010) 1px,
      transparent 1px,
      transparent 8px),

    /* Ambient light */
    radial-gradient(ellipse at 20% 0%,
      rgba(255, 255, 255, 0.085),
      transparent 56%),

    /* Branch-grey field */
    linear-gradient(180deg,
      var(--branch-grey-700) 0%,
      #69727d 56%,
      var(--branch-grey-800) 100%);
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 520' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='fade' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23ffffff' stop-opacity='0'/%3E%3Cstop offset='.20' stop-color='%23ffffff' stop-opacity='.11'/%3E%3Cstop offset='.52' stop-color='%23ffffff' stop-opacity='.17'/%3E%3Cstop offset='.82' stop-color='%23ffffff' stop-opacity='.08'/%3E%3Cstop offset='1' stop-color='%23ffffff' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23fade)'%3E%3Cpath d='M-120 280 C180 70 430 70 720 280 S1270 490 1720 250' stroke-width='1.5'/%3E%3Cpath d='M-120 255 C180 45 430 45 720 255 S1270 465 1720 225' stroke-width='.65' opacity='.7'/%3E%3Cpath d='M-120 305 C180 95 430 95 720 305 S1270 515 1720 275' stroke-width='.65' opacity='.7'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center 18px;
  background-size: 1800px 540px;
  opacity: 0.9;
}

main>* {
  position: relative;
  z-index: 1;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

.site-footer {
  flex: 0 0 auto;
  height: auto;
  background: var(--navy-950);
  color: var(--branch-grey-100);
}

.footer-inner {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
}

.ownership-band {
  border-top: 1px solid var(--branch-grey-500);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--branch-grey-800);
}

.ownership-inner {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-block: 18px;
}

.ownership-label {
  flex: 0 0 auto;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gold-500);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ownership-inner p {
  max-width: 1000px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
}

.footer-main {
  padding: 52px 0 46px;
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900));
}

.footer-grid {
  display: grid;
  grid-template-columns:
    minmax(280px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
  gap: 46px;
}

.footer-brand {
  max-width: 390px;
}

.footer-identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.footer-logo {
  width: auto;
  height: 68px;
  object-fit: contain;
}

.footer-identity strong {
  display: block;
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.035em;
}

.footer-full-name {
  display: block;
  max-width: 270px;
  color: var(--branch-grey-200);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-mission {
  max-width: 340px;
  margin-top: 22px;
  color: var(--branch-grey-200);
  font-size: 14px;
  line-height: 1.65;
}

.footer-column h2 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 12px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--gold-500);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: var(--branch-grey-200);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 150ms ease,
    padding-left 150ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  padding-left: 3px;
  color: var(--gold-200);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--branch-grey-200);
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.footer-contact p {
  margin: 0;
}

.footer-contact p:first-child span:first-child {
  color: var(--white);
  font-weight: 700;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.footer-social-link {
  min-height: 32px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  color: var(--branch-grey-100) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  padding-left: 11px !important;
  border-color: var(--gold-500);
  color: var(--gold-200) !important;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  background: #13172a;
}

.footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--branch-grey-500);
  font-size: 11px;
}

.footer-language-mark {
  letter-spacing: 0.08em;
}

.footer-language-mark span {
  color: var(--gold-500);
}

.footer-credit {
  margin-left: auto;
  margin-bottom: 0;
  color: var(--branch-grey-300);
  text-align: right;
}

.footer-version {
  flex-basis: 100%;
  margin-top: -16px;
  color: var(--branch-grey-500);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: auto;
  padding: 0;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 3px 14px var(--shadow);
}

.header-inner {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.header-identity-row {
  background:
    linear-gradient(90deg,
      var(--navy-950),
      var(--navy-900) 52%,
      var(--navy-800));
  border-bottom: 1px solid var(--border-light);
}

.header-identity-row .header-inner {
  min-height: 82px;
  justify-content: space-between;
  gap: 32px;
}

.site-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.site-logo {
  width: auto;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
}

.identity-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.identity-acronym {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.identity-acronym span {
  color: var(--gold-500);
}

.identity-name {
  color: var(--branch-grey-200);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.header-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-link {
  position: relative;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: var(--gold-200);
}

.notification-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy-950);
  border-radius: 999px;
  background: #a63c35;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.utility-icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signout-link {
  color: var(--branch-grey-200);
}

.signout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg,
      rgba(23, 28, 50, 0.84),
      rgba(23, 28, 50, 0.72));
  backdrop-filter: blur(3px);
}

.signout-modal {
  width: min(100%, 440px);
  position: relative;
  overflow: hidden;
  border: 0;
  border-top: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  box-shadow:
    0 34px 90px rgba(15, 18, 31, 0.56),
    0 10px 26px rgba(15, 18, 31, 0.28);
}

.signout-modal-header {
  min-height: 104px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
  box-shadow: inset 0 -1px 0 rgba(213, 155, 39, 0.34);
}

.signout-modal-icon-wrap {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 155, 39, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 4px rgba(213, 155, 39, 0.08),
    0 10px 24px rgba(15, 18, 31, 0.26);
}

.signout-modal-icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--gold-200);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signout-modal h2 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.14;
}

.signout-modal-body {
  padding: 24px;
  background:
    linear-gradient(180deg,
      var(--white),
      var(--branch-grey-100));
}

.signout-modal p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.signout-modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.signout-modal-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.signout-modal-button-secondary {
  border-color: var(--branch-grey-500);
  background: transparent;
  color: var(--navy-900);
}

.signout-modal-button-danger {
  border-color: var(--gold-500);
  background: var(--gold-600);
  color: var(--navy-950);
}

.signout-modal-button-secondary:hover,
.signout-modal-button-secondary:focus-visible {
  border-color: var(--navy-800);
  background: var(--white);
  color: var(--navy-950);
}

.signout-modal-button-danger:hover,
.signout-modal-button-danger:focus-visible {
  border-color: var(--gold-700);
  background: var(--gold-500);
  color: var(--navy-950);
}

.signout-modal-button:hover,
.signout-modal-button:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.lang-toggle {
  height: 36px;
  min-width: 45px;
  padding: 0 10px;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.theme-toggle {
  height: 36px;
  min-width: 62px;
  padding: 0 10px;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-toggle:hover,
.lang-toggle:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-200);
}

.theme-toggle[aria-pressed="true"] {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.12);
  color: var(--gold-200);
}

.donate-link {
  min-height: 38px;
  padding: 0 20px;
  flex: 0 0 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-500);
  border-radius: 2px;
  background: var(--gold-600);
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
  width: 148px;
}

.donate-link:hover,
.donate-link:focus-visible {
  background: var(--gold-500);
  border-color: var(--gold-200);
}

.mobile-menu-toggle {
  width: 40px;
  height: 38px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-200);
}

.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 150ms ease,
    opacity 150ms ease;
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-navigation-row {
  background: var(--navy-950);
}

.header-navigation-inner {
  min-height: 52px;
  justify-content: space-between;
  gap: 24px;
}

.nav-bar {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle,
.nav-bar>a {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--branch-grey-100);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus-visible,
.nav-bar>a:hover,
.nav-bar>a:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  border-bottom-color: var(--gold-500);
  color: var(--white);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1001;
  min-width: 245px;
  margin: 0;
  padding: 7px 0;
  border-top: 2px solid var(--gold-500);
  border-radius: 0 0 2px 2px;
  background: var(--white);
  box-shadow: 0 12px 28px var(--shadow);
  list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus-visible {
  background: var(--branch-grey-100);
  color: var(--navy-900);
}

.header-search {
  width: 250px;
  height: 34px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.header-search:focus-within {
  border-color: var(--gold-500);
  background: rgba(255, 255, 255, 0.09);
}

.header-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 5px 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 13px;
}

.header-search input::placeholder {
  color: var(--branch-grey-200);
}

.header-search-button {
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--branch-grey-100);
  cursor: pointer;
}

.header-search-button:hover {
  color: var(--gold-200);
}

.header-search-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.mobile-menu-account {
  display: none;
}

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

.loading-state {
  min-height: 140px;
  display: grid;
  place-items: center;
}

.loading-state-spinner {
  width: 34px;
  height: 34px;
  display: block;
  border: 3px solid var(--branch-grey-200);
  border-top-color: var(--gold-600);
  border-radius: 50%;
  animation:
    loading-state-spin 750ms linear infinite;
}

@keyframes loading-state-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  display: flex;

  img {
    height: 70vh;
    margin-top: 48px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

.content-main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.content-column {
  max-width: 700px;
  width: 100%;
  color: #222;
  line-height: 1.7;
}

.content-column h1 {
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--gold-500);
}

.content-column p {
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--white);
}

.content-figure {
  margin: 28px 0;
}

.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.content-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--branch-grey-800);
  text-align: center;
}

a.dropdown-toggle {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.inline-float-img {
  float: left;
  width: 240px;
  height: auto;
  margin: 4px 20px 12px 0;
  border-radius: 4px;
}

/* ─────────────────────────────────────────────
   About the C&E Family
   ───────────────────────────────────────────── */
.about-family-main {
  display: block;
  padding: 36px 20px 62px;
}

.about-family-shell {
  width: min(100%, 960px);
  margin: 0 auto;
}

.about-family-hero {
  min-height: 280px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(234, 211, 163, 0.32);
  border-top: 5px solid var(--gold-500);
  border-radius: 8px;
  background:
    linear-gradient(115deg,
      rgba(23, 28, 50, 0.98) 0%,
      rgba(32, 38, 66, 0.96) 58%,
      rgba(68, 76, 88, 0.92) 100%),
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 13px);
  color: var(--white);
  box-shadow:
    0 18px 42px rgba(15, 18, 31, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.about-family-hero-copy {
  max-width: 700px;
}

.about-family-kicker {
  width: fit-content;
  margin: 0 0 13px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gold-500);
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-family-hero h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(40px, 5.8vw, 64px);
  font-weight: normal;
  line-height: 1;
}

.about-family-intro {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--branch-grey-100);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.about-family-tagline {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--gold-200);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.about-family-emblem {
  flex: 0 0 150px;
  width: 150px;
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.28));
}

.about-family-body {
  margin-top: 22px;
  padding: 34px 38px 38px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 16px 36px rgba(15, 18, 31, 0.18),
    0 2px 7px rgba(15, 18, 31, 0.10);
}

.about-family-section {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--branch-grey-200);
}

.about-family-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.about-family-section h2 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: normal;
  line-height: 1.12;
}

.about-family-section p {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}

.about-family-section p+p {
  margin-top: 16px;
}

.about-family-pillar-list {
  max-width: 820px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.about-family-pillar-list li {
  margin-top: 12px;
  padding: 13px 16px;
  border-left: 4px solid var(--gold-500);
  border-radius: 4px;
  background:
    linear-gradient(90deg,
      rgba(213, 155, 39, 0.13),
      rgba(238, 240, 242, 0.88));
  color: var(--ink);
  font-size: 15px;
  line-height: 1.62;
}

.about-family-pillar-list li:first-child {
  margin-top: 0;
}

/* ─────────────────────────────────────────────
   Public events calendar
   ───────────────────────────────────────────── */
.calendar-main {
  padding: 34px 20px 54px;
}

.calendar-container {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.calendar-heading {
  min-height: 166px;
  margin-bottom: 24px;
  padding: 28px 32px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  border: 1px solid rgba(234, 211, 163, 0.30);
  border-top: 4px solid var(--gold-500);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg,
      rgba(23, 28, 50, 0.98) 0%,
      rgba(32, 38, 66, 0.98) 58%,
      rgba(44, 47, 85, 0.94) 100%),
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.045) 0,
      rgba(255, 255, 255, 0.045) 1px,
      transparent 1px,
      transparent 12px);
  color: var(--white);
  box-shadow:
    0 18px 40px rgba(15, 18, 31, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.calendar-heading-copy {
  max-width: 700px;
}

.calendar-kicker {
  width: fit-content;
  margin: 0 0 11px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gold-500);
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.calendar-heading h1 {
  margin: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(40px, 6vw, 66px);
  font-weight: normal;
  line-height: 1;
}

.calendar-submit-callout {
  max-width: 360px;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  justify-items: end;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--gold-500);
  border-radius: 4px;
  background: rgba(238, 240, 242, 0.08);
  text-align: right;
}

.calendar-submit-callout p {
  margin: 0;
  color: var(--branch-grey-100);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.calendar-submit-callout a {
  min-height: 42px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(234, 211, 163, 0.72);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.calendar-submit-callout a:hover,
.calendar-submit-callout a:focus-visible {
  border-color: var(--gold-500);
  background: var(--navy-950);
  color: var(--white);
  transform: translateY(-1px);
}

.calendar-submit-callout a:focus-visible {
  outline: 3px solid rgba(213, 155, 39, 0.45);
  outline-offset: 3px;
}

.calendar-message {
  margin: 0;
  padding: 17px 20px;
  border-left: 4px solid var(--gold-500);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 3px 10px var(--shadow);
}

.calendar-message.is-error {
  border-left-color: var(--danger);
  background: #f8e9e7;
  color: #842d27;
}

.calendar-message.is-loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.calendar-month {
  margin-bottom: 28px;
}

.calendar-month-title {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 3px solid rgba(234, 211, 163, 0.74);
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1;
  text-transform: capitalize;
  text-shadow: 0 2px 8px rgba(15, 18, 31, 0.25);
}

.calendar-event {
  position: relative;
  min-height: 174px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.70);
  border-radius: 8px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.99) 0%,
      rgba(255, 255, 255, 0.96) 62%,
      rgba(238, 240, 242, 0.96) 100%);
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 18px 38px rgba(15, 18, 31, 0.20),
    0 2px 7px rgba(15, 18, 31, 0.12);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.calendar-month-title+.calendar-event {
  border-top-color: rgba(255, 255, 255, 0.70);
}

.calendar-event:hover,
.calendar-event:focus-visible {
  border-color: var(--gold-500);
  box-shadow:
    0 22px 44px rgba(15, 18, 31, 0.27),
    0 0 0 4px rgba(213, 155, 39, 0.18);
  transform: translateY(-2px);
}

.calendar-event:focus-visible {
  outline: 3px solid rgba(213, 155, 39, 0.55);
  outline-offset: 3px;
}

.calendar-event-day {
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  border-right: 4px solid var(--gold-500);
  background:
    linear-gradient(180deg,
      var(--navy-800) 0%,
      var(--navy-900) 48%,
      var(--navy-950) 100%);
  text-align: center;
}

.calendar-event-month {
  color: var(--gold-200);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar-event-day-number {
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(42px, 6vw, 58px);
  line-height: 1;
  text-shadow: 0 3px 10px rgba(15, 18, 31, 0.22);
}

.calendar-event-time {
  width: min(100%, 96px);
  padding: 7px 8px;
  border: 1px solid rgba(234, 211, 163, 0.52);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--branch-grey-100);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.calendar-event-content {
  min-width: 0;
  padding: 22px 24px 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 24px;
  align-items: stretch;
}

.calendar-event-body {
  min-width: 0;
}

.calendar-event-date-line {
  margin: 0 0 7px;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.calendar-event-title {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(25px, 3vw, 35px);
  font-weight: normal;
  line-height: 1.05;
}

.calendar-event-location {
  margin: 10px 0 0;
  color: var(--branch-grey-800);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.calendar-event-description {
  margin: 13px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.55;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.calendar-event-meta {
  min-width: 0;
  padding: 16px 17px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      rgba(32, 38, 66, 0.06),
      rgba(213, 155, 39, 0.10));
}

.calendar-event-meta-item {
  display: grid;
  gap: 3px;
}

.calendar-event-meta-label {
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.calendar-event-meta-value {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.28;
}

.event-detail-main {
  padding: 26px 18px 56px;
}

.event-detail-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.event-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 28px 30px;
  border-top: 5px solid var(--gold-500);
  color: var(--white);
  background:
    linear-gradient(115deg,
      var(--navy-950) 0%,
      var(--navy-900) 57%,
      #38475f 100%);
  box-shadow:
    0 12px 28px rgba(15, 18, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.event-detail-hero-grid {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
}

.event-detail-date-card {
  min-height: 154px;
  padding: 16px 12px 14px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 5px solid var(--gold-500);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.97),
      rgba(238, 240, 242, 0.94));
  color: var(--navy-900);
  box-shadow:
    0 10px 18px rgba(15, 18, 31, 0.18);
}

.event-detail-month,
.event-detail-year {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.event-detail-day {
  margin: 3px 0 5px;
  color: var(--gold-700);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 64px;
  line-height: 0.95;
}

.event-detail-heading {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.event-detail-eyebrow {
  margin: 0 0 11px;
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.event-detail-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(30px, 4.7vw, 48px);
  font-weight: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.event-detail-summary {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--branch-grey-200);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.event-detail-admin-actions,
.retirement-detail-admin-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.published-content-delete {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #b42318;
  border-radius: 2px;
  background: #b42318;
  color: var(--white);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.published-content-delete:hover,
.published-content-delete:focus-visible {
  border-color: #8f1d14;
  background: #8f1d14;
  transform: translateY(-1px);
}

.published-content-delete:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.event-detail-body {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top: 0;
  background:
    linear-gradient(180deg,
      rgba(238, 240, 242, 0.94),
      rgba(255, 255, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.event-detail-description {
  min-width: 0;
}

.event-detail-section,
.event-detail-brief {
  border-radius: 2px;
  background: var(--white);
}

.event-detail-section {
  padding: 26px 28px;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
}

.event-detail-brief {
  align-self: start;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--branch-grey-300);
  border-top: 4px solid var(--gold-500);
  box-shadow: 0 8px 20px rgba(15, 18, 31, 0.10);
}

.event-detail-section h2,
.event-detail-brief h2 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
}

.event-detail-brief h2 {
  margin: 0;
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--branch-grey-200);
  background: var(--navy-900);
  color: var(--white);
  font-size: 21px;
}

.event-detail-description p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.event-detail-list {
  margin: 0;
  display: grid;
}

.event-detail-list dt {
  margin: 0;
  padding: 15px 18px 4px;
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.event-detail-list dd {
  margin: 0;
  padding: 0 18px 15px;
  border-bottom: 1px solid var(--branch-grey-200);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.event-detail-registration {
  padding: 16px 18px 18px;
  background: var(--branch-grey-100);
}

.event-detail-registration h3 {
  margin: 0 0 9px;
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.event-detail-registration p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.event-detail-registration a {
  color: #0645ad;
  font: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.event-detail-registration a:hover,
.event-detail-registration a:focus-visible {
  color: #0b62d6;
}

/* ─────────────────────────────────────────────
   Site search
   ───────────────────────────────────────────── */
.search-main {
  padding: 28px 20px 46px;
}

.search-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.search-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 2px solid var(--gold-500);
  color: var(--white);
}

.search-eyebrow {
  margin: 0 0 7px;
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-heading h1 {
  margin: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(29px, 4vw, 38px);
  font-weight: normal;
  line-height: 1.1;
}

.search-heading>p {
  max-width: 420px;
  margin: 0 0 2px;
  color: var(--branch-grey-100);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

.search-page-form {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 9px 24px rgba(15, 18, 31, 0.16),
    0 2px 5px rgba(15, 18, 31, 0.10);
}

.search-page-form:focus-within {
  border-color: var(--gold-500);
}

.search-page-form input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.search-page-form button {
  min-width: 128px;
  border: 0;
  border-left: 1px solid var(--branch-grey-200);
  background: var(--navy-900);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.search-page-form button:hover,
.search-page-form button:focus-visible {
  background: var(--navy-800);
}

.search-status {
  margin: 18px 0 14px;
  padding: 13px 16px;
  border-left: 4px solid var(--gold-500);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 3px 10px var(--shadow);
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result {
  padding: 19px 20px 20px;
  border-top: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 9px 24px rgba(15, 18, 31, 0.16),
    0 2px 5px rgba(15, 18, 31, 0.10);
}

.search-result-meta {
  min-height: 23px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-result-type {
  padding: 4px 7px;
  border-radius: 2px;
  background: var(--branch-grey-100);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.search-result-title {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
}

.search-result-title a {
  color: inherit;
  text-decoration-color: var(--gold-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.search-result-title a:hover,
.search-result-title a:focus-visible {
  color: var(--gold-700);
}

.search-result-summary {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.58;
}

/* ─────────────────────────────────────────────
   Member login
   ───────────────────────────────────────────── */

.login-main,
.register-main,
.dashboard-main,
.event-submit-main,
.event-review-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

/* ─────────────────────────────────────────────
   Error pages
   ───────────────────────────────────────────── */

.error-page-main {
  display: grid;
  place-items: center;
  min-height: 510px;
  padding: 48px 24px;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

.error-page {
  width: min(100%, 680px);
  padding: 52px 56px;
  border-left: 5px solid var(--gold-500);
  background:
    linear-gradient(145deg,
      var(--navy-950),
      var(--navy-900) 67%,
      var(--navy-800));
  box-shadow:
    0 18px 45px rgba(15, 18, 31, 0.24),
    0 3px 10px rgba(15, 18, 31, 0.15);
  color: var(--white);
}

.error-page-code {
  margin: 0 0 10px;
  color: var(--gold-200);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 0.9;
}

.error-page-eyebrow {
  margin: 0 0 12px;
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-page h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.16;
}

.error-page>p:not(.error-page-code):not(.error-page-eyebrow) {
  max-width: 540px;
  margin: 16px 0 0;
  color: var(--branch-grey-200);
  font-size: 15px;
  line-height: 1.6;
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-page-primary-action,
.error-page-secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
}

.error-page-primary-action {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}

.error-page-primary-action:hover,
.error-page-primary-action:focus-visible {
  border-color: var(--gold-200);
  background: var(--gold-200);
}

.error-page-secondary-action {
  border-color: var(--branch-grey-500);
}

.error-page-secondary-action:hover,
.error-page-secondary-action:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-200);
}

.login-main {
  position: relative;
  min-height: auto;
  padding: 28px 24px 44px;
  overflow: hidden;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 880px);
  min-height: 430px;
  display: grid;
  grid-template-columns:
    minmax(250px, 0.7fr) minmax(380px, 1.3fr);
  overflow: hidden;
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 18px 45px rgba(15, 18, 31, 0.24),
    0 3px 10px rgba(15, 18, 31, 0.15);
}

.login-introduction {
  position: relative;
  display: flex;
  align-items: center;
  padding: 42px 36px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(145deg,
      var(--navy-950),
      var(--navy-900) 62%,
      var(--navy-800));
}

.login-introduction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--gold-500);
}

.login-introduction-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.login-standard {
  width: 64px;
  height: 36px;
  margin-bottom: 24px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow: 0 0 0 3px rgba(213, 155, 39, 0.08);
}

.login-standard-grey {
  background: var(--branch-grey-500);
}

.login-standard-navy {
  background: var(--navy-800);
}

.login-eyebrow {
  margin-bottom: 13px;
  color: var(--gold-200);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-introduction h1 {
  max-width: 470px;
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.login-intro-copy {
  max-width: 230px;
  margin-top: 16px;
  color: var(--branch-grey-200);
  font-size: 13px;
  line-height: 1.6;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 50px;
  background:
    linear-gradient(180deg,
      var(--white),
      var(--branch-grey-100));
}

.login-panel-heading {
  margin-bottom: 24px;
}

.login-panel-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.login-panel-heading>p:last-child {
  margin-top: 11px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-secondary-form[hidden] {
  display: none;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.login-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.login-field input::placeholder {
  color: var(--branch-grey-500);
}

.login-field input:hover {
  border-color: var(--branch-grey-500);
}

.login-field input:focus {
  border-color: var(--gold-600);
  background: var(--white);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.login-submit {
  position: relative;
  width: 100%;
  height: 49px;
  margin-top: 4px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.login-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.login-submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: login-spinner 700ms linear infinite;
}

@keyframes login-spinner {
  to {
    transform: rotate(360deg);
  }
}

.login-error {
  padding: 11px 13px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.45;
}

.login-error.is-info {
  border-left-color: var(--gold-600);
  background: #fbf6eb;
  color: var(--navy-900);
}

.login-assistance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  margin-top: -6px;
}

.login-text-button {
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--navy-800);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
  cursor: pointer;
}

.login-assistance a,
.login-register a {
  color: var(--navy-800);
  font-weight: 700;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}

.login-assistance a:hover,
.login-assistance a:focus-visible,
.login-text-button:hover,
.login-text-button:focus-visible,
.login-register a:hover,
.login-register a:focus-visible {
  color: var(--gold-700);
}

.login-divider {
  width: 100%;
  height: 1px;
  margin-block: 2px;
  background:
    linear-gradient(90deg,
      transparent,
      var(--branch-grey-200) 15%,
      var(--branch-grey-200) 85%,
      transparent);
}

.login-register {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.login-mfa-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(15, 24, 42, 0.52);
}

.login-mfa-overlay[hidden] {
  display: none;
}

.login-mfa-dialog {
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--branch-grey-200);
  border-top: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 24px 70px rgba(15, 18, 31, 0.28),
    0 8px 20px rgba(15, 18, 31, 0.18);
}

.login-mfa-heading {
  margin-bottom: 12px;
}

.login-mfa-heading p {
  margin: 0 0 8px;
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-mfa-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1.16;
}

.login-mfa-copy {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-mfa-options {
  display: grid;
  gap: 10px;
}

.login-mfa-option {
  width: 100%;
  min-height: 72px;
  padding: 14px 15px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.login-mfa-option:hover,
.login-mfa-option:focus-visible {
  border-color: var(--gold-600);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(197, 141, 35, 0.14);
}

.login-mfa-option strong,
.login-mfa-option span {
  display: block;
}

.login-mfa-option strong {
  color: var(--navy-900);
  font-size: 14px;
  line-height: 1.3;
}

.login-mfa-option span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.login-mfa-totp {
  margin-top: 16px;
}

.login-mfa-totp label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.login-mfa-code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.login-mfa-code-row input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  font: inherit;
}

.login-mfa-code-row input:focus {
  border-color: var(--gold-600);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(197, 141, 35, 0.14);
}

.login-mfa-code-row button,
.login-mfa-cancel {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.login-mfa-cancel {
  width: 100%;
  margin-top: 16px;
  border-color: var(--branch-grey-200);
  background: var(--white);
  color: var(--navy-900);
}

.login-mfa-code-row button:hover,
.login-mfa-code-row button:focus-visible,
.login-mfa-cancel:hover,
.login-mfa-cancel:focus-visible {
  border-color: var(--gold-600);
  outline: 0;
  color: var(--gold-700);
}

.login-mfa-dialog .login-error {
  margin: 14px 0 0;
}

@media (max-width: 420px) {
  .login-mfa-dialog {
    padding: 22px;
  }

  .login-mfa-code-row {
    grid-template-columns: 1fr;
  }

  .login-mfa-code-row button {
    width: 100%;
  }
}


/* ─────────────────────────────────────────────
   Member registration
   ───────────────────────────────────────────── */

.register-main {
  padding: 26px 20px 42px;
}

.register-shell,
.dashboard-shell,
.event-submit-shell,
.event-review-shell {
  overflow: hidden;
  border-top: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 18px 44px rgba(15, 18, 31, 0.23),
    0 3px 9px rgba(15, 18, 31, 0.14);
}

.register-shell {
  width: min(100%, 820px);
}

.register-heading {
  min-height: 112px;
  padding: 24px 34px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.register-standard {
  width: 60px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow:
    0 0 0 3px rgba(213, 155, 39, 0.08);
}

.register-standard-grey {
  background: var(--branch-grey-500);
}

.register-standard-navy {
  background: var(--navy-800);
}

.register-eyebrow {
  margin: 0 0 5px;
  color: var(--gold-200);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.register-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.register-panel {
  padding: 30px 34px 28px;
  background:
    linear-gradient(180deg,
      var(--white),
      var(--branch-grey-100));
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.register-fields {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 19px 24px;
}

.register-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-field label {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.025em;
}

.register-field label:has(+ input[required])::after,
.register-field label:has(+ select[required])::after {
  content: " *";
  color: var(--danger);
}

.register-field input,
.register-field select {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.register-field select {
  padding-right: 38px;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg,
      transparent 50%,
      var(--branch-grey-800) 50%),
    linear-gradient(135deg,
      var(--branch-grey-800) 50%,
      transparent 50%);
  background-position:
    calc(100% - 17px) 20px,
    calc(100% - 12px) 20px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.register-field select:invalid {
  color: var(--text-muted);
}

.register-field select option {
  color: var(--ink);
}

.register-field-wide {
  grid-column: 1 / -1;
}

.register-field input::placeholder {
  color: var(--branch-grey-500);
}

.register-field input:hover,
.register-field select:hover {
  border-color: var(--branch-grey-500);
}

.register-field input:focus,
.register-field select:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.password-strength {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--branch-grey-200);
}

.password-strength span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--danger);
  transition:
    width 150ms ease,
    background-color 150ms ease;
}

.password-strength.is-weak span {
  width: 28%;
  background: var(--danger);
}

.password-strength.is-fair span {
  width: 52%;
  background: #c58d23;
}

.password-strength.is-good span {
  width: 76%;
  background: var(--success-border);
}

.password-strength.is-strong span {
  width: 100%;
  background: #2f6f55;
}

.register-error {
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.45;
}

.register-error.is-info {
  border-left-color: var(--gold-600);
  background: #fbf6eb;
  color: var(--navy-900);
}

.register-actions {
  padding-top: 20px;
  border-top: 1px solid var(--branch-grey-200);
}

.register-submit {
  position: relative;
  width: 100%;
  height: 49px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.register-submit:hover,
.register-submit:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.register-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.register-submit[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation:
    register-spinner 700ms linear infinite;
}

@keyframes register-spinner {
  to {
    transform: rotate(360deg);
  }
}

.register-switch {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.register-switch a {
  margin-left: 3px;
  color: var(--navy-800);
  font-weight: 800;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
}

.register-switch a:hover,
.register-switch a:focus-visible {
  color: var(--gold-700);
}

.register-mfa {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.register-mfa-heading {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold-500);
}

.register-mfa-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 27px;
  font-weight: normal;
  line-height: 1.15;
}

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

.register-mfa-option {
  position: relative;
  min-height: 160px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--branch-grey-200);
  border-left: 3px solid var(--navy-800);
  border-radius: 2px;
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.register-mfa-option:hover,
.register-mfa-option:focus-visible {
  border-color: var(--gold-600);
  border-left-color: var(--gold-600);
  background: #fbf6eb;
  transform: translateY(-2px);
}

.register-mfa-option:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.register-mfa-option.is-recommended {
  border-left-color: var(--gold-600);
}

.register-mfa-option-label {
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
}

.register-mfa-recommended {
  padding: 5px 8px;
  border-radius: 2px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.register-mfa-option-copy {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.register-totp-setup {
  padding: 18px;
  border: 1px solid var(--branch-grey-200);
  border-left: 3px solid var(--navy-800);
  border-radius: 2px;
  background: var(--white);
}

/* ─────────────────────────────────────────────
   Account dashboard
   ───────────────────────────────────────────── */

.dashboard-main {
  padding: 26px 20px 42px;
}

.dashboard-shell {
  width: min(100%, 920px);
}

.admin-work-zone-dashboard-shell,
.audit-log-shell,
.translations-admin-shell {
  width: min(100%, 1120px);
}

.admin-work-zone-dashboard-shell {
  overflow: visible;
}

.dashboard-heading {
  min-height: 126px;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.dashboard-heading-copy {
  min-width: 0;
}

.dashboard-eyebrow {
  margin: 0 0 5px;
  color: var(--gold-200);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.dashboard-member-name {
  margin: 7px 0 0;
  color: var(--branch-grey-200);
  font-size: 14px;
  line-height: 1.4;
}

.dashboard-role-summary {
  flex: 0 0 auto;
  max-width: 340px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.dashboard-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.dashboard-role-summary p {
  margin: 0;
  color: var(--branch-grey-200);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-role-badge.role-subscriber {
  background:
    rgba(255, 255, 255, 0.08);
}

.dashboard-role-badge.role-contributor,
.dashboard-role-badge.role-author {
  border-color: var(--gold-500);
  color: var(--gold-200);
  background:
    rgba(213, 155, 39, 0.08);
}

.dashboard-role-badge.role-editor,
.dashboard-role-badge.role-administrator {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}

.dashboard-role-badge.role-developer {
  border-color: #b42318;
  background: #b42318;
  color: var(--white);
}

.dashboard-status {
  padding: 28px 32px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 14px;
}

.dashboard-status.is-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
}

.dashboard-status p {
  margin: 0;
}

.dashboard-content {
  display: grid;
  grid-template-columns:
    minmax(0, 1.2fr) minmax(280px, 0.8fr);
  background: var(--white);
}

.dashboard-section {
  min-width: 0;
  padding: 28px 30px 30px;
}

.dashboard-actions-section {
  border-left: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.dashboard-section-heading {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-500);
}

.dashboard-section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
}

.dashboard-detail-row {
  min-height: 55px;
  display: grid;
  grid-template-columns:
    145px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.dashboard-detail-row:last-child {
  border-bottom: 0;
}

.dashboard-detail-label {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.dashboard-profile-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-profile-message {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--navy-800);
  background: var(--branch-grey-100);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-profile-message.is-success {
  border-left-color: #2f7d4f;
  background: #e7f3ec;
  color: #225f3c;
}

.dashboard-profile-message.is-error {
  border-left-color: #a63c35;
  background: #f8e9e7;
  color: #842d27;
}

.dashboard-profile-message.is-info {
  border-left-color: var(--gold-600);
}

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

.dashboard-profile-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dashboard-profile-field.is-wide {
  grid-column: 1 / -1;
}

.dashboard-profile-field label {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-profile-field input,
.dashboard-profile-field select {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.dashboard-profile-field input[readonly],
.dashboard-profile-field select:disabled {
  border-color: transparent;
  background: var(--white);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
  pointer-events: none;
  user-select: text;
}

.dashboard-profile-form[data-editing="false"] .dashboard-profile-field label {
  pointer-events: none;
}

.dashboard-profile-field select:disabled {
  appearance: none;
}

.dashboard-profile-form[data-editing="true"] .dashboard-profile-field input,
.dashboard-profile-form[data-editing="true"] .dashboard-profile-field select {
  min-height: 42px;
  padding: 9px 10px;
  border-color: var(--branch-grey-300);
  background: var(--branch-grey-100);
  pointer-events: auto;
}

.dashboard-profile-form[data-editing="true"] .dashboard-profile-field {
  gap: 6px;
}

.dashboard-profile-form[data-editing="true"] .dashboard-profile-field input {
  cursor: text;
}

.dashboard-profile-form[data-editing="true"] .dashboard-profile-field select {
  appearance: auto;
  cursor: pointer;
}

.dashboard-profile-form[data-editing="true"] .dashboard-profile-field input:focus,
.dashboard-profile-form[data-editing="true"] .dashboard-profile-field select:focus {
  outline: 2px solid rgba(213, 155, 39, 0.45);
  outline-offset: 2px;
}

.dashboard-profile-readonly {
  border-top: 1px solid var(--branch-grey-200);
}

.admin-work-zone-page {
  background: var(--white);
}

.audit-log-page {
  background: var(--white);
}

.audit-log-content {
  width: 100%;
}

.audit-log-panel {
  min-width: 0;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.audit-log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.audit-log-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.audit-log-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-width: 1px;
  border-style: solid;
}

.audit-log-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(2, minmax(180px, 240px)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.audit-log-user-search input {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
}

.audit-log-user-search input:focus {
  outline: 2px solid rgba(213, 155, 39, 0.45);
  outline-offset: 2px;
}

.audit-log-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 40px;
  min-width: 76px;
  min-height: 40px;
  border-width: 1px;
  border-style: solid;
}

.audit-log-filters .admin-editor-field select {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
}

.audit-log-refresh-button svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.audit-log-refresh-button.is-loading svg {
  animation: audit-log-refresh-spin 750ms linear infinite;
  transform-origin: center;
}

.audit-log-refresh-button:hover,
.audit-log-refresh-button:focus-visible,
.audit-log-filter-button:hover,
.audit-log-filter-button:focus-visible {
  transform: none;
}

.audit-log-refresh-button:hover,
.audit-log-refresh-button:focus-visible {
  border-color: var(--navy-900);
  background: var(--branch-grey-100);
  color: var(--navy-900);
}

.audit-log-filter-button:hover,
.audit-log-filter-button:focus-visible {
  border-color: var(--gold-600);
  background: var(--gold-600);
  color: var(--navy-950);
}

@keyframes audit-log-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.audit-log-entry {
  position: relative;
  overflow: hidden;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
  border-top-width: 1px;
  background: var(--white);
}

.audit-log-entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--audit-accent, var(--navy-900));
}

.audit-log-entry .admin-post-header,
.audit-log-entry .admin-post-details,
.audit-log-entry .audit-log-metadata {
  margin-left: 8px;
}

.audit-log-entry .admin-post-details a {
  color: var(--navy-900);
  font-weight: 800;
}

.audit-log-entry .admin-post-type {
  border-color: var(--audit-accent, var(--navy-900));
  background: var(--audit-accent, var(--navy-900));
  color: var(--audit-badge-text, var(--white));
}

.audit-log-entry.is-user-login,
.audit-log-entry.is-user-login_mfa_required {
  --audit-accent: #2f6f9f;
  background: #eef7fc;
}

.audit-log-entry.is-content-created {
  --audit-accent: #6f5aa8;
  background: #f5f2fb;
}

.audit-log-entry.is-content-published {
  --audit-accent: #1f7a4d;
  background: #edf8f2;
}

.audit-log-entry.is-content-rejected {
  --audit-accent: #b45309;
  background: #fff7ed;
}

.audit-log-entry.is-content-deleted {
  --audit-accent: #b42318;
  background: #fff1f0;
}

.audit-log-entry.is-config-access_requested,
.audit-log-entry.is-config-token_accepted,
.audit-log-entry.is-config-token_rejected,
.audit-log-entry.is-config-updated {
  --audit-accent: #dc2626;
  --audit-badge-text: var(--white);
  border-color: #dc2626;
  background: #fee2e2;
  box-shadow: inset 0 0 0 2px rgba(220, 38, 38, 0.22);
}

.audit-log-entry.is-config-access_requested .admin-post-header strong,
.audit-log-entry.is-config-token_accepted .admin-post-header strong,
.audit-log-entry.is-config-token_rejected .admin-post-header strong,
.audit-log-entry.is-config-updated .admin-post-header strong {
  color: #7f1d1d;
}

.audit-log-entry.is-timer-created,
.audit-log-entry.is-timer-updated,
.audit-log-entry.is-timer-deleted {
  --audit-accent: #0f766e;
  --audit-badge-text: var(--white);
  background: #ecfdf5;
}

.audit-log-entry.is-user-role_changed {
  --audit-accent: var(--gold-600);
  --audit-badge-text: var(--navy-950);
  background: #fff8e8;
}

.audit-log-entry.is-user-content_areas_changed {
  --audit-accent: #0f766e;
  background: #ecfdfa;
}

.audit-log-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.audit-log-metadata-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid rgba(32, 38, 66, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--branch-grey-800);
  font-size: 12px;
  line-height: 1.35;
}

.audit-log-metadata-chip strong {
  flex: 0 0 auto;
  color: var(--navy-900);
  font-weight: 900;
}

.audit-log-metadata-value {
  min-width: 0;
}

.audit-log-metadata-chip[data-metadata-key="commentContent"] {
  flex-basis: 100%;
  align-items: flex-start;
  border-radius: 4px;
  white-space: normal;
}

.admin-work-zone-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.4fr);
  gap: 16px;
  align-items: start;
}

.admin-work-zone-shell.is-roles-view,
.admin-work-zone-shell.is-media-view {
  grid-template-columns: 1fr;
}

.admin-work-zone-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--gold-200);
  background: rgba(234, 211, 163, 0.28);
  color: var(--branch-grey-900);
  font-weight: 700;
}

.admin-user-list-panel,
.admin-user-detail-panel,
.admin-role-editor-panel {
  min-width: 0;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
  overflow: hidden;
}

.admin-roles-manager {
  width: 100%;
  max-width: 1280px;
}

.admin-panel-heading,
.admin-user-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.admin-user-search {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.admin-user-search span {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-user-search input {
  min-height: 40px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.admin-user-search input:focus {
  outline: 2px solid rgba(213, 155, 39, 0.45);
  outline-offset: 2px;
}

.admin-panel-heading h3,
.admin-user-detail-heading h3,
.admin-posts-panel h4 {
  margin: 0;
  color: var(--branch-grey-900);
  font-size: 15px;
  line-height: 1.3;
}

.admin-user-detail-heading p {
  margin: 4px 0 0;
  color: var(--branch-grey-700);
  font-size: 13px;
}

.admin-user-list {
  display: grid;
  max-height: 520px;
  overflow: auto;
}

.admin-user-row {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--branch-grey-200);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-user-row:hover,
.admin-user-row:focus-visible,
.admin-user-row.is-selected {
  background: var(--branch-grey-100);
}

.admin-user-row strong {
  font-size: 14px;
  line-height: 1.3;
}

.admin-user-row span {
  color: var(--branch-grey-700);
  font-size: 12px;
  line-height: 1.35;
}

.admin-user-role-badge {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid var(--branch-grey-300);
  background: var(--white);
  color: var(--branch-grey-800);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-user-role-badge.role-developer {
  border-color: #b42318;
  background: #b42318;
  color: var(--white);
}

.admin-user-role-badge.verification-verified {
  border-color: #0f766e;
  background: #0f766e;
  color: var(--white);
}

.admin-user-role-badge.account-ghost,
.dashboard-role-badge.role-ghost {
  border-color: #9ca3af;
  background: #e5e7eb;
  color: #374151;
}

.admin-user-post-count {
  font-weight: 800;
}

.admin-user-editor {
  display: grid;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.admin-editor-field,
.admin-editor-fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-editor-field>span,
.admin-editor-fieldset legend {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.admin-editor-field input,
.admin-editor-field select,
.admin-editor-field textarea {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
}

.admin-editor-field textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-editor-field input[type="color"] {
  width: 76px;
  padding: 3px;
}

.cmcen-color-picker {
  position: relative;
  display: block;
}

.cmcen-color-picker-custom {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  background: var(--white);
}

.cmcen-color-picker-preview,
.cmcen-color-picker-swatch {
  background:
    linear-gradient(45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.08) 75%),
    var(--picker-color);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.cmcen-color-picker-preview {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(16, 21, 34, 0.2);
  border-radius: 8px;
  cursor: pointer;
}

.cmcen-color-picker-preview:hover,
.cmcen-color-picker-preview:focus-visible {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(197, 141, 35, 0.18);
}

.cmcen-color-picker-custom input {
  min-height: 44px;
  text-transform: uppercase;
}

.cmcen-color-picker-popover {
  position: fixed;
  top: var(--picker-popover-top, 0);
  left: var(--picker-popover-left, 0);
  z-index: 80;
  display: none;
  width: var(--picker-popover-width, min(540px, calc(100vw - 24px)));
  max-height: min(70vh, 560px);
  overflow: auto;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(16, 21, 34, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(15, 18, 31, 0.22);
}

.cmcen-color-picker.is-open .cmcen-color-picker-popover {
  display: grid;
}

.cmcen-color-picker-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.cmcen-color-picker-row-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cmcen-color-picker-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(26px, 1fr));
  gap: 0.35rem;
}

.cmcen-color-picker-swatch {
  width: 100%;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(16, 21, 34, 0.18);
  border-radius: 6px;
  cursor: pointer;
}

.cmcen-color-picker-swatch:hover,
.cmcen-color-picker-swatch:focus-visible {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(197, 141, 35, 0.18);
}

.cmcen-date-time-picker {
  position: relative;
  display: block;
}

.cmcen-native-date-input-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cmcen-date-time-trigger {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--branch-grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--branch-grey-900);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.cmcen-date-time-trigger.is-placeholder {
  color: var(--branch-grey-700);
}

.cmcen-date-time-trigger:hover,
.cmcen-date-time-trigger:focus-visible {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(197, 141, 35, 0.18);
}

.cmcen-date-time-popover {
  position: fixed;
  top: var(--date-popover-top, 0);
  left: var(--date-popover-left, 0);
  z-index: 90;
  display: none;
  width: var(--date-popover-width, min(360px, calc(100vw - 24px)));
  padding: 0.8rem;
  border: 1px solid rgba(16, 21, 34, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(15, 18, 31, 0.22);
}

.cmcen-date-time-picker.is-open .cmcen-date-time-popover {
  display: grid;
  gap: 0.75rem;
}

.cmcen-date-time-header,
.cmcen-date-time-actions,
.cmcen-date-time-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.cmcen-date-time-header strong {
  color: var(--branch-grey-900);
  font-size: 0.95rem;
}

.cmcen-date-time-nav,
.cmcen-date-time-action {
  min-height: 34px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--branch-grey-300);
  border-radius: 8px;
  background: var(--branch-grey-100);
  color: var(--navy-900);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.cmcen-date-time-action.is-primary {
  border-color: var(--gold-600);
  background: var(--gold-500);
  color: var(--navy-950);
}

.cmcen-date-time-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.cmcen-date-time-weekday {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.cmcen-date-time-blank {
  min-height: 34px;
}

.cmcen-date-time-day {
  min-width: 0;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--branch-grey-100);
  color: var(--branch-grey-900);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cmcen-date-time-day:hover,
.cmcen-date-time-day:focus-visible {
  border-color: var(--gold-600);
}

.cmcen-date-time-day.is-today {
  border-color: var(--branch-grey-500);
}

.cmcen-date-time-day.is-selected {
  border-color: var(--gold-600);
  background: var(--gold-500);
  color: var(--navy-950);
}

.cmcen-date-time-time-row {
  padding-top: 0.7rem;
  border-top: 1px solid var(--branch-grey-200);
}

.cmcen-date-time-time-row span {
  color: var(--branch-grey-900);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cmcen-date-time-time-row input {
  width: 150px;
  min-height: 38px;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--branch-grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--branch-grey-900);
  font: inherit;
  font-weight: 800;
}

.admin-editor-field select:disabled {
  background: var(--white);
  color: var(--branch-grey-700);
  opacity: 1;
}

.admin-editor-help {
  color: var(--branch-grey-700);
  font-size: 12px;
  line-height: 1.4;
}

.admin-content-area-options,
.admin-custom-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-content-area-option,
.admin-custom-role-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  font-size: 13px;
  font-weight: 700;
}

.admin-content-area-option input,
.admin-custom-role-option input {
  margin: 0;
}

.admin-role-color-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.admin-role-editor-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.32fr) minmax(520px, 1fr);
  gap: 0;
}

.admin-role-list {
  display: grid;
  align-content: start;
  max-height: 560px;
  overflow: auto;
  border-right: 1px solid var(--branch-grey-200);
}

.admin-role-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 8px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--branch-grey-200);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-role-row:hover,
.admin-role-row:focus-visible,
.admin-role-row.is-selected {
  background: var(--branch-grey-100);
}

.admin-role-row strong {
  font-size: 13px;
  line-height: 1.3;
}

.admin-role-row span:last-child {
  grid-column: 2;
  color: var(--branch-grey-700);
  font-size: 12px;
}

.admin-role-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.admin-role-field-description,
.admin-role-field-permissions,
.admin-role-form-actions {
  grid-column: 1 / -1;
}

.admin-permission-groups {
  column-count: 2;
  column-gap: 14px;
}

.admin-permission-group {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--branch-grey-100);
  break-inside: avoid;
}

.admin-permission-group>strong {
  display: block;
  margin-bottom: 10px;
  color: var(--branch-grey-900);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-permission-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: start;
  min-height: 44px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.admin-permission-option:hover,
.admin-permission-option:focus-within {
  border-color: var(--branch-grey-300);
  background: var(--white);
}

.admin-permission-option.is-selected {
  border-color: rgba(213, 155, 39, 0.65);
  background: rgba(234, 211, 163, 0.22);
}

.admin-permission-option input {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--gold-600);
}

.admin-permission-option small {
  color: var(--branch-grey-700);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

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

.admin-work-zone-button {
  min-height: 36px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--branch-grey-300);
  background: var(--white);
  color: var(--branch-grey-900);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cms-page-main {
  padding: 36px 18px 60px;
}

.cms-page {
  width: min(100%, 960px);
  margin: 0 auto;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.cms-page-heading {
  padding: 34px clamp(18px, 5vw, 52px);
  border-bottom: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.cms-page-heading h1 {
  margin: 0;
  color: var(--branch-grey-900);
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
}

.cms-page-summary {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--branch-grey-800);
  font-size: 18px;
  line-height: 1.55;
}

.cms-page-body {
  display: grid;
  gap: 24px;
  padding: clamp(18px, 5vw, 52px);
}

.cms-block {
  min-width: 0;
}

.cms-block h2,
.cms-block h3,
.cms-block p {
  margin-top: 0;
}

.cms-block h2 {
  color: var(--branch-grey-900);
  font-size: 28px;
  line-height: 1.2;
}

.cms-block h3 {
  color: var(--branch-grey-900);
  font-size: 22px;
  line-height: 1.25;
}

.cms-block p {
  color: var(--branch-grey-800);
  font-size: 16px;
  line-height: 1.7;
}

.cms-image-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
}

.cms-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.cms-block-image .cms-image-frame {
  max-height: 560px;
  aspect-ratio: 16 / 9;
}

.cms-block-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.cms-image-caption {
  margin: 8px 0 0;
  color: var(--branch-grey-700);
  font-size: 13px;
}

.cms-block-callout {
  padding: 16px 18px;
  border-left: 4px solid var(--gold-500);
  background: rgba(234, 211, 163, 0.22);
}

.cms-block-callout.is-important {
  border-left-color: #b42318;
  background: rgba(180, 35, 24, 0.08);
}

.cms-page-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--branch-green);
  background: var(--branch-green);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.cms-block-divider hr {
  border: 0;
  border-top: 1px solid var(--branch-grey-200);
}

.cms-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.cms-column {
  min-width: 0;
}

.cms-column .cms-image-frame,
.cms-carousel-slide .cms-image-frame {
  display: block;
  width: 100%;
}

.cms-column .cms-image-frame {
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
}

.cms-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 78%);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.cms-carousel-slide {
  margin: 0;
  scroll-snap-align: start;
}

.cms-carousel-slide .cms-image-frame {
  aspect-ratio: 16 / 9;
}

.cms-carousel-slide figcaption {
  margin-top: 8px;
  color: var(--branch-grey-700);
  font-size: 13px;
}

.pages-admin-shell {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(150px, 176px) minmax(440px, 1.4fr) minmax(240px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.pages-admin-shell:not(.is-page-selected) {
  grid-template-columns: minmax(240px, 360px) minmax(380px, 1fr) minmax(320px, 0.85fr);
}

.pages-admin-shell>.admin-work-zone-message {
  grid-column: 1 / -1;
}

.pages-admin-list-panel,
.pages-admin-editor,
.pages-navigation-panel {
  min-width: 0;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.pages-admin-list,
.pages-navigation-list {
  display: grid;
}

.pages-admin-page-row,
.pages-navigation-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--branch-grey-200);
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.pages-admin-page-row {
  cursor: pointer;
}

.pages-admin-page-row:hover,
.pages-admin-page-row:focus-visible,
.pages-admin-page-row.is-selected {
  background: var(--branch-grey-100);
}

.pages-admin-page-row strong,
.pages-navigation-row span {
  color: var(--branch-grey-900);
  font-size: 14px;
  line-height: 1.35;
}

.pages-admin-page-row span {
  color: var(--branch-grey-700);
  font-size: 12px;
}

.pages-editor-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pages-autosave-status {
  min-height: 24px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--branch-grey-300);
  border-radius: 999px;
  background: var(--branch-grey-100);
  color: var(--branch-grey-700);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pages-autosave-status.is-pending {
  border-color: var(--gold-500);
  background: rgba(234, 211, 163, 0.24);
  color: var(--branch-grey-900);
}

.pages-autosave-status.is-saving {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.pages-autosave-status.is-saved {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e;
}

.pages-autosave-status.is-error {
  border-color: #b42318;
  background: rgba(180, 35, 24, 0.1);
  color: #b42318;
}

.pages-list-empty,
.pages-editor-empty {
  display: grid;
  gap: 6px;
  color: var(--branch-grey-700);
}

.pages-list-empty {
  padding: 16px 14px;
}

.pages-list-empty strong,
.pages-editor-empty strong {
  color: var(--branch-grey-900);
  font-size: 15px;
}

.pages-list-empty span,
.pages-editor-empty span {
  font-size: 13px;
  line-height: 1.45;
}

.pages-editor-empty {
  min-height: 320px;
  margin: 14px;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1px dashed var(--branch-grey-400);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.pages-editor-empty strong {
  font-size: 22px;
}

.pages-editor-empty span {
  max-width: 440px;
  font-size: 15px;
}

.pages-admin-editor,
.pages-navigation-panel {
  display: grid;
  gap: 12px;
}

.pages-admin-editor>.pages-editor-fieldset,
.pages-admin-editor>.pages-editor-field,
.pages-block-list,
.pages-editor-actions,
.pages-navigation-form,
.pages-navigation-list {
  margin-inline: 14px;
}

.pages-admin-editor {
  background:
    linear-gradient(rgba(71, 85, 105, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 85, 105, 0.08) 1px, transparent 1px),
    var(--white);
  background-size: 24px 24px;
}

.pages-add-block-placeholder {
  display: none;
}

.pages-add-block-placeholder+.pages-admin-editor.is-empty {
  grid-column: 2;
}

.pages-editor-field,
.pages-editor-fieldset {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.pages-editor-field span,
.pages-editor-fieldset legend {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pages-editor-field input,
.pages-editor-field textarea,
.pages-editor-field select,
.pages-navigation-form input,
.pages-navigation-form select {
  min-height: 40px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
}

.pages-editor-field textarea {
  min-height: 96px;
  resize: vertical;
}

.pages-access-editor {
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.pages-access-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 8px;
}

.pages-access-group>strong {
  color: var(--branch-grey-900);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pages-access-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--branch-grey-800);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.pages-access-option input {
  flex: 0 0 auto;
}

.pages-access-role-swatch {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(12, 18, 32, 0.24);
  border-radius: 999px;
}

.pages-editor-actions,
.pages-block-toolbar,
.pages-navigation-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pages-navigation-panel {
  align-content: start;
}

.pages-navigation-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--white);
}

.pages-navigation-form-title {
  color: var(--branch-grey-900);
  font-size: 13px;
  line-height: 1.3;
}

.pages-navigation-add-page-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.pages-navigation-add-page-form .pages-navigation-form-title,
.pages-navigation-add-page-form .admin-work-zone-button {
  grid-column: 1 / -1;
}

.pages-navigation-form .admin-work-zone-button {
  width: fit-content;
}

.pages-add-block-controls {
  position: sticky;
  top: 150px;
  z-index: 5;
  display: grid;
  gap: 7px;
  width: 100%;
  max-height: calc(100vh - 170px);
  overflow: auto;
  align-self: start;
  padding: 10px;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.pages-add-block-title {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.pages-palette-block {
  min-height: 40px;
  width: 100%;
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--branch-grey-300);
  border-radius: 7px;
  background: var(--branch-grey-100);
  color: var(--branch-grey-900);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: grab;
}

.pages-palette-block:hover,
.pages-palette-block:focus-visible {
  border-color: var(--gold-500);
  background: rgba(234, 211, 163, 0.26);
}

.pages-palette-block.is-dragging {
  opacity: 0.55;
}

.pages-palette-block:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pages-block-list {
  display: grid;
  gap: 8px;
  min-height: 260px;
  padding-block: 4px 12px;
}

.pages-canvas-drop-zone {
  min-height: 18px;
  display: grid;
  place-items: center;
  border: 1px dashed transparent;
  border-radius: 999px;
  color: transparent;
  transition:
    min-height 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.pages-canvas-drop-zone span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pages-canvas-drop-zone.is-active,
.pages-builder-empty .pages-canvas-drop-zone {
  min-height: 64px;
  border-color: var(--gold-500);
  background: rgba(234, 211, 163, 0.22);
  color: var(--branch-grey-900);
}

.pages-block-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 22px rgba(12, 18, 32, 0.08);
  cursor: grab;
}

.pages-block-editor.is-dragging {
  opacity: 0.55;
}

.pages-block-editor.is-drop-target {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.pages-block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pages-block-heading strong {
  color: var(--branch-grey-900);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pages-builder-empty {
  min-height: 220px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1px dashed var(--branch-grey-400);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--branch-grey-700);
  font-weight: 800;
  text-align: center;
}

.pages-builder-empty .pages-canvas-drop-zone {
  width: min(100% - 24px, 520px);
  border-radius: 8px;
}

.pages-column-editors,
.pages-carousel-item-editors {
  display: grid;
  gap: 12px;
}

.pages-column-editors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .pages-column-editors {
    grid-template-columns: 1fr;
  }
}

.pages-column-editor,
.pages-carousel-item-editor {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--branch-grey-100);
}

.pages-column-editor .pages-editor-fieldset {
  gap: 8px;
}

.pages-column-editor .pages-editor-fieldset legend {
  margin-bottom: 2px;
}

.pages-column-editor .pages-editor-field {
  gap: 4px;
}

.pages-column-editor .pages-editor-field span {
  font-size: 10px;
}

.pages-column-editor h4,
.pages-carousel-item-editor h4 {
  margin: 0;
  color: var(--branch-grey-900);
  font-size: 13px;
}

.pages-mini-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pages-image-drop-zone {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 14px;
  border: 1px dashed var(--branch-grey-400);
  background: var(--white);
  color: var(--branch-grey-800);
  font-weight: 800;
  cursor: pointer;
}

.pages-media-field {
  display: grid;
  gap: 8px;
}

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

.pages-upload-progress {
  display: grid;
  gap: 6px;
  color: var(--branch-grey-700);
  font-size: 12px;
  font-weight: 800;
}

.pages-upload-progress-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--branch-grey-200);
}

.pages-upload-progress-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--upload-progress, 0%);
  border-radius: inherit;
  background: #2563eb;
  transition: width 150ms ease;
}

.pages-upload-progress.is-complete .pages-upload-progress-bar::before {
  background: #0f766e;
}

.pages-upload-progress.is-error {
  color: #b42318;
}

.pages-upload-progress.is-error .pages-upload-progress-bar::before {
  background: #b42318;
}

.pages-image-drop-zone.is-dragging {
  border-color: var(--gold-500);
  background: rgba(234, 211, 163, 0.24);
}

.pages-image-preview-frame {
  width: 100%;
  max-height: 240px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
}

.pages-image-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: center;
}

.pages-crop-editor {
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--branch-grey-300);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(8, 13, 24, 0.36);
}

.pages-crop-editor-body {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.55fr);
  gap: 16px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.pages-crop-preview {
  max-height: none;
  aspect-ratio: 16 / 10;
}

.pages-crop-controls {
  display: grid;
  align-content: start;
  gap: 14px;
}

.pages-crop-rotate-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pages-crop-rotate-controls .is-active {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}

.pages-media-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 24, 0.72);
}

.pages-media-picker {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--branch-grey-300);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(8, 13, 24, 0.36);
}

.pages-media-picker-header,
.pages-media-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.pages-media-picker-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--branch-grey-200);
  border-bottom: 0;
}

.pages-media-picker-header h3 {
  margin: 0;
  color: var(--branch-grey-900);
  font-size: 18px;
}

.pages-media-picker-body {
  min-height: 280px;
  overflow: auto;
  padding: 16px;
}

.pages-media-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.pages-media-picker-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 8px;
  background: var(--branch-grey-100);
  color: var(--branch-grey-900);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pages-media-picker-item:hover,
.pages-media-picker-item:focus-visible {
  border-color: var(--gold-500);
  outline: 2px solid rgba(213, 155, 39, 0.28);
  outline-offset: 2px;
}

.pages-media-picker-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: var(--white);
}

.pages-media-picker-item span {
  overflow-wrap: anywhere;
  color: var(--branch-grey-700);
  font-size: 11px;
  line-height: 1.35;
}

.pages-navigation-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-work-zone-button.is-primary {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.admin-work-zone-button.is-danger {
  border-color: #b42318;
  background: #b42318;
  color: var(--white);
}

.admin-work-zone-button:hover,
.admin-work-zone-button:focus-visible {
  transform: translateY(-1px);
}

.admin-work-zone-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.admin-work-zone-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid var(--navy-800);
  background: var(--navy-850, #1d2a3f);
}

.admin-work-zone-tabs::-webkit-scrollbar {
  display: none;
}

.admin-work-zone-tab {
  position: relative;
  flex: 1 0 132px;
  min-height: 58px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  color: var(--branch-grey-100);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-work-zone-tab-help {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.45rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.admin-work-zone-tooltip {
  position: fixed;
  z-index: 5000;
  width: min(260px, 75vw);
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 18px 40px rgba(8, 13, 24, 0.28);
}

.admin-work-zone-page-tabs {
  margin: 0;
}

.admin-work-zone-tab:hover,
.admin-work-zone-tab:focus-visible,
.admin-work-zone-tab.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.admin-work-zone-tab.is-active::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -3px;
  left: 24px;
  height: 3px;
  background: var(--gold-500);
}

.admin-media-library {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.admin-media-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.admin-media-heading.is-dragging {
  border-color: var(--gold-500);
  background: rgba(234, 211, 163, 0.28);
}

.admin-media-heading h3 {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.admin-media-heading p {
  margin: 0;
  color: var(--branch-grey-700);
  font-size: 13px;
  line-height: 1.45;
}

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

.admin-media-sort-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--branch-grey-700);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-media-sort-field select {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--branch-grey-300);
  background: var(--white);
  color: var(--branch-grey-900);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.admin-media-upload-button {
  cursor: pointer;
}

.admin-media-upload-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.admin-media-upload-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.admin-media-upload-details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.admin-media-upload-details strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--branch-grey-900);
  font-size: 13px;
}

.admin-media-upload-details span {
  flex: 0 0 auto;
  color: var(--branch-grey-700);
  font-size: 12px;
  font-weight: 800;
}

.admin-media-upload-progress {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--branch-grey-200);
}

.admin-media-upload-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--upload-progress, 0%);
  border-radius: inherit;
  background: #2563eb;
  transition: width 150ms ease;
}

.admin-media-upload-row.is-complete .admin-media-upload-progress::before {
  background: #0f766e;
}

.admin-media-upload-row.is-error .admin-media-upload-progress::before {
  background: #b42318;
}

.admin-media-upload-row.is-error .admin-media-upload-details span {
  color: #b42318;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.admin-media-card {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.admin-media-preview {
  height: 180px;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      var(--branch-grey-100),
      var(--branch-grey-200));
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-media-body {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-media-body h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-media-meta,
.admin-media-attachments,
.admin-media-attachment span {
  color: var(--branch-grey-700);
  font-size: 12px;
  line-height: 1.45;
}

.admin-media-meta {
  margin: 0;
}

.admin-media-attachments {
  display: grid;
  gap: 7px;
}

.admin-media-attachments strong {
  color: var(--branch-grey-800);
  font-size: 12px;
  line-height: 1.35;
}

.admin-media-attachments ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-media-attachment {
  display: grid;
  gap: 2px;
  padding: 7px;
  border-left: 3px solid var(--gold-500);
  background: var(--branch-grey-100);
}

.admin-media-attachment a,
.admin-media-attachment>span:first-child {
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.admin-media-attachment a:hover,
.admin-media-attachment a:focus-visible {
  text-decoration: underline;
}

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

.admin-media-load-more {
  justify-self: center;
}

.site-config-content,
.site-config-form {
  display: grid;
  gap: 16px;
}

.site-config-toolbar {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.site-config-toolbar p {
  max-width: 680px;
  margin: 0;
  color: var(--branch-grey-700);
  font-size: 13px;
  line-height: 1.5;
}

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

.site-config-list {
  display: grid;
  gap: 10px;
}

.site-config-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.site-config-key {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-config-badge {
  padding: 3px 6px;
  background: var(--gold-500);
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-config-row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--branch-grey-300);
  background: var(--branch-grey-100);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.site-config-row input:focus {
  outline: 2px solid rgba(213, 155, 39, 0.45);
  outline-offset: 2px;
}

@media (max-width: 700px) {

  .site-config-toolbar,
  .site-config-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.admin-posts-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-post-item {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.admin-post-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.admin-post-header a,
.admin-post-header strong {
  color: var(--navy-900);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.admin-post-header a:hover,
.admin-post-header a:focus-visible {
  text-decoration: underline;
}

.admin-post-badges {
  flex: 0 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-post-type,
.admin-post-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid var(--branch-grey-300);
  background: var(--white);
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-post-type {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.admin-post-type.type-retirementMessage {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950);
}

.admin-post-type.type-retirementComment {
  border-color: var(--navy-800);
  background: var(--white);
  color: var(--navy-800);
}

.admin-post-details,
.admin-post-excerpt,
.admin-empty-state {
  margin: 0;
  color: var(--branch-grey-700);
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-profile-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-profile-button {
  min-height: 42px;
  padding: 10px 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--navy-800);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.dashboard-profile-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.dashboard-profile-button.is-primary {
  background: var(--navy-900);
  color: var(--white);
}

.dashboard-profile-button.is-secondary {
  background: var(--white);
  color: var(--navy-900);
}

.dashboard-profile-button:hover:not(:disabled),
.dashboard-profile-button:focus-visible:not(:disabled) {
  border-color: var(--gold-600);
  background: var(--gold-500);
  color: var(--navy-950);
}

.dashboard-profile-button.is-loading {
  cursor: progress;
}

.dashboard-profile-button.is-saved,
.dashboard-profile-button.is-saved:hover,
.dashboard-profile-button.is-saved:focus-visible {
  border-color: var(--success-border);
  background: var(--success-border);
  color: var(--white);
  cursor: default;
  opacity: 1;
}

.dashboard-profile-button .loading-state-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
  border-top-color: currentColor;
}

.dashboard-profile-save-check {
  font-size: 20px;
  line-height: 1;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-review-work {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--branch-grey-200);
}

.dashboard-review-work h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: normal;
  line-height: 1.2;
}

.dashboard-review-queues {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-review-queue-link {
  min-height: 72px;
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--branch-grey-200);
  border-top: 3px solid var(--navy-800);
  border-radius: 2px;
  background: var(--branch-grey-100);
  color: var(--navy-900);
  text-align: center;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.dashboard-review-queue-link:hover,
.dashboard-review-queue-link:focus-visible {
  border-color: var(--gold-600);
  border-top-color: var(--navy-800);
  background: #fff8e7;
}

.dashboard-review-queue-link strong {
  color: var(--gold-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1;
}

.dashboard-review-queue-link strong.is-empty {
  color: var(--text-muted);
}

.dashboard-review-queue-link span,
.dashboard-review-counts-unavailable {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.dashboard-review-queue-link span {
  min-height: 2.6em;
  display: flex;
  align-items: center;
}

.dashboard-review-counts-unavailable {
  grid-column: 1 / -1;
  margin: 0;
}

.dashboard-review-open-link {
  grid-column: 1 / -1;
  color: var(--navy-800);
  font-size: 12px;
}

.dashboard-action {
  min-height: 65px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--branch-grey-200);
  border-left: 3px solid var(--navy-800);
  border-radius: 2px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.dashboard-action:hover,
.dashboard-action:focus-visible {
  border-color: var(--gold-600);
  border-left-color: var(--gold-600);
  background: var(--branch-grey-100);
  transform: translateX(2px);
}

.dashboard-action.is-notification {
  border-left-color: #a63c35;
}

.dashboard-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-action-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.dashboard-action-copy strong {
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.2;
}

.dashboard-action-copy>span:not(.dashboard-action-title-row) {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.dashboard-action-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #a63c35;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-action-arrow {
  flex: 0 0 auto;
  color: var(--gold-700);
  font-size: 20px;
  line-height: 1;
}

.dashboard-error {
  padding: 12px 14px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.45;
}

.notifications-main {
  min-height: 70vh;
  padding: 42px 20px 64px;
}

.notifications-shell {
  width: min(980px, 100%);
  margin: 0 auto;
}

.notifications-heading {
  min-height: 126px;
  margin-bottom: 22px;
  padding: 25px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.notifications-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.notifications-heading p:last-child {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--branch-grey-200);
  font-size: 14px;
  line-height: 1.55;
}

.notifications-status {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--branch-grey-500);
  background: var(--white);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.notifications-status.is-loading {
  min-height: 160px;
  display: grid;
  place-items: center;
  border-left-color: var(--gold-500);
}

.notifications-status.is-error {
  border-left-color: #a63c35;
  background: #f8e9e7;
  color: #842d27;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notification-card {
  padding: 18px;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid #a63c35;
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 7px 18px rgba(15, 18, 31, 0.08);
}

.notification-card.is-highlighted {
  outline: 3px solid rgba(213, 155, 39, 0.32);
  outline-offset: 2px;
}

.notification-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.notification-card-heading {
  min-width: 0;
}

.notification-type {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.notification-card h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.25;
}

.notification-date {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.notification-reason {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.5;
}

.notification-card-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--branch-grey-500);
  background: var(--branch-grey-100);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-card-message.is-success {
  border-left-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success-text);
}

.notification-card-message.is-error {
  border-left-color: #a63c35;
  background: #f8e9e7;
  color: #842d27;
}

.notification-edit-link,
.notification-comment-form button {
  width: fit-content;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.notification-edit-link:hover,
.notification-edit-link:focus-visible,
.notification-comment-form button:hover,
.notification-comment-form button:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.notification-comment-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-comment-form label {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}

.notification-comment-form textarea {
  width: 100%;
  min-height: 132px;
  padding: 12px 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
}

.notification-comment-form textarea:focus {
  border-color: var(--gold-600);
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.notification-comment-footer {
  display: flex;
  justify-content: flex-end;
}

.dashboard-mfa-section {
  grid-column: 1 / -1;
  border-top: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--white),
      #f8f9fa);
}

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

.mfa-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--branch-grey-200);
  border-left: 3px solid var(--navy-800);
  border-radius: 2px;
  background: var(--white);
}

.mfa-panel h3 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
}

.mfa-actions,
.mfa-verification-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.mfa-verification-row {
  margin-top: 14px;
}

.mfa-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.mfa-button-primary {
  background: var(--navy-900);
  color: var(--white);
}

.mfa-button:hover,
.mfa-button:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.mfa-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.mfa-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy-800);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
  text-underline-offset: 3px;
  cursor: pointer;
}

.mfa-link-button:hover,
.mfa-link-button:focus-visible {
  color: var(--gold-700);
}

.mfa-link-button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.mfa-link-button-danger {
  color: var(--danger);
}

.mfa-field {
  min-width: 180px;
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mfa-field span {
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mfa-field input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.mfa-field input:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.mfa-output {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.mfa-output:empty {
  display: none;
}

#totp-qr,
.mfa-qr {
  width: 128px;
  max-width: 100%;
  border: 1px solid var(--branch-grey-200);
  background: var(--white);
}

.mfa-secret {
  min-width: 0;
  max-height: 128px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.passkey-manager,
.totp-manager {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--branch-grey-200);
}

.passkey-manager-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.passkey-manager-heading h4 {
  margin: 0;
  color: var(--branch-grey-800);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.passkey-list,
.totp-status {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

.passkey-item,
.totp-status-card {
  min-height: 58px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--branch-grey-100);
}

.passkey-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.passkey-details strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.passkey-details span {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.passkey-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.passkey-empty {
  margin: 0;
  padding: 11px 12px;
  border: 1px dashed var(--branch-grey-200);
  color: var(--text-muted);
}


/* ─────────────────────────────────────────────
   Event submission
   ───────────────────────────────────────────── */

.event-submit-main {
  padding: 24px 18px 40px;
}

.event-submit-shell {
  width: min(100%, 1080px);
}

.event-submit-heading {
  min-height: 116px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.event-submit-standard {
  width: 60px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow:
    0 0 0 3px rgba(213, 155, 39, 0.08);
}

.event-submit-standard-grey {
  background:
    var(--branch-grey-500);
}

.event-submit-standard-navy {
  background: var(--navy-800);
}

.event-submit-heading-copy {
  min-width: 0;
}

.event-cancel-editing {
  min-height: 36px;
  padding: 8px 14px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--gold-500);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-200);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}

.event-cancel-editing:hover,
.event-cancel-editing:focus-visible {
  border-color: var(--gold-200);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.event-cancel-editing:disabled {
  cursor: progress;
  opacity: 0.7;
}

.event-submit-eyebrow,
.event-section-eyebrow {
  margin: 0 0 5px;
  color: var(--gold-200);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-submit-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.event-submit-heading-copy>p:last-child {
  max-width: 650px;
  margin: 7px 0 0;
  color: var(--branch-grey-200);
  font-size: 13px;
  line-height: 1.5;
}

.event-page-message {
  margin: 24px 28px 0;
  padding: 12px 14px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.5;
}

.event-page-message.is-success {
  border-left-color: #4f7358;
  background: #edf5ef;
  color: #36523d;
}

.retirement-page-loading {
  min-height: 220px;
  background: var(--white);
}

.event-submit-form {
  padding: 26px 28px 28px;
  background: var(--white);
}

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

.event-language-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
}

.event-language-heading {
  min-height: 54px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      #e4e7ea);
}

.event-language-heading>div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.event-language-code {
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.12em;
}

.event-language-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 20px;
  font-weight: normal;
  line-height: 1.2;
}

.event-language-panel .event-field {
  margin: 17px 17px 0;
}

.event-language-panel .event-field:last-child {
  margin-bottom: 18px;
}

.event-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.event-field label {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.event-field input,
.event-field textarea {
  width: 100%;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.event-field input {
  height: 45px;
  padding: 0 12px;
}

.event-field input[type="file"] {
  height: auto;
  min-height: 45px;
  padding: 9px 12px;
  font-size: 13px;
  cursor: pointer;
}

.event-field input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 12px;
  padding: 0 12px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.event-field input[type="file"]:hover::file-selector-button,
.event-field input[type="file"]:focus::file-selector-button {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.event-field textarea {
  min-height: 138px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

.event-field input:hover,
.event-field textarea:hover {
  border-color:
    var(--branch-grey-500);
}

.event-field input:focus,
.event-field textarea:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.event-field small {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.event-language-note {
  margin: 10px 2px 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.event-form-section,
.event-details-section,
.event-submitter-section {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--navy-800);
  border-radius: 2px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.event-schedule-section {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.event-submit-form>.event-form-section:first-child {
  margin-top: 0;
}

.event-section-heading {
  margin-bottom: 18px;
  padding-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.event-section-eyebrow {
  color: var(--gold-700);
}

.event-section-index {
  min-width: 32px;
  padding-top: 3px;
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.14em;
}

.event-section-index+div {
  min-width: 0;
  flex: 1;
}

.event-section-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
}

.event-section-heading p:not(.event-section-eyebrow) {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.event-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
}

.event-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--gold-600);
}

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

.event-time-zone-note {
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.event-submit-options {
  margin-top: 20px;
  padding-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--branch-grey-200);
}

.event-publication-copy {
  min-width: 0;
}

.event-publish-toggle>span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-publish-toggle strong {
  color: var(--navy-900);
  font-size: 12px;
}

.event-publish-toggle small,
.event-review-note {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: normal;
  line-height: 1.45;
}

.event-review-note {
  margin: 0;
}

.review-event-information {
  margin: 18px 18px 0;
}

.review-record-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
}

.review-record-section>h3 {
  margin: 0;
  padding: 12px 15px;
  border-bottom: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      #e4e7ea);
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 18px;
  font-weight: normal;
}

.review-record-data {
  padding: 14px 15px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 15px 20px;
}

.review-event-information .review-record-data {
  grid-template-columns:
    repeat(auto-fit,
      minmax(145px, 1fr));
}

.review-record-item {
  min-width: 0;
}

.review-record-item.is-wide {
  grid-column: 1 / -1;
}

.review-record-label {
  display: block;
  margin-bottom: 4px;
  color: var(--branch-grey-800);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-record-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.review-record-value.is-confirmed {
  color: #36523d;
  font-weight: 800;
}

.review-record-value.is-unconfirmed {
  color: #842d27;
  font-weight: 800;
}

.review-event-registration {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.review-submission-record {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.event-form-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.event-submit-button {
  position: relative;
  min-width: 190px;
  height: 48px;
  padding: 0 22px;
  flex: 0 0 auto;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.event-submit-button:hover,
.event-submit-button:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.event-submit-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.event-submit-button[aria-busy="true"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation:
    event-submit-spinner 700ms linear infinite;
}

.event-submit-button[aria-busy="true"]>span {
  visibility: hidden;
}

.my-events-section {
  margin: 24px 28px 0;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
}

.my-events-heading {
  padding: 18px 20px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.my-events-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
}

.my-events-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--gold-500);
  border-radius: 2px;
  background: rgba(213, 155, 39, 0.08);
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.my-events-intro {
  margin: 0;
  padding: 13px 20px;
  border-bottom: 1px solid var(--branch-grey-200);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.my-events-list {
  min-height: 184px;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.my-events-list .loading-state {
  min-height: 148px;
}

.my-events-message {
  margin: 0;
  padding: 14px;
  border-left: 3px solid var(--branch-grey-500);
  background: var(--white);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.my-event-card {
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--navy-800);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 5px 14px rgba(15, 18, 31, 0.08);
}

.my-event-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--branch-grey-200);
}

.my-event-card-header h3 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.3;
}

.my-event-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.my-event-status.status-draft {
  border-color: var(--branch-grey-500);
  background: var(--branch-grey-100);
  color: var(--branch-grey-800);
}

.my-event-status.status-pending {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.09);
  color: var(--gold-700);
}

.my-event-status.status-published {
  border-color: #5c8064;
  background: #edf5ef;
  color: #36523d;
}

.my-event-status.status-rejected {
  border-color: #a63c35;
  background: #f8e9e7;
  color: #842d27;
}

.my-event-card-details {
  padding: 12px 16px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  border-bottom: 1px solid var(--branch-grey-200);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.my-event-card-details span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.my-event-card-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.my-event-rejection {
  margin: 0;
  padding: 8px 10px;
  flex: 1;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 11px;
  line-height: 1.45;
}

.my-event-edit-link {
  flex: 0 0 auto;
  min-width: 122px;
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.my-event-edit-link:hover,
.my-event-edit-link:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.event-field-title {
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.event-time-selects {
  height: 45px;
  display: grid;
  grid-template-columns:
    minmax(68px, 1fr) auto minmax(68px, 1fr);
  align-items: stretch;
  gap: 8px;
}

.event-time-part {
  min-width: 0;
  height: 45px;
  display: block;
  position: relative;
}

.event-time-part>span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.event-time-selects select {
  width: 100%;
  height: 45px;
  margin: 0;
  padding: 0 34px 0 12px;

  -webkit-appearance: none;
  appearance: none;

  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;

  background-color: var(--white);
  background-image:
    linear-gradient(45deg,
      transparent 50%,
      var(--branch-grey-800) 50%),
    linear-gradient(135deg,
      var(--branch-grey-800) 50%,
      transparent 50%);
  background-position:
    calc(100% - 16px) 19px,
    calc(100% - 11px) 19px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;

  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.event-time-selects select:hover {
  border-color: var(--branch-grey-500);
}

.event-time-selects select:focus {
  border-color: var(--gold-600);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.event-time-selects select:disabled {
  cursor: default;
  opacity: 0.65;
  background-color: var(--branch-grey-100);
}

.event-time-separator {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--navy-900);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

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

.event-field-wide {
  grid-column: 1 / -1;
}

.event-field select {
  width: 100%;
  height: 45px;
  margin: 0;
  padding: 0 38px 0 12px;

  -webkit-appearance: none;
  appearance: none;

  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: none;

  background-color: var(--white);
  background-image:
    linear-gradient(45deg,
      transparent 50%,
      var(--branch-grey-800) 50%),
    linear-gradient(135deg,
      var(--branch-grey-800) 50%,
      transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;

  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;

  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.event-field select:hover {
  border-color: var(--branch-grey-500);
}

.event-field select:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.event-field select:invalid {
  color: var(--text-muted);
}

.event-field select option {
  color: var(--ink);
}

.retirement-trade-field {
  gap: 11px;
}

.retirement-trade-panel {
  padding: 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: #faf9f5;
}

.retirement-trade-panel p {
  margin: 0 0 11px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.retirement-trade-options {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.retirement-radio-option {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.retirement-radio-option input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--gold-600);
}

.retirement-radio-option span {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.retirement-radio-option:hover,
.retirement-radio-option:focus-within {
  border-color: var(--gold-600);
  background: #fffdf8;
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.1);
}

@keyframes event-submit-spinner {
  to {
    transform: rotate(360deg);
  }
}

.event-form-message {
  margin: 17px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 13px;
  line-height: 1.45;
}

.event-form-message.is-success {
  border-left-color: #4f7358;
  background: #edf5ef;
  color: #36523d;
}


/* ─────────────────────────────────────────────
   Event review workflow
   ───────────────────────────────────────────── */

.event-review-main {
  padding: 24px 18px 40px;
}

.event-review-shell {
  width: min(100%, 1080px);
}

.event-review-heading {
  min-height: 116px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.event-review-heading-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.event-review-standard {
  width: 60px;
  height: 35px;
  flex: 0 0 auto;
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--gold-500);
  box-shadow:
    0 0 0 3px rgba(213, 155, 39, 0.08);
}

.event-review-standard-grey {
  background: var(--branch-grey-500);
}

.event-review-standard-navy {
  background: var(--navy-800);
}

.event-review-heading-copy {
  min-width: 0;
}

.event-review-eyebrow {
  margin: 0 0 5px;
  color: var(--gold-200);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.event-review-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 31px;
  font-weight: normal;
  line-height: 1.15;
}

.event-review-heading-copy>p:last-child {
  margin: 7px 0 0;
  color: var(--branch-grey-200);
  font-size: 13px;
  line-height: 1.5;
}

.review-page-message,
.review-notice {
  margin: 24px 26px;
  padding: 13px 15px;
  border-left: 4px solid var(--gold-500);
  background: var(--branch-grey-100);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.review-page-message.is-error,
.review-notice.is-error {
  border-left-color: #a63c35;
  background: #f8e9e7;
  color: #842d27;
}

.review-page-message.is-empty {
  border-left-color: var(--branch-grey-500);
}

.review-page-message.is-loading {
  min-height: 220px;
  padding: 42px 15px;
  display: grid;
  place-items: center;
}

.review-notice.is-success {
  border-left-color: #4f7358;
  background: #edf5ef;
  color: #36523d;
}

.review-queue {
  padding: 24px 26px 28px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.review-event-card {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 8px 22px rgba(15, 18, 31, 0.12),
    0 2px 5px rgba(15, 18, 31, 0.08);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.review-event-card:last-child {
  margin-bottom: 0;
}

.review-event-card.is-resolved {
  opacity: 0;
  transform: translateY(-5px);
}

.review-event-card-header {
  min-height: 82px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--white);
  background:
    linear-gradient(105deg,
      var(--navy-900),
      var(--navy-800));
}

.review-event-card-heading {
  min-width: 0;
}

.review-event-card-heading p {
  margin: 0 0 4px;
  color: var(--gold-200);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-event-card-heading h2 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.2;
}

.review-status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--gold-500);
  border-radius: 2px;
  background: rgba(213, 155, 39, 0.1);
  color: var(--gold-200);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.review-event-meta {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.review-event-meta.is-two-column {
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.review-event-meta-item {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--branch-grey-200);
}

.review-event-meta-item:last-child {
  border-right: 0;
}

.review-event-meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--branch-grey-800);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-event-meta-value {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

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

.review-language-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
}

.review-language-heading {
  min-height: 50px;
  padding: 11px 14px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      #e4e7ea);
}

.review-language-code {
  color: var(--gold-700);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.review-language-heading h3 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 19px;
  font-weight: normal;
}

.review-language-body {
  padding: 15px;
}

.review-content-label {
  display: block;
  margin: 15px 0 5px;
  color: var(--branch-grey-800);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-content-label:first-child {
  margin-top: 0;
}

.review-event-title-value,
.review-event-location,
.review-event-description {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.review-event-title-value {
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 18px;
}

.review-event-location {
  font-size: 13px;
  font-weight: 700;
}

.review-event-description {
  min-height: 66px;
  font-size: 13px;
  white-space: pre-line;
}

.retirement-review-message-section,
.retirement-review-photo-section {
  margin: 0 18px 18px;
}

.comment-review-comment-section,
.comment-review-related-section {
  margin: 22px 18px;
}

.comment-review-related-section {
  margin-top: 0;
}

.comment-review-body {
  margin: 0;
  padding: 16px 15px 18px;
  min-height: 0;
}

.comment-review-related-link {
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(169, 117, 24, 0.45);
  text-underline-offset: 3px;
}

.comment-review-related-link:hover,
.comment-review-related-link:focus-visible {
  color: var(--gold-700);
}

.retirement-review-language-grid {
  padding: 14px 15px 15px;
}

.retirement-review-message-input {
  width: 100%;
  min-height: 168px;
  padding: 11px 12px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.retirement-review-message-input:hover {
  border-color: var(--branch-grey-500);
}

.retirement-review-message-input:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.retirement-review-message-hint {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.retirement-review-photo-link {
  padding: 14px 15px 15px;
  display: grid;
  gap: 10px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.retirement-review-photo-link:hover,
.retirement-review-photo-link:focus-visible {
  color: var(--gold-700);
}

.retirement-review-photo-link img {
  width: min(100%, 320px);
  aspect-ratio: 4 / 3;
  display: block;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  object-fit: cover;
  background: var(--branch-grey-100);
}

.review-language-body .is-missing {
  color: var(--text-muted);
  font-style: italic;
  font-weight: normal;
}

.review-decision {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.review-decision-copy {
  margin-bottom: 13px;
}

.review-decision-copy h3 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 19px;
  font-weight: normal;
}

.review-decision-copy p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.review-rejection-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.review-rejection-field label {
  color: var(--navy-900);
  font-size: 11px;
  font-weight: 800;
}

.review-rejection-reason {
  width: 100%;
  min-height: 78px;
  padding: 10px 12px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.review-rejection-reason:hover {
  border-color: var(--branch-grey-500);
}

.review-rejection-reason:focus {
  border-color: var(--gold-600);
  box-shadow:
    0 0 0 3px rgba(197, 141, 35, 0.14);
}

.review-action-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #a63c35;
  background: #f8e9e7;
  color: #842d27;
  font-size: 12px;
  line-height: 1.45;
}

.review-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.review-publish-button,
.review-reject-button {
  min-width: 145px;
  height: 44px;
  padding: 0 18px;
  border-radius: 2px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.review-publish-button {
  border: 1px solid var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.review-publish-button:hover,
.review-publish-button:focus-visible {
  border-color: var(--gold-600);
  background: var(--navy-800);
  color: var(--gold-200);
}

.review-reject-button {
  border: 1px solid #9c3d36;
  background: transparent;
  color: #8a332d;
}

.review-reject-button:hover,
.review-reject-button:focus-visible {
  background: #9c3d36;
  color: var(--white);
}

.review-actions button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.event-section-intro {
  margin: -5px 0 18px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.5;
}

.event-submitter-grid {
  display: grid;
  grid-template-columns:
    minmax(110px, 0.65fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 17px 20px;
}

.event-field-unit {
  grid-column: span 2;
}

.event-field-email {
  grid-column: span 2;
}

.event-field-phone {
  grid-column: span 1;
}

.event-authorization-section {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
}

.event-authorization-heading {
  padding: 17px 20px 14px;
  border-bottom: 1px solid var(--branch-grey-200);
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.event-authorization-heading h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 21px;
  font-weight: normal;
  line-height: 1.2;
}

.event-authorization-checkbox {
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.event-authorization-checkbox input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold-600);
}

.event-authorization-checkbox>span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-authorization-checkbox strong {
  color: var(--navy-900);
  font-size: 13px;
  line-height: 1.45;
}

.event-authorization-checkbox small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.event-authorization-checkbox:hover {
  background: var(--branch-grey-100);
}

.event-authorization-checkbox:focus-within {
  background: var(--branch-grey-100);
  box-shadow:
    inset 0 0 0 2px rgba(197, 141, 35, 0.18);
}

.event-submit-layout {
  width: min(100%, 1080px);
  display: flex;
  flex-direction: column;
}

.event-submit-layout .my-events-section {
  width: 100%;
  margin: 0;
}

.event-submit-layout .event-submit-shell {
  width: 100%;
}

.event-management-tabs {
  display: flex;
  border-bottom: 3px solid var(--navy-900);
  border-radius: 2px 2px 0 0;
  background: var(--branch-grey-100);
}

.admin-work-zone-tabs.event-management-tabs {
  width: 100%;
  gap: 0;
  overflow: visible;
  padding: 0;
}

.event-management-tab {
  position: relative;
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--branch-grey-200);
  background: transparent;
  color: var(--branch-grey-800);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.event-management-tab:hover {
  background: var(--white);
  color: var(--navy-900);
}

.event-management-tab.is-active {
  background: var(--navy-900);
  color: var(--white);
}

.event-management-tab.is-active::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: -3px;
  left: 20px;
  height: 3px;
  background: var(--gold-500);
}

.event-management-tab:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(213, 155, 39, 0.45);
  outline-offset: -3px;
}

.event-management-panel {
  width: 100%;
}

.event-management-panel[hidden] {
  display: none !important;
}

.event-management-panel .my-events-section,
.event-management-panel .event-submit-shell {
  width: 100%;
  margin: 0;
  border-top: 0;
  border-radius: 0 0 2px 2px;
}

/* ─────────────────────────────────────────────
   Translation management
   ───────────────────────────────────────────── */

.translations-admin-main {
  padding: 26px 20px 42px;
}

.translations-admin-shell {
  margin: 0 auto;
  background: var(--white);
}

.translations-admin-heading {
  margin: 0;
}

.translations-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--branch-grey-200);
  background: var(--branch-grey-100);
}

.translations-search-field {
  max-width: 460px;
}

.translations-search-field input {
  height: 38px;
}

.translations-count {
  margin: 0;
  color: var(--branch-grey-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-align: right;
}

.translations-list {
  padding: 12px 14px 18px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      var(--white));
}

.translation-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 2fr) 104px;
  align-items: start;
  gap: 8px;
  margin-bottom: 6px;
  padding: 7px 8px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--white);
}

.translation-row:last-child {
  margin-bottom: 0;
}

.translation-row-header {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0 0;
}

.translation-key-group {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.translation-key-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.translation-key-value {
  min-width: 0;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.translation-row-status {
  min-height: 17px;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.translation-row-status.is-success {
  color: #36523d;
}

.translation-row-status.is-warning {
  color: #8a5b12;
}

.translation-row-status.is-error {
  color: #842d27;
}

.translation-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0;
}

.translations-text-field {
  gap: 4px;
}

.translations-text-field label {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.translations-text-field textarea {
  height: 38px;
  min-height: 38px;
  max-height: 180px;
  padding: 8px 9px;
  font-size: 12px;
  line-height: 1.45;
  overflow-y: auto;
  resize: vertical;
}

.translation-actions {
  display: flex;
  justify-content: flex-end;
  padding: 17px 0 0;
}

.translation-save-button {
  width: 100%;
  height: 38px;
  min-width: 92px;
  min-height: 0;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  font-size: 10px;
  line-height: 1;
}

.translation-save-button.is-loading {
  cursor: progress;
}

.translation-save-button.is-saved,
.translation-save-button.is-saved:hover,
.translation-save-button.is-saved:focus-visible {
  border-color: var(--success-border);
  background: var(--success-border);
  color: var(--white);
  cursor: default;
}

.translation-save-button .loading-state-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
  border-top-color: currentColor;
}

.translation-save-check {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 900px) {
  .translation-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .translation-row-header {
    padding: 0;
  }

  .translation-actions {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .event-management-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-management-tab {
    min-width: 0;
    padding: 0 12px;
    font-size: 9px;
    line-height: 1.3;
  }

  .translations-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 18px;
  }

  .translations-count {
    text-align: left;
  }

  .translations-list {
    padding: 18px;
  }

  .translation-fields {
    grid-template-columns: 1fr;
  }

  .translation-row-status {
    text-align: left;
  }
}

.home-main {
  color: var(--ink);
}

.home-main::before {
  background-position: center 640px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--gold-500);
  background: var(--navy-900);
  color: var(--white);
}


.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 1px,
      transparent 48px);
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.92) 38%,
      rgba(0, 0, 0, 0.55) 68%,
      rgba(0, 0, 0, 0.12) 88%,
      rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.92) 38%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(0, 0, 0, 0.12) 80%,
      rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  width: min(100% - 40px, 1180px);
  min-height: 480px;
  margin: 0 auto;
  padding: 76px 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 70px;
}

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

.home-eyebrow,
.home-section-eyebrow {
  margin: 0 0 13px;
  color: var(--gold-500);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(43px, 6vw, 76px);
  font-weight: normal;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.home-hero-intro {
  max-width: 680px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.home-hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.home-button-primary {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-900);
}

.home-button-primary:hover,
.home-button-primary:focus-visible {
  border-color: var(--gold-200);
  background: var(--gold-200);
}

.home-button-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--white);
}

.home-button-secondary:hover,
.home-button-secondary:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-900);
}

.home-hero-identity {
  min-height: 290px;
  padding: 34px 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.home-hero-identity img {
  width: min(250px, 80%);
  height: auto;
  margin-bottom: 23px;
  object-fit: contain;
}

.home-hero-identity span {
  display: block;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 28px;
  letter-spacing: 0.09em;
}

.home-hero-identity span+span {
  margin-top: 3px;
  color: var(--gold-500);
}

.home-family,
.home-information {
  width: min(100% - 40px, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.home-family {
  padding: 72px 0;
}

.home-section-heading {
  max-width: 720px;
  margin-bottom: 33px;
}

.home-section-heading h2,
.home-feature-panel h2 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-weight: normal;
}

.home-section-heading h2 {
  font-size: clamp(33px, 4vw, 48px);
  line-height: 1.05;
}

.home-section-heading>p:last-child {
  max-width: 670px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-family-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
}

.home-family-card:last-child {
  border-right: 0;
}

.home-family-card:hover,
.home-family-card:focus-visible {
  background: rgba(213, 155, 39, 0.045);
}

.home-family-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 19px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.home-family-icon svg {
  width: 100%;
  height: 100%;
}

.home-family-card:hover .home-family-icon,
.home-family-card:focus-visible .home-family-icon {
  color: var(--gold-700);
  transform: translateY(-2px);
}



.home-family-card h3 {
  margin: 0;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 21px;
  font-weight: normal;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
}

.home-family-card p {
  max-width: 230px;
  margin: 17px auto 24px;
  color: var(--branch-grey-800);
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

.home-family-link {
  margin-top: auto;
  padding-top: 15px;
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-family-link::after {
  content: "→";
  margin-left: 9px;
  color: var(--gold-700);
  font-size: 14px;
  font-weight: normal;
  transition: margin-left 160ms ease;
}

.home-family-card:hover .home-family-link::after,
.home-family-card:focus-visible .home-family-link::after {
  margin-left: 13px;
}

.home-family-card:focus-visible {
  z-index: 1;
  outline: 2px solid var(--gold-500);
  outline-offset: -2px;
}

.home-family-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--branch-grey-300);
  border-left: 1px solid var(--branch-grey-300);
}

.home-family-card:hover,
.home-family-card:focus-visible {
  z-index: 1;
  background: #faf9f5;
  box-shadow:
    0 12px 26px rgba(15, 18, 31, 0.12);
  transform: translateY(-2px);
}

.home-family-number {
  margin-bottom: 34px;
  color: var(--gold-600);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.home-card-link {
  margin-top: auto;
  color: var(--navy-900);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card-link::after,
.home-text-link::after {
  content: " →";
  color: var(--gold-600);
}

.home-information {
  padding: 0 0 78px;
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-feature-panel {
  min-height: 430px;
  padding: 34px 34px 31px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border-top: 4px solid var(--navy-900);
  border-radius: 2px;
  background: var(--white);
  box-shadow:
    0 7px 20px rgba(15, 18, 31, 0.08);
}

.home-feature-panel:first-child {
  border-top-color: var(--gold-500);
  background:
    linear-gradient(145deg,
      var(--navy-950),
      var(--navy-900) 68%,
      var(--navy-800));
  color: var(--white);
}

.home-feature-panel h2 {
  font-size: 31px;
  line-height: 1.1;
}

.home-feature-panel:first-child h2 {
  color: var(--white);
}

.home-feature-heading {
  width: 100%;
}

.home-feature-heading>p:not(.home-section-eyebrow) {
  margin: 17px 0 27px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.home-feature-panel:first-child .home-feature-heading>p:not(.home-section-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.home-feed-message {
  width: 100%;
  margin: 0 0 24px;
  padding: 13px 14px;
  border-left: 4px solid var(--gold-500);
  background: var(--branch-grey-100);
  color: var(--branch-grey-800);
  font-size: 13px;
  line-height: 1.45;
}

.home-feed-message.is-error {
  border-left-color: var(--danger);
  background: #f8e9e7;
  color: #842d27;
}

.home-feed-message.is-empty {
  border-left-color: var(--branch-grey-500);
}

.home-feed-list {
  width: 100%;
  margin-bottom: 25px;
  display: grid;
  gap: 12px;
}

.home-feed-item {
  min-width: 0;
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 4px;
  background: #fbfbf9;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.home-feed-item:hover,
.home-feed-item:focus-visible {
  border-color: rgba(213, 155, 39, 0.55);
  box-shadow: 0 8px 18px rgba(15, 18, 31, 0.1);
  transform: translateY(-1px);
}

.home-feed-item:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.home-retirement-photo {
  width: 58px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  background: var(--navy-900);
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-event-item {
  padding: 16px 17px 15px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border-color: rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--gold-500);
  background: rgba(255, 255, 255, 0.94);
}

.home-event-item:hover,
.home-event-item:focus-visible {
  border-color: rgba(213, 155, 39, 0.7);
}

.home-event-item .home-feed-date {
  width: auto;
  height: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-retirement-item {
  grid-template-columns: auto minmax(0, 1fr);
}

.home-retirement-photo img,
.home-retirement-initials {
  width: 100%;
  height: 100%;
  min-height: 54px;
  display: grid;
  place-items: center;
}

.home-retirement-photo img {
  display: block;
  object-fit: cover;
  object-position: center top;
}

.home-retirement-photo img.home-retirement-photo-placeholder {
  padding: 6px;
  background: var(--branch-grey-100);
  object-fit: contain;
  object-position: center;
}

.home-retirement-initials {
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 20px;
  font-weight: normal;
}

.home-feed-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.home-feed-content strong {
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.home-feed-meta,
.home-feed-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.home-feed-note {
  color: var(--gold-700);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-text-link {
  margin-top: auto;
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  color: var(--gold-700);
}

.home-feature-panel:first-child .home-text-link {
  color: var(--white);
}

.home-feature-panel:first-child .home-text-link:hover,
.home-feature-panel:first-child .home-text-link:focus-visible {
  color: var(--gold-200);
}

.home-family {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 68px 0 76px;
}

.home-family-heading {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}

.home-family-heading span {
  height: 1px;
  background: var(--gold-500);
}

.home-family-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

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

.home-family-card {
  min-width: 0;
  min-height: 360px;
  padding: 26px 26px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  border-top: 4px solid var(--gold-500);
  border-radius: 2px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.96),
      rgba(250, 251, 251, 0.92));
  box-shadow:
    0 12px 26px rgba(15, 18, 31, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.home-family-card:last-child {
  padding-right: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.58);
}

.home-family-card:hover,
.home-family-card:focus-visible {
  border-color: rgba(213, 155, 39, 0.55);
  border-top-color: var(--navy-900);
  background:
    linear-gradient(180deg,
      var(--white),
      #faf9f5);
  box-shadow:
    0 18px 34px rgba(15, 18, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-3px);
}

.home-family-card:focus-visible {
  outline: 3px solid rgba(213, 155, 39, 0.55);
  outline-offset: 3px;
}

.home-family-card .home-family-icon {
  width: 58px;
  height: 58px;
  margin: 0 0 22px;
  color: var(--navy-900);
}

.home-family-card .home-family-number {
  margin: 0 0 18px;
  color: var(--gold-700);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
}

.home-family-card h3 {
  font-size: 25px;
}

.home-family-card p {
  max-width: 245px;
  margin: 16px auto 24px;
  color: var(--branch-grey-800);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  font-size: 12px;
}

.home-family-card .home-family-link {
  padding-top: 17px;
  border-top: 1px solid var(--branch-grey-200);
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

.event-edit-loading {
  min-height: 360px;
  padding: 70px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--branch-grey-200);
  border-top: 0;
  background: var(--white);
  color: var(--branch-grey-800);
  text-align: center;
}

.event-edit-loading[hidden] {
  display: none !important;
}

.event-edit-loading-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 3px solid var(--branch-grey-200);
  border-top-color: var(--gold-600);
  border-radius: 50%;
  animation:
    event-edit-loading-spin 750ms linear infinite;
}

.event-edit-loading p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@keyframes event-edit-loading-spin {
  to {
    transform: rotate(360deg);
  }
}


.event-loading {
  min-height: 360px;
  padding: 70px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--branch-grey-200);
  border-top: 0;
  background: var(--white);
  color: var(--branch-grey-800);
  text-align: center;
}

.event-loading[hidden] {
  display: none !important;
}

.event-loading-spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 3px solid var(--branch-grey-200);
  border-top-color: var(--gold-600);
  border-radius: 50%;
  animation:
    event-edit-loading-spin 750ms linear infinite;
}

.event-loading p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@keyframes event-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.retirement-consent-section {
  background: #faf9f5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.retirement-consent-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.retirement-consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--gold-600);
}

.retirement-consent-field span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.retirement-consent-field strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.retirement-consent-field small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.retirement-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   Published retirement messages
   ───────────────────────────────────────────── */

.retirements-main {
  padding: 30px 18px 54px;
}

.retirements-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.retirements-heading {
  position: relative;
  margin-bottom: 0;
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  padding: 25px 30px;
  color: var(--white);
  border-top: 4px solid var(--gold-500);
  border-bottom: 2px solid var(--navy-800);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.retirements-heading::after {
  content: "";
  position: absolute;
  right: 30px;
  bottom: 0;
  left: 30px;
  height: 4px;
}

.retirements-eyebrow {
  margin: 0 0 6px;
  color: var(--gold-200);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.retirements-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 32px;
  font-weight: normal;
  line-height: 1.15;
}

.retirements-message {
  margin: 24px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold-500);
  background: var(--branch-grey-100);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.retirements-message.is-error {
  border-left-color: var(--danger);
  background: #f8e9e7;
  color: #842d27;
}

.retirements-message.is-empty {
  border-left-color: var(--branch-grey-500);
}

.retirements-message.is-loading {
  min-height: 220px;
  padding: 42px 14px;
  display: grid;
  place-items: center;
}

.retirements-grid {
  padding: 24px;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top: 0;
  background:
    linear-gradient(180deg,
      rgba(238, 240, 242, 0.92),
      rgba(255, 255, 255, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.retirement-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--gold-500);
  border-radius: 4px;
  background: var(--white);
  box-shadow:
    0 7px 18px rgba(15, 18, 31, 0.11),
    0 2px 5px rgba(15, 18, 31, 0.07);
  color: inherit;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.retirement-card:hover,
.retirement-card:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(15, 18, 31, 0.15),
    0 3px 7px rgba(15, 18, 31, 0.08);
}

.retirement-card:focus-visible {
  outline: 3px solid rgba(213, 155, 39, 0.55);
  outline-offset: 3px;
}

.retirement-card-header {
  margin: -1px -1px 0 0;
  min-height: 100px;
  padding: 18px 18px 16px;
  color: var(--white);
  background:
    linear-gradient(105deg,
      var(--navy-900),
      var(--navy-800));
}

.retirement-card-header h2 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 23px;
  font-weight: normal;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.retirement-card-header p {
  margin: 11px 0 0;
  color: var(--gold-200);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.retirement-card-photo {
  margin: 16px 18px 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background:
    linear-gradient(180deg,
      var(--branch-grey-100),
      #dfe3e7);
}

.retirement-card-photo img,
.retirement-card-photo-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.retirement-card-photo img {
  object-fit: cover;
  object-position: center top;
}

.retirement-card-photo-placeholder {
  display: grid;
  place-items: center;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 42px;
  background:
    linear-gradient(135deg,
      #f4f1e9,
      var(--branch-grey-200));
}

.retirement-card-photo img.retirement-card-photo-logo {
  display: block;
  padding: 28px;
  background:
    linear-gradient(135deg,
      #f4f1e9,
      var(--branch-grey-200));
  object-fit: contain;
  object-position: center;
}

.retirement-card-footer {
  margin-top: auto;
  padding: 14px 18px 15px;
  color: var(--branch-grey-800);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.retirements-load-more {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top: 0;
  background: var(--branch-grey-100);
}

.retirements-load-more button {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.retirements-load-more button:hover,
.retirements-load-more button:focus-visible {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.retirements-load-more button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.retirements-load-more-message {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.retirement-detail-main {
  padding: 30px 18px 54px;
}

.retirement-detail-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.retirement-detail-heading {
  padding: 25px 30px 26px;
  border-bottom: 4px solid var(--gold-500);
  color: var(--white);
  background:
    linear-gradient(110deg,
      var(--navy-950),
      var(--navy-900) 64%,
      var(--navy-800));
}

.retirement-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--gold-200);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.retirement-detail-back span {
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.retirement-detail-back:hover,
.retirement-detail-back:focus-visible {
  color: var(--white);
  text-decoration: underline;
}

.retirement-detail-heading h1 {
  margin: 0;
  color: var(--white);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 34px;
  font-weight: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.retirement-detail-mosid {
  margin: 12px 0 0;
  color: var(--gold-200);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.retirement-detail-date {
  margin: 8px 0 0;
  color: var(--branch-grey-200);
  font-size: 14px;
  line-height: 1.45;
}

.retirement-detail-body {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-top: 0;
  background:
    linear-gradient(180deg,
      rgba(238, 240, 242, 0.94),
      rgba(255, 255, 255, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.retirement-detail-photo {
  margin: 0 auto 28px;
  width: 100%;
  text-align: center;
}

.retirement-detail-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--branch-grey-100);
  box-shadow:
    0 8px 20px rgba(15, 18, 31, 0.12);
  object-fit: contain;
}

.retirement-detail-photo img.retirement-detail-photo-logo {
  width: min(44vw, 220px);
  max-height: 260px;
  padding: 18px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.retirement-detail-message-section,
.retirement-detail-comments {
  padding: 22px 24px;
  border: 1px solid var(--branch-grey-200);
  border-left: 4px solid var(--gold-500);
  border-radius: 2px;
  background: var(--white);
}

.retirement-detail-comments {
  margin-top: 22px;
}

.retirement-comment-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-left: 4px solid var(--gold-500);
  background: var(--branch-grey-100);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.retirement-comment-message.is-error {
  border-left-color: var(--danger);
  background: #f8e9e7;
  color: #842d27;
}

.retirement-comment-message.is-success {
  border-left-color: var(--success-border);
  background: #edf5ef;
  color: #36523d;
}

.retirement-comment-list {
  display: grid;
  gap: 14px;
}

.retirement-comment,
.retirement-comment-empty,
.retirement-comment-login {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--branch-grey-200);
  border-radius: 2px;
  background: var(--branch-grey-100);
}

.retirement-comment header {
  margin-bottom: 7px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.retirement-comment {
  position: relative;
}

.retirement-comment-delete {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(-1px);
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #b42318;
  border-radius: 2px;
  background: #b42318;
  color: var(--white);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.retirement-comment:hover .retirement-comment-delete,
.retirement-comment:focus-within .retirement-comment-delete {
  opacity: 1;
  transform: translateY(0);
}

.retirement-comment-delete:hover,
.retirement-comment-delete:focus-visible {
  background: #8f1d14;
  border-color: #8f1d14;
}

.retirement-comment strong {
  color: var(--navy-900);
  font-size: 13px;
  line-height: 1.3;
}

.retirement-comment time {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}

.retirement-comment p,
.retirement-comment-empty,
.retirement-comment-login {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.retirement-comment-login a {
  color: var(--navy-900);
  font-weight: 900;
}

.retirement-comment-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--branch-grey-200);
}

.retirement-comment-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.retirement-comment-form textarea {
  width: 100%;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid var(--branch-grey-500);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.retirement-comment-form textarea:focus {
  outline: 3px solid rgba(213, 155, 39, 0.28);
  border-color: var(--gold-600);
}

.retirement-comment-form-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.retirement-comment-form-footer small {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
}

.retirement-comment-form button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--navy-900);
  border-radius: 2px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.retirement-comment-form button:hover,
.retirement-comment-form button:focus-visible {
  background: var(--navy-800);
}

.retirement-comment-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.retirement-detail-message-section h2,
.retirement-detail-comments h2 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.2;
}

.retirement-detail-message-section p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-line;
}

.retirement-detail-comments>p:not(.retirement-comment-message) {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .retirements-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .retirements-main {
    padding: 0px 0px 0px;
  }

  .retirements-heading {
    padding: 22px 20px;
  }

  .retirements-heading::after {
    right: 20px;
    left: 20px;
  }

  .retirements-heading h1 {
    font-size: 27px;
  }

  .retirements-grid {
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .retirement-card-header {
    min-height: 82px;
  }

  .retirement-card-header h2 {
    font-size: 20px;
  }

  .retirement-detail-main {
    padding: 22px 14px 42px;
  }

  .retirement-detail-heading {
    padding: 22px 20px 23px;
  }

  .retirement-detail-heading h1 {
    font-size: 28px;
  }

  .retirement-detail-body {
    padding: 16px;
  }

  .retirement-detail-message-section,
  .retirement-detail-comments {
    padding: 18px;
  }

  .retirement-detail-message-section p {
    font-size: 14px;
  }

  .retirement-comment header,
  .retirement-comment-form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .retirement-comment-form button {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .content-main {
    padding: 28px 14px;
  }

  .content-column h1 {
    font-size: 25px;
  }

  .hero {
    padding: 18px 12px;
  }

  .hero img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .inline-float-img {
    float: none;
    width: min(100%, 320px);
    margin: 0 0 18px;
  }

  .about-family-main {
    padding: 24px 12px 42px;
  }

  .about-family-hero {
    min-height: 0;
    padding: 24px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

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

  .about-family-intro {
    font-size: 16px;
  }

  .about-family-emblem {
    width: 92px;
    flex-basis: auto;
  }

  .about-family-body {
    margin-top: 14px;
    padding: 24px 18px 26px;
  }

  .about-family-section {
    padding-top: 20px;
    margin-top: 20px;
  }

  .about-family-section h2 {
    font-size: 24px;
  }

  .about-family-section p,
  .about-family-pillar-list li {
    font-size: 15px;
  }

  .calendar-main {
    padding: 20px 12px 34px;
  }

  .calendar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    margin-bottom: 18px;
    padding: 22px 20px 23px;
  }

  .calendar-heading h1 {
    font-size: 40px;
  }

  .calendar-kicker {
    font-size: 11px;
  }

  .calendar-submit-callout {
    width: 100%;
    max-width: none;
    padding: 14px 15px;
    justify-items: start;
    border-left: 4px solid var(--gold-500);
    text-align: left;
  }

  .calendar-submit-callout p {
    font-size: 14px;
  }

  .calendar-submit-callout a {
    width: 100%;
    min-height: 44px;
  }

  .calendar-month {
    margin-bottom: 22px;
  }

  .calendar-month-title {
    margin-bottom: 10px;
    padding: 0 0 8px;
    font-size: 24px;
  }

  .calendar-event {
    min-height: 0;
    margin-bottom: 13px;
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .calendar-event-day {
    padding: 14px 8px;
    gap: 7px;
    border-right-width: 3px;
  }

  .calendar-event-month {
    font-size: 11px;
  }

  .calendar-event-day-number {
    font-size: 35px;
  }

  .calendar-event-time {
    width: min(100%, 70px);
    padding: 6px 5px;
    font-size: 10px;
  }

  .calendar-event-content {
    padding: 17px 15px 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .calendar-event-title {
    font-size: 23px;
  }

  .calendar-event-date-line {
    font-size: 11px;
  }

  .calendar-event-location {
    font-size: 13px;
  }

  .calendar-event-description {
    font-size: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .calendar-event-meta {
    padding: 12px 13px;
    gap: 10px;
    border-top: 1px solid var(--branch-grey-200);
    border-left: 0;
  }

  .calendar-event-meta-value {
    font-size: 12px;
  }

  .event-detail-main {
    padding: 22px 12px 40px;
  }

  .event-detail-hero {
    padding: 22px 20px 23px;
  }

  .event-detail-hero-grid {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 15px;
  }

  .event-detail-date-card {
    min-height: 104px;
    padding: 10px 7px;
  }

  .event-detail-month,
  .event-detail-year {
    font-size: 10px;
  }

  .event-detail-day {
    font-size: 42px;
  }

  .event-detail-heading h1 {
    font-size: 28px;
  }

  .event-detail-summary {
    margin-top: 9px;
    font-size: 13px;
  }

  .event-detail-body {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .event-detail-section {
    padding: 18px;
  }

  .event-detail-section h2,
  .event-detail-brief h2 {
    font-size: 22px;
  }

  .event-detail-description p,
  .event-detail-registration p {
    font-size: 14px;
  }
}

@media (max-width: 760px) {
  .login-main {
    padding: 22px 16px 34px;
  }

  .login-shell {
    width: min(100%, 560px);
    grid-template-columns: 1fr;
  }

  .login-introduction {
    padding: 30px 32px;
  }

  .login-introduction-content {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: center;
  }

  .login-standard {
    grid-row: 1 / 3;
    margin: 0;
  }

  .login-eyebrow {
    margin-bottom: 5px;
  }

  .login-introduction h1 {
    max-width: none;
    font-size: 27px;
  }

  .login-intro-copy {
    grid-column: 2;
    max-width: none;
    margin-top: 8px;
  }

  .login-panel {
    padding: 38px 34px;
  }

  .login-secondary-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .login-main {
    padding: 14px 10px 26px;
  }

  .login-introduction {
    padding: 32px 26px;
  }

  .login-standard {
    width: 68px;
    height: 38px;
    margin-bottom: 24px;
  }

  .login-introduction h1 {
    font-size: 29px;
  }

  .login-intro-copy {
    font-size: 14px;
  }

  .login-service-note {
    display: none;
  }

  .login-panel {
    padding: 36px 25px;
  }

  .login-panel-heading h2 {
    font-size: 30px;
  }
}

@media (max-width: 1120px) {
  .identity-name {
    display: none;
  }

  .header-search {
    width: 190px;
  }

  .dropdown-toggle,
  .nav-bar>a {
    padding-inline: 10px;
    font-size: 12px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    width: min(100% - 28px, 1440px);
  }

  .site-logo {
    height: 48px;
  }

  .identity-acronym {
    font-size: 20px;
  }

  .header-search {
    width: 40px;
  }

  .header-search input {
    width: 0;
    padding: 0;
  }

  .header-search:focus-within {
    width: 210px;
  }

  .header-search:focus-within input {
    width: auto;
    padding-left: 12px;
  }
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-legal {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  .header-identity-row .header-inner {
    min-height: auto;
    padding-block: 12px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-identity {
    width: 100%;
  }

  .header-utilities {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .auth-buttons {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: wrap;
  }

  .donate-link {
    width: 148px;
    min-width: 148px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-navigation-row {
    display: none;
    position: fixed;
    top: var(--mobile-header-height, 126px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid var(--border-light);
    background: var(--navy-950);
    box-shadow: 0 18px 36px rgba(15, 18, 31, 0.34);
  }

  .site-header.is-mobile-menu-open .header-navigation-row {
    display: block;
  }

  .header-navigation-inner {
    width: 100%;
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav-bar {
    width: 100%;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .dropdown,
  .nav-bar>a {
    width: 100%;
  }

  .dropdown-toggle,
  .nav-bar>a {
    min-height: 44px;
    width: 100%;
    position: relative;
    justify-content: flex-start;
    padding: 0 44px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: normal;
  }

  .dropdown-toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    position: absolute;
    top: 50%;
    right: 22px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 150ms ease;
  }

  .dropdown.is-mobile-dropdown-open .dropdown-toggle::after {
    transform: translateY(-35%) rotate(225deg);
  }

  .dropdown-menu,
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: none;
    position: static;
    min-width: 0;
    margin: 0;
    padding: 4px 0 8px;
    border-top: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
  }

  .dropdown.is-mobile-dropdown-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 20px 10px 34px;
    color: var(--branch-grey-100);
    font-size: 13px;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
  }

  .header-search,
  .header-search:focus-within {
    width: calc(100% - 28px);
    margin: 14px auto;
  }

  .header-search input,
  .header-search:focus-within input {
    width: auto;
    padding-left: 12px;
  }

  .search-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .search-heading>p {
    max-width: none;
    text-align: left;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  .search-page-form input {
    min-height: 52px;
  }

  .search-page-form button {
    min-height: 48px;
    border-top: 1px solid var(--branch-grey-200);
    border-left: 0;
  }

  .auth-buttons .signout-link {
    display: none;
  }

  .mobile-menu-account {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding: 14px 0 18px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-account-link,
  .mobile-signout-link {
    position: relative;
    min-height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: var(--branch-grey-100);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-menu-account-link {
    border-color: rgba(255, 255, 255, 0.14);
  }

  .mobile-signout-link {
    color: #f1b2ad;
    border-color: rgba(166, 60, 53, 0.5);
  }

  .mobile-menu-account-link:hover,
  .mobile-menu-account-link:focus-visible {
    border-color: var(--gold-500);
    color: var(--gold-200);
  }

  .mobile-signout-link:hover,
  .mobile-signout-link:focus-visible {
    background: rgba(166, 60, 53, 0.12);
    color: var(--white);
  }

  .signout-modal-overlay {
    padding: 16px;
  }

  .signout-modal-header {
    min-height: 84px;
    padding: 20px;
  }

  .signout-modal-body {
    padding: 20px;
  }

  .signout-modal-actions {
    flex-direction: column-reverse;
  }

  .signout-modal-button {
    width: 100%;
  }

  .footer-inner {
    width: min(100% - 30px, 1440px);
  }

  .ownership-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ownership-label {
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-legal {
    grid-column: auto;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-block: 15px;
  }

  .footer-credit {
    margin-left: 0;
    text-align: left;
  }

  .footer-version {
    flex-basis: auto;
    margin-top: 0;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .register-main {
    padding: 16px 11px 28px;
  }

  .register-heading {
    min-height: auto;
    padding: 22px 23px;
    gap: 16px;
  }

  .register-standard {
    width: 52px;
    height: 31px;
  }

  .register-heading h1 {
    font-size: 27px;
  }

  .register-panel {
    padding: 25px 22px 23px;
  }

  .register-fields {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .register-mfa-options {
    grid-template-columns: 1fr;
  }

  .register-actions {
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  .dashboard-main {
    padding: 16px 11px 28px;
  }

  .account-dashboard-main {
    padding: 0;
  }

  .account-dashboard-main .dashboard-shell {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .event-submit-main,
  .event-review-main,
  .admin-work-zone-main {
    padding: 0;
  }

  .event-submit-main .event-submit-layout,
  .event-submit-main .event-submit-shell,
  .event-review-main .event-review-shell,
  .admin-work-zone-main .dashboard-shell {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .dashboard-heading {
    min-height: auto;
    padding: 22px 23px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .dashboard-heading h1 {
    font-size: 27px;
  }

  .dashboard-role-summary {
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-section {
    padding: 24px 22px;
  }

  .admin-work-zone-page-tabs {
    margin: 0;
  }

  .dashboard-actions-section {
    border-top: 1px solid var(--branch-grey-200);
    border-left: 0;
  }

  .dashboard-mfa-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-profile-grid {
    grid-template-columns: 1fr;
  }

  .mfa-output {
    grid-template-columns: 1fr;
  }

  #totp-qr {
    width: 160px;
  }

}

@media (max-width: 480px) {
  .dashboard-detail-row {
    padding: 12px 0;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dashboard-profile-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-profile-button {
    width: 100%;
  }

  .mfa-actions,
  .mfa-verification-row {
    align-items: stretch;
    flex-direction: column;
  }

  .mfa-field {
    min-width: 0;
    flex-basis: auto;
  }

  .mfa-button {
    width: 100%;
  }

  .passkey-item,
  .totp-status-card {
    align-items: stretch;
    flex-direction: column;
  }

  .passkey-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .review-submission-record {
    grid-template-columns: 1fr;
  }

  .notification-card-header {
    flex-direction: column;
    gap: 8px;
  }

  .notification-date {
    flex-basis: auto;
  }

  .notification-edit-link,
  .notification-comment-form button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .review-event-information {
    margin:
      12px 12px 0;
  }

  .review-submission-record {
    padding:
      0 12px 12px;
  }

  .review-record-data,
  .review-event-information .review-record-data {
    grid-template-columns: 1fr;
  }

  .review-record-item.is-wide {
    grid-column: span 1;
  }
}

@media (max-width: 720px) {
  .my-events-section {
    margin: 18px 20px 0;
  }

  .my-event-card-details {
    grid-template-columns: 1fr;
  }

  .my-event-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .my-event-edit-link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .my-events-section {
    margin: 14px 12px 0;
  }

  .my-events-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .my-events-list {
    padding: 12px;
  }

  .my-event-card-header {
    flex-direction: column;
  }
}


@media (max-width: 820px) {
  .event-submit-main {
    padding: 17px 11px 30px;
  }

  .event-submit-heading {
    min-height: auto;
    padding: 22px 23px;
    gap: 16px;
  }

  .event-cancel-editing {
    padding: 8px 11px;
    font-size: 10px;
  }

  .event-submit-standard {
    width: 52px;
    height: 31px;
  }

  .event-submit-heading h1 {
    font-size: 27px;
  }

  .event-submit-form {
    padding: 20px;
  }

  .event-language-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .retirement-submit-main {
    padding: 0;
  }

  .retirement-submit-main .event-submit-shell {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .retirement-submit-main .event-submit-form {
    padding: 0;
  }

  .retirement-submit-main .event-form-section {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .retirement-submit-main .event-form-actions {
    margin-top: 22px;
    padding-bottom: 22px;
  }

  .submit-event-main {
    padding: 0;
  }

  .submit-event-main .event-submit-layout,
  .submit-event-main .event-submit-shell {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .submit-event-main .event-submit-form {
    padding: 0;
  }

  .submit-event-main .event-language-grid {
    gap: 0;
  }

  .submit-event-main :is(.event-language-panel,
    .event-details-section,
    .event-schedule-section,
    .event-submitter-section,
    .event-authorization-section) {
    margin-top: 0;
    border-left: 0;
    border-right: 0;
  }

  .submit-event-main .event-submit-options {
    margin-top: 22px;
    padding: 0 0 22px;
    border-top: 0;
  }

  .admin-work-zone-main .admin-work-zone-page {
    padding: 0;
  }

  .admin-work-zone-main .admin-work-zone-shell {
    gap: 0;
  }

  .admin-work-zone-main .admin-work-zone-shell > :is(.admin-user-list-panel,
    .admin-user-detail-panel,
    .admin-role-editor-panel) {
    border-left: 0;
    border-right: 0;
  }

  .admin-work-zone-main .admin-work-zone-page-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 40px 0 0;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    box-shadow: inset 0 -3px var(--navy-900);
    scroll-padding-inline: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent);
  }

  .admin-work-zone-main .admin-work-zone-page-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-work-zone-main .admin-work-zone-tab {
    flex: 0 0 auto;
    border-top: 0;
    scroll-snap-align: start;
  }

  .admin-work-zone-main .admin-work-zone-tab.is-active::after {
    display: none;
  }

  .admin-work-zone-main .admin-work-zone-tab.is-active {
    box-shadow: inset 0 -3px var(--gold-500);
  }
}

@media (max-width: 560px) {

  .event-section-heading,
  .event-submit-options {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-form-grid,
  .event-details-grid {
    grid-template-columns: 1fr;
  }

  .retirement-trade-options {
    grid-template-columns: 1fr;
  }

  .event-field-wide {
    grid-column: span 1;
  }

  .event-schedule-grid {
    grid-template-columns: 1fr;
  }

  .event-form-actions {
    justify-content: stretch;
  }

  .event-submit-button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .event-submitter-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .event-field-rank {
    grid-column: span 1;
  }

  .event-field-unit,
  .event-field-email {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .event-submitter-grid {
    grid-template-columns: 1fr;
  }

  .event-field-rank,
  .event-field-unit,
  .event-field-email,
  .event-field-phone {
    grid-column: span 1;
  }

  .event-authorization-heading,
  .event-authorization-checkbox {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 850px) {
  .event-review-main {
    padding: 17px 11px 30px;
  }

  .event-review-heading {
    min-height: auto;
    padding: 22px 23px;
  }

  .event-review-standard {
    width: 52px;
    height: 31px;
  }

  .event-review-heading h1 {
    font-size: 27px;
  }

  .review-event-meta {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .review-event-meta-item:nth-child(2) {
    border-right: 0;
  }

  .review-event-meta-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--branch-grey-200);
  }

  .review-event-meta.is-two-column .review-event-meta-item {
    border-bottom: 0;
  }

  .review-language-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .event-review-main {
    padding: 0;
  }
}

@media (max-width: 560px) {
  .event-review-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-review-heading-main {
    align-items: flex-start;
  }

  .review-queue {
    padding: 15px 12px 18px;
  }

  .review-event-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-event-meta {
    grid-template-columns: 1fr;
  }

  .review-event-meta-item {
    border-right: 0;
    border-bottom: 1px solid var(--branch-grey-200);
  }

  .review-event-meta-item:last-child {
    border-bottom: 0;
  }

  .review-event-meta.is-two-column .review-event-meta-item:not(:last-child) {
    border-bottom: 1px solid var(--branch-grey-200);
  }

  .review-language-grid {
    padding: 12px;
  }

  .review-actions {
    flex-direction: column-reverse;
  }

  .review-publish-button,
  .review-reject-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .event-review-main .event-management-panel {
    background: var(--branch-grey-100);
  }

  .event-review-main .event-management-panel .review-page-message {
    margin: 0;
  }

  .event-review-main .review-queue {
    padding: 0;
  }

  .event-review-main .review-event-card {
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .audit-log-filters {
    grid-template-columns: 1fr;
  }

  .admin-work-zone-shell {
    grid-template-columns: 1fr;
  }

  .admin-user-list,
  .admin-role-list {
    max-height: 360px;
  }

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

  .admin-role-form,
  .admin-permission-groups {
    grid-template-columns: 1fr;
  }

  .admin-role-list {
    border-right: 0;
    border-bottom: 1px solid var(--branch-grey-200);
  }

  .admin-panel-heading,
  .admin-user-detail-heading,
  .admin-post-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-post-badges,
  .admin-post-status {
    width: fit-content;
    justify-content: flex-start;
  }

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

  .pages-add-block-controls {
    position: sticky;
    top: 126px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    max-height: calc(100vh - 142px);
    overflow: auto;
    margin-inline: 12px;
    box-shadow: none;
  }

  .pages-add-block-title {
    grid-column: 1 / -1;
  }

  .pages-block-heading,
  .pages-navigation-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .pages-navigation-add-page-form {
    grid-template-columns: 1fr;
  }

  .pages-column-editors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .cms-columns {
    grid-template-columns: 1fr;
  }

  .cms-carousel {
    grid-auto-columns: minmax(230px, 88%);
  }

  .pages-add-block-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-media-heading,
  .admin-media-upload-details {
    align-items: stretch;
    flex-direction: column;
  }

  .pages-crop-editor-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .home-hero-identity {
    order: -1;
    min-height: auto;
    flex-direction: row;
    gap: 22px;
  }

  .home-hero-identity img {
    width: 105px;
    margin: 0 10px 0 0;
  }

  .home-hero-identity span {
    font-size: 22px;
  }

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

@media (max-width: 680px) {

  .home-hero-inner,
  .home-family,
  .home-information {
    width: min(100% - 24px, 1180px);
  }

  .home-hero-inner {
    min-height: auto;
    padding: 32px 0 54px;
  }

  .home-hero-identity {
    display: none;
  }

  .home-family {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-hero h1 {
    font-size: 46px;
  }

  .home-hero-intro {
    font-size: 15px;
  }

  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-button {
    width: 100%;
  }

  .home-hero-identity {
    align-items: center;
    flex-direction: column;
  }

  .home-hero-identity img {
    margin: 0 0 16px;
  }

  .home-family-grid {
    grid-template-columns: 1fr;
  }

  .home-family-card {
    min-height: 0;
  }

  .home-information {
    grid-template-columns: 1fr;
  }

  .home-feature-panel {
    min-height: 245px;
    padding: 27px 24px;
  }

  .home-information {
    padding-bottom: 55px;
  }
}

/* ─────────────────────────────────────────────
   Dark theme
   ───────────────────────────────────────────── */

html[data-theme="dark"] {
  --dark-bg: #080d18;
  --dark-bg-elevated: #0f1625;
  --dark-surface: #151d2d;
  --dark-surface-2: #1b2536;
  --dark-surface-3: #222d40;
  --dark-border: #334057;
  --dark-border-strong: #46556f;
  --dark-text: #edf2fa;
  --dark-text-soft: #c8d0dd;
  --dark-text-muted: #aab4c4;
  --dark-link: #f0c76c;
  --dark-danger-bg: #341714;
  --dark-danger-text: #ffb4ad;
  --dark-success-bg: #10271a;
  --dark-success-text: #bde8ca;
}

html[data-theme="dark"] body {
  background: var(--dark-bg);
  color: var(--dark-text);
}

html[data-theme="dark"] main {
  background:
    radial-gradient(ellipse at 15% 0%,
      rgba(213, 155, 39, 0.13),
      transparent 45%),
    radial-gradient(ellipse at 85% 12%,
      rgba(81, 106, 176, 0.18),
      transparent 44%),
    linear-gradient(180deg,
      #0c1220 0%,
      #080d18 58%,
      #060a12 100%);
}

html[data-theme="dark"] main::before {
  opacity: 0.28;
  filter: saturate(0.8);
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .header-identity-row,
html[data-theme="dark"] .footer-main,
html[data-theme="dark"] .signout-modal-header,
html[data-theme="dark"] .dashboard-heading,
html[data-theme="dark"] .event-submit-heading,
html[data-theme="dark"] .event-review-heading,
html[data-theme="dark"] .event-detail-hero,
html[data-theme="dark"] .retirement-detail-heading {
  background:
    linear-gradient(110deg,
      #060914,
      #11192b 58%,
      #1b2640);
}

html[data-theme="dark"] .header-navigation-row,
html[data-theme="dark"] .ownership-band,
html[data-theme="dark"] .footer-bottom {
  background: #060914;
}

html[data-theme="dark"] .dropdown-menu {
  border-color: var(--dark-border);
  background: var(--dark-surface);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .dropdown-menu a {
  color: var(--dark-text);
}

html[data-theme="dark"] .dropdown-menu li:hover,
html[data-theme="dark"] .dropdown-menu li:focus-within {
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .dropdown-menu li a:hover,
html[data-theme="dark"] .dropdown-menu li a:focus-visible {
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .header-search,
html[data-theme="dark"] .header-search:focus-within {
  border-color: rgba(234, 211, 163, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .lang-toggle:hover,
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(213, 155, 39, 0.14);
}

html[data-theme="dark"] .theme-toggle[aria-pressed="true"] {
  border-color: var(--branch-grey-500);
  background: transparent;
  color: var(--white);
}

html[data-theme="dark"] .theme-toggle[aria-pressed="true"]:hover,
html[data-theme="dark"] .theme-toggle[aria-pressed="true"]:focus-visible {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.14);
  color: var(--gold-200);
}

html[data-theme="dark"] main :is(.login-shell,
  .register-shell,
  .dashboard-shell,
  .event-submit-shell,
  .event-review-shell,
  .event-detail-shell,
  .retirement-detail-shell,
  .retirements-shell,
  .search-shell,
  .translations-admin-shell,
  .calendar-container,
  .audit-log-panel,
  .admin-user-list-panel,
  .admin-user-detail-panel) {
  border-color: var(--dark-border);
  background: var(--dark-surface);
  color: var(--dark-text);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] main :is(.login-panel,
  .register-panel,
  .dashboard-section,
  .event-form-section,
  .event-management-panel,
  .event-language-panel,
  .event-detail-section,
  .event-detail-date-card,
  .retirement-detail-message-section,
  .retirement-detail-comments,
  .retirement-card,
  .home-family-card,
  .home-feature-panel,
  .search-result,
  .translation-row,
  .review-event-card,
  .review-language-panel,
  .retirement-review-card,
  .mfa-panel,
  .passkey-manager,
  .totp-manager,
  .admin-post-item,
  .audit-log-entry,
  .retirement-comment,
  .retirement-comment-empty,
  .retirement-comment-login,
  .my-event-card,
  .calendar-event-card) {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] main :is(.dashboard-details,
  .dashboard-profile-readonly,
  .admin-user-row,
  .admin-user-search,
  .admin-panel-heading,
  .admin-user-detail-heading,
  .audit-log-heading,
  .audit-log-filters,
  .event-management-tabs,
  .event-authorization-section,
  .event-schedule-section,
  .event-submitter-section,
  .event-details-section,
  .retirement-consent-section,
  .retirement-trade-panel,
  .retirement-radio-option,
  .register-mfa-option,
  .passkey-item,
  .totp-status,
  .home-feed-message,
  .calendar-message) {
  border-color: var(--dark-border);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] main :is(h1,
  h2,
  h3,
  h4,
  legend,
  label,
  strong,
  .dashboard-detail-label,
  .dashboard-section-heading h2,
  .admin-user-detail-heading h3,
  .audit-log-heading h3,
  .event-section-heading h2,
  .event-language-heading h3,
  .review-language-heading h3,
  .retirement-detail-comments h2,
  .retirement-card-header h2,
  .search-heading h1,
  .translations-admin-heading h1) {
  color: var(--dark-text);
}

html[data-theme="dark"] main :is(p,
  li,
  small,
  time,
  .dashboard-detail-value,
  .dashboard-member-name,
  .dashboard-role-summary p,
  .admin-post-details,
  .admin-post-excerpt,
  .admin-empty-state,
  .retirement-comment p,
  .retirement-comment time,
  .event-language-note,
  .event-time-zone-note,
  .review-page-message,
  .search-status) {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] main a {
  color: var(--dark-link);
}

html[data-theme="dark"] .home-button-primary,
html[data-theme="dark"] .home-button-primary:hover,
html[data-theme="dark"] .home-button-primary:focus-visible {
  color: var(--navy-900);
}

html[data-theme="dark"] main :is(input, textarea, select) {
  border-color: var(--dark-border-strong);
  background: #0d1422;
  color: var(--dark-text);
}

html[data-theme="dark"] main :is(input, textarea, select)::placeholder {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] main :is(input, textarea, select):focus {
  border-color: var(--gold-500);
  background: #0d1422;
  box-shadow: 0 0 0 3px rgba(213, 155, 39, 0.18);
}

html[data-theme="dark"] main :is(input, textarea, select):-webkit-autofill,
html[data-theme="dark"] main :is(input, textarea, select):-webkit-autofill:hover,
html[data-theme="dark"] main :is(input, textarea, select):-webkit-autofill:focus {
  border-color: var(--gold-500);
  -webkit-text-fill-color: var(--dark-text);
  caret-color: var(--dark-text);
  box-shadow:
    0 0 0 1000px #0d1422 inset,
    0 0 0 3px rgba(213, 155, 39, 0.18);
  transition: background-color 9999s ease-in-out 0s;
}

html[data-theme="dark"] main :is(button,
  .dashboard-profile-button,
  .admin-work-zone-button,
  .mfa-button,
  .event-submit-button,
  .login-submit,
  .register-submit,
  .review-publish-button,
  .review-reject-button,
  .translation-save-button) {
  border-color: var(--dark-border-strong);
}

html[data-theme="dark"] main :is(.dashboard-profile-button.is-primary,
  .admin-work-zone-button.is-primary,
  .mfa-button-primary,
  .event-submit-button,
  .login-submit,
  .register-submit,
  .review-publish-button,
  .translation-save-button) {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] main :is(.dashboard-profile-button.is-secondary,
  .admin-work-zone-button.is-secondary,
  .mfa-button,
  .mfa-link-button,
  .event-management-tab,
  .review-reject-button) {
  background: transparent;
  color: var(--dark-text);
}

html[data-theme="dark"] .login-text-button {
  border-color: transparent;
  background: transparent;
  color: var(--gold-200);
  text-decoration-color: var(--gold-500);
}

html[data-theme="dark"] .login-text-button:hover,
html[data-theme="dark"] .login-text-button:focus-visible {
  color: var(--gold-500);
}

html[data-theme="dark"] main :is(.dashboard-status,
  .event-form-message,
  .event-page-message,
  .review-page-message,
  .retirements-message,
  .retirement-comment-message,
  .calendar-message,
  .search-status,
  .admin-work-zone-message,
  .dashboard-profile-message) {
  border-color: var(--dark-border);
  background: var(--dark-surface-3);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] main :is(.is-error,
  .login-error,
  .register-error,
  .retirement-comment-message.is-error,
  .event-form-message.is-error,
  .review-page-message.is-error) {
  border-left-color: var(--danger);
  background: var(--dark-danger-bg);
  color: var(--dark-danger-text);
}

html[data-theme="dark"] main :is(.is-success,
  .retirement-comment-message.is-success,
  .event-form-message.is-success,
  .dashboard-profile-message.is-success) {
  border-left-color: var(--success-border);
  background: var(--dark-success-bg);
  color: var(--dark-success-text);
}

html[data-theme="dark"] main :is(table, th, td) {
  border-color: var(--dark-border);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] main th {
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .signout-modal {
  border-color: var(--dark-border);
  background: var(--dark-surface);
  color: var(--dark-text);
}

html[data-theme="dark"] .signout-modal-body,
html[data-theme="dark"] .signout-modal-button-secondary {
  background: var(--dark-surface);
  color: var(--dark-text);
}

html[data-theme="dark"] .signout-modal-body p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .audit-log-entry.is-user-login,
html[data-theme="dark"] .audit-log-entry.is-user-login_mfa_required {
  background: #102436;
}

html[data-theme="dark"] .audit-log-entry.is-content-created {
  background: #211d3a;
}

html[data-theme="dark"] .audit-log-entry.is-content-published {
  background: #10291d;
}

html[data-theme="dark"] .audit-log-entry.is-content-rejected {
  background: #3a2412;
}

html[data-theme="dark"] .audit-log-entry.is-content-deleted {
  background: #351916;
}

html[data-theme="dark"] .audit-log-entry.is-config-access_requested,
html[data-theme="dark"] .audit-log-entry.is-config-token_accepted,
html[data-theme="dark"] .audit-log-entry.is-config-token_rejected,
html[data-theme="dark"] .audit-log-entry.is-config-updated {
  --audit-accent: #ef4444;
  --audit-badge-text: #fff7f7;
  border-color: #ef4444;
  background: #5f1414;
  box-shadow:
    inset 0 0 0 2px rgba(248, 113, 113, 0.38),
    0 0 0 1px rgba(248, 113, 113, 0.24);
}

html[data-theme="dark"] .audit-log-entry.is-config-access_requested .admin-post-header strong,
html[data-theme="dark"] .audit-log-entry.is-config-token_accepted .admin-post-header strong,
html[data-theme="dark"] .audit-log-entry.is-config-token_rejected .admin-post-header strong,
html[data-theme="dark"] .audit-log-entry.is-config-updated .admin-post-header strong {
  color: #fff1f2;
}

html[data-theme="dark"] .audit-log-entry.is-timer-created,
html[data-theme="dark"] .audit-log-entry.is-timer-updated,
html[data-theme="dark"] .audit-log-entry.is-timer-deleted {
  --audit-accent: #2dd4bf;
  --audit-badge-text: #042f2e;
  background: #0e2c29;
}

html[data-theme="dark"] .audit-log-entry.is-user-role_changed {
  background: #332714;
}

html[data-theme="dark"] .audit-log-entry.is-user-content_areas_changed {
  background: #0e2c29;
}

html[data-theme="dark"] .audit-log-entry .admin-post-type {
  border-color: var(--audit-accent, var(--gold-500));
  background: var(--audit-accent, var(--gold-500));
  color: var(--audit-badge-text, #101522);
}

html[data-theme="dark"] .audit-log-entry .admin-post-details a {
  color: var(--gold-200);
}

html[data-theme="dark"] .audit-log-entry .admin-post-details a:hover,
html[data-theme="dark"] .audit-log-entry .admin-post-details a:focus-visible {
  color: var(--dark-link);
}

html[data-theme="dark"] .audit-log-metadata-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .audit-log-metadata-chip strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .home-family,
html[data-theme="dark"] .home-information {
  background: transparent;
}

html[data-theme="dark"] .home-family-grid {
  border-color: var(--dark-border);
}

html[data-theme="dark"] .home-family-card,
html[data-theme="dark"] .home-family-card:hover,
html[data-theme="dark"] .home-family-card:focus-visible {
  border-color: var(--dark-border);
  border-top-color: var(--gold-500);
  background:
    linear-gradient(180deg,
      #172235,
      #111929);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--dark-text);
}

html[data-theme="dark"] .home-family-card:hover,
html[data-theme="dark"] .home-family-card:focus-visible {
  border-top-color: var(--gold-200);
  background:
    linear-gradient(180deg,
      #1d2a42,
      #141d30);
}

html[data-theme="dark"] .home-family-card .home-family-icon {
  color: var(--gold-500);
}

html[data-theme="dark"] .home-family-card h3,
html[data-theme="dark"] .home-family-card .home-family-link {
  color: var(--dark-text);
}

html[data-theme="dark"] .home-family-card p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .home-family-card .home-family-link {
  border-top-color: var(--dark-border-strong);
}

html[data-theme="dark"] .home-feature-panel .home-text-link {
  color: var(--gold-200);
}

html[data-theme="dark"] .home-feature-panel .home-text-link:hover,
html[data-theme="dark"] .home-feature-panel .home-text-link:focus-visible {
  color: var(--dark-link);
}

html[data-theme="dark"] .home-feed-item,
html[data-theme="dark"] .home-event-item {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .home-feed-date,
html[data-theme="dark"] .home-feed-meta,
html[data-theme="dark"] .home-feed-note {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .home-feed-content strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .calendar-event {
  border-color: var(--dark-border-strong);
  background:
    linear-gradient(90deg,
      #151f31 0%,
      #182337 62%,
      #202b3f 100%);
  color: var(--dark-text);
}

html[data-theme="dark"] .calendar-event-date-line,
html[data-theme="dark"] .calendar-event-title,
html[data-theme="dark"] .calendar-event-location,
html[data-theme="dark"] .calendar-event-description,
html[data-theme="dark"] .calendar-event-meta-value {
  color: var(--dark-text);
}

html[data-theme="dark"] .calendar-event-location,
html[data-theme="dark"] .calendar-event-description {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .calendar-event-meta {
  border-left-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.06),
      rgba(213, 155, 39, 0.11));
}

html[data-theme="dark"] .calendar-submit-callout {
  border-color: var(--dark-border);
  border-left-color: var(--gold-500);
  background: rgba(13, 20, 34, 0.72);
}

html[data-theme="dark"] .calendar-submit-callout p {
  color: var(--dark-text);
}

html[data-theme="dark"] .calendar-submit-callout a {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] .calendar-submit-callout a:hover,
html[data-theme="dark"] .calendar-submit-callout a:focus-visible {
  border-color: var(--gold-200);
  background: var(--gold-200);
  color: #101522;
}

html[data-theme="dark"] .event-detail-body,
html[data-theme="dark"] .event-detail-brief,
html[data-theme="dark"] .event-detail-section,
html[data-theme="dark"] .event-detail-registration {
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .event-detail-description p,
html[data-theme="dark"] .event-detail-list dd,
html[data-theme="dark"] .event-detail-registration p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .event-language-heading,
html[data-theme="dark"] .review-language-heading {
  border-bottom-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      #263349,
      #1b2638);
}

html[data-theme="dark"] .event-language-code,
html[data-theme="dark"] .review-language-code {
  color: var(--gold-200);
}

html[data-theme="dark"] .event-language-heading h2,
html[data-theme="dark"] .review-language-heading h3 {
  color: var(--dark-text);
}

html[data-theme="dark"] .event-review-main {
  background:
    radial-gradient(circle at top left, rgba(213, 155, 39, 0.07), transparent 32rem),
    linear-gradient(180deg, var(--dark-bg), #0b1220 62%, var(--dark-bg));
}

html[data-theme="dark"] .event-review-shell {
  overflow: hidden;
}

html[data-theme="dark"] .event-management-tabs {
  border-bottom-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
}

html[data-theme="dark"] .event-management-tab {
  border-right-color: var(--dark-border);
  background: transparent;
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .event-management-tab:hover,
html[data-theme="dark"] .event-management-tab:focus-visible {
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .event-management-tab.is-active {
  background: #111a2b;
  color: var(--dark-text);
}

html[data-theme="dark"] .event-management-tab.is-active::after {
  background: var(--gold-500);
}

html[data-theme="dark"] .event-management-panel {
  background: var(--dark-surface);
}

html[data-theme="dark"] .review-queue {
  background:
    linear-gradient(180deg,
      #111a2b,
      var(--dark-surface) 42%,
      #0f1727);
}

html[data-theme="dark"] .review-event-card {
  border-color: var(--dark-border);
  border-left-color: var(--gold-500);
  background: var(--dark-surface-2);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

html[data-theme="dark"] .review-event-card-header {
  background:
    linear-gradient(105deg,
      #191f3a,
      #22294b);
}

html[data-theme="dark"] .review-event-meta {
  border-bottom-color: var(--dark-border);
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .review-event-meta-item {
  border-right-color: var(--dark-border);
}

html[data-theme="dark"] .review-record-section,
html[data-theme="dark"] .comment-review-comment-section,
html[data-theme="dark"] .comment-review-related-section {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .review-record-section>h3 {
  border-bottom-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      #263349,
      #1b2638);
  color: var(--dark-text);
}

html[data-theme="dark"] .review-record-data,
html[data-theme="dark"] .review-language-body,
html[data-theme="dark"] .comment-review-body,
html[data-theme="dark"] .retirement-review-language-grid,
html[data-theme="dark"] .retirement-review-message-section,
html[data-theme="dark"] .retirement-review-photo-section {
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .review-event-meta-label,
html[data-theme="dark"] .review-record-label,
html[data-theme="dark"] .review-content-label {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .review-event-meta-value,
html[data-theme="dark"] .review-record-value,
html[data-theme="dark"] .review-event-registration,
html[data-theme="dark"] .review-event-title-value,
html[data-theme="dark"] .review-event-location,
html[data-theme="dark"] .review-event-description,
html[data-theme="dark"] .comment-review-body {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .review-record-value.is-confirmed {
  color: var(--dark-success-text);
}

html[data-theme="dark"] .review-record-value.is-unconfirmed {
  color: var(--dark-danger-text);
}

html[data-theme="dark"] .review-decision {
  border-top-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      var(--dark-surface-3),
      var(--dark-surface-2));
}

html[data-theme="dark"] .review-decision-copy p,
html[data-theme="dark"] .retirement-review-message-hint,
html[data-theme="dark"] .review-language-body .is-missing {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .review-rejection-reason,
html[data-theme="dark"] .retirement-review-message-input {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .review-rejection-reason:hover,
html[data-theme="dark"] .retirement-review-message-input:hover {
  border-color: rgba(240, 199, 108, 0.58);
}

html[data-theme="dark"] .comment-review-related-link,
html[data-theme="dark"] .retirement-review-photo-link {
  color: var(--dark-link);
}

html[data-theme="dark"] .comment-review-related-link:hover,
html[data-theme="dark"] .comment-review-related-link:focus-visible,
html[data-theme="dark"] .retirement-review-photo-link:hover,
html[data-theme="dark"] .retirement-review-photo-link:focus-visible {
  color: var(--gold-200);
}

html[data-theme="dark"] .retirements-grid {
  border-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      rgba(21, 29, 45, 0.94),
      rgba(15, 22, 37, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .retirements-load-more {
  border-color: var(--dark-border);
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .retirement-card {
  border-color: var(--dark-border);
  border-left-color: var(--gold-500);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-card-header {
  background:
    linear-gradient(105deg,
      #202b45,
      #151f35);
}

html[data-theme="dark"] .retirement-card-header h2 {
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-card-header p,
html[data-theme="dark"] .retirement-card-footer {
  color: var(--gold-200);
}

html[data-theme="dark"] .retirement-card-photo-placeholder {
  background:
    linear-gradient(135deg,
      #263349,
      #141d2f);
  color: var(--dark-text);
}

html[data-theme="dark"] .loading-state-spinner {
  border-color: rgba(255, 255, 255, 0.18);
  border-top-color: var(--gold-500);
}

html[data-theme="dark"] .login-mfa-overlay {
  background: rgba(3, 7, 15, 0.74);
}

html[data-theme="dark"] .login-mfa-dialog {
  border-color: var(--dark-border-strong);
  border-top-color: var(--gold-500);
  background:
    linear-gradient(180deg,
      var(--dark-surface-2),
      var(--dark-surface));
  color: var(--dark-text);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.58),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="dark"] .login-mfa-heading p {
  color: var(--gold-200);
}

html[data-theme="dark"] .login-mfa-heading h2,
html[data-theme="dark"] .login-mfa-option strong,
html[data-theme="dark"] .login-mfa-totp label {
  color: var(--dark-text);
}

html[data-theme="dark"] .login-mfa-copy,
html[data-theme="dark"] .login-mfa-option span {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .login-mfa-option {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .login-mfa-option:hover,
html[data-theme="dark"] .login-mfa-option:focus-visible {
  border-color: var(--gold-500);
  background: #263349;
  box-shadow: 0 0 0 3px rgba(213, 155, 39, 0.18);
}

html[data-theme="dark"] .login-mfa-code-row input {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .login-mfa-code-row button {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] .login-mfa-cancel {
  border-color: var(--dark-border-strong);
  background: transparent;
  color: var(--dark-text);
}

html[data-theme="dark"] .login-mfa-cancel:hover,
html[data-theme="dark"] .login-mfa-cancel:focus-visible {
  border-color: var(--gold-500);
  color: var(--gold-200);
}

html[data-theme="dark"] .mfa-field span,
html[data-theme="dark"] .passkey-manager-heading h4 {
  color: var(--dark-text);
}

html[data-theme="dark"] .passkey-manager,
html[data-theme="dark"] .totp-manager {
  border-top-color: var(--dark-border);
}

html[data-theme="dark"] .mfa-field input,
html[data-theme="dark"] .mfa-secret {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .passkey-item,
html[data-theme="dark"] .totp-status-card,
html[data-theme="dark"] .passkey-empty {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .passkey-details strong,
html[data-theme="dark"] .totp-status-card strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .passkey-details span,
html[data-theme="dark"] .totp-status-card span,
html[data-theme="dark"] .totp-status-card p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .mfa-link-button {
  color: var(--dark-link);
  text-decoration-color: var(--gold-500);
}

html[data-theme="dark"] .mfa-link-button:hover,
html[data-theme="dark"] .mfa-link-button:focus-visible {
  color: var(--gold-200);
}

/* Dark theme page-specific cleanup */

html[data-theme="dark"] .dashboard-content,
html[data-theme="dark"] .dashboard-status,
html[data-theme="dark"] .dashboard-actions-section,
html[data-theme="dark"] .event-submit-layout,
html[data-theme="dark"] .event-submit-layout .event-submit-shell,
html[data-theme="dark"] .event-submit-form,
html[data-theme="dark"] .event-management-panel,
html[data-theme="dark"] .my-events-section,
html[data-theme="dark"] .my-events-heading,
html[data-theme="dark"] .my-events-intro,
html[data-theme="dark"] .my-events-list,
html[data-theme="dark"] .translations-admin-shell,
html[data-theme="dark"] .translations-toolbar,
html[data-theme="dark"] .translations-list,
html[data-theme="dark"] .admin-work-zone-page,
html[data-theme="dark"] .admin-user-editor,
html[data-theme="dark"] .admin-posts-panel,
html[data-theme="dark"] .retirement-detail-body,
html[data-theme="dark"] .event-edit-loading,
html[data-theme="dark"] .event-loading {
  border-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      var(--dark-surface-2),
      var(--dark-surface));
  color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-section {
  background: var(--dark-surface-2);
}

html[data-theme="dark"] .dashboard-actions-section {
  border-left-color: var(--dark-border);
}

html[data-theme="dark"] .dashboard-action {
  border-color: var(--dark-border-strong);
  border-left-color: var(--gold-500);
  background:
    linear-gradient(180deg,
      #202b40,
      #172135);
  color: var(--dark-text);
  box-shadow: none;
}

html[data-theme="dark"] .dashboard-action:hover,
html[data-theme="dark"] .dashboard-action:focus-visible {
  border-color: rgba(240, 199, 108, 0.72);
  border-left-color: var(--gold-300);
  background:
    linear-gradient(180deg,
      #263349,
      #1b2638);
}

html[data-theme="dark"] .dashboard-action.is-notification {
  border-left-color: #d06a62;
}

html[data-theme="dark"] .dashboard-review-work {
  border-top-color: var(--dark-border-strong);
}

html[data-theme="dark"] .dashboard-review-work h3 {
  color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-review-queue-link {
  border-color: var(--dark-border-strong);
  border-top-color: #5d789f;
  background: #202b40;
  color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-review-queue-link:hover,
html[data-theme="dark"] .dashboard-review-queue-link:focus-visible {
  border-color: var(--gold-300);
  border-top-color: #5d789f;
  background: #263349;
}

html[data-theme="dark"] .dashboard-review-queue-link strong {
  color: var(--gold-300);
}

html[data-theme="dark"] .dashboard-review-queue-link strong.is-empty {
  color: #93a0b3;
}

html[data-theme="dark"] .dashboard-review-queue-link span,
html[data-theme="dark"] .dashboard-review-counts-unavailable,
html[data-theme="dark"] .dashboard-review-open-link {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .dashboard-action-copy strong,
html[data-theme="dark"] .dashboard-action-copy>span:not(.dashboard-action-title-row),
html[data-theme="dark"] .dashboard-action-arrow {
  color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-action-copy>span:not(.dashboard-action-title-row),
html[data-theme="dark"] .dashboard-detail-value,
html[data-theme="dark"] .dashboard-profile-message {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .dashboard-action-count,
html[data-theme="dark"] .notification-badge {
  color: var(--white);
}

html[data-theme="dark"] .notifications-main {
  background: var(--dark-bg);
}

html[data-theme="dark"] .notification-card h2,
html[data-theme="dark"] .notification-comment-form label {
  color: var(--dark-text);
}

html[data-theme="dark"] .notification-date {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .notifications-status,
html[data-theme="dark"] .notification-card {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .notification-reason,
html[data-theme="dark"] .notification-card-message.is-error {
  border-left-color: #d06a62;
  background: rgba(166, 60, 53, 0.18);
  color: #f1b2ad;
}

html[data-theme="dark"] .notification-card-message {
  border-left-color: var(--dark-border-strong);
  background: var(--dark-surface);
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .notification-comment-form textarea {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface);
  color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-profile-field input,
html[data-theme="dark"] .dashboard-profile-field select,
html[data-theme="dark"] .dashboard-profile-field input[readonly],
html[data-theme="dark"] .dashboard-profile-field select:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--dark-text);
  -webkit-text-fill-color: var(--dark-text);
}

html[data-theme="dark"] .dashboard-profile-form[data-editing="true"] .dashboard-profile-field input,
html[data-theme="dark"] .dashboard-profile-form[data-editing="true"] .dashboard-profile-field select {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
}

html[data-theme="dark"] .event-submit-main,
html[data-theme="dark"] .translations-admin-main,
html[data-theme="dark"] .admin-work-zone-main,
html[data-theme="dark"] .retirement-detail-main,
html[data-theme="dark"] .retirements-main {
  background:
    radial-gradient(circle at top left, rgba(213, 155, 39, 0.07), transparent 32rem),
    linear-gradient(180deg, var(--dark-bg), #0b1220 62%, var(--dark-bg));
}

html[data-theme="dark"] .event-submit-shell,
html[data-theme="dark"] .event-submit-form,
html[data-theme="dark"] .event-form-section,
html[data-theme="dark"] .event-language-panel,
html[data-theme="dark"] .event-authorization-section,
html[data-theme="dark"] .retirement-consent-section {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .event-section-heading,
html[data-theme="dark"] .event-language-heading,
html[data-theme="dark"] .event-authorization-heading,
html[data-theme="dark"] .my-events-heading {
  border-bottom-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      #263349,
      #1b2638);
}

html[data-theme="dark"] .event-section-intro,
html[data-theme="dark"] .event-language-note,
html[data-theme="dark"] .event-time-zone-note,
html[data-theme="dark"] .event-authorization-checkbox small,
html[data-theme="dark"] .retirement-consent-field small,
html[data-theme="dark"] .my-events-intro,
html[data-theme="dark"] .my-events-message,
html[data-theme="dark"] .event-loading p,
html[data-theme="dark"] .event-edit-loading p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .event-authorization-checkbox:hover,
html[data-theme="dark"] .event-authorization-checkbox:focus-within {
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .event-submit-options,
html[data-theme="dark"] .dashboard-profile-readonly {
  border-top-color: var(--dark-border);
}

html[data-theme="dark"] .event-field small,
html[data-theme="dark"] .event-section-heading p:not(.event-section-eyebrow),
html[data-theme="dark"] .event-publish-toggle small,
html[data-theme="dark"] .event-review-note {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .event-toggle,
html[data-theme="dark"] .event-field-title,
html[data-theme="dark"] .event-time-separator,
html[data-theme="dark"] .event-publish-toggle strong,
html[data-theme="dark"] .retirement-consent-field strong,
html[data-theme="dark"] .event-authorization-checkbox strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .event-time-selects select,
html[data-theme="dark"] .event-field select {
  border-color: var(--dark-border-strong);
  background-color: var(--dark-bg-elevated);
  background-image:
    linear-gradient(45deg,
      transparent 50%,
      var(--dark-text-soft) 50%),
    linear-gradient(135deg,
      var(--dark-text-soft) 50%,
      transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  color: var(--dark-text);
}

html[data-theme="dark"] .event-time-selects select {
  background-position:
    calc(100% - 16px) 19px,
    calc(100% - 11px) 19px;
}

html[data-theme="dark"] .event-time-selects select:disabled {
  background-color: var(--dark-surface-3);
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .event-field select:invalid {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .event-field select option,
html[data-theme="dark"] .event-time-selects select option {
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-trade-panel p,
html[data-theme="dark"] .retirement-radio-option span {
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-radio-option:hover,
html[data-theme="dark"] .retirement-radio-option:focus-within {
  border-color: var(--gold-500);
  background: var(--dark-surface-2);
}

html[data-theme="dark"] .event-field input[type="file"]::file-selector-button {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] .my-event-card {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .my-event-meta,
html[data-theme="dark"] .my-event-updated {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .translations-toolbar {
  border-bottom-color: var(--dark-border);
}

html[data-theme="dark"] .translations-count,
html[data-theme="dark"] .translation-key-label,
html[data-theme="dark"] .translation-row-status {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .translation-key-value,
html[data-theme="dark"] .translations-text-field label {
  color: var(--dark-text);
}

html[data-theme="dark"] .translation-row {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .translation-row-status.is-success {
  color: var(--dark-success-text);
}

html[data-theme="dark"] .translation-row-status.is-warning {
  color: var(--gold-200);
}

html[data-theme="dark"] .translation-row-status.is-error {
  color: var(--dark-danger-text);
}

html[data-theme="dark"] .admin-panel-heading,
html[data-theme="dark"] .admin-user-detail-heading,
html[data-theme="dark"] .admin-user-search,
html[data-theme="dark"] .admin-media-heading,
html[data-theme="dark"] .admin-user-editor,
html[data-theme="dark"] .admin-role-form,
html[data-theme="dark"] .admin-role-list {
  border-color: var(--dark-border);
}

html[data-theme="dark"] .admin-work-zone-tabs:not(.event-management-tabs) {
  border-bottom-color: var(--dark-border);
}

html[data-theme="dark"] .admin-work-zone-tab:not(.event-management-tab),
html[data-theme="dark"] .admin-media-heading,
html[data-theme="dark"] .admin-media-card,
html[data-theme="dark"] .admin-media-attachment,
html[data-theme="dark"] .admin-media-upload-list,
html[data-theme="dark"] .admin-media-upload-row,
html[data-theme="dark"] .admin-user-list-panel,
html[data-theme="dark"] .admin-user-detail-panel,
html[data-theme="dark"] .admin-role-editor-panel,
html[data-theme="dark"] .admin-role-form,
html[data-theme="dark"] .admin-role-row,
html[data-theme="dark"] .admin-permission-group,
html[data-theme="dark"] .cms-page,
html[data-theme="dark"] .pages-admin-list-panel,
html[data-theme="dark"] .pages-admin-editor,
html[data-theme="dark"] .pages-navigation-panel,
html[data-theme="dark"] .timers-admin-list-panel,
html[data-theme="dark"] .timers-admin-editor,
html[data-theme="dark"] .timers-admin-row,
html[data-theme="dark"] .pages-add-block-controls,
html[data-theme="dark"] .pages-block-editor,
html[data-theme="dark"] .pages-column-editor,
html[data-theme="dark"] .pages-carousel-item-editor,
html[data-theme="dark"] .pages-access-editor,
html[data-theme="dark"] .pages-admin-page-row,
html[data-theme="dark"] .pages-navigation-row,
html[data-theme="dark"] .site-config-toolbar,
html[data-theme="dark"] .site-config-row {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-work-zone-tab:not(.event-management-tab):hover,
html[data-theme="dark"] .admin-work-zone-tab:not(.event-management-tab):focus-visible,
html[data-theme="dark"] .admin-work-zone-tab:not(.event-management-tab).is-active {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] .admin-media-preview {
  background:
    linear-gradient(135deg,
      var(--dark-bg-elevated),
      var(--dark-surface-3));
}

html[data-theme="dark"] .admin-media-heading h3,
html[data-theme="dark"] .admin-media-body h4,
html[data-theme="dark"] .admin-media-attachments strong,
html[data-theme="dark"] .admin-media-attachment a,
html[data-theme="dark"] .admin-media-attachment>span:first-child,
html[data-theme="dark"] .admin-panel-heading h3,
html[data-theme="dark"] .admin-user-detail-heading h3,
html[data-theme="dark"] .admin-editor-field>span,
html[data-theme="dark"] .admin-editor-fieldset legend,
html[data-theme="dark"] .admin-permission-group>strong,
html[data-theme="dark"] .admin-role-row strong,
html[data-theme="dark"] .cms-page-heading h1,
html[data-theme="dark"] .cms-block h2,
html[data-theme="dark"] .cms-block h3,
html[data-theme="dark"] .pages-admin-page-row strong,
html[data-theme="dark"] .pages-navigation-row span,
html[data-theme="dark"] .pages-editor-field span,
html[data-theme="dark"] .timers-editor-field>span:first-child,
html[data-theme="dark"] .pages-editor-fieldset legend,
html[data-theme="dark"] .pages-access-group>strong,
html[data-theme="dark"] .pages-add-block-title,
html[data-theme="dark"] .pages-block-heading strong,
html[data-theme="dark"] .site-config-key {
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-media-heading p,
html[data-theme="dark"] .admin-media-meta,
html[data-theme="dark"] .admin-media-attachments,
html[data-theme="dark"] .admin-media-attachment span,
html[data-theme="dark"] .admin-media-upload-details span,
html[data-theme="dark"] .cms-page-summary,
html[data-theme="dark"] .cms-block p,
html[data-theme="dark"] .cms-image-caption,
html[data-theme="dark"] .pages-admin-page-row span,
html[data-theme="dark"] .pages-access-option,
html[data-theme="dark"] .site-config-toolbar p {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .admin-media-heading.is-dragging {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.14);
}

html[data-theme="dark"] .admin-media-upload-details strong {
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-media-upload-progress {
  background: var(--dark-border-strong);
}

html[data-theme="dark"] .site-config-row input,
html[data-theme="dark"] .cmcen-color-picker,
html[data-theme="dark"] .admin-editor-field input,
html[data-theme="dark"] .admin-editor-field select,
html[data-theme="dark"] .admin-editor-field textarea,
html[data-theme="dark"] .pages-editor-field input,
html[data-theme="dark"] .pages-editor-field select,
html[data-theme="dark"] .pages-editor-field textarea,
html[data-theme="dark"] .timers-editor-field input,
html[data-theme="dark"] .timers-editor-field select,
html[data-theme="dark"] .timers-editor-field textarea,
html[data-theme="dark"] .pages-navigation-form input,
html[data-theme="dark"] .pages-navigation-form select {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .cmcen-color-picker-preview,
html[data-theme="dark"] .cmcen-color-picker-swatch {
  border-color: var(--dark-border-strong);
}

html[data-theme="dark"] .cmcen-color-picker-custom {
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .cmcen-color-picker-popover {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cmcen-color-picker-row-label {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .cmcen-date-time-trigger,
html[data-theme="dark"] .cmcen-date-time-time-row input {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .cmcen-date-time-trigger.is-placeholder,
html[data-theme="dark"] .cmcen-date-time-weekday {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .cmcen-date-time-popover {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cmcen-date-time-header strong,
html[data-theme="dark"] .cmcen-date-time-time-row span {
  color: var(--dark-text);
}

html[data-theme="dark"] .cmcen-date-time-nav,
html[data-theme="dark"] .cmcen-date-time-action,
html[data-theme="dark"] .cmcen-date-time-day {
  border-color: var(--dark-border);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .cmcen-date-time-action.is-primary,
html[data-theme="dark"] .cmcen-date-time-day.is-selected {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: #101522;
}

html[data-theme="dark"] .cmcen-date-time-time-row {
  border-top-color: var(--dark-border-strong);
}

html[data-theme="dark"] .cms-page-heading,
html[data-theme="dark"] .pages-image-drop-zone {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-admin-page-row:hover,
html[data-theme="dark"] .pages-admin-page-row:focus-visible,
html[data-theme="dark"] .pages-admin-page-row.is-selected,
html[data-theme="dark"] .pages-image-drop-zone.is-dragging {
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .pages-admin-editor {
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    var(--dark-surface-3);
  background-size: 24px 24px;
}

html[data-theme="dark"] .pages-builder-empty {
  border-color: var(--dark-border-strong);
  background: rgba(15, 23, 42, 0.42);
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .pages-list-empty,
html[data-theme="dark"] .pages-editor-empty {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .pages-navigation-form {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
}

html[data-theme="dark"] .pages-list-empty strong,
html[data-theme="dark"] .pages-editor-empty strong,
html[data-theme="dark"] .pages-navigation-form-title {
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-autosave-status {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .pages-autosave-status.is-pending {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.14);
  color: var(--gold-200);
}

html[data-theme="dark"] .pages-autosave-status.is-saving {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .pages-autosave-status.is-saved {
  border-color: #2dd4bf;
  background: rgba(45, 212, 191, 0.13);
  color: #99f6e4;
}

html[data-theme="dark"] .pages-autosave-status.is-error {
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.13);
  color: #fecaca;
}

html[data-theme="dark"] .pages-editor-empty {
  border-color: var(--dark-border-strong);
  background: rgba(15, 23, 42, 0.42);
}

html[data-theme="dark"] .pages-palette-block {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-palette-block:hover,
html[data-theme="dark"] .pages-palette-block:focus-visible,
html[data-theme="dark"] .pages-canvas-drop-zone.is-active,
html[data-theme="dark"] .pages-builder-empty .pages-canvas-drop-zone {
  border-color: var(--gold-500);
  background: rgba(213, 155, 39, 0.14);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-media-picker {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-crop-editor {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-media-picker-header,
html[data-theme="dark"] .pages-media-picker-footer,
html[data-theme="dark"] .pages-media-picker-item {
  border-color: var(--dark-border-strong);
}

html[data-theme="dark"] .pages-media-picker-header h3 {
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-media-picker-item {
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .pages-media-picker-item span {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .pages-upload-progress {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .pages-upload-progress-bar {
  background: var(--dark-border-strong);
}

html[data-theme="dark"] .pages-upload-progress.is-error {
  color: #fecaca;
}

html[data-theme="dark"] .admin-user-row,
html[data-theme="dark"] .admin-role-row {
  border-bottom-color: var(--dark-border);
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-user-row:hover,
html[data-theme="dark"] .admin-user-row:focus-visible,
html[data-theme="dark"] .admin-user-row.is-selected,
html[data-theme="dark"] .admin-role-row:hover,
html[data-theme="dark"] .admin-role-row:focus-visible,
html[data-theme="dark"] .admin-role-row.is-selected {
  background: var(--dark-surface-3);
}

html[data-theme="dark"] .admin-permission-option:hover,
html[data-theme="dark"] .admin-permission-option:focus-within {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
}

html[data-theme="dark"] .admin-permission-option.is-selected {
  border-color: rgba(213, 155, 39, 0.65);
  background: rgba(213, 155, 39, 0.13);
}

html[data-theme="dark"] .admin-user-row span,
html[data-theme="dark"] .admin-role-row span:last-child,
html[data-theme="dark"] .admin-user-detail-heading p,
html[data-theme="dark"] .admin-editor-help,
html[data-theme="dark"] .admin-permission-option small,
html[data-theme="dark"] .admin-user-post-count {
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .admin-user-role-badge,
html[data-theme="dark"] .dashboard-role-badge.role-subscriber {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-user-role-badge.role-developer,
html[data-theme="dark"] .dashboard-role-badge.role-developer {
  border-color: #ef4444;
  background: #b42318;
  color: #fff7f5;
}

html[data-theme="dark"] .admin-user-role-badge.verification-verified {
  border-color: #14b8a6;
  background: #0f766e;
  color: #ecfeff;
}

html[data-theme="dark"] .admin-user-role-badge.account-ghost,
html[data-theme="dark"] .dashboard-role-badge.role-ghost {
  border-color: #9ca3af;
  background: #374151;
  color: #f3f4f6;
}

html[data-theme="dark"] .admin-content-area-option,
html[data-theme="dark"] .admin-custom-role-option {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-3);
  color: var(--dark-text);
}

html[data-theme="dark"] .admin-content-area-option input {
  accent-color: var(--gold-500);
}

html[data-theme="dark"] .admin-work-zone-button.is-danger {
  border-color: #ef4444;
  background: #b42318;
  color: #fff7f5;
}

html[data-theme="dark"] .retirement-detail-shell {
  background: var(--dark-surface);
}

html[data-theme="dark"] .retirement-detail-body {
  border-color: var(--dark-border);
}

html[data-theme="dark"] .retirement-detail-message-section,
html[data-theme="dark"] .retirement-detail-comments {
  border-color: var(--dark-border);
  background: var(--dark-surface-2);
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-comment {
  border-color: var(--dark-border-strong);
  background: var(--dark-surface-2);
}

html[data-theme="dark"] .retirement-comment-form {
  border-top-color: var(--dark-border);
}

html[data-theme="dark"] .retirement-comment-form textarea {
  border-color: var(--dark-border-strong);
  background: var(--dark-bg-elevated);
  color: var(--dark-text);
}

html[data-theme="dark"] .retirement-comment-form-note,
html[data-theme="dark"] .retirement-comment p,
html[data-theme="dark"] .retirement-detail-message-section p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .about-family-main {
  background:
    radial-gradient(circle at top left, rgba(213, 155, 39, 0.07), transparent 32rem),
    linear-gradient(180deg, var(--dark-bg), #0b1220 62%, var(--dark-bg));
}

html[data-theme="dark"] .about-family-body {
  border-color: var(--dark-border);
  background:
    linear-gradient(180deg,
      var(--dark-surface-2),
      var(--dark-surface));
  color: var(--dark-text);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .about-family-section {
  border-top-color: var(--dark-border);
}

html[data-theme="dark"] .about-family-section h2 {
  color: var(--dark-text);
}

html[data-theme="dark"] .about-family-section p {
  color: var(--dark-text-soft);
}

html[data-theme="dark"] .about-family-pillar-list li {
  border-left-color: var(--gold-500);
  background:
    linear-gradient(90deg,
      rgba(213, 155, 39, 0.16),
      rgba(34, 45, 64, 0.88));
  color: var(--dark-text-soft);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 4.5rem;
  height: 2.25rem;
  padding: 0.25rem;
  margin-top: 1rem;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 25%);
  transition: transform 0.2s ease;
}

.theme-toggle__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
}

.theme-toggle__icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__icon:first-child {
  color: #d97706;
}

.theme-toggle__icon:last-child {
  color: #6b7280;
}

.theme-toggle:hover {
  border-color: #6b7280;
}

.theme-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Dark mode */

html[data-theme="dark"] .theme-toggle {
  background: #252a33;
  border-color: #596273;
}

html[data-theme="dark"] .theme-toggle::before {
  transform: translateX(2rem);
  background: #3b4250;
}

html[data-theme="dark"] .theme-toggle__icon:first-child {
  color: #9ca3af;
}

html[data-theme="dark"] .theme-toggle__icon:last-child {
  color: #dbeafe;
}

@media (max-width: 720px) {
  html[data-theme="dark"] .account-dashboard-main .dashboard-shell {
    box-shadow: none;
  }

  html[data-theme="dark"] .event-review-main .event-review-shell {
    box-shadow: none;
  }

  html[data-theme="dark"] .retirement-submit-main .event-submit-shell {
    box-shadow: none;
  }

  html[data-theme="dark"] .submit-event-main .event-submit-shell {
    box-shadow: none;
  }

  html[data-theme="dark"] .admin-work-zone-main .dashboard-shell {
    box-shadow: none;
  }

  html[data-theme="dark"] .retirement-page-loading {
    background: var(--dark-surface);
  }
}

@media (max-width: 620px) {
  .error-page-main {
    min-height: 420px;
    padding: 28px 16px;
  }

  .error-page {
    padding: 38px 26px;
  }

  .error-page-code {
    font-size: 64px;
  }

  .error-page h1 {
    font-size: 29px;
  }

  .error-page-actions {
    flex-direction: column;
  }

  .error-page-primary-action,
  .error-page-secondary-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .theme-toggle,
  .theme-toggle::before {
    transition: none;
  }
}

.analytics-content {
  display: grid;
  gap: 1rem;
}

.site-timers {
  position: relative;
  z-index: 40;
  display: grid;
  gap: 1px;
}

.site-timers-below-header {
  position: sticky;
  top: var(--site-header-height, 0px);
  z-index: 999;
}

.site-timer {
  overflow: hidden;
  padding: 0.55rem clamp(1rem, 4vw, 2rem);
  background: var(--timer-background, var(--navy-900));
  color: var(--timer-text, var(--white));
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

.site-timer-track {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  white-space: nowrap;
}

.site-timer:not(.is-marquee) .site-timer-track {
  justify-content: center;
  text-align: center;
}

.site-timer-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-timer:not(.is-marquee) .site-timer-text {
  padding-right: 0;
}

.site-timer:not(.is-marquee) .site-timer-countdown {
  margin-left: 0;
}

.site-timer.is-marquee .site-timer-text {
  animation: site-timer-marquee 42s linear infinite;
}

.site-timer-countdown {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@keyframes site-timer-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 2rem));
  }
}

.timers-admin-content {
  display: grid;
  gap: 1rem;
}

.timers-admin-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.28fr) minmax(0, 1fr);
  gap: 1rem;
}

.timers-admin-list-panel,
.timers-admin-editor {
  border: 1px solid rgba(16, 21, 34, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(16, 21, 34, 0.08);
}

.timers-admin-list-panel {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}

.timers-admin-list-actions {
  display: flex;
  justify-content: flex-end;
}

.timers-admin-list {
  display: grid;
  gap: 0.5rem;
}

.timers-admin-row {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(16, 21, 34, 0.12);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.timers-admin-row:hover,
.timers-admin-row:focus-visible,
.timers-admin-row.is-selected {
  border-color: var(--gold-600);
  background: rgba(199, 162, 74, 0.12);
}

.timers-admin-row span {
  color: var(--muted-text);
  font-size: 0.85rem;
}

.timers-admin-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding: 1rem;
}

.timers-preview-slot,
.timers-admin-editor .pages-editor-actions {
  grid-column: 1 / -1;
}

.timers-editor-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  overflow: hidden;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: var(--timer-background, #1d4ed8);
  color: var(--timer-text, #ffffff);
  font-weight: 800;
}

.timers-editor-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timers-editor-preview strong {
  flex: none;
  padding: 0.15rem 0.55rem;
  border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  font-variant-numeric: tabular-nums;
}

.timers-editor-field {
  display: grid;
  gap: 0.4rem;
}

.timers-editor-field>span:first-child {
  color: var(--muted-text-color, #4b5563);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timers-editor-field input,
.timers-editor-field select,
.timers-editor-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(16, 21, 34, 0.16);
  border-radius: 8px;
  background: var(--white);
  color: var(--body-text);
  font: inherit;
}

.timers-editor-field textarea {
  resize: vertical;
  line-height: 1.45;
}

.timers-date-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 0.5rem;
}

.timers-editor-field input[type="checkbox"] {
  width: 56px;
  height: 32px;
  min-height: 32px;
  appearance: none;
  position: relative;
  padding: 0;
  border-radius: 999px;
  background: #94a3b8;
  cursor: pointer;
}

.timers-editor-field input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 160ms ease;
}

.timers-editor-field input[type="checkbox"]:checked {
  background: var(--gold-600);
}

.timers-editor-field input[type="checkbox"]:checked::before {
  transform: translateX(24px);
}

.analytics-toolbar {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 0.75rem;
}

.analytics-range-field {
  max-width: 220px;
}

.analytics-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.analytics-stat-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  background: var(--surface-color, #ffffff);
}

.analytics-stat-card strong {
  color: var(--heading-color, #111827);
  font-size: 1.75rem;
  line-height: 1;
}

.analytics-stat-card span {
  color: var(--muted-text-color, #6b7280);
  font-size: 0.92rem;
}

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

.analytics-panel {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  background: var(--surface-color, #ffffff);
}

.analytics-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.analytics-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.analytics-help {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 999px;
  color: var(--muted-text-color, #6b7280);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.analytics-help::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 20;
  width: min(280px, 80vw);
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.analytics-help:hover::after,
.analytics-help:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.analytics-breakdown-list,
.analytics-recent-list {
  display: grid;
  gap: 0.7rem;
}

.analytics-breakdown-row {
  display: grid;
  gap: 0.35rem;
}

.analytics-breakdown-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.analytics-breakdown-meta span {
  overflow-wrap: anywhere;
}

.analytics-breakdown-meta strong {
  flex: 0 0 auto;
}

.analytics-meter {
  position: relative;
  display: block;
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.analytics-meter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--analytics-meter-width, 0%);
  border-radius: inherit;
  background: #2563eb;
}

.analytics-recent-panel {
  grid-column: 1 / -1;
}

.analytics-recent-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.analytics-recent-item:last-child {
  border-bottom: 0;
}

.analytics-recent-item strong,
.analytics-recent-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.analytics-recent-item span,
.analytics-recent-item time {
  color: var(--muted-text-color, #6b7280);
  font-size: 0.9rem;
}

html[data-theme="dark"] .analytics-stat-card,
html[data-theme="dark"] .analytics-panel {
  background: var(--dark-surface, #1f2937);
  border-color: #374151;
}

html[data-theme="dark"] .analytics-help {
  border-color: #4b5563;
  color: var(--dark-text-muted);
}

html[data-theme="dark"] .analytics-meter {
  background: #374151;
}

html[data-theme="dark"] .analytics-meter::before {
  background: #60a5fa;
}

@media (max-width: 820px) {
  .analytics-stat-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

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

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

  .timers-date-control {
    grid-template-columns: 1fr;
  }

  .analytics-toolbar {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .analytics-range-field {
    max-width: none;
  }

  .analytics-recent-item {
    grid-template-columns: 1fr;
  }
}
