/* Layout and components. Colours come from the --brand-* variables in the theme file. */

body {
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-5, .display-6 {
    color: var(--brand-dark);
    font-weight: 700;
    letter-spacing: -.02em;
}

/* Links: navy, underlined, with a sand fill on hover */
a {
    text-underline-offset: .1875rem;
    text-decoration-thickness: 1px;
}

a:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: .125rem;
}

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .5rem 1rem;
    background: #fff;
    border-radius: var(--bs-border-radius);
}

/* Wide gutters (g-5 = 3rem) are wider than the container padding and push the row 12 px past the
   viewport on phones. Columns stack below lg anyway, so use the standard gutter there. */
@media (max-width: 991.98px) {
    .g-5,
    .gx-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* ---------- Header ---------- */
/* Independence notice: always shown above the navigation, on every page and screen size. */
.site-notice {
    background: var(--brand-sand-light);
    border-bottom: 1px solid var(--brand-border-soft);
    color: var(--brand-ink);
    font-size: .8125rem;
    line-height: 1.35;
    padding: .4rem 0;
}

.site-notice p {
    margin: 0;
}

.site-notice strong {
    color: var(--brand-primary);
    font-weight: 700;
}

.site-notice .bi {
    color: var(--brand-primary);
}

.site-notice a {
    color: var(--brand-primary);
    font-weight: 600;
}

.site-notice a:hover {
    background: var(--brand-sand);
    text-decoration: none;
}

/* .navbar.navbar-site outranks Bootstrap's .navbar[data-bs-theme=dark] colour variables */
.navbar.navbar-site {
    background: var(--brand-dark);
    --bs-navbar-padding-y: .55rem;
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fff;
    --bs-navbar-toggler-border-color: rgba(255, 255, 255, .5);
    --bs-navbar-toggler-border-radius: .25rem;
    --bs-navbar-toggler-focus-width: 3px;
}

.navbar-site :focus-visible {
    outline-color: var(--brand-gold);
}

.navbar-site .navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--brand-gold);
}

.navbar-site .navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -.01em;
}

.brand-mark {
    border-radius: .3rem;
}

.brand-text {
    font-weight: 400;
    color: #fff;
}

.brand-text strong {
    font-weight: 700;
    color: #fff;
}

.navbar-site .nav-link {
    font-weight: 600;
    font-size: .95rem;
    position: relative;
}

@media (min-width: 1200px) {
    .navbar.navbar-site {
        --bs-navbar-padding-y: 0;
    }

    .navbar-site .navbar-brand {
        padding: .8rem 0;
    }

    .navbar-site .navbar-nav .nav-link {
        padding: 1.4rem .8rem;
    }

    /* Gold bar under the current section, sand bar on hover (::after is the dropdown caret) */
    .navbar-site .navbar-nav .nav-link::before {
        content: "";
        position: absolute;
        left: .8rem;
        right: .8rem;
        bottom: 0;
        height: 4px;
        background: transparent;
        transition: background-color .15s ease;
    }

    .navbar-site .navbar-nav .nav-link:hover::before,
    .navbar-site .navbar-nav .nav-link.show::before {
        background: var(--brand-sand);
    }

    .navbar-site .navbar-nav .nav-link.active::before {
        background: var(--brand-gold);
    }
}

@media (max-width: 1199.98px) {
    .navbar-site .navbar-collapse {
        padding: .5rem 0 1rem;
    }

    .navbar-site .navbar-nav .nav-link {
        padding: .75rem .75rem;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .navbar-site .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, .07);
    }

    .navbar-site .nav-link.active {
        border-left: 4px solid var(--brand-gold);
    }
}

/* ---------- Home hero ---------- */
.hero-home {
    position: relative;
    background: var(--brand-sand);
    color: var(--brand-ink);
    overflow: hidden;
}

.hero-content {
    position: relative;
    padding-top: 3.5rem;
    padding-bottom: 4rem;
}

.hero-home h1 {
    color: var(--brand-dark);
    letter-spacing: -.025em;
}

.hero-home .lead {
    color: var(--brand-ink);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: .25rem;
    background: #fff;
    border: 1px solid var(--brand-border);
    color: var(--brand-primary);
    font-size: .85rem;
    font-weight: 600;
}

.quick-spec {
    background: #fff;
    color: var(--bs-body-color);
    border-radius: .25rem;
    border-top: 6px solid var(--brand-gold);
    box-shadow: var(--brand-shadow);
    padding: 1.5rem;
    position: relative;
}

.quick-spec h2 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    letter-spacing: -.01em;
}

.quick-spec .spec-num {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: -.02em;
}

@media (max-width: 575.98px) {
    .hero-content { padding-top: 2.5rem; padding-bottom: 3rem; }
    .quick-spec .spec-num { font-size: 1.2rem; }
    .quick-spec-photo { width: 76px; flex-basis: 76px; }
}

.quick-spec .spec-label {
    font-size: .8rem;
    color: var(--bs-secondary-color);
}

.quick-spec .spec-cell {
    background: var(--brand-sand-light);
    border-radius: .25rem;
    padding: .75rem .9rem;
    height: 100%;
}

.quick-spec-photo {
    width: 96px;
    flex: 0 0 96px;
}

/* ---------- Guide page hero (sand banner) ---------- */
.page-hero {
    position: relative;
    background: var(--brand-sand);
    color: var(--brand-ink);
    padding: 1.25rem 0 3rem;
}

.page-hero h1 {
    color: var(--brand-dark);
    font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.page-hero .lead {
    color: var(--brand-ink);
    max-width: 52rem;
    font-size: 1.2rem;
}

.hero-meta {
    color: var(--brand-muted);
}

.hero-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-top: .3rem;
    border-radius: .25rem;
    background: var(--brand-dark);
    color: var(--brand-gold);
    font-size: 1.6rem;
}

.breadcrumb-banner {
    --bs-breadcrumb-divider: "\203A";
    --bs-breadcrumb-divider-color: var(--brand-primary);
    --bs-breadcrumb-item-active-color: var(--brand-ink);
    --bs-breadcrumb-item-padding-x: .6rem;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 2.25rem;
}

.breadcrumb-banner .breadcrumb-item + .breadcrumb-item::before {
    font-size: 1.15em;
    line-height: 1.2;
}

.breadcrumb-banner a {
    color: var(--brand-primary);
}

.breadcrumb-banner a:hover {
    background: #fff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .hero-icon {
        display: none;
    }

    .breadcrumb-banner {
        margin-bottom: 1.5rem;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}

.section-sand {
    background: var(--brand-sand-light);
}

.section-title {
    margin-bottom: .75rem;
}

/* Navy rule under section headings */
.section-title::after {
    content: "";
    display: block;
    width: 5rem;
    height: 5px;
    margin-top: .9rem;
    background: var(--brand-dark);
}

.section-kicker {
    color: var(--brand-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    margin-bottom: .5rem;
}

.divider-wattle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0;
}

.divider-wattle::before,
.divider-wattle::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--brand-border);
}

.divider-wattle img {
    width: 28px;
    height: 28px;
}

/* ---------- Guide cards ---------- */
.guide-card {
    position: relative;
    border: 0;
    border-radius: .25rem;
    box-shadow: var(--brand-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.guide-card:hover,
.guide-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--brand-shadow-hover);
}

.guide-card:hover .card-title {
    text-decoration: underline;
    text-underline-offset: .1875rem;
}

.guide-card .card-body {
    padding: 1.5rem 1.5rem 2.75rem;
}

.guide-card .card-title {
    color: var(--brand-dark);
    font-weight: 700;
}

.card-arrow {
    position: absolute;
    right: 1.25rem;
    bottom: 1rem;
    color: var(--brand-primary);
    font-size: 1.2rem;
    transition: transform .15s ease;
}

.guide-card:hover .card-arrow {
    transform: translateX(4px);
}

.icon-bubble {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: .25rem;
    background: var(--brand-sand);
    color: var(--brand-primary);
    font-size: 1.4rem;
}

.visa-card {
    border: 0;
    border-radius: .25rem;
    padding: 1.25rem;
    background: #fff;
    box-shadow: var(--brand-shadow);
}

.visa-card h3 a {
    color: var(--brand-dark);
}

.visa-card h3 a:hover {
    background: var(--brand-sand);
    text-decoration: none;
}

/* Long dropdowns (foreign visas) split into two columns on desktop */
@media (min-width: 1200px) {
    .dropdown-menu-cols {
        column-count: 2;
        column-gap: 0;
        min-width: 30rem;
    }

    /* Open towards the left so the wide menu stays inside the viewport */
    .navbar-nav .dropdown-menu-cols[data-bs-popper] {
        left: auto;
        right: 0;
    }

    .dropdown-menu-cols li {
        break-inside: avoid;
    }
}

/* ---------- Article ---------- */
.article {
    font-size: 1rem;
    line-height: 1.75;
}

.article > h2,
.article section > h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2rem);
    line-height: 1.25;
    scroll-margin-top: 8rem;
}

.article h3 {
    margin-top: 2rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.015em;
}

.article .intro {
    font-size: 1.125rem;
    color: var(--brand-ink);
}

.article ul li,
.article ol li {
    margin-bottom: .35rem;
}

.article a:not([class]):hover,
.toc a:hover,
.sources-card a:hover {
    background: var(--brand-sand);
    text-decoration: none;
}

.toc {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: .25rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.toc p {
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--brand-dark);
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}

@media (max-width: 575.98px) {
    .toc ol {
        columns: 1;
    }
}

/* Spec tables */
.spec-table-wrap {
    border: 1px solid var(--brand-border);
    border-radius: .25rem;
    overflow: hidden;
    margin: 1.25rem 0;
}

.table-spec {
    font-size: .98rem;
}

.table-spec th {
    width: 36%;
    background: var(--brand-sand-light);
    color: var(--brand-dark);
    font-weight: 700;
}

.table-spec td,
.table-spec th {
    padding: .8rem 1rem;
}

.table-spec tr:last-child th,
.table-spec tr:last-child td {
    border-bottom: 0;
}

.table-compare {
    font-size: .92rem;
    --bs-table-striped-bg: var(--brand-sand-light);
}

.table-compare thead th {
    background: var(--brand-dark);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    vertical-align: middle;
}

.table-compare tbody th {
    font-weight: 700;
    color: var(--brand-dark);
    min-width: 11rem;
}

.table-compare td {
    min-width: 7.5rem;
}

/* Callouts: tinted panel with a coloured stripe on the left */
.callout {
    position: relative;
    border-radius: .25rem;
    padding: 1.25rem 1.5rem 1.25rem 1.9rem;
    margin: 1.5rem 0;
    background: var(--brand-sand);
}

.callout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    border-radius: .25rem 0 0 .25rem;
    background: var(--brand-gold);
}

.callout-title {
    font-weight: 700;
    margin-bottom: .35rem;
    color: var(--brand-dark);
}

.callout-body > :last-child {
    margin-bottom: 0;
}

.callout-official {
    background: var(--brand-info-soft);
}

.callout-official::before {
    background: var(--brand-info);
}

.callout-official .callout-title .bi {
    color: var(--brand-info);
}

.callout-tip .callout-title .bi {
    color: var(--brand-accent);
}

.callout-warning {
    background: var(--brand-warning-soft);
}

.callout-warning::before {
    background: var(--brand-warning);
}

.callout-warning .callout-title .bi {
    color: var(--brand-warning-text);
}

/* Do / Don't lists */
.dd-card {
    border-radius: .25rem;
    border-top: 5px solid;
    padding: 1.25rem 1.25rem .75rem;
}

.dd-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.dd-do {
    background: var(--brand-green-soft);
    border-top-color: var(--brand-green-mid);
}

.dd-do .dd-title {
    color: var(--brand-green);
}

.dd-dont {
    background: var(--brand-danger-soft);
    border-top-color: var(--brand-danger);
}

.dd-dont .dd-title {
    color: var(--brand-danger);
}

.dd-list {
    padding-left: 1.1rem;
    font-size: .98rem;
}

/* Sample photos */
.photo-example {
    margin: 0;
    text-align: center;
}

.photo-frame {
    position: relative;
    border-radius: .125rem;
    padding: .4rem;
    background: #fff;
    box-shadow: 0 .2rem .8rem rgba(11, 18, 21, .12);
    border: 3px solid transparent;
}

.is-ok .photo-frame {
    border-color: var(--brand-green-mid);
}

.is-no .photo-frame {
    border-color: var(--brand-danger);
}

.photo-frame svg,
.photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 35 / 45;
    border-radius: .125rem;
    outline: 1px solid rgba(11, 18, 21, .12);
}

.photo-badge {
    position: absolute;
    top: -.65rem;
    right: -.65rem;
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .2);
}

.is-ok .photo-badge {
    background: var(--brand-green-mid);
}

.is-no .photo-badge {
    background: var(--brand-danger);
}

.photo-example figcaption {
    margin-top: .6rem;
    font-size: .92rem;
    line-height: 1.4;
}

.is-ok figcaption strong {
    color: var(--brand-green);
}

.is-no figcaption strong {
    color: var(--brand-danger);
}

/* Dimension diagram */
.diagram {
    background: var(--brand-sand-light);
    border-radius: .25rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
}

.diagram img {
    max-width: 100%;
    height: auto;
}

.diagram figcaption {
    font-size: .9rem;
    color: var(--bs-secondary-color);
    margin-top: .5rem;
}

/* Official images reproduced with credit (official_figure()) */
.official-figure {
    position: relative;
    margin: 1.5rem 0;
    padding: 1rem 1rem 1rem 1.4rem;
    background: #fff;
    border: 1px solid var(--brand-border-soft);
    border-radius: .25rem;
}

.official-figure::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 6px;
    border-radius: .25rem 0 0 .25rem;
    background: var(--brand-info);
}

.official-figure-img {
    display: block;
    text-align: center;
}

.official-figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--brand-border-soft);
}

.official-figure figcaption {
    margin-top: .65rem;
    font-size: .875rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
}

.official-figure-title {
    display: block;
    color: var(--brand-ink);
    font-weight: 600;
    margin-bottom: .15rem;
}

.official-figure-credit,
.official-figure-licence {
    display: block;
}

/* Small diagrams and phone screenshots: image beside the caption from 576px up */
@media (min-width: 576px) {
    .official-figure-side {
        display: flex;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .official-figure-side .official-figure-img {
        flex: 0 0 auto;
        max-width: 50%;
    }

    .official-figure-side figcaption {
        margin-top: 0;
    }
}

/* Steps */
.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps > li {
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.25rem;
}

.steps > li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: .1rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--brand-primary);
}

/* ---------- Sidebar ---------- */
.sidebar-sticky {
    position: sticky;
    top: 7.75rem;
    display: grid;
    gap: 1.5rem;
}

.side-card {
    border: 1px solid var(--brand-border);
    border-radius: .25rem;
    padding: 1.25rem;
    background: #fff;
}

.side-title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.side-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 4px;
    margin-top: .6rem;
    background: var(--brand-dark);
}

.qf-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--brand-border-soft);
    font-size: .93rem;
}

.qf-row:last-child {
    border-bottom: 0;
}

.qf-row dt {
    font-weight: 400;
    color: var(--bs-secondary-color);
}

.qf-row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
    color: var(--brand-dark);
}

/* "Useful links" style: one shadowed tile per guide, arrow on the right */
.side-links {
    border: 0;
    padding: 0;
    background: transparent;
}

.related-list li + li {
    margin-top: .75rem;
}

.related-list li a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    background: #fff;
    border-radius: .125rem;
    box-shadow: 0 .125rem .65rem rgba(11, 18, 21, .16);
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 600;
    line-height: 1.3;
    transition: box-shadow .15s ease, background-color .15s ease;
}

.related-list li a::after {
    content: "\f138";
    font-family: bootstrap-icons;
    margin-left: auto;
    padding-left: .5rem;
    font-weight: 400;
}

.related-list li a:hover {
    background: var(--brand-sand);
    box-shadow: 0 .25rem 1rem rgba(11, 18, 21, .2);
}

.related-list .bi {
    color: var(--brand-primary);
}

/* CTA card */
.cta-card {
    position: relative;
    overflow: hidden;
    border-radius: .25rem;
    padding: 1.5rem;
    color: #fff;
    background: var(--brand-dark);
    box-shadow: var(--brand-shadow);
}

.cta-card :focus-visible {
    outline-color: var(--brand-gold);
}

.cta-wattle {
    position: absolute;
    right: -6px;
    top: -6px;
}

.cta-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.015em;
    margin-bottom: .5rem;
    padding-right: 3.5rem;
    min-height: 2.5rem; /* text starts below the corner mark when the title fits on one line */
}

.cta-text {
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
}

.cta-wide {
    padding: 2rem 2.25rem;
}

.cta-wide .cta-title {
    font-size: 1.6rem;
}

/* Sources */
.sources-card {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    border-radius: .25rem;
    background: var(--brand-official-soft);
}

.sources-card h2,
.article .sources-card h2 {
    color: var(--brand-dark);
    font-size: .9rem;
    letter-spacing: .06em;
    margin-top: 0;
}

.sources-card li {
    margin-bottom: .35rem;
    font-size: .95rem;
}

/* FAQ: open panels separated by gold rules */
.faq-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-btn-color: var(--brand-dark);
    --bs-accordion-btn-bg: #fff;
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: var(--brand-dark);
    --bs-accordion-btn-padding-x: .75rem;
    --bs-accordion-btn-padding-y: 1.15rem;
    --bs-accordion-body-padding-x: .75rem;
    --bs-accordion-btn-focus-box-shadow: inset 0 0 0 3px var(--brand-primary);
    --bs-accordion-btn-icon-width: 1.1rem;
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23141939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23141939' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    border-top: 3px solid var(--brand-gold);
}

.faq-accordion .accordion-item {
    border-bottom: 3px solid var(--brand-gold);
}

.faq-accordion .accordion-button {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.01em;
    line-height: 1.4;
}

.faq-accordion .accordion-button:hover {
    background: var(--brand-sand-light);
}

.faq-accordion .accordion-body {
    padding: 0 .75rem 1.25rem;
}

.faq-accordion .accordion-body > :last-child {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 3.5rem;
    color: #fff;
}

.footer-skyline {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -1px;
    background: #fff;
}

.footer-body {
    background: var(--brand-dark);
    padding: 2.25rem 0 3rem;
}

.site-footer :focus-visible {
    outline-color: var(--brand-gold);
}

.footer-brand {
    font-size: 1.2rem;
    color: #fff;
}

.footer-brand strong {
    color: #fff;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: .5rem;
    font-size: .93rem;
}

.footer-links a {
    color: #fff;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--brand-dark);
    background: var(--brand-sand);
    text-decoration: none;
}

.footer-rule {
    border-color: #fff;
    opacity: .35;
    margin: 2rem 0 1.25rem;
}

.footer-disclaimer {
    color: rgba(255, 255, 255, .88);
}
.footer-tools {
    margin-top: 2rem;
}
.footer-tools-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.5rem;
}
.footer-tools-list:last-child {
    margin-bottom: 0;
}
.footer-tools-label {
    font-weight: 700;
    font-size: .93rem;
    margin: .5rem 0 .5rem;
}

/* ---------- Print ---------- */
@media print {
    .site-header,
    .site-footer,
    .sidebar-sticky,
    .cta-card {
        display: none !important;
    }

    .page-hero {
        background: none;
        color: #000;
        padding: 0;
    }

    .page-hero h1,
    .page-hero .lead {
        color: #000;
    }
}

/* ---------- Quick answer (featured snippets, voice and AI answers) ---------- */
.answer-box {
    position: relative;
    background: var(--brand-sand-light);
    border-radius: .25rem;
    padding: 1.15rem 1.5rem 1.15rem 1.9rem;
    margin: 0 0 1.75rem;
}
.answer-box::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    border-radius: .25rem 0 0 .25rem;
    background: var(--brand-dark);
}
.answer-kicker {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .25rem;
}
.answer-kicker .bi { color: var(--brand-accent); }
.article .answer-box .answer-q {
    font-size: 1.2rem;
    letter-spacing: -.01em;
    margin: 0 0 .4rem;
    padding: 0;
}
.answer-a { font-size: 1.05rem; line-height: 1.65; }

/* ---------- Ratings ---------- */
.stars-static {
    --rating: 0;
    position: relative;
    display: inline-block;
    font-family: bootstrap-icons;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: .12em;
    color: #C9C5BC;
    vertical-align: -.1em;
}
.stars-static::before { content: "\f586\f586\f586\f586\f586"; }
.stars-static::after {
    content: "\f586\f586\f586\f586\f586";
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--rating) / 5 * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: var(--brand-star);
}
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .7rem;
    border-radius: .25rem;
    border: 1px solid var(--brand-border);
    background: #fff;
    color: var(--brand-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.rating-badge:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.rating-badge-count { font-weight: 400; color: var(--brand-muted); }
.rating-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    border: 1px solid var(--brand-border);
    border-radius: .25rem;
    padding: 1.25rem 1.5rem;
    margin: 2.5rem 0 1.25rem;
    background: var(--brand-sand-light);
}
.article .rating-card h2 { font-size: 1.15rem; font-weight: 700; margin: 0 0 .25rem; padding: 0; letter-spacing: -.01em; }
.rating-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.rating-form .rating-msg { flex-basis: 100%; }
.rating-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Half-star input: nine radios laid out right-to-left so "checked ~ label" fills the lower values. */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 2rem;
    line-height: 1;
}
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label {
    position: relative;
    display: block;
    width: .5em;
    height: 1em;
    overflow: hidden;
    cursor: pointer;
    color: #B9B4AA;
}
.star-input label.star-full { width: 1em; }
.star-input label::before {
    content: "\f586";
    font-family: bootstrap-icons;
    position: absolute;
    top: 0;
    line-height: 1;
}
.star-input label.star-full::before,
.star-input label.star-left::before { left: 0; }
.star-input label.star-right::before { right: 0; }
.star-input label.star-full,
.star-input label.star-right { margin-right: .12em; }
.star-input input:checked ~ label { color: var(--brand-star); }
.star-input:hover label { color: #B9B4AA; }
.star-input label:hover,
.star-input label:hover ~ label { color: var(--brand-gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--brand-primary); outline-offset: 2px; border-radius: 2px; }

/* ---------- Share links ---------- */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin: 0 0 1.5rem;
}
.share-title { font-weight: 700; font-size: .95rem; color: var(--brand-dark); }
.share-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border: 1px solid var(--brand-border);
    border-radius: .25rem;
    background: #fff;
    color: var(--brand-primary);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}
.share-btn:hover { border-color: var(--brand-primary); background: var(--brand-sand); color: var(--brand-primary); }
.share-btn .bi { font-size: 1rem; }
@media (max-width: 575.98px) {
    .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .share-btn { padding: .5rem .65rem; }
}

/* Photos under a how-to step: AI scene photos and small samples with their badge */
.step-media {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin: .85rem 0 1.5rem;
}

.step-media figure {
    margin: 0;
}

.step-media .photo-example {
    width: 7.5rem;
}

.step-media .photo-example figcaption,
.step-scene figcaption {
    margin-top: .45rem;
    font-size: .85rem;
    line-height: 1.35;
    color: var(--bs-secondary-color);
}

.step-scene {
    flex: 1 1 18rem;
    max-width: 26rem;
}

.step-scene-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 .25rem .9rem rgba(0, 0, 0, .12);
}
