:root {
    /* --bg: #003468; */
    --bg: rgba(0, 52, 99, 1);
    --card: #121a33;
    --text: rgba(255, 255, 255, 1);
    /* --text: #0082c4; */
    --muted: #b8c1ff;
    --border: rgba(231, 236, 255, 0.16);
    --accent: #6ea8ff;
    --warn: #ffd166;
    --bad: #ff6b6b;
    --ok: #70e000;
    --shadow: 0 12px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    /* eslint-disable-next-line css/font-family-fallbacks */
    font-family: Roboto, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    /* background: radial-gradient(1200px 800px at 1% 1%, #16224a, var(--bg)); */
    background:  var(--bg);
    color: var(--text);
}

header {
    padding: 22px 18px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    margin: 0 0 8px;
    font-weight: 400;
    letter-spacing: 0.2px;
    font-size: 32px;
}

.sub {
    margin: 0;
    color: var(--muted);
    line-height: 1.35;
    font-size: 14px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px 28px;
    display: grid;
    gap: 14px;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    /* background: rgba(97,125,164,1); */
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 14px;
}

.guide-section {
    padding: 0;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* eslint-disable-next-line css/use-baseline */
    user-select: none;
}

.guide-details summary {
    list-style: none;
    cursor: pointer;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.guide-details summary::-webkit-details-marker {
    display: none;
}

.guide-title {
    font-weight: 700;
    color: var(--text);
}

.guide-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.guide-details > summary > .guide-pill {
    font-size: 0;
}

.guide-details > summary > .guide-pill::after {
    content: 'Click to expand';
    font-size: 12px;
}

.guide-details[open] > summary > .guide-pill::after {
    content: 'Click to close';
}

.guide-content {
    padding: 12px 14px 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.guide-content h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 14px;
}

.guide-content h3 + ol,
.guide-content h3 + ul {
    margin-top: 0;
}

.guide-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 700px) {
    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.guide-column {
    display: grid;
    gap: 12px;
    align-content: start;
}

.guide-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(6, 10, 24, 0.22);
}

.guide-item summary {
    display: flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
    padding: 12px;
}

.guide-item summary::-webkit-details-marker {
    display: none;
}

.guide-item summary::after {
    content: '+';
    margin-left: auto;
    color: var(--accent);
    font-size: 18px;
    line-height: 1;
}

.guide-item[open] summary {
    border-bottom: 1px solid var(--border);
}

.guide-item[open] summary::after {
    content: '-';
}

.guide-item-content {
    padding: 12px;
}

.guide-item-content p,
.guide-item-content ul {
    margin: 0;
}

.guide-item-content ul {
    padding-left: 18px;
}

.guide-item-content li + li {
    margin-top: 6px;
}

.guide-content a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.18s ease;
}

.guide-content a:hover,
.guide-content a:focus-visible,
.guide-content a:visited {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(110, 168, 255, 0.9);
    outline: none;
}

.guide-disclaimer-link {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-disclaimer-link:hover,
.guide-disclaimer-link:focus-visible {
    color: var(--accent);
}

.row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.speed-filter {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
}

@media (min-width: 900px) {
    .row.cols2 { grid-template-columns: 1fr 1fr; }
    .row.cols3 { grid-template-columns: 1fr 1fr 1fr; }
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0;
    line-height: 1.2;
}

select, input[type="file"], input[type="number"], input[type="text"], button {
    width: 100%;
    color: var(--text);
    background: rgba(6, 10, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 10px;
    outline: none;
    font-size: 14px;
}

.speed-filter select {
    width: 72px;
}

/* .max-speed-group {
    justify-content: center;
} */

select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button {
    cursor: pointer;
    font-weight: 650;
    letter-spacing: 0.2px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.secondary {
    background: rgba(110, 168, 255, 0.14);
    border-color: rgba(110, 168, 255, 0.35);
}

button.danger {
    background: rgba(255, 107, 107, 0.14);
    border-color: rgba(255, 107, 107, 0.35);
}

.status {
    padding: 10px 12px;
    border-radius: 10px;
    /* border: 1px dashed var(--border); */
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.status strong { color: var(--text); }

.status.ok { border-color: rgba(112, 224, 0, 0.35); }
.status.warn { border-color: rgba(255, 209, 102, 0.35); }
.status.bad { border-color: rgba(255, 107, 107, 0.35); }

.actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    align-items: end;
}

.actions label { margin: 0; }
.actions button { justify-self: start; width: auto; }
.card button { justify-self: start; width: auto; }

@media (min-width: 900px) {
    .actions { grid-template-columns: 1fr 1fr 1fr; }
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.20);
}
thead th {
    text-align: left;
    font-size: 12px;
    color: var(--muted);
    padding: 10px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    position: sticky;
    top: 0;
    z-index: 1;
}

tbody td {
    padding: 10px;
    border-bottom: 1px solid rgba(231, 236, 255, 0.08);
    font-size: 13px;
}

tbody tr:hover td {
    background: rgba(110, 168, 255, 0.08);
}

.results-list {
    display: grid;
    /* width: 1164px;
    height: 555px; */
    gap: 12px;
}

/* Results report no longer changes sizes based on # of entries displayed */
#reportWrap {
    height: 52vh;
}

.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 6px;
    margin-right: 8px;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* eslint-disable-next-line css/use-baseline */
    user-select: none;
    min-width: 28px;
    min-height: 28px;
}

.result-checkbox:hover {
    background: rgba(255,255,255,0.06);
}

.result-checkbox input {
    width: auto;
    cursor: pointer;
    margin: 0;
    pointer-events: none;
}

.result-checkbox label {
    display: none;
}

.comparison-panel {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    display: none;
}

.comparison-panel.is-visible {
    display: block;
}

.comparison-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(231, 236, 255, 0.08);
    text-align: left;
    vertical-align: top;
}


.compare-table thead th {
    color: var(--text);
    background: rgba(255,255,255,0.05);
    position: static;
}

.compare-table thead th.compare-th-product {
    color: var(--muted);
}

.compare-th-header a.product-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.18s ease;
}

.compare-th-header a.product-link:hover,
.compare-th-header a.product-link:focus-visible,
.compare-th-header a.product-link:visited {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(110, 168, 255, 0.9);
    outline: none;
}

.compare-table tbody th {
    color: var(--muted);
    font-weight: 600;
    width: 140px;
    white-space: nowrap;
}

.motor-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
}

.motor-card summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
}

.motor-card summary::-webkit-details-marker {
    display: none;
}

.motor-card .card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.motor-card .card-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
}

.motor-card .card-title a.product-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.18s ease;
}

.motor-card .card-title a.product-link:hover,
.motor-card .card-title a.product-link:focus-visible,
.motor-card .card-title a.product-link:visited {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(110, 168, 255, 0.9);
    outline: none;
}

.motor-card .card-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    font-size: 13px;
    /* color: var(--muted); */
    overflow-x: auto;
    padding-bottom: 2px;
}

.motor-card .card-meta > div {
    flex: 0 0 auto;
    min-width: 120px;
    max-width: 180px;
}

.motor-card .card-meta strong {
    display: block;
    /* color: var(--text); */
    color: var(--muted);
    margin-bottom: 2px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.motor-card .pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.motor-card .pill {
    font-size: 0;
}

.motor-card .pill::after {
    content: 'Open details';
    font-size: 12px;
}

.motor-card[open] .pill::after {
    content: 'Close details';
}

.motor-card .detail-panel {
    margin: 0 12px 12px;
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    background: rgba(6, 10, 24, 0.32);
    border-radius: 0 0 10px 10px;
}

.motor-card .detail-panel table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: rgba(255,255,255,0.03);
}

.motor-card .detail-panel th,
.motor-card .detail-panel td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(231, 236, 255, 0.08);
    font-size: 13px;
    color: var(--muted);
    text-align: left;
    font-weight: 400;
    text-transform: none;
}

.motor-card .detail-panel th {
    width: 35%;
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.motor-card .detail-panel td {
    width: 65%;
    font-weight: 400;
    text-transform: none;
    color: var(--text);
}

.motor-card .detail-panel .placeholder {
    margin: 10px 0 0;
    font-style: italic;
    color: var(--muted);
}

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, "Courier New", monospace; }

.hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.field {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(6, 10, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
}

.field-group,
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    position: relative;
    background: rgba(6, 10, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.slider-pair {
    gap: 10px;
}

.slider-divider {
    height: 1px;
    width: 100%;
    background: rgba(231, 236, 255, 0.18);
    border-radius: 999px;
    margin: 2px 0;
}

.field-group .label-row,
.slider-group .label-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: nowrap;
    min-height: 20px;
}

.field-group .label-row label,
.slider-group .label-row label {
    margin: 0;
    display: flex;
    align-items: center;
}

.info-tooltip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 1;
}

.info-tooltip img {
    display: block;
    width: 100%;
    height: 100%;
}

.info-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, 70vw);
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(6, 10, 24, 0.96);
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
    box-shadow: var(--shadow);
    white-space: normal;
    text-align: left;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.18s ease;
}

.info-tooltip:hover::after,
.info-tooltip:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.info-tooltip:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.single-slider-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.single-slider-row input[type="number"] {
    width: 80px;
    flex-shrink: 0;
}

.single-slider-row input[type="range"] {
    flex: 1;
    min-width: 0;
}

.unit-pill {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
}

.slider-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 24px;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

.slider-group input[type="range"]:focus {
    outline: none;
}

.slider-group input[type="range"][data-threshold-mode="min"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.16) var(--range-progress, 0%),
        rgba(110,168,255,0.35) var(--range-progress, 0%),
        rgba(110,168,255,0.8) 100%);
    cursor: pointer;
}

.slider-group input[type="range"][data-threshold-mode="max"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(110,168,255,0.35) 0%,
        rgba(110,168,255,0.8) var(--range-progress, 100%),
        rgba(255,255,255,0.16) var(--range-progress, 100%),
        rgba(255,255,255,0.16) 100%);
    cursor: pointer;
}

.slider-group input[type="range"][data-threshold-mode="min"]::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.16) 0%,
        rgba(255,255,255,0.16) var(--range-progress, 0%),
        rgba(110,168,255,0.35) var(--range-progress, 0%),
        rgba(110,168,255,0.8) 100%);
    cursor: pointer;
}

.slider-group input[type="range"][data-threshold-mode="max"]::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        rgba(110,168,255,0.35) 0%,
        rgba(110,168,255,0.8) var(--range-progress, 100%),
        rgba(255,255,255,0.16) var(--range-progress, 100%),
        rgba(255,255,255,0.16) 100%);
    cursor: pointer;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(110,168,255,0.2);
    margin-top: -5px;
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(110,168,255,0.2);
}

.slider-value {
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    margin-left: 6px;
}

.unit-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.unit-toggle .switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.unit-toggle input {
    display: none;
}

.unit-toggle .slider {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.unit-toggle .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: white;
    transition: transform 0.2s ease;
}

.unit-toggle input:checked + .slider {
    background: rgba(110, 168, 255, 0.75);
}

.unit-toggle input:checked + .slider::before {
    transform: translateX(20px);
}

.img-wrap {
    text-align: right;
}
.img-wrap img {
    display: inline-block;
}
.statusRow{
    display: flex;
    gap: 12px;
    align-items: center;
}

.statusRow .status{
    margin-top: 0;   /* remove the per-div margin you had */
    flex: 1;                     /* optional: make them share the row */
}

/* optional: allow wrap on small screens */
@media (max-width: 700px){
    .statusRow{ flex-wrap: wrap; }
}

.pageFooter{
    margin-top:24px;
    border-top:1px solid #ddd;
    padding:12px 16px;
    background:#fafafa;
    color:#333;
}

.pageFooterInner{
    display:flex;
    justify-content:space-between;
    gap:16px;
    align-items:center;
    flex-wrap:wrap;
}

.pageFooter .small{
    font-size:12px;
    color:#666;
}

.footer-disclaimer-button{
    width:auto;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
    color:#003468;
    font-size:13px;
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:3px;
}

.footer-disclaimer-button:hover,.footer-disclaimer-button:focus-visible{
    color:#0066aa;
    outline-offset:3px;
}

/* Header bar */
.ph-topbar{
    width: 100%;
    background: #fdb930;
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.ph-topbar-inner{
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px 1px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.logo{ height: 29px; width: auto; display: block; }

/* Desktop nav (horizontal). Items never wrap; overflowing items are moved
   into the "more" dropdown panel by script.js instead of wrapping to a new line. */
.ph-nav{
    flex: 1 1 auto;
    min-width: 0;
}

.ph-menu{
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.ph-menu li{
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Items moved into the overflow dropdown are hidden from the inline menu */
.ph-menu li.ph-menu-hidden{
    display: none;
}

/* Links: plain (no container/pill) */
.ph-menu a{
    color: #111;
    text-decoration: none;
    font-weight: 450;
    padding: 6px 2px;
}

.ph-menu a:hover{ text-decoration: underline; }

.ph-menu a:focus-visible{
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Hamburger button: hidden until script.js detects overflow and adds .has-overflow */
.menu-toggle{
    display: none;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 10px;
    padding: 8px 10px;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
}

.ph-topbar.has-overflow .menu-toggle{
    display: inline-flex;
    align-items: center;
}

/* Dropdown panel listing whichever menu items don't fit on the line */
.ph-more-panel{
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    min-width: 220px;
    max-width: 90vw;
    z-index: 50;
    overflow: hidden;
}

.ph-more-panel.is-open{ display: block; }

.ph-more-menu{
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.ph-more-menu li + li{
    border-top: 1px solid rgba(0,0,0,0.08);
}

.ph-more-menu a{
    display: block;
    padding: 10px 16px;
    color: #111;
    text-decoration: none;
    white-space: normal;
}

.ph-more-menu a:hover{ background: rgba(0,0,0,0.06); }

.ph-more-menu a:focus-visible{
    outline: 2px solid #111;
    outline-offset: -2px;
}

/* visually hidden text for screen readers */
.sr-only{
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%);
    white-space: nowrap; border: 0;
}


/* hamburger icon */
.hamburger{
    width: 22px;
    height: 2px;
    background: #111;
    display: inline-block;
    position: relative;
}

.hamburger::before,
.hamburger::after{
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #111;
}

.hamburger::before{ top: -7px; }
.hamburger::after{ top: 7px; }

/* optional: animate to X when open */
.menu-toggle[aria-expanded="true"] .hamburger{
    background: transparent;
}
.menu-toggle[aria-expanded="true"] .hamburger::before{
    top: 0;
    transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .hamburger::after{
    top: 0;
    transform: rotate(-45deg);
}
.sr-only{
    position:absolute;
    width:1px;height:1px;
    padding:0;margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
    border:0;
}

.menu-toggle{
    border: 0;
    background: transparent;
    padding: 6px;          /* keep a clickable area */
    width: auto;
}
.menu-toggle:focus-visible{
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Refresh toast (non-blocking) */
.refresh-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: rgba(6, 10, 24, 0.92);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    z-index: 9999;
    box-shadow: var(--shadow);
    min-width: 220px;
}
.refresh-toast .toast-message { color: var(--muted); font-size: 13px; flex: 1; }
.refresh-toast .toast-actions { display:flex; gap:8px; align-items:center; }
.refresh-toast button { cursor:pointer; font-weight:600; border-radius:8px; padding:6px 10px; }
.refresh-toast .btn-refresh { background: rgba(112,224,0,0.12); border:1px solid rgba(112,224,0,0.22); color: var(--text); }
.refresh-toast .btn-dismiss { background: transparent; border: none; color: var(--muted); font-size:18px; line-height:1; }

.compare-remove-btn {
    margin-left: 8px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    vertical-align: middle;
}

.compare-remove-btn:hover { color: var(--bad); }

.compare-th-header { white-space: nowrap; }

.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.report-modal.is-open {
    display: flex;
}

.report-modal-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    margin: auto;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.report-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.report-modal-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    justify-content: flex-end;
    text-align: right;
    width: auto;
}

.report-modal-close:hover {
    color: var(--bad);
}

.report-content {
    color: var(--text);
    /* font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; */

    /* eslint-disable-next-line css/use-baseline */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    background: rgba(6, 10, 24, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.disclaimer-modal-content {
    max-width: 760px;
}

.disclaimer-content {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.disclaimer-content ul {
    margin: 0;
    padding-left: 22px;
}

.disclaimer-content li + li {
    margin-top: 10px;
}

.disclaimer-content ul ul {
    margin-top: 8px;
}

.disclaimer-content a {
    color: var(--text);
}

.disclaimer-content a:hover,
.disclaimer-content a:focus-visible {
    color: var(--accent);
}