:root {
    --navy: #0D1B2A;
    --navy-soft: #16283b;
    --teal: #00B4B0;
    --teal-light: #5ED1C6;
    /* Darker teal for text and filled buttons, so white-on-teal and teal-on-white stay readable. */
    --teal-deep: #007A77;
    --mist: #F2F4F7;
    --slate: #6B7280;
    --line: #dfe3e8;
    --ink: #0D1B2A;
    --danger: #b42318;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body {
    font-family: var(--font-body);
    color: var(--ink);
    background: #fff;
}

body {
    margin: 0;
    line-height: 1.5;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

a {
    color: var(--teal-deep);
}

h1:focus {
    outline: none;
}

.container-wide {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
}

/* ---------- Header and footer ---------- */

.site-header {
    background: var(--navy);
    color: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.brand__name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.22em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.site-nav a:not(.btn-brand) {
    color: #d6dde5;
    text-decoration: none;
}

.site-nav a:not(.btn-brand):hover {
    color: #fff;
}

.site-footer {
    background: var(--navy);
    color: #c3ccd6;
    margin-top: 72px;
    padding: 36px 0;
    font-size: 0.88rem;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.site-footer .brand__name {
    color: #fff;
}

.site-footer__tagline {
    margin: 6px 0 0;
    color: var(--teal-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.site-footer__legal {
    margin: 0;
    max-width: 520px;
}

.site-footer__legal p {
    margin: 0;
}

.site-footer__links {
    display: flex;
    gap: 18px;
    padding-top: 10px;
}

.site-footer__links a,
.site-footer__links button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Cookie consent ---------- */

.cookie-consent {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    max-width: 880px;
    margin-inline: auto;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 32px #0d1b2a2e;
    font-size: 0.9rem;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent p {
    margin: 0;
    flex: 1 1 320px;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
}

/* ---------- Buttons ---------- */

.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--teal-deep);
    color: #fff;
    border: 1px solid var(--teal-deep);
    border-radius: 6px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-brand:hover {
    background: #006a67;
    color: #fff;
}

.btn-brand:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-brand--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-quiet {
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

.btn-quiet:hover {
    border-color: var(--slate);
}

.btn-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--teal-deep);
    text-decoration: underline;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* ---------- Home ---------- */

.hero {
    background: linear-gradient(160deg, var(--navy) 0%, #12303f 70%, #0f4a52 100%);
    color: #fff;
    padding: 84px 0 96px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 18px;
    max-width: 15em;
}

.hero p {
    color: #d6dde5;
    font-size: 1.1rem;
    max-width: 30em;
    margin: 0 0 30px;
}

.section {
    padding: 64px 0 0;
}

.section h2 {
    font-size: 1.9rem;
    margin: 0 0 8px;
}

.section__lead {
    color: var(--slate);
    margin: 0 0 28px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    color: var(--ink);
    text-decoration: none;
    background: #fff;
}

.plan-card:hover {
    border-color: var(--teal);
    color: var(--ink);
}

.plan-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.plan-card p {
    margin: 0;
    color: var(--slate);
    font-size: 0.95rem;
    flex: 1;
}

.plan-card span {
    color: var(--teal-deep);
    font-weight: 600;
    font-size: 0.9rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--mist);
    color: var(--teal-deep);
    font-weight: 600;
    margin-bottom: 10px;
}

.steps h3 {
    font-size: 1.15rem;
    margin: 0 0 4px;
}

.steps p {
    margin: 0;
    color: var(--slate);
}

/* ---------- Quote form ---------- */

.page-head {
    background: var(--mist);
    padding: 36px 0;
}

.page-head h1 {
    font-size: 2rem;
    margin: 0 0 4px;
}

.page-head p {
    margin: 0;
    color: var(--slate);
}

.quote-form {
    padding-top: 32px;
}

.quote-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 32px;
}

.quote-form legend {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 14px;
    padding: 0;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label,
.field .field__label {
    font-size: 0.88rem;
    font-weight: 500;
}

.field__hint {
    font-size: 0.8rem;
    color: var(--slate);
}

.field input,
.field select {
    font: inherit;
    padding: 10px 12px;
    border: 1px solid #c5ccd5;
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    min-height: 44px;
}

.field input.invalid,
.field select.invalid {
    border-color: var(--danger);
}

.field--wide {
    grid-column: 1 / -1;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 12px;
    border-radius: 999px;
    background: var(--mist);
    font-size: 0.9rem;
}

.chip button {
    border: 0;
    background: none;
    color: var(--slate);
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    cursor: pointer;
}

.chip button:hover {
    background: #dfe3e8;
    color: var(--ink);
}

.typeahead {
    position: relative;
    display: flex;
    flex-direction: column;
}

.typeahead__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #fff;
    border: 1px solid #c5ccd5;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.12);
}

.typeahead__option {
    padding: 9px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.typeahead__option:hover,
.typeahead__option--active {
    background: var(--mist);
}

.traveler-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) ;
    gap: 16px;
    align-items: end;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.traveler-row__title {
    font-weight: 600;
    font-size: 0.9rem;
    align-self: center;
}

.form-errors {
    border: 1px solid #f3c4bf;
    background: #fef3f2;
    color: var(--danger);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.form-errors ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.validation-message {
    color: var(--danger);
    font-size: 0.82rem;
}

/* ---------- Results ---------- */

.trip-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    align-items: baseline;
    font-size: 0.95rem;
}

.trip-summary dt {
    color: var(--slate);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.trip-summary dd {
    margin: 0;
    font-weight: 500;
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0 16px;
}

.results-bar__status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--line);
    border-top-color: var(--teal-deep);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation-duration: 3s; }
}

.quote-list {
    display: grid;
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 22px;
    background: #fff;
}

.quote-card__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.perk {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #f1d9a5;
    border-radius: 8px;
    background: #fffaf0;
    font-size: 0.92rem;
}

.perk summary {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
}

.perk summary::-webkit-details-marker {
    display: none;
}

.perk summary > span:nth-child(2) {
    flex: 1;
}

.perk__star {
    color: #d99a1c;
}

.perk__tag {
    flex: none;
    padding: 2px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #f1d9a5;
    font-size: 0.78rem;
    font-weight: 600;
}

.perk p {
    margin: 8px 0 2px;
    color: var(--slate);
}

.quote-group {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 18px 0 2px;
}

.quote-group h2 {
    font-size: 1.25rem;
    margin: 0;
}

.quote-group p {
    margin: 2px 0 0;
    color: var(--slate);
    font-size: 0.9rem;
}

.quote-card__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.quote-card__highlights li {
    padding: 3px 10px;
    border-radius: 999px;
    background: #e6f6f4;
    color: var(--teal-deep);
    font-size: 0.8rem;
    font-weight: 600;
}

.quote-card__highlights .quote-card__highlight--optional {
    background: #fff;
    border: 1px dashed #9fcfcb;
    font-weight: 500;
}

.quote-card__select {
    margin-left: auto;
}

.requote {
    margin-bottom: 24px;
    padding: 20px 22px;
    border: 1px solid #f1d9a5;
    border-left: 4px solid #d99a1c;
    border-radius: 10px;
    background: #fffaf0;
}

.requote--good {
    border-color: #b9e2d2;
    border-left-color: var(--teal-deep);
    background: #f2fbf8;
}

.requote h2 {
    font-size: 1.3rem;
    margin: 0 0 6px;
}

.requote p {
    margin: 0 0 12px;
}

.requote__reasons {
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 0.95rem;
}

.requote__prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}

.requote__prices > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.requote__prices span {
    font-size: 0.8rem;
    color: var(--slate);
}

.requote__prices s {
    font-size: 1.15rem;
    color: var(--slate);
}

.requote__new strong {
    font-size: 1.4rem;
}

.requote__change {
    font-size: 0.9rem;
}

.requote__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.check-list label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dob {
    display: grid;
    /* Day and year keep room for their placeholder and digits; the month takes what is left. */
    grid-template-columns: minmax(0, 1fr) 4.75rem 5.75rem;
    max-width: 24rem;
    gap: 8px;
}

.dob > * {
    min-width: 0;
}

.member-remove {
    margin-left: 12px;
    font-size: 0.85rem;
}

.member-add {
    margin-bottom: 6px;
}

.member-add__hint {
    display: block;
    margin-bottom: 20px;
}

.member-age {
    margin-left: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--slate);
}

.skye-view {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--mist);
    font-size: 0.92rem;
}

.skye-view > span {
    flex: 1 1 240px;
}

.focus-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 16px;
}

.focus-chip {
    font: inherit;
    font-size: 0.9rem;
    padding: 7px 14px;
    border: 1px solid #c5ccd5;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.focus-chip[aria-pressed="true"] {
    background: var(--teal-deep);
    border-color: var(--teal-deep);
    color: #fff;
}

.quote-card__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--mist);
    color: var(--teal-deep);
    font-size: 0.8rem;
    font-weight: 600;
}

.quote-card__provider {
    color: var(--slate);
    font-size: 0.85rem;
    margin: 0;
}

.quote-card h2 {
    font-size: 1.35rem;
    margin: 2px 0 0;
}

.quote-card__price {
    text-align: right;
}

.quote-card__price strong {
    font-size: 1.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.quote-card__price span {
    display: block;
    color: var(--slate);
    font-size: 0.8rem;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 24px;
    margin: 16px 0 0;
    padding: 0;
}

.benefit-list div {
    min-width: 0;
}

.benefit-list dt {
    color: var(--slate);
    font-size: 0.8rem;
}

.benefit-list dd {
    margin: 0;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.quote-card__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

.quote-card__actions label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.benefit-group {
    margin-top: 18px;
}

.benefit-group h3 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--teal-deep);
    margin: 0 0 6px;
}

.note {
    color: var(--slate);
    font-size: 0.9rem;
    margin-top: 18px;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 36px;
    text-align: center;
    color: var(--slate);
}

.compare {
    margin-top: 36px;
}

.compare h2 {
    font-size: 1.5rem;
}

.compare__scroll {
    overflow-x: auto;
}

.compare table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare th,
.compare td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    min-width: 160px;
}

.compare thead th {
    background: var(--mist);
}

.compare tbody th {
    font-weight: 500;
    color: var(--slate);
}

/* ---------- Account pages (Bootstrap markup from the Identity template) ---------- */

.account-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.btn-primary {
    --bs-btn-bg: var(--teal-deep);
    --bs-btn-border-color: var(--teal-deep);
    --bs-btn-hover-bg: #006a67;
    --bs-btn-hover-border-color: #006a67;
    --bs-btn-active-bg: #006a67;
    --bs-btn-active-border-color: #006a67;
}

/* ---------- Admin ---------- */

.raw-payload {
    background: var(--navy);
    color: #e6edf3;
    border-radius: 6px;
    padding: 14px;
    font-size: 0.78rem;
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---------- Framework ---------- */

#blazor-error-ui {
    background: #fff8d6;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ---------- Skye ---------- */

.skye-avatar {
    flex: none;
    object-fit: contain;
    vertical-align: middle;
}

.skye-welcome {
    display: flex;
    align-items: center;
    gap: 22px;
}

@media (max-width: 480px) {
    .skye-welcome {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

.skye-launcher {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 8px;
    border: none;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font: inherit;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.28);
    cursor: pointer;
}

.skye-launcher:hover {
    background: var(--navy-soft);
}

.skye-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 32px));
    height: min(620px, calc(100vh - 40px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(13, 27, 42, 0.28);
    overflow: hidden;
}

.skye-panel__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--navy);
    color: #fff;
}

.skye-panel__head div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.skye-panel__head span {
    font-size: 0.8rem;
    color: var(--teal-light);
}

.skye-panel__tool {
    background: none;
    border: none;
    color: #d6dde5;
    font: inherit;
    font-size: 0.82rem;
    padding: 4px 6px;
    cursor: pointer;
}

.skye-panel__tool[aria-label] {
    font-size: 1.5rem;
    line-height: 1;
}

.skye-panel__tool:hover:not(:disabled) {
    color: #fff;
}

.skye-panel__scroll {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    background: var(--mist);
}

.skye-panel__messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 14px;
}

.skye-msg {
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.skye-msg p,
.skye-msg ul {
    margin: 0 0 8px;
}

.skye-msg ul {
    padding-left: 18px;
}

.skye-msg > :last-child {
    margin-bottom: 0;
}

.skye-msg--skye {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--line);
}

.skye-msg--visitor {
    align-self: flex-end;
    background: var(--teal-deep);
    color: #fff;
}

.skye-msg--failed {
    border-color: #f3c4bf;
    background: #fef3f2;
    color: var(--danger);
}

.skye-msg__status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--slate);
}

.skye-cite {
    margin-left: 2px;
    color: var(--teal-deep);
    font-weight: 600;
}

.skye-example {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-left: 3px solid var(--teal);
    background: #fff;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.skye-starters {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.skye-starters button {
    text-align: left;
    background: #fff;
    border: 1px solid var(--teal-deep);
    border-radius: 12px;
    padding: 8px 12px;
    font: inherit;
    font-size: 0.88rem;
    color: var(--teal-deep);
    cursor: pointer;
}

.skye-starters button:hover:not(:disabled) {
    background: #e9f7f6;
}

.skye-starters button:disabled {
    opacity: 0.6;
    cursor: default;
}

.skye-sources {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--slate);
}

.skye-sources summary {
    cursor: pointer;
    color: var(--teal-deep);
}

.skye-sources ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.skye-sources li + li {
    margin-top: 6px;
}

.skye-sources q {
    display: block;
    font-style: italic;
}

.skye-panel__ask {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    border-top: 1px solid var(--line);
}

.skye-panel__ask input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
    font-size: 0.92rem;
}

.skye-panel__note {
    margin: 0;
    padding: 0 12px 10px;
    font-size: 0.74rem;
    color: var(--slate);
}

.compare-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--navy);
    color: #d6dde5;
    font-size: 0.88rem;
    box-shadow: 0 6px 20px rgba(13, 27, 42, 0.28);
}

.compare-bar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.compare-bar li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 12px;
    border: 1px solid #3a4c60;
    border-radius: 8px;
    background: var(--navy-soft);
    color: #fff;
}

.compare-bar li button {
    background: none;
    border: none;
    color: #d6dde5;
    font-size: 1.1rem;
    line-height: 1;
    padding: 2px 6px;
    cursor: pointer;
}

.compare-bar > span {
    white-space: nowrap;
}

.compare-bar .btn-brand {
    text-decoration: none;
}

.skye-compare {
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

/* The plans being compared, each with its price and a way to choose it, at the head of the comparison page. */
.compare-picks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.compare-picks li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.compare-picks p {
    margin: 0;
}

.compare-picks__provider {
    font-size: 0.8rem;
    color: var(--slate);
}

.compare-picks__name {
    font-weight: 700;
}

.compare-picks strong {
    font-size: 1.4rem;
    color: var(--teal-deep);
    font-variant-numeric: tabular-nums;
}

.compare-picks .btn-brand {
    margin-top: auto;
    text-align: center;
    text-decoration: none;
}

/* Leading the comparison page, above the side-by-side table. */
.compare__skye {
    margin: 18px 0 28px;
}

.compare__skye .skye-compare {
    margin-top: 0;
}

.skye-compare h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.skye-compare h4 {
    margin: 22px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
}

.skye-compare ul {
    margin: 0;
    padding-left: 20px;
}

.skye-compare li + li {
    margin-top: 6px;
}

.skye-compare__take,
.skye-compare__notice {
    margin: 0 0 10px;
    padding: 12px 16px;
    border-left: 4px solid var(--teal-deep);
    background: var(--mist);
}

.skye-compare__notice {
    border-left-color: #b54708;
    background: #fffaeb;
}

/* Room for the fixed launcher and compare bar below the last card. */
.quote-list + *,
.compare {
    scroll-margin-top: 16px;
}

@media (max-width: 720px) {
    .compare-bar {
        left: 16px;
        right: 16px;
        bottom: 76px;
        transform: none;
        flex-wrap: wrap;
    }
}

/* ---------- Guided quote ---------- */

.quote-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.quote-choice button.plan-card {
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.quote-form__switch {
    display: block;
    margin-top: 16px;
}

.guided {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr);
    gap: 24px;
    align-items: start;
    padding-top: 28px;
}

.guided__chat {
    display: flex;
    flex-direction: column;
    height: min(640px, calc(100vh - 220px));
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.guided__upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 12px 12px;
    font-size: 0.78rem;
    color: var(--slate);
}

.guided__upload label {
    flex: none;
    cursor: pointer;
}

.btn-quiet--disabled {
    opacity: 0.6;
    cursor: default;
}

.guided__summary {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 22px;
    background: #fff;
}

.guided__summary h2 {
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.guided__summary dl {
    margin: 0 0 14px;
}

.guided__summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.guided__summary dt {
    font-weight: 400;
    color: var(--slate);
}

.guided__summary dd {
    margin: 0;
    text-align: right;
}

.guided__summary .btn-brand {
    width: 100%;
    margin-bottom: 12px;
}

@media (max-width: 820px) {
    .guided {
        grid-template-columns: 1fr;
    }
}

/* ---------- Signed-in user ---------- */

.user-chip {
    position: relative;
    color: #fff;
}

.user-chip summary,
.user-chip--plain {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.user-chip summary {
    list-style: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.user-chip summary::-webkit-details-marker {
    display: none;
}

.user-chip summary:hover,
.user-chip[open] summary {
    background: var(--navy-soft);
}

.user-chip__avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--teal-deep);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.user-chip__who {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    text-align: left;
}

.user-chip__who strong {
    font-size: 0.92rem;
    font-weight: 600;
}

.user-chip__who span {
    font-size: 0.8rem;
    color: #b6c2cf;
}

.user-chip__caret {
    width: 8px;
    height: 8px;
    margin: 0 4px 4px;
    border-right: 2px solid #b6c2cf;
    border-bottom: 2px solid #b6c2cf;
    transform: rotate(45deg);
}

.user-chip[open] .user-chip__caret {
    margin-bottom: -4px;
    transform: rotate(-135deg);
}

.user-chip__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(13, 27, 42, 0.22);
}

.user-chip__menu p {
    margin: 0;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--slate);
    overflow-wrap: anywhere;
}

/* Beats the header's own link colour, which is meant for links on the dark bar. */
.site-nav .user-chip__menu a,
.user-chip__menu button {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.site-nav .user-chip__menu a:hover,
.user-chip__menu button:hover {
    background: var(--mist);
    color: var(--ink);
}

.user-chip__menu form {
    margin: 0;
}

.user-chip--plain {
    margin-left: 14px;
}

/* ---------- Skye: speak instead of typing ---------- */

.skye-mic {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--teal-deep);
    cursor: pointer;
}

.skye-mic:hover:not(:disabled) {
    border-color: var(--teal-deep);
    background: #e9f7f6;
}

.skye-mic:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Listening: filled, with a slow pulse so it is plain the microphone is live. */
.skye-mic--on {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
    animation: skye-mic-pulse 1.4s ease-in-out infinite;
}

.skye-mic--on:hover:not(:disabled) {
    border-color: var(--danger);
    background: var(--danger);
}

@keyframes skye-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(180, 35, 24, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .skye-mic--on { animation: none; }
}

.skye-panel__note--problem {
    color: var(--danger);
    padding-top: 6px;
}

.skye-mic--working {
    opacity: 1;
}

/* ---------- Skye: read an answer aloud ---------- */

.skye-speaker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 3px 10px 3px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--teal-deep);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.skye-speaker:hover:not(:disabled) {
    border-color: var(--teal-deep);
    background: #e9f7f6;
}

.skye-speaker--on {
    border-color: var(--teal-deep);
    background: var(--teal-deep);
    color: #fff;
}

.skye-speaker--on:hover:not(:disabled) {
    background: #006a67;
}

.skye-speaker .spinner {
    width: 12px;
    height: 12px;
}

.skye-speaker__problem {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--danger);
}
