/* Landscript - colors and type from the videos */
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: Archivo; src: url(/fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: Newsreader; src: url(/fonts/newsreader-italic-latin.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }

:root {
  --ocean: #12324A;
  --deep: #0B2236;
  --land: #2A4A60;
  --bone: #EAE4D6;
  --line: #8EA9BC;
  --signal: #FFC21A;
  --rule: rgba(142, 169, 188, 0.28);
  --sans: Archivo, system-ui, sans-serif;
  --note: Newsreader, Georgia, serif;
  --top: 56px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ocean); color: var(--bone); font: 460 17px/1.5 var(--sans); }
a { color: var(--bone); text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

/* header */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 24px; background: var(--deep); border-bottom: 1px solid var(--rule); }
.mark { display: flex; align-items: center; gap: 10px; font-stretch: 118%; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; transition: color 0.15s; }
.mark svg { display: block; width: 34px; height: 34px; }
.mark:hover { color: var(--signal); }
.links { display: flex; align-items: center; gap: 4px; font-stretch: 80%; font-weight: 600; font-size: 15px; }
.links a { display: inline-flex; align-items: center; height: 44px; padding: 0 11px; text-decoration: none; color: var(--line); white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { color: var(--signal); }

/* layout: map + panel */
.app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 460px); grid-template-rows: auto 1fr; grid-template-areas: "map search" "map out"; }
.map-wrap { grid-area: map; align-self: start; position: sticky; top: var(--top); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); overflow: hidden; background: var(--ocean); }
#map { display: block; width: 100%; height: 100%; touch-action: none; -webkit-user-select: none; user-select: none; cursor: grab; }
#map.drag, #map.drag * { cursor: grabbing !important; }
#map:focus { outline: none; }
#map:focus-visible { outline: 2px solid var(--signal); outline-offset: -3px; }
#map .ct path { fill-rule: evenodd; stroke: rgba(11, 34, 54, 0.55); stroke-width: 0.5; vector-effect: non-scaling-stroke; cursor: pointer; }
#map .ct path.nd { fill: var(--land); }
#map .ct path:hover { stroke: var(--bone); stroke-width: 1.4; }
#map .st { fill: none; stroke: rgba(234, 228, 214, 0.55); stroke-width: 0.9; vector-effect: non-scaling-stroke; pointer-events: none; }
#map .nat { fill: none; stroke: rgba(234, 228, 214, 0.85); stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
#map .ins { fill: none; stroke: rgba(234, 228, 214, 0.35); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; pointer-events: none; }
#map .sel { fill: none; stroke: var(--signal); stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linejoin: round; }
#map .sel-h { fill: none; stroke: rgba(11, 34, 54, 0.9); stroke-width: 6; vector-effect: non-scaling-stroke; pointer-events: none; stroke-linejoin: round; }
#map.live .ct path { stroke: none; }

.legend { position: absolute; left: 20px; bottom: 18px; max-width: min(520px, calc(100% - 40px)); padding: 10px 12px 9px; background: rgba(11, 34, 54, 0.9); border-radius: 6px; }
.legend-t { margin: 0 0 6px; font-stretch: 78%; font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--bone); }
.legend-c { display: flex; flex-wrap: wrap; gap: 5px 14px; }
.legend-c span { display: inline-flex; align-items: center; gap: 6px; font-stretch: 78%; font-weight: 560; font-size: 12.5px; color: var(--bone); white-space: nowrap; }
.legend-c i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.legend-src { margin: 7px 0 0; font-stretch: 78%; font-size: 11.5px; color: var(--line); }

.tools { position: absolute; top: 16px; left: 20px; right: 70px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool { display: inline-block; padding: 7px 14px; border: 1px solid var(--rule); border-radius: 4px; background: rgba(11, 34, 54, 0.92); font-stretch: 85%; font-weight: 600; font-size: 14px; }
.tool:hover { border-color: var(--bone); }
.tool[hidden] { display: none; }
.layer-sw { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 6px; background: rgba(11, 34, 54, 0.92);
  border: 1px solid var(--rule); font-stretch: 85%; font-weight: 600; font-size: 13px; color: var(--line); }
.layer-sw select { appearance: none; -webkit-appearance: none; padding: 6px 30px 6px 10px; border: 0; border-radius: 4px;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230B2236' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 10px 6px;
  color: var(--deep); font: inherit; font-stretch: 85%; font-weight: 700; font-size: 14px; cursor: pointer; max-width: 62vw; }

.zoom { position: absolute; z-index: 3; right: 20px; bottom: 18px; display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 6px; background: rgba(11, 34, 54, 0.92); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); overflow: hidden; }
.zoom button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--bone); font-weight: 700; font-size: 20px; line-height: 1; }
.zoom button + button { border-top: 1px solid var(--rule); }
.zoom button:hover { color: var(--signal); background: rgba(142, 169, 188, 0.12); }
.zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.tip { position: absolute; z-index: 4; pointer-events: none; padding: 6px 10px; background: var(--deep); border: 1px solid var(--rule); border-radius: 4px;
  font-size: 14px; line-height: 1.3; white-space: nowrap; }
.tip b { font-stretch: 105%; font-weight: 720; }
.tip span { display: block; font-stretch: 80%; color: var(--line); font-variant-numeric: tabular-nums; }
.tip[hidden] { display: none; }
.load { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.load-box { padding: 10px 18px; border-radius: 6px; background: rgba(11, 34, 54, 0.9); color: var(--line); font-stretch: 85%; }
.load[hidden] { display: none; }

/* search + panel */
.search-box { grid-area: search; position: relative; z-index: 6; background: var(--deep); border-left: 1px solid var(--rule); padding: 22px 28px 0; }
.panel { grid-area: out; background: var(--deep); border-left: 1px solid var(--rule); padding: 26px 28px 40px; min-height: calc(100vh - var(--top) - 96px); }
.search { position: relative; }
.search-l { display: block; margin-bottom: 6px; font-stretch: 80%; font-weight: 600; font-size: 14px; color: var(--line); }
#q { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--ocean); color: var(--bone); font: 560 18px/1.2 var(--sans); }
#q::placeholder { color: rgba(142, 169, 188, 0.75); }
#q:focus { outline: none; border-color: var(--signal); }
.sugg { position: absolute; z-index: 6; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px 0; list-style: none; background: var(--ocean);
  border: 1px solid var(--line); border-radius: 4px; max-height: 360px; overflow-y: auto; }
.sugg[hidden] { display: none; }
.sugg li { padding: 8px 14px; cursor: pointer; line-height: 1.3; }
.sugg li span { display: block; font-stretch: 80%; font-size: 14px; color: var(--line); }
.sugg li[aria-selected="true"], .sugg li:hover { background: var(--land); }
.sugg .none { cursor: default; color: var(--line); }

.intro-h { margin: 8px 0 12px; font-stretch: 118%; font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -0.01em; }
.intro-p { margin: 0 0 22px; max-width: 34em; }
.tops { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 8px; }
.tops h2 { margin: 0 0 8px; font-stretch: 85%; font-weight: 650; font-size: 15px; color: var(--line); }
.tops ol { margin: 0; padding: 0; list-style: none; }
.tops li { margin: 0 0 7px; padding-left: 10px; border-left: 3px solid var(--c, var(--signal)); }
.tops button { padding: 0; border: 0; background: none; text-align: left; line-height: 1.25; }
.tops button:hover .n { color: var(--signal); }
.tops .n { display: block; font-weight: 620; }
.tops .v { font-stretch: 80%; font-size: 14px; color: var(--line); font-variant-numeric: tabular-nums; }

.gm-name { margin: 0; font-stretch: 118%; font-weight: 800; font-size: 40px; line-height: 1.02; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.gm-sub { margin: 6px 0 18px; font-stretch: 80%; font-weight: 520; font-size: 15px; color: var(--line); }
.kicker { margin: 0 0 4px; font-stretch: 85%; font-weight: 650; font-size: 14px; color: var(--line); text-transform: uppercase; letter-spacing: 0.06em; }
.big { margin: 0; font-stretch: 100%; font-weight: 820; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.005em; color: var(--c); }
.big-n { margin: 0; font-stretch: 125%; font-weight: 850; font-size: 72px; line-height: 0.95; letter-spacing: -0.02em; color: var(--c); font-variant-numeric: tabular-nums; }
.big-cap { margin: 8px 0 16px; font-size: 17px; }
.big-cap b, .ctx b { font-weight: 680; font-variant-numeric: tabular-nums; }
.ctx { margin: 0 0 18px; }
.panel h2.sec { margin: 26px 0 10px; padding-top: 16px; border-top: 1px solid var(--rule); font-stretch: 100%; font-weight: 720; font-size: 18px; }
.bars { display: grid; gap: 11px; margin: 4px 0 12px; padding: 0; list-style: none; }
.bars li { display: grid; gap: 4px; }
.bar-l { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.25; }
.bar-l b { font-weight: 680; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-t { position: relative; height: 9px; border-radius: 2px; background: rgba(142, 169, 188, 0.14); overflow: hidden; }
.bar-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; }
.note { margin: 12px 0 0; font-family: var(--note); font-style: italic; font-size: 16px; line-height: 1.4; color: var(--line); }
.panel p { max-width: 36em; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.share button { padding: 10px 16px; border: 1.5px solid var(--bone); border-radius: 4px; background: none; font-weight: 620; font-size: 15px; }
.share button:hover { border-color: var(--signal); color: var(--signal); }
.share .primary { background: var(--signal); border-color: var(--signal); color: var(--deep); }
.share .primary:hover { background: var(--bone); border-color: var(--bone); color: var(--deep); }
.toast { margin: 10px 0 0; min-height: 1.4em; font-stretch: 85%; font-size: 14px; color: var(--signal); }

/* SEO text */
.seo { max-width: 1100px; margin: 0 auto; padding: 40px 24px 8px; border-top: 1px solid var(--rule); }
.seo h2 { margin: 0 0 12px; font-stretch: 105%; font-weight: 760; font-size: 26px; line-height: 1.15; }
.seo p, .seo dd { max-width: 46em; line-height: 1.6; }
.seo-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 36px; margin: 22px 0 4px; }
.seo h3 { margin: 24px 0 8px; font-stretch: 90%; font-weight: 700; font-size: 16px; color: var(--line); }
.seo-cols h3 { margin-top: 0; }
.seo ol { margin: 0; padding-left: 24px; font-variant-numeric: tabular-nums; }
.seo li { margin: 3px 0; }
.seo li span { color: var(--line); font-size: 15px; }
.seo dl { margin: 0; }
.seo dt { margin-top: 14px; font-weight: 680; }
.seo dd { margin: 4px 0 0; }
.seo-src { font-size: 14.5px; color: var(--line); }

/* footer */
.foot { display: grid; grid-template-columns: minmax(0, 40em) minmax(0, 30em); justify-content: space-between; gap: 40px;
  padding: 34px max(24px, calc((100% - 1600px) / 2 + 24px)) 46px; background: var(--deep); border-top: 1px solid var(--rule); font-size: 15px; color: var(--line); }
.foot p { margin: 0 0 10px; max-width: 40em; }
.foot-h { font-weight: 680; color: var(--bone); }
.foot a { color: var(--bone); }

/* home */
.home { max-width: 1180px; margin: 0 auto; padding: 46px 24px 40px; }
.home-h { margin: 0 0 12px; font-stretch: 118%; font-weight: 820; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -0.015em; }
.home-h em { font-style: normal; color: var(--signal); }
.home-p { margin: 0 0 34px; max-width: 38em; font-size: 19px; color: var(--bone); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { display: block; overflow: hidden; border: 1px solid var(--rule); border-radius: 10px; background: var(--deep); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: var(--signal); transform: translateY(-2px); color: var(--bone); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--ocean); }
.card-b { padding: 16px 18px 18px; }
.card-k { margin: 0 0 4px; font-stretch: 85%; font-weight: 650; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--signal); }
.card-h { margin: 0 0 6px; font-stretch: 105%; font-weight: 760; font-size: 22px; line-height: 1.15; }
.card-p { margin: 0; font-size: 15.5px; color: var(--line); }
.soon { display: grid; place-items: center; min-height: 160px; border: 1px dashed var(--rule); border-radius: 10px; color: var(--line); font-family: var(--note); font-style: italic; font-size: 17px; text-align: center; padding: 20px; }

@media (max-width: 900px) {
  :root { --top: 50px; }
  .top { padding: 0 16px; }
  .mark { font-size: 20px; gap: 8px; }
  .mark svg { width: 30px; height: 30px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "map" "out"; }
  .search-box { border-left: 0; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .map-wrap { position: relative; top: 0; height: auto; --mh: min(78vw, 56vh); }
  #map { height: var(--mh); touch-action: pan-y; }
  #map.zoomed { touch-action: none; }
  .panel { border-left: 0; border-top: 1px solid var(--rule); padding: 20px 16px 34px; min-height: 0; }
  .legend { position: static; display: block; max-width: none; margin: 8px 12px 10px; }
  .tools { top: 10px; left: 10px; right: 60px; }
  .zoom { top: 10px; right: 10px; transform: none; }
  .zoom button { width: 36px; height: 36px; }
  .gm-name { font-size: 32px; }
  .big-n { font-size: 60px; }
  .tops { grid-template-columns: 1fr; }
  .seo { padding: 30px 16px 4px; }
  .seo h2 { font-size: 22px; }
  .foot { grid-template-columns: 1fr; gap: 6px; padding: 26px 16px 36px; }
  .home { padding: 30px 16px 30px; }
}
@media (max-width: 480px) {
  .links a { padding: 0 7px; }
  .layer-sw > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
