/* The address pages (/8.8.8.8, /me), rendered by the data-pages Lambda in the site's shell. Their own look, as
   the page had it (HK Grotesk Pro, the uppercase section titles, the rotated watermark labels, the rounded
   sections on a translucent sidebar, the bordered threat badges, the big score), cleaned up: the site's
   navbar on top, the homepage hero's map behind, drawn by js/main.js from the Workers' tiles, the sections
   in the homepage callouts' frosted-glass recipe, one spacing rhythm. The theme tokens are the page's own,
   the dark set under the site's data-theme="dark". 2026-10-16 */

@font-face { font-family: HKGroteskPro; font-weight: 400; font-display: swap; src: url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Regular.woff2) format("woff2"), url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Regular.woff) format("woff"); }
@font-face { font-family: HKGroteskPro; font-weight: 500; font-display: swap; src: url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Medium.woff2) format("woff2"), url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Medium.woff) format("woff"); }
@font-face { font-family: HKGroteskPro; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Bold.woff2) format("woff2"), url(/assets/fonts/HK%20Grotesk%20Pro/HKGroteskPro-Bold.woff) format("woff"); }

:root {
  --color-bg: #ffffff;
  --color-sidebar-bg: rgba(255, 255, 255, 0.62);
  --color-sidebar-section-bg: #ffffff;
  --color-sidebar-section-heading: #9ca3af;
  --color-primary: #161c2d;
  --color-primary-hover: #000;
  --color-secondary: #f3f4f6;
  --color-button: #9ca3af;
  --color-button-active: #42ba96;
  --color-table-row: #f3f4f6;
  --color-table-link: #2563eb;
  --color-threat-green: #42ba96;
  --color-threat-orange: #fe7f23;
  --color-threat-red: #fc7774;
  --color-threat-gray: #9ca3af;
  --color-search-btn-bg: rgba(0, 0, 0, 0.05);
  --color-search-btn-hover: rgba(0, 0, 0, 0.1);
  --color-sidenote: rgba(0, 0, 0, 0.05);
  --color-card-text: rgba(0, 0, 0, 0.6);
  --color-card-border: rgba(0, 0, 0, 0.07);
  --color-section-title: #161c2d;
  --color-link: #2563eb;
  --color-search-bg: rgba(255, 255, 255, 0.78);
  --color-summary-footer-text: #333;
  --color-signup-bg: transparent;
  --sidebar-width: 450px;
  --sidebar-gap: 20px;
  --sidebar-scroll-padding: 20px;
}
html[data-theme="dark"] {
  --color-bg: #212637;
  --color-sidebar-bg: rgba(32, 37, 55, 0.7);
  --color-sidebar-section-bg: #293147;
  --color-sidebar-section-heading: rgba(255, 255, 255, 0.5);
  --color-primary: #fff;
  --color-primary-hover: rgba(255, 255, 255, 0.9);
  --color-secondary: #343C50;
  --color-button: #969aa6;
  --color-button-active: #42ba96;
  --color-table-row: #484f61;
  --color-table-link: #7EC0F6;
  --color-threat-gray: #8F929B;
  --color-search-btn-bg: rgba(255, 255, 255, 0.1);
  --color-search-btn-hover: rgba(255, 255, 255, 0.25);
  --color-sidenote: rgba(255, 255, 255, 0.05);
  --color-card-text: #8BA3BF;
  --color-card-border: rgba(96, 165, 250, 0.1);
  --color-section-title: #C8D6E5;
  --color-link: #93C5FD;
  --color-search-bg: rgba(41, 49, 71, 0.78);
  --color-summary-footer-text: #8BA3BF;
  --color-signup-bg: #131A2B;
}

/* ---- the frame: the site's fixed navbar, then the map and the sidebar filling the rest ---- */
.addr-body { overflow: hidden; background: var(--color-bg); }
.main { position: relative; height: calc(100vh - var(--navbar-height)); height: calc(100dvh - var(--navbar-height)); margin-top: var(--navbar-height); overflow: hidden; font-family: HKGroteskPro, 'Inter', system-ui, sans-serif; color: var(--color-primary); }

/* the map runs under the navbar, which is frosted over it in the page's own colour (the site paints a page without a hero in its own background) */
.map-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; }
body.addr-body .navbar, body.addr-body .navbar.scrolled { background: color-mix(in srgb, var(--color-bg) 58%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); border-bottom-color: color-mix(in srgb, var(--color-card-border) 60%, transparent); }   /* outranks the site's rule for pages without a hero */
/* the navbar's menus in the same glass as the page's pills and map controls, not the site's solid panel over the map (his ask, 2026-10-21) */
body.addr-body .navbar-dropdown-panel { background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); border-color: var(--color-card-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.1); }
body.addr-body .nav-live { border-top-color: var(--color-card-border); background: color-mix(in srgb, var(--color-primary) 3%, transparent); }
/* the lookup palette, the lifted search bar and the panel under it, in the same glass as the menus (his ask, 2026-10-24) */
body.addr-body .navbar-search.cmdk-lifted { background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
body.addr-body .cmdk-find { background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); border-color: var(--color-card-border); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.1); }
body.addr-body .nav-col + .nav-col { border-left-color: var(--color-card-border); }
#map { position: absolute; inset: 0; font-family: var(--font-mono); }
#map canvas { outline: none; }

/* the controls and the attribution, frosted like the cards */
.maplibregl-ctrl-bottom-right { right: 20px; bottom: 14px; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl { margin: 0 0 10px; }
.maplibregl-ctrl-group { background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--color-card-border); border-radius: 8px !important; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.08) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 34px !important; height: 34px !important; background: none !important; color: var(--color-primary); }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--color-card-border) !important; }
.maplibregl-ctrl-group button:hover { background: var(--color-search-btn-bg) !important; }
html[data-theme="dark"] .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.3); }
.maplibregl-ctrl-attrib { background: color-mix(in srgb, var(--color-bg) 70%, transparent) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 5px; padding: 2px 8px !important; font-family: var(--font-mono); font-size: 10px !important; letter-spacing: 0.02em; color: var(--color-card-text); }
.maplibregl-ctrl-attrib a { color: inherit; }

/* the pin and the place names, in the homepage map's hand */
.addr-pin { color: hsl(230, 48%, 44%); width: 72px; height: 72px; position: relative; }
html[data-theme="dark"] .addr-pin { color: #4a7ab5; }
.addr-pin-mark { display: block; }
.addr-pin-paper { fill: var(--color-bg); }
.addr-pin-label { position: absolute; left: 60px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--font-mono); line-height: 1.3; }
.addr-pin-label b { display: block; font-weight: 500; font-size: 11px; text-shadow: 0 0 4px var(--color-bg), 0 0 4px var(--color-bg); }
.addr-pin-label span { display: block; font-size: 9px; letter-spacing: 0.08em; opacity: 0.85; text-shadow: 0 0 4px var(--color-bg); }
.addr-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.addr-label { position: absolute; left: 0; top: 0; margin: -7px 0 0 0; translate: -50% 0; font-family: var(--font-mono); font-size: 9.5px; line-height: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(230, 29%, 35%); opacity: 0.72; white-space: nowrap; text-shadow: 0 0 2px var(--color-bg), 0 0 2px var(--color-bg), 0 1px 3px var(--color-bg), 0 -1px 3px var(--color-bg); will-change: transform; }
.addr-label--village { font-size: 9px; opacity: 0.6; }
.addr-label--town { font-size: 10px; opacity: 0.75; }
.addr-label--city { font-size: 11.5px; font-weight: 500; opacity: 0.88; }
.addr-label--region { font-size: 10.5px; letter-spacing: 0.2em; opacity: 0.5; }
.addr-label--country { font-size: 14px; font-weight: 600; letter-spacing: 0.24em; opacity: 0.72; }
.addr-label--dot { translate: 9px 0; }
.addr-label--dot::before { content: ''; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: currentColor; opacity: 0.9; box-shadow: 0 0 0 2px var(--color-bg); }
html[data-theme="dark"] .addr-label { color: #b0c4de; }

/* ---- the sidebar: a frosted panel over the map, scrolling on its own ---- */
.sidebar-bg {
  position: absolute; top: 0; left: 0; bottom: 0; width: var(--sidebar-width); z-index: 1;
  background: var(--color-sidebar-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  border-right: 1px solid var(--color-card-border);
}
.sidebar-container { position: relative; z-index: 2; width: var(--sidebar-width); height: 100%; overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: var(--sidebar-scroll-padding); }
.sidebar { padding: 20px 24px 28px; font-size: 14px; line-height: 20px; word-break: break-word; }
.sidebar > * { margin-bottom: var(--sidebar-gap); }
.sidebar section { display: block; }
.sidebar section > .sidebar-section { margin-bottom: var(--sidebar-gap); }

/* ---- the sections, in the homepage callouts' frosted recipe ---- */
.sidebar-section {
  position: relative; overflow: hidden;
  padding: 22px 24px; border-radius: 8px;
  background: color-mix(in srgb, var(--color-sidebar-section-bg) 76%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--color-card-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.06);
}
.sidebar-section-sidenote {
  user-select: none; pointer-events: none; position: absolute; right: 0; top: 0; height: 1px;
  margin-top: 22px; margin-right: 56px; transform: rotate(-90deg); transform-origin: bottom right;
  color: var(--color-sidenote); font-weight: 800; font-size: 34px; line-height: 38px; text-transform: uppercase; white-space: nowrap;
}
.sidebar-section-sidenote--short { font-size: 46px; }
.sidebar-section-title { margin: 0 0 18px; font-weight: 800; font-size: 28px; line-height: 30px; text-transform: uppercase; color: var(--color-section-title); padding-right: 44px; }
.sidebar-section-title--ip { text-transform: none; letter-spacing: -0.01em; overflow-wrap: anywhere; }

/* the summary: label and value columns, hairlines between the rows, the analysis as the card's footer */
.sidebar-summary { margin-bottom: 0; border-radius: 8px 8px 0 0; border-bottom: 0; }
.sidebar-summary-card { display: flex; flex-direction: column; }
.sidebar-summary-row { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: baseline; padding: 7px 0; font-weight: 600; border-top: 1px solid var(--color-card-border); }
.sidebar-summary-row:first-child { border-top: 0; padding-top: 0; }
.sidebar-summary-row:last-child { padding-bottom: 0; }
.sidebar-summary-row .sidebar-card-title { margin: 0; min-width: 0; }
.sidebar-summary-footer { position: relative; z-index: 1; background: color-mix(in srgb, var(--color-secondary) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--color-card-border); border-top: 0; padding: 18px 24px 20px; font-weight: 600; border-radius: 0 0 8px 8px; color: var(--color-summary-footer-text); line-height: 21px; }
.sidebar-summary-footer .sidebar-card-title { margin-bottom: 6px; }

.sidebar-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.sidebar-columns .sidebar-card { margin-bottom: 0; min-height: 0; }
.sidebar-card { margin-bottom: 18px; font-weight: 600; color: var(--color-card-text); }
.sidebar-card:last-child { margin-bottom: 0; }
.sidebar-columns + .sidebar-card { margin-top: 18px; }
.sidebar-card--text { font-weight: 500; line-height: 21px; }
.sidebar-card-title { text-transform: uppercase; color: var(--color-sidebar-section-heading); font-weight: 800; font-size: 12px; line-height: 18px; letter-spacing: 0.04em; margin-bottom: 4px; }
.sidebar-card-value { font-weight: 600; font-size: 17px; line-height: 24px; color: var(--color-section-title); }
.sidebar-card-sub { margin-top: 4px; font-weight: 500; font-size: 13px; color: var(--color-card-text); }
.sidebar-country-flag-container { display: flex; align-items: center; gap: 8px; line-height: 20px; flex-wrap: wrap; }
.flag-small { gap: 6px; }
.sidebar-country-flag { width: 20px; height: 20px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }

/* the lookup box */
.sidebar-search { display: flex; gap: 10px; align-items: center; color: var(--color-button); }
.sidebar-search-input { flex: 1 1 auto; min-width: 0; border: none; background: none; outline: 0; color: var(--color-primary); font: inherit; font-weight: 500; font-size: 17px; line-height: 24px; }
.sidebar-search-button { word-break: normal; padding: 8px 16px; border: none; border-radius: 6px; background: var(--color-search-btn-bg); color: var(--color-primary); font: inherit; font-weight: 600; font-size: 14px; line-height: 20px; cursor: pointer; transition: background-color 0.25s; }
.sidebar-search-button:hover, .sidebar-search-button:focus-visible { background-color: var(--color-search-btn-hover); }

/* the tabs */
.sidebar-tabs { display: flex; gap: 22px; margin: 0 0 16px; padding: 0 2px; border-bottom: 1px solid var(--color-card-border); }
.sidebar-tab-button { border: none; background: none; padding: 6px 0 10px; margin-bottom: -1px; color: var(--color-button); font-weight: 600; font-size: 15px; line-height: 24px; white-space: nowrap; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: all 0.2s ease; }
.sidebar-tab-button:hover, .sidebar-tab-button:focus-visible { color: var(--color-primary); }
.sidebar-tab-button.active { color: var(--color-button-active); box-shadow: inset 0 -2px 0 var(--color-button-active); }

/* threats */
.sidebar-section--last { display: block; }
.sidebar-trust-score-title { text-transform: uppercase; color: var(--color-sidebar-section-heading); font-weight: 800; font-size: 12px; line-height: 18px; letter-spacing: 0.04em; margin-bottom: 6px; }
.sidebar-trust-score { display: flex; align-items: baseline; gap: 14px; }
.sidebar-trust-score-value { font-size: 14px; line-height: 20px; text-transform: uppercase; font-weight: 600; }
.sidebar-trust-score-value-ok, .sidebar-trust-score-risk.sidebar-trust-score-value-ok { color: var(--color-threat-green); }
.sidebar-trust-score-value-warning, .sidebar-trust-score-risk.sidebar-trust-score-value-warning { color: var(--color-threat-orange); }
.sidebar-trust-score-value-danger, .sidebar-trust-score-risk.sidebar-trust-score-value-danger { color: var(--color-threat-red); }
.sidebar-threats-score { font-size: 96px; line-height: 96px; font-weight: 400; letter-spacing: -0.03em; }
.sidebar-trust-score-risk { font-size: 15px; font-weight: 600; text-transform: uppercase; }
.sidebar-threat-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 20px 0 0; }
.sidebar-threat-badges li { text-transform: uppercase; padding: 4px 9px; font-weight: 600; font-size: 13px; line-height: 20px; letter-spacing: 0.02em; border: 1px solid; border-radius: 5px; white-space: nowrap; }
.sidebar-threat-badge-ok { color: var(--color-threat-green); border-color: var(--color-threat-green); }
.sidebar-threat-badge-neutral { color: var(--color-threat-gray); border-color: color-mix(in srgb, var(--color-threat-gray) 55%, transparent); }
.sidebar-threat-badge-warning { color: var(--color-threat-orange); border-color: var(--color-threat-orange); }
.sidebar-threat-badge-danger { color: var(--color-threat-red); border-color: var(--color-threat-red); }
html[data-theme="dark"] .sidebar-threat-badge-neutral { background: rgba(96, 165, 250, 0.06); color: #5C7A99; }
html[data-theme="dark"] .sidebar-threat-badge-ok { background: rgba(66, 186, 150, 0.12); }
html[data-theme="dark"] .sidebar-threat-badge-warning { background: rgba(254, 127, 35, 0.15); }
html[data-theme="dark"] .sidebar-threat-badge-danger { background: rgba(252, 119, 116, 0.1); }

/* the block list: tall enough for its watermark, as the original */
.sidebar-section-blocklist { min-height: 236px; }
.sidebar-blocklist-table { display: flex; flex-direction: column; font-weight: 600; }
.sidebar-blocklist-table-header, .sidebar-blocklist-table-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; padding: 7px 10px; border-radius: 5px; }
.sidebar-blocklist-table-header { text-transform: uppercase; color: var(--color-sidebar-section-heading); font-weight: 800; font-size: 12px; line-height: 18px; letter-spacing: 0.04em; padding-top: 0; }
.sidebar-blocklist-table-row:nth-child(2n+1) { background-color: color-mix(in srgb, var(--color-table-row) 70%, transparent); }
.sidebar-blocklist-link { color: var(--color-table-link); text-decoration: none; }
.sidebar-blocklist-link:hover { color: var(--color-table-link); text-decoration: underline; }

/* sign up */
.sidebar-signup { background: color-mix(in srgb, var(--color-signup-bg) 76%, transparent); color: var(--color-card-text); font-weight: 500; font-size: 15px; line-height: 22px; }
.sidebar-signup-title { margin: 0 0 10px; color: var(--color-button-active); font-weight: 800; font-size: 28px; line-height: 30px; text-transform: uppercase; }
html[data-theme="dark"] .sidebar-signup-title { color: #C8D6E5; }
.sidebar-signup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sidebar-signup-main, .sidebar-signup-secondary { display: inline-flex; align-items: center; background: none; border: 1px solid transparent; color: var(--color-button-active); cursor: pointer; font-weight: 600; font-size: 16px; line-height: 24px; padding: 7px 14px; border-radius: 6px; text-decoration: none; transition: all 0.2s ease; }
.sidebar-signup-main { border-color: var(--color-button-active); }
.sidebar-signup-main:hover, .sidebar-signup-main:focus-visible { background: var(--color-button-active); color: #fff; }
.sidebar-signup-secondary:hover, .sidebar-signup-secondary:focus-visible { border-color: var(--color-button-active); }
.sidebar-signup-btn-icon { margin-left: 8px; }

.map-controls { position: absolute; right: 24px; bottom: 44px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---- narrow screens: no map (the site draws no hero map there either), the sidebar in the page's flow ---- */
@media (max-width: 899px) {
  .addr-body { overflow: auto; }
  .main { height: auto; overflow: visible; }
  .map-container, .sidebar-bg { display: none; }
  body.addr-body .navbar, body.addr-body .navbar.scrolled { background: var(--color-bg); }
  .sidebar-container { width: 100%; height: auto; overflow: visible; }
  .sidebar { padding: 16px var(--container-padding) 32px; }
}
@media (max-width: 420px) {
  .sidebar-summary-row { grid-template-columns: 96px 1fr; column-gap: 12px; }
  .sidebar-section-sidenote { font-size: 30px; }
  .sidebar-columns { grid-template-columns: 1fr; }
}

/* ---- the map's padding: --map-pad-* say how much of the map the sidebar or the readouts cover; js/address-map.js reads them ---- */
html { --map-pad-left: 486px; --map-pad-right: 36px; }   /* the sidebar's width + 36: the column at 900–1099px */
.sidebar-summary-wrap { margin-bottom: var(--sidebar-gap); }
.sidebar-summary-wrap .sidebar-summary-footer { margin-bottom: 0; }
.sidebar-guide { margin: 0; }





/* ---- the HUD: the readouts on the map, no cards (his pick among thirteen layouts, 2026-10-22); data-layout="hud" is set in the head when the facts are there, at every width since 2026-10-22; the sidebar column stays for the error page and without JS ---- */
.addr-alt { display: none; }
/* ---- the HUD's language at every width: bare readouts with bracket corners, mono labels, the score and the badges ---- */
.alt-score { font-size: 30px; line-height: 30px; font-weight: 400; letter-spacing: -0.03em; }
.alt-risk { margin-left: 10px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.06em; }
.alt-ok { color: var(--color-threat-green) !important; } .alt-warning { color: var(--color-threat-orange) !important; } .alt-danger { color: var(--color-threat-red) !important; }
.hud-corner { padding: 14px 16px; color: var(--color-primary); text-shadow: 0 0 6px var(--color-bg), 0 0 10px var(--color-bg), 0 1px 2px var(--color-bg); }
.hud-corner::before, .hud-corner::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent); }
.hud-ml::before { left: 0; top: 0; border-width: 1px 0 0 1px; } .hud-ml::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hud-tl::before { left: 0; top: 0; border-width: 1px 0 0 1px; } .hud-tl::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.hud-tr::before { right: 0; top: 0; border-width: 1px 1px 0 0; } .hud-tr::after { left: 0; bottom: 0; border-width: 0 0 1px 1px; }
.hud-br::before { right: 0; bottom: 0; border-width: 0 1px 1px 0; } .hud-br::after { left: 0; top: 0; border-width: 1px 0 0 1px; }
.hud-ip { font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.02em; margin: 0 0 6px; }   /* an h1 since the page is served by the app (2026-10-23) */
.hud-note { margin: 10px 0 0; font-size: 13px; line-height: 18px; color: var(--color-card-text); }   /* the page script's word when the full record cannot load */
/* the challenge: Cloudflare's widget is invisible for most visitors; when it needs a tick, the panel shows, centred over the map (his ask, 2026-10-23) */
.hud-check { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.hud-check.is-open { opacity: 1; pointer-events: auto; }
.hud-check-panel { display: grid; justify-items: center; gap: 14px; padding: 20px 24px; background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); border: 1px solid var(--color-card-border); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.1); }
.hud-check-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--color-card-text); text-align: center; }
.hud-check-retry { appearance: none; border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--color-button-active); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hud-check-retry[hidden] { display: none; }
.hud-turnstile { min-width: 300px; min-height: 65px; }   /* the widget's own box */
.hud-check[data-state="checking"] .hud-turnstile, .hud-check[data-state="failed"] .hud-turnstile { min-height: 0; height: 0; overflow: hidden; }   /* no empty box under the word; the host stays in the page for the widget */
@media (prefers-reduced-motion: reduce) { .hud-check { transition: none; } }
.hud-where { font-weight: 600; font-size: 15px; color: var(--color-card-text); margin-bottom: 10px; }
.hud-label { text-transform: uppercase; color: var(--color-sidebar-section-heading); font-weight: 800; font-size: 11px; letter-spacing: 0.06em; margin-bottom: 4px; }
.hud-tl .hud-label { margin-top: 12px; }
.hud-score .alt-score { font-size: 64px; line-height: 64px; font-weight: 500; letter-spacing: -0.04em; }
html:not([data-theme="dark"]) .hud-score .alt-ok, html:not([data-theme="dark"]) .hud-tr .alt-risk.alt-ok { color: #1f9a6d !important; }   /* the light theme's green is too pale at 64px */
html:not([data-theme="dark"]) .hud-score .alt-score { font-weight: 600; }
.hud-badges { margin: 12px 0 0; justify-content: flex-end; }   /* the sidebar's bordered badges, right-aligned under the score */
.hud-lists { margin-top: 8px; font-size: 13px; color: var(--color-threat-red); font-weight: 600; }
.hud-analysis { margin: 0; font-weight: 600; font-size: 15px; line-height: 22px; }
/* light: bare readouts as in dark (the frosted panes came and went, his calls 2026-10-16 and 2026-10-19); the type carries the text */
html:not([data-theme="dark"]) .hud-corner { text-shadow: none; color: var(--color-primary); }
html:not([data-theme="dark"]) .hud-corner::before, html:not([data-theme="dark"]) .hud-corner::after { border-color: color-mix(in srgb, var(--color-primary) 60%, transparent); }
html:not([data-theme="dark"]) .hud-where { color: var(--color-card-text); font-weight: 500; font-size: 16px; }
html:not([data-theme="dark"]) .hud-corner { font-weight: 500; }
html:not([data-theme="dark"]) .hud-label { color: color-mix(in srgb, var(--color-primary) 74%, transparent); font-size: 11.5px; letter-spacing: 0.08em; }   /* the labels as he preferred them: bold, near-solid ink */
html:not([data-theme="dark"]) .hud-lists { color: var(--color-threat-red); }
html:not([data-theme="dark"]) .hud-analysis { font-size: 15px; line-height: 23px; font-weight: 500; color: var(--color-card-text); }
@media (min-width: 900px) {   /* the corners of the map; 900–1099px narrowed below */
  html[data-layout="hud"] .sidebar-container, html[data-layout="hud"] .sidebar-bg { display: none; }
  html[data-layout="hud"] .addr-alt { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; }
  .addr-alt > * { pointer-events: auto; }

  /* the corners of the map: no boxes, halos and brackets */
  html[data-layout="hud"] { --map-pad-left: 500px; --map-pad-right: 36px; --map-pad-top: 150px; --map-pad-bottom: 170px; }   /* the left edge carries three blocks; the pin keeps right of them */
  .hud-scrim { position: absolute; left: 0; right: 0; height: 260px; pointer-events: none; }
  .hud-scrim-top { top: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg) 72%, transparent), transparent); }
  .hud-scrim-bottom { bottom: 0; background: linear-gradient(to top, color-mix(in srgb, var(--color-bg) 72%, transparent), transparent); }
  .hud-corner { position: absolute; width: 400px; }
  .hud-tl { left: 24px; top: 24px; } .hud-tr { right: 24px; top: 24px; text-align: right; width: 450px; } .hud-br { right: 24px; bottom: 28px; width: 380px; }
  /* the left edge is one column: the address, its line and the analysis at the top, the network objects at the bottom (his pick, 2026-10-22) */
  .hud-left { position: absolute; left: 24px; top: 24px; bottom: 28px; width: 420px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
  .hud-left .hud-corner { position: relative; left: auto; top: auto; bottom: auto; width: auto; pointer-events: auto; }
  .hud-left .hud-ml-group { display: flex; flex-direction: column; gap: 14px; margin: auto 0 0; min-height: 0; overflow: auto; scrollbar-width: none; pointer-events: auto; }   /* the object blocks take the bottom, stacked (the readouts want the width); one scroll region when the column is short */
  .hud-left .hud-ml { margin: 0; flex: none; min-width: 0; }
  .hud-br { text-align: right; }   /* the location readouts keep the corner's right edge */
  /* the light theme: the dark map is dim by nature, the light one is not, so the readouts get pools of paper
     behind them, taller scrims, darker labels and real halos (his note 2026-10-16: light "doesn't look as
     good or as clear as the dark mode") */
  /* the light theme: no haze and no halo (his asks, 2026-10-16). The readouts are told apart from the map's own
     text by weight, size and solid ink instead, and the map's place names step back under them */
  html:not([data-theme="dark"]) .hud-scrim { display: none; }
  /* light: a soft fade of the page colour along the two edges the readouts sit on (no edge, no blur, the middle vivid) */
  .hud-fade { position: absolute; top: 0; bottom: 0; width: 640px; pointer-events: none; display: none; }
  .hud-fade-l { left: 0; background: linear-gradient(to right, color-mix(in srgb, var(--color-bg) 92%, transparent) 0, color-mix(in srgb, var(--color-bg) 78%, transparent) 300px, color-mix(in srgb, var(--color-bg) 30%, transparent) 500px, transparent 640px); }
  .hud-fade-r { right: 0; background: linear-gradient(to left, color-mix(in srgb, var(--color-bg) 90%, transparent) 0, color-mix(in srgb, var(--color-bg) 70%, transparent) 300px, color-mix(in srgb, var(--color-bg) 25%, transparent) 500px, transparent 640px); }
  html:not([data-theme="dark"]) .hud-fade { display: block; }
  html:not([data-theme="dark"]) .hud-left { width: 440px; } html:not([data-theme="dark"]) .hud-tr { width: 470px; } html:not([data-theme="dark"]) .hud-br { width: 400px; }
  html[data-layout="hud"] .maplibregl-ctrl-bottom-right { bottom: 50%; transform: translateY(50%); }   /* the corners are taken: the controls sit mid-edge */

}

@media (min-width: 900px) and (max-width: 1099px) {   /* small laptops and landscape tablets: the same corners, narrower, the pin's room between them */
  html[data-layout="hud"] { --map-pad-left: 430px; }
  .hud-left, html:not([data-theme="dark"]) .hud-left { width: 380px; }
  .hud-tr, html:not([data-theme="dark"]) .hud-tr { width: 360px; }
  .hud-br, html:not([data-theme="dark"]) .hud-br { width: 320px; }
  .hud-left .hud-ml-group { gap: 8px; }
}
/* ---- the HUD on phones (his ask 2026-10-22, "I'd like the phone to speak the HUD's language"): the map fixed behind every section,
   the readouts one left-aligned column (address + analysis, score + badges, ASN, company, carrier, location) with no gap for the
   pin (his call: the network blocks take the space after the badges), scrims pinned to the screen's top and bottom and a wash of the page colour in light.
   His calls the same day: the map as the background of every section (a sheet of the page colour was tried), everything
   left-aligned, the location block in the company's form, one finger scrolls the page (two move the map) ---- */
/* ---- the facts as readouts: the value big with its label under it, two to a row, like the score (his pick among eleven forms, 2026-10-22) ---- */
.kv-readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-top: 8px; }
.kv-ro b { display: block; font-weight: 700; font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.kv-ro span { display: block; margin-top: 1px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; font-weight: 800; color: var(--color-sidebar-section-heading); }
@media (max-width: 899px) {
  html[data-layout="hud"] .map-container { display: block; }   /* the column hides it on narrow screens; the HUD is built on it */
  html[data-layout="hud"] .sidebar-container, html[data-layout="hud"] .sidebar-bg { display: none; }
  html[data-layout="hud"] body.addr-body .navbar, html[data-layout="hud"] body.addr-body .navbar.scrolled { background: color-mix(in srgb, var(--color-bg) 58%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
  html[data-layout="hud"] { --map-pad-left: 24px; --map-pad-right: 24px; --map-pad-top: 36px; --map-pad-bottom: 36px; }   /* the map is the ground under the column: the pin near the screen's middle */
  html[data-layout="hud"] .addr-alt { display: flex; flex-direction: column; position: relative; z-index: 2; padding: 6px 16px 24px; pointer-events: none; }
  .addr-alt > * { pointer-events: auto; }
  .hud-left { display: contents; }   /* the column's blocks join the one stack */
  .hud-tl { order: 1; } .hud-tr { order: 2; } .hud-ml-group { order: 3; } .hud-br { order: 4; }
  .hud-corner { position: relative; width: auto; margin-bottom: 8px; }
  .hud-tr { text-align: left; }
  .hud-badges { justify-content: flex-start; }
  .hud-ml-group { display: flex; flex-direction: column; gap: 0; margin: 0; overflow: visible; }
  .hud-ml { flex: none; margin: 0 0 8px; }
  .hud-tr::before { left: 0; right: auto; top: 0; border-width: 1px 0 0 1px; } .hud-tr::after { right: 0; left: auto; bottom: 0; border-width: 0 1px 1px 0; }   /* every block's brackets top-left and bottom-right, as the column reads */
  .hud-scrim { position: fixed; left: 0; right: 0; height: 300px; pointer-events: none; }   /* the scrims ride the screen, not the page */
  .hud-scrim-top { top: var(--navbar-height); background: linear-gradient(to bottom, color-mix(in srgb, var(--color-bg) 80%, transparent), color-mix(in srgb, var(--color-bg) 45%, transparent) 55%, transparent); }
  .hud-scrim-bottom { bottom: 0; height: 220px; background: linear-gradient(to top, color-mix(in srgb, var(--color-bg) 80%, transparent), transparent); }
  html:not([data-theme="dark"]) .hud-scrim { display: block; }   /* the phone's text spans the map, so the scrims stand in for the desktop's edge fades */
  .hud-fade { display: none !important; }
  html:not([data-theme="dark"]) .map-container::after { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--color-bg) 42%, transparent); pointer-events: none; }
  .hud-ip { font-size: 36px; }
  .hud-score .alt-score { font-size: 56px; line-height: 56px; }
  .maplibregl-ctrl-bottom-right { bottom: 14px; transform: none; }   /* the controls in the screen's corner */
  .maplibregl-cooperative-gesture-screen { display: none !important; }   /* two fingers move the map, but no notice about it (his ask, 2026-10-22) */
}

/* the share button beside the address (his pick, 2026-10-24): a glass square after the IP; "Link copied" appears to its right */
.hud-share, .hud-star { display: inline-flex; align-items: center; justify-content: center; position: relative; width: 30px; height: 30px; margin-left: 12px; vertical-align: middle; border: 1px solid var(--color-card-border); border-radius: 7px; background: color-mix(in srgb, var(--color-sidebar-section-bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--color-card-text); cursor: pointer; padding: 0; }
.hud-share svg, .hud-star svg { width: 15px; height: 15px; }
.hud-share:hover, .hud-share:focus-visible, .hud-star:hover, .hud-star:focus-visible { color: var(--color-button-active); border-color: var(--color-button-active); }
.hud-share::after { content: 'Link copied'; position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-4px); white-space: nowrap; padding: 4px 8px; border-radius: 5px; background: var(--color-primary); color: var(--color-bg); font-family: HKGroteskPro, 'Inter', sans-serif; font-weight: 600; font-size: 12px; line-height: 16px; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; }
.hud-share.is-done::after { opacity: 1; transform: translateY(-50%); }

/* The star beside the address (2026-11-04): a favourite for the research tool, which drains this browser's queue
   when it next opens. Lit when on; the toast below says where the favourite went. */
.hud-star { margin-left: 8px; }
.hud-star svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.hud-star.is-on { color: var(--color-button-active); border-color: var(--color-button-active); }
.hud-star.is-on svg path { fill: currentColor; }
.hud-toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; max-width: min(92vw, 560px); padding: 10px 14px; border-radius: 8px; background: var(--color-primary); color: var(--color-bg); font-family: HKGroteskPro, 'Inter', sans-serif; font-weight: 600; font-size: 13px; line-height: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.hud-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.hud-toast a { color: inherit; text-decoration: underline; text-underline-offset: 2px; margin-left: 8px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .hud-toast { transition: none; } }
