/* =====================================================================
   四健會協會 — 前臺公開頁樣式(編輯雜誌風 / Editorial)
   一套樣式涵蓋:首頁 landing、入會選擇、申請表單、狀態頁。
   設計語彙:米紙底 × 深墨綠 × 陶土橘、超大襯線標題、細網格線、
            編號索引(folio)、不對稱排版、橫向分隔線。
   ===================================================================== */

:root {
    --paper:      #f1e9d8;   /* 主背景:暖米紙 */
    --paper-deep: #e7dcc4;   /* 較深米 */
    --cream:      #fbf7ee;   /* 卡面奶白 */
    --ink:        #211f1a;   /* 主文字:近墨黑 */
    --ink-soft:   #6a6354;   /* 次要文字 */
    --green:      #2c3826;   /* 深墨綠(主色) */
    --green-deep: #1c2718;
    --green-mid:  #4a5a3e;
    --clay:       #bb5530;   /* 陶土橘(強調) */
    --clay-deep:  #97431f;
    --rule:       rgba(33, 31, 26, .20);   /* 細網格線 */
    --rule-soft:  rgba(33, 31, 26, .10);
    --rule-bold:  rgba(33, 31, 26, .55);
    --shadow:     0 24px 60px -28px rgba(40, 34, 22, .45);

    --serif: "Noto Serif TC", "Songti TC", serif;
    --sans:  "Noto Sans TC", "PingFang TC", system-ui, sans-serif;

    --wrap: min(1180px, calc(100% - 48px));
}

[data-theme="dark"] {
    --paper:      #181611;
    --paper-deep: #211d16;
    --cream:      #221e17;
    --ink:        #ece4d4;
    --ink-soft:   #aaa08c;
    --green:      #aebd97;
    --green-deep: #c7d4b2;
    --green-mid:  #93a37c;
    --clay:       #e08a5d;
    --clay-deep:  #eaa079;
    --rule:       rgba(236, 228, 212, .18);
    --rule-soft:  rgba(236, 228, 212, .09);
    --rule-bold:  rgba(236, 228, 212, .42);
    --shadow:     0 24px 60px -28px rgba(0, 0, 0, .7);
}

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

html { -webkit-text-size-adjust: 100%; }

body.public-page,
body.apply-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(120% 90% at 100% 0%, rgba(187, 85, 48, .07), transparent 42%),
        radial-gradient(110% 80% at 0% 100%, rgba(44, 56, 38, .08), transparent 45%);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* 極淡紙紋(不混濁) */
body.public-page::before,
body.apply-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background-image: repeating-linear-gradient(
        to bottom, rgba(33, 31, 26, .022) 0 1px, transparent 1px 6px);
}
[data-theme="dark"] body.public-page::before,
[data-theme="dark"] body.apply-page::before {
    background-image: repeating-linear-gradient(
        to bottom, rgba(236, 228, 212, .03) 0 1px, transparent 1px 6px);
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; display: block; }

/* ---------------------------------------------------------------
   Folio / eyebrow:編號索引與小標籤(編輯感)
   --------------------------------------------------------------- */
.eyebrow {
    margin: 0;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--clay-deep);
}

.folio {
    font-family: var(--serif);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--green);
}

/* ===============================================================
   MASTHEAD(刊頭)— landing 與 apply 共用
   =============================================================== */
.masthead {
    width: var(--wrap);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0 16px;
    border-bottom: 1px solid var(--rule);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-mark {
    width: 46px; height: 46px;
    flex: 0 0 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    color: var(--cream);
    background: linear-gradient(150deg, var(--green-mid), var(--green-deep));
}
.brand-mark img { width: 26px; height: 26px; object-fit: contain; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong {
    font-family: var(--serif);
    font-size: 1.04rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.brand-name small {
    font-size: .72rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.masthead nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    position: relative;
    padding: 8px 2px;
    margin-left: 18px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 2px;
    width: 100%; height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .28s ease;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.quiet { color: var(--ink-soft); }

.theme-btn {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    margin-left: 18px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.theme-btn:hover { background: var(--green); color: var(--cream); border-color: transparent; }

/* ===============================================================
   LANDING 首頁
   =============================================================== */
main { display: block; }

.public-hero {
    width: var(--wrap);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 84px) 0 clamp(30px, 5vw, 60px);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: end;
    border-bottom: 1px solid var(--rule);
}

.hero-copy .eyebrow { margin-bottom: 22px; }

.hero-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.9rem, 7.5vw, 6.4rem);
    line-height: .98;
    letter-spacing: -.01em;
    color: var(--green-deep);
}
.hero-copy h1 em {
    font-style: normal;
    color: var(--clay);
}

.hero-lead {
    max-width: 38ch;
    margin: 28px 0 0;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: var(--ink-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    font-family: var(--sans);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .02em;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn i { transition: transform .25s ease; }
.btn-primary {
    color: var(--cream);
    background: var(--green);
    box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-primary:hover i { transform: translateX(4px); }
.btn-ghost {
    color: var(--ink);
    border-color: var(--rule-bold);
    background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.admin-note {
    margin-top: 26px;
    font-size: .86rem;
    color: var(--ink-soft);
}
.admin-note a {
    color: var(--green);
    font-weight: 700;
    border-bottom: 1px solid var(--clay);
    padding-bottom: 1px;
}

/* 申請流程:編號索引(編輯式清單) */
.hero-index { margin: 0; }
.hero-index .index-kicker {
    margin: 0 0 6px;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.hero-index ol { margin: 0; padding: 0; list-style: none; }
.hero-index li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 18px 0;
    border-top: 1px solid var(--rule);
}
.hero-index li .folio { font-size: 1.5rem; }
.hero-index li strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.12rem;
    color: var(--ink);
}
.hero-index li span { font-size: .9rem; color: var(--ink-soft); }

/* 服務重點:三欄編輯網格 */
.public-features {
    width: var(--wrap);
    margin: clamp(28px, 4vw, 56px) auto clamp(48px, 7vw, 90px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.public-features article {
    padding: 30px clamp(20px, 2.4vw, 34px) 34px;
    border-top: 2px solid var(--ink);
    border-right: 1px solid var(--rule);
}
.public-features article:last-child { border-right: 0; }
.public-features .folio { display: block; font-size: 2.4rem; margin-bottom: 18px; color: var(--clay); }
.public-features h2 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--green-deep);
}
.public-features p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* ===============================================================
   FOOTER(共用)
   =============================================================== */
.public-footer,
.apply-footer {
    width: var(--wrap);
    margin: 0 auto;
    padding: 30px 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--rule);
    font-size: .86rem;
    color: var(--ink-soft);
}
.public-footer a, .apply-footer a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.public-footer a:hover, .apply-footer a:hover { border-color: var(--clay); }
.public-footer .sep, .apply-footer .sep { margin: 0 8px; color: var(--rule-bold); }

/* ===============================================================
   APPLY:入會類別選擇(apply/index.php)
   =============================================================== */
.apply-main { width: var(--wrap); margin: 0 auto; }

.apply-hero {
    padding: clamp(34px, 5vw, 70px) 0 clamp(24px, 3vw, 44px);
    border-bottom: 1px solid var(--rule);
}
.apply-hero .eyebrow { margin-bottom: 18px; }
.apply-title {
    margin: 0;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.0;
    letter-spacing: -.01em;
    color: var(--green-deep);
}
.apply-subtitle {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--clay-deep);
    font-weight: 500;
    letter-spacing: .02em;
}
.apply-intro { margin: 14px 0 0; max-width: 56ch; color: var(--ink-soft); font-size: .98rem; }

/* 類別:編輯式條目(大編號 + 細線) */
.apply-cards {
    margin: clamp(20px, 3vw, 40px) 0 0;
    display: grid;
    gap: 0;
}
.apply-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
        "folio  title   fees"
        "folio  desc    fees"
        "folio  hint    action";
    column-gap: clamp(20px, 3vw, 48px);
    row-gap: 6px;
    align-items: start;
    padding: clamp(26px, 3vw, 38px) 6px;
    border-top: 1px solid var(--rule);
    color: var(--ink);
    transition: background-color .25s ease, padding-left .25s ease;
}
.apply-card:last-child { border-bottom: 1px solid var(--rule); }
.apply-card:hover { background: var(--cream); }
.apply-card .apply-card-folio {
    grid-area: folio;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.6rem, 5vw, 4rem);
    line-height: .9;
    color: var(--clay);
    font-variant-numeric: tabular-nums;
}
.apply-card-title {
    grid-area: title;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--green-deep);
}
.apply-card-desc { grid-area: desc; margin: 4px 0 0; color: var(--ink-soft); max-width: 48ch; }
.apply-card-fees {
    grid-area: fees;
    margin: 0; padding: 0; list-style: none;
    text-align: right;
    min-width: 150px;
}
.apply-card-fees li {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 4px 0;
    border-bottom: 1px dotted var(--rule);
    font-size: .9rem;
}
.apply-card-fees span { color: var(--ink-soft); }
.apply-card-fees strong { font-family: var(--serif); color: var(--green); }
.apply-card-hint {
    grid-area: hint;
    margin: 10px 0 0;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem;
    color: var(--clay-deep);
}
.apply-card-action {
    grid-area: action;
    align-self: end;
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}
.apply-card-action i { transition: transform .25s ease; }
.apply-card:hover .apply-card-action i { transform: translateX(5px); }

/* 申請流程(選擇頁底部) */
.apply-info {
    margin: clamp(34px, 5vw, 64px) 0 0;
    padding-top: 28px;
    border-top: 2px solid var(--ink);
}
.apply-info h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--green-deep);
}
.apply-steps {
    margin: 18px 0 0; padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
}
.apply-steps li {
    counter-increment: step;
    padding: 18px 18px 22px 0;
    border-top: 1px solid var(--rule);
    font-size: .9rem;
    color: var(--ink-soft);
}
.apply-steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 10px;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--clay);
}
.apply-steps li strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }

/* ===============================================================
   APPLY:申請表單(apply/form.php)
   =============================================================== */
.apply-form-wrap { max-width: 880px; }

.apply-back {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px;
    font-size: .9rem; font-weight: 500;
    color: var(--ink-soft);
}
.apply-back i { transition: transform .25s ease; }
.apply-back:hover { color: var(--ink); }
.apply-back:hover i { transform: translateX(-4px); }

.apply-form-card {
    margin: clamp(20px, 3vw, 36px) 0 0;
}
.apply-form-head {
    padding-bottom: 24px;
    border-bottom: 2px solid var(--ink);
}
.apply-form-eyebrow {
    font-size: .72rem; font-weight: 700; letter-spacing: .3em;
    text-transform: uppercase; color: var(--clay-deep);
}
.apply-form-title {
    margin: 12px 0 8px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    line-height: 1.0;
    color: var(--green-deep);
}
.apply-form-fees { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.apply-errors {
    display: flex; gap: 12px;
    margin: 26px 0 0;
    padding: 18px 20px;
    border: 1px solid var(--clay);
    border-left-width: 4px;
    border-radius: 2px;
    background: rgba(187, 85, 48, .06);
    color: var(--clay-deep);
}
.apply-errors i { font-size: 1.2rem; margin-top: 2px; }
.apply-errors ul { margin: 0; padding-left: 18px; }
.apply-errors li { margin: 2px 0; }

.apply-fieldset {
    margin: 0;
    padding: 30px 0 6px;
    border: 0;
    border-top: 1px solid var(--rule);
}
.apply-fieldset:first-of-type { border-top: 0; }
.apply-fieldset legend {
    padding: 0;
    display: flex; align-items: baseline; gap: 12px;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-deep);
    counter-increment: fs;
}
.apply-fieldset legend::before {
    content: counter(fs, decimal-leading-zero);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--clay-deep);
    font-family: var(--sans);
}
.apply-form { counter-reset: fs; }

.apply-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    margin-top: 18px;
}
.apply-fieldset > label { display: block; margin-top: 18px; }

.apply-form label {
    font-size: .9rem;
    font-weight: 500;
    color: var(--ink);
}
.req { color: var(--clay-deep); font-weight: 700; }

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form input[type="date"],
.apply-form select,
.apply-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--rule-bold);
    border-radius: 2px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.apply-form textarea { resize: vertical; min-height: 110px; }
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(44, 56, 38, .14);
}
.apply-form input::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }

.apply-check {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 20px;
    font-size: .92rem;
    color: var(--ink-soft);
}
.apply-check input { margin-top: 3px; accent-color: var(--green); width: 17px; height: 17px; }

.apply-turnstile { margin-top: 26px; }

.apply-actions {
    display: flex; align-items: center; justify-content: flex-end; gap: 18px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}
.apply-cancel {
    font-weight: 600; color: var(--ink-soft);
    border-bottom: 1px solid transparent;
}
.apply-cancel:hover { color: var(--ink); border-color: var(--ink); }
.apply-submit {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 52px; padding: 0 30px;
    font-family: var(--sans); font-size: 1rem; font-weight: 700;
    color: var(--cream);
    background: var(--green);
    border: 0; border-radius: 2px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color .2s ease, transform .2s ease;
}
.apply-submit:hover { background: var(--green-deep); transform: translateY(-2px); }
.apply-submit[disabled] { opacity: .65; cursor: progress; transform: none; }
.apply-submit i { transition: transform .25s ease; }
.apply-submit:not([disabled]):hover i { transform: translateX(4px); }

.apply-disclaimer {
    margin: 18px 0 0;
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ===============================================================
   狀態頁(done / throttled / print_invalid)
   =============================================================== */
.status-wrap {
    width: var(--wrap);
    max-width: 660px;
    margin: 0 auto;
    min-height: 70vh;
    display: grid;
    place-items: center;
    padding: 40px 0;
}
.status-card {
    width: 100%;
    padding: clamp(34px, 5vw, 60px) clamp(28px, 4vw, 52px);
    background: var(--cream);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--green);
    border-radius: 2px;
    box-shadow: var(--shadow);
    text-align: center;
}
.status-card.is-warn { border-top-color: var(--clay); }
.status-card .status-mark {
    font-size: 2.6rem;
    color: var(--green);
    line-height: 1;
}
.status-card.is-warn .status-mark { color: var(--clay); }
.status-card .eyebrow { margin: 18px 0 0; }
.status-card h1 {
    margin: 10px 0 12px;
    font-family: var(--serif);
    font-weight: 900;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--green-deep);
}
.status-card p { margin: 0 auto; max-width: 46ch; color: var(--ink-soft); }
.status-ticket {
    display: inline-block;
    margin: 24px 0;
    padding: 16px 28px;
    border: 1px dashed var(--rule-bold);
    border-radius: 2px;
    background: var(--paper);
}
.status-ticket span { display: block; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); }
.status-ticket strong { font-family: var(--serif); font-size: 1.5rem; color: var(--clay); letter-spacing: .04em; }
.status-list {
    margin: 24px auto 0;
    max-width: 46ch;
    text-align: left;
    padding-left: 0;
    list-style: none;
    counter-reset: si;
}
.status-list li {
    counter-increment: si;
    display: grid; grid-template-columns: auto 1fr; gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    font-size: .92rem; color: var(--ink);
}
.status-list li::before {
    content: counter(si, decimal-leading-zero);
    font-family: var(--serif); font-weight: 700; color: var(--clay-deep);
}
.status-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.status-print {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; min-height: 48px;
    border: 1px solid var(--rule-bold); border-radius: 2px;
    font-weight: 600; color: var(--ink);
}
.status-print:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.status-note { margin-top: 10px; font-size: .78rem; color: var(--ink-soft); }

/* ===============================================================
   載入動畫(僅 landing,尊重 reduced-motion)
   =============================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.public-page .hero-copy > *,
.public-page .hero-index { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.public-page .hero-copy .eyebrow { animation-delay: .05s; }
.public-page .hero-copy h1 { animation-delay: .12s; }
.public-page .hero-copy .hero-lead { animation-delay: .2s; }
.public-page .hero-copy .hero-actions { animation-delay: .28s; }
.public-page .hero-copy .admin-note { animation-delay: .34s; }
.public-page .hero-index { animation-delay: .4s; }

/* ===============================================================
   RWD
   =============================================================== */
@media (max-width: 940px) {
    .public-hero { grid-template-columns: 1fr; gap: 40px; align-items: start; }
    .public-features { grid-template-columns: 1fr; }
    .public-features article { border-right: 0; border-bottom: 1px solid var(--rule); }
    .public-features article:last-child { border-bottom: 0; }
    .apply-steps { grid-template-columns: 1fr 1fr; }
    .apply-card {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "folio title"
            "folio desc"
            "folio fees"
            "folio hint"
            "folio action";
    }
    .apply-card-fees { text-align: left; margin-top: 12px; }
    .apply-card-action { justify-self: start; margin-top: 10px; }
}

@media (max-width: 640px) {
    :root { --wrap: calc(100% - 32px); }
    body.public-page, body.apply-page { font-size: 15px; }
    .masthead { flex-wrap: wrap; }
    .masthead nav { width: 100%; justify-content: flex-start; gap: 4px; }
    .nav-link:first-child { margin-left: 0; }
    .apply-row { grid-template-columns: 1fr; }
    .apply-steps { grid-template-columns: 1fr; }
    .apply-actions { flex-direction: column-reverse; align-items: stretch; }
    .apply-submit { justify-content: center; }
    .apply-cancel { text-align: center; }
    .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-delay: 0ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
