@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-black.woff2") format("woff2");
  font-display: swap;
  font-weight: 900;
}
:root {
  --ink: #143a34;
  --secondary: #416058;
  --brand: #3fae9d;
  --tint: #eff7f4;
  --line: #d4e2dc;
  --control: #677e77;
  color: var(--ink);
  background: white;
  font: 400 106.25% / 1.55 Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #257b6e; outline-offset: 4px; }
.wrap { width: min(100% - 2.5rem, 44rem); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-160%); z-index: 20; background: white; padding: .6rem; }
.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 5rem; }
.masthead a { display: inline-flex; min-height: 44px; align-items: center; }
.masthead img { max-width: 100%; height: auto; display: block; }
.masthead a:last-child { font-size: .88rem; text-align: right; }
h1 { margin: 2rem 0 1.3rem; font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1.1; font-weight: 900; letter-spacing: -.035em; }
h2 { margin: 0 0 .45rem; line-height: 1.25; font-weight: 900; font-size: 1.5rem; }
small { display: block; color: var(--secondary); font-size: .86rem; font-weight: 400; }
.guard-panel { border: 1px solid var(--line); border-left: .3rem solid var(--brand); border-radius: .6rem; background: var(--tint); }
summary, .external { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 52px; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.guard-panel summary { padding: .8rem 1rem; font-size: 1.2rem; }
.indicator { display: inline-block; flex: 0 0 .62rem; width: .62rem; height: .62rem; border-bottom: 2px solid; border-right: 2px solid; transform: rotate(45deg); margin: 0 .25rem .25rem; }
details[open] > summary .indicator { transform: rotate(225deg); margin-bottom: -.2rem; }
.guard-body { padding: 0 1rem 1rem; }
.guard-actions-top { margin-bottom: .65rem; }
.guard-actions-top:has(> [hidden]) { display: none; }
.guard-rows { list-style: none; padding: 0; margin: 0; }
.guard-rows li { display: grid; gap: .12rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.guard-detail { color: var(--secondary); font-size: .91rem; }
.guard-actions, .form-actions, .source-links { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.guard-actions a, .guard-rows a, .source { display: inline-flex; align-items: center; min-height: 44px; }
.tool-group { margin-top: 2rem; }
.tool-row { border-bottom: 1px solid var(--line); }
.tool-row > summary, .external { padding: .55rem .1rem; font-weight: 700; }
.external { text-decoration: none; }
.external:hover > span:first-child { text-decoration: underline; }
.tool-body { max-width: 34rem; padding: .1rem .1rem .85rem; }
.tool-body p { margin: .55rem 0; }
form { display: grid; max-width: 28rem; gap: .38rem; margin-block: 1rem .5rem; }
label { font-weight: 700; margin-top: .35rem; display: block; }
.input-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
input, select, button { font: inherit; color: inherit; }
input, select { background: white; border: 1px solid var(--control); border-radius: .35rem; min-height: 44px; min-width: 0; width: 100%; padding: .35rem .65rem; }
button { min-height: 44px; padding: .45rem .85rem; background: var(--ink); color: white; font-weight: 700; border: 1px solid var(--ink); border-radius: .35rem; width: fit-content; cursor: pointer; }
form > button, .form-actions { margin-top: .55rem; }
button.secondary { color: var(--ink); background: white; }
.result { padding: .65rem .85rem; border-left: 3px solid var(--brand); background: var(--tint); font-weight: 700; }
.result[data-error] { border-color: #963b29; }
figure { margin: .5rem 0; }
canvas { display: block; width: 100%; height: auto; }
figcaption, .source, .credits { font-size: .86rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 3rem; margin-bottom: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 360px) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead img { width: 130px; }
}

.title-line { display:flex; align-items:center; justify-content:space-between; gap:1rem }
.title-line button { font-size:.85rem }
.finder { margin:1.55rem 0 1.15rem }
.finder label { font-size:1.15rem; margin-bottom:.35rem }
.finder input { min-height:48px }
#find-status, #lang-note, .editorial { font-size:.87rem; color:var(--secondary) }
.topic { border-bottom:1px solid var(--line); scroll-margin-top:1rem }
.topic > summary { padding:.85rem .1rem }
.topic h2, .tool-row h3 { margin:0; line-height:1.35 }
.topic h2 { font-size:1.22rem }
.tool-row h3 { font-size:1rem }
.members { padding:0 .2rem .7rem .75rem; border-left:2px solid var(--line) }
.members .tool-row:last-child { border-bottom:0 }
.tool-row { scroll-margin-top:.75rem }
.tool-body { max-width:100% }
.tool-body a, .permalink { display:inline-flex; align-items:center; min-height:44px; margin-right:.75rem }
.permalink { font-size:.82rem; color:var(--secondary) }
.interactive { display:grid; gap:.45rem; max-width:32rem; margin:1rem 0 }
.interactive button { margin:.25rem 0 }
.interactive fieldset { min-width:0; margin:.4rem 0; border:1px solid var(--line); border-radius:.4rem; padding:.75rem }
.tick { display:flex; align-items:center; gap:.7rem; font-weight:400; min-height:44px; cursor:pointer }
.tick input { width:1.2rem; min-height:1.2rem; height:1.2rem; flex-shrink:0; accent-color:var(--ink) }
.phones { display:grid }
.editorial { margin-top:1.6rem }
#bp-rows summary { font-weight:700; border-bottom:1px solid var(--line) }
.bp-pair { display:grid; grid-template-columns:1rem 1fr 1fr; align-items:center; gap:.4rem; margin:.3rem 0 }
#lakua-print { display:none }
@media print {
  body:has(#lakua-print) > :not(#lakua-print) { display:none !important }
  #lakua-print { display:block; font:11pt/1.35 Arial,sans-serif; color:black; background:white }
  #lakua-print h1 { font-size:18pt }
  #lakua-print table { width:100%; border-collapse:collapse; table-layout:fixed }
  #lakua-print th, #lakua-print td { border:1px solid #888; padding:.3em; text-align:left; overflow-wrap:anywhere }
  #lakua-print tr { break-inside:avoid }
  #lakua-print.compact-card { width:85mm; max-width:100%; border:1px dashed #777; padding:3mm; font-size:8pt }
  #lakua-print.compact-card h1 { font-size:12pt }
}

.lakua-intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  place-items: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity .52s cubic-bezier(.22, 1, .36, 1), visibility .52s;
  cursor: pointer;
}
html.intro-active .lakua-intro {
  display: grid;
}
html.intro-active body {
  overflow: hidden;
}
.lakua-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.lakua-intro-stage {
  display: grid;
  place-items: center;
  width: min(92vw, 34rem);
  transform: scale(1);
  transition: transform .52s cubic-bezier(.22, 1, .36, 1);
}
.lakua-intro.is-leaving .lakua-intro-stage {
  transform: scale(1.06);
}
.lakua-intro img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.intro-skip {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--secondary);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .01em;
  transition: color .2s, border-color .2s, background .2s, opacity .3s;
}
.intro-skip:hover {
  color: var(--ink);
  border-color: var(--brand);
  background: var(--tint);
}
html.intro-active .masthead,
html.intro-active main,
html.intro-active .footer {
  opacity: 0;
  transform: translateY(10px);
}
html.intro-reveal .masthead,
html.intro-reveal main,
html.intro-reveal .footer {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .lakua-intro { display: none !important; }
  html.intro-active .masthead,
  html.intro-active main,
  html.intro-active .footer { opacity: 1; transform: none; }
}
