:root {
  --white: #ffffff;
  --mist: #f4faff;
  --sea-mist: #e9f6fc;
  --navy: #071b45;
  --ink: #10213d;
  --muted: #5d6b7e;
  --blue: #075ecb;
  --blue-strong: #004db0;
  --sky: #2aa7d8;
  --terracotta: #b86d4a;
  --line: #dce7f1;
  --line-strong: #bfd0de;
  --shadow: 0 16px 40px rgba(7, 27, 69, 0.12);
  --radius: 8px;
  --container: 1160px;
  --header-height: 78px;
  --heading-font: "Aptos Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

a:hover {
  color: var(--blue);
}

button,
input,
textarea {
  font: inherit;
}

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

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(220, 231, 241, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 118px;
  height: 64px;
  place-items: center;
  background: var(--white) url("../assets/logo-cretan-congress.jpg") left center / contain no-repeat;
  color: transparent;
}

.brand-mark svg {
  display: none;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.language-switch a {
  color: var(--muted);
  padding: 8px 2px;
}

.language-switch a.is-active,
.language-switch a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 0;
}

.hero {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(40px, 1fr) minmax(320px, 575px) minmax(460px, 760px) minmax(40px, 1fr);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--white) 0%, #f7fcff 48%, #eef8fd 100%);
}

.hero-copy {
  z-index: 1;
  display: flex;
  grid-column: 2;
  flex-direction: column;
  justify-content: center;
  padding: 58px 0 82px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: clamp(36px, 4.25vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.13;
}

.hero-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-media {
  position: relative;
  grid-column: 3 / 5;
  min-height: 530px;
}

.hero-media::before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: min(32vw, 360px);
  background: linear-gradient(90deg, #f7fcff 0%, rgba(247, 252, 255, 0.86) 42%, rgba(247, 252, 255, 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(7, 94, 203, 0.22);
}

.button-primary:hover {
  background: var(--blue-strong);
  color: var(--white);
}

.button-secondary {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.button-secondary:hover {
  border-color: var(--blue-strong);
  color: var(--blue-strong);
}

.button-muted {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--navy);
}

.button-disabled {
  border-color: var(--line-strong);
  background: #f3f5f8;
  color: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.button-disabled:hover {
  transform: none;
}

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

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

.section-heading h2,
.contact-copy h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-heading p,
.contact-copy p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.services-band {
  background: var(--mist);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-item {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
}

.service-item:last-child {
  border-right: 0;
}

.service-icon {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  color: var(--blue);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-item h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.2;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.text-link::after {
  margin-left: 8px;
  content: "→";
}

.notice {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--radius);
  background: #fffaf7;
  color: var(--ink);
  padding: 14px 16px;
  font-size: 15px;
}

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

.event-card,
.event-row,
.detail-card,
.contact-form,
.archive-document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.06);
}

.event-card {
  overflow: hidden;
}

.event-card-image,
.event-row-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--sea-mist);
}

.event-card-image {
  aspect-ratio: 16 / 9;
}

.event-card-image img,
.event-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(7, 27, 69, 0.88);
  color: var(--white);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.archive {
  background: rgba(184, 109, 74, 0.94);
}

.event-card-body {
  padding: 18px;
}

.event-card h3,
.event-row h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 820;
  line-height: 1.25;
}

.event-meta {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.event-meta span {
  display: flex;
  gap: 8px;
}

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

.event-actions .button {
  min-height: 38px;
  padding: 10px 13px;
  font-size: 13px;
}

.process-band {
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding-top: 58px;
}

.process-list li:not(:last-child)::after {
  position: absolute;
  top: 22px;
  right: -18px;
  color: var(--blue);
  content: "→";
  font-weight: 800;
}

.process-list span {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 850;
}

.process-list h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 820;
}

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

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--mist) 0%, var(--white) 70%);
}

.page-hero-inner {
  display: flex;
  min-height: 238px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 46px 0;
}

.page-hero h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb span::before {
  margin-right: 9px;
  color: var(--line-strong);
  content: "/";
}

.event-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}

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

.event-list {
  display: grid;
  gap: 18px;
}

.event-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
}

.event-row-image {
  min-height: 190px;
}

.event-row-image-poster {
  display: grid;
  min-height: 390px;
  padding: 14px;
  place-items: center;
  background: linear-gradient(135deg, #f6fafc 0%, #eef4f1 58%, #f8eee8 100%);
}

.event-row-image-poster img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(7, 27, 69, 0.18));
}

.event-row-image-poster .date-badge {
  display: none;
}

.event-row-image-poster .status-pill {
  top: auto;
  bottom: 12px;
}

.event-row-body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.event-row-body p {
  margin: 0;
  color: var(--muted);
}

.event-row-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-type {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-hero {
  padding: 52px 0 82px;
  background: linear-gradient(180deg, var(--mist) 0%, var(--white) 100%);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: end;
}

.detail-event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas:
    "title sidebar"
    "main sidebar";
  gap: 28px;
  align-items: start;
}

.detail-title {
  grid-area: title;
  padding-bottom: 6px;
}

.detail-title h1 {
  max-width: 880px;
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.14;
}

.detail-title p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
}

.detail-facts {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
}

.detail-facts div {
  display: grid;
  gap: 2px;
}

.detail-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.detail-content {
  padding: 42px 0 82px;
}

.detail-main {
  grid-area: main;
  min-width: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-main-image {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: var(--radius);
  background: var(--sea-mist);
  box-shadow: var(--shadow);
}

.detail-main-image img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.content-block {
  margin-bottom: 34px;
}

.content-block h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 26px;
  font-weight: 700;
}

.content-block p {
  margin: 0;
  color: var(--muted);
}

.topic-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  display: flex;
  gap: 10px;
  color: var(--ink);
}

.topic-list li::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  margin-top: 9px;
  background: var(--blue);
  content: "";
}

.archive-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.detail-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  grid-area: sidebar;
  display: grid;
  gap: 24px;
  align-self: start;
}

.detail-sidebar .archive-panel {
  position: static;
}

.archive-panel .button {
  width: 100%;
  margin-top: 10px;
}

.map-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 12px;
  color: var(--muted);
}

.contact-list li > span:first-child {
  grid-row: span 2;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.1;
}

.contact-list strong {
  color: var(--navy);
}

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

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

.form-row {
  display: grid;
  gap: 7px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  padding: 12px 13px;
  line-height: 1.45;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.checkbox-label a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.contact-form .checkbox-label input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 94, 203, 0.12);
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status:not(:empty) {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  padding: 11px 13px;
}

.form-status.is-success {
  border-color: rgba(23, 105, 58, 0.24);
  background: #edf8f1;
  color: #17693a;
  font-weight: 800;
}

.form-status.is-error {
  border-color: rgba(180, 35, 24, 0.25);
  background: #fff1ef;
  color: #b42318;
  font-weight: 800;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.narrow-page {
  max-width: 920px;
}

.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.06);
  padding: 30px;
}

.policy-updated {
  margin-top: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.policy-section {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.policy-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.policy-section p {
  color: var(--muted);
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 50px;
  padding: 54px 0 42px;
}

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand-mark {
  width: 148px;
  height: 94px;
  border-radius: 6px;
  background-position: center;
}

.brand-footer {
  margin-bottom: 18px;
}

.site-footer p {
  max-width: 330px;
  margin: 0 0 8px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 15px;
  font-weight: 850;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 13px;
}

.financial-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom .financial-links a {
  display: inline;
  margin: 0;
  color: var(--white);
  font-weight: 800;
}

.footer-bottom .financial-links a:hover {
  color: #9ee1ff;
}

.archive-page {
  background: var(--mist);
}

.archive-document {
  max-width: 900px;
  margin: 34px auto 80px;
  overflow: hidden;
}

.archive-document-header {
  padding: 34px;
  background: linear-gradient(135deg, var(--navy), #0b4a91);
  color: var(--white);
}

.archive-document-header h1 {
  margin: 0 0 10px;
  font-family: var(--heading-font);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
}

.archive-document-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.archive-document-body {
  padding: 34px;
}

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

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

.program-table th {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program-note {
  margin: 22px 0 0;
  color: var(--muted);
}

.eyebrow,
.hero-kicker {
  margin: 0 0 10px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-stats {
  display: grid;
  max-width: 560px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-stats div {
  border-left: 1px solid var(--line-strong);
  padding-left: 16px;
}

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

.hero-stats strong {
  color: var(--navy);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.button-outline-warm {
  border-color: rgba(184, 109, 74, 0.7);
  color: var(--terracotta);
}

.button-outline-warm:hover {
  border-color: var(--terracotta);
  color: #974f31;
}

.event-dashboard-section {
  position: relative;
  z-index: 2;
  margin-top: -48px;
  padding-bottom: 48px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--white) 40%);
}

.event-dashboard {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  padding: 24px;
}

.dashboard-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.dashboard-events {
  min-height: 280px;
}

.notice.compact {
  margin-top: -4px;
  margin-bottom: 18px;
}

.date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  min-width: 62px;
  place-items: center;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 9px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(7, 27, 69, 0.18);
}

.date-badge strong {
  font-size: 17px;
  font-weight: 850;
  line-height: 1;
}

.date-badge span {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.date-badge small {
  font-size: 11px;
  font-weight: 750;
  opacity: 0.85;
}

.date-badge-year {
  min-width: 68px;
}

.date-badge-year strong {
  font-size: 15px;
}

.date-badge-year span {
  font-size: 10px;
}

.status-pill {
  left: auto;
  right: 12px;
}

.status-pill.archive {
  background: rgba(184, 109, 74, 0.96);
}

.status-pill.upcoming {
  background: rgba(7, 94, 203, 0.92);
}

.status-inline {
  display: inline-flex;
  margin: 12px 0 14px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.status-inline.archive {
  background: #fff0e9;
  color: var(--terracotta);
}

.status-inline.upcoming {
  background: #eaf4ff;
  color: var(--blue);
}

.event-card .event-type {
  display: block;
  margin-bottom: 8px;
}

.event-meta span {
  display: grid;
  gap: 1px;
}

.event-meta strong {
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.archive-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.05);
  padding: 18px;
}

.filter-group,
.select-filter {
  display: grid;
  gap: 8px;
}

.filter-label,
.select-filter span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.select-filter select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  padding: 9px 12px;
  font-weight: 750;
}

.clear-filters {
  min-height: 42px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 850;
}

.event-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.archive-summary-section {
  padding-bottom: 42px;
  background: var(--mist);
}

.section-compact-top {
  padding-top: 34px;
}

.archive-hero {
  background: linear-gradient(135deg, #f3fbff 0%, #ffffff 62%, #fff8f3 100%);
}

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

.archive-year-grid-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.year-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.06);
}

.year-card:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.year-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sea-mist);
}

.year-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year-card-media-poster {
  padding: 10px;
  background: linear-gradient(135deg, #f6fafc 0%, #eef4f1 58%, #f8eee8 100%);
}

.year-card-media-poster img {
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(7, 27, 69, 0.14));
}

.year-card-media strong {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 5px;
  background: var(--terracotta);
  color: var(--white);
  padding: 6px 9px;
  font-weight: 850;
}

.year-card-body {
  display: grid;
  gap: 4px;
  padding: 15px 16px 17px;
}

.year-card-body span {
  color: var(--navy);
  font-weight: 850;
}

.year-card-body small {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--mist);
  padding: 26px;
}

.empty-state h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.empty-state p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

.service-detail {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.05);
  padding: 24px;
}

.service-detail-accent {
  background: linear-gradient(135deg, #fffaf7 0%, #f3fbff 100%);
}

.service-number {
  width: max-content;
  border-bottom: 2px solid var(--terracotta);
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
}

.service-detail h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
}

.service-detail p {
  margin: 0;
  color: var(--muted);
}

.deliverables-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deliverables-list li {
  position: relative;
  padding-left: 17px;
  color: var(--ink);
  font-size: 14px;
}

.deliverables-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

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

.workflow-grid div {
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}

.workflow-grid strong {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 850;
}

.workflow-grid h3 {
  margin: 6px 0 8px;
  color: var(--navy);
  font-size: 18px;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #0c4b91);
  color: var(--white);
  padding: 34px;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0 0 8px;
  font-family: var(--heading-font);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  line-height: 1.16;
}

.cta-band p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .eyebrow {
  color: #9ee1ff;
}

.cms-body {
  min-height: 100vh;
  background: var(--mist);
}

.cms-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.cms-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cms-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--navy);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 850;
}

.cms-nav a.is-active,
.cms-nav a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.cms-main {
  padding: 42px 0 76px;
}

.cms-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.cms-page-head h1,
.cms-login-panel h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.cms-page-head p,
.cms-login-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

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

.cms-login-panel {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 34px;
}

.cms-login-panel .brand-mark {
  margin-bottom: 16px;
}

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

.cms-form {
  margin-top: 24px;
}

.cms-form label,
.cms-form-grid label {
  display: grid;
  gap: 7px;
}

.cms-form span,
.cms-form-grid span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cms-form input,
.cms-form-grid input,
.cms-form-grid select,
.cms-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.cms-form input:focus,
.cms-form-grid input:focus,
.cms-form-grid select:focus,
.cms-form-grid textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 94, 203, 0.12);
}

.cms-alert {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 750;
}

.cms-alert-success {
  border-left: 4px solid var(--blue);
}

.cms-alert-error {
  border-left: 4px solid var(--terracotta);
  background: #fff8f5;
}

.cms-alert-warning {
  border-left: 4px solid #d7a320;
  background: #fffaf0;
}

.cms-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cms-stats div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
}

.cms-stats strong,
.cms-stats span {
  display: block;
}

.cms-stats strong {
  color: var(--navy);
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.cms-stats span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.cms-table-wrap,
.cms-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.05);
}

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

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

.cms-table th {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cms-table td > strong,
.cms-table td > span {
  display: block;
}

.cms-table td > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

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

.cms-table-actions .button {
  min-height: 36px;
  padding: 9px 12px;
  font-size: 12px;
}

.cms-inline-form {
  margin-top: 10px;
}

.cms-inline-form .button {
  min-height: 34px;
  padding: 8px 11px;
  font-size: 12px;
}

.cms-chip {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 3px 4px 3px 0;
  background: var(--mist);
  color: var(--navy);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.cms-chip-draft {
  border-color: rgba(184, 109, 74, 0.45);
  background: #fff3ec;
  color: var(--terracotta);
}

.cms-chip-warn {
  border-color: rgba(215, 163, 32, 0.45);
  background: #fff8df;
  color: #81600f;
}

.cms-editor {
  display: grid;
  gap: 0;
}

.cms-editor-section {
  border-bottom: 1px solid var(--line);
  padding: 24px;
}

.cms-editor-section h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

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

.cms-span-2 {
  grid-column: 1 / -1;
}

.cms-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
}

.cms-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.05);
  padding: 20px;
}

.cms-upload-panel label {
  display: grid;
  gap: 8px;
}

.cms-upload-panel span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cms-upload-panel input[type="file"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 11px;
}

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

.cms-media-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 27, 69, 0.05);
}

.cms-media-preview {
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  background: var(--sea-mist);
  color: var(--navy);
  font-weight: 850;
}

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

.cms-media-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.cms-media-body strong {
  color: var(--navy);
  overflow-wrap: anywhere;
}

.cms-media-body small {
  color: var(--muted);
}

.cms-media-body code {
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
  padding: 8px;
  font-size: 12px;
}

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

.cms-media-actions form {
  margin: 0;
}

.cms-media-actions .button {
  min-height: 36px;
  padding: 9px 12px;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(24px, 1fr) minmax(300px, 520px) minmax(380px, 1fr) minmax(24px, 1fr);
  }

  .service-grid,
  .process-list,
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .archive-year-grid,
  .archive-year-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-controls {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .clear-filters {
    justify-self: start;
  }

  .service-item {
    border-bottom: 1px solid var(--line);
  }

  .service-item:nth-child(2n) {
    border-right: 0;
  }

  .service-item:last-child {
    border-bottom: 0;
  }

  .process-list li:not(:last-child)::after {
    display: none;
  }

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

@media (max-width: 840px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .language-switch {
    margin-left: 0;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 44px;
    padding: 0 10px;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero-copy {
    order: 2;
    width: min(100% - 28px, var(--container));
    margin-inline: auto;
    padding: 22px 0 28px;
  }

  .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 0.98;
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.52;
  }

  .hero-media {
    order: 1;
    min-height: 220px;
  }

  .hero-media::before {
    display: none;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading-row,
  .page-hero-inner,
  .event-row-footer,
  .dashboard-header,
  .cta-band {
    align-items: start;
    flex-direction: column;
  }

  .event-grid,
  .service-grid,
  .process-list,
  .footer-grid,
  .contact-layout,
  .detail-event-layout,
  .detail-hero-grid,
  .detail-layout,
  .archive-year-grid,
  .archive-year-grid-compact,
  .service-detail-grid,
  .workflow-grid,
  .event-meta-row,
  .archive-controls {
    grid-template-columns: 1fr;
  }

  .event-dashboard-section {
    margin-top: -24px;
    padding-bottom: 28px;
  }

  .event-dashboard {
    padding: 18px;
  }

  .dashboard-header {
    gap: 8px;
  }

  .service-item,
  .service-item:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-row {
    grid-template-columns: 1fr;
  }

  .event-row-image {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .event-row-image-poster {
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .detail-event-layout {
    grid-template-areas:
      "title"
      "sidebar"
      "main";
  }

  .detail-sidebar {
    position: static;
  }

  .archive-panel {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .workflow-grid div {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
    padding-left: 0;
  }

  .cms-page-head,
  .cms-header-inner {
    align-items: start;
    flex-direction: column;
  }

  .cms-form-grid,
  .cms-stats,
  .cms-media-grid,
  .cms-upload-panel {
    grid-template-columns: 1fr;
  }

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

  .cms-table {
    min-width: 780px;
  }
}

@media (max-width: 520px) {
  .brand-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .brand-mark {
    width: 104px;
    height: 58px;
  }

  .site-footer .brand-mark {
    width: 136px;
    height: 86px;
  }

  .hero-actions,
  .event-actions {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
  }

  .button {
    width: 100%;
  }

  .filter-button,
  .select-filter select,
  .clear-filters {
    width: 100%;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-hero-inner {
    min-height: 210px;
  }

  .event-row-body,
  .contact-form,
  .detail-card,
  .service-detail {
    padding: 18px;
  }

  .cta-band {
    padding: 24px;
  }

  .archive-document-header,
  .archive-document-body {
    padding: 24px;
  }
}
