/* Shared public-site navigation, footer and reading layouts. */
:where(a, button, input, summary):focus-visible {
  outline: 3px solid #15803d;
  outline-offset: 4px;
}
.site-header :where(a, button, input, summary):focus-visible {
  outline-color: #fbbf24;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #15803d;
  border-bottom: 1px solid rgba(231, 229, 228, .9);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
}
.site-header .container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-header .header-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 0;
}
.site-header .brand, footer .brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.site-header .brand-mark, footer .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #16a34a;
  color: white;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .22);
}
.site-header .brand-text, footer .brand-text { font-family: 'Fraunces', Georgia, serif; font-size: 24px; letter-spacing: -.02em; }
.site-header .brand-mark { width: 48px; height: 48px; font-size: 22.5px; flex-shrink: 0; }
.site-header .brand-text { color: white; font-size: 30px; line-height: 48px; }
footer .brand-text { color: #15803d; }
.site-header .nav { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.site-header .nav a {
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.site-header .nav a:hover { background: #f6fbf8; color: #15803d; box-shadow: none; transform: none; }
.site-header .uid-form { display: flex; align-items: center; gap: 10px; width: auto; margin: 0; }
.site-header .uid-text { color: white; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; min-width: 62px; }
.site-header .uid-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  padding: 6px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(28, 25, 23, .05);
}
.site-header .uid-input {
  width: 118px;
  min-width: 0;
  flex: 1;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c1917;
  background: white;
  box-shadow: none;
}
.site-header .uid-input::placeholder { color: #78716c; letter-spacing: .04em; }
.site-header .uid-input:focus-visible { outline: 3px solid #15803d; outline-offset: 1px; box-shadow: none; }
.site-header .uid-submit {
  background: #15803d;
  color: white;
  border: 0;
  padding: 8px 11px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.site-header .uid-submit:hover { background: #166534; }
.site-header .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.site-header .account-link { color: white; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 8px 0; }
.site-header .account-link:hover { text-decoration: underline; }
.site-header .language-switcher { position: relative; }
.site-header .language-switcher > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  list-style: none;
}
.site-header .language-switcher > summary::-webkit-details-marker { display: none; }
.site-header .language-switcher > summary:hover { background: rgba(255, 255, 255, .12); }
.site-header .language-switcher svg { width: 22px; height: 22px; }
.site-header .language-options {
  position: absolute;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 6px;
  width: 90px;
  list-style: none;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px rgba(28, 25, 23, .15);
  z-index: 1001;
}
.site-header .language-options a { display: block; padding: 8px 12px; border-radius: 6px; color: #1c1917; font-size: 14px; font-weight: 700; }
.site-header .language-options a:hover, .site-header .language-options a[aria-current] { background: #eef7f1; color: #15803d; }
.site-header .language-options a:focus-visible { outline-color: #15803d; outline-offset: 0; }
.site-header .menu-toggle { display: none; }
footer { padding: 28px 0 48px; background: white; border-top: 1px solid #e7e5e4; }
footer .container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
footer .footer-brand p, footer a, footer .footer-note { color: #44403c; font-size: 15px; }
footer .footer-links a { transition: color .2s; }
footer .footer-links a:hover { color: #15803d; text-decoration: underline; }
footer .footer-links h4 { margin: 0 0 14px; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: #6b7280; }
footer .footer-links ul { list-style: none; padding: 0; margin: 0; }
footer .footer-links li { margin-bottom: 10px; }
footer .footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e7e5e4; }
section[id], article[id], h2[id] { scroll-margin-top: 96px; }
.recovery-example { flex-direction: column; gap: 12px; }
.example-caption { margin: 0; color: #6b7280; font-size: 13px; text-align: center; }
.notification-note { color: #6b7280; font-size: 14px; }
.faq-intro { padding: 32px; border: 1px solid #e7e5e4; border-radius: 22px; background: #f6fbf8; margin-bottom: 28px; }
.faq-intro h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(30px, 4vw, 44px); margin: 24px 0 12px; line-height: 1.15; }
.faq-intro .notice { margin-top: 0; }
.faq-intro .subtitle { max-width: 65ch; }
details.faq { border: 1px solid #e7e5e4; border-radius: 16px; margin: 12px 0; background: white; overflow: hidden; }
details.faq > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; cursor: pointer; list-style: none; background: white; border: 0; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary h3 { margin: 0; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.5; color: #1c1917; }
details.faq > summary::after { content: '+'; position: static; font-size: 22px; color: #15803d; flex-shrink: 0; }
details.faq[open] > summary { background: #f6fbf8; border-bottom: 1px solid #e7e5e4; }
details.faq[open] > summary::after { content: '−'; }
details.faq > .answer { padding: 16px 18px 18px; line-height: 1.7; }
.contact-page { max-width: 960px; margin: 0 auto; padding: 52px 24px 72px; }
.contact-page h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.contact-intro { margin-bottom: 28px; }
.contact-intro p { color: #44403c; font-size: 18px; margin: 0 0 18px; }
.contact-guidance { margin: 0; padding-left: 22px; color: #44403c; }
.contact-guidance li { margin-bottom: 8px; }
.contact-guidance a { color: #15803d; font-weight: 700; text-decoration: underline; }
.contact-page .card { padding: 28px; }
.contact-page .card-list { margin-top: 0; }
.legal-shell > .container { max-width: 940px; }
.legal-body { max-width: 780px; margin: 0 auto; padding: 8px 28px 32px; line-height: 1.75; }
.legal-body .legal-section p, .legal-body .legal-section li { line-height: 1.75; }
.legal-meta { line-height: 1.65; }
.legal-toc { padding: 24px 28px; border-bottom: 1px solid #e7e5e4; }
.legal-toc h2 { font-family: 'Fraunces', Georgia, serif; font-size: 24px; margin: 0 0 16px; }
.legal-toc ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.legal-toc a { color: #15803d; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) {
  .site-header .header-row { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; min-height: 0; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; gap: 8px; }
  .site-header .uid-form { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; width: 100%; }
  .site-header .uid-text { text-align: left; min-width: 62px; }
  .site-header .uid-box { flex: 1; max-width: 340px; }
  .site-header .uid-input { width: 100%; }
  .site-header .nav { display: none; grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; flex-wrap: wrap; gap: 4px; padding: 4px 0; }
  .site-header .nav.is-open { display: flex; }
  .site-header .menu-toggle { display: flex; align-items: center; justify-content: center; background: transparent; color: white; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; width: 34px; height: 34px; padding: 6px; cursor: pointer; }
  .site-header .menu-toggle svg { width: 20px; height: 20px; }
  footer .footer-grid { grid-template-columns: 1fr; }
  section[id], article[id], h2[id] { scroll-margin-top: 140px; }
}
@media (max-width: 760px) {
  .site-header .container, footer .container { width: min(1200px, calc(100% - 20px)); }
  .site-header .header-row { padding: 10px 0; }
  .site-header .brand { gap: 8px; }
  .site-header .header-actions { gap: 6px; }
  .site-header .account-link { font-size: 13px; }
  .site-header .language-switcher > summary { width: 30px; height: 34px; padding: 4px; }
  .site-header .uid-box { max-width: 290px; }
  .faq-intro { padding: 22px; }
  .contact-page { padding: 32px 16px 48px; }
  .contact-page .card { padding: 16px; }
  .contact-page .contact-row { padding: 16px; }
  .legal-toc { padding: 22px 20px; }
  .legal-toc ul { grid-template-columns: 1fr; }
  .legal-body { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.site-header .language-options a{display:flex;align-items:center;gap:9px}
.language-flag{width:24px;height:16px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
/* Code entry uses a soft background for hover and focus instead of an outline. */
.site-header .uid-input,
.site-header .uid-input:focus,
.site-header .uid-input:focus-visible{border:0;outline:none;box-shadow:none}
.site-header .uid-input:hover,
.site-header .uid-input:focus{background:#dceee2}

/* Free digital-tag choices: pointer, keyboard, and touch access. */
.digital-tag-menu { position: relative; display: inline-block; }
.digital-tag-options { display: none; position: absolute; bottom: 100%; left: 0; z-index: 100; width: 320px; max-width: calc(100vw - 40px); padding: 8px; background: white; border: 1px solid #bbf7d0; border-radius: 14px; box-shadow: 0 8px 24px rgba(28,25,23,.15); text-align: left; }
.digital-tag-menu:hover .digital-tag-options, .digital-tag-menu:focus-within .digital-tag-options, .digital-tag-menu.is-open .digital-tag-options { display: block; }
.digital-tag-options a { display: block; padding: 12px; margin: 4px 0; border: 1px solid #15803d; border-radius: 10px; background: #f0fdf4; color: #15803d; text-align: center; font-size: 14px; font-weight: 600; transition: background .2s, color .2s; }
.digital-tag-audience { display: block; font-size: 13px; font-weight: 500; }
.digital-tag-action { display: block; font-size: 16px; font-weight: 800; }
.digital-tag-options a:hover, .digital-tag-options a:focus-visible { background: #15803d; color: white; }
