/* Kit v3 country page (country.html). Tokens from v3.css only; logical properties only. */

[dir="rtl"] .chev-r { transform: scaleX(-1); }

/* A flag, a neutral mark or a network mark, always beside the name (aria-hidden) */
.fl { flex: none; display: inline-grid; place-items: center; width: 24px; height: 16px; border-radius: 0; outline: 1px solid var(--line-2); outline-offset: 0; box-shadow: none; background: var(--bg-2); }
.fl img { width: 100%; height: 100%; object-fit: fill; display: block; border-radius: 0; }
.fl--hex { outline: 0; background: transparent; color: var(--ink-3); }
.fl--hex svg { width: 20px; height: 20px; }
.fl--hex b { position: absolute; font: 600 8.5px/1 var(--f); color: var(--ink-2); }
.fl--net { background: var(--ink); color: var(--bg); font: 700 8px/1 var(--f); outline: 0; }
.fl--lg { width: 36px; height: 24px; }
.fl--lg.fl--hex svg { width: 32px; height: 32px; }
.fl--lg.fl--hex b { font-size: 12px; }

/* Place panel */
.place { inset-block: 76px 152px; inset-inline-start: 76px; width: 368px; }
.ph { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; align-items: center; margin-block-start: 8px; }
.ph h1 { margin: 0; font: 600 24px/1.12 var(--f); letter-spacing: -.015em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ph p { margin: 3px 0 0; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 12px; }
.stats--6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat small { display: block; color: var(--ink-3); font-size: 10.5px; margin-block-start: 2px; }
.stat--btn { cursor: pointer; border: 0; text-align: start; color: inherit; font: inherit; }
.stat--btn:hover { background: var(--bg-2); }
.tools2 { display: flex; gap: 8px; align-items: center; padding: 10px 12px 6px; }
.tools2 .seg { flex: 1; }
.find { display: flex; align-items: center; gap: 6px; height: 34px; padding-inline: 10px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-3); width: 132px; }
.find input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12.5px; }
.urow { width: 100%; display: grid; grid-template-columns: 24px minmax(0,1fr) 34px 56px; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r); background: transparent; text-align: start; }
.urow:hover { background: var(--bg-2); }
.urow[aria-selected="true"] { background: var(--red-soft); }
.urow .meter { --meter-w: 56px; }
.urow[aria-selected="true"] .meter i { background: var(--red); }
.urow__n { min-width: 0; }
.urow__n b { display: block; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.urow__n small { display: block; color: var(--ink-3); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.urow__c { text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.urow--dim .urow__n b { color: var(--ink-2); font-weight: 400; }
.urow--dim .urow__c { color: var(--ink-3); }
.sub { padding: 0 8px 8px 42px; display: flex; flex-wrap: wrap; gap: 6px; }
.sub button { height: 26px; padding-inline: 9px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.sub button:hover { border-color: var(--line-2); }
.sub button[aria-pressed="true"] { border-color: var(--red); color: var(--ink); }
.note1 { margin: 0; padding: 12px 16px 0; color: var(--ink-2); }
.src1 { display: flex; gap: 8px; align-items: baseline; padding: 6px 16px 0; color: var(--ink-3); font-size: 12px; }
.src1 a { color: var(--ink-2); }

/* Facts and the latest: the inspector at the end */
.side { inset-block: 76px 152px; inset-inline-end: 12px; width: 372px; }
.side .panel__hd { padding-block-end: 12px; }
.figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin: 12px; }
.fg { background: var(--bg-1); padding: 12px 14px; min-width: 0; }
.fg b { display: block; font: 600 20px/1.15 var(--f); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fg b.lg { overflow-wrap: anywhere; white-space: normal; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }
.fg b.xl { font-size: 30px; letter-spacing: -.03em; }
.fg .m { display: block; color: var(--ink-2); font-size: 12px; margin-block-start: 4px; }
.fg .s { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block-start: 8px; color: var(--ink-3); font-size: 11.5px; }
.fg .s a { color: var(--ink-3); text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fg .s a:hover { color: var(--ink); text-decoration: underline; }
.lab { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding-inline: 7px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.lab i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lab--v { color: var(--ink); border-color: var(--ink-3); }
.lab--s { color: var(--ink-2); }
.lab--t { color: var(--ink-3); border-style: dashed; }
.lab--t i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 12px 12px; padding: 12px 14px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); font-size: 12.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd a { color: inherit; }
.kv dd.wrap { white-space: normal; text-align: start; grid-column: 1 / -1; color: var(--ink-2); }
.kv dt:has(+ dd.wrap) { grid-column: 1 / -1; }
.shead { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; }
.lines { margin: 8px 12px 12px; padding: 0; list-style: none; display: grid; gap: 1px; border-radius: var(--r); overflow: hidden; background: var(--line); }
.lines li { background: var(--bg-1); padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.lines li small { color: var(--ink-3); }

/* Console cards of the platforms, filtered to the place */
.cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.con { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 132px; padding: 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .15s var(--ease); }
.con:hover { border-color: var(--line-2); }
.con__h { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); }
.con__h span { font: 500 11px/1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.con b { font: 600 30px/1 var(--f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.con b em { font: 500 12px/1 var(--f); color: var(--ink-3); font-style: normal; letter-spacing: 0; margin-inline-start: 4px; }
.con p { margin: 0; color: var(--ink-2); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.con .go { margin-block-start: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); font-weight: 500; }
.con--act .go { color: var(--red); }
.con--wide { grid-column: 1 / -1; min-height: 0; }
.scope { margin: 12px 12px 0; padding: 8px 12px; border-radius: var(--r); background: var(--bg-1); border: 1px solid var(--line); color: var(--ink-3); font-size: 12px; display: flex; align-items: center; gap: 8px; }

/* The platform rail floats on the inline end (spine.js): panels at the end clear it */
.has-rail-end .side { inset-inline-end: 76px; }
.has-rail-end .band { inset-inline-end: 76px; }
.has-rail-end .attr.ca { inset-inline-end: 460px; }
.tipcard .fl { margin-inline-end: 6px; vertical-align: -2px; }
.pal__fl { display: grid; place-items: center; }
.sub button .fl, .hexc li button .fl { margin-inline-end: 6px; vertical-align: -2px; }
.hexc li button { display: inline-flex; align-items: center; }

/* Story band */
.band { position: absolute; z-index: 12; inset-inline: 76px 12px; inset-block-end: 12px; height: 128px; display: grid; grid-template-columns: 208px minmax(0,1fr); }
.band__l { padding: 14px 16px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.band__l b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 15px/1.2 var(--f); margin-block-start: 6px; overflow: hidden; }
.band__l small { color: var(--ink-3); font-size: 12px; }
.band__nav { display: flex; gap: 6px; }
.band__nav .btn { height: 28px; width: 28px; }
.cards { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card { flex: none; width: 256px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-1); text-align: start; color: inherit; }
.card:hover { border-color: var(--line-2); }
.card[aria-pressed="true"] { border-color: var(--red); }
.card__k { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); font: 500 10.5px/1 var(--f); letter-spacing: .04em; text-transform: uppercase; }
.card__k .y { font: 500 11px/1 var(--m); letter-spacing: 0; color: var(--ink-2); text-transform: none; }
.card p { margin: 0; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__l { margin-block-start: auto; display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.card__l span { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding-inline: 7px; border-radius: var(--r); background: var(--bg-2); color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.card__l span.r { color: var(--red); background: var(--red-soft); }

/* Map layer bar and the H3 cell card */
.layers.cl { inset-block-start: 76px; inset-inline-start: 456px; max-width: calc(100% - 456px - 396px); }
.has-rail-end .layers.cl { max-width: calc(100% - 456px - 460px); }
.layers.cl button { padding-inline: 7px; gap: 6px; }
.layers.cl .res { padding-inline: 6px; }
.res { font: 500 11px/1 var(--m); color: var(--ink-2); padding-inline: 8px; display: inline-flex; align-items: center; border-inline-start: 1px solid var(--line); margin-inline-start: 2px; white-space: nowrap; }
.hexc { position: absolute; z-index: 13; inset-block-end: 152px; inset-inline-start: 456px; width: 340px; }
.hexc[hidden] { display: none; }
.hexc .panel__hd { padding: 12px 14px 10px; }
.hexc .x { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; }
.hexc .mono { font-size: 11.5px; color: var(--ink-2); }
.hexc ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.hexc li { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 8px; border-radius: var(--r); font-size: 12.5px; }
.hexc li small { display: block; color: var(--ink-3); font-size: 11px; }
.hexc li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.hexc li button { all: unset; cursor: pointer; }
.hexc li button:hover { text-decoration: underline; }

/* Map labels: HTML, placed with collision so they never overlap (no glyph server: rule 6) */
.lbl { position: absolute; z-index: 5; /* geographic position: physical by design */ top: 0; left: 0; pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--ink); text-shadow: 0 0 3px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg); transform: translate(-50%, -150%); }
.lbl[data-k="adm"] { color: var(--ink-3); font-size: 10.5px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; transform: translate(-50%, -50%); }
.lbl[data-k="adm"].on { color: var(--red); }
.lbl.on { color: var(--red); font-weight: 600; }
.lbl.off { visibility: hidden; }
.lbl .fl { width: 16px; height: 11px; }
.labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.attr.ca { inset-block-end: 146px; inset-inline-end: 396px; text-align: end; max-width: 420px; }

/* Phone: the map stays full screen, the place panel becomes a sheet with tabs */
.ptabs { display: none; }
@media (max-width: 760px) {
  .place { inset-block: auto 8px !important; inset-inline: 8px !important; width: auto !important; height: 50vh; max-height: 50vh !important; }
  .side, .band, .layers.cl, .attr.ca { display: none; }
  .hexc { inset-inline: 8px; width: auto; inset-block-end: calc(50vh + 16px); }
  .ptabs { display: grid; margin-block-start: 12px; }
  .ph h1 { font-size: 22px; }
  .stat b { font-size: 22px; }
  .stats--6 .stat:nth-child(n+4) { display: none; }
  .cards { flex-direction: column; overflow: visible; padding: 12px; }
  .card { width: auto; }
  .find { width: 112px; }
}
