/* UK intent, comparison and explainer pages (src/services/ukIntentPages.js). Builds on hubs.css. */
.uk-hero {
    background: radial-gradient(120% 140% at 0% 0%, #312e81 0%, #1d4ed8 45%, #0ea5e9 100%);
}

.uk-kicker {
    display: inline-block;
    margin: 1rem 0 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    font-size: 0.8125rem !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.uk-summary {
    margin-top: -1.75rem;
    padding-top: 0;
}

.uk-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 0.75rem;
}

.uk-stat {
    display: grid;
    gap: 0.125rem;
    padding: 1rem 1.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.45);
}

.uk-stat span {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.uk-stat strong {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e1b4b;
}

.uk-stat small {
    color: #64748b;
}

.uk-bars {
    margin: 0 0 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
}

.uk-bars figcaption {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
}

.uk-bars ul {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uk-bar {
    display: grid;
    grid-template-columns: minmax(8rem, 13rem) 1fr 4.5rem;
    gap: 0.75rem;
    align-items: center;
}

.uk-bar-label {
    display: grid;
    font-weight: 700;
    line-height: 1.25;
}

.uk-bar-label small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #64748b;
}

.uk-bar-track {
    height: 0.875rem;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.uk-bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.uk-bar.is-ours .uk-bar-fill {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.uk-bar.is-ours .uk-bar-label {
    color: #15803d;
}

.uk-bar-value {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
    .uk-bar {
        grid-template-columns: 1fr auto;
        grid-template-areas: "label value" "track track";
        row-gap: 0.375rem;
    }

    .uk-bar-label { grid-area: label; }
    .uk-bar-value { grid-area: value; }
    .uk-bar-track { grid-area: track; }
}

.uk-plan-table td strong {
    color: #1e1b4b;
}

.uk-buy {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff !important;
    text-decoration: none;
}

.uk-buy:hover,
.uk-buy:focus-visible {
    background: #4338ca;
}

.uk-more {
    margin: 0.75rem 0 0;
}

.uk-more a,
.hub-card h3 a {
    color: #4338ca;
    font-weight: 600;
}

.hub-table small {
    color: #64748b;
}

.uk-sources {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #64748b;
}

.uk-sources a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.uk-networks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

.uk-chip {
    padding: 0.25rem 0.75rem;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.875rem;
}

.uk-callout {
    max-width: 48rem;
    padding: 1.125rem 1.25rem;
    border-left: 4px solid #4f46e5;
    border-radius: 0.75rem;
    background: #fff;
}

.uk-callout p {
    margin: 0;
    line-height: 1.6;
}

.uk-carriers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.75rem;
}

.uk-carrier {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    padding: 1.125rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.uk-carrier:hover,
.uk-carrier:focus-visible {
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.14);
}

.uk-carrier strong {
    font-size: 1.25rem;
}

.uk-carrier span {
    color: #475569;
    line-height: 1.55;
}

.uk-carrier em {
    font-style: normal;
    font-weight: 600;
    color: #4338ca;
}

.uk-diagram {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    counter-reset: none;
}

.uk-diagram > div {
    position: relative;
    display: grid;
    gap: 0.25rem;
    justify-items: center;
    padding: 1.25rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    text-align: center;
}

.uk-diagram span {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #0ea5e9);
    color: #fff;
    font-weight: 800;
}

.uk-diagram small {
    color: #64748b;
}

@media (max-width: 560px) {
    .uk-diagram {
        grid-template-columns: 1fr;
    }
}

.hub-checklist a,
.hub-steps a,
.hub-lede a {
    color: #4338ca;
    font-weight: 600;
}

.uk-plan-table td:nth-child(4) {
    min-width: 11rem;
    white-space: normal;
    color: #475569;
}

@media (max-width: 720px) {
    .uk-plan-table th:nth-child(4),
    .uk-plan-table td:nth-child(4) {
        display: none;
    }
}

/* Trip planner */
.uk-planner {
    padding: 1.25rem;
    border: 1px solid #c7d2fe;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #eef2ff 0%, #fff 60%);
    box-shadow: 0 18px 40px -30px rgba(67, 56, 202, 0.6);
}

.uk-planner-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: end;
    margin-bottom: 1rem;
}

.uk-planner-days {
    display: grid;
    gap: 0.5rem;
    font-weight: 700;
}

.uk-planner-days output {
    color: #4338ca;
    font-size: 1.25rem;
}

.uk-planner-days input[type=range] {
    width: 100%;
    accent-color: #4f46e5;
    height: 1.5rem;
}

.uk-planner-use {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.uk-planner-use legend {
    width: 100%;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
}

.uk-planner-use label {
    display: grid;
    padding: 0.5rem 0.75rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.75rem;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.uk-planner-use label:has(input:checked) {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #fff;
}

.uk-planner-use label:has(input:checked) small {
    color: #e0e7ff;
}

.uk-planner-use input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.uk-planner-use label:has(input:focus-visible) {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.uk-planner-use small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #64748b;
}

.uk-planner .uk-bars {
    margin: 0;
    border: 0;
    padding: 0;
    background: none;
}

.uk-planner-note {
    margin: 0.875rem 0 0;
    font-weight: 700;
    color: #15803d;
}

.uk-bar[hidden] {
    display: none;
}

.uk-bar-fill {
    transition: width 0.25s ease;
}

@media (max-width: 640px) {
    .uk-planner-controls {
        grid-template-columns: 1fr;
    }
}

/* Trust strip */
.uk-trust ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uk-trust li {
    display: grid;
    gap: 0.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
}

.uk-trust strong {
    color: #1e1b4b;
}

.uk-trust span {
    font-size: 0.875rem;
    color: #64748b;
}

/* Sticky buy bar on phones */
.uk-sticky {
    display: none;
}

@media (max-width: 720px) {
    .uk-sticky {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0.875rem 0.75rem 1rem;
        border-radius: 1rem;
        background: #1e1b4b;
        color: #fff;
        text-decoration: none;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    }

    .uk-sticky em {
        padding: 0.375rem 0.875rem;
        border-radius: 999px;
        background: #22c55e;
        color: #052e16;
        font-style: normal;
        font-weight: 700;
    }

    .uk .hub-note,
    .uk .hub-wrap > section:last-of-type {
        padding-bottom: 4.5rem;
    }
}

.uk-trust .uk-pay {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.uk-pay img {
    display: block;
    flex: none;
    width: 38px;
    height: 24px;
    max-width: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #fff;
}

/* Photo hero */
.uk-hero.has-photo {
    background: linear-gradient(100deg, rgba(30, 27, 75, 0.92) 0%, rgba(30, 64, 175, 0.75) 55%, rgba(14, 165, 233, 0.35) 100%), var(--uk-photo) center / cover no-repeat;
    padding-bottom: 3.5rem;
}

.uk-hero.has-photo::after {
    display: none;
}

.uk-credit {
    margin: 1.25rem 0 0 !important;
    font-size: 0.75rem !important;
    color: rgba(255, 255, 255, 0.75) !important;
}

.uk-credit a {
    color: inherit;
    text-decoration: underline;
}

/* Logos (shared with /roamingcosts) */
.rc-logo {
    flex: none;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: var(--rc-logo);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px -8px var(--rc-logo);
}

.rc-logo-img {
    background: #fff;
}

.rc-logo-mono {
    font-weight: 800;
    font-size: 15px;
}

.uk-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.uk-logos a {
    border-radius: 14px;
    transition: transform 0.15s ease;
}

.uk-logos a:hover,
.uk-logos a:focus-visible {
    transform: translateY(-2px);
}

.uk-carrier-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.uk-carrier-hero .hub-stats {
    flex: 1;
    min-width: min(100%, 18rem);
    margin-top: 0;
}

.uk-carrier-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.uk-panel {
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 18px 40px -32px rgba(15, 23, 42, 0.5);
}

.uk-panel .uk-bars {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Paired bars: a UK network vs the eSIM */
.uk-pairs {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uk-pairs li {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 0.75rem;
    align-items: center;
}

.uk-pair-name {
    font-weight: 700;
}

.uk-pair-bars {
    display: grid;
    gap: 0.375rem;
}

.uk-pair-bar {
    display: grid;
    grid-template-columns: 1fr 4.5rem;
    gap: 0.5rem;
    align-items: center;
}

.uk-pair-bar i {
    display: block;
    height: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #94a3b8, #64748b);
}

.uk-pair-bar.is-ours i {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.uk-pair-bar b {
    font-variant-numeric: tabular-nums;
    text-align: right;
    font-size: 0.875rem;
}

.uk-pair-key {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 0;
    font-size: 0.8125rem;
    color: #475569;
}

.uk-pair-key span::before {
    content: "";
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.375rem;
    border-radius: 3px;
    background: #64748b;
    vertical-align: -1px;
}

.uk-pair-key .is-ours::before {
    background: #16a34a;
}

.uk-table-details {
    margin-top: 0.75rem;
}

.uk-table-details summary {
    font-weight: 600;
    color: #4338ca;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

/* Destination photo tiles */
.uk-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.uk-tile {
    position: relative;
    display: grid;
    align-content: end;
    gap: 0.25rem;
    min-height: 11rem;
    padding: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.85) 100%), var(--uk-tile, linear-gradient(135deg, #4f46e5, #0ea5e9)) center / cover no-repeat;
    box-shadow: 0 14px 30px -20px rgba(15, 23, 42, 0.7);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.uk-tile:hover,
.uk-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -20px rgba(15, 23, 42, 0.8);
}

.uk-tile-flag img {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.uk-tile strong {
    font-size: 1.25rem;
}

.uk-tile-price {
    font-weight: 600;
    color: #bbf7d0;
}

.uk-tile-rows {
    display: grid;
    gap: 0.125rem;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
}

.uk-tile-rows span {
    display: flex;
    justify-content: space-between;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
}

.uk-tile-rows .is-best {
    background: rgba(34, 197, 94, 0.9);
    color: #052e16;
    font-weight: 700;
}

/* Versus badges */
.uk-versus {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.uk-versus span {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 800;
}

.uk-versus em {
    font-style: normal;
    font-weight: 700;
    color: #c7d2fe;
}

/* Explainer illustration and calculator */
.uk-explain {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.uk-explain-art {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    max-width: 15rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #475569;
}

.uk-explain-art svg {
    filter: drop-shadow(0 18px 24px rgba(15, 23, 42, 0.25));
}

@media (max-width: 640px) {
    .uk-explain {
        grid-template-columns: 1fr;
    }

    .uk-explain-art {
        margin: 0 auto;
    }

    .uk-pairs li {
        grid-template-columns: 1fr;
        gap: 0.375rem;
    }
}

.uk-calc {
    display: grid;
    gap: 1rem;
    max-width: 40rem;
    padding: 1.25rem;
    border: 1px solid #c7d2fe;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, #eef2ff 0%, #fff 60%);
}

.uk-calc-result {
    margin: 0;
    font-size: 1.125rem;
}

.uk-calc-result strong {
    font-size: 1.75rem;
    color: #4338ca;
}

.uk-calc .uk-buy {
    justify-self: start;
}

.hub-table td.uk-lower {
    background: #f0fdf4;
    color: #14532d;
    font-weight: 700;
}

.uk-tile-plan {
    font-weight: 700;
    color: #e0e7ff;
}
