@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffdf7;
  --ink: #171920;
  --muted: #4e505b;
  --line: #d7d3c9;
  --blue: #203ddb;
  --dark-blue: #172aa0;
  font-family: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
figure, p, h1, h2, h3 { margin: 0; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1280px, calc(100% - clamp(36px, 10vw, 144px))); margin-inline: auto; }

.skip-link {
  position: fixed; z-index: 10; top: 12px; left: 12px; padding: 14px 20px;
  background: var(--surface); transform: translateY(calc(-100% - 24px));
}
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.header-inner {
  min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 10px; font-size: 22px; font-weight: 850; letter-spacing: -.065em; }
.brand-tail { font-weight: 530; }
.brand-mark { background: var(--blue); border-radius: 7px; width: 30px; height: 30px; display: inline-grid; place-items: center; }
.brand-mark::before {
  content: ""; width: 15px; height: 15px; background: #fff; display: block;
  clip-path: polygon(0 0, 100% 0, 100% 27%, 27% 27%, 27% 42%, 100% 42%, 100% 100%, 0 100%, 0 73%, 73% 73%, 73% 58%, 0 58%);
  transform: skewX(-9deg);
}
.top-nav { display: flex; align-items: center; gap: clamp(15px, 2.6vw, 38px); color: var(--muted); font-size: .9rem; font-weight: 620; }
.top-nav a { padding-block: 8px; }
.top-nav a:hover, .language a:hover { color: var(--blue); }
.language { justify-self: end; position: relative; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.language summary {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px; min-height: 43px;
  border: 1px solid var(--line); border-radius: 7px; font-size: .875rem; font-weight: 660;
}
.globe { width: 15px; height: 15px; border: 1.4px solid currentColor; border-radius: 50%; position: relative; flex: 0 0 15px; }
.globe::before { content: ""; position: absolute; inset: -1.4px 3px; border: 1.2px solid currentColor; border-radius: 50%; }
.globe::after { content: ""; position: absolute; inset: 5.4px 0 auto; border-top: 1.2px solid currentColor; }
.chevron { width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); flex: 0 0 7px; }
details[open] > summary .chevron { transform: translateY(2px) rotate(225deg); }
.language-options, .category-options {
  position: absolute; z-index: 2; right: 0; padding: 6px; margin: 6px 0 0; list-style: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 18px 40px #151a3324;
}
.language-options { min-width: 165px; }
.language-options a { display: block; padding: 9px 12px; border-radius: 4px; }
.language-options a[aria-current="page"] { background: #e9edff; color: var(--dark-blue); font-weight: 760; }

.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(28px, 4vw, 67px); padding-block: clamp(46px, 6vw, 88px); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: .72rem; font-weight: 830; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.eyebrow > span { width: 8px; height: 8px; background: currentColor; flex: 0 0 8px; }
.hero h1 { font-size: clamp(3.15rem, 6.9vw, 6.65rem); line-height: .94; letter-spacing: -.09em; font-weight: 860; margin-block: 22px 24px; }
.hero h1 > span { display: block; color: var(--blue); }
.hero-lead { max-width: 33rem; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.19rem); line-height: 1.65; text-wrap: pretty; }
.hero-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  gap: 12px; border-radius: 6px; padding: 12px 17px; border: 1px solid transparent;
  font-size: .9rem; line-height: 1.3; font-weight: 750; text-align: center;
}
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--dark-blue); }
.primary:focus-visible { outline-color: var(--blue); }
.secondary { border-color: #bbb7ad; }
.secondary:hover { background: #eae6db; }
.arrow { font-family: Arial, sans-serif; font-size: 1.13em; flex: 0 0 auto; }
.hero-media { position: relative; min-width: 0; border-radius: 8px; overflow: hidden; background: #c1aa90; }
.hero-media img { aspect-ratio: 3 / 2; object-fit: cover; }
.hero-media figcaption {
  position: absolute; bottom: 12px; left: 12px; max-width: calc(100% - 24px);
  background: var(--surface); padding: 7px 10px; color: var(--ink); border-radius: 4px;
  font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

.directory { background: var(--blue); color: white; position: relative; z-index: 2; }
.directory-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(245px, .75fr); gap: clamp(26px, 6vw, 80px); align-items: center; padding-block: clamp(32px, 4.6vw, 62px); }
.directory .eyebrow { color: #e3e9ff; }
h2 { font-size: clamp(1.92rem, 3.6vw, 3.65rem); line-height: 1.02; font-weight: 820; letter-spacing: -.065em; text-wrap: balance; }
.directory h2, .guide h2 { margin-top: 11px; }
.section-lead { font-size: 1rem; line-height: 1.63; color: var(--muted); margin-top: 13px; text-wrap: pretty; }
.directory .section-lead { color: #f0f2ff; }
.category-menu { position: relative; }
.category-menu summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; min-height: 62px; background: var(--surface); color: var(--ink);
  border-radius: 6px; font-weight: 740;
}
.category-menu summary:focus-visible { outline-color: white; }
.category-options { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-options a {
  display: flex; justify-content: space-between; align-items: center; gap: 7px;
  padding: 10px 8px; min-height: 44px; border-radius: 4px; font-size: .875rem; line-height: 1.25;
  overflow-wrap: anywhere;
}
.category-options a:hover { background: #e9edff; color: var(--dark-blue); }
.category-options .arrow { color: var(--blue); }

.guide {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(30px, 6vw, 87px); padding-block: clamp(51px, 8vw, 110px);
}
.guide-media { border-radius: 8px; overflow: hidden; background: #c1aa90; }
.guide-media img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; }
.guide-steps { margin: 21px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.guide-steps li { position: relative; padding: 15px 0 14px 39px; border-top: 1px solid var(--line); counter-increment: steps; }
.guide-steps li::before {
  content: counter(steps); position: absolute; left: 0; top: 15px; width: 25px; height: 25px;
  border-radius: 50%; background: #e6ebff; color: var(--dark-blue);
  display: grid; place-items: center; font-size: .77rem; font-weight: 800;
}
.guide-steps h3 { font-size: 1.03rem; line-height: 1.3; font-weight: 800; }
.guide-steps p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-top: 4px; text-wrap: pretty; }

.faq-section { border-block: 1px solid var(--line); background: #efede5; }
.faq-inner { display: grid; grid-template-columns: .67fr 1.33fr; gap: clamp(24px, 5vw, 65px); padding-block: clamp(45px, 6vw, 81px); }
.faq-list details { border-top: 1px solid #c8c5bb; }
.faq-list details:last-child { border-bottom: 1px solid #c8c5bb; }
.faq-list summary { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 750; padding: 13px 0; }
.faq-list summary:hover { color: var(--blue); }
.faq-icon { position: relative; width: 14px; height: 14px; flex: 0 0 14px; color: var(--blue); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-list details[open] .faq-icon::after { display: none; }
.faq-list p { margin: 0 25px 17px 0; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 31px; }
.footer-inner p { color: var(--muted); font-size: .83rem; line-height: 1.5; margin-top: 10px; }
.error-page { padding-block: 75px; }
.error-page .button { margin-top: 20px; }

@media (max-width: 860px) {
  .hero { gap: 25px; }
  .hero h1 { font-size: clamp(2.75rem, 7.25vw, 4.5rem); }
  .guide { gap: 30px; }
}

@media (max-width: 670px) {
  .header-inner { grid-template-columns: 1fr auto; column-gap: 12px; min-height: 64px; }
  .top-nav { grid-row: 2; grid-column: 1 / -1; gap: 18px; min-width: 0; flex-wrap: wrap; padding-bottom: 8px; }
  .header-inner { row-gap: 3px; padding-top: 10px; }
  .language { grid-row: 1; grid-column: 2; }
  .hero, .directory-inner, .guide, .faq-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: clamp(3rem, 11.5vw, 5.2rem); margin-block: 15px 17px; }
  .hero-actions { margin-top: 20px; }
  .guide-copy { grid-row: 1; }
  .guide-media img { aspect-ratio: 3 / 2; }
  .category-options { max-height: min(330px, 52vh); overflow: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, a { transition: background-color .15s ease, color .15s ease; }
}
