/* Compare finder (27 Nov 2026): controls on the left under the H1, the live
   result card on the right (desktop). Phones: controls, then the card, then
   the rest of the hero. Rendered by /scripts/compare-finder.js. */
.cmp-finder { display: contents; }
.cmp-finder-data { display: none; }

/* Hero layout */
main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) { padding-top: 1.25rem; padding-bottom: 2rem; }
main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > h1 { font-size: clamp(1.875rem, 4.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; margin-top: 0.5rem; max-width: 34rem; text-wrap: balance; }
main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > h1 + p { max-width: 36rem; font-size: 1rem; line-height: 1.55; margin-top: 0.625rem; }
@media (min-width: 1024px) {
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 29rem);
        column-gap: 3rem;
        align-items: start;
    }
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > *,
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > .cmp-finder > * { grid-column: 1; }
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > .uk-kicker { justify-self: start; }
    /* The result stays in view while the visitor works through the controls. */
    main.cmp .hub-hero:has(.cmp-finder) { overflow: clip; }
    main.cmp .hub-hero .hub-wrap > .cmp-finder > .cmp-fr { grid-column: 2; grid-row: 1 / span 12; align-self: stretch; }
    main.cmp .hub-hero .hub-wrap > .cmp-finder > .cmp-fr > .cmp-card { position: sticky; top: 1rem; }
    /* Tighter controls so heading, choices and result share one screen. */
    .cmp-fc { gap: 0.875rem; padding: 1rem 1.125rem; }
    .cmp-fc-chip label { min-height: 38px; }
    .cmp-fc-combo, .cmp-fc-input { min-height: 48px; height: 48px; }
}
@media (max-width: 1023.98px) {
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) { display: block; }
}

/* Controls */
.cmp-fc { display: grid; gap: 1rem; margin: 1.25rem 0 0; padding: 1.125rem; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 1.25rem; background: rgba(15, 23, 42, 0.26); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; min-width: 0; }
.cmp-fc-field { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.cmp-fc-label { display: block; padding: 0; margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.cmp-fc-hint { margin: 0 !important; font-size: 0.8125rem !important; line-height: 1.4 !important; color: rgba(255, 255, 255, 0.8) !important; }

/* Destination search */
.cmp-fc-combo { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 0.875rem 0 0.75rem; border-radius: 0.875rem; background: #fff; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.8); }
.cmp-fc-combo:focus-within { box-shadow: 0 0 0 3px #fde68a, 0 10px 30px -18px rgba(15, 23, 42, 0.8); }
.cmp-fc-flag { flex: none; width: 28px; height: 21px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
.cmp-fc-input { flex: 1; min-width: 0; height: 52px; margin: 0 0.5rem 0 0.625rem; border: 0; background: transparent; color: #0f172a; font-size: 1.0625rem; font-weight: 700; outline: none; }
.cmp-fc .cmp-fc-input[type="text"], .cmp-fc .cmp-fc-input[type="text"]:focus { border: 0; outline: none; box-shadow: none; background: transparent; padding: 0; }
.cmp-fc-input::placeholder { color: #64748b; font-weight: 600; }
.cmp-fc-combo > .cmp-icon-search { flex: none; width: 1.25rem; height: 1.25rem; color: #4f46e5; }
.cmp-fc-list { position: absolute; z-index: 30; top: calc(100% + 0.375rem); left: 0; right: 0; max-height: 20rem; overflow-y: auto; margin: 0; padding: 0.375rem; list-style: none; border: 1px solid #e2e8f0; border-radius: 0.875rem; background: #fff; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, 0.55); }
.cmp-fc-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 0.625rem; min-height: 44px; padding: 0.375rem 0.625rem; border-radius: 0.625rem; color: #0f172a; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.cmp-fc-opt img { width: 24px; height: 18px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1); }
.cmp-fc-opt small { font-size: 0.75rem; font-weight: 600; color: #64748b; }
.cmp-fc-opt:hover, .cmp-fc-opt[aria-selected="true"] { background: #eef2ff; }
.cmp-fc-none { padding: 0.625rem; font-size: 0.875rem; color: #475569; }
.cmp-fc-none a { color: #3730a3; font-weight: 700; }
.cmp-fc-pop { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.cmp-fc-pill { min-height: 36px; padding: 0 0.875rem; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: background-color 0.15s; }
.cmp-fc-pill:hover { background: rgba(255, 255, 255, 0.18); }
.cmp-fc-pill[aria-pressed="true"] { background: #fff; color: #312e81; border-color: #fff; }
.cmp-fc-pill:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }

/* Chips: native radios, so keyboard and screen readers work without script */
.cmp-fc-chips, .cmp-fc-seg { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.cmp-fc-chip { position: relative; display: inline-flex; }
.cmp-fc-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cmp-fc-chip label { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 40px; min-width: 3.5rem; justify-content: center; padding: 0 0.875rem; border: 1px solid rgba(255, 255, 255, 0.42); border-radius: 0.75rem; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.9375rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transition: background-color 0.15s, color 0.15s; }
.cmp-fc-chip label small { font-size: 0.75rem; font-weight: 600; opacity: 0.85; }
.cmp-fc-chip input:hover + label { background: rgba(255, 255, 255, 0.18); }
.cmp-fc-chip input:checked + label { background: #fff; border-color: #fff; color: #312e81; box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.9); }
.cmp-fc-chip input:focus-visible + label { outline: 3px solid #fde68a; outline-offset: 2px; }
.cmp-fc-chip.is-off input { cursor: not-allowed; }
.cmp-fc-chip.is-off label { border-style: dashed; color: rgba(255, 255, 255, 0.5); background: transparent; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.cmp-fc-seg { padding: 0.25rem; border-radius: 0.875rem; background: rgba(15, 23, 42, 0.25); width: max-content; max-width: 100%; }
.cmp-fc-seg .cmp-fc-chip label { border-color: transparent; background: transparent; }
.cmp-fc-seg .cmp-fc-chip input:checked + label { background: #fff; border-color: #fff; }

/* Help me choose */
.cmp-fc-help { display: grid; gap: 0.75rem; }
.cmp-fc-help-toggle { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; min-height: 40px; padding: 0 0.875rem 0 0.625rem; border: 1px solid rgba(253, 230, 138, 0.6); border-radius: 999px; background: rgba(253, 230, 138, 0.12); color: #fef3c7; font-size: 0.875rem; font-weight: 700; cursor: pointer; }
.cmp-fc-help-toggle:hover { background: rgba(253, 230, 138, 0.22); }
.cmp-fc-help-toggle:focus-visible { outline: 3px solid #fde68a; outline-offset: 2px; }
.cmp-fc-help-toggle .cmp-icon { width: 1.125rem; height: 1.125rem; }
.cmp-fc-help-toggle[aria-expanded="true"] { background: #fef3c7; color: #78350f; border-color: #fef3c7; }
.cmp-fc-helper { display: grid; gap: 0.875rem; padding: 0.875rem; border-radius: 1rem; background: rgba(15, 23, 42, 0.3); }
.cmp-fc-helper[hidden] { display: none; }
.cmp-fc-tip { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0 !important; padding: 0.625rem 0.75rem; border-radius: 0.75rem; background: #fff; color: #14532d !important; font-size: 0.875rem !important; line-height: 1.45 !important; }
.cmp-fc-tip .cmp-icon { flex: none; width: 1.125rem; height: 1.125rem; color: #15803d; margin-top: 0.1rem; }
.cmp-fc-tip.is-empty { background: transparent; color: rgba(255, 255, 255, 0.8) !important; padding: 0; }

/* Result card (27 Nov 2026 pass): one decision path, top to bottom.
   Plan · price · one verdict · coverage · Buy · one suggestion · evidence · small print.
   Base .cmp-card styles live in compare.css; the hero sets white text on every
   <p>, so card text sets its own colours. Phones read in the same order. */
.cmp-fr { min-width: 0; margin: 1rem 0 0; }
@media (min-width: 1024px) { .cmp-fr { margin: 0; } }
.hub-hero .cmp-fr .cmp-card.cmp-fr-card { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; max-width: none; padding: 1.25rem 1.25rem 1rem; }
.hub-hero .cmp-fr .cmp-card.cmp-fr-card > * { order: 0; margin: 0; max-width: none; }
.hub-hero .cmp-fr .cmp-card.cmp-fr-card .cmp-win { display: block; }
.hub-hero .cmp-fr .cmp-card p.cmp-card-label { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.02em; text-transform: none; color: #3730a3; }
.hub-hero .cmp-fr .cmp-card p.cmp-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem 0.625rem; margin-top: -0.375rem; color: #0f172a; font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.05; }
.hub-hero .cmp-fr .cmp-card p.cmp-card-price small { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; color: #64748b; white-space: nowrap; }
.cmp-fr-card { animation: cmp-fr-in 0.18s ease-out; }
@keyframes cmp-fr-in { from { opacity: 0.6; transform: translateY(2px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cmp-fr-card { animation: none; } }

/* Verdict: green when Graba SIM is lowest, otherwise a plain grey line */
.hub-hero .cmp-fr .cmp-win-save { padding: 0.625rem 0.75rem; border-radius: 0.75rem; }
.hub-hero .cmp-fr .cmp-win-save strong { font-size: 1.0625rem; }
.hub-hero .cmp-fr .cmp-win-save small { font-size: 0.8125rem; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-status { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.5rem 0.625rem; border-radius: 0.625rem; background: #f1f5f9; font-size: 0.8125rem; line-height: 1.45; color: #334155; }
.cmp-fr-status .cmp-icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.125rem; color: #64748b; }
.cmp-fr-status a, .cmp-fr-cover a, .cmp-fr-check a { color: #3730a3; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Coverage: one line */
.hub-hero .cmp-fr .cmp-card p.cmp-fr-cover, .hub-hero .cmp-fr .cmp-card p.cmp-fr-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: #334155; }
.cmp-fr-cover .cmp-icon, .cmp-fr-check .cmp-icon { flex: none; width: 1rem; height: 1rem; margin-top: 0.125rem; color: #64748b; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-check { padding: 0.5rem 0.625rem; border-radius: 0.625rem; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-check.is-in { background: #f0fdf4; color: #14532d; }
.cmp-fr-check.is-in .cmp-icon { color: #15803d; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-check.is-out { background: #fffbeb; color: #78350f; box-shadow: inset 0 0 0 1px #fcd34d; }
.cmp-fr-check.is-out .cmp-icon { color: #b45309; }
.cmp-fr-inline { padding: 0; border: 0; background: none; color: #3730a3; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cmp-fr-inline:focus-visible, .cmp-fr-tip:focus-visible { outline: 3px solid #0085ad; outline-offset: 2px; }

/* Actions */
.hub-hero .cmp-fr .cmp-card-actions { display: flex; gap: 0.5rem; }
.hub-hero .cmp-fr .cmp-card-buy { flex: 1 1 auto; justify-content: center; min-height: 52px; font-size: 1.0625rem; font-weight: 800; }
.hub-hero .cmp-fr .cmp-card-actions .cmp-card-cta { flex: 0 0 auto; min-height: 52px; padding: 0 1.125rem; }

/* One suggestion */
.cmp-fr-tip { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%; min-height: 44px; padding: 0.5rem 0.5rem 0.5rem 0.75rem; border: 1px dashed #a5b4fc; border-radius: 0.75rem; background: #f8faff; color: #312e81; font-size: 0.8125rem; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer; transition: background-color 0.15s; }
.cmp-fr-tip:hover { background: #eef2ff; }
.cmp-fr-tip strong { font-weight: 800; white-space: nowrap; }
.cmp-fr-tip.is-win { border-color: #86efac; background: #f7fef9; color: #14532d; }
.cmp-fr-tip.is-win:hover { background: #f0fdf4; }
.cmp-fr-go { flex: none; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0.625rem; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px currentColor; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.cmp-fr-go svg { width: 0.875rem; height: 0.875rem; }

/* Evidence rows (win only), quieter than the decision above */
.hub-hero .cmp-fr .cmp-win-rows { padding-top: 0.625rem; border-top: 1px solid #e2e8f0; }
.hub-hero .cmp-fr .cmp-win-rows li { padding-block: 0.25rem; font-size: 0.8125rem; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-more { margin-top: -0.5rem; padding: 0 0.5rem; font-size: 0.75rem; color: #64748b; }

/* Small print */
.hub-hero .cmp-fr .cmp-card p.cmp-card-assure { font-size: 0.75rem; color: #475569; }
.hub-hero .cmp-fr .cmp-card p.cmp-fr-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding-top: 0.625rem; border-top: 1px solid #e2e8f0; font-size: 0.75rem; line-height: 1.4; color: #64748b; }
.cmp-fr-family { display: inline-flex; align-items: center; gap: 0.3rem; color: #3730a3; font-weight: 700; text-decoration: none; }
.cmp-fr-family:hover { text-decoration: underline; }
.cmp-fr-family .cmp-icon { width: 0.95rem; height: 0.95rem; }

/* Quieter hero links under the finder */
.cmp-hero-jump.is-quiet { gap: 1.25rem; margin-top: 0.75rem; }
.cmp-hero-jump.is-quiet .cmp-hero-link { color: #fff; }

@media (max-width: 640px) {
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > h1 + p { font-size: 0.9375rem; line-height: 1.5; }
    main.cmp .hub-hero .hub-wrap:has(> .cmp-finder) > h1 { font-size: 1.75rem; }
    .cmp-fc { padding: 0.875rem; gap: 0.875rem; border-radius: 1rem; margin-left: -0.25rem; margin-right: -0.25rem; }
    .cmp-fc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; -webkit-overflow-scrolling: touch; }
    .cmp-fc-chips::-webkit-scrollbar { display: none; }
    .cmp-fc-helper .cmp-fc-chips { flex-wrap: wrap; }
    .cmp-fc-pop { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
    .cmp-fc-pop::-webkit-scrollbar { display: none; }
    .cmp-fc-pill { flex: none; }
    .cmp-fc-chip label { min-height: 44px; }
    /* Plan type: equal segments that always fit the row. */
    .cmp-fc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
    .cmp-fc-seg .cmp-fc-chip, .cmp-fc-seg .cmp-fc-chip label { width: 100%; min-width: 0; padding-inline: 0.375rem; font-size: 0.875rem; }
    .cmp-fc-seg .cmp-fc-chip label small { display: none; }
}
