/**
 * FHMM Applicant Portal — main.css v0.4.0
 * Redesigned for elegance: shadow depth, refined typography, better spacing.
 */

/* ── Tokens ── */
:root {
  --fh-bg:          #F8F6F2;
  --fh-surface:     #FFFFFF;
  --fh-surface-t:   #FDFCFA;
  --fh-surface-d:   #F1EDE4;
  --fh-ink:         #111009;
  --fh-ink-2:       #47443E;
  --fh-ink-3:       #8F8B82;
  --fh-ink-4:       #B8B3A8;
  --fh-line:        #E8E3D8;
  --fh-line-2:      #D6D0C2;
  --fh-accent:      var(--fh-customizer-accent, #B31B2E);
  --fh-accent-2:    color-mix(in srgb, var(--fh-accent) 70%, black);
  --fh-accent-soft: color-mix(in srgb, var(--fh-accent) 8%, white);
  --fh-accent-glow: color-mix(in srgb, var(--fh-accent) 10%, transparent);
  --fh-dark:        var(--fh-customizer-dark, #100F0D);
  --fh-dark-2:      #1C1A17;
  --fh-dark-3:      #2D2A26;
  --fh-green:       #1B6B38;
  --fh-green-bg:    #E4F0E8;
  --fh-amber:       #7A4D08;
  --fh-amber-bg:    #FAF0D4;
  --fh-blue:        #1A5890;
  --fh-blue-bg:     #E8F0FA;
  --fh-serif:       'Crimson Pro', Georgia, 'Times New Roman', serif;
  --fh-sans:        'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fh-myanmar:     'Padauk', 'Noto Sans Myanmar', 'Myanmar3', sans-serif;
  --fh-shadow-1:    0 1px 2px rgba(17,16,9,.04), 0 2px 8px rgba(17,16,9,.04);
  --fh-shadow-2:    0 2px 4px rgba(17,16,9,.05), 0 8px 24px rgba(17,16,9,.06);
  --fh-shadow-3:    0 4px 8px rgba(17,16,9,.06), 0 16px 48px rgba(17,16,9,.08);
  --fh-r:           10px;
  --fh-r-lg:        16px;
  --fh-r-xl:        22px;
  --fh-max:         1120px;
  --fh-max-sm:      720px;
}

/* ── Base ── */
*,*::before,*::after { box-sizing: border-box; }
body { margin: 0; background: var(--fh-bg); color: var(--fh-ink); font-family: var(--fh-sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:lang(my),.lang-my { font-family: var(--fh-myanmar); line-height: 1.9; }
img,svg { max-width: 100%; display: block; }
a { color: var(--fh-accent); text-decoration: none; transition: color .12s; }
a:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--fh-accent-2); }
::selection { background: var(--fh-accent); color: #fff; }

/* ── Announcement bar ── */
.fhmm-announce { background: var(--fh-dark); color: #7A756C; font-size: 12.5px; text-align: center; padding: 9px 24px; letter-spacing: .025em; border-bottom: 1px solid var(--fh-dark-2); }
.fhmm-announce strong { color: #E8E3DA; font-weight: 500; }
.fhmm-announce a { color: #AAA49C; }
.fhmm-announce a:hover { color: #C8C3B8; text-decoration: underline; }

/* ── Header ── */
.fhmm-portal-header { background: var(--fh-surface); border-bottom: 1px solid var(--fh-line); box-shadow: 0 1px 0 rgba(17,16,9,.03); position: relative; z-index: 100; }
.fhmm-portal-header__inner { max-width: var(--fh-max); margin: 0 auto; padding: 0 28px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fhmm-portal-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.fhmm-portal-brand:hover { text-decoration: none; }
.fhmm-portal-brand__mark { width: 38px; height: 38px; background: var(--fh-dark); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; box-shadow: 0 1px 3px rgba(17,16,9,.2); overflow: hidden; }
.fhmm-portal-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.fhmm-portal-brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.fhmm-portal-brand__name { font-family: var(--fh-serif); font-size: 17.5px; font-weight: 600; letter-spacing: -.015em; color: var(--fh-ink); }
.fhmm-portal-brand__sub { font-size: 10px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--fh-ink-3); }
.fhmm-portal-nav { display: flex; align-items: center; gap: 1px; }
.fhmm-portal-nav__item { padding: 6px 11px; font-size: 13.5px; font-weight: 500; color: var(--fh-ink-3); border-radius: 4px; text-decoration: none; transition: color .12s, background .12s; }
.fhmm-portal-nav__item:hover { color: var(--fh-ink); background: var(--fh-surface-d); text-decoration: none; }
.fhmm-portal-nav__item.is-current { color: var(--fh-ink); background: var(--fh-surface-d); }
.fhmm-portal-nav__divider { width: 1px; height: 16px; background: var(--fh-line); margin: 0 8px; flex-shrink: 0; }
.fhmm-portal-nav__signout { padding: 6px 13px; font-size: 13px; font-weight: 500; color: var(--fh-ink-3); border: 1px solid var(--fh-line); border-radius: 4px; background: none; cursor: pointer; font-family: var(--fh-sans); transition: all .12s; letter-spacing: .01em; }
.fhmm-portal-nav__signout:hover { color: var(--fh-ink); border-color: var(--fh-line-2); background: var(--fh-surface-t); }

/* ── Layout ── */
.fhmm-portal-main { min-height: calc(100vh - 200px); padding: 48px 0 80px; }
.fhmm-portal-container { max-width: var(--fh-max); margin: 0 auto; padding: 0 28px; }
.fhmm-portal-container--sm { max-width: var(--fh-max-sm); margin: 0 auto; padding: 0 28px; }

/* ── Footer ── */
.fhmm-portal-footer { background: var(--fh-dark); border-top: 1px solid var(--fh-dark-2); padding: 26px 0; }
.fhmm-portal-footer__inner { max-width: var(--fh-max); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fhmm-portal-footer__brand { font-family: var(--fh-serif); font-size: 15px; color: #8A8680; }
.fhmm-portal-footer__links { display: flex; gap: 20px; }
.fhmm-portal-footer__links a { font-size: 13px; color: #4A4844; transition: color .12s; }
.fhmm-portal-footer__links a:hover { color: #7A7570; text-decoration: none; }
.fhmm-portal-footer__copy { font-size: 12px; color: #3A3835; }

/* ── Typography ── */
.fhmm-portal-eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fh-ink-3); margin: 0 0 8px; }
.fhmm-portal-heading { font-family: var(--fh-serif); font-size: clamp(30px, 3.5vw, 44px); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; color: var(--fh-ink); margin: 0 0 10px; }
.fhmm-portal-lede { font-size: 15.5px; color: var(--fh-ink-2); line-height: 1.6; }
.fhmm-portal-page-head { margin-bottom: 36px; }
.fhmm-portal-prose { font-size: 15px; line-height: 1.7; color: var(--fh-ink); }
.fhmm-portal-prose p { margin: 0 0 14px; }
.fhmm-portal-prose p:last-child { margin-bottom: 0; }
.fhmm-portal-callout { background: var(--fh-surface-d); border-radius: var(--fh-r); padding: 14px 16px; font-size: 14px; color: var(--fh-ink-2); margin: 16px 0; }
.fhmm-portal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 20px; }
.fhmm-portal-dl dt { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--fh-ink-4); }
.fhmm-portal-dl dd { font-size: 14px; color: var(--fh-ink); margin: 0; }

/* ── Cards ── */
.fhmm-portal-card { background: var(--fh-surface); border: 1px solid var(--fh-line); border-radius: var(--fh-r-lg); padding: 28px; margin-bottom: 18px; box-shadow: var(--fh-shadow-1); }
.fhmm-portal-card:last-child { margin-bottom: 0; }
.fhmm-portal-card--soft { background: var(--fh-surface-t); box-shadow: none; }
.fhmm-portal-card--lift { box-shadow: var(--fh-shadow-2); }
.fhmm-portal-card--accent-top { border-top: 2.5px solid var(--fh-accent); border-radius: 0 0 var(--fh-r-lg) var(--fh-r-lg); }
.fhmm-portal-card--feedback { border-left: 2.5px solid var(--fh-accent); border-radius: 0 var(--fh-r-lg) var(--fh-r-lg) 0; background: var(--fh-accent-soft); }
.fhmm-portal-card--empty { text-align: center; padding: 40px; background: var(--fh-surface-t); border-style: dashed; box-shadow: none; }
.fhmm-portal-card__title { font-family: var(--fh-serif); font-size: 20px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; margin: 0 0 14px; color: var(--fh-ink); }
.fhmm-portal-card__muted { color: var(--fh-ink-3); font-size: 14px; margin: 0; line-height: 1.55; }

/* ── Buttons ── */
.fhmm-portal-button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; font-family: var(--fh-sans); font-size: 13.5px; font-weight: 500; letter-spacing: .01em; border-radius: 6px; cursor: pointer; border: none; transition: all .15s; text-decoration: none; line-height: 1; white-space: nowrap; }
.fhmm-portal-button:hover { text-decoration: none; transform: translateY(-0.5px); }
.fhmm-portal-button:active { transform: translateY(0); }
.fhmm-portal-button--primary { background: var(--fh-accent); color: #fff; box-shadow: 0 1px 2px var(--fh-accent-glow), 0 2px 8px var(--fh-accent-glow); }
.fhmm-portal-button--primary:hover { background: var(--fh-accent-2); color: #fff; }
.fhmm-portal-button--ghost { background: transparent; color: var(--fh-accent); border: 1px solid color-mix(in srgb, var(--fh-accent) 30%, transparent); }
.fhmm-portal-button--ghost:hover { background: var(--fh-accent-soft); color: var(--fh-accent-2); }
.fhmm-portal-button--dark { background: var(--fh-dark); color: #fff; box-shadow: 0 1px 2px rgba(17,16,9,.2), 0 2px 8px rgba(17,16,9,.12); }
.fhmm-portal-button--dark:hover { background: var(--fh-dark-3); color: #fff; }
.fhmm-portal-button--full { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; }
.fhmm-portal-button--sm { padding: 6px 14px; font-size: 13px; }
/* WP login form */
.login-submit input[type="submit"] { display: block; width: 100%; padding: 13px 20px; background: var(--fh-dark); color: #fff; font-size: 15px; font-weight: 500; border: none; border-radius: 6px; cursor: pointer; font-family: var(--fh-sans); transition: background .15s; box-shadow: 0 1px 2px rgba(17,16,9,.2); }
.login-submit input:hover { background: var(--fh-dark-3); }

/* ── Forms ── */
.fhmm-portal-form__row { margin-bottom: 18px; }
.fhmm-portal-form__row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fhmm-portal-form__label { display: block; font-size: 13px; font-weight: 500; color: var(--fh-ink-2); margin-bottom: 7px; letter-spacing: .01em; }
.fhmm-portal-form__input { width: 100%; padding: 10px 14px; font-family: var(--fh-sans); font-size: 14.5px; color: var(--fh-ink); background: var(--fh-surface); border: 1px solid var(--fh-line-2); border-radius: 6px; outline: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; }
.fhmm-portal-form__input:focus { border-color: var(--fh-accent); box-shadow: 0 0 0 3px var(--fh-accent-glow); }
.fhmm-portal-form__input[readonly] { background: var(--fh-surface-d); color: var(--fh-ink-3); cursor: default; }
textarea.fhmm-portal-form__input { resize: vertical; min-height: 88px; line-height: 1.55; }
.fhmm-portal-form__hint { font-size: 12px; color: var(--fh-ink-4); margin-top: 5px; line-height: 1.4; }
.fhmm-portal-form__actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--fh-line); }
.login-username label, .login-password label { display: block; font-size: 13px; font-weight: 500; color: var(--fh-ink-2); margin-bottom: 7px; }
.login-username input[type="text"], .login-password input[type="password"] { width: 100%; padding: 10px 14px; font-size: 15px; border: 1px solid var(--fh-line-2); border-radius: 6px; outline: none; font-family: var(--fh-sans); background: var(--fh-surface); color: var(--fh-ink); -webkit-appearance: none; }
.login-username input:focus, .login-password input:focus { border-color: var(--fh-accent); box-shadow: 0 0 0 3px var(--fh-accent-glow); }

/* ── Tags ── */
.fhmm-portal-tag { display: inline-flex; align-items: center; padding: 2px 9px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; line-height: 1.6; }
.fhmm-portal-tag--track { background: var(--fh-surface-d); color: var(--fh-ink-2); border: 1px solid var(--fh-line-2); }
.fhmm-portal-tag--pending { background: var(--fh-amber-bg); color: var(--fh-amber); }
.fhmm-portal-tag--submitted { background: var(--fh-accent-soft); color: var(--fh-accent-2); }
.fhmm-portal-tag--reviewed { background: var(--fh-green-bg); color: var(--fh-green); }

/* ── Alerts ── */
.fhmm-portal-alert { padding: 11px 15px; border-radius: var(--fh-r); font-size: 14px; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.fhmm-portal-alert--success { background: var(--fh-green-bg); color: var(--fh-green); border: 1px solid rgba(27,107,56,.15); }
.fhmm-portal-alert--error { background: #F8E8E8; color: #8A1A1A; border: 1px solid rgba(138,26,26,.15); }
.fhmm-portal-alert--info { background: var(--fh-blue-bg); color: var(--fh-blue); border: 1px solid rgba(26,88,144,.15); }

/* ── Stage tracker ── */
.fhmm-portal-stage-tracker { background: var(--fh-surface); border: 1px solid var(--fh-line); border-radius: var(--fh-r-lg); padding: 30px 32px 26px; margin-bottom: 18px; box-shadow: var(--fh-shadow-1); }
.fhmm-portal-stage-tracker__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.fhmm-portal-stage-tracker__label { font-size: 10.5px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--fh-ink-3); }
.fhmm-portal-stage-tracker__progress-text { font-size: 12px; font-weight: 500; color: var(--fh-accent); letter-spacing: .01em; }
.fhmm-portal-stage-tracker__row { display: flex; align-items: flex-start; position: relative; }
.fhmm-portal-stage-tracker__row::before { content: ''; position: absolute; top: 19px; left: 10%; right: 10%; height: 1.5px; background: var(--fh-line-2); z-index: 0; }
.fhmm-portal-stage-tracker__fill { position: absolute; top: 19px; left: 10%; height: 1.5px; background: linear-gradient(90deg, var(--fh-accent-2), var(--fh-accent)); z-index: 0; border-radius: 2px; transition: width .4s ease; }
.fhmm-portal-stage-tracker__step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; position: relative; z-index: 1; }
.fhmm-portal-stage-tracker__dot { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--fh-line-2); background: var(--fh-bg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; color: var(--fh-ink-4); transition: all .2s; }
.fhmm-portal-stage-tracker__name { font-size: 11.5px; font-weight: 500; color: var(--fh-ink-4); text-align: center; line-height: 1.3; letter-spacing: .01em; }
.fhmm-portal-stage-tracker__step.is-done .fhmm-portal-stage-tracker__dot { background: var(--fh-accent); border-color: var(--fh-accent); color: #fff; box-shadow: 0 2px 8px var(--fh-accent-glow); }
.fhmm-portal-stage-tracker__step.is-done .fhmm-portal-stage-tracker__name { color: var(--fh-ink-3); }
.fhmm-portal-stage-tracker__step.is-current .fhmm-portal-stage-tracker__dot { border: 2px solid var(--fh-accent); color: var(--fh-accent); background: var(--fh-surface); box-shadow: 0 0 0 5px var(--fh-accent-glow), 0 2px 8px rgba(179,27,46,.12); }
.fhmm-portal-stage-tracker__step.is-current .fhmm-portal-stage-tracker__name { color: var(--fh-ink); font-weight: 600; }

/* ── Dashboard ── */
.fhmm-portal-dash-hero { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--fh-line); }
.fhmm-portal-dash-hero__greet { font-size: 14px; color: var(--fh-ink-3); font-weight: 400; margin-bottom: 4px; letter-spacing: .01em; }
.fhmm-portal-dash-hero__name { font-family: var(--fh-serif); font-size: clamp(36px, 5vw, 54px); font-weight: 500; font-style: italic; letter-spacing: -.025em; line-height: 1.04; color: var(--fh-ink); margin-bottom: 14px; }
.fhmm-portal-dash-hero__meta { display: flex; align-items: center; gap: 10px; }
.fhmm-portal-next-bar { background: var(--fh-surface); border: 1px solid var(--fh-line); border-top: 2.5px solid var(--fh-accent); border-radius: 0 0 var(--fh-r-lg) var(--fh-r-lg); padding: 18px 24px; margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: var(--fh-shadow-1); }
.fhmm-portal-next-bar__label { font-size: 10.5px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase; color: var(--fh-accent); margin-bottom: 4px; }
.fhmm-portal-next-bar__desc { font-size: 14.5px; color: var(--fh-ink-2); }
.fhmm-portal-next-bar__desc strong { color: var(--fh-ink); font-weight: 500; }
.fhmm-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fhmm-portal-grid .fhmm-portal-card { margin-bottom: 0; }

/* ── Task list ── */
.fhmm-portal-task-list { list-style: none; margin: 0; padding: 0; }
.fhmm-portal-task-list__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--fh-line); }
.fhmm-portal-task-list__item:first-child { padding-top: 4px; }
.fhmm-portal-task-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.fhmm-portal-task-list--lg .fhmm-portal-task-list__item { padding: 20px 0; }
.fhmm-portal-task-list__title { font-size: 14.5px; font-weight: 500; color: var(--fh-ink); display: block; margin-bottom: 6px; }
.fhmm-portal-task-list__title:hover { color: var(--fh-accent); text-decoration: none; }
.fhmm-portal-task-list__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fhmm-portal-task-list__deadline { font-size: 12px; color: var(--fh-ink-4); }

/* ── Login ── */
.fhmm-portal-login { display: flex; justify-content: center; padding-top: 28px; }
.fhmm-portal-login__wrap { width: 100%; max-width: 400px; }
.fhmm-portal-login__logo { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 28px; }
.fhmm-portal-login__card { background: var(--fh-surface); border: 1px solid var(--fh-line); border-radius: var(--fh-r-xl); padding: 40px 36px 32px; box-shadow: var(--fh-shadow-2); }
.fhmm-portal-login__title { font-family: var(--fh-serif); font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--fh-ink); }
.fhmm-portal-login__sub { font-size: 14px; color: var(--fh-ink-3); margin: 0 0 26px; line-height: 1.55; }
.fhmm-portal-login__forgot { font-size: 13px; color: var(--fh-ink-3); display: block; margin-bottom: 20px; }
.fhmm-portal-login__footer { margin-top: 20px; text-align: center; font-size: 13px; color: var(--fh-ink-3); }

/* ── Interview ── */
.fhmm-portal-interview-when { font-family: var(--fh-serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--fh-ink); margin: 4px 0 3px; }
.fhmm-portal-interview-with { font-size: 13.5px; color: var(--fh-ink-3); margin-bottom: 20px; }

/* ── Upload zone ── */
.fhmm-portal-upload-zone { border: 1.5px dashed var(--fh-line-2); border-radius: var(--fh-r); padding: 30px 20px; text-align: center; background: var(--fh-surface-t); margin-bottom: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.fhmm-portal-upload-zone:hover { border-color: var(--fh-accent); background: var(--fh-accent-soft); }
.fhmm-portal-upload-zone__icon { color: var(--fh-ink-4); margin: 0 auto 10px; transition: color .15s; }
.fhmm-portal-upload-zone:hover .fhmm-portal-upload-zone__icon { color: var(--fh-accent); }
.fhmm-portal-upload-zone__text { font-size: 14px; color: var(--fh-ink-2); margin-bottom: 4px; }
.fhmm-portal-upload-zone__text strong { color: var(--fh-accent); font-weight: 500; }
.fhmm-portal-upload-zone__hint { font-size: 12px; color: var(--fh-ink-4); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .fhmm-portal-grid { grid-template-columns: 1fr; }
  .fhmm-portal-header__inner { padding: 0 16px; height: 58px; }
  .fhmm-portal-card { padding: 20px; }
  .fhmm-portal-stage-tracker { padding: 20px 16px; }
  .fhmm-portal-stage-tracker__dot { width: 32px; height: 32px; font-size: 12px; }
  .fhmm-portal-stage-tracker__row::before,.fhmm-portal-stage-tracker__fill { top: 16px; }
  .fhmm-portal-stage-tracker__name { font-size: 11px; }
  .fhmm-portal-login__card { padding: 28px 22px; border-radius: var(--fh-r-lg); }
  .fhmm-portal-form__row--split { grid-template-columns: 1fr; }
  .fhmm-portal-next-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fhmm-portal-footer__inner { flex-direction: column; text-align: center; gap: 12px; }
  .fhmm-portal-footer__links { justify-content: center; }
}
@media (max-width: 480px) {
  .fhmm-portal-stage-tracker__row { flex-direction: column; gap: 0; }
  .fhmm-portal-stage-tracker__row::before,.fhmm-portal-stage-tracker__fill { display: none; }
  .fhmm-portal-stage-tracker__step { flex-direction: row; align-items: center; gap: 10px; text-align: left; padding: 7px 0; }
  .fhmm-portal-stage-tracker__name { font-size: 13.5px; }
  .fhmm-portal-brand__sub { display: none; }
}

/* ─── Stage tracker: __row must be flex ─── */
.fhmm-portal-stage-tracker__row {
  display: flex;
  align-items: flex-start;
  position: relative;
}

/* ─── Dashboard hero (template names) ─── */
.fhmm-portal-dash-hero__batch {
  font-size: 13px;
  color: var(--fh-ink-3);
  font-weight: 400;
}

/* ─── Next-action bar desc ─── */
.fhmm-portal-next-bar__desc strong { color: var(--fh-ink); font-weight: 500; }

/* ─── Interview "with" line ─── */
.fhmm-portal-interview-with {
  font-size: 13.5px;
  color: var(--fh-ink-3);
  margin-bottom: 18px;
}

/* ─── Additions v1.1 — filling gaps between templates and CSS ─── */

/* Inner-page content wrapper — constrains to sm max-width */
.fhmm-portal-container.fhmm-portal-content,
.fhmm-portal-content { max-width: var(--fh-max-sm); margin-left: auto; margin-right: auto; }

/* Default button (no modifier) — dark fill, used on forms */
.fhmm-portal-button { background: var(--fh-dark); color: #fff; }
.fhmm-portal-button:hover { background: var(--fh-dark-3); color: #fff; text-decoration: none; }
/* Override with explicit modifiers */
.fhmm-portal-button--primary { background: var(--fh-accent); color: #fff; box-shadow: 0 1px 2px var(--fh-accent-glow), 0 2px 8px var(--fh-accent-glow); }
.fhmm-portal-button--primary:hover { background: var(--fh-accent-2); color: #fff; }
.fhmm-portal-button--ghost { background: transparent; color: var(--fh-accent); border: 1px solid color-mix(in srgb, var(--fh-accent) 30%, transparent); }
.fhmm-portal-button--ghost:hover { background: var(--fh-accent-soft); color: var(--fh-accent-2); }
.fhmm-portal-button--dark { background: var(--fh-dark); color: #fff; }
.fhmm-portal-button--dark:hover { background: var(--fh-dark-3); color: #fff; }
.fhmm-portal-button--sm { padding: 7px 14px; font-size: 13px; }
.fhmm-portal-button--full { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; }

/* Interview card variant — red top border */
.fhmm-portal-card--interview { border-top: 2.5px solid var(--fh-accent); border-radius: 0 0 var(--fh-r-lg) var(--fh-r-lg); }

/* Form wrapper */
.fhmm-portal-form { max-width: 560px; }

/* Inline text link */
.fhmm-portal-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: .9375rem; color: var(--fh-accent); text-decoration: none; }
.fhmm-portal-link:hover { color: var(--fh-accent-2); text-decoration: underline; }

/* Login card elements */
.fhmm-portal-login__heading { font-family: var(--fh-serif); font-size: 23px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; color: var(--fh-ink); line-height: 1.15; }
.fhmm-portal-login__lede { font-size: 14px; color: var(--fh-ink-3); margin: 0 0 24px; line-height: 1.55; }
.fhmm-portal-login__helper { margin-top: 14px; text-align: center; font-size: 13px; color: var(--fh-ink-3); }
.fhmm-portal-login__helper a { color: var(--fh-ink-3); }
.fhmm-portal-login__helper a:hover { color: var(--fh-accent); }

/* Page head lede */
.fhmm-portal-page-head__lede { font-size: 15.5px; color: var(--fh-ink-2); line-height: 1.6; margin-top: 8px; }

/* Task list — large variant (alias of --lg used in tasks.php) */
.fhmm-portal-task-list--large .fhmm-portal-task-list__item { padding: 20px 0; }
.fhmm-portal-task-list--large .fhmm-portal-task-list__item:first-child { padding-top: 4px; }

/* Interview detail extras */
.fhmm-portal-interview-detail { margin-bottom: 20px; }
.fhmm-portal-interview-detail .fhmm-portal-dl { margin-bottom: 20px; }
.fhmm-portal-interview-prep { background: var(--fh-surface-d); border-radius: var(--fh-r); padding: 14px 16px; margin: 16px 0; font-size: 14.5px; color: var(--fh-ink-2); line-height: 1.65; }
.fhmm-portal-interview-prep__label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--fh-ink-3); margin: 0 0 6px; }

/* Login page layout — center the card */
.fhmm-portal-login {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  max-width: 100% !important; /* override content width constraint */
}
.fhmm-portal-login .fhmm-portal-login__card {
  width: 100%;
  max-width: 420px;
}

/* ═══════════════════════════════════════════════
   DECISION ANNOUNCEMENT OVERLAY
   ═══════════════════════════════════════════════ */

.fhmm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fhmm-overlay-fade-in .5s ease both;
}
.fhmm-overlay--out {
  animation: fhmm-overlay-fade-out .45s ease both !important;
  pointer-events: none;
}

@keyframes fhmm-overlay-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fhmm-overlay-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* Backdrop */
.fhmm-overlay__bg {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, .97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Accepted — subtle radial warmth */
.fhmm-overlay--accepted .fhmm-overlay__bg {
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(27,60,30,.55) 0%, rgba(10,9,8,.98) 70%);
}

/* Waitlisted — amber warmth */
.fhmm-overlay--waitlisted .fhmm-overlay__bg {
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(90,55,8,.5) 0%, rgba(10,9,8,.98) 70%);
}

/* Card */
.fhmm-overlay__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  animation: fhmm-card-rise .6s .15s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes fhmm-card-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Wordmark */
.fhmm-overlay__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  animation: fhmm-card-rise .5s .05s ease both;
}
.fhmm-overlay__brand-mark {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
}
.fhmm-overlay__brand-name {
  font-family: var(--fh-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: rgba(255,255,255,.55);
}

/* Body text */
.fhmm-overlay__body {
  text-align: center;
}

.fhmm-overlay__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin: 0 0 16px;
  animation: fhmm-card-rise .5s .25s ease both;
}
.fhmm-overlay--accepted .fhmm-overlay__eyebrow { color: rgba(110,200,120,.7); }
.fhmm-overlay--waitlisted .fhmm-overlay__eyebrow { color: rgba(230,170,80,.7); }

.fhmm-overlay__heading {
  font-family: var(--fh-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #FAFAF7;
  margin: 0 0 28px;
  animation: fhmm-card-rise .6s .3s ease both;
}

.fhmm-overlay__message {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(250,250,247,.6);
  max-width: 440px;
  margin: 0 auto 40px;
  animation: fhmm-card-rise .6s .4s ease both;
}
.fhmm-overlay__message p { margin: 0 0 12px; }
.fhmm-overlay__message p:last-child { margin-bottom: 0; }
.fhmm-overlay__message strong { color: rgba(250,250,247,.85); font-weight: 500; }

/* Dismiss button */
.fhmm-overlay__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 28px;
  font-family: var(--fh-sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(250,250,247,.85);
  transition: background .15s, border-color .15s, color .15s;
  animation: fhmm-card-rise .6s .5s ease both;
}
.fhmm-overlay__btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  color: #FAFAF7;
}
.fhmm-overlay__btn:disabled { opacity: .5; cursor: not-allowed; }

/* Accepted: crimson button */
.fhmm-overlay--accepted .fhmm-overlay__btn {
  background: var(--fh-accent);
  border-color: var(--fh-accent);
  color: #fff;
  box-shadow: 0 2px 16px rgba(179,27,46,.35);
}
.fhmm-overlay--accepted .fhmm-overlay__btn:hover {
  background: var(--fh-accent-2);
  border-color: var(--fh-accent-2);
}

/* Mobile */
@media (max-width: 480px) {
  .fhmm-overlay { padding: 20px; align-items: flex-end; }
  .fhmm-overlay__card { max-width: 100%; }
  .fhmm-overlay__brand { margin-bottom: 32px; }
  .fhmm-overlay__heading { font-size: 30px; }
  .fhmm-overlay__message { font-size: 15px; }
}
