:root {
  color-scheme: light;
  --ink: #1d2c2a;
  --muted: #5c6f6b;
  --teal: #0b3f3c;
  --teal-2: #16665e;
  --coral: #e95d4f;
  --gold: #c8912e;
  --mist: #eef6f2;
  --paper: #fffdfa;
  --line: #dbe5df;
  --shadow: 0 18px 50px rgba(21, 43, 40, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(233, 93, 79, 0.55);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 3.8rem;
  max-width: 16ch;
}

h2 {
  font-size: 2.1rem;
}

h3 {
  font-size: 1.28rem;
}

p {
  font-size: 1.02rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-140%);
  background: var(--paper);
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.75rem 3.5vw;
  background: rgba(255, 253, 250, 0.93);
  border-bottom: 1px solid rgba(219, 229, 223, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  color: white;
  background: var(--teal);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  overflow-wrap: anywhere;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.main-nav > a,
.condition-menu > summary,
.language-links a {
  border-radius: 8px;
  padding: 0.58rem 0.72rem;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav > a:hover,
.condition-menu > summary:hover,
.language-links a:hover {
  background: var(--mist);
}

.condition-menu {
  position: relative;
}

.condition-menu summary {
  cursor: pointer;
  list-style: none;
}

.condition-menu summary::-webkit-details-marker {
  display: none;
}

.condition-menu-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 260px;
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.condition-menu-panel a {
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.condition-menu-panel a:hover {
  background: var(--mist);
}

.domain-link {
  color: var(--teal);
  font-weight: 700;
}

.language-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding-left: 0.3rem;
  border-left: 1px solid var(--line);
}

.language-links a {
  color: var(--muted);
  font-size: 0.84rem;
}

.language-links a[aria-current="true"] {
  color: white;
  background: var(--teal);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
}

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

.nav-toggle span::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: 58svh;
  display: flex;
  align-items: center;
  padding: 4.8rem 6vw;
  color: white;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(4, 29, 28, 0.5);
  content: "";
}

.hero-content {
  position: relative;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero p {
  max-width: 690px;
  font-size: 1.15rem;
}

.eyebrow {
  margin-bottom: 0.8rem;
  color: var(--coral);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero .eyebrow {
  color: #ffd082;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0.78rem 1rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

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

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

.intro-section,
.about-band,
.notice-band,
.text-section,
.condition-grid-section,
.condition-layout,
.references-library,
.language-selector {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4.5rem 3.5vw;
}

.intro-section,
.about-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(280px, 1.3fr);
  gap: 3rem;
}

.intro-section {
  border-bottom: 1px solid var(--line);
  padding-top: 2.75rem;
}

.intro-section p,
.about-band p,
.text-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

.condition-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(21, 43, 40, 0.06);
}

.condition-card span {
  color: var(--teal-2);
  font-weight: 800;
  font-size: 0.82rem;
}

.condition-card h3 {
  margin: 0.85rem 0 0.65rem;
}

.condition-card p {
  color: var(--muted);
}

.condition-card a {
  margin-top: auto;
  color: var(--coral);
  font-weight: 800;
}

.about-band {
  background: var(--mist);
  max-width: none;
  padding-left: max(3.5vw, calc((100vw - 1180px) / 2 + 3.5vw));
  padding-right: max(3.5vw, calc((100vw - 1180px) / 2 + 3.5vw));
}

.notice-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
  color: white;
  background: var(--teal);
  border-radius: 8px;
}

.notice-band p {
  color: rgba(255, 255, 255, 0.88);
}

.notice-band h2 {
  max-width: 820px;
}

.page-hero {
  padding: 5.5rem 6vw;
  color: white;
  background: var(--teal);
}

.page-hero > div {
  max-width: 900px;
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 850px;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.88);
}

.condition-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 380px);
  gap: 3rem;
  align-items: end;
}

.condition-hero aside,
.side-panel > div,
.reference-group {
  border: 1px solid rgba(219, 229, 223, 0.8);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 30px rgba(21, 43, 40, 0.08);
}

.condition-hero aside {
  padding: 1.4rem;
  color: var(--ink);
}

.condition-hero aside span,
.condition-hero aside small {
  display: block;
  color: var(--muted);
}

.condition-hero aside strong {
  display: block;
  margin: 0.35rem 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.18;
}

.condition-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.condition-content {
  display: grid;
  gap: 1.25rem;
}

.content-block,
.references-block {
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.content-block h2,
.references-block h2 {
  font-size: 1.38rem;
  color: var(--teal);
}

.evidence-list {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.references-block ol,
.reference-group ol {
  display: grid;
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.references-block li span,
.reference-group li span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.side-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1rem;
}

.side-panel > div {
  padding: 1.1rem;
}

.side-panel h2 {
  font-size: 1.05rem;
}

.side-panel nav {
  display: grid;
  gap: 0.45rem;
}

.side-panel nav a,
.side-panel div > a {
  color: var(--teal);
  font-weight: 800;
}

.text-section {
  max-width: 880px;
}

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

.reference-group {
  padding: 1.2rem;
}

.reference-group h2 {
  font-size: 1.2rem;
}

.reference-group p {
  color: var(--muted);
}

.language-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.language-card {
  display: grid;
  gap: 0.55rem;
  min-height: 210px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}

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

.language-card strong {
  font-size: 1.2rem;
  line-height: 1.18;
}

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

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 3.5vw;
  color: rgba(255, 255, 255, 0.8);
  background: #182623;
}

.site-footer p {
  max-width: 720px;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer a {
  color: white;
}

.site-footer > div:last-child {
  display: grid;
  gap: 0.4rem;
  min-width: 180px;
}

@media (max-width: 1060px) {
  h1 {
    font-size: 3.35rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    padding: 0.75rem 3.5vw 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-nav[data-open="true"] {
    display: grid;
  }

  .main-nav > a,
  .condition-menu > summary,
  .language-links a {
    white-space: normal;
  }

  .condition-menu-panel {
    position: static;
    width: 100%;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .language-links {
    flex-wrap: wrap;
    padding-left: 0;
    border-left: 0;
  }

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

  .condition-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  h1 {
    font-size: 2.45rem;
    max-width: 14ch;
  }

  h2 {
    font-size: 1.72rem;
  }

  .site-header {
    gap: 0.75rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 70svh;
    padding: 4.5rem 5vw;
    background-position: 58% center;
  }

  .hero p,
  .page-hero p {
    font-size: 1.03rem;
  }

  .hero-actions {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .intro-section,
  .about-band,
  .notice-band,
  .text-section,
  .condition-grid-section,
  .condition-layout,
  .references-library,
  .language-selector {
    padding: 3rem 5vw;
  }

  .intro-section,
  .about-band,
  .notice-band,
  .condition-hero {
    grid-template-columns: 1fr;
  }

  .condition-grid,
  .references-library,
  .language-selector,
  .side-panel {
    grid-template-columns: 1fr;
  }

  .condition-card,
  .language-card {
    min-height: auto;
  }

  .page-hero {
    padding: 4rem 5vw;
  }

  .site-footer {
    display: grid;
  }
}
