/* Inter (SIL OFL 1.1, see fonts/OFL-Inter.txt), served locally: no third-party font requests */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #121212;
  --line: #262626;
  --track: #1f1f1f;
  --text: #f2f2f2;
  --text-2: #a8a8a8;
  --muted: #6e6e6e;
  --accent: #ffad5b;
  --link: #4c9bff;
  --affected: #ff7a3d;
  --nofix: #c2410c;
  --patched: #2fb47f;
  --unknown: #5a5a5a;
  --globe-a: #1b2029;
  --globe-b: #101216;
  --land: #3b4352;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); }
/* Censys brand type: Inter (Bagoss can be added later under static/fonts/). */
:root { --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --font-display: "Inter", system-ui, sans-serif; }
body { font: 14px/1.5 var(--font-text); }
h1, h2, .stat .v, .live-num, .row-pct, .mini .v, .cell .v, .ring-total { font-family: var(--font-display); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1360px; margin: 0 auto; padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
/* The ARC letters fill 19.5%-79% of the logo's height. The title's cap height matches them
   (Inter caps are ~0.73em) and shares their baseline: an image's baseline is its bottom
   margin edge, so a negative bottom margin lifts it to the letters' baseline. */
.brand { display: flex; align-items: center; gap: 16px; }
.logo { height: 34px; width: auto; }
.logo-link { display: inline-flex; line-height: 0; }
.logo-link:hover { opacity: .85; text-decoration: none; }
.divider { width: 1px; height: 34px; background: var(--line); }
.brand h1 strong { font-weight: 700; }
.brand h1 { font-size: 27px; margin: 0; font-weight: 400; letter-spacing: -.01em; line-height: 1; }
.btn span { margin-left: 6px; color: var(--muted); }
.meta { color: var(--text-2); font-size: 13px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--patched); }
.status.stale { color: #ff8a80; }
.status.stale .dot { background: #e5484d; }
.btn { display: inline-flex; align-items: center; border: 1px solid #333; border-radius: 999px; padding: 5px 14px; color: var(--text); font-size: 12.5px; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 30px; height: 17px; border-radius: 999px; background: #333; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--text-2); transition: transform .15s, background .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(13px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1360px; margin: 0 auto; }
.panel { padding: 28px 24px 32px; border-bottom: 1px solid var(--line); min-width: 0; }
.panel.left { border-right: 1px solid var(--line); }
.panel.full { grid-column: 1 / -1; }
h2 { font-size: 18px; margin: 0 0 6px; font-weight: 650; }
.desc { color: var(--text-2); font-size: 13px; margin: 0 0 16px; max-width: 620px; }
.foot { color: var(--text-2); font-size: 13px; margin: 18px 0 0; max-width: 620px; }

.hero { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .k { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stat .v { font-size: 44px; font-weight: 300; line-height: 1.1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.stat .h { color: var(--text-2); font-size: 13px; }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.live-head h2 { display: flex; align-items: center; gap: 10px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--patched); box-shadow: 0 0 0 0 rgba(47,180,127,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,180,127,.55); } 70% { box-shadow: 0 0 0 10px rgba(47,180,127,0); } 100% { box-shadow: 0 0 0 0 rgba(47,180,127,0); } }
.live-rate { text-align: right; }
.live-num { font-size: 46px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.live-sub { color: var(--text-2); font-size: 12.5px; margin-top: 6px; }
.end-pulse { animation: endpulse 2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes endpulse { 0% { opacity: .9; transform: scale(1); } 70% { opacity: 0; transform: scale(3.2); } 100% { opacity: 0; transform: scale(3.2); } }
@media (prefers-reduced-motion: reduce) { .live-dot, .end-pulse { animation: none; } }
.notes h2 { font-size: 15px; margin-bottom: 10px; }
.notes ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; max-width: 920px; }
.notes li { margin: 0 0 7px; }
.notes li b { color: var(--text); font-weight: 600; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1360px; margin: 0 auto; padding: 44px 24px 52px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.footer-logo { display: inline-flex; line-height: 0; }
.footer-logo img { height: 64px; width: auto; max-width: 100%; }
.footer-logo:hover { opacity: .85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
@media (max-width: 560px) {
  .footer-inner { padding: 32px 16px 40px; }
  .footer-logo img { height: auto; width: 100%; }
  .footer-logo { width: 100%; }
}
.rings-wrap { display: flex; justify-content: center; }
.rings svg { display: block; max-width: 100%; height: auto; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.tab { background: none; color: var(--text-2); border: 1px solid #333; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.globe-wrap { display: flex; justify-content: center; position: relative; }
/* country caption above the globe; height is reserved so nothing shifts when it appears */
.globe-card { min-height: 44px; text-align: center; opacity: 0; transform: translateY(4px); transition: opacity .35s ease, transform .35s ease; }
.globe-card.show { opacity: 1; transform: none; }
.globe-card .n { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.globe-card .d { color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.globe-card .d b { color: var(--text); font-weight: 600; }
#globe { width: 100%; height: 320px; cursor: grab; touch-action: none; display: block; }
#globe:active { cursor: grabbing; }

.cells { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 12px; }
.cell { padding: 14px 8px; text-align: center; border-bottom: 1px solid var(--line); min-width: 0; }
.cell:nth-child(odd) { border-right: 1px solid var(--line); }
.cell .k { color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.globe-hint { text-align: center; margin-top: 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.cell .v { font-size: 17px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell .v small { color: var(--muted); font-size: 12px; margin-left: 6px; }

.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; margin: 0 0 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.axis text { fill: var(--muted); font-size: 11px; }
.axis line { stroke: var(--line); }
.note { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

.history { display: grid; grid-template-columns: 3fr 2fr; gap: 32px; }
.multiples { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mini { background: var(--page); padding: 14px; display: flex; flex-direction: column; }
/* fill the panel so it matches By PHP Branch beside it; capped for the expanded branch list */
.adopt { display: flex; flex-direction: column; }
.adopt .multiples { flex: 1; grid-auto-rows: 1fr; max-height: 470px; }
.adopt .mini { gap: 2px; }
.ladder { height: 14px; margin: 6px 0 8px; }
.ladder div { height: 14px; cursor: default; }
.rung-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-2); font-size: 11.5px; }
.rung-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rung-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rung-legend b { color: var(--text); font-weight: 600; }
.mini-top { color: var(--text-2); font-size: 12px; margin-top: 10px; }
.mini-top b { color: var(--text); font-weight: 600; }
.trend-k { color: var(--muted); font-size: 11px; margin-top: auto; padding-top: 10px; }
.adopt .mini svg { height: 40px; }
.mini .k { color: var(--text-2); font-size: 12.5px; }
.mini .v { font-size: 26px; font-weight: 300; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.mini .v small { font-size: 12px; color: var(--muted); margin-left: 6px; }
.mini svg { display: block; width: 100%; height: 48px; overflow: visible; }

.net { display: grid; grid-template-columns: minmax(0, 190px) 1fr 92px; gap: 12px; align-items: center; padding: 7px 0; }
.net-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.net-name small { color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.bar { display: flex; gap: 2px; height: 12px; }
.bar div { height: 12px; min-width: 2px; }
.bar div:first-child { border-radius: 4px 0 0 4px; }
.bar div:last-child { border-radius: 0 4px 4px 0; }
.bar div:only-child { border-radius: 4px; }
.net-val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.net-val small { color: var(--muted); margin-left: 6px; }

.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-head { display: grid; grid-template-columns: 40px 110px 1fr 24px; align-items: center; gap: 12px; padding: 16px 12px; cursor: pointer; background: none; border: 0; color: inherit; font: inherit; width: 100%; text-align: left; }
.row-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.row-pct { font-size: 24px; font-weight: 300; font-variant-numeric: tabular-nums; }
.chev { color: var(--text-2); transition: transform .15s; }
.row[open] .chev { transform: rotate(180deg); }
.rows .row.extra { display: none; }
.rows.all .row.extra { display: block; }
.more { background: none; border: 1px solid #333; border-radius: 999px; color: var(--text-2); font: inherit; font-size: 12.5px; padding: 5px 14px; cursor: pointer; }
.more:hover { color: var(--text); border-color: var(--accent); }
.more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row-body { display: none; padding: 0 12px 16px 64px; }
.row[open] .row-body { display: block; }
.row-body .bar { margin: 2px 0 10px; height: 8px; }
.row-body .bar div { height: 8px; }
.stat-line { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; }
.stat-line b { color: var(--text); font-weight: 600; }
.status-icon { width: 26px; height: 26px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }


#tip {
  position: fixed; pointer-events: none; z-index: 10; display: none;
  background: #1c1c1c; border: 1px solid #333; border-radius: 6px; padding: 6px 10px;
  font-size: 12.5px; color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.4); max-width: 280px;
}
#tip .t { color: var(--text-2); font-size: 11.5px; }
.empty { color: var(--text-2); padding: 48px 24px; text-align: center; grid-column: 1 / -1; }

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr 1fr; }
  .panel.hero { padding: 0; }
  .stat { padding: 18px 16px; min-width: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat .v { font-size: 26px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .panel.left { border-right: none; }
  .topbar-inner { padding: 14px 16px; }
  .logo { height: 28px; }
  .divider { height: 28px; }
  .brand h1 { font-size: 23px; top: 0; }
  .meta { gap: 14px; }
  .panel { padding: 24px 16px; }
  .history { grid-template-columns: 1fr; }
  .row-head { grid-template-columns: 32px 90px 1fr 20px; padding: 14px 4px; }
  .row-body { padding-left: 44px; }
  .net { grid-template-columns: 1fr 84px; gap: 4px 12px; }
  .net .bar { grid-column: 1 / -1; order: 3; }
  .live-rate { text-align: left; }
  .live-num { font-size: 40px; }
}
/* phones: the versions table must fit 360px; let the status label wrap and tighten the cells */
@media (max-width: 560px) {
  th, td { padding: 9px 6px; }
  #versions td:nth-child(2) { white-space: normal; }
  /* the co-branded lockup and the title don't fit side by side: title goes under the logo */
  .brand { flex-wrap: wrap; row-gap: 12px; }
  .brand .divider { display: none; }
  .brand h1 { flex-basis: 100%; }
}
