/* Anchor check (anchorage app): the tool, the zone list and zone pages. Mobile first; lux.css tokens. */
.anc {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
  color: var(--lux-ink);
}
.anc *, .anc *::before, .anc *::after { box-sizing: border-box; }
.anc a { color: var(--lux-ink); text-decoration: underline; text-decoration-color: var(--lux-gold); text-underline-offset: 3px; }
.anc a:hover { color: #000; text-decoration-thickness: 2px; }
.anc a:focus-visible, .anc button:focus-visible, .anc input:focus-visible, .anc summary:focus-visible {
  outline: 3px solid var(--lux-gold);
  outline-offset: 2px;
}

.anc-h2 { margin: 36px 0 12px; font-family: var(--lux-serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.anc-h3 { margin: 22px 0 8px; font-size: 16px; font-weight: 600; }
.anc-note { margin: 12px 0 0; color: var(--lux-text-mute); font-size: 14px; line-height: 1.55; max-width: 48rem; }
.anc-help { margin: 4px 0 0; color: var(--lux-text-mute); font-size: 13px; line-height: 1.45; }
.anc-error { margin: 4px 0 0; color: #a1271b; font-size: 13px; font-weight: 600; }

.anc-warning {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--lux-ivory);
  border-left: 4px solid var(--lux-gold);
  font-size: 14px;
  line-height: 1.5;
}
.anc-warning--strong { border-left-color: #a1271b; background: #fbf1ee; }

/* The tool: form then map on phones, side by side from 900px. */
.anc-tool { display: grid; gap: 24px; }
.anc-form { min-width: 0; }
.anc-fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.anc-fieldset legend { padding: 0; margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lux-text-mute); }
.anc-two { display: grid; gap: 14px; }
.anc-field { min-width: 0; }
.anc-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.anc-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9c3b4;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px; /* keeps iOS from zooming */
  color: var(--lux-ink);
}
.anc-field.has-error input, .anc-field.has-error select { border-color: #a1271b; }
.anc-field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #c9c3b4;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--lux-ink);
}
.anc-field--gap { margin-top: 14px; }
.anc a:focus-visible, .anc select:focus-visible { outline: 3px solid var(--lux-gold); outline-offset: 2px; }
.anc-scope { margin: 0 0 20px; font-size: 15px; line-height: 1.5; max-width: 48rem; }
.anc-pick { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--lux-rule); }
.anc-pick li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--lux-rule); }
.anc-pick a { font-weight: 600; }
.anc-more { margin-top: 14px; }
.anc-more summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.anc-more[open] summary { margin-bottom: 8px; }

.anc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid var(--lux-gold);
  background: var(--lux-gold);
  color: var(--lux-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.anc .anc-btn { text-decoration: none; }
.anc-btn:hover { background: var(--lux-gold-soft); border-color: var(--lux-gold-soft); }
.anc-btn--line { background: transparent; border-color: var(--lux-ink); }
.anc-btn--line:hover { background: var(--lux-ivory); }
.anc-form > .anc-btn { width: 100%; }
.anc-locate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.anc-locate[hidden] { display: none; }
.anc-locate__status { font-size: 13px; color: var(--lux-text-mute); }

.anc-mapwrap { min-width: 0; }
.anc-map { width: 100%; height: 320px; background: #dfe6ea; border: 1px solid var(--lux-rule); }
.anc-map--wide { height: 360px; margin-bottom: 8px; }
.anc-map__help { margin-top: 8px; }
.anc-map .leaflet-container a { text-decoration: none; }

/* The verdict: big plain words. */
.anc-result { margin: 0 0 12px; }
.anc-verdict { padding: 22px 20px; border: 2px solid currentColor; }
.anc-verdict__kicker { margin: 0; font-size: 13px; color: var(--lux-ink); }
.anc-verdict__word { margin: 6px 0 0; font-family: var(--lux-serif); font-size: 34px; line-height: 1.1; font-weight: 600; }
.anc-verdict__label { margin: 10px 0 0; font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--lux-ink); max-width: 44rem; }
.anc-verdict__legal { margin: 8px 0 0; font-size: 13px; color: var(--lux-ink); }
/* Why, what to do next, the legal source: under the verdict, in that order. */
.anc-answer { max-width: 48rem; font-size: 15px; line-height: 1.55; }
.anc-answer p { margin: 0 0 8px; }
.anc-steps { margin: 0; padding-left: 22px; }
.anc-steps li + li { margin-top: 6px; }
.anc-list--wide { max-width: 48rem; font-size: 15px; line-height: 1.55; }
.anc-warning--after { margin: 16px 0 0; max-width: 48rem; }
/* What these words mean */
.anc-words { margin-top: 40px; }
.anc-glossary { display: grid; gap: 12px; margin: 0; max-width: 60rem; }
.anc-glossary div { display: grid; gap: 2px; }
.anc-glossary dt { font-weight: 600; }
.anc-glossary dd { margin: 0; font-size: 14px; line-height: 1.55; }
.anc-verdict--permitted { color: #1d6b3a; background: #eef7f0; }
.anc-verdict--restricted { color: #8a5a00; background: #fbf4e4; }
.anc-verdict--prohibited { color: #a1271b; background: #fbf1ee; }
.anc-verdict--unknown { color: #3d4757; background: #eef0f3; }

.anc-chip {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.anc-chip--permitted { color: #1d6b3a; background: #eef7f0; }
.anc-chip--restricted { color: #8a5a00; background: #fbf4e4; }
.anc-chip--prohibited { color: #a1271b; background: #fbf1ee; }
.anc-chip--unknown { color: #3d4757; background: #eef0f3; }

.anc-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.anc-rule { padding: 18px; background: #fff; border: 1px solid var(--lux-rule); border-left: 4px solid #3d4757; min-width: 0; overflow-wrap: anywhere; }
.anc-rule--permitted { border-left-color: #1d6b3a; }
.anc-rule--restricted { border-left-color: #c9a96a; }
.anc-rule--prohibited { border-left-color: #a1271b; }
.anc-rule__verdict { margin: 0 0 6px; font-size: 14px; }
.anc-rule__name { margin: 0 0 4px; font-family: var(--lux-serif); font-weight: 500; font-size: 24px; }
.anc-rule__source { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--lux-text-mute); }
.anc-rule__links { margin: 10px 0 0; font-size: 13px; }
.anc-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.anc-list li + li { margin-top: 4px; }
.anc-quote { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid var(--lux-gold); background: var(--lux-ivory); font-style: italic; font-size: 14px; line-height: 1.5; }

.anc-near { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lux-rule); }
.anc-near li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--lux-rule); }

.anc-about { margin-top: 40px; }
.anc-defs { display: grid; gap: 12px; margin: 0; }
.anc-defs div { display: grid; gap: 4px; }
.anc-defs dt { font-weight: 600; }
.anc-defs dd { margin: 0; font-size: 14px; line-height: 1.5; }

/* Zone list */
.anc-country { margin-top: 12px; }
.anc-zones { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--lux-rule); }
.anc-zone { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--lux-rule); min-width: 0; }
.anc-zone__name { font-weight: 600; overflow-wrap: anywhere; }
.anc-zone__meta { font-size: 13px; color: var(--lux-text-mute); overflow-wrap: anywhere; }
.anc-badge { justify-self: start; padding: 2px 8px; font-size: 12px; border: 1px solid var(--lux-gold); color: var(--lux-ink); }
.anc-badge--approx { border-style: dashed; border-color: #a1271b; color: #a1271b; }

/* Zone page */
.anc-detail { display: grid; gap: 24px; }
.anc-body { min-width: 0; overflow-wrap: anywhere; }
.anc-bands { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.anc-band { padding: 12px 14px; background: #fff; border: 1px solid var(--lux-rule); font-size: 14px; }
.anc-band > .anc-chip { margin-right: 6px; }
.anc-sources { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.anc-sources li + li { margin-top: 10px; }
.anc-facts { display: grid; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.anc-facts div { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.anc-facts dt { font-weight: 600; min-width: 8rem; }
.anc-facts dd { margin: 0; }

/* Region-wide advisory (posidonia), coverage list on the index, and the Balearics pages. */
.anc-advisory { margin: 20px 0; padding: 18px; background: #fbf4e4; border: 1px solid #e6d3a3; border-left: 4px solid #8a5a00; max-width: 60rem; overflow-wrap: anywhere; }
.anc-advisory p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; }
.anc-advisory__kicker { margin: 0 !important; font-size: 12px !important; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8a5a00; }
.anc-advisory__title { margin: 6px 0 0; font-family: var(--lux-serif); font-weight: 500; font-size: 22px; line-height: 1.2; }
.anc-cover { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.anc-cover__item { padding: 16px 18px; background: #fff; border: 1px solid var(--lux-rule); border-left: 4px solid var(--lux-gold); min-width: 0; overflow-wrap: anywhere; }
.anc-cover__item--none { border-left-color: #3d4757; }
.anc-cover__item .anc-h3 { margin: 0 0 6px; }
.anc-cover__item p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.anc-ruleset { display: grid; gap: 14px; margin: 0; max-width: 60rem; }
.anc-ruleset dt { font-weight: 600; }
.anc-ruleset dd { margin: 2px 0 0; line-height: 1.55; }
.anc-ruleset .anc-help { display: block; }
.anc-h2--sub { font-size: 22px; margin-top: 28px; }
.anc-zone > .anc-chip { justify-self: start; }
.anc .anc-btn + .anc-btn { margin-left: 8px; }

@media (min-width: 600px) {
  .anc-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anc-zone > .anc-chip { grid-column: 2; grid-row: 1; justify-self: end; }
  .anc-two { grid-template-columns: 1fr 1fr; }
  .anc-form > .anc-btn { width: auto; }
  .anc-zone { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  .anc-zone__meta { grid-column: 1; }
  .anc-badge { grid-column: 2; grid-row: 1; }
  .anc-defs div { grid-template-columns: 15rem minmax(0, 1fr); align-items: baseline; }
  .anc-glossary div { grid-template-columns: 15rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 900px) {
  .anc-tool { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .anc-map { height: 460px; }
  .anc-map--wide { height: 440px; }
  .anc-detail { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .anc-detail .anc-mapwrap { position: sticky; top: 16px; }
  .anc-verdict__word { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .anc *, .anc *::before, .anc *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
