/* ==========================================================================
   Subnet Calculator page. Enqueued only via is_page('subnet-calculator').
   Reuses site.css tokens (--navy/--ink/--muted/--blue/--teal/--bg/--white/--border/
   --amber/--red/--radius/--container/--shadow-sm/--shadow-md/--font-mono).
   ========================================================================== */

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.vlsm-breadcrumb{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);margin-bottom:20px}
.vlsm-breadcrumb a{color:var(--muted)}
.vlsm-breadcrumb a:hover,.vlsm-breadcrumb a:focus-visible{color:var(--blue)}
.vlsm-breadcrumb [aria-current]{color:var(--ink);font-weight:600}

.subnet-hero{padding:120px 0 36px;background:var(--white)}
.subnet-hero-head{max-width:760px;margin:0 auto;text-align:center}
.subnet-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--teal);margin-bottom:14px}
.subnet-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--teal);flex:none}
.subnet-hero h1{font-size:clamp(28px,3.6vw,38px);color:var(--navy);margin-bottom:12px}
.subnet-hero-lede{color:var(--muted);font-size:16.5px;line-height:1.55;margin:0 auto}

/* ==========================================================================
   Tool shell
   ========================================================================== */
.subnet-tool{padding:8px 0 56px;background:var(--white)}
.subnet-tool-shell{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:28px}

.subnet-family-toggle{display:inline-flex;gap:4px;background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:4px;margin-bottom:18px}
.subnet-family-toggle label{position:relative;font-size:13.5px;font-weight:600;color:var(--muted);padding:8px 16px;border-radius:999px;cursor:pointer;transition:color .15s}
.subnet-family-toggle input{position:absolute;opacity:0;width:1px;height:1px}
.subnet-family-toggle input:checked + span{color:var(--white)}
.subnet-family-toggle label:has(input:checked){background:var(--navy)}
.subnet-family-toggle input:focus-visible ~ span{outline:3px solid var(--blue);outline-offset:2px;border-radius:999px}

.subnet-input-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.subnet-field{flex:1 1 340px;min-width:0}
.subnet-field label{display:block;font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.subnet-field input{width:100%;height:52px;padding:0 16px;border:1px solid var(--border);border-radius:var(--radius-sm);font:600 16px/1 var(--font-mono);color:var(--ink);background:var(--white)}
.subnet-field input:focus-visible{outline:3px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.subnet-input-hint{font-size:12.5px;color:var(--muted);margin-top:6px}

.subnet-toggle-advanced-input{background:none;border:0;color:var(--blue);font-size:13.5px;font-weight:600;cursor:pointer;padding:10px 0 0;text-align:left}
.subnet-toggle-advanced-input:hover,.subnet-toggle-advanced-input:focus-visible{text-decoration:underline}

.subnet-separate-fields{display:grid;grid-template-columns:2fr 1fr 1.3fr;gap:12px;margin-top:14px}

.subnet-actions-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:14px}

.subnet-error{margin-top:16px;padding:14px 16px;border:1px solid #F3C6C1;background:#FDF2F1;border-radius:var(--radius-sm);color:var(--red);font-size:14px;font-weight:600}
.subnet-error[hidden]{display:none}

/* ==========================================================================
   Empty state
   ========================================================================== */
.subnet-empty-state{margin-top:20px;padding:16px 18px;border:1px dashed var(--border);border-radius:var(--radius-sm);color:var(--muted);font-size:14px;line-height:1.55;background:var(--bg)}
.subnet-empty-state[hidden]{display:none}
.subnet-empty-state strong{display:block;color:var(--ink);font-size:14.5px;margin-bottom:2px}

/* ==========================================================================
   Results
   ========================================================================== */
.subnet-results{margin-top:28px;padding-top:28px;border-top:1px solid var(--border)}
.subnet-results[hidden]{display:none}

/* ---- verdict hero ---- */
.subnet-verdict{padding:15px 20px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);margin-bottom:16px}
.subnet-verdict-eyebrow{display:block;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:4px}
.subnet-verdict-main{font-size:20px;font-weight:700;color:var(--navy);margin:0 0 6px;line-height:1.3;font-family:var(--font-mono)}
.subnet-verdict-support{margin:0 0 4px;font-size:13.5px;color:var(--ink);font-weight:600}
.subnet-verdict-position{margin:0;font-size:13px;color:var(--muted)}
.subnet-normalized-note{margin:10px 0 0;padding:9px 13px;border-radius:var(--radius-sm);background:#EAF1FE;border:1px solid #BFD3F7;color:#1D4FC4;font-size:12.5px;font-weight:600}
.subnet-normalized-note[hidden]{display:none}

.subnet-special-note{margin:0 0 18px;padding:13px 16px;border:1px solid #EFD7AE;background:#FCF6EA;border-radius:var(--radius-sm);color:#7A5510;font-size:13.5px;line-height:1.5}
.subnet-special-note[hidden]{display:none}

/* ---- 4-up metric strip ---- */
.subnet-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;margin-bottom:18px}
.subnet-metric{padding:14px 16px;border-right:1px solid var(--border);background:var(--white);display:flex;flex-direction:column;gap:6px}
.subnet-metric:last-child{border-right:0}
.subnet-metric-label{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.subnet-metric-value{font:700 16px var(--font-mono);color:var(--navy);word-break:break-word}

.subnet-actions{display:flex;gap:10px;margin-top:0;margin-bottom:22px;flex-wrap:wrap}

.subnet-explain{margin:0 0 22px;padding:16px 18px;background:var(--bg);border-radius:var(--radius-sm);color:var(--ink);font-size:14.5px;line-height:1.6}

.subnet-ipv6-note{margin-top:14px;font-size:13px;color:var(--muted)}
.subnet-ipv6-note[hidden]{display:none}

/* ==========================================================================
   Address Space — position markers on a track, never proportional network/
   broadcast blocks. Marker left% is always (enteredIpInt-networkInt)/total*100,
   never clamped. A separate callout lane (below) annotates the entered-IP
   marker without ever moving the marker itself.
   ========================================================================== */
.subnet-space-heading{margin:0 0 16px}
.subnet-space-intro{font-size:13px;color:var(--muted);margin:0 0 12px}
.subnet-space-callout-lane{position:relative;margin-bottom:8px}
.subnet-space-callout-lane[hidden]{display:none}

/* Normal-host annotation lane: a real normal-flow row above the track (inside a shared
   position:relative group with it), so its measured height pushes the track down instead of
   the entered-address callout floating on top of it. Height is set inline by JS per-render. */
.subnet-space-annogroup{position:relative}
.subnet-space-annolane{position:relative;height:0}
.subnet-space-callout-connector{position:absolute;inset:0;pointer-events:none;overflow:visible}
.subnet-space-callout-connector-line{stroke:var(--border);stroke-width:1.5}
.subnet-space-callout-connector-dot{fill:var(--blue)}
.subnet-space-callout{position:absolute;top:0;left:0;display:flex;flex-direction:column;gap:1px;padding:8px 12px;background:var(--white);border:1px solid var(--blue);border-radius:8px;box-shadow:var(--shadow-md);white-space:nowrap;max-width:calc(100vw - 48px);text-align:left}
.subnet-space-callout-line1{font:700 12.5px var(--font-mono);color:var(--navy)}
.subnet-space-callout-line2{font-size:11px;color:var(--muted);font-weight:600}

.subnet-space-track{position:relative;height:14px;border-radius:7px;background:var(--bg);border:1px solid var(--border);margin:0 10px}
.subnet-space-boundary{position:absolute;top:-6px;width:2px;height:26px;background:var(--navy);transform:translateX(-1px)}
.subnet-space-boundary-label{position:absolute;top:22px;font-size:10.5px;color:var(--muted);font-weight:700;white-space:nowrap;transform:translateX(-50%)}
.subnet-space-boundary.is-start .subnet-space-boundary-label{transform:translateX(0)}
.subnet-space-boundary.is-end .subnet-space-boundary-label{transform:translateX(-100%)}
.subnet-space-marker{position:absolute;top:-10px;width:3px;height:34px;background:var(--blue);transform:translateX(-1.5px);border-radius:2px}
.subnet-space-marker::after{content:"";position:absolute;top:-6px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid var(--blue)}

/* Combined endpoint state: entered address coincides exactly with the network or
   broadcast/last address. The boundary tick itself becomes the merged marker (taller,
   blue, arrowed like .subnet-space-marker) and carries a compact boxed label instead of
   a floating callout, so there is only ever one marker and one text block at that x. */
.subnet-space-boundary.is-combined{width:3px;height:34px;top:-10px;background:var(--blue);transform:translateX(-1.5px)}
.subnet-space-boundary.is-combined::after{content:"";position:absolute;top:-6px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:7px solid var(--blue)}
.subnet-space-boundary-callout{position:absolute;top:22px;display:flex;flex-direction:column;gap:1px;padding:6px 10px;background:var(--white);border:1px solid var(--blue);border-radius:8px;box-shadow:var(--shadow-md);white-space:nowrap;max-width:calc(100vw - 48px)}
.subnet-space-boundary.is-start .subnet-space-boundary-callout{left:0;transform:translateX(0)}
.subnet-space-boundary.is-end .subnet-space-boundary-callout{left:auto;right:0;transform:translateX(0)}
.subnet-space-boundary-callout-value{font:700 12.5px var(--font-mono);color:var(--navy)}
.subnet-space-boundary-callout-desc{font-size:10.5px;color:var(--muted);font-weight:600}
.subnet-visual-map.has-combined-endpoint + .subnet-space-legend{margin-top:56px}
@media (max-width:420px){
	.subnet-space-boundary-callout{white-space:normal;max-width:min(190px, calc(100vw - 40px))}
	.subnet-visual-map.has-combined-endpoint + .subnet-space-legend{margin-top:64px}
}

.subnet-space-legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:38px;font-size:12px;color:var(--muted)}
.subnet-space-legend span{display:inline-flex;align-items:center;gap:6px}
.subnet-space-legend i{width:10px;height:10px;border-radius:2px;display:inline-block}
.subnet-space-legend i.dot-network{background:var(--navy)}
.subnet-space-legend i.dot-entered{background:var(--blue)}
.subnet-space-legend i.dot-broadcast{background:var(--navy)}

/* simple two-endpoint / single-address visualization for /31 /32 /127 /128 */
.subnet-space-simple{display:flex;align-items:center;justify-content:center;gap:18px;padding:20px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);flex-wrap:wrap}
.subnet-space-endpoint{font:700 15px var(--font-mono);color:var(--navy);padding:10px 16px;border-radius:8px;background:var(--white);border:1px solid var(--border)}
.subnet-space-endpoint.is-current{border-color:var(--blue);box-shadow:0 0 0 3px #EAF1FE}
.subnet-space-endpoint-arrow{color:var(--muted);font-size:18px}

/* ==========================================================================
   Prefix Anatomy — genuine bit-count proportion (network bits / total bits),
   not an address-space geometry, so a plain proportional bar is accurate here.
   ========================================================================== */
.subnet-anatomy-bar{display:flex;height:40px;border-radius:8px;overflow:hidden;border:1px solid var(--border)}
.subnet-anatomy-network{background:var(--navy);color:var(--white);display:flex;align-items:center;justify-content:center;font:700 12.5px var(--font-mono);overflow:hidden;white-space:nowrap}
.subnet-anatomy-host{background:var(--bg);color:var(--muted);display:flex;align-items:center;justify-content:center;font:600 12.5px var(--font-mono);overflow:hidden;white-space:nowrap}
.subnet-anatomy-caption{display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:12.5px;color:var(--muted)}
.subnet-anatomy-caption b{color:var(--ink);font-family:var(--font-mono)}

/* ==========================================================================
   Prefix Equivalents
   ========================================================================== */
.subnet-equiv-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.subnet-equiv-row{display:flex;flex-direction:column;gap:4px;padding:13px 16px;border-bottom:1px solid var(--border);background:var(--white)}
.subnet-equiv-row:nth-child(odd){border-right:1px solid var(--border)}
.subnet-equiv-label{font-size:11px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.subnet-equiv-value{font:700 15px var(--font-mono);color:var(--navy);word-break:break-all}
.subnet-equiv-row.is-wide{grid-column:1 / -1;border-right:0}

/* ==========================================================================
   Boundary Ruler (reuses the proven tick pattern from Subnet Splitter)
   ========================================================================== */
.subnet-boundary-wrap[hidden]{display:none}
.subnet-boundary-caption{font-size:13px;color:var(--muted);margin:0 0 10px}
.subnet-boundary-ticks{display:flex;justify-content:space-between;position:relative;margin-top:22px}
.subnet-boundary-tick{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10.5px;color:var(--muted);flex:1 1 0;min-width:0}
.subnet-boundary-tick::before{content:"";width:2px;height:8px;background:var(--navy);margin-top:-27px;border-radius:1px}
.subnet-boundary-tick b{font:700 11px var(--font-mono);color:var(--navy);white-space:nowrap}
.subnet-boundary-tick.is-current{color:var(--blue)}
.subnet-boundary-tick.is-current::before{background:var(--blue);width:3px}
.subnet-boundary-tick.is-current b{color:var(--blue)}
.subnet-boundary-tick.is-ellipsis{color:var(--border);font-weight:700}
.subnet-boundary-tick.is-ellipsis::before{background:var(--border)}
.subnet-boundary-note{margin:10px 0 0;font-size:12.5px;color:var(--muted);line-height:1.5}
.subnet-boundary-note b{font-family:var(--font-mono);color:var(--ink)}

/* ==========================================================================
   Nearby Prefixes / Required-host decision explorer (shared option-card style)
   ========================================================================== */
.subnet-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.subnet-option{padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--white);text-align:center;cursor:pointer;font-family:inherit}
.subnet-option:hover,.subnet-option:focus-visible{border-color:var(--blue);background:#EAF1FE}
.subnet-option.is-selected{border-color:var(--navy);background:var(--navy)}
.subnet-option.is-selected .subnet-option-prefix,.subnet-option.is-selected .subnet-option-tag{color:var(--white)}
.subnet-option.is-selected .subnet-option-stat{color:#C7D3E8}
.subnet-option.is-insufficient{border-color:#F3C6C1}
.subnet-option-prefix{display:block;font:700 20px var(--font-mono);color:var(--navy);margin-bottom:2px}
.subnet-option-tag{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--teal);margin-bottom:8px;min-height:13px}
.subnet-option-stat{display:block;font-size:12.5px;color:var(--muted);line-height:1.6}
.subnet-option-stat b{color:var(--ink);font-family:var(--font-mono)}
.subnet-option-change{margin:0 0 0;font-size:12px;color:var(--muted);line-height:1.5;text-align:center}
.subnet-option-change b{color:var(--ink)}

/* ==========================================================================
   Neighboring Subnets
   ========================================================================== */
.subnet-neighbors{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:10px;align-items:stretch}
.subnet-neighbor{padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--white);display:flex;flex-direction:column;justify-content:center;gap:6px;text-align:center;cursor:pointer;font-family:inherit}
.subnet-neighbor:hover,.subnet-neighbor:focus-visible{border-color:var(--blue);background:#EAF1FE}
.subnet-neighbor-tag{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.subnet-neighbor-cidr{font:700 15px var(--font-mono);color:var(--navy)}
.subnet-neighbor.is-current{cursor:default;border-color:var(--navy);background:var(--navy)}
.subnet-neighbor.is-current .subnet-neighbor-tag{color:#C7D3E8}
.subnet-neighbor.is-current .subnet-neighbor-cidr{color:var(--white);font-size:17px}
.subnet-neighbor:disabled{opacity:.45;cursor:not-allowed}
.subnet-neighbor:disabled:hover{border-color:var(--border);background:var(--white)}

/* ==========================================================================
   Disclosures (Show Binary / Advanced / Required hosts)
   ========================================================================== */
.subnet-disclosure{margin-top:16px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.subnet-disclosure summary{list-style:none;cursor:pointer;padding:15px 18px;font-size:14px;font-weight:700;color:var(--navy);display:flex;align-items:center;justify-content:space-between;background:var(--bg)}
.subnet-disclosure summary::-webkit-details-marker{display:none}
.subnet-disclosure summary::after{content:"+";font-size:18px;color:var(--muted);flex:none}
.subnet-disclosure[open] summary::after{content:"\2212"}
.subnet-disclosure summary:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.subnet-disclosure-body{padding:18px}

.subnet-bit-legend{display:flex;gap:18px;margin-bottom:14px;font-size:12.5px;color:var(--muted)}
.subnet-bit-legend span{display:inline-flex;align-items:center;gap:6px}
.subnet-bit-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.subnet-bit-legend .legend-network{background:var(--blue)}
.subnet-bit-legend .legend-host{background:var(--border)}

.subnet-binary-ipv4-grid{display:flex;flex-wrap:wrap;gap:3px;font-family:var(--font-mono)}
.subnet-bit{width:26px;height:32px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;border-radius:4px;color:var(--white)}
.subnet-bit-network{background:var(--blue)}
.subnet-bit-host{background:var(--border);color:var(--ink);font-weight:600}
.subnet-bit-octet-start{margin-left:8px}

.subnet-binary-ipv6-grid{display:flex;flex-direction:column;gap:6px;overflow-x:auto}
.subnet-binary-v6-row{display:flex;flex-wrap:nowrap;gap:2px;font-family:var(--font-mono)}
.subnet-binary-v6-row .subnet-bit{width:16px;height:24px;font-size:10px;border-radius:3px;flex:none}

.subnet-adv-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}
.subnet-adv-row{display:flex;justify-content:space-between;gap:10px;padding:12px 15px;border-bottom:1px solid var(--border);font-size:13.5px}
.subnet-adv-row:nth-child(odd){border-right:1px solid var(--border)}
.subnet-adv-row .subnet-adv-label{color:var(--muted);font-weight:600}
.subnet-adv-row .subnet-adv-value{font-family:var(--font-mono);color:var(--ink);text-align:right;word-break:break-word}

.subnet-table-wrap{overflow-x:auto;border-radius:10px;border:1px solid var(--border)}
.subnet-table-wrap table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:560px}
.subnet-table-wrap thead th{background:var(--navy);color:var(--white);font-size:12px;letter-spacing:.03em;font-weight:700;padding:12px 14px;text-align:left}
.subnet-table-wrap td{padding:12px 14px;border-bottom:1px solid var(--border);color:var(--ink);font-family:var(--font-mono)}
.subnet-table-wrap tbody tr:nth-child(even){background:var(--bg)}
.subnet-table-wrap tbody tr:last-child td{border-bottom:none}
.subnet-siblings-current td{background:#EAF1FE;font-weight:700}

.subnet-hosts-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:16px}
.subnet-hosts-row .subnet-field{flex:0 0 200px}
.subnet-btn{height:52px;padding:0 22px;border-radius:999px;border:0;background:var(--blue);color:var(--white);font-weight:700;font-size:14.5px;cursor:pointer}
.subnet-btn:hover,.subnet-btn:focus-visible{background:#1D4FC4}
.subnet-btn.subnet-btn-ghost{background:var(--white);border:1px solid var(--border);color:var(--ink)}
.subnet-btn.subnet-btn-ghost:hover,.subnet-btn.subnet-btn-ghost:focus-visible{border-color:var(--blue);color:var(--blue);background:#EAF1FE}
.subnet-btn-tertiary{height:auto;padding:10px 14px;border:1px solid var(--border);border-radius:999px;background:var(--white);color:var(--muted);font-weight:600;font-size:13px;cursor:pointer}
.subnet-btn-tertiary:hover,.subnet-btn-tertiary:focus-visible{color:var(--blue);border-color:#BFD3F7;background:#EAF1FE}

/* ==========================================================================
   Below-the-fold crawlable guide content
   ========================================================================== */
.subnet-guide{padding:56px 0;background:var(--bg)}
.subnet-guide-inner{max-width:840px;margin:0 auto}
.subnet-guide h2{font-size:24px;color:var(--navy);margin:44px 0 14px}
.subnet-guide h2:first-child{margin-top:0}
.subnet-guide h3{font-size:17px;color:var(--navy);margin:24px 0 8px}
.subnet-guide p{color:var(--ink);font-size:15.5px;line-height:1.65;margin:0 0 14px;max-width:74ch}
.subnet-guide ul{margin:0 0 14px;padding-left:22px;color:var(--ink);font-size:15.5px;line-height:1.65}
.subnet-guide li{margin:4px 0}
.subnet-guide code{font-family:var(--font-mono);background:var(--white);border:1px solid var(--border);border-radius:4px;padding:1px 6px;font-size:.92em}

.subnet-examples-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:18px 0}
.subnet-example-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px}
.subnet-example-card .subnet-example-cidr{font:700 15px var(--font-mono);color:var(--navy);display:block;margin-bottom:8px}
.subnet-example-card .subnet-example-desc{display:block;font-size:13.5px;margin:0;color:var(--muted)}

.subnet-related-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:10px}
.subnet-related-card{display:block;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--white)}
.subnet-related-card:hover,.subnet-related-card:focus-visible{border-color:var(--blue);background:#EAF1FE}
.subnet-related-card b{display:block;font-size:14px;color:var(--navy);margin-bottom:3px}
.subnet-related-card span{display:block;font-size:12.5px;color:var(--muted);line-height:1.5}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media(prefers-reduced-motion:reduce){
	.subnet-space-marker,.subnet-bit,.subnet-option{transition:none!important}
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media(max-width:1050px){
	.subnet-hero{padding-top:104px}
	.subnet-separate-fields{grid-template-columns:1fr 1fr}
	.subnet-examples-grid{grid-template-columns:1fr}
	.subnet-metrics{grid-template-columns:1fr 1fr}
	.subnet-metric{border-bottom:1px solid var(--border)}
	.subnet-metric:nth-child(2n){border-right:0}
}
@media(max-width:768px){
	.subnet-adv-grid,.subnet-equiv-grid{grid-template-columns:1fr}
	.subnet-adv-row:nth-child(odd),.subnet-equiv-row:nth-child(odd){border-right:0}
	.subnet-tool-shell{padding:20px}
	.subnet-separate-fields{grid-template-columns:1fr}
	.subnet-metrics{grid-template-columns:1fr 1fr}
	.subnet-metric{border-right:1px solid var(--border)}
	.subnet-metric:nth-child(2n){border-right:0}
	.subnet-options{grid-template-columns:1fr}
	.subnet-neighbors{grid-template-columns:1fr}
	.subnet-related-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
	.subnet-hero{padding:92px 0 24px}
	.subnet-hero h1{font-size:24px}
	.subnet-guide{padding:40px 0}
	.subnet-hosts-row .subnet-field{flex:1 1 100%}
	.subnet-verdict-main{font-size:16.5px}
	.subnet-metrics{grid-template-columns:1fr}
	.subnet-metric{border-right:0!important;border-bottom:1px solid var(--border)}
	.subnet-metric:last-child{border-bottom:0}
	.subnet-space-callout{font-size:11px;padding:7px 10px;max-width:calc(100vw - 32px)}
	.subnet-space-endpoint{font-size:13px;padding:8px 12px}
}
