:root {
    --job-bg: #f4f9f9;
    --job-surface: #ffffff;
    --job-surface-soft: #f7fcfc;

    --job-text: #123b5d;
    --job-muted: #5f7387;

    --job-border: #d7e6e8;
    --job-border-strong: #bfd4d8;

    --job-primary: #0f9d94;
    --job-primary-dark: #0a7d76;
    --job-primary-soft: #e6f8f6;

    --job-secondary: #123b5d;
    --job-secondary-soft: #eaf1f6;

    --job-success: #0f9d94;
    --job-success-soft: #e6f8f6;

    --job-warning: #d08a00;
    --job-warning-soft: #fff6df;

    --job-danger: #c73a3a;
    --job-danger-soft: #fff1f1;

    --job-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
    --job-shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.06);

    --job-radius-lg: 22px;
    --job-radius-md: 16px;
    --job-radius-sm: 12px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

i {
    color: var(--cn-navy);
}

[hidden] {
    display: none !important;
}

.job-detail-page {
    min-height: 100vh;
    padding: 18px 0 92px;
    color: var(--job-text);
}

.job-detail-shell {
    width: min(100% - 20px, 1180px);
    margin: 0 auto;
}

.job-detail-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.job-hero-card {
    order: 1;
}

.job-match-card {
    order: 2;
}

.job-detail-main {
    order: 3;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.job-detail-sidebar {
    order: 4;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--job-muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--job-primary);
}

.job-hero-card,
.content-card,
.sidebar-card,
.job-match-card {
    min-width: 0;
    background: var(--job-surface);
    border: 1px solid var(--job-border);
    border-radius: var(--job-radius-lg);
    box-shadow: var(--job-shadow-soft);
}

.job-hero-card {
    overflow: hidden;
}

.job-hero-top {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 20px;
}

.job-heading-group {
    min-width: 0;
}

.job-heading-group h1 {
    margin: 18px 0 14px;
    overflow-wrap: anywhere;
    font-size: clamp(1.8rem, 7vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.job-employer-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.job-detail-logo {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 8px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--job-surface-soft);
    border: 1px solid var(--job-border);
    border-radius: 14px;
}

.job-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.job-employer-name {
    margin: 0 0 4px;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 800;
}

.verified-employer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--job-success);
    font-size: 0.8rem;
    font-weight: 800;
}

.job-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--job-muted);
    font-size: 0.9rem;
}

.job-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.job-meta-item,
.job-meta-item span {
    overflow-wrap: anywhere;
}

.job-header-actions {
    display: grid;
    gap: 10px;
    width: 100%;
}

.job-header-actions .button {
    width: 100%;
}

.job-detail-tabs {
    display: flex;
    gap: 4px;
    padding: 0 10px;
    overflow-x: auto;
    border-top: 1px solid var(--job-border);
    scrollbar-width: none;
}

.job-detail-tabs::-webkit-scrollbar {
    display: none;
}

.job-detail-tabs a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 10px;
    color: var(--job-muted);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.job-detail-tabs a:hover,
.job-detail-tabs a:focus-visible,
.job-detail-tabs a.active {
    color: var(--job-primary);
}

.job-detail-tabs a.active::after {
    position: absolute;
    right: 8px;
    bottom: 0;
    left: 8px;
    height: 3px;
    background: var(--job-primary);
    border-radius: 999px 999px 0 0;
    content: "";
}

.content-card,
.sidebar-card,
.job-match-card {
    padding: 20px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading.compact {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--job-muted);
    line-height: 1.6;
}

.section-meta {
    margin: 4px 0 0;
    color: var(--job-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--job-primary);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rich-job-content {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #344054;
    line-height: 1.72;
}

.rich-job-content > :first-child {
    margin-top: 0;
}

.rich-job-content > :last-child {
    margin-bottom: 0;
}

.rich-job-content h2,
.rich-job-content h3,
.rich-job-content h4 {
    margin-top: 1.55em;
    color: var(--job-text);
}

.rich-job-content img,
.rich-job-content video,
.rich-job-content iframe,
.rich-job-content table {
    max-width: 100%;
}

.rich-job-content table {
    display: block;
    overflow-x: auto;
}

.rich-job-content ul,
.rich-job-content ol {
    padding-left: 1.2rem;
}

.job-facts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
}

.job-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    background: var(--job-surface-soft);
    border: 1px solid var(--job-border);
    border-radius: var(--job-radius-sm);
}

.job-fact-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    color: var(--job-primary);
    background: var(--job-primary-soft);
    border-radius: 10px;
}

.job-fact div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.job-fact span:not(.job-fact-icon) {
    color: var(--job-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.job-fact strong {
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.35;
}

.qualifications-card {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #dce5ef;
    border-radius: 16px;
}

.qualifications-card > h3 {
    margin: 0 0 1.25rem;
    color: var(--cn-navy);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.qualification-group {
    padding: 1rem 0;
    border-top: 1px solid #e3e9f0;
}

.qualification-group:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.qualification-group:last-child {
    padding-bottom: 0;
}

.qualification-group h4 {
    margin: 0 0 0.65rem;
    color: var(--cn-navy);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.check-list {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    align-items: start;
    gap: 0.55rem;
    margin: 0;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.55;
}

.check-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    color: var(--cn-teal);
    font-size: 0.8rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .qualifications-card {
        padding: 1.75rem;
    }
}

.recommendation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* =========================================================
   Match details
   ========================================================= */

#match-details {
    overflow: hidden;
}

#match-details .section-heading {
    margin-bottom: 28px;
}

#match-details .section-heading p:not(.eyebrow) {
    max-width: 680px;
}

.detail-subsection {
    margin-top: 28px;
}

.detail-subsection + .detail-subsection {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--job-border);
}

.detail-subsection > h3 {
    margin: 0 0 16px;
    color: var(--job-text);
    font-size: clamp(1.12rem, 3vw, 1.3rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.recommendation-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    padding: 18px;
    background: var(--job-surface);
    border: 1px solid var(--job-border);
    border-radius: var(--job-radius-md);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.recommendation-card .eyebrow {
    margin-bottom: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.085em;
}

.recommendation-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--job-text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.45;
}

.recommendation-card > p:not(.eyebrow),
.recommendation-top + p {
    margin: 12px 0 0;
    overflow-wrap: anywhere;
    color: var(--job-muted);
    font-size: 0.92rem;
    line-height: 1.62;
}

.recommendation-card .text-link {
    margin-top: auto;
    padding-top: 16px;
    color: var(--job-primary-dark);
    font-size: 0.88rem;
    font-weight: 850;
}

.recommendation-card .text-link:hover {
    color: var(--job-secondary);
}

.recommendation-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.recommendation-top > div {
    min-width: 0;
}

.impact-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.impact-high {
    color: var(--job-danger);
    background: var(--job-danger-soft);
    border-color: rgba(199, 58, 58, 0.16);
}

.impact-medium {
    color: var(--job-warning);
    background: var(--job-warning-soft);
    border-color: rgba(208, 138, 0, 0.18);
}

.impact-low {
    color: var(--job-success);
    background: var(--job-success-soft);
    border-color: rgba(15, 157, 148, 0.16);
}

/*
   Strength cards are intentionally lighter and more compact than
   recommendation cards. They confirm alignment rather than ask the
   user to take action.
*/
#match-details .detail-subsection:first-of-type .recommendation-card {
    padding: 15px 17px;
    background: var(--job-surface-soft);
    border-color: #d9e8ea;
    box-shadow: none;
}

#match-details .detail-subsection:first-of-type .recommendation-card h3 {
    font-size: 0.95rem;
}

#match-details .detail-subsection:first-of-type .recommendation-card > p:not(.eyebrow) {
    margin-top: 8px;
    font-size: 0.86rem;
}

.empty-state {
    padding: 22px 18px;
    text-align: center;
    background: var(--job-surface-soft);
    border: 1px dashed var(--job-border-strong);
    border-radius: var(--job-radius-md);
}

#match-details .empty-state {
    padding: 24px;
    text-align: left;
    border-style: solid;
}

.empty-state h3 {
    margin: 0;
}

.empty-state p {
    max-width: 580px;
    margin: 10px auto 20px;
    color: var(--job-muted);
    line-height: 1.6;
}

#match-details .empty-state p {
    margin: 8px 0 0;
}

#match-details .empty-state .button {
    margin-top: 16px;
}

.match-score-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.match-score-circle {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at center,
            var(--job-surface) 58%,
            transparent 60%
        ),
        conic-gradient(
            var(--job-primary) calc(var(--match-score) * 1%),
            #e8edf5 0
        );
}

.match-score-circle span {
    font-size: 1rem;
    font-weight: 900;
}

.match-score-circle.is-loading {
    animation: match-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes match-pulse {
    from {
        opacity: 0.55;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.match-score-copy {
    min-width: 0;
}

.match-score-copy h3,
.match-score-row h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 1.04rem;
}

.match-score-copy p,
.match-score-row p:not(.eyebrow) {
    margin: 7px 0 0;
    overflow-wrap: anywhere;
    color: var(--job-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.match-breakdown {
    display: grid;
    gap: 15px;
    margin: 22px 0;
}

.match-category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.84rem;
}

.match-category-label span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #344054;
    font-weight: 800;
}

.match-category-label strong {
    flex: 0 0 auto;
    color: var(--job-text);
}

.progress-track {
    height: 9px;
    overflow: hidden;
    background: #e8edf5;
    border-radius: 999px;
}

.progress-value {
    display: block;
    height: 100%;
    background: var(--job-primary);
    border-radius: inherit;
}

.match-analysis-usage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 14px 0;
    padding: 10px 12px;
    background: rgba(28, 167, 163, 0.08);
    border: 1px solid rgba(28, 167, 163, 0.18);
    border-radius: 12px;
}

.match-analysis-label {
    color: var(--cn-navy);
    font-size: 0.84rem;
    font-weight: 700;
}

.match-analysis-count {
    color: var(--cn-teal);
    font-size: 0.84rem;
    font-weight: 600;
}

.match-analysis-limit-note {
    margin: 8px 0 16px;
    color: #5f6f82;
    font-size: 0.8rem;
    line-height: 1.45;
}

.match-limit-message {
    width: 100%;
    padding: 12px 14px;
    text-align: center;
    color: var(--cn-navy);
    background: rgba(28, 167, 163, 0.08);
    border: 1px solid rgba(28, 167, 163, 0.18);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
}

.match-reanalyze-notice {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--cn-border-soft);
}

.match-reanalyze-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.match-reanalyze-content i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cn-teal);
    font-size: 1.2rem;
}

.match-reanalyze-content strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--cn-navy);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.match-reanalyze-content p {
    margin: 0;
    color: #5f6b7a;
    font-size: 0.88rem;
    line-height: 1.55;
}

.match-reanalyze-notice .button {
    width: 100%;
}

.match-success-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    color: var(--cn-navy);
    background: rgba(28, 167, 163, 0.09);
    border: 1px solid rgba(28, 167, 163, 0.24);
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.match-success-message i {
    margin-top: 3px;
    color: var(--cn-teal);
}

.strength-list {
    display: grid;
    gap: 16px;
}

.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.strength-check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    color: var(--job-success);
    background: var(--job-success-soft);
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 900;
}

.strength-item div {
    min-width: 0;
}

.strength-item h3 {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.92rem;
    line-height: 1.4;
}

.strength-item p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
    color: var(--job-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    max-width: 100%;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 11px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
.text-link:focus-visible,
.back-link:focus-visible,
.job-detail-tabs a:focus-visible {
    outline: 3px solid rgba(15, 157, 148, 0.24);
    outline-offset: 3px;
}

.button:disabled,
.button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.button-primary {
    color: #ffffff;
    background: var(--job-primary);
    border-color: var(--job-primary);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--job-primary-dark);
    border-color: var(--job-primary-dark);
}

.button-secondary {
    margin-top: 1rem;
    color: var(--job-secondary);
    background: #ffffff;
    border-color: var(--job-secondary);
}

.button-secondary:hover {
    color: var(--job-secondary);
    background: var(--job-secondary-soft);
    border-color: var(--job-secondary);
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    color: var(--job-primary);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
}

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

.save-job-btn--saved {
    color: var(--job-secondary);
    background: var(--job-secondary-soft);
    border-color: var(--job-secondary);
}

.muted-copy {
    margin: 0;
    color: var(--job-muted);
    line-height: 1.65;
}

.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block;
}

.desktop-apply-bar {
    display: none;
}

.mobile-apply-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    padding:
        12px
        max(12px, env(safe-area-inset-right))
        calc(12px + env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));
    background: rgba(244, 249, 249, 0.97);
    border-top: 1px solid var(--job-border);
    box-shadow: 0 -10px 28px rgba(16, 24, 40, 0.1);
    backdrop-filter: blur(12px);
}

.mobile-apply-bar .button {
    width: 100%;
}

.mobile-save-button {
    display: grid;
    justify-content: center;
    place-items: center;
    min-height: 46px;
    color: var(--job-text);
    background: var(--job-surface);
    border: 1px solid var(--job-border-strong);
    border-radius: 11px;
    cursor: pointer;
}

.mobile-save-button.save-job-btn--saved {
    color: var(--job-primary);
    background: var(--job-primary-soft);
    border-color: #b7c8f5;
}

/* 480px and up */
@media (min-width: 480px) {
    .job-detail-shell {
        width: min(100% - 28px, 1180px);
    }

    .job-hero-top,
    .content-card,
    .sidebar-card,
    .job-match-card {
        padding: 24px;
    }

    .job-header-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .job-heading-group h1 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .match-score-circle {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
    }

    .match-analysis-usage {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .recommendation-top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

/* 620px and up */
@media (min-width: 620px) {
    .job-detail-page {
        padding-top: 24px;
    }

    .job-detail-shell {
        width: min(100% - 36px, 1180px);
    }

    .job-hero-top {
        padding: 28px;
    }

    .job-heading-group h1 {
        font-size: clamp(2.1rem, 5vw, 2.7rem);
    }

    .job-facts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-score-row {
        align-items: center;
        gap: 16px;
    }

    .match-score-circle {
        width: 92px;
        height: 92px;
        flex-basis: 92px;
    }

    .match-score-circle span {
        font-size: 1.12rem;
    }

    .content-card,
    .sidebar-card,
    .job-match-card {
        padding: 28px;
    }

    #match-details {
        padding: 30px;
    }

    .empty-state {
        padding: 26px;
    }
}

/* 821px and up */
@media (min-width: 821px) {
    .job-detail-page {
        padding: 28px 0 116px;
    }

    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .job-detail-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas:
            "hero hero"
            "main match"
            "main sidebar";
        gap: 20px;
        align-items: start;
    }

    .job-hero-card {
        grid-area: hero;
    }

    .job-detail-main {
        grid-area: main;
        gap: 24px;
    }

    .job-match-card {
        grid-area: match;
        position: sticky;
        top: 24px;
        align-self: start;
    }

    .job-detail-sidebar {
        grid-area: sidebar;
        position: static;
        align-self: start;
    }

    .job-hero-top {
        flex-direction: row;
        justify-content: space-between;
        gap: 28px;
        padding: 30px;
    }

    .job-header-actions {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        width: auto;
    }

    .job-header-actions .button {
        width: auto;
    }

    .job-detail-tabs {
        padding: 0 24px;
    }

    .job-detail-tabs a {
        min-height: 58px;
        padding: 0 14px;
        font-size: 0.92rem;
    }

    .desktop-apply-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 30;
        display: block;
        background: rgba(244, 249, 249, 0.96);
        border-top: 1px solid var(--job-border);
        box-shadow: 0 -10px 30px rgba(16, 24, 40, 0.08);
        backdrop-filter: blur(12px);
    }

    .desktop-apply-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        min-height: 86px;
    }

    .desktop-apply-inner h2 {
        margin: 0;
        font-size: 1.05rem;
    }

    .desktop-apply-inner p {
        margin: 5px 0 0;
        color: var(--job-muted);
        font-size: 0.9rem;
    }

    .desktop-apply-actions {
        display: flex;
        gap: 10px;
    }

    .desktop-apply-actions .button-secondary {
        margin-top: 0;
    }

    .mobile-apply-bar {
        display: none;
    }
}

/* 1024px and up */
@media (min-width: 1024px) {
    .job-detail-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 28px;
    }
}

/* 1180px and up */
@media (min-width: 1180px) {
    .job-detail-shell {
        width: min(1180px, calc(100% - 40px));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.job-description-text {
    white-space: pre-line;
    line-height: 1.7;
}

.rich-job-content {
    line-height: 1.7;
}

.job-description-heading {
    margin: 2rem 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.job-description-heading:first-child {
    margin-top: 0;
}

.job-description-paragraph {
    margin: 0 0 1rem;
    line-height: 1.75;
}

.job-description-list {
    margin: 0 0 1.5rem;
    padding-left: 1.4rem;
}

.job-description-list li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
    line-height: 1.65;
}

.job-description-list li::marker {
    color: var(--cn-teal);
}