/* JainHelp Portal — teal + gold + soft pink from logo.jpg
   Fonts: Lexend (display) + Source Sans 3 (body) */

   :root {
    --brand: #106060;
    --brand-dark: #0a4545;
    --brand-mid: #1a7878;
    --brand-soft: #e7f4f4;
    --accent: #d4a84b;
    --accent-dark: #b8892e;
    --accent-soft: #f8efd8;
    --pink: #f4c2d7;
    --pink-soft: #fdf0f6;
    --cream: #fff9e3;
    --bg: #f4faf9;
    --bg-pattern: #e5f0ef;
    --surface: #ffffff;
    --text: #122222;
    --muted: #4a6666;
    --border: #c9dede;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --success: #166534;
    --success-bg: #f0fdf4;
    --focus: #d4a84b;
    --radius: 14px;
    --shadow: 0 16px 48px rgba(16, 96, 96, 0.12);
    --font-display: "Lexend", system-ui, sans-serif;
    --font-body: "Source Sans 3", system-ui, sans-serif;
    --touch: 48px;
    --z-header: 40;
    --z-overlay: 50;
    --max: 1100px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: clip;
  }
  
  body {
    margin: 0;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: clip;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--text);
    background:
      radial-gradient(1100px 480px at 8% -8%, var(--accent-soft), transparent 58%),
      radial-gradient(900px 420px at 100% 0%, var(--brand-soft), transparent 55%),
      linear-gradient(180deg, var(--bg) 0%, #ffffff 52%, var(--bg-pattern) 100%);
    display: flex;
    flex-direction: column;
  }
  
  @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;
    }
  }
  
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  .skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: var(--brand);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
  }
  .skip-link:focus {
    top: 1rem;
  }
  
  /* ——— Header ——— */
  .portal-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(244, 250, 249, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    animation: fadeDown 280ms ease-out;
  }
  
  .portal-header__inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  
  @keyframes fadeDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .portal-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-height: var(--touch);
  }
  
  .portal-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(16, 96, 96, 0.22);
  }
  
  .portal-brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .portal-brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brand);
    letter-spacing: -0.02em;
  }
  
  .portal-brand__tag {
    font-size: 0.8rem;
    color: var(--muted);
  }
  
  .nav-toggle {
    display: none;
    width: var(--touch);
    height: var(--touch);
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }
  
  .nav-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
  }
  
  .portal-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  
  .portal-nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--brand-mid);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 180ms ease, color 180ms ease;
    cursor: pointer;
  }
  
  .portal-nav__link:hover,
  .portal-nav__link:focus-visible {
    background: var(--brand-soft);
    color: var(--brand);
    outline: none;
  }
  
  .portal-nav__link.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .portal-nav__wa {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 180ms ease, filter 180ms ease;
  }
  
  .portal-nav__wa:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
  }
  
  @media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .portal-nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      padding: 0.75rem 1.25rem 1.25rem;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .portal-nav.is-open { display: flex; }
    .portal-nav__link,
    .portal-nav__wa {
      width: 100%;
      justify-content: center;
      min-height: var(--touch);
    }
    .portal-nav__wa { margin-left: 0; margin-top: 0.35rem; }
  }
  
  /* ——— Main ——— */
  .portal-main {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: min(var(--max), 100%);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
  }
  
  /* ——— Home hero ——— */
  .home-hero {
    min-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 0 3rem;
    animation: fadeUp 400ms ease-out;
  }
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .home-hero__logo {
    width: min(180px, 42vw);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(16, 96, 96, 0.22);
    margin-bottom: 1.5rem;
  }
  
  .home-hero__brand {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    line-height: 1.1;
  }
  
  .home-hero__headline {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.8vw, 1.45rem);
    font-weight: 500;
    color: var(--text);
    margin: 0 0 0.5rem;
    max-width: 28em;
  }
  
  .home-hero__lead {
    color: var(--muted);
    margin: 0 0 1.5rem;
    max-width: 32em;
    font-size: 1.05rem;
  }
  
  .home-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    margin: 0 0 2rem;
    padding: 0;
  }
  
  .home-stats__item {
    min-width: 7.5rem;
    margin: 0;
    padding: 0.85rem 1.35rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  
  .home-stats__item dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  
  .home-stats__item dd {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--brand);
    line-height: 1.1;
  }
  
  .home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }
  
  /* ——— Buttons ——— */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--touch);
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }
  
  .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
  }
  
  .btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(16, 96, 96, 0.28);
  }
  .btn--primary:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-1px);
  }
  
  .btn--accent {
    background: var(--accent);
    color: var(--brand-dark);
    box-shadow: 0 8px 24px rgba(212, 168, 75, 0.35);
  }
  .btn--accent:hover:not(:disabled) {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
  }
  
  .btn--secondary {
    background: var(--surface);
    color: var(--brand);
    border: 1.5px solid var(--border);
  }
  .btn--secondary:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  
  .btn--ghost {
    background: transparent;
    color: var(--brand-mid);
    border: 1px solid transparent;
  }
  .btn--ghost:hover:not(:disabled) {
    background: var(--brand-soft);
  }
  
  .btn--wa {
    background: #25d366;
    color: #fff;
  }
  .btn--wa:hover:not(:disabled) {
    filter: brightness(1.05);
  }
  
  .btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  
  .btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  .btn.is-loading .btn__label { opacity: 0.7; }
  .btn.is-loading .btn__spinner { display: inline-block; }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  /* ——— Page sections ——— */
  .page-head {
    margin-bottom: 1.5rem;
    animation: fadeUp 320ms ease-out;
  }
  
  .page-head__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    color: var(--brand);
    margin: 0 0 0.4rem;
    letter-spacing: -0.02em;
  }
  
  .page-head__lead {
    margin: 0;
    color: var(--muted);
    max-width: 40em;
  }
  
  .page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
  }
  
  /* ——— Filters ——— */
  .filters {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 20px rgba(16, 96, 96, 0.04);
    min-width: 0;
    max-width: 100%;
  }
  
  .filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem;
  }
  
  .filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
    align-items: center;
  }
  
  .field label,
  .field .field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand);
    margin-bottom: 0.35rem;
  }
  
  .field input,
  .field select,
  .field textarea {
    width: 100%;
    min-height: var(--touch);
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  
  .field input:focus,
  .field select:focus,
  .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  
  .field-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
  }
  
  .field-error {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--danger);
  }
  
  .req { color: var(--danger); }
  
  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  
  @media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
  }
  
  /* ——— Listings ——— */
  .results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
  }
  
  .results-meta.is-idle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
  }
  
  .listing-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    max-width: 100%;
  }
  
  .listing {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  }
  
  .listing:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #d4c4b0;
  }
  
  .listing__top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }
  
  .listing__heading {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 0;
    flex: 1;
  }
  
  .listing__no {
    flex: 0 0 auto;
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
  }
  
  .listing__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .listing__badge--hire {
    background: var(--brand-soft);
    color: var(--brand);
  }
  
  .listing__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin: 0.35rem 0;
    color: var(--muted);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__details {
    margin: 0.5rem 0;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__phone {
    font-weight: 600;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
  }
  
  .listing__phone--locked {
    font-weight: 500;
    font-style: italic;
    font-variant-numeric: normal;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  
  .listing__contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
  }
  
  .listing__call {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
  }
  
  .listing__call:hover {
    text-decoration: underline;
  }
  
  .listing__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    flex-shrink: 0;
    text-decoration: none;
  }
  
  .listing__wa:hover {
    filter: brightness(1.08);
  }
  
  .listing__icon {
    display: block;
    flex-shrink: 0;
  }
  
  .listing__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
  }
  
  .infinite-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    min-height: 1px;
  }
  
  .infinite-status__loading,
  .infinite-status__end {
    margin: 0;
    padding: 0.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
  }
  
  .infinite-status__loading {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* display:flex above overrides the HTML [hidden] attribute — force hide */
  .infinite-status__loading[hidden],
  .infinite-status__end[hidden] {
    display: none !important;
  }
  
  .infinite-status__sentinel {
    width: 100%;
    height: 1px;
  }
  
  /* ——— Forms (portal post) ——— */
  .app-form,
  .portal-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.4rem 1.6rem;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
  }
  
  .form-section {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
  }
  
  .form-section__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--brand);
    margin: 0 0 1rem;
    padding: 0;
  }
  
  .form-section--reveal[hidden] { display: none; }
  
  .section-continue {
    margin-top: 1.15rem;
  }
  
  .form-actions {
    margin-top: 1rem;
  }
  
  .form-actions__note {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  .otp-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: stretch;
  }
  
  .otp-row input { flex: 1; min-width: 140px; }
  
  .otp-row .btn {
    flex: 0 0 auto;
  }
  
  .link-btn {
    background: none;
    border: none;
    color: var(--brand-mid);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
  }
  
  .otp-verified,
  .otp-verified-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: #1f6b3a;
    font-weight: 600;
    margin: 0.65rem 0 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    background: #eef8f1;
    border: 1px solid #b7dfc4;
  }
  
  .otp-verified-banner__text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  
  .form-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecaca;
  }
  
  .form-alert--ok {
    background: var(--success-bg);
    color: var(--success);
    border-color: #bbf7d0;
  }
  
  /* ——— Auth pages ——— */
  .auth-alt {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
  }
  
  .auth-alt__link {
    display: inline-block;
    margin-left: 0.2rem;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent);
    transition: color 150ms ease, border-color 150ms ease;
  }
  
  .auth-alt__link:hover,
  .auth-alt__link:focus-visible {
    color: var(--brand-mid);
    border-bottom-color: var(--brand);
    outline: none;
  }
  
  .success-panel {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 480px;
    margin: 0 auto;
  }
  
  .success-panel__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .success-panel__title {
    font-family: var(--font-display);
    color: var(--brand);
    margin: 0 0 0.5rem;
  }
  
  .success-panel__text { color: var(--muted); }
  
  .success-panel__id {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
    margin: 0.75rem 0 1.25rem;
  }
  
  .step-nav {
    margin-bottom: 1.25rem;
    overflow-x: auto;
  }
  
  .step-nav__list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: max-content;
  }
  
  .step-nav__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
  }
  
  .step-nav__item.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .step-nav__item.is-done {
    background: var(--accent-soft);
    color: var(--accent-dark);
  }
  
  .step-nav__num {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    font-weight: 700;
  }
  
  .spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 96, 96, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
  }
  
  .spinner-overlay[hidden] {
    display: none !important;
  }
  
  .spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255,255,255,0.35);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  
  /* ——— Footer ——— */
  .portal-footer {
    border-top: 1px solid var(--border);
    background: rgba(248, 245, 241, 0.85);
    margin-top: auto;
  }
  
  .portal-footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.25rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
  }
  
  .portal-footer a {
    color: var(--brand);
    font-weight: 600;
  }
  
  .footer-copy { margin: 0 0 0.25rem; }
  .footer-credit { margin: 0; }
  
  /* ——— Toggle tabs (Hire / Employee) ——— */
  .seg-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--brand-soft);
    border-radius: 12px;
    gap: 4px;
  }
  
  .seg-tabs__btn {
    min-height: 40px;
    padding: 0.45rem 1.1rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: var(--brand-mid);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
  }
  
  .seg-tabs__btn.is-active {
    background: var(--brand);
    color: #fff;
  }
  
  .seg-tabs__btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
  }
  
  .skeleton {
    height: 110px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, var(--brand-soft), #fff, var(--brand-soft));
    background-size: 200% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
  }
  
  @keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .skeleton {
      animation: none;
    }
  }
  