/* Shared styles for every Sikejar page. Page specific styles live inline in each HTML file. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #172240;
  --ink-soft: #4a5578;
  --muted: #7a84a3;
  --line: #e3e8f4;
  --bg: #fffbf5;
  --bg-alt: #f1f5ff;
  --white: #ffffff;

  --primary: #3366e0;
  --primary-dark: #2a52bf;
  --primary-soft: #e6eeff;
  --cta: #0e8247;
  --cta-dark: #0a6537;
  --cta-soft: #e3f5ea;
  --footer: #2b7a57;
  --footer-text: #e3f3ea;
  --sun: #ffc83d;
  --sun-soft: #fff4d6;
  --coral: #ff6b6b;
  --coral-soft: #ffe5e5;
  --mint: #22b893;
  --mint-soft: #ddf7ef;
  --sky: #3d9bff;
  --sky-soft: #e1f0ff;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(23, 34, 64, 0.06);
  --shadow: 0 12px 32px -12px rgba(23, 34, 64, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(51, 102, 224, 0.22);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow svg {
  width: 16px;
  height: 16px;
}

.eyebrow.sun { background: var(--sun-soft); color: #9a6a00; }
.eyebrow.mint { background: var(--mint-soft); color: #11795f; }
.eyebrow.coral { background: var(--coral-soft); color: #c23c3c; }

.highlight {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.08em;
  height: 0.38em;
  background: var(--sun);
  border-radius: 6px;
  z-index: -1;
  transform: rotate(-1deg);
}

.text-primary { color: var(--primary); }
.text-cta { color: var(--cta); }
.muted { color: var(--muted); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--cta);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(14, 130, 71, 0.6);
}

.btn-primary:hover {
  background: var(--cta-dark);
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(255, 170, 0, 0.7);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Green ring with a white fill that turns pale green on hover. */
.btn-outline {
  background: var(--white);
  border-color: var(--cta);
  color: var(--cta-dark);
}

.btn-outline:hover {
  background: var(--cta-soft);
  color: var(--cta-dark);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 245, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  color: var(--cta-dark);
  background: var(--cta-soft);
}

.nav-links a.active {
  color: var(--cta-dark);
  background: var(--cta-soft);
  box-shadow: inset 0 0 0 1.5px rgba(14, 130, 71, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Cards and grids */

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card.hoverable:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d3ddf3;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.icon-badge.sun { background: var(--sun-soft); color: #c58a00; }
.icon-badge.coral { background: var(--coral-soft); color: var(--coral); }
.icon-badge.mint { background: var(--mint-soft); color: var(--mint); }
.icon-badge.sky { background: var(--sky-soft); color: var(--sky); }

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

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--mint-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322b893' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 13px no-repeat;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--ink-soft);
}

.pill.mint { background: var(--mint-soft); color: #11795f; }
.pill.sun { background: var(--sun-soft); color: #9a6a00; }
.pill.coral { background: var(--coral-soft); color: #c23c3c; }
.pill.sky { background: var(--sky-soft); color: #1f6fc4; }
.pill.primary { background: var(--primary-soft); color: var(--primary); }

/* Page hero used by inner pages */

.page-hero {
  position: relative;
  padding: 88px 0 72px;
  text-align: center;
  overflow: hidden;
}

.page-hero p.lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.18rem;
  color: var(--ink-soft);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

/* CTA band */

/* Full-width yellow strip that sits directly on top of the footer. */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #fff6d9 0%, #ffe9a8 55%, #ffd977 100%);
}

.cta-band {
  position: relative;
  padding: 72px 0;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta-band h2 {
  color: var(--ink);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0;
}

.cta-band .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cta-band .btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(23, 34, 64, 0.12);
  color: var(--ink);
}

.cta-band .btn-ghost:hover {
  background: var(--white);
  border-color: var(--cta);
  color: var(--cta-dark);
}

.cta-band .deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--footer);
  color: var(--footer-text);
  padding: 72px 0 32px;
  margin-top: 96px;
}

/* Removes the gap when a page ends with the yellow strip, so the strip and footer join. */
body:has(.cta-strip) .site-footer {
  margin-top: 0;
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.fdeco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fdeco-glow {
  width: 460px;
  height: 460px;
  right: -140px;
  top: -200px;
  background: rgba(255, 255, 255, 0.07);
}

.fdeco-mint {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -170px;
  background: rgba(143, 227, 203, 0.16);
}

.fdeco-ring {
  width: 150px;
  height: 150px;
  right: -40px;
  bottom: -70px;
  border: 16px solid rgba(255, 217, 119, 0.28);
}

.fdeco-dots {
  width: 162px;
  height: 72px;
  right: 4%;
  bottom: 96px;
  border-radius: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.24) 1.6px, transparent 1.8px);
  background-size: 18px 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.site-footer .brand {
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.93rem;
}

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

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Responsive */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 0; }
  .cta-band .actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    padding: 16px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-open .nav-links a {
    padding: 12px 16px;
    font-size: 1.05rem;
  }

  .nav-links .mobile-only {
    display: block;
  }

  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 901px) {
  .nav-links .mobile-only { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 0; }
  .fdeco-dots,
  .fdeco-ring { display: none; }
  .container { width: min(var(--container), 100% - 32px); }
}

/* Legal pages */

.legal-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.legal-hero p.lead {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  padding: 56px 0 0;
  align-items: start;
}

.legal-no-toc { grid-template-columns: 1fr; }

.legal-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.legal-toc b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: toc;
}

.legal-toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
}

.legal-toc a:hover { background: var(--bg-alt); color: var(--ink); }

.legal-toc a.on {
  background: var(--primary-soft);
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 700;
}

/* Subsections stay hidden until their section is the one being read. */
.legal-toc li[data-section] > ol {
  display: none;
  margin: 2px 0 6px;
  padding: 0;
  gap: 1px;
}

.legal-toc li[data-section].open > ol { display: grid; }

.legal-toc li[data-section].open > a { color: var(--ink); }

.legal-toc ol ol a {
  padding: 6px 12px 6px 28px;
  font-size: 0.82rem;
  color: var(--muted);
}

.legal-body {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-body section {
  scroll-margin-top: 100px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px dashed var(--line);
}

.legal-body h3[id] { scroll-margin-top: 100px; }

.legal-body section:last-child { border-bottom: 0; }

.legal-body h2 {
  font-size: 1.55rem;
  color: var(--ink);
}

.legal-body h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 1.4em;
}

.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--primary); }
.legal-body strong { color: var(--ink); }
.legal-body a:not(.btn) { color: var(--primary); font-weight: 600; }

.legal-body code {
  background: var(--bg-alt);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.88em;
}

.legal-body pre {
  background: var(--ink);
  color: #eef2ff;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 1em;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}

.legal-body pre code { background: none; padding: 0; color: inherit; }

.legal-body blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.legal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.summary-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.summary-box h2 { font-size: 1.25rem; margin-bottom: 16px; }

.summary-box .grid { gap: 16px; }

.summary-box .item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  line-height: 1.55;
}

.summary-box .icon-badge {
  margin: 0;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
}

.summary-box .icon-badge svg { width: 19px; height: 19px; }

.eu-callout {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--sky-soft);
  color: var(--ink);
  margin: 0 0 1em;
}

.eu-flag {
  flex: 0 0 52px;
  width: 52px;
  height: 36px;
}

.note-box {
  background: var(--sky-soft);
  border: 1px solid #cfe4ff;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 1.4em;
  color: var(--ink-soft);
}

.note-box .note-title {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.note-box > :last-child { margin-bottom: 0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
  font-size: 0.92rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

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

.legal-table th {
  background: var(--bg-alt);
  color: var(--ink);
  font-family: var(--font-body);
}

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

/* Marks details the business still has to fill in before publishing. */
.fill {
  background: var(--sun-soft);
  border-bottom: 2px dotted #c58a00;
  color: #7a5500;
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; max-height: none; }
  .legal-toc > ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .legal-toc > ol { grid-template-columns: 1fr; }
  .legal-table { display: block; overflow-x: auto; }
}

/* Language suggestion banner (shown by site.js only when it is useful). */
.lang-banner {
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
}

.lang-banner[hidden] { display: none; }

.lang-banner .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 10px 0;
  text-align: center;
}

.lang-banner a {
  color: var(--sun);
  font-weight: 700;
}

.lang-banner a:hover { text-decoration: underline; }

.lang-banner button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  opacity: 0.7;
  padding: 0;
}

.lang-banner button svg {
  display: block;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.lang-banner button:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

@media (max-width: 640px) {
  /* Long highlighted phrases must wrap instead of being clipped by the hero.
     The underline pseudo-element only looks right on a single line. */
  .highlight { white-space: normal; }
  .highlight::after { display: none; }
}

/* Header language picker */
.locale-switcher {
  position: relative;
  display: inline-flex;
}

.locale-trigger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.locale-trigger:hover,
.locale-trigger:focus-visible,
.locale-trigger[aria-expanded="true"],
.locale-switcher.open .locale-trigger {
  border-color: var(--cta);
  background: var(--cta-soft);
}

.locale-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 60;
  min-width: 232px;
  padding: 6px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

/* Keep hover alive while the pointer crosses the gap below the trigger. */
.locale-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
}

.locale-switcher:hover .locale-menu,
.locale-switcher:focus-within .locale-menu,
.locale-switcher.open .locale-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.locale-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.locale-option.active {
  background: var(--cta-soft);
  color: var(--cta-dark);
  font-weight: 700;
}

.locale-option:hover {
  background: var(--cta-soft);
  color: var(--cta-dark);
}

.locale-trigger-icon {
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 2px;
}

.locale-flag {
  width: 22px;
  height: 15px;
  display: block;
  margin-left: auto;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .locale-trigger {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}
