:root {
  --ink: #17232d;
  --ink-2: #223441;
  --ink-3: #334b59;
  --teal: #079ba3;
  --teal-2: #06b7bf;
  --teal-dark: #036c72;
  --mist: #f5f8f9;
  --mist-2: #eef3f5;
  --paper: #ffffff;
  --line: rgba(23, 35, 45, 0.13);
  --line-strong: rgba(23, 35, 45, 0.22);
  --shadow: 0 18px 50px rgba(15, 30, 42, 0.12);
  --shadow-soft: 0 12px 34px rgba(15, 30, 42, 0.08);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(6, 183, 191, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafb 50%, #ffffff 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(23, 35, 45, .08);
}

.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 190px;
}

.brand img {
  width: 156px;
  height: auto;
}

.brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .35rem;
  flex-wrap: nowrap;
}

.primary-nav a {
  font-size: .92rem;
  font-weight: 650;
  color: rgba(23, 35, 45, .76);
  padding: .65rem .68rem;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(7, 155, 163, .09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 800;
  font-size: .82rem;
  background: rgba(255,255,255,.76);
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  display: block;
  position: absolute;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle {
  position: relative;
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.nav-open .menu-toggle span {
  opacity: 0;
}

.nav-open .menu-toggle::before {
  transform: rotate(45deg);
}

.nav-open .menu-toggle::after {
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .78rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 13px 32px rgba(6, 183, 191, .26);
}

.btn-secondary {
  color: var(--ink);
  background: white;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: rgba(7, 155, 163, .08);
  color: var(--teal-dark);
  border-color: rgba(7, 155, 163, .16);
}

main {
  min-height: 70vh;
}

.section,
.hero,
.page-hero {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero {
  padding: 5.2rem 0 3.4rem;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--teal-dark);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
}

h1,
h2,
h3,
.display {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0;
}

h1,
.display {
  font-size: clamp(3.1rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4.15rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  color: rgba(23, 35, 45, .72);
  margin: 1.35rem 0 0;
  max-width: 66ch;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-aside {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 510px;
  border-radius: calc(var(--radius) + 14px);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background:
    radial-gradient(circle at 72% 22%, rgba(6, 183, 191, .32), transparent 18rem),
    linear-gradient(145deg, #111e27 0%, #22333f 55%, #17232d 100%);
  color: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.07), transparent);
  transform: translateX(-60%);
  opacity: .75;
}

.hero-logo-mark {
  width: min(420px, 84%);
  margin: 2.4rem auto 1.4rem;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.2));
}

.hero-card-bottom {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  gap: 1rem;
}

.hero-card-title {
  font-family: Georgia, "Times New Roman", ui-serif, serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0;
}

.hero-card-text {
  color: rgba(255,255,255,.72);
  margin: 0;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.15rem;
}

.metric {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 1rem;
}

.metric strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
}

.metric span {
  display: block;
  margin-top: .2rem;
  color: rgba(255,255,255,.66);
  font-size: .86rem;
}

.section {
  padding: 4.7rem 0;
}

.section.compact {
  padding: 2.8rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-header .lead {
  max-width: 56ch;
  margin-top: 1rem;
}

.kicker {
  color: var(--teal-dark);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
  margin: 0 0 .75rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 2vw, 1.7rem);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(6, 183, 191, .12), transparent 70%);
  pointer-events: none;
}

.card h3,
.card h2 {
  margin-bottom: .75rem;
}

.card p {
  color: rgba(23, 35, 45, .72);
  margin: .6rem 0 0;
}

.card ul {
  margin: 1rem 0 0;
  padding: 0 0 0 1.1rem;
  color: rgba(23, 35, 45, .76);
}

.card li + li {
  margin-top: .4rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  color: var(--teal-dark);
  font-weight: 900;
}

.card-link::after {
  content: "→";
  margin-left: .45rem;
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(7,155,163,.14), rgba(6,183,191,.09));
  color: var(--teal-dark);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(7,155,163,.16);
}

.band {
  position: relative;
  overflow: hidden;
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, var(--ink), #263946);
  color: white;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(6,183,191,.26), transparent 20rem),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.10), transparent 18rem);
}

.band > * {
  position: relative;
}

.band h2,
.band h3 {
  color: #fff;
}

.band p,
.band li {
  color: rgba(255,255,255,.76);
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.page-hero {
  padding: 4.4rem 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr .42fr;
  gap: 3rem;
  align-items: end;
}

.page-hero .lead {
  max-width: 70ch;
}

.breadcrumbs {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  color: rgba(23,35,45,.56);
  font-size: .9rem;
  font-weight: 650;
}

.breadcrumbs a {
  color: var(--teal-dark);
}

.page-mark {
  justify-self: end;
  width: min(230px, 100%);
  opacity: .92;
  filter: drop-shadow(0 18px 34px rgba(15, 30, 42, .14));
}

.text-block {
  max-width: 860px;
}

.text-block p {
  color: rgba(23, 35, 45, .76);
  font-size: 1.04rem;
}

.text-block p:first-of-type {
  font-size: 1.18rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .55fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 104px;
  background: linear-gradient(160deg, #ffffff, #f4f8f9);
}

.tag-list,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}

.tag,
.filter-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(23, 35, 45, .06);
  color: rgba(23, 35, 45, .72);
  font-weight: 800;
  font-size: .82rem;
  border: 1px solid transparent;
}

.filter-btn {
  cursor: pointer;
  background: white;
  border-color: var(--line);
}

.filter-btn.active,
.filter-btn:hover {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-date {
  border-radius: 18px;
  background: rgba(7,155,163,.1);
  color: var(--teal-dark);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 950;
  line-height: 1.1;
  padding: .7rem;
}

.news-card .meta,
.event-card .meta,
.member-card .meta,
.resource-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  align-items: center;
  color: rgba(23, 35, 45, .58);
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .85rem;
}

.news-card h3,
.event-card h3,
.member-card h3,
.resource-card h3 {
  font-size: 1.45rem;
}

.news-card .category,
.event-card .category,
.resource-card .category {
  color: var(--teal-dark);
  background: rgba(7,155,163,.1);
  padding: .25rem .55rem;
  border-radius: 999px;
}

.member-card .avatar {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  margin-bottom: 1rem;
}

.clause-box,
.code-box {
  border-radius: var(--radius);
  padding: clamp(1.2rem, 2vw, 1.6rem);
  background: #101d25;
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
}

.clause-box p,
.code-box p {
  color: rgba(255,255,255,.84);
  margin: 0;
}

.clause-box strong {
  color: #fff;
}

.note {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.1rem;
  background: rgba(7,155,163,.08);
  border-radius: 0 16px 16px 0;
  color: rgba(23,35,45,.75);
}

.accordion {
  display: grid;
  gap: .75rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-button::after {
  content: "+";
  font-size: 1.35rem;
  color: var(--teal-dark);
}

.accordion-item[open] .accordion-button::after {
  content: "–";
}

.accordion-content {
  padding: 0 1.1rem 1.1rem;
  color: rgba(23,35,45,.72);
}

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

.field {
  display: grid;
  gap: .35rem;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 850;
  color: var(--ink-2);
  font-size: .92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  border-radius: 16px;
  padding: .85rem .95rem;
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(7,155,163,.55);
  box-shadow: 0 0 0 4px rgba(7,155,163,.12);
}

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

.site-footer {
  margin-top: 4rem;
  background: #101d25;
  color: white;
}

.footer-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 3.4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, .65fr);
  gap: 2rem;
}

.footer-logo {
  width: 170px;
  filter: brightness(0) invert(1) opacity(.95);
}

.footer-brand p {
  color: rgba(255,255,255,.68);
  max-width: 42ch;
}

.footer-col h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: .9rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  margin: .48rem 0;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  margin-top: 2rem;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

.empty-state {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: rgba(23, 35, 45, .05);
  border: 1px dashed var(--line-strong);
  color: rgba(23, 35, 45, .65);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

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

th {
  background: rgba(23,35,45,.04);
  color: var(--ink);
  font-weight: 950;
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 1120px) {
  .primary-nav {
    gap: .1rem;
  }
  .primary-nav a {
    font-size: .84rem;
    padding-inline: .48rem;
  }
  .brand img {
    width: 138px;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }
  .primary-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    height: calc(100vh - 82px);
    padding: 1rem;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow: auto;
  }
  .nav-open .primary-nav {
    display: flex;
  }
  .primary-nav a {
    font-size: 1rem;
    padding: 1rem;
    border-radius: 18px;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .hero,
  .page-hero,
  .band-grid,
  .split {
    grid-template-columns: 1fr;
  }
  .page-mark {
    justify-self: start;
    width: 160px;
  }
  .hero-card {
    min-height: 430px;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 74px;
  }
  .brand img {
    width: 128px;
  }
  .primary-nav {
    inset-top: 74px;
    height: calc(100vh - 74px);
  }
  .hero {
    padding-top: 3.4rem;
  }
  h1,
  .display {
    font-size: clamp(2.65rem, 15vw, 4.1rem);
  }
  h2 {
    font-size: 2.25rem;
  }
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .form-grid,
  .mini-metrics {
    grid-template-columns: 1fr;
  }
  .section-header {
    display: block;
  }
  .hero-card-bottom {
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
  }
  .hero-card {
    border-radius: 30px;
    min-height: 380px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    display: block;
  }
}
summary.accordion-button {
  list-style: none;
}
summary.accordion-button::-webkit-details-marker {
  display: none;
}
@media (max-width: 680px) {
  .primary-nav {
    inset: 74px 0 auto 0;
    height: calc(100vh - 74px);
  }
}
