/* Pars Abr BGP map. Site-specific layout on top of the X-mono kit.
   tokens.css is the single source of truth for every shared component
   (.btn, .chip, .addr, .cta, .tab, .led, .svc*, .faq, .toast, .header*, .nav-item,
   .credit*, .footer*, .mdock ...). This file only adds what the kit does not ship.
   No brand hue; colour only for measured state. RTL, logical properties. */

/* copy buttons swap icon when done */
.copy .c-ok { display: none; }
.copy.done .c-ok { display: block; }
.copy.done .c-copy { display: none; }

/* header: icon size for the head CTA */
.head-cta .ico { width: 17px; height: 17px; stroke-width: 2; }

/* ── hero: centred ── */
.hero { text-align: center; justify-items: center; }
.hero .h1, .hero .lede { margin-inline: auto; }
.hero-main { display: grid; gap: clamp(28px, 4vw, 44px); grid-template-columns: minmax(0, 1fr);
  justify-items: center; align-items: start; width: 100%; }
.hero-txt { display: grid; gap: 26px; justify-items: center; min-width: 0; width: 100%; }
.reqs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; }
.addr-sm .addr-v { font-size: .92rem; }

.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; width: 100%;
  max-width: 1000px; margin-inline: auto; }
@media (min-width: 900px) { .feat { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; min-width: 0; }
.feat .ico { width: 38px; height: 38px; padding: 9px; border-radius: var(--radius-icon); background: var(--chip-bg);
  border: 1px solid var(--line); color: var(--text); stroke-width: 1.7; }
.feat div { display: grid; justify-items: center; min-width: 0; line-height: 1.7; }
.feat b { font-weight: 700; color: var(--strong); font-size: .97rem; }
.feat span { font-size: .86rem; color: var(--text-2); }

/* live status strip: extras on the kit's .strip */
.strip { width: 100%; color: var(--text); transition: border-color .15s ease; }
.strip:hover { border-color: var(--hair-2); }
.st-seg { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding-inline-end: 22px;
  font-size: .92rem; line-height: 1.6; }
.st-status ~ .st-seg { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
.st-status { font-weight: 700; color: var(--strong); }
.st-meta { color: var(--muted-ink); gap: 18px; flex-wrap: wrap; }
.st-meta b, .st-time b { color: var(--strong); font-weight: 800; font-size: 1.02rem; }
.st-time { color: var(--muted-ink); }
.st-go { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); margin-inline-start: auto; background: var(--ghost-bg);
  border: 1px solid var(--ghost-border); box-shadow: var(--ghost-inset); font-weight: 700; font-size: .9rem; }
.st-go .ico { width: 16px; height: 16px; }

/* ── section heads: centred ── */
.sec-head { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.sec-title { justify-items: center; align-content: start; max-width: 720px; }
.sec-lede { margin-inline: auto; text-align: center; }
.sync { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px;
  border-radius: var(--radius-pill); background: var(--chip-bg); border: 1px solid var(--line);
  font-size: .84rem; color: var(--text-2); max-width: 100%; }
.sync-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.section-faq { padding-top: 0; }
.ans .mono, .ans .en { color: var(--text); }

/* ── credit / services extras ── */
:root[data-theme="dark"] .credit-logo { filter: brightness(0) invert(1); opacity: .92; }
.credit .btn .ico { width: 16px; height: 16px; }
.xlink { display: flex; align-items: center; gap: 16px; padding: 22px clamp(24px, 4.4vw, 48px);
  border-top: 1px solid var(--line); background: var(--chip-bg); transition: background-color .15s ease; }
.xlink:hover { background: var(--nav-hover); }
.xlink-ico { width: 40px; height: 40px; padding: 10px; border-radius: var(--radius-icon); background: var(--white);
  border: 1px solid var(--line); color: var(--text); }
.xlink-t { display: grid; flex: 1 1 auto; min-width: 0; line-height: 1.7; }
.xlink-t b { color: var(--strong); font-weight: 800; }
.xlink-t span { color: var(--muted-ink); font-size: .88rem; }
.xlink-go { color: var(--muted-ink); }
.xlink:hover .xlink-go { color: var(--strong); }

/* ── footer extras ── */
.foot-addr { display: grid; gap: 10px; align-content: start; justify-items: start; min-width: 0; }
.foot-addr .addr { width: 100%; max-width: 340px; }
.foot-addr .btn-sm .ico { width: 16px; height: 16px; }

/* ── responsive ── */
@media (min-width: 1180px) { .feat { padding-top: 8px; } }
@media (max-width: 1179.98px) {
  .hero-main { display: contents; }
  .hero-txt { order: 1; }
  .strip { order: 2; }
  .feat { order: 3; }
}
@media (max-width: 700px) {
  .strip { padding: 14px 14px 12px; gap: 12px; }
  .st-seg, .st-status ~ .st-seg { border-inline-start: 0; padding-inline: 0 18px; }
  .st-status { flex: 1 1 100%; }
  .st-go { flex: 1 1 100%; justify-content: center; margin-inline-start: 0; }
  .rooms { columns: 1; }
}
@media (max-width: 560px) {
  .foot-addr > .btn { width: 100%; max-width: 340px; }
  .xlink-go { display: none; }
}
@media (max-width: 380px) { .addr { padding-inline-start: 16px; } }

/* ── BGP map additions ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.state { padding: 18px 2px; line-height: 1.9; }
.search { display: grid; gap: 14px; width: 100%; max-width: 760px; margin-inline: auto; }
.search .pill-form input { text-align: left; font-family: var(--font-mono); font-size: .98rem; }
.search .pill-form input::placeholder { font-family: inherit; }
.search-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; }
.search-vantage { display: inline-flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; }
.search-vantage .select { height: var(--target); width: auto; min-width: 150px; font-size: .88rem; padding-inline: 12px; }
@media (pointer: coarse), (max-width: 700px) {
  .btn-sm, .btn-xs, .tab, .select, .chip-btn, .menu a, .res-hop { min-height: var(--target); }
  .btn-sm, .btn-xs { height: auto; }
  .foot-col a { display: inline-flex; align-items: center; min-height: var(--target); }
}
.chip-btn { cursor: pointer; font-family: inherit; transition: background-color .15s ease, border-color .15s ease; }
.chip-btn:hover { background: var(--nav-hover); border-color: var(--hair-2); color: var(--text); }
.as-link { color: var(--strong); font-weight: 700; }
.as-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.as-name { font-weight: 400; font-size: .88em; }
.section-result { padding-top: clamp(24px, 4vw, 48px); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); min-width: 0; }
.stack > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.grid-2 { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sub-h { font-size: 1.12rem; font-weight: 800; color: var(--strong); line-height: 1.6; }
.sub-h .count { margin-inline-start: 8px; }

/* ── shared tabs: centred bar, panels below ── */
.tabs-bar { display: flex; justify-content: center; margin-bottom: clamp(16px, 2.4vw, 28px); min-width: 0; }
.tabs-bar .tabs { max-width: 100%; }
.tab-panel { min-width: 0; }
.tab-panel:focus-visible { outline: 2px solid var(--text); outline-offset: 6px; border-radius: var(--radius); }
.tab .count { margin-inline-start: 2px; }
