/*
 * 321SkiVacances blog: child theme of Understrap (Bootstrap 5).
 * Part 1 is copied from the main site (app/assets/styles/app.css: tokens, buttons, header, chips,
 * sections, page head, footer) so the blog looks like the main site; keep it in sync when the
 * main site's tokens change. Part 2 holds the blog components (cards, article, home, archives).
 */

/* ---------- Part 1: main site (app/assets/styles/app.css) ---------- */
:root {
    /* Palette */
    --ski-navy: #062b59;          /* headings, nav, strong type, dark icons */
    --ski-navy-2: #0b3d78;
    --ski-blue: #0866d9;          /* primary CTAs, links, active / selected */
    --ski-blue-dark: #0654b4;     /* hover of blue actions */
    --ski-blue-2: #168bd2;        /* secondary accent, used sparingly */
    --ski-sky: #9fd4f5;
    --ski-ice: #eaf5fc;           /* icon backgrounds, selected chips, pale surfaces */
    --ski-snow: #f7fafd;          /* section backgrounds */
    --ski-field: #f1f6fb;         /* secondary fields (header search) */
    --ski-line: #e2eaf2;
    --ski-line-soft: #e6edf5;
    --ski-muted: #566a84;         /* secondary copy, blue grey */
    --ski-text: #10243f;
    --ski-promo: #ef3340;         /* deals only: large or decorative promo accents (dots, borders, icons) */
    --ski-promo-dark: #c81e2c;    /* red text on white and every promo badge with small white text (AA: 5.6:1) */
    --ski-promo-soft: #fdeaec;
    --ski-highlight: #9dd6ff;     /* light blue on the hero photo */
    --ski-gold: #f2b01e;
    /* Ski run difficulty (resort pages) */
    --ski-run-green: #2e9d52;
    --ski-run-blue: #1f6fd1;
    --ski-run-red: #d83a3a;
    --ski-run-black: #1b2331;

    /* Shapes and depth */
    --radius-chip: 9px;
    --radius-control: 10px;
    --card-radius: 14px;
    --radius-panel: 20px;
    --shadow-soft: 0 1px 2px rgba(6, 43, 89, .05), 0 2px 8px rgba(6, 43, 89, .05);
    --shadow-hover: 0 2px 4px rgba(6, 43, 89, .06), 0 10px 24px rgba(6, 43, 89, .11);
    --shadow-menu: 0 4px 10px rgba(6, 43, 89, .08), 0 14px 30px rgba(6, 43, 89, .12);
    --focus-ring: 0 0 0 3px rgba(8, 102, 217, .35);
    --header-h: 66px;
    --site-max: 1200px;

    --bs-primary: var(--ski-blue);
    --bs-primary-rgb: 8, 102, 217;
    --bs-link-color: var(--ski-blue);
    --bs-link-color-rgb: 8, 102, 217;
    --bs-link-hover-color: var(--ski-blue-dark);
    --bs-link-hover-color-rgb: 6, 84, 180;
    --bs-body-bg: var(--ski-snow);
    --bs-body-color: var(--ski-text);
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-border-radius: var(--radius-control);
    --bs-border-color: var(--ski-line);
}

body { -webkit-font-smoothing: antialiased; font-family: var(--bs-body-font-family); background: var(--ski-snow); color: var(--ski-text); }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.bi { vertical-align: -.125em; flex-shrink: 0; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 2000; padding: .5rem 1rem; background: #fff; border-radius: var(--radius-control); }
h1, h2, h3, .h4, .h5 { letter-spacing: -.01em; }
.container { --bs-gutter-x: 2rem; }
@media (min-width: 1200px) { .container { max-width: var(--site-max); } }
a:focus-visible, button:focus-visible, .btn:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--ski-blue); outline-offset: 2px; box-shadow: none; }
.site-footer a:focus-visible { outline-color: #fff; }
/* Buttons: blue is the action colour. */
.btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: var(--ski-blue); --bs-btn-border-color: var(--ski-blue);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ski-blue-dark); --bs-btn-hover-border-color: var(--ski-blue-dark);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #05479a; --bs-btn-active-border-color: #05479a;
    --bs-btn-disabled-bg: var(--ski-blue); --bs-btn-disabled-border-color: var(--ski-blue);
    --bs-btn-focus-shadow-rgb: 8, 102, 217;
    font-weight: 700;
}

/* Secondary action: blue outline on white, ice hover (page files may still refine it). */
.btn-outline-primary {
    --bs-btn-color: var(--ski-blue); --bs-btn-bg: #fff; --bs-btn-border-color: #b9d3ee;
    --bs-btn-hover-color: var(--ski-blue-dark); --bs-btn-hover-bg: var(--ski-ice); --bs-btn-hover-border-color: var(--ski-blue);
    --bs-btn-active-color: var(--ski-blue-dark); --bs-btn-active-bg: var(--ski-ice); --bs-btn-active-border-color: var(--ski-blue);
    --bs-btn-focus-shadow-rgb: 8, 102, 217;
    font-weight: 600;
}
/* Small count next to a label (filters, chips, section titles). */
/* Header: white, 66 px, hairline separation. */
/* No backdrop-filter here: it would become the containing block of the fixed offcanvas menu. */
.site-header { background: #fff; border-bottom: 1px solid var(--ski-line-soft); }
.site-header .navbar { --bs-navbar-padding-y: .375rem; min-height: var(--header-h); gap: .75rem; }
.site-header .container { gap: 1rem; flex-wrap: nowrap; }
.site-header .navbar-brand { padding: 0; margin: 0 .25rem 0 0; flex-shrink: 0; line-height: 0; }
.site-header .navbar-brand img { width: 172px; height: auto; display: block; }
.site-header .navbar-toggler { border: 0; font-size: 1.6rem; color: var(--ski-navy); padding: .35rem .5rem; margin-left: auto; border-radius: var(--radius-control); }
.site-header .navbar-toggler:focus { box-shadow: var(--focus-ring); }
.site-header .navbar-nav { gap: .25rem; }
.site-header .nav-link { color: var(--ski-navy); font-weight: 600; font-size: .95rem; border-radius: var(--radius-control); padding: .5rem .75rem !important; display: flex; align-items: center; white-space: nowrap; }
.site-header .nav-link > .bi:first-child { color: var(--ski-navy); font-size: 1.05rem; margin-right: .45rem !important; }
.site-header .nav-link.dropdown-toggle::after { border-top-width: .3em; border-left-width: .28em; border-right-width: .28em; margin-left: .4em; opacity: .7; }
.site-header .nav-item-account .nav-link > .bi:first-child { font-size: 1.35rem; margin-right: 0 !important; }
.site-header .nav-link:hover, .site-header .nav-link.show { background: var(--ski-field); color: var(--ski-navy); text-decoration: none; }
.site-header .nav-link.active { color: var(--ski-blue); }
.site-header .nav-link-deals, .site-header .nav-link-deals:hover, .site-header .nav-link-deals.active { color: var(--ski-promo-dark); }
.site-header .nav-link-deals > .bi:first-child { color: var(--ski-promo); }
.site-header .nav-link-deals:hover { background: var(--ski-promo-soft); }
.site-header .dropdown-menu { border: 1px solid var(--ski-line-soft); border-radius: var(--card-radius); box-shadow: var(--shadow-menu); padding: .5rem; }
.site-header .dropdown-item { border-radius: 8px; padding: .4rem .75rem; font-size: .93rem; color: var(--ski-text); }
.site-header .dropdown-item:hover, .site-header .dropdown-item:focus { background: var(--ski-ice); color: var(--ski-navy); }
.site-header .dropdown-header { font-weight: 700; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; color: var(--ski-muted); }
@media (min-width: 992px) {
    /* Desktop nav reads as words; only the bons plans tag and the account icon keep their icon. */
    .site-header .nav-item:not(.nav-item-account) .nav-link:not(.nav-link-deals) > .bi:first-child { display: none; }
    .dropdown-menu-wide { min-width: 30rem; }
    .site-header .offcanvas { flex-grow: 0; margin-left: auto; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-brand img { width: 158px; }
    .site-header .navbar-nav { gap: 0; }
    .site-header .nav-link { padding: .5rem .55rem !important; }
}
@media (max-width: 991.98px) {
    .site-header .offcanvas { max-width: 22rem; }
    .site-header .offcanvas-body .nav-link { padding: .7rem .75rem !important; font-size: 1.05rem; }
    .site-header .dropdown-menu { box-shadow: none; border: 0; background: var(--ski-ice); margin: .25rem 0 .5rem; }
}
@media (max-width: 575.98px) {
    .site-header .navbar-brand img { width: 136px; }
}

/* Header search: secondary to the hero search. */
.header-search { flex: 1 1 auto; min-width: 0; max-width: 25rem; margin-left: 1rem; }
@media (max-width: 991.98px) { .header-search { margin-left: .5rem; } }
.header-search-mobile { max-width: none; }
.header-search-field { position: relative; }
.header-search-field .header-search-icon { position: absolute; left: .9rem; font-size: 1rem; top: 50%; transform: translateY(-50%); color: var(--ski-muted); pointer-events: none; }
.header-search-field .form-control { border-radius: var(--radius-control); background: var(--ski-field); border: 1px solid var(--ski-line); padding: .5rem .9rem .5rem 2.5rem; min-height: 2.6rem; font-size: .95rem; color: var(--ski-text); transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.header-search-field .form-control::placeholder { color: #62748c; }
.header-search-field .form-control:focus { background: #fff; border-color: var(--ski-blue); box-shadow: var(--focus-ring); }

.hero-eyebrow { display: inline-flex; align-items: center; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(6, 43, 89, .45); border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; padding: .38rem .8rem; margin-bottom: 1rem; }
.hero-eyebrow .bi { font-size: 1.05rem; color: var(--ski-highlight); }
.hero-wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 1.6rem; fill: #fff; z-index: 0; pointer-events: none; }
/* Sections */
.section { padding-top: 3.5rem; }
.section-band { margin-top: 3.5rem; padding-top: 3rem; padding-bottom: 3rem; background: var(--ski-ice); border-block: 1px solid #dcebf6; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
/* Kickers in blue (editorial labels); red only for the deals section. */
.section-kicker { display: flex; align-items: center; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ski-blue); margin-bottom: .4rem; }
.section-kicker-promo { color: var(--ski-promo-dark); }
.section-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 800; color: var(--ski-navy); margin: 0; }
.section-lead { color: var(--ski-muted); margin: .35rem 0 0; }
.section-actions { display: flex; align-items: center; gap: 1rem; }
.section-link { white-space: nowrap; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.feature-icon { flex-shrink: 0; width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--ski-ice); color: var(--ski-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.section-kicker-dash::before { content: ""; display: inline-block; width: 1.75rem; height: 3px; border-radius: 2px; background: currentColor; margin-right: .7rem; }
.chips-title { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ski-muted); margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--ski-line); border-radius: var(--radius-chip); padding: .45rem .9rem; color: var(--ski-navy); font-weight: 500; font-size: .93rem; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.chip:hover { border-color: var(--ski-blue); background: var(--ski-ice); color: var(--ski-blue-dark); text-decoration: none; }
.chip-more { background: var(--ski-blue); border-color: var(--ski-blue); color: #fff; font-weight: 600; }
.chip-more:hover { background: var(--ski-blue-dark); border-color: var(--ski-blue-dark); color: #fff; }
.site-footer { margin-top: 4rem; color: rgba(255, 255, 255, .78); }
.footer-peaks { color: var(--ski-navy); line-height: 0; }
.footer-peaks svg { display: block; }
.footer-main { background: var(--ski-navy); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--ski-sky); }
/* Transparent logo with navy lettering: shown on a white plate on the navy footer. */
.footer-logo { display: inline-block; line-height: 0; background: #fff; border-radius: 12px; padding: .55rem .8rem; }
.footer-logo img { width: 150px; height: auto; }
.footer-title { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-bottom: .75rem; }
.site-footer li { padding: .2rem 0; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255, 255, 255, .1); font-size: 1.05rem; transition: background-color .15s ease; }
.social-link:hover { background: var(--ski-blue); color: #fff !important; }
.footer-bottom { background: rgba(0, 0, 0, .22); color: rgba(255, 255, 255, .7); }
.page-head { background: linear-gradient(180deg, #fff 0%, var(--ski-snow) 100%); border-bottom: 1px solid var(--ski-line-soft); padding: 1rem 0 1.5rem; }
.page-breadcrumb .breadcrumb { --bs-breadcrumb-divider-color: #8a9bb0; --bs-breadcrumb-item-active-color: var(--ski-muted); font-size: .84rem; margin-bottom: .9rem; flex-wrap: wrap; row-gap: .15rem; }
.page-breadcrumb .breadcrumb-item a { color: var(--ski-blue); }
.page-breadcrumb .breadcrumb-item .bi { vertical-align: -.1em; }
.page-title { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 800; line-height: 1.15; letter-spacing: -.015em; color: var(--ski-navy); margin-bottom: .6rem; }
.page-title-accent { color: var(--ski-blue); }
.page-lead, .page-intro { color: var(--ski-muted); font-size: 1rem; line-height: 1.55; max-width: 60rem; margin-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Part 2: blog components ---------- */

main { display: block; }
.section-sm { padding-top: 2.25rem; }
.page-head { padding: 1.1rem 0 1.6rem; }
.page-lead > :last-child { margin-bottom: 0; }
.page-lead p { margin-bottom: .5rem; }
.page-count { font-size: .88rem; font-weight: 600; color: var(--ski-muted); }
.section-head-center { justify-content: center; text-align: center; }
.section-head-center .section-lead { max-width: 46rem; margin-inline: auto; }

/* Deals button: the promo colour, only for the bons plans link (main-site rule). */
.btn-deals {
    --bs-btn-color: var(--ski-promo-dark); --bs-btn-bg: #fff; --bs-btn-border-color: #f3c3c8;
    --bs-btn-hover-color: var(--ski-promo-dark); --bs-btn-hover-bg: var(--ski-promo-soft); --bs-btn-hover-border-color: var(--ski-promo);
    --bs-btn-active-color: var(--ski-promo-dark); --bs-btn-active-bg: var(--ski-promo-soft); --bs-btn-active-border-color: var(--ski-promo);
    font-weight: 700;
}
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-control); }
.btn:hover { text-decoration: none; }
.btn-lg { font-size: 1.02rem; padding: .7rem 1.3rem; }

/* Cards (blog index, archives, related, home): one card per article. */
.post-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.post-card:hover { box-shadow: var(--shadow-hover); border-color: #d3e1ef; transform: translateY(-2px); }
.post-card:has(.post-card-title a:focus-visible) { outline: 3px solid var(--ski-blue); outline-offset: 2px; }
.post-card-media { display: block; aspect-ratio: 3 / 2; background: var(--ski-ice); overflow: hidden; }
.post-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: var(--ski-blue); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.1rem; }
.post-card-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ski-blue); margin: 0 0 .35rem; }
.post-card-title { font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin: 0 0 .5rem; }
.post-card-title a { color: var(--ski-navy); }
.post-card-title a:hover { text-decoration: none; color: var(--ski-blue-dark); }
.post-card-title a:focus-visible { outline: 0; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card-excerpt { font-size: .9rem; color: var(--ski-muted); line-height: 1.5; margin: 0 0 .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: auto 0 0; padding-top: .75rem; border-top: 1px solid var(--ski-line-soft); font-size: .8rem; color: var(--ski-muted); }
.post-card-meta .bi { color: var(--ski-blue); }

/* Pagination (Understrap markup). */
.pagination { gap: .35rem; justify-content: center; margin: 2.25rem 0 0; flex-wrap: wrap; }
.pagination .page-link { border-radius: var(--radius-control) !important; border: 1px solid var(--ski-line); color: var(--ski-navy); font-weight: 600; min-width: 2.6rem; text-align: center; }
.pagination .page-item.active .page-link { background: var(--ski-blue); border-color: var(--ski-blue); color: #fff; }

/* Article and page: cover header */
.cover-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(380px, 32vw, 460px); color: #fff; background: var(--ski-navy); overflow: hidden; }
.cover-hero-media { position: absolute; inset: 0; z-index: -2; }
.cover-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cover-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(20deg, rgba(4, 30, 64, .94) 0%, rgba(6, 43, 89, .78) 32%, rgba(6, 43, 89, .38) 62%, rgba(6, 43, 89, .12) 100%),
    linear-gradient(180deg, rgba(4, 30, 64, .42) 0%, rgba(4, 30, 64, 0) 26%); }
.cover-hero-plain { background: radial-gradient(120% 140% at 100% 0%, #3f8fd8 0%, rgba(63, 143, 216, 0) 55%), linear-gradient(135deg, var(--ski-navy) 0%, var(--ski-navy-2) 55%, #1d5fa8 100%); }
.cover-hero-plain::before { background: linear-gradient(20deg, rgba(4, 30, 64, .55) 0%, rgba(4, 30, 64, 0) 60%); }
.cover-hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; align-self: stretch; padding-top: 1.1rem; padding-bottom: 2.4rem; }
.cover-hero-text { max-width: 52rem; }
.cover-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .82); margin: 0; text-shadow: 0 1px 6px rgba(3, 22, 50, .5); }
.cover-hero .breadcrumb-item a { color: #fff; font-weight: 600; }
.cover-hero .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26rem; }
.cover-hero a:focus-visible { outline-color: #fff; }
.cover-hero .article-category { color: #fff; background: var(--ski-blue); box-shadow: 0 2px 10px rgba(3, 22, 50, .25); }
.cover-hero .article-category:hover { background: var(--ski-blue-dark); }
.cover-hero .article-title { color: #fff; text-shadow: 0 2px 18px rgba(3, 22, 50, .45); }
.cover-hero .article-meta { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(3, 22, 50, .5); }
.cover-hero .article-meta .bi { color: var(--ski-highlight); }
@media (max-width: 575.98px) {
    .cover-hero { min-height: 280px; }
    .cover-hero::before { background: linear-gradient(0deg, rgba(4, 30, 64, .95) 0%, rgba(6, 43, 89, .72) 45%, rgba(6, 43, 89, .3) 75%, rgba(4, 30, 64, .45) 100%); }
    .cover-hero-plain::before { background: none; }
    .cover-hero-inner { gap: 1.25rem; padding-bottom: 1.6rem; }
    .cover-hero .breadcrumb { font-size: .8rem; }
    .cover-hero .breadcrumb-item.active { display: none; }
}
.article-category { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ski-blue-dark); background: var(--ski-ice); border-radius: 7px; padding: .3rem .65rem; margin-bottom: .85rem; }
.article-category:hover { text-decoration: none; background: #d9ecfa; }
.article-title { font-size: clamp(1.7rem, 3.4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ski-navy); margin: 0 0 .9rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; font-size: .92rem; color: var(--ski-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta .bi { color: var(--ski-blue); }

/* Article and page: content column + sticky sidebar */
.article-layout { padding-top: 2.75rem; padding-bottom: 1rem; }
@media (max-width: 991.98px) { .article-layout { padding-top: 1.5rem; } }
.article-content { max-width: 50rem; }
.entry-content h2[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }
.article-aside { gap: 1.25rem; }
.article-aside-track { flex: 1 0 auto; }
.article-aside-inner { position: sticky; top: calc(var(--header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); padding: 1.15rem 1.25rem 1.2rem; }
.side-card-title { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ski-navy); margin: 0 0 .75rem; }
.side-card-title .bi { color: var(--ski-blue); font-size: 1rem; }
.article-toc-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.article-toc-list a { display: block; padding: .38rem .6rem .38rem .8rem; border-left: 2px solid var(--ski-line); color: var(--ski-text); font-size: .9rem; line-height: 1.35; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.article-toc-list a:hover { color: var(--ski-blue-dark); border-left-color: var(--ski-blue); background: var(--ski-snow); text-decoration: none; }
.article-toc-list a.is-active { color: var(--ski-blue); border-left-color: var(--ski-blue); font-weight: 700; background: var(--ski-ice); }
.article-toc-side .article-toc-list { max-height: calc(100vh - var(--header-h) - 24rem); min-height: 9rem; overflow-y: auto; overscroll-behavior: contain; }
.article-toc-mobile { background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); margin-bottom: 1.75rem; }
.article-toc-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; cursor: pointer; list-style: none; font-weight: 800; color: var(--ski-navy); }
.article-toc-mobile summary::-webkit-details-marker { display: none; }
.article-toc-mobile summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--ski-blue); border-bottom: 2px solid var(--ski-blue); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; flex-shrink: 0; }
.article-toc-mobile[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.article-toc-summary { display: inline-flex; align-items: center; gap: .5rem; }
.article-toc-summary .bi { color: var(--ski-blue); }
.article-toc-count { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--ski-muted); }
.article-toc-mobile nav { padding: 0 1.1rem 1rem; }
.blog-cta.blog-cta-side { display: block; margin: 0; padding: 1.35rem 1.35rem 1.4rem; background-image: linear-gradient(160deg, var(--ski-ice) 0%, #fff 70%); border-radius: var(--card-radius); }
.blog-cta-side .blog-cta-icon { display: none; }
.blog-cta-side .blog-cta-title { font-size: 1.15rem; margin-bottom: .3rem; }
.blog-cta-side .blog-cta-lead { font-size: .9rem; margin-bottom: 1rem; }
.blog-cta-side .blog-cta-actions { flex-direction: column; gap: .5rem; }
.blog-cta-side .blog-cta-actions .btn { width: 100%; }
.side-posts-list { margin: 0; display: grid; gap: .85rem; }
.side-post { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; align-items: center; }
.side-post-media { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--ski-ice); }
.side-post-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-post-media .post-card-placeholder { font-size: 1.5rem; }
.side-post-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--ski-navy); }
.side-post-title::after { content: ""; position: absolute; inset: 0; }
.side-post-title:hover { color: var(--ski-blue-dark); text-decoration: none; }
.side-post:hover .side-post-media img { transform: scale(1.04); }
.side-post-media img { transition: transform .25s ease; }
.side-post-date { margin: .2rem 0 0; font-size: .78rem; color: var(--ski-muted); }
@media (max-height: 640px) { .article-aside-inner { position: static; } }

.entry-content { font-size: 1.07rem; line-height: 1.75; color: #1d3150; overflow-wrap: break-word; }
.entry-content > * { margin-bottom: 1.15rem; }
.entry-content h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800; color: var(--ski-navy); line-height: 1.25; margin: 2.75rem 0 1rem; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 1.22rem; font-weight: 700; color: var(--ski-navy); margin: 2rem 0 .75rem; }
.entry-content h4, .entry-content h5 { font-weight: 700; color: var(--ski-navy); margin: 1.5rem 0 .6rem; }
.entry-content a { color: var(--ski-blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--ski-blue-dark); text-decoration-thickness: 2px; }
.entry-content strong { color: var(--ski-navy); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content li::marker { color: var(--ski-blue); }
.entry-content blockquote { border-left: 4px solid var(--ski-blue); background: #fff; border-radius: 0 var(--card-radius) var(--card-radius) 0; padding: 1rem 1.25rem; color: var(--ski-navy); font-style: italic; }
.entry-content figure, .entry-content .wp-block-image { margin: 1.75rem 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--card-radius); }
.entry-content .wp-block-image img { box-shadow: var(--shadow-soft); }
.entry-content figcaption, .entry-content .wp-element-caption { font-size: .85rem; color: var(--ski-muted); text-align: center; margin-top: .5rem; }
.entry-content .wp-block-image.size-large img, .entry-content .wp-block-image.size-full img { width: 100%; }
.entry-content .aligncenter { margin-inline: auto; text-align: center; }
.entry-content .alignleft { float: left; margin: .35rem 1.5rem 1rem 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: .35rem 0 1rem 1.5rem; max-width: 50%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.entry-content th, .entry-content td { border: 1px solid var(--ski-line); padding: .5rem .75rem; }
.entry-content p:empty { display: none; }
.entry-content::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) {
    .entry-content { font-size: 1.02rem; line-height: 1.7; }
    .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 1rem 0; }
}

.article-tags { margin: 2.25rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--ski-line); }
.chips { margin: 0; }
.chip { font-size: .88rem; padding: .38rem .8rem; }

/* Call to action to the main site */
.blog-cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.5rem; margin: 2.5rem 0 0; padding: 1.5rem 1.75rem; background: #fff; border: 1px solid #cfe3f3; border-radius: var(--radius-panel); box-shadow: var(--shadow-soft); background-image: linear-gradient(120deg, var(--ski-ice) 0%, #fff 55%); }
.blog-cta-icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--ski-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.blog-cta-title { font-size: 1.25rem; font-weight: 800; color: var(--ski-navy); margin: 0 0 .2rem; }
.blog-cta-lead { margin: 0; color: var(--ski-muted); font-size: .95rem; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (max-width: 991.98px) {
    .blog-cta { grid-template-columns: auto 1fr; }
    .blog-cta-actions { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .blog-cta { grid-template-columns: 1fr; padding: 1.25rem; }
    .blog-cta-icon { width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
    .blog-cta-actions .btn { flex: 1 1 100%; }
}

.related-posts { padding-bottom: .5rem; }
.article-comments { margin-top: 2.5rem; }

/* Home (magazine layout) */
.hero-eyebrow { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ski-highlight); margin: 0 0 .6rem; }
.hero-eyebrow .bi { font-size: 1rem; }
.home-hero { position: relative; isolation: isolate; color: #fff; background: var(--ski-navy); overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; z-index: -2; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 30, 64, .72) 0%, rgba(6, 43, 89, .86) 45%, var(--ski-navy) 100%); }
.home-hero-inner { padding-top: 2.5rem; padding-bottom: 3rem; }
.home-hero-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.home-hero-title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.025em; margin: 0; text-shadow: 0 2px 16px rgba(3, 22, 50, .35); }
.home-hero-lead { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.55; color: rgba(255, 255, 255, .9); margin: 0; max-width: 38rem; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
.feature-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 440px; border-radius: var(--radius-panel); overflow: hidden; background: linear-gradient(135deg, var(--ski-navy-2), #1d5fa8); box-shadow: 0 18px 40px rgba(2, 16, 38, .35); }
.feature-card-media { position: absolute; inset: 0; z-index: -2; }
.feature-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, rgba(4, 30, 64, .95) 0%, rgba(6, 43, 89, .7) 38%, rgba(6, 43, 89, .1) 75%); }
.feature-card:hover .feature-card-media img { transform: scale(1.03); }
.feature-card-body { padding: 2rem 2.1rem; max-width: 40rem; }
.feature-card-kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.feature-card-kicker .article-category { margin: 0; color: #fff; background: var(--ski-blue); }
.feature-card-flag { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ski-gold); }
.feature-card-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .7rem; text-shadow: 0 2px 14px rgba(3, 22, 50, .4); }
.feature-card-title a { color: #fff; }
.feature-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-card-title a:hover { text-decoration: none; }
.feature-card:has(a:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.feature-card-title a:focus-visible { outline: none; }
.feature-card-excerpt { color: rgba(255, 255, 255, .9); line-height: 1.55; margin: 0 0 1.25rem; }
.feature-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; }
.feature-card-meta { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: rgba(255, 255, 255, .85); }
.feature-card-meta .bi { color: var(--ski-highlight); }
.feature-card:hover .btn-primary { background: var(--ski-blue-dark); border-color: var(--ski-blue-dark); }
.home-hero-side { display: flex; flex-direction: column; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-panel); padding: 1.1rem 1.1rem 1rem; }
.home-hero-side-title { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ski-highlight); margin: .15rem .25rem .8rem; }
.mini-cards { margin: 0; display: grid; gap: .75rem; }
.mini-card { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: .85rem; align-items: center; background: #fff; border-radius: var(--card-radius); padding: .6rem; color: var(--ski-text); transition: box-shadow .18s ease, transform .18s ease; }
.mini-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2, 16, 38, .3); }
.mini-card:has(a:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
.mini-card-media { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--ski-ice); }
.mini-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-card-media .post-card-placeholder { font-size: 1.5rem; }
.mini-card-body { min-width: 0; }
.mini-card .post-card-category { font-size: .68rem; margin-bottom: .2rem; }
.mini-card-title { font-size: .92rem; font-weight: 800; line-height: 1.28; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card-title a { color: var(--ski-navy); }
.mini-card-title a::after { content: ""; position: absolute; inset: 0; }
.mini-card-title a:hover { text-decoration: none; color: var(--ski-blue-dark); }
.mini-card-title a:focus-visible { outline: none; }
.mini-card-meta { margin: .25rem 0 0; font-size: .76rem; color: var(--ski-muted); }
.home-hero-all { margin: auto .25rem 0; padding-top: .9rem; display: inline-flex; align-items: center; font-weight: 700; color: #fff; }
.home-hero-all:hover { color: var(--ski-highlight); }
.home-hero a:focus-visible { outline-color: #fff; }
@media (max-width: 991.98px) {
    .home-hero-head, .home-hero-grid { grid-template-columns: 1fr; }
    .home-hero-head { gap: .75rem; }
    .feature-card { min-height: 400px; }
}
@media (max-width: 575.98px) {
    .home-hero-inner { padding-top: 1.75rem; padding-bottom: 2rem; }
    .home-hero-head { margin-bottom: 1.4rem; }
    .feature-card { min-height: 380px; border-radius: var(--card-radius); }
    .feature-card-body { padding: 1.35rem 1.25rem; }
    .feature-card-excerpt { font-size: .95rem; }
    .home-hero-side { padding: .9rem .75rem .85rem; }
    .mini-card { grid-template-columns: 5.5rem 1fr; }
}

/* Station guides */
.station-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 0; }
.station-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease; }
.station-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: #cfe0f1; }
.station-card:has(.station-card-title a:focus-visible) { outline: 3px solid var(--ski-blue); outline-offset: 2px; }
.station-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ski-ice); overflow: hidden; }
.station-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.station-card:hover .station-card-media img { transform: scale(1.04); }
.station-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 30, 64, .8) 0%, rgba(4, 30, 64, 0) 55%); }
.station-card-name { position: absolute; left: 1rem; right: 1rem; bottom: .8rem; z-index: 1; font-size: 1.35rem; font-weight: 900; letter-spacing: -.015em; color: #fff; text-shadow: 0 2px 10px rgba(3, 22, 50, .45); }
.station-card-body { display: flex; flex-direction: column; gap: .7rem; flex: 1; padding: .95rem 1rem 1rem; }
.station-card-title { font-size: .95rem; font-weight: 700; line-height: 1.35; margin: 0; }
.station-card-title a { color: var(--ski-navy); }
.station-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.station-card-title a:hover { text-decoration: none; color: var(--ski-blue-dark); }
.station-card-title a:focus-visible { outline: none; }
.station-card-compare { position: relative; z-index: 2; margin-top: auto; display: block; font-size: .86rem; font-weight: 700; color: var(--ski-blue); padding-top: .65rem; border-top: 1px solid var(--ski-line-soft); width: 100%; }
/* "Plus de 300 stations": full-width banner closing the grid (any number of guides). */
.station-card-more { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.25rem; padding: 1.35rem 1.5rem; background: linear-gradient(100deg, var(--ski-ice) 0%, #fff 70%); border-color: #cfe3f3; }
.station-card-more-body { flex: 1; min-width: 0; }
.station-card-more:hover { transform: none; }
.station-card-more-icon { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ski-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.station-card-more-title { font-size: 1.2rem; font-weight: 800; color: var(--ski-navy); line-height: 1.25; margin: 0 0 .4rem; }
.station-card-more-text { font-size: .9rem; color: var(--ski-muted); margin: 0; }
.station-card-more .btn { flex: none; }
@media (max-width: 1199.98px) { .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; } }
@media (max-width: 575.98px) {
    .station-card-name { font-size: 1.05rem; left: .7rem; bottom: .55rem; }
    .station-card-body { padding: .7rem .7rem .8rem; gap: .5rem; }
    .station-card-title { font-size: .84rem; }
    .station-card-compare { font-size: .78rem; }
    .station-card-more { flex-direction: column; align-items: flex-start; gap: .7rem; padding: 1rem .95rem; }
    .station-card-more-icon { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
    .station-card-more-title { font-size: 1rem; }
    .station-card-more-text { font-size: .8rem; }
    .station-card-more .btn { font-size: .82rem; padding: .35rem .6rem; }
}

/* Editorial: why ski in France, where to ski */
.home-editorial { margin-top: 3.5rem; padding: 3.5rem 0; background: #fff; border-block: 1px solid var(--ski-line-soft); }
.home-editorial-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 3.5rem; align-items: center; }
.home-editorial-media { position: relative; margin: 0; }
.home-editorial-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-panel); box-shadow: var(--shadow-hover); }
.home-editorial-badge { position: absolute; right: -1rem; bottom: 1.75rem; background: #fff; color: var(--ski-muted); border-radius: var(--card-radius); box-shadow: var(--shadow-menu); padding: .9rem 1.1rem; font-size: .88rem; line-height: 1.5; }
.home-editorial-badge strong { color: var(--ski-blue); font-size: 1.2rem; font-weight: 900; margin-right: .2rem; }
.home-editorial-lead { color: var(--ski-muted); font-size: 1.02rem; line-height: 1.65; margin: .6rem 0 1.5rem; }
.home-features { display: grid; gap: 1.25rem; margin: 0; }
.home-features li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.home-feature-title { font-size: 1.05rem; font-weight: 800; color: var(--ski-navy); margin: .15rem 0 .3rem; }
.home-features p { color: var(--ski-muted); font-size: .93rem; line-height: 1.6; margin: 0; }
.home-intro { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; margin-top: 3rem; padding: 1.75rem 2rem; background: var(--ski-ice); border: 1px solid #d3e7f6; border-radius: var(--radius-panel); }
.home-intro-icon { width: 3.1rem; height: 3.1rem; border-radius: 50%; background: var(--ski-blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.home-intro-content { max-width: 60rem; font-size: 1.02rem; }
.home-intro-content h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--ski-navy); margin: .2rem 0 .6rem; }
.home-intro-content .col-md-12 { padding: 0; }
.home-intro-content .col-md-12 > :last-child, .home-intro-content > *:last-child { margin-bottom: 0; }
.home-intro-content a { font-weight: 700; }
@media (max-width: 991.98px) {
    .home-editorial-grid { grid-template-columns: 1fr; }
    .home-editorial-media img { aspect-ratio: 16 / 9; }
    .home-editorial-badge { right: 1rem; bottom: 1rem; }
}
@media (max-width: 575.98px) {
    .home-editorial { margin-top: 2.5rem; padding: 2.5rem 0; }
    .home-intro { grid-template-columns: 1fr; padding: 1.35rem 1.25rem; gap: .75rem; margin-top: 2rem; }
    .home-intro-icon { width: 2.6rem; height: 2.6rem; font-size: 1.15rem; }
    .home-editorial-badge { font-size: .8rem; padding: .65rem .8rem; }
}

/* Accommodation highlight */
.lodging-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.lodging-card { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; }
.lodging-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.lodging-card:has(a:focus-visible) { outline: 3px solid var(--ski-blue); outline-offset: 2px; }
.lodging-card-media { background: var(--ski-ice); min-height: 13rem; }
.lodging-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lodging-card-body { display: flex; flex-direction: column; padding: 1.25rem 1.35rem; }
.lodging-card-title { font-size: 1.1rem; font-weight: 800; line-height: 1.3; margin: 0 0 .55rem; }
.lodging-card-title a { color: var(--ski-navy); }
.lodging-card-title a::after { content: ""; position: absolute; inset: 0; }
.lodging-card-title a:hover { text-decoration: none; color: var(--ski-blue-dark); }
.lodging-card-title a:focus-visible { outline: none; }
.lodging-card-excerpt { font-size: .9rem; color: var(--ski-muted); line-height: 1.55; margin: 0 0 .9rem; }
@media (max-width: 991.98px) { .lodging-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .lodging-card { grid-template-columns: 1fr; } .lodging-card-media { min-height: 0; aspect-ratio: 16 / 9; } }

/* Themes: categories and tags */
.themes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.themes-tags { grid-column: 1 / -1; }
.theme-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 16rem; border-radius: var(--card-radius); overflow: hidden; background: linear-gradient(135deg, var(--ski-navy), #1d5fa8); color: #fff; box-shadow: var(--shadow-soft); }
.theme-card:hover { text-decoration: none; color: #fff; box-shadow: var(--shadow-hover); }
.theme-card-media { position: absolute; inset: 0; z-index: -2; }
.theme-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.theme-card:hover .theme-card-media img { transform: scale(1.05); }
.theme-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(4, 30, 64, .88) 0%, rgba(4, 30, 64, .2) 70%); }
.theme-card-body { display: grid; grid-template-columns: auto 1fr; column-gap: .75rem; align-items: center; padding: 1.1rem 1.2rem; }
.theme-card-icon { grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ski-blue); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.theme-card-name { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.theme-card-count { font-size: .85rem; color: rgba(255, 255, 255, .85); }
.themes-tags { background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); box-shadow: var(--shadow-soft); padding: 1.15rem 1.25rem; }
.themes-tags .chips { gap: .4rem; }
.themes-tags .chip { font-size: .8rem; padding: .28rem .6rem; }
@media (max-width: 575.98px) { .themes-grid { grid-template-columns: 1fr; } .theme-card { min-height: 11rem; } }
.home-cta { padding-bottom: .5rem; }

/* Search form, empty state, 404 */
.search-form-field { position: relative; display: flex; gap: .5rem; max-width: 34rem; }
.search-form-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ski-muted); pointer-events: none; }
.search-form .form-control { padding-left: 2.5rem; min-height: 2.9rem; border-color: #d6e2ef; background: #fff; }
.search-form .form-control:focus { border-color: var(--ski-blue); box-shadow: var(--focus-ring); }
.empty-state { background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); padding: 2rem; }
.error-hero { text-align: center; padding: 3.5rem 0 1rem; background: linear-gradient(180deg, #fff 0%, var(--ski-snow) 100%); }
.error-code { font-size: clamp(4.5rem, 12vw, 7.5rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--ski-ice); -webkit-text-stroke: 2px var(--ski-blue); margin: 0 0 .5rem; }
.error-hero .page-lead { margin-inline: auto; max-width: 36rem; }
.error-search .search-form-field { margin-inline: auto; }
.error-hero .chips { justify-content: center; }

/* Comments (closed on every post; kept readable if reopened). */
.comment-respond, .comments-area { background: #fff; border: 1px solid var(--ski-line); border-radius: var(--card-radius); padding: 1.5rem; }

/* Admin bar offset for the sticky header. */
body.admin-bar .site-header.sticky-top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header.sticky-top { top: 46px; } }
.section-head > div:first-child { flex: 1 1 28rem; min-width: 0; }
.section-head-center > div:first-child { flex-basis: auto; }
.site-header .header-search-mobile { margin-left: 0; }
