/**
 * Yehaa Homepage — Mobile-First Styles
 *
 * Yahoo Japan-inspired dense mobile layout.
 * All rules scoped under .page-yehaa body class.
 * Reuses design tokens from style.css (loaded first).
 */

/* ── Header ──────────────────────────────────────────── */

.page-yehaa main {
    padding: 0;
}

/* ── Promo Banner (hidden by default) ────────────────── */

.yehaa-promo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--egyptian-blue);
    color: white;
    font-size: 12px;
    line-height: 1.3;
}

.yehaa-promo[hidden] {
    display: none;
}

.yehaa-promo-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
    text-decoration: none;
}

.yehaa-promo-text {
    flex: 1;
}

.yehaa-promo-action {
    font-weight: 700;
    white-space: nowrap;
    padding: var(--space-1) var(--space-2);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 11px;
}

.yehaa-promo-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 var(--space-1);
    line-height: 1;
}

.yehaa-promo-close:hover {
    color: white;
}

.yehaa-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    height: 48px;
    padding: 0 var(--space-3);
    background: var(--surface-page);
    border-bottom: 1px solid var(--neutral-100);
    position: sticky;
    top: 0;
    z-index: 100;
}

.yehaa-logo {
    margin-right: auto;
}

/* ── Sticky search (in header, revealed on scroll) ──── */

.yehaa-header-search {
    display: none;
    flex: 1;
    min-width: 0;
    position: relative;
    max-width: none;
    margin: 0;
    padding: 0;
}

.yehaa-header--scrolled .yehaa-header-search {
    display: flex;
}

.yehaa-header--scrolled .yehaa-logo {
    margin-right: 0;
}

.yehaa-header--scrolled .yehaa-nav-primary {
    display: none;
}

.yehaa-header-search-input {
    width: 100%;
    box-sizing: border-box;
    height: 36px;
    padding: 0 var(--space-10) 0 var(--space-3);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--neutral-900);
    background: var(--neutral-50);
    transition: border-color var(--duration-normal) var(--ease-gentle);
}

.yehaa-header-search-input::placeholder {
    color: var(--neutral-400);
}

.yehaa-header-search-input:focus {
    outline: none;
    border-color: var(--egyptian-blue);
    background: var(--surface-page);
}

.yehaa-header-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 36px;
    width: 36px;
    background: var(--egyptian-blue);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yehaa-header-search-btn:hover {
    background: var(--primary-800);
}

.yehaa-nav-primary {
    display: inline-flex;
    align-items: center;
}

.yehaa-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.yehaa-logo img {
    height: 24px;
    width: auto;
    display: block;
}

.yehaa-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.yehaa-nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--egyptian-blue);
    text-decoration: none;
}

.yehaa-nav-link:hover {
    text-decoration: underline;
}

.yehaa-hamburger {
    background: none;
    border: none;
    padding: var(--space-1);
    cursor: pointer;
    color: var(--neutral-700);
    display: flex;
    align-items: center;
}

/* Candidate avatar in header */
.yehaa-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.yehaa-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--primary-100);
    color: var(--primary-700);
    font-size: 13px;
    font-weight: 700;
}

/* ── Search Bar ──────────────────────────────────────── */

.yehaa-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-page);
}

.yehaa-plume {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.yehaa-plume-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.yehaa-plume-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--neutral-500);
    white-space: nowrap;
}

.yehaa-search-form {
    flex: 1;
    min-width: 0;
    position: relative;
    max-width: none;
    margin: 0;
    padding: 0;
}

.yehaa-search-input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 var(--space-10) 0 var(--space-3);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--neutral-900);
    background: var(--neutral-50);
    transition: border-color var(--duration-normal) var(--ease-gentle);
}

.yehaa-search-input::placeholder {
    color: var(--neutral-400);
}

.yehaa-search-input:focus {
    outline: none;
    border-color: var(--egyptian-blue);
    background: var(--surface-page);
}

.yehaa-search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 40px;
    width: 40px;
    background: var(--egyptian-blue);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-normal) var(--ease-gentle);
}

.yehaa-search-submit:hover {
    background: var(--primary-800);
}

/* ── Launchpad ───────────────────────────────────────── */

.yehaa-launchpad-wrap {
    position: relative;
    background: var(--surface-page);
}

.yehaa-launchpad {
    display: flex;
    /* No gap — horizontal spacing lives inside each item's padding so
       adjacent active backgrounds touch at the seam instead of being
       separated by a transparent gap line. */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
	margin-bottom: 8px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.02),0 1px 2px 0 rgba(0,0,0,.08);
}

.yehaa-launchpad::-webkit-scrollbar {
    display: none;
}

.yehaa-launchpad-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    flex-shrink: 0;
    /* Horizontal padding absorbs the previous gap so item bounds extend
       to the seam — adjacent active backgrounds touch. */
    padding: 2px 6px;
    scroll-snap-align: start;
    text-decoration: none;
    transition: background var(--duration-normal) var(--ease-gentle);
}

.yehaa-launchpad-item:active {
    background: var(--neutral-100);
}

.yehaa-launchpad-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Active state — soft teal-tint pill background + bolder label.
   Forkwell P7: hierarchy by fill, not size. See .local/forkwell-study/STUDY.md §2 P7.
   To invert (selected = no bg, others = blue bar), swap the rule below for:
     .yehaa-launchpad-item:not(.yehaa-launchpad-item--active) {
         background: var(--primary-50);
     } */
.yehaa-launchpad-item--active {
    background: var(--brand-teal-tint);
}

.yehaa-launchpad-item--active .yehaa-launchpad-label {
    color: var(--brand-teal);
    font-weight: 700;
}

.yehaa-launchpad-icon img {
    width: 28px;
    height: 28px;
}

.yehaa-launchpad-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--neutral-600);
    text-align: center;
    white-space: nowrap;
}

/* Scroll hint gradient mask */
.yehaa-launchpad-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, var(--surface-page));
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-gentle);
}

.yehaa-launchpad-wrap.scrolled-end::after {
    opacity: 0;
}

/* ── Active Filter Chips ─────────────────────────────── */

.yehaa-chips {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    align-items: center;
	background: var(--neutral-50);
}

.yehaa-chips-scroll {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.yehaa-chips-scroll::-webkit-scrollbar {
    display: none;
}

.yehaa-chips-scroll > * {
    flex-shrink: 0;
}

.yehaa-chips-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.yehaa-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary-800);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 150ms var(--ease-gentle), transform 150ms var(--ease-gentle);
}

.yehaa-chip:hover {
    background: var(--primary-100);
}

.yehaa-chip--removing {
    opacity: 0;
    transform: scale(0.9);
}

.yehaa-chip-x {
    width: 14px;
    height: 14px;
    color: var(--primary-400);
}

.yehaa-chip-x:hover {
    color: var(--primary-700);
}

.yehaa-sort {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-700);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 150ms var(--ease-gentle), border-color 150ms var(--ease-gentle);
}

.yehaa-sort:hover {
    background: var(--neutral-50);
    border-color: var(--neutral-300);
}

.yehaa-sort-icon {
    color: var(--neutral-500);
    flex-shrink: 0;
}

.yehaa-sort-wrap {
    position: relative;
    flex-shrink: 0;
}

.yehaa-sort-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    min-width: 160px;
    background: var(--surface-page);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 24, 70, 0.12);
    padding: 4px 0;
    display: flex;
    flex-direction: column;
}

.yehaa-sort-menu[hidden] {
    display: none;
}

.yehaa-sort-option {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--neutral-800);
    text-decoration: none;
    white-space: nowrap;
    transition: background 120ms var(--ease-gentle);
}

.yehaa-sort-option:hover {
    background: var(--neutral-50);
}

.yehaa-sort-option--active {
    background: var(--primary-50);
    color: var(--primary-800);
    font-weight: 600;
}

/* ── Job List ────────────────────────────────────────── */

.yehaa-jobs {
    background: var(--surface-page);
}

.yehaa-job {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    text-decoration: none;
    color: inherit;
    transition: background var(--duration-normal) var(--ease-gentle);
}

.yehaa-job:active {
    background: var(--neutral-50);
}

.yehaa-job-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: contain;
    flex-shrink: 0;
}

/* Letter-on-color placeholder — same pattern as emploi.php's header logo
   placeholder. Background color comes from getCompanyLogoPlaceholder() in
   includes/functions.php (deterministic crc32 → 10-color palette). */
.yehaa-job-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.yehaa-job-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yehaa-job-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-900);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yehaa-job-meta {
    font-size: 12px;
    color: var(--neutral-500);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yehaa-job-chips {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
    margin-top: 2px;
}

/* ── Job Row Chips (yc = yehaa chip) ─────────────────── */

.yc {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 1px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.yc--salary {
    background: var(--success-50);
    color: var(--success-800);
}

.yc--remote {
    background: var(--primary-50);
    color: var(--primary-700);
}

.yc--type {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* ── No Results — encouraging variant (Forkwell P8) ──────
   Headline + hint + popular-category chips + help-link CTA.
   See .local/forkwell-study/STUDY.md §2 P8. */

.yehaa-empty {
    padding: var(--space-10) var(--space-4);
    text-align: center;
    color: var(--neutral-700);
    background: #FFFFFF;
    border-radius: var(--radius-md);
    margin: var(--space-4) var(--space-3);
}

.yehaa-empty-headline {
    font-size: 16px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-2);
}

.yehaa-empty-hint {
    font-size: 14px;
    color: var(--neutral-600);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.yehaa-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-6);
}

.yehaa-empty-suggestion-chip {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--brand-teal-tint);
    color: var(--brand-teal);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background var(--duration-normal) var(--ease-gentle),
                color var(--duration-normal) var(--ease-gentle);
}

.yehaa-empty-suggestion-chip:hover,
.yehaa-empty-suggestion-chip:focus-visible {
    background: var(--brand-teal);
    color: #FFFFFF;
    outline: none;
}

.yehaa-empty-cta {
    font-size: 13px;
    color: var(--neutral-600);
    margin: 0;
}

.yehaa-empty-cta-link {
    color: var(--brand-teal);
    font-weight: 600;
    text-decoration: none;
}

.yehaa-empty-cta-link:hover,
.yehaa-empty-cta-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

/* ── Pagination ──────────────────────────────────────── */
/* Yehaa-style pagination (used by home + all pSEO listing pages).
   Scoped on the .yehaa-pagination class so it applies regardless of
   body class — the original .page-yehaa scoping was too narrow once
   pSEO listings landed. */

.pagination.yehaa-pagination {
    gap: 4px;
    padding: var(--space-5) var(--space-3);
    margin: 0;
    flex-wrap: nowrap;
}

.pagination.yehaa-pagination a,
.pagination.yehaa-pagination span {
    min-width: 32px;
    height: 32px;
    padding: 0 4px;
    font-size: 14px;
}

.pagination.yehaa-pagination .yehaa-page-nav {
    font-size: 20px;
    font-weight: 400;
    padding: 0 4px;
    line-height: 1;
}

.pagination.yehaa-pagination .yehaa-page-nav--disabled {
    color: var(--text-tertiary);
    background: var(--bg-card);
    border: 1px solid var(--neutral-200);
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.pagination.yehaa-pagination .ellipsis {
    min-width: 20px;
    padding: 0;
}

/* ── Nearby Alert ────────────────────────────────────── */

.yehaa-alert {
    margin: 0 var(--space-4) var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    background: var(--warning-50);
    color: var(--warning-800);
    font-size: 13px;
    line-height: 1.4;
}

/* ── Section Divider ─────────────────────────────────── */

.yehaa-divider {
    height: 3px;
    background: var(--neutral-50);
}

/* ── Filter Sheet (Bottom) ──────────────────────────── */

.yehaa-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 24, 70, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1000;
}

body.yehaa-sheet-open .yehaa-sheet-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.yehaa-sheet-open {
    overflow: hidden;
}

.yehaa-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--surface-page);
    border-radius: 1px 1px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 24, 70, 0.12);
    transform: translateY(100%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

body.yehaa-sheet-open .yehaa-sheet {
    transform: translateY(0);
}

.yehaa-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--neutral-200);
    border-radius: 1px;
    margin: var(--space-2) auto var(--space-1);
}

.yehaa-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
}

.yehaa-sheet-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--neutral-900);
}

.yehaa-sheet-close {
    background: none;
    border: none;
    padding: var(--space-1);
    cursor: pointer;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
}

.yehaa-sheet-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.yehaa-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-3) var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.yehaa-sheet-section {
    margin-bottom: var(--space-5);
}

.yehaa-sheet-section:last-child {
    margin-bottom: 0;
}

.yehaa-sheet-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 var(--space-2);
}

.yehaa-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.ysc {
    background: var(--neutral-50);
    border: 1.5px solid var(--neutral-100);
    color: var(--neutral-700);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 150ms var(--ease-gentle);
}

.ysc:hover {
    border-color: var(--primary-200);
}

.ysc--active {
    background: var(--egyptian-blue);
    border-color: var(--egyptian-blue);
    color: white;
}

.yehaa-sheet-select {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 var(--space-3);
    border: 1.5px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--neutral-900);
    background: var(--neutral-50);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23666' d='M6 8.5L1.5 4h9z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.yehaa-sheet-select:focus {
    outline: none;
    border-color: var(--egyptian-blue);
    background-color: var(--surface-page);
}

.yehaa-sheet-save-row {
    padding: var(--space-3) var(--space-4) 0;
    background: var(--surface-page);
}

.yehaa-sheet-save-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    user-select: none;
}

.yehaa-sheet-save-label:hover {
    color: var(--text-primary);
}

.yehaa-sheet-save-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-700);
    flex-shrink: 0;
    margin: 0;
}

.yehaa-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--neutral-100);
    background: var(--surface-page);
}

.yehaa-sheet-reset {
    background: none;
    border: none;
    color: var(--neutral-600);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.yehaa-sheet-reset:hover {
    color: var(--neutral-900);
}

.yehaa-sheet-apply {
    flex: 1;
    background: var(--egyptian-blue);
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration-normal) var(--ease-gentle);
}

.yehaa-sheet-apply:hover {
    background: var(--primary-800);
}

/* ── Tablet / Desktop (follow-up, minimal for now) ──── */

@media (min-width: 768px) {
    .yehaa-header {
        padding: 0 var(--space-6);
    }

    .yehaa-search {
        max-width: 640px;
        margin: 0 auto;
        padding: var(--space-4) var(--space-6);
    }

    .yehaa-launchpad {
        justify-content: center;
        padding: var(--space-2) var(--space-6) var(--space-3);
    }

    .yehaa-launchpad-wrap::after {
        display: none;
    }

    .yehaa-chips {
        max-width: 640px;
        margin: 0 auto;
        padding: 0 var(--space-6) var(--space-3);
    }

    .yehaa-jobs {
        max-width: 720px;
        margin: 0 auto;
    }

    .yehaa-job {
        padding: var(--space-3) var(--space-6);
    }
}

/* ── Footer (Yehaa) ──────────────────────────────────── */

.page-yehaa .site-footer {
    display: none;
}

.yehaa-footer {
    background: var(--deep-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.5;
}

.yehaa-footer a {
    color: inherit;
    text-decoration: none;
}

.yehaa-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--primary-800);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.yehaa-footer-top:hover {
    background: var(--egyptian-blue);
}

.yehaa-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-4);
}

.yehaa-footer-col-title {
    margin: 0 0 var(--space-3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.yehaa-footer-col-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yehaa-footer-col-links li {
    margin-bottom: var(--space-3);
}

.yehaa-footer-col-links a:hover,
.yehaa-footer-region-links a:hover {
    color: white;
    text-decoration: underline;
}

.yehaa-footer-regions {
    padding: var(--space-5) var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yehaa-footer-region-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
}

.yehaa-footer-region-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.yehaa-footer-locale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.yehaa-footer-fleur {
    font-size: 16px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
}

.yehaa-footer-legal {
    padding: var(--space-5) var(--space-4);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yehaa-footer-copyright {
    margin: 0 0 var(--space-2);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.yehaa-footer-tagline {
    margin: 0 0 var(--space-3);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.yehaa-footer-trademark {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.yehaa-footer-badge {
    display: flex;
    justify-content: center;
    padding: var(--space-5) var(--space-4) var(--space-6);
}

.yehaa-footer-badge img {
    height: 26px;
    width: auto;
    display: block;
    opacity: 0.85;
}

@media (min-width: 720px) {
    .yehaa-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 280px));
        justify-content: center;
        gap: var(--space-10);
    }
}

/* =====================================================================
   Drawer — section titles, role buttons, logout (yehaa redesign)
   ===================================================================== */

.drawer-section-title {
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neutral-400);
    margin: var(--space-5) 0 var(--space-2);
    padding: 0 var(--space-6);
}

.drawer-nav > .drawer-section-title:first-child {
    margin-top: var(--space-2);
}

.drawer-roles {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-6) var(--space-5);
}

.drawer-role-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background var(--duration-normal) var(--ease-gentle),
                border-color var(--duration-normal) var(--ease-gentle),
                color var(--duration-normal) var(--ease-gentle);
}

.drawer-role-btn--primary {
    background: var(--primary-700);
    color: #fff;
    border: 1.5px solid var(--primary-700);
}

.drawer-role-btn--primary:hover,
.drawer-role-btn--primary:focus-visible {
    background: #002878;
    border-color: #002878;
    color: #fff;
}

.drawer-role-btn--secondary {
    background: transparent;
    color: var(--primary-700);
    border: 1.5px solid var(--primary-700);
}

.drawer-role-btn--secondary:hover,
.drawer-role-btn--secondary:focus-visible {
    background: rgba(0, 51, 153, 0.06);
    color: var(--primary-700);
}

.drawer-logout-form {
    margin: var(--space-4) 0 0;
    padding: 0;
}

.drawer-logout {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: var(--text-secondary);
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
}

.drawer-logout:hover,
.drawer-logout:focus-visible {
    background: var(--neutral-50);
    color: var(--text-primary);
}

/* =====================================================================
   Plume IA — coming-soon modal
   ===================================================================== */

.plume-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 25, 40, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-gentle),
                visibility 0s linear var(--duration-normal);
    z-index: 900;
}

body.plume-modal-open .plume-modal-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.plume-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: var(--surface-page);
    border-radius: 1px;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-shadow: 0 24px 48px rgba(20, 25, 40, 0.24);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-normal) var(--ease-gentle),
                transform var(--duration-normal) var(--ease-gentle),
                visibility 0s linear var(--duration-normal);
    z-index: 950;
}

body.plume-modal-open .plume-modal {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s;
}

body.plume-modal-open {
    overflow: hidden;
}

.plume-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-normal) var(--ease-gentle),
                color var(--duration-normal) var(--ease-gentle);
    z-index: 2;
}

.plume-modal-close:hover,
.plume-modal-close:focus-visible {
    background: #fff;
    color: var(--text-primary);
}

.plume-modal-hero {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: var(--space-6) var(--space-4) 0;
    background: linear-gradient(180deg, #FAF4E8 0%, transparent 100%);
    min-height: 180px;
}

.plume-modal-hero-img {
    width: 180px;
    height: auto;
    max-width: 100%;
    display: block;
}

.plume-modal-body {
    padding: var(--space-4) var(--space-6) var(--space-6);
    text-align: center;
}

.plume-modal-badge {
    display: inline-block;
    background: var(--primary-700);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: var(--space-3);
}

.plume-modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
    line-height: 1.15;
}

.plume-modal-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0 0 var(--space-4);
    line-height: 1.45;
}

.plume-modal-intro {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    line-height: 1.55;
    text-align: left;
}

.plume-modal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-5);
    text-align: left;
}

.plume-modal-features li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--neutral-100);
    font-size: 14px;
    line-height: 1.45;
}

.plume-modal-features li:last-child {
    border-bottom: none;
}

.plume-modal-features strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.plume-modal-feature-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
}

.plume-modal-footer {
    padding-top: var(--space-2);
}

.plume-modal-cta {
    display: inline-block;
    width: 100%;
    padding: var(--space-3) var(--space-5);
    background: var(--primary-700);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    min-height: 48px;
    transition: background var(--duration-normal) var(--ease-gentle);
}

.plume-modal-cta:hover,
.plume-modal-cta:focus-visible {
    background: #002878;
}

/* Larger screens — slightly bigger hero, roomier padding */
@media (min-width: 480px) {
    .plume-modal-hero {
        min-height: 220px;
        padding-top: var(--space-8);
    }

    .plume-modal-hero-img {
        width: 200px;
    }

    .plume-modal-title {
        font-size: 32px;
    }
}

/* ───────────────────────────────────────────────────────
   pSEO listings — shared chrome
   Used by:
     /emplois-a-{slug}
     /emplois-{cat}
     /emplois-{cat}-a-{slug}
     /emplois-par-ville
     /emplois-par-categorie
   ─────────────────────────────────────────────────────── */

/* Container — listing pages don't use the .container class because
   they need a slightly different rhythm than the homepage. The chrome
   (header + footer) still wraps everything; this scopes the listing
   body. */
.listing-page {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-3) var(--container-padding) var(--space-8);
}

/* Breadcrumbs — unified to match the job-detail gold-standard treatment:
   blue links, tight spacing, hover-underline. Used by all pages that
   include templates/partials/breadcrumbs.php (legal pages, pSEO pages,
   directories). Job detail's custom .page-emploi__crumbs predates this
   and is functionally identical now; consolidate later. */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    font-size: 12px;
    color: var(--neutral-500);
    margin-bottom: var(--space-6);
}

.breadcrumbs__link {
    color: var(--primary-700);
    text-decoration: none;
}

.breadcrumbs__link:hover {
    text-decoration: underline;
}

.breadcrumbs__link:focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
    text-decoration: underline;
}

.breadcrumbs__sep {
    color: var(--neutral-400);
    user-select: none;
}

.breadcrumbs__current {
    color: var(--neutral-500);
}

/* Page title — used on the four listing pages and the two directories.
   Optional leading SVG (category icon on category pages). */
.listing-page-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-4);
    line-height: 1.15;
}

.listing-page-title__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--primary-700);
}

.listing-page-title__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Chip row — categories on geo pages, regions on category pages */
.listing-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--container-padding)) var(--space-4);
    /* Top padding gives focus rings room to breathe without clipping at the
       scroll-container edge. */
    padding: var(--space-1) var(--container-padding) var(--space-2);
}

.listing-chips::-webkit-scrollbar {
    display: none;
}

.listing-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--primary-50);
    color: var(--primary-800);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms var(--ease-gentle);
}

.listing-chip:hover,
.listing-chip:focus-visible {
    background: var(--primary-100);
}

.listing-chip--active {
    background: var(--primary-700);
    color: #FFFFFF;
}

.listing-chip--active:hover,
.listing-chip--active:focus-visible {
    background: var(--primary-800);
}

/* Explicit focus indicators across all interactive listing elements —
   the hover-only background-swap was too subtle for keyboard users. */
.listing-chip:focus-visible,
.listing-chip--active:focus-visible,
.breadcrumbs__link:focus-visible,
.city-directory__region-title a:focus-visible,
.city-directory__city:focus-visible,
.category-directory__card:focus-visible,
.listing-empty__actions a:focus-visible,
.listing-wiki a:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
}

/* Count badge — explicit colors per chip state to clear WCAG AA on both
   inactive (--primary-700 on --primary-50 → 10.5:1) and active
   (white on --primary-700 → 12:1). Avoids opacity, which under-shot
   AA on the active chip variant. */
.listing-chip__count {
    font-weight: 600;
    font-size: 11px;
    margin-left: 2px;
    color: var(--primary-700);
}

.listing-chip--active .listing-chip__count {
    color: #FFFFFF;
}

/* Empty state — shown when zero jobs in scope */
.listing-empty {
    padding: var(--space-8) var(--space-4);
    text-align: center;
    background: var(--surface-sunken);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
}

.listing-empty p {
    font-size: 15px;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

/* p.listing-empty__note specificity (0,1,1) ties .listing-empty p (0,1,1)
   and wins via source order — no !important needed. */
p.listing-empty__note {
    font-size: 13px;
    color: var(--text-secondary);
}

.listing-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.listing-empty__actions a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms var(--ease-gentle), border-color 150ms var(--ease-gentle);
}

.listing-empty__actions a:first-child {
    background: var(--primary-700);
    color: #FFFFFF;
}

.listing-empty__actions a:first-child:hover,
.listing-empty__actions a:first-child:focus-visible {
    background: var(--primary-800);
}

.listing-empty__actions a + a {
    background: transparent;
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.listing-empty__actions a + a:hover,
.listing-empty__actions a + a:focus-visible {
    border-color: var(--primary-700);
    background: var(--primary-50);
}

/* Stub-wiki paragraph — short factual blurb at the bottom of city /
   region / category pages (combo pages skip it). One paragraph, link-rich,
   reads as if hand-written to the data available. */
.listing-wiki {
    margin: var(--space-8) 0 var(--space-6);
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
    border-left: 3px solid var(--primary-200);
    background: var(--surface-sunken);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.listing-wiki h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.listing-wiki p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0;
}

.listing-wiki a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--primary-200);
    text-underline-offset: 2px;
}

.listing-wiki a:hover,
.listing-wiki a:focus-visible {
    text-decoration-color: var(--primary-700);
}

/* Job list rhythm on listing pages — same partial as the homepage,
   slightly more breathing room because the page is denser overall. */
.listing-page .yehaa-jobs {
    margin: 0 calc(-1 * var(--container-padding));
}

/* ───────────────────────────────────────────────────────
   pSEO directory pages
   ─────────────────────────────────────────────────────── */

/* Anchor strip — jump to a specific region within a long directory page.
   Wraps onto multiple rows on narrow viewports; bleeds to the viewport
   edge like the chip row so it doesn't feel boxed-in. */
.listing-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0 calc(-1 * var(--container-padding)) var(--space-5);
    padding: var(--space-3) var(--container-padding);
    background: var(--surface-sunken);
    border-radius: var(--radius-md);
}

.listing-anchor-nav a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--neutral-200);
    transition: background 150ms var(--ease-gentle), border-color 150ms var(--ease-gentle);
}

.listing-anchor-nav a:hover,
.listing-anchor-nav a:focus-visible {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.listing-anchor-nav a:focus-visible {
    outline: 2px solid var(--color-action);
    outline-offset: 2px;
}

/* Anchor scroll-margin — when an anchor link jumps to a region, leave
   breathing room above so the heading isn't glued to the viewport top. */
.city-directory__region {
    scroll-margin-top: var(--space-4);
}

/* City directory — region groups */
.city-directory {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.city-directory__region {
    border-top: 1px solid var(--neutral-200);
    padding-top: var(--space-4);
}

.city-directory__region-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--space-3);
}

.city-directory__region-title a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary-200);
    transition: border-color 150ms var(--ease-gentle);
}

.city-directory__region-title a:hover,
.city-directory__region-title a:focus-visible {
    border-bottom-color: var(--primary-700);
}

.city-directory__cities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.city-directory__city {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    background: var(--neutral-50);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: background 150ms var(--ease-gentle), color 150ms var(--ease-gentle);
}

.city-directory__city:hover,
.city-directory__city:focus-visible {
    background: var(--primary-50);
    color: var(--primary-800);
}

.city-directory__city--has-jobs {
    color: var(--text-primary);
    font-weight: 500;
}

.city-directory__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-700);
    background: var(--primary-50);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: 2px;
}

.city-directory__city--has-jobs:hover .city-directory__count,
.city-directory__city--has-jobs:focus-visible .city-directory__count {
    background: var(--primary-100);
}

/* Category directory — icon-card grid */
.category-directory {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.category-directory__card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-card);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 150ms var(--ease-gentle), box-shadow 150ms var(--ease-gentle);
}

.category-directory__card:hover,
.category-directory__card:focus-visible {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-card);
}

.category-directory__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary-700);
}

.category-directory__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.category-directory__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.category-directory__count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Bottom directory paragraph — small subtitle line, no chrome */
.listing-directory-note {
    margin: var(--space-6) 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Listing pages: tighten title on mobile */
@media (min-width: 600px) {
    .listing-page-title {
        font-size: 28px;
    }
    .listing-page-title__icon {
        width: 32px;
        height: 32px;
    }
}

/* ───────────────────────────────────────────────────────
   Static long-form pages — /conditions, /confidentialite
   TXP-mode single-column dense doc layout. Reusable for any
   future static page.
   ─────────────────────────────────────────────────────── */

.static-page {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4) var(--space-8);
}

.static-page__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin: var(--space-2) 0 var(--space-4);
}

/* Top metadata strip — last-updated only after the Responsable row was
   removed (Filipe's call: don't surface the corporate address; access
   requests route via the Registraire des entreprises in section 6 of
   the privacy policy). Single-line dl: uppercase-tracked label, date. */
.static-page__meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-3);
    margin: 0 0 var(--space-6);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--neutral-100);
    border-bottom: 1px solid var(--neutral-100);
    font-size: 13px;
    line-height: 1.55;
}

.static-page__meta dt {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.static-page__meta dd {
    margin: 0;
    color: var(--text-primary);
}

/* 目次 / "Sur cette page" pill row — wraps on mobile, all visible
   on desktop. Sticky behaviour deferred per plan decision F.
   Background uses --surface-band (Yahoo-Japan-modeled #F1F5FF) — the
   TOC is a horizontal navigation zone, which is exactly what the band
   token exists for. See .local/forkwell-study/STUDY.md §3.1. */
.static-toc {
    margin: 0 calc(-1 * var(--container-padding)) var(--space-8);
    padding: var(--space-3) var(--container-padding);
    background: var(--surface-band);
    border-radius: var(--radius-md);
}

.static-toc__title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.static-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.static-toc__link {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--primary-700);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--neutral-200);
    transition: background 150ms var(--ease-gentle), border-color 150ms var(--ease-gentle);
}

.static-toc__link:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
}

.static-toc__link:focus-visible {
    background: var(--primary-50);
    border-color: var(--primary-300);
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
}

/* Section wrapper — numbered, anchor target. scroll-margin-top clears
   the 48px sticky header plus a bit of breathing room. Adjust if the
   header gets taller. */
.static-section {
    scroll-margin-top: 64px;
    padding-top: var(--space-6);
    margin-top: var(--space-6);
    border-top: 1px solid var(--neutral-100);
}

.static-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

/* Section-body typography. :where() keeps these single-class-specificity
   so a future component dropped inside .static-section (a chip row, a
   yehaa partial, a callout with its own h3) can override without
   specificity escalation, and the bare-tag rules don't reach into
   nested unrelated content. */
.static-section :where(h2) {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
}

.static-section__num {
    display: inline-block;
    margin-right: var(--space-2);
    color: var(--primary-700);
    font-feature-settings: "tnum";
}

.static-section :where(p, li) {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.static-section :where(p) {
    margin: 0 0 var(--space-3);
}

.static-section :where(ul, ol) {
    margin: 0 0 var(--space-3);
    padding-left: var(--space-5);
}

.static-section :where(li) + :where(li) {
    margin-top: var(--space-1);
}

.static-section :where(a) {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--primary-200);
    text-underline-offset: 2px;
}

.static-section :where(a):hover {
    text-decoration-color: var(--primary-700);
}

.static-section :where(a):focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
    text-decoration-color: var(--primary-700);
}

.static-section :where(code) {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 1px 5px;
    background: var(--surface-sunken);
    border-radius: var(--radius-sm);
}

/* Bordered info-block — emphasised callout (Loi 25, important note).
   Same DNA as .listing-wiki, used inside a doc body. */
.static-block {
    margin: var(--space-3) 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid var(--primary-300);
    background: var(--surface-sunken);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.static-block p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* Key/value rows for structured sub-content (data-collection types,
   etc). dt = label (bold), dd = body. */
.static-dl {
    margin: var(--space-3) 0 var(--space-4);
    padding-left: var(--space-3);
    border-left: 2px solid var(--neutral-100);
}

.static-dl dt {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-3);
}

.static-dl dt:first-of-type {
    margin-top: 0;
}

.static-dl dd {
    margin: var(--space-1) 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
}

@media (min-width: 600px) {
    .static-page__title {
        font-size: 32px;
    }
    .static-section :where(h2) {
        font-size: 22px;
    }
}

/* ───────────────────────────────────────────────────────
   /afficher-une-job — vision/placeholder page
   ─────────────────────────────────────────────────────── */

.publier-page {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4) var(--space-8);
}

.publier-hero {
    padding: var(--space-4) 0 var(--space-6);
}

.publier-hero h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
}

.publier-hero p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.publier-tiers-intro {
    margin: var(--space-6) 0 var(--space-5);
}

.publier-tiers-intro h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}

.publier-tiers-intro p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.publier-tiers {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin: 0 0 var(--space-8);
}

.publier-tier {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-4) var(--space-5);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: var(--surface-page);
}

.publier-tier__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary-700);
}

.publier-tier__body {
    flex: 1;
    min-width: 0;
}

.publier-tier__head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.publier-tier__head h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.publier-tier__tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--neutral-100);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.publier-tier__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
}

.publier-tier__chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.publier-tier__chips .yc {
    /* slightly more substantial chip than job-row chips */
    padding: 3px 8px;
    font-size: 12px;
}

/* Plume IA callout — bordered, mascot-led. Reuses the .static-block
   visual language with a left mascot image slot. */
.publier-callout {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    border-left: 3px solid var(--primary-300);
    background: var(--surface-sunken);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 0 0 var(--space-8);
}

.publier-callout__img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    object-fit: contain;
    align-self: flex-start;
}

.publier-callout__body {
    flex: 1;
    min-width: 0;
}

.publier-callout h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}

.publier-callout p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-primary);
    margin: 0 0 var(--space-2);
}

.publier-callout p:last-child {
    margin-bottom: 0;
}

.publier-callout__footnote {
    font-size: 12px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Closing context — gratuit pour candidats + back link */
.publier-about p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 var(--space-2);
}

.publier-about__back {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.publier-about__back:hover {
    text-decoration: underline;
}

.publier-about__back:focus-visible {
    text-decoration: underline;
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (min-width: 600px) {
    .publier-hero h1 {
        font-size: 36px;
    }
    .publier-tier {
        gap: var(--space-5);
        padding: var(--space-5);
    }
    .publier-tier__icon {
        width: 40px;
        height: 40px;
    }
}

/* Very narrow viewports: stack icon + body */
@media (max-width: 380px) {
    .publier-tier {
        flex-direction: column;
        gap: var(--space-3);
    }
    .publier-callout {
        flex-direction: column;
    }
}

/* ───────────────────────────────────────────────────────
   /blogue — M1.3 "Bientôt" placeholder
   Same vision-page idiom as /afficher-une-job, lighter shape.
   ─────────────────────────────────────────────────────── */

.blogue-page {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4) var(--space-8);
}

.blogue-hero {
    padding: var(--space-4) 0 var(--space-6);
}

.blogue-hero h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin: 0 0 var(--space-3);
}

.blogue-hero p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.blogue-scope {
    margin: 0 0 var(--space-8);
}

.blogue-scope h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
}

.blogue-scope p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 var(--space-3);
}

.blogue-categories {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.blogue-categories .yc {
    /* slightly more substantial chip than job-row chips, mirrors .publier-tier__chips */
    padding: 3px 8px;
    font-size: 12px;
}

.blogue-about p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 var(--space-2);
}

.blogue-about__back {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--primary-700);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.blogue-about__back:hover {
    text-decoration: underline;
}

.blogue-about__back:focus-visible {
    text-decoration: underline;
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

@media (min-width: 600px) {
    .blogue-hero h1 {
        font-size: 36px;
    }
}

/* FAQ accordion (used on /aide). Sits inside .static-section blocks.
   Native <details>/<summary> — closed by default, no JS. Custom marker
   replaces the default disclosure triangle (hidden via list-style:none
   + ::-webkit-details-marker for legacy WebKit). */
.faq-q {
    border-bottom: 1px solid var(--neutral-200);
    padding: var(--space-3) 0;
}
.faq-q:first-of-type {
    border-top: 1px solid var(--neutral-200);
    margin-top: var(--space-2);
}
.faq-q__summary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 16px;
    font-weight: 600;
    color: var(--neutral-900);
    cursor: pointer;
    list-style: none;
    padding: var(--space-2) 0;
    line-height: 1.4;
}
.faq-q__summary::-webkit-details-marker {
    display: none;
}
.faq-q__text {
    flex: 1 1 auto;
    min-width: 0;
}
.faq-q__summary::after {
    content: "+";
    flex-shrink: 0;
    margin-left: auto;
    color: var(--primary-700);
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}
.faq-q[open] .faq-q__summary::after {
    content: "\2212"; /* U+2212 minus sign — visually balanced with + */
}
.faq-q__summary:hover {
    color: var(--primary-700);
}
.faq-q__summary:focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
}
.faq-q__body {
    padding: var(--space-2) 0 var(--space-2);
    color: var(--neutral-700);
}
.faq-q__body :where(p) {
    margin: 0;
    line-height: 1.6;
}
.faq-q__body :where(a) {
    color: var(--primary-700);
    text-decoration: underline;
}
.faq-q__body :where(a):hover {
    text-decoration: none;
}
.faq-q__body :where(a):focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
}

/* À-propos bottom CTA — twin-button row, primary + secondary.
   Sits inside .static-page, after the last .static-section.
   Mobile: stacks via flex-wrap; desktop (≥600px): side-by-side. */
.about-cta {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-200);
}
.about-cta__primary,
.about-cta__secondary {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.about-cta__primary {
    background: var(--primary-700);
    color: #fff;
}
.about-cta__primary:hover {
    background: var(--primary-800);
}
.about-cta__secondary {
    background: transparent;
    color: var(--primary-700);
    border: 1px solid var(--primary-700);
}
.about-cta__secondary:hover {
    background: var(--primary-50);
}
.about-cta__primary:focus-visible,
.about-cta__secondary:focus-visible {
    outline: 2px solid var(--primary-700);
    outline-offset: 2px;
}


/* ============================================================
   M2.1 — Desktop home (≥ 990 px)
   Variant A canonical composition. Spec: .local/plans/launch-v1-m2-home-desktop.md
   Intake transcript: .local/yahoo-japan/desktop-home-intake.md
   All rules scoped under .page-yehaa AND viewport guard. Mobile (< 990 px)
   is unchanged.
   ============================================================ */

@media (min-width: 990px) {

    /* ── Layout container ─────────────────────────────────
       990 px is also the breakpoint, so once we're here the container
       fits with no margin. Above 990 px viewport, container centers
       with whitespace gutters on both sides. */

    /* Sticky-stack offset contract — only search row + active-chips
       ribbon pin (per Filipe's 2026-05-02 spec-review #2). Categories row
       scrolls away normally. The offset is just the search row's height. */
    .page-yehaa {
        --search-row-height: 65px;
    }

    /* main is the white 990 px container, centered against the body's
       light-grey canvas (set sitewide in style.css). All chrome bands
       (.desktop-strip-wrap, .desktop-header-wrap, etc.) live INSIDE main
       and inherit its 990 px constraint — so band backgrounds are bounded
       by the container, not bleeding to viewport edges. Per Filipe's
       2026-05-02 "everything in the container" feedback. z-index keeps
       main above the body's sidebar-gradient pseudo-elements. */
    .page-yehaa main {
        /* width: 100% + align-self: stretch is belt-and-suspenders for the
           flex-item cross-axis fill behavior. Without these, body's
           overflow-x: clip + the inherited `flex: 1` (from style.css line
           724) was leaving main sized to its content min-width (~890 px)
           instead of expanding to the cross-axis up to max-width: 990. */
        width: 100%;
        max-width: 990px;
        align-self: stretch;
        margin: 0 auto;
        padding: 0;
        background: var(--surface-page);
        position: relative;
        z-index: 1;
    }

    /* Footer also constrained to 990 px (per Filipe's 2026-05-02 feedback)
       so the dark navy doesn't bleed edge-to-edge while the workable area
       above is contained. Same z-index as main to sit above sidebar
       gradients. */
    .page-yehaa .yehaa-footer {
        max-width: 990px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

    /* ── Dense matrix footer (desktop, 2026-05-13) ──────────
       Replaces the two-column-280px-centered tablet layout that made the
       desktop footer look sparse and orphan-logo'd. At ≥ 990 px the link
       grid expands to a flat 4-column matrix (Explorer / JobQC / Légal /
       Poster), the per-link vertical rhythm tightens, and the three
       previously stacked bottom blocks (locale + legal + badge logo)
       collapse into a single horizontal baseline strip. Mobile/tablet
       (< 990 px) keep their existing block-stacked behaviour — the
       .yehaa-footer-baseline wrapper is display:block by default. */
    .yehaa-footer-grid {
        grid-template-columns: repeat(4, 1fr);
        justify-content: stretch;
        gap: var(--space-6);
        padding: var(--space-8) var(--space-6) var(--space-6);
    }

    .yehaa-footer-col-links li {
        margin-bottom: var(--space-2);
    }

    .yehaa-footer-baseline {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: var(--space-3) var(--space-5);
        padding: var(--space-4) var(--space-6);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .yehaa-footer-baseline .yehaa-footer-badge,
    .yehaa-footer-baseline .yehaa-footer-locale,
    .yehaa-footer-baseline .yehaa-footer-legal {
        padding: 0;
        border-top: 0;
        margin: 0;
    }

    /* DOM order is locale → legal → badge so mobile (where baseline is
       display:block) keeps the original visual cadence; at desktop the
       badge gets order:-1 to anchor the left of the row. */
    .yehaa-footer-baseline .yehaa-footer-badge {
        flex-shrink: 0;
        order: -1;
    }

    .yehaa-footer-baseline .yehaa-footer-badge img {
        height: 22px;
    }

    .yehaa-footer-baseline .yehaa-footer-legal {
        text-align: left;
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: var(--space-2) var(--space-4);
        flex: 1;
        min-width: 0;
    }

    .yehaa-footer-baseline .yehaa-footer-copyright,
    .yehaa-footer-baseline .yehaa-footer-tagline {
        margin: 0;
    }

    .yehaa-footer-baseline .yehaa-footer-trademark {
        flex-basis: 100%;
        text-align: left;
        margin: 0;
    }

    /* ── Hide mobile chrome ──────────────────────────────
       The page-top mobile search section, the mobile launchpad row, and
       the mobile sticky header all get replaced by desktop equivalents.
       Mobile dividers (yehaa-divider) become visually redundant when the
       desktop chrome bands provide their own borders. No !important —
       these selectors don't have a competing rule that would beat them. */

    .page-yehaa .yehaa-header,
    .page-yehaa .yehaa-search,
    .page-yehaa .yehaa-launchpad-wrap,
    .page-yehaa .yehaa-divider {
        display: none;
    }


    /* ── BAND 1: Top utility strip ───────────────────────
       Thin gray bar above main header. Three sections: editorial nav left,
       region quick-jumps middle, Connexion right. Reads as utility chrome
       (smaller font, lower contrast). */

    .desktop-strip-wrap {
        background: #f0f5fa;
        border-bottom: 1px solid var(--neutral-100);
    }

    .desktop-strip {
        max-width: 990px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
        padding: var(--space-1);
        font-size: 12px;
        line-height: 1.4;
        color: var(--neutral-700);
    }

    .desktop-strip nav {
        display: flex;
        align-items: center;
        gap: var(--space-3);
    }

    .desktop-strip a {
        color: var(--neutral-700);
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-strip a:hover,
    .desktop-strip a:focus-visible {
        color: var(--brand-teal);
        text-decoration: underline;
    }

    .desktop-strip a:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }

    /* Top strip is now 2-section (Connexion moved to launchpad). The
       editorial nav goes left, regions go right via justify-content. */
    .desktop-strip-regions {
        justify-content: flex-end;
    }

    /* "Top embaucheurs :" label before the region links (per Filipe's
       2026-05-02 spec-review). Lower-emphasis utility text. */
    .desktop-strip-regions-label {
        color: var(--neutral-500);
        font-weight: 500;
    }


    /* ── BAND 2: Main header ─────────────────────────────
       Centered compact logo + launchpad flanks (2+2) + Publier CTA right.
       Grid layout pins the four regions: left flank | logo | right flank | CTA. */

    .desktop-header-wrap {
        background: var(--surface-page);
        border-bottom: 1px solid var(--neutral-100);
    }

    /* 3-column grid (per Filipe's 2026-05-02 spec-review): launchpad-flank-left
       | logo | launchpad-flank-right. Publier une offre is now a launchpad
       icon (rightmost in the right flank), not a separate CTA column. */
    .desktop-header {
        max-width: 990px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: var(--space-4);
        padding: var(--space-3) var(--space-4);
        min-height: 64px;
    }

    .desktop-header-flank {
        display: flex;
        align-items: center;
        /* Wider gap between flank icons per Filipe's 2026-05-02 spec-review.
           Yahoo Japan-style breathing room around each shortcut. */
        gap: var(--space-6);
    }

    .desktop-header-flank--left {
        justify-content: flex-end;
    }

    .desktop-header-flank--right {
        justify-content: flex-start;
    }

    .desktop-flank-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: var(--space-1) var(--space-2);
        text-decoration: none;
        color: var(--neutral-700);
        border-bottom: 2px solid transparent;
        transition: color 0.12s ease, border-color 0.12s ease;
    }

    .desktop-flank-item:hover,
    .desktop-flank-item:focus-visible {
        color: var(--brand-teal);
    }

    .desktop-flank-item:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }

    .desktop-flank-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
    }

    .desktop-flank-icon img {
        width: 24px;
        height: 24px;
        display: block;
    }

    .desktop-flank-label {
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
        color: inherit;
    }

    /* Active state: bold + brand-teal underline (replaces mobile cream-tint).
       Per spec Q10 + Filipe's "lose the teal background" desktop.md note. */
    .desktop-flank-item--active {
        color: var(--brand-teal);
        border-bottom-color: var(--brand-teal);
    }

    .desktop-flank-item--active .desktop-flank-label {
        font-weight: 700;
    }

    /* Logo with breathing room from the flanking launchpad icons
       (per Filipe's 2026-05-02 spec-review). */
    .desktop-logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        margin-left: 20px;
        margin-right: 20px;
    }

    .desktop-logo img {
        height: 36px;
        width: auto;
        display: block;
    }

    .desktop-logo:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 4px;
    }

    /* Publier une offre is no longer a separate CTA — it's now the rightmost
       launchpad icon in the right flank. .desktop-header-cta and
       .desktop-publier-btn rules removed in 2026-05-02 spec-review pass. */


    /* ── BAND 3: Search row (sticky on scroll) ───────────
       2 inputs + Chercher + Filtres avancés. `position: sticky; top: 0`
       pins it when the user scrolls past. Box-shadow on the wrap reads
       as a soft elevation when pinned (always-on shadow is acceptable —
       it visually anchors the row at rest too). */

    .desktop-search-wrap {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--surface-page);
        border-bottom: 1px solid var(--neutral-100);
        /* Box-shadow added only when the row stacks alone — when categories
           also pin below, the bottom edge is covered. The categories-wrap
           below carries the shadow boundary instead. */
    }

    .desktop-search {
        max-width: 990px;
        margin: 0 auto;
        display: flex;
        align-items: stretch;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4);
    }

    .desktop-search-q,
    .desktop-search-loc {
        height: 40px;
        padding: 0 var(--space-3);
        font-size: 14px;
        font-family: var(--font-body);
        color: var(--neutral-900);
        background: var(--surface-page);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-sm);
        outline: none;
        transition: border-color 0.12s ease;
    }

    .desktop-search-q {
        flex: 2;
        min-width: 0;
    }

    .desktop-search-loc {
        flex: 1;
        min-width: 0;
    }

    .desktop-search-q:focus-visible,
    .desktop-search-loc:focus-visible {
        border-color: var(--brand-teal);
        box-shadow: 0 0 0 2px var(--brand-teal-tint);
    }

    .desktop-search-q::placeholder,
    .desktop-search-loc::placeholder {
        color: var(--neutral-400);
    }

    /* "Chercher" uses the JOBQC! logo blue (#2245A6) per Filipe's
       2026-05-02 spec-review — distinguishes the primary search action
       from the brand-teal links elsewhere on the page. */
    .desktop-search-submit {
        height: 40px;
        padding: 0 var(--space-5);
        background: #2245A6;
        color: #FFFFFF;
        font-weight: 600;
        font-size: 14px;
        border: 1px solid #2245A6;
        border-radius: var(--radius-sm);
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.12s ease, border-color 0.12s ease;
    }

    .desktop-search-submit:hover,
    .desktop-search-submit:focus-visible {
        background: #1A3680;
        border-color: #1A3680;
    }

    .desktop-search-submit:focus-visible {
        outline: 2px solid #2245A6;
        outline-offset: 2px;
    }

    .desktop-filters-opener {
        display: inline-flex;
        align-items: center;
        gap: var(--space-1);
        height: 40px;
        padding: 0 var(--space-3);
        background: var(--surface-page);
        color: var(--neutral-700);
        font-weight: 500;
        font-size: 13px;
        text-decoration: none;
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-sm);
        white-space: nowrap;
        transition: border-color 0.12s ease, color 0.12s ease;
    }

    .desktop-filters-opener:hover,
    .desktop-filters-opener:focus-visible {
        border-color: var(--brand-teal);
        color: var(--brand-teal);
    }

    .desktop-filters-opener:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }


    /* ── BAND 4: Category chips row (sticky, stacks under search) ─────
       Top-N visible chips (filter-context-aware) + "Plus" dropdown for the
       rest. No horizontal scrollbar — overflow goes into the dropdown.
       Active chip gets brand-teal underline. Sticks below the search row. */

    /* Categories row is NOT sticky on scroll (per Filipe's 2026-05-02
       spec-review #2 — only search + active-chips ribbon stick).
       Background + border for visual band separation only. */
    .desktop-categories-wrap {
        background: var(--surface-page);
        border-bottom: 1px solid var(--neutral-100);
    }

    .desktop-categories {
        max-width: 990px;
        margin: 0 auto;
        padding: var(--space-2) var(--space-4);
        display: flex;
        align-items: center;
        gap: var(--space-1);
        /* Long French category names ("Construction, mines et métiers"
           etc.) make a single-line row at 990 px container width
           impractical even with N=5 visible. Wrap to a second line if the
           top-N visible chips exceed the available row width — overflow
           still goes into the Plus + dropdown, but at least nothing
           clips or scrolls horizontally. */
        flex-wrap: wrap;
    }

    .desktop-category-chip {
        display: inline-flex;
        align-items: center;
        padding: var(--space-1) var(--space-3);
        font-size: 13px;
        font-weight: 500;
        color: var(--neutral-700);
        text-decoration: none;
        background: transparent;
        border: 0;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        white-space: nowrap;
        transition: color 0.12s ease, border-color 0.12s ease;
    }

    .desktop-category-chip:hover,
    .desktop-category-chip:focus-visible {
        color: var(--brand-teal);
    }

    .desktop-category-chip:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }

    .desktop-category-chip--active {
        color: var(--brand-teal);
        font-weight: 700;
        border-bottom-color: var(--brand-teal);
    }

    /* Plus + overflow dropdown (mirror of legacy .category-more pattern).
       Anchored below the toggle. Hidden via [hidden] attribute. */
    .desktop-category-more {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

    .desktop-category-more-toggle {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .desktop-category-more-toggle[aria-expanded="true"] {
        color: var(--brand-teal);
    }

    .desktop-category-overflow {
        position: absolute;
        top: calc(100% + 4px);
        right: 0;
        z-index: 11;
        min-width: 220px;
        max-height: 60vh;
        overflow-y: auto;
        background: var(--surface-page);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-card);
        padding: var(--space-1) 0;
    }

    .desktop-category-overflow-item {
        display: block;
        padding: var(--space-2) var(--space-3);
        font-size: 13px;
        color: var(--neutral-700);
        text-decoration: none;
        white-space: nowrap;
    }

    .desktop-category-overflow-item:hover,
    .desktop-category-overflow-item:focus-visible {
        background: var(--neutral-50);
        color: var(--brand-teal);
    }

    .desktop-category-overflow-item:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: -2px;
    }

    .desktop-category-overflow-item--active {
        font-weight: 700;
        color: var(--brand-teal);
    }


    /* ── BAND 5: Active-chips ribbon (sticky-with-search experiment) ─────
       Existing .yehaa-chips block. When ≥1 filter is active, the PHP
       handler adds .is-sticky-eligible — at desktop we stack-pin it
       under the search row. If browser-test shows this as too much
       chrome, drop the position: sticky rule and ribbon scrolls normally. */

    .page-yehaa .yehaa-chips {
        max-width: 990px;
        margin: 0 auto;
        padding: var(--space-2) var(--space-4);
    }

    .page-yehaa .yehaa-chips.is-sticky-eligible {
        position: sticky;
        /* Stack just below search row (categories scrolls away) */
        top: var(--search-row-height);
        z-index: 8;
        background: #f9fbff; /* per Filipe's 2026-05-02 spec-review */
        border-bottom: 1px solid var(--neutral-100);
        box-shadow: var(--shadow-card);
    }


    /* ── BAND 6: Plume IA banner (image-led, full-width) ─────
       Mascot left + headline + CTA. Brand-tinted band, links to /afficher-une-job.
       Reuses the existing /assets/img/plume-ia.png mascot. */

    /* Plume IA banner — content-width (958px = 990 container − 2 × 16px
       row padding) so the band aligns visually with the job rows. Compact
       single-line layout per Filipe's 2026-05-02 spec-review: 30×30 mascot,
       title + CTA inline, no vertical stack. */

    .plume-banner {
        max-width: 958px;
        margin: var(--space-3) auto;
        padding: 0 var(--space-4);
    }

    .plume-banner-link {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-2) var(--space-4);
        background: var(--surface-band);
        border-left: 3px solid var(--brand-teal);
        text-decoration: none;
        color: var(--neutral-900);
        transition: background 0.12s ease;
    }

    .plume-banner-link:hover,
    .plume-banner-link:focus-visible {
        background: var(--brand-teal-tint);
    }

    .plume-banner-link:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }

    .plume-banner-mascot {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        display: block;
    }

    .plume-banner-text {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: baseline;
        gap: var(--space-2);
        line-height: 1.4;
    }

    .plume-banner-title {
        margin: 0;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 600;
        color: var(--neutral-900);
    }

    .plume-banner-cta {
        margin: 0;
        font-size: 13px;
        font-weight: 500;
        color: var(--brand-teal);
        white-space: nowrap;
    }


    /* ── BAND 7: Job listings (rows) — desktop tweaks + actions ─────
       Mobile row anatomy is preserved (.yehaa-job stays the link, .yehaa-job-body
       holds the meta). Desktop adds:
       - .yehaa-job-wrap article wrapper with grid for [link | actions]
       - .yehaa-job-actions area visible on hover/focus-within
       - .yc--date chip shown (hidden on mobile to preserve tight rows)
       Vertical growth permitted per intake D1 — chips can wrap. */

    .page-yehaa .yehaa-jobs {
        max-width: 990px;
        margin: 0 auto;
        padding: 0 var(--space-4);
    }

    .yehaa-job-wrap {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: stretch;
        background: var(--surface-page);
        border-bottom: 1px solid var(--neutral-100);
        transition: background 0.12s ease;
    }

    .yehaa-job-wrap:hover,
    .yehaa-job-wrap:focus-within {
        background: var(--neutral-50);
    }

    .yehaa-job-wrap > .yehaa-job {
        border-bottom: 0; /* wrapper owns the divider at desktop */
    }

    /* Show the posted-date chip at desktop (hidden by default — see below) */
    .yc--date {
        display: inline-flex;
        align-items: center;
        padding: 2px 8px;
        font-size: 11px;
        font-weight: 500;
        color: var(--neutral-600);
        background: var(--neutral-50);
        border: 1px solid var(--neutral-100);
        border-radius: var(--radius-sm);
    }

    /* Action area: bookmark + share buttons revealed on hover/focus-within.
       Tab order: row link → bookmark → share. Per intake D2 (focus-within
       parity for keyboard users). NB: opacity-only hide (NOT visibility:
       hidden) so the buttons stay focusable — otherwise :focus-within
       could never fire from them and keyboard parity would be broken. */
    .yehaa-job-actions {
        display: flex;
        align-items: center;
        gap: var(--space-1);
        padding: 0 var(--space-3);
        opacity: 0;
        transition: opacity 0.12s ease;
    }

    .yehaa-job-wrap:hover .yehaa-job-actions,
    .yehaa-job-wrap:focus-within .yehaa-job-actions {
        opacity: 1;
    }

    .yehaa-job-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: transparent;
        color: var(--neutral-500);
        border: 1px solid transparent;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: color 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    }

    .yehaa-job-action:hover {
        color: var(--brand-teal);
        background: var(--surface-page);
        border-color: var(--neutral-200);
    }

    .yehaa-job-action:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }


    /* ── BAND 8: Pagination — uses existing .yehaa-pagination.
       Just ensure it sits inside the 990 container. */

    .page-yehaa .yehaa-pagination {
        max-width: 990px;
        margin: var(--space-5) auto;
        padding: 0 var(--space-4);
    }


    /* ── BAND 9: Employer-side teaser ─────────────────────
       Lighter version of the Plume banner shape. Closes the candidate→employer
       awareness loop ("Vous embauchez ? Publier gratuitement →"). */

    .employer-teaser {
        max-width: 990px;
        margin: var(--space-5) auto var(--space-4);
        padding: var(--space-4) var(--space-5);
        background: var(--surface-band);
        border-left: 3px solid var(--neutral-300);
    }

    .employer-teaser-text {
        margin: 0;
        font-size: 14px;
        color: var(--neutral-700);
        line-height: 1.5;
    }

    .employer-teaser-text strong {
        color: var(--neutral-900);
        font-weight: 700;
    }

    .employer-teaser-cta {
        color: var(--brand-teal);
        font-weight: 600;
        text-decoration: none;
        margin-left: var(--space-1);
    }

    .employer-teaser-cta:hover,
    .employer-teaser-cta:focus-visible {
        text-decoration: underline;
    }

    .employer-teaser-cta:focus-visible {
        outline: 2px solid var(--brand-teal);
        outline-offset: 2px;
    }


    /* ── Empty state container at desktop ────────────────── */
    .page-yehaa .yehaa-empty {
        max-width: 990px;
        margin: 0 auto;
        padding: var(--space-6) var(--space-4);
    }

    /* ── City-not-found alert at desktop ──────────────────── */
    .page-yehaa .yehaa-alert {
        max-width: 990px;
        margin: 0 auto;
        padding: var(--space-3) var(--space-4);
    }

    /* Reduced-motion is handled globally in style.css (`*` selector
       wipes transition-duration / animation-duration to 0.01ms). No
       local override needed — kept this comment as a marker. */

    /* ── Filtres avancés sheet — constrain to 990 px at desktop ──
       Mobile: full viewport width slide-up sheet (.yehaa-sheet base).
       Desktop: center within the page container so it doesn't overflow
       the 990 px content width. Use explicit width + negative margin-left
       (instead of transform: translateX) so the slide-in transform stays
       a clean translateY — avoids the "bottom-right" positioning bug
       when transform-X depends on the element's computed width.
       Per Filipe's 2026-05-02 spec-review. */
    .page-yehaa .yehaa-sheet {
        width: 990px;
        max-width: 100vw;
        left: 50%;
        right: auto;
        margin-left: -495px;
        transform: translateY(100%);
    }

    body.yehaa-sheet-open .page-yehaa .yehaa-sheet {
        transform: translateY(0);
    }
}

/* Hide desktop-only chrome at mobile. Wrapped in @media (max-width: 989px)
   so the rule is mutually-exclusive with the @media (min-width: 990px) block
   above — at desktop the rule doesn't fire at all, avoiding a cascade
   specificity fight with the desktop reveals. Scoped under .page-yehaa so
   these class names don't leak globally site-wide. */

@media (max-width: 989px) {
    .page-yehaa .desktop-strip-wrap,
    .page-yehaa .desktop-header-wrap,
    .page-yehaa .desktop-search-wrap,
    .page-yehaa .desktop-categories-wrap,
    .page-yehaa .plume-banner,
    .page-yehaa .employer-teaser,
    .page-yehaa .yc--date,
    .page-yehaa .yehaa-job-actions {
        display: none;
    }
}


/* ───────────────────────────────────────────────────────
   M2.1 listing slice — desktop two-column on home only
   ───────────────────────────────────────────────────────
   Scoped to body.page-home (NOT body.page-yehaa) so pSEO
   surfaces — which share .page-yehaa chrome but stay
   single-column per locked decision — never trigger this.

   Layout: 700 px listing + 30 px gutter + 260 px rail =
   990 px (matches the existing main max-width).

   container-type on the listing column enables container
   queries for the dense job-row at 700 px (Phase 2). */

@media (min-width: 990px) {
    .page-home .yehaa-home-2col {
        display: grid;
        grid-template-columns: 700px 260px;
        gap: 30px;
        align-items: start;
        margin-top: var(--space-2);
    }

    .page-home .yehaa-listing-col {
        min-width: 0; /* prevents grid blowout from long titles in rows */
        container-type: inline-size;
        container-name: listing;
    }

    .page-home .yehaa-listing-rail {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: var(--space-4, 16px);
        /* Right inset so tiles don't touch main's right edge — matches
           the listing column's left content inset
           (.page-yehaa .yehaa-jobs { padding: 0 var(--space-4) }). */
        padding-right: var(--space-4);
        /* Sticky to viewport top while listings scroll — Yahoo Japan
           pattern. Filipe override on 2026-05-05 (was "scrolls with page"
           per Q8 lock; new directive: "follows down instead of simply
           showing a white space"). Offset matches the existing sticky
           search-row height so the rail doesn't slip behind it. */
        position: sticky;
        top: var(--search-row-height, 65px);
        align-self: start;
    }
}

@media (max-width: 989px) {
    /* Single-column collapse. The 2col wrapper becomes a flow container;
       the rail container hides because its mobile expression lives in the
       hamburger drawer (Phase 8 wires it). */
    .page-home .yehaa-home-2col {
        display: block;
    }

    .page-home .yehaa-listing-rail {
        display: none;
    }

    /* Featured row at mobile — same recipe as desktop (band background,
       brand-blue left edge, uppercase pill, salary chip) sized down for
       the narrower column. Logo 40 px to match mobile row scale; title
       allowed to wrap up to 2 lines (single-line ellipsis is too aggressive
       at < 400 px). Without these rules the partial inside the desktop-only
       block rendered as a default <a> with a raw <h2> and plain-text badge. */
    .page-home .yehaa-featured {
        display: grid;
        grid-template-columns: 40px 1fr;
        gap: 12px;
        padding: 12px 14px;
        margin-bottom: 12px;
        background: var(--surface-band);
        border: 1px solid var(--primary-100);
        border-left: 4px solid var(--primary-500);
        border-radius: var(--radius-md);
        text-decoration: none;
        color: inherit;
    }

    .page-home .yehaa-featured__logo {
        width: 40px;
        height: 40px;
        border-radius: var(--radius-md);
        object-fit: contain;
        flex-shrink: 0;
        background: var(--surface-page);
    }

    .page-home .yehaa-featured__logo--placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        font-family: var(--font-display);
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .page-home .yehaa-featured__body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .page-home .yehaa-featured__badge {
        align-self: flex-start;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--primary-700);
        background: var(--primary-100);
        padding: 2px 8px;
        border-radius: var(--radius-full);
        margin-bottom: 2px;
    }

    .page-home .yehaa-featured__title {
        font-size: 15px;
        font-weight: 700;
        color: var(--neutral-900);
        line-height: 1.3;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .page-home .yehaa-featured__meta {
        font-size: 12px;
        color: var(--neutral-600);
        line-height: 1.3;
        margin: 0;
    }

    .page-home .yehaa-featured__chips {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
}


/* ───────────────────────────────────────────────────────
   M2.1 Phase 3 — Rail tiles (component + variants)
   ───────────────────────────────────────────────────────
   Common .rail-tile component + per-variant rules. Scoped under
   .page-home so the styles only apply where the rail renders.
   Mobile (< 990 px) hides the rail entirely (Phase 1 rule); these
   styles never need a mobile branch. */

@media (min-width: 990px) {
    .page-home .rail-tile {
        background: var(--surface-page);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .page-home .rail-tile__title {
        font-size: 11px;
        font-weight: 700;
        color: var(--neutral-600);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 8px 14px;
        margin: 0;
        background: var(--neutral-50);
        border-bottom: 1px solid var(--neutral-100);
    }

    /* ── Rail group (Mon compte + Plume IA, Filipe 2026-05-06) ──
       Yahoo-Japan-style outer wrapper containing two INDEPENDENT
       inner tiles with a visible gap between them — the gap is the
       outer container's bg showing through. Salaires and Top
       employeurs render as standalone tiles below the group. */
    .page-home .rail-group {
        background: var(--surface-sunken);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-md);
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* ── Mon compte (3 sub-rows + Plume IA sibling) ──────
       Standalone .rail-tile that lives inside .rail-group. */
    .page-home .rail-acct__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .page-home .rail-acct__row {
        display: grid;
        grid-template-columns: 20px 1fr auto;
        gap: 10px;
        align-items: center;
        padding: 10px 14px;
        text-decoration: none;
        color: var(--neutral-800);
        border-bottom: 1px solid var(--neutral-100);
        transition: background 0.12s ease;
    }

    .page-home .rail-acct__list li:last-child .rail-acct__row {
        border-bottom: 0;
    }

    .page-home .rail-acct__row:hover {
        background: var(--neutral-50);
    }

    .page-home .rail-acct__row:focus-visible {
        background: var(--neutral-50);
        outline: 2px solid var(--primary-500);
        outline-offset: -2px;
    }

    .page-home .rail-acct__icon {
        flex-shrink: 0;
        display: block;
    }

    .page-home .rail-acct__label {
        font-size: 13px;
        font-weight: 500;
    }

    .page-home .rail-acct__hint {
        color: var(--neutral-500);
        font-size: 16px;
        line-height: 1;
    }

    /* ── Plume IA (standalone tile inside .rail-group) ──── */
    .page-home .rail-tile--plume-ia {
        background: var(--brand-teal-tint);
        border-color: var(--brand-teal);
    }

    .page-home .rail-pl__link {
        display: grid;
        grid-template-columns: 20px 1fr;
        gap: 10px;
        align-items: start;
        padding: 12px 14px;
        text-decoration: none;
        color: var(--neutral-900);
    }

    .page-home .rail-pl__icon {
        flex-shrink: 0;
        display: block;
        margin-top: 2px;
    }

    .page-home .rail-pl__text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .page-home .rail-pl__title {
        font-size: 14px;
        font-weight: 700;
        color: var(--brand-teal);
        line-height: 1.2;
    }

    .page-home .rail-pl__cta {
        font-size: 12px;
        line-height: 1.35;
        color: var(--neutral-700);
    }

    .page-home .rail-pl__link:hover .rail-pl__cta,
    .page-home .rail-pl__link:focus-visible .rail-pl__cta {
        text-decoration: underline;
    }

    .page-home .rail-pl__link:focus-visible {
        outline: 2px solid var(--primary-500);
        outline-offset: -2px;
    }

    /* ── Top employeurs (Phase 4) ────────────────────────
       LIVE leaderboard. Click-through to /?q={Company}. */
    .page-home .rail-te__list {
        list-style: none;
        margin: 0;
        padding: 0;
        counter-reset: te;
    }

    .page-home .rail-te__row {
        display: grid;
        grid-template-columns: 18px 1fr auto;
        gap: 8px;
        align-items: baseline;
        padding: 8px 14px;
        text-decoration: none;
        color: var(--neutral-800);
        border-bottom: 1px solid var(--neutral-100);
        transition: background 0.12s ease;
    }

    .page-home .rail-te__list li:last-child .rail-te__row {
        border-bottom: 0;
    }

    .page-home .rail-te__row:hover {
        background: var(--neutral-50);
    }

    .page-home .rail-te__row:focus-visible {
        background: var(--neutral-50);
        outline: 2px solid var(--primary-500);
        outline-offset: -2px;
    }

    .page-home .rail-te__rank {
        font-size: 12px;
        font-weight: 700;
        /* neutral-500 (#5E6A80) reads 5.18:1 on white — passes WCAG AA at
           12 px. neutral-400 (#7B8598) was 3.79:1 — fails AA. */
        color: var(--neutral-500);
        text-align: right;
    }

    .page-home .rail-te__name {
        font-size: 13px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }

    .page-home .rail-te__count {
        font-size: 11px;
        color: var(--neutral-500);
        white-space: nowrap;
    }

    /* ── Salaires au Québec (Phase 5) ────────────────────
       Interactive: <select> swaps stats client-side. Display
       hierarchy: range (largest) > median (medium) > sample
       (smallest, most muted). */
    .page-home .rail-tile--salaires .rail-sa__body {
        padding: 12px 14px;
    }

    .page-home .rail-sa__label {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--neutral-600);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 4px;
    }

    .page-home .rail-sa__select {
        display: block;
        width: 100%;
        padding: 6px 8px;
        font: inherit;
        font-size: 12px;
        color: var(--neutral-900);
        background: var(--surface-page);
        border: 1px solid var(--neutral-200);
        border-radius: var(--radius-sm);
        margin-bottom: 12px;
        cursor: pointer;
    }

    .page-home .rail-sa__select:focus-visible {
        outline: 2px solid var(--primary-500);
        outline-offset: 1px;
        border-color: var(--primary-500);
    }

    .page-home .rail-sa__range {
        font-size: 18px;
        font-weight: 700;
        color: var(--success-700);
        line-height: 1.15;
        margin-bottom: 2px;
    }

    .page-home .rail-sa__sep {
        margin: 0 4px;
        color: var(--neutral-400);
        font-weight: 400;
    }

    .page-home .rail-sa__unit {
        font-size: 13px;
        font-weight: 500;
        color: var(--neutral-600);
        margin-left: 4px;
    }

    .page-home .rail-sa__median {
        font-size: 12px;
        color: var(--neutral-700);
        margin-bottom: 4px;
    }

    .page-home .rail-sa__sample {
        font-size: 11px;
        /* neutral-500 (5.18:1 on white) — passes WCAG AA at 11 px. */
        color: var(--neutral-500);
        line-height: 1.3;
    }

    /* Click-through link to the category pSEO page. Sits at the bottom
       of the Salaires tile body. JS keeps the href + label synced with
       the active category. */
    .page-home .rail-sa__see-jobs {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--neutral-100);
        font-size: 12px;
        font-weight: 500;
        color: var(--primary-700);
        text-decoration: none;
        line-height: 1.3;
    }

    .page-home .rail-sa__see-jobs:hover,
    .page-home .rail-sa__see-jobs:focus-visible {
        text-decoration: underline;
        outline: none;
    }

    .page-home .rail-sa__see-jobs:focus-visible {
        outline: 2px solid var(--primary-500);
        outline-offset: 2px;
        border-radius: 2px;
    }

    /* ── Featured row (Phase 6 — restructured 2026-05-06) ──
       Filipe override: featured slot now lives INSIDE the listing
       column as the first row (replacing what would be the first
       regular result), not as a separate band above the 2-column
       wrapper. The empty rectangle to the band's right was wasted
       real estate that the rail wants to claim from the top.

       Distinct from regular rows: branded background, 4 px primary
       left border, larger 56 px logo, "Mis en avant" label,
       salary chip always visible. */
    .page-home .yehaa-featured {
        display: grid;
        grid-template-columns: 56px 1fr;
        gap: 16px;
        padding: 14px 18px;
        margin-bottom: 12px;
        background: var(--surface-band);
        border: 1px solid var(--primary-100);
        border-left: 4px solid var(--primary-500);
        border-radius: var(--radius-md);
        text-decoration: none;
        color: inherit;
        transition: background 0.12s ease;
    }

    .page-home .yehaa-featured:hover {
        background: var(--primary-50);
    }

    .page-home .yehaa-featured:focus-visible {
        background: var(--primary-50);
        outline: 2px solid var(--primary-500);
        outline-offset: 2px;
    }

    .page-home .yehaa-featured__logo {
        width: 56px;
        height: 56px;
        border-radius: var(--radius-md);
        object-fit: contain;
        flex-shrink: 0;
        background: var(--surface-page);
    }

    .page-home .yehaa-featured__logo--placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 700;
        line-height: 1;
    }

    .page-home .yehaa-featured__body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .page-home .yehaa-featured__badge {
        align-self: flex-start;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--primary-700);
        background: var(--primary-100);
        padding: 2px 8px;
        border-radius: var(--radius-full);
        margin-bottom: 2px;
    }

    .page-home .yehaa-featured__title {
        font-size: 16px;
        font-weight: 700;
        color: var(--neutral-900);
        line-height: 1.3;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-home .yehaa-featured__meta {
        font-size: 13px;
        color: var(--neutral-600);
        line-height: 1.3;
        margin: 0;
    }

    .page-home .yehaa-featured__chips {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin-top: 4px;
    }
}


/* ───────────────────────────────────────────────────────
   M2.1 Phase 2 — Dense job-row at 700 px (container query)
   ───────────────────────────────────────────────────────
   Triggers only when the named container `listing` is <= 750 px
   wide. Container is .yehaa-listing-col (only declared at desktop,
   only on body.page-home), so this rule fires exclusively on the
   home two-column layout. pSEO surfaces and emploi rail/sidebar
   never satisfy the container query and keep their existing rows.

   Row anatomy at 700 px:
     [40 logo] [Title 15px (1-line clamp) ........] [Salary] [Date] [Type]
               [Company · City   12px        ]

   - Title: 15px, single-line clamp (was 14px, 2-line)
   - Meta: unchanged 12px single-line
   - Chips: floated to right column via grid; nowrap; vertically centered
   - Salary chip first, then date, then type (visual hierarchy)
   - Padding tightens 12/16 -> 10/14 for density */

@container listing (max-width: 750px) {
    .yehaa-job {
        padding: 10px 14px;
        gap: 12px;
        align-items: center;
    }

    .yehaa-job-body {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 14px;
        row-gap: 1px;
        align-items: center;
    }

    .yehaa-job-title {
        grid-column: 1;
        grid-row: 1;
        font-size: 15px;
        line-height: 1.3;
        /* Override the multi-line WebKit clamp from base styles. Single-line
           ellipsis wins density at 700 px; full title still on detail page.
           display:block alone cancels the clamp (which requires -webkit-box);
           the explicit `unset` lines are belt-and-suspenders against future
           rules that might re-set display on this selector. */
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .yehaa-job-meta {
        grid-column: 1;
        grid-row: 2;
    }

    .yehaa-job-chips {
        grid-column: 2;
        grid-row: 1 / span 2;
        flex-wrap: nowrap;
        align-self: center;
        margin-top: 0;
        gap: 6px;
    }

    /* When the row has the actions wrapper, the existing desktop rule at
       .page-yehaa .yehaa-job-wrap > .yehaa-job sets border-bottom: 0 and the
       wrap owns the divider — that still applies (different selector). The
       wrap's grid-template-columns: 1fr auto already reserves space for
       actions outside our @container scope; nothing to change here. */
}


/* Print: legal docs are read on paper too. Hide nav chrome, surface link
   URLs after their text, and force callout backgrounds transparent so
   they don't print as muddy grey blocks. */
@media print {
    .static-toc,
    .publier-callout__img,
    .about-cta {
        display: none;
    }

    /* FAQ: force all answers visible on paper. */
    .faq-q[open] .faq-q__summary::after,
    .faq-q .faq-q__summary::after {
        display: none;
    }
    .faq-q > .faq-q__body {
        display: block !important;
    }
    .faq-q:not([open]) .faq-q__body {
        display: block !important;
    }

    .static-page,
    .publier-page {
        max-width: none;
        padding: 0;
    }

    .static-section {
        break-inside: avoid;
        border-top-color: #000;
    }

    .static-section :where(a)::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }

    .static-block,
    .publier-callout {
        background: transparent;
        border-left-color: #000;
    }
}
