/* ==========================================================================
   TinyEYE Careers — design system
   All colors flow from the tokens below; page markup never hardcodes hex.
   ========================================================================== */

:root {
    /* Typography */
    --font-sans: 'Calibri', 'Carlito', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Brand blues */
    --te-blue-50: #EBF7FF;
    --te-blue-100: #D6EFFF;
    --te-blue-400: #3CB2FF;
    --te-blue-500: #1F9FF0;
    --te-blue-600: #0F87D6;
    --te-blue-700: #0A6BAD;
    --te-blue-800: #0A5285;
    --te-blue-900: #0A3D63;

    /* Ocean */
    --te-ocean-50: #E0F8FE;
    --te-ocean-400: #00BBDE;
    --te-ocean-600: #007F99;
    --te-ocean-700: #006278;

    /* Yellow */
    --te-yellow-50: #FFFBE6;
    --te-yellow-100: #FFF5BF;
    --te-yellow-400: #FFCF26;
    --te-yellow-700: #8A6E00;

    /* Neutrals */
    --te-neutral-0: #FFFFFF;
    --te-neutral-50: #F7F9FB;
    --te-neutral-100: #EDF1F5;
    --te-neutral-200: #DDE4EC;
    --te-neutral-300: #C3CED9;
    --te-neutral-400: #9BA8B5;
    --te-neutral-500: #6B7785;
    --te-neutral-600: #4A6275;
    --te-neutral-700: #34495B;
    --te-neutral-800: #1A2A3A;

    /* Green */
    --te-green-50: #E8F8EE;
    --te-green-500: #16A34A;
    --te-green-600: #15803D;

    /* Semantic aliases */
    --color-primary: #3CB2FF;
    --color-primary-hover: #1F9FF0;
    --color-primary-active: #0F87D6;
    --color-primary-soft: #D6EFFF;
    --color-primary-tint: #EBF7FF;
    --color-on-primary: #FFFFFF;
    --color-accent: #FFCF26;
    --color-accent-soft: #FFF5BF;
    --color-on-accent: #1A2A3A;
    --color-secondary: #00BBDE;
    --color-success-soft: #E8F8EE;
    --text-strong: #1A2A3A;
    --text-heading: #1A2A3A;
    --text-body: #4A6275;
    --text-muted: #6B7785;
    --text-subtle: #9BA8B5;
    --text-link: #0F87D6;
    --surface-page: #F7F9FB;
    --surface-card: #FFFFFF;
    --surface-subtle: #EDF1F5;
    --brand-soft: #EBF7FF;
    --border-subtle: #EDF1F5;
    --border-default: #DDE4EC;
    --border-strong: #C3CED9;
    --border-brand: #3CB2FF;
    --focus-ring: rgba(60, 178, 255, 0.35);

    /* Radius */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    /* Shadows (navy-tinted) */
    --shadow-sm: 0 1px 2px rgba(26, 42, 58, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 42, 58, 0.08), 0 1px 2px rgba(26, 42, 58, 0.04);
    --shadow-lg: 0 12px 32px rgba(26, 42, 58, 0.10), 0 2px 4px rgba(26, 42, 58, 0.04);

    /* Motion */
    --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
    --dur-fast: 150ms;
    --dur-med: 200ms;
}

/* ---------- Base ---------- */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text-body);
    background: var(--surface-page);
}

h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--text-link); }

img { max-width: 100%; }

svg { flex-shrink: 0; }

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out);
}

.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-lg); }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }

.btn-accent {
    background: var(--color-accent);
    color: var(--color-on-accent);
}
.btn-accent:hover { background: var(--te-yellow-100); }
.btn-accent:active { background: var(--te-yellow-400); }

.btn-ghost {
    background: transparent;
    color: var(--text-strong);
}
.btn-ghost:hover { background: var(--surface-subtle); color: var(--color-primary-active); }

.btn-outline {
    background: var(--surface-card);
    color: var(--text-strong);
    border-color: var(--border-default);
}
.btn-outline:hover { border-color: var(--border-brand); color: var(--color-primary-active); }
.btn-outline[aria-pressed="true"] {
    background: var(--color-primary-tint);
    border-color: var(--border-brand);
    color: var(--te-blue-700);
}

/* ---------- Promo strip + header ---------- */

.promo-strip {
    background: var(--te-yellow-400);
    color: var(--te-neutral-800);
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 16px;
}
.promo-strip a {
    color: var(--te-blue-700);
    text-decoration: underline;
}

.site-head {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-subtle);
}

.site-head-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-fallback {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary-active);
}

/* Top-level nav row only — the child combinator matters: without it this flex
   rule cascades into the nested .dropdown <ul> and lays its items out in a row */
.main-nav > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease-out);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link .chev { transition: transform var(--dur-fast) var(--ease-out); }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;   /* vertical item stack, one per row */
    min-width: 252px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(6px);
    visibility: hidden;
    transition: opacity var(--dur-fast) var(--ease-out),
                transform var(--dur-fast) var(--ease-out),
                visibility var(--dur-fast);
    z-index: 60;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.open > .dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.nav-item:hover > .nav-link .chev,
.nav-item:focus-within > .nav-link .chev,
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    text-decoration: none;
}
.dropdown a:hover { background: var(--color-primary-tint); color: var(--color-primary-active); }

.head-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 920px) {
    .main-nav { display: none; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: linear-gradient(180deg, #EAF6FF 0%, #F3FAFF 55%, #F7F9FB 100%);
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 420px; height: 420px;
    top: -140px; right: -100px;
    background: var(--color-primary);
    opacity: 0.10;
}
.hero::after {
    width: 340px; height: 340px;
    bottom: -140px; left: -120px;
    background: var(--color-accent);
    opacity: 0.14;
}

.hero-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 76px 24px 64px;
    z-index: 1;
}

.hero-content { max-width: 760px; }

.hero-eyebrow {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--te-blue-600);
    margin-bottom: 12px;
}

.hero h1 {
    color: var(--color-primary);
    font-size: clamp(38px, 5.2vw, 60px);
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 20px;
    color: var(--text-body);
    margin-bottom: 28px;
    max-width: 640px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--surface-card);
    border: 1px solid var(--te-blue-100);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 700;
    color: var(--te-blue-700);
}
.feature-pill svg { color: var(--color-primary); }

.hero-search-card {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 14px 20px;
    max-width: 760px;
}

.hero-search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 240px;
}
.hero-search-input svg { color: var(--text-subtle); }
.hero-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-strong);
    min-height: 44px;
}
.hero-search-input input::placeholder { color: var(--text-subtle); }
.hero-search-input input:focus { outline: none; }
.hero-search-input:focus-within {
    border-radius: var(--radius-sm);
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.hero-open-count {
    font-weight: 700;
    color: var(--te-blue-700);
    white-space: nowrap;
}

/* ---------- Filter bar ---------- */

.filter-bar {
    position: sticky;
    top: 65px;
    z-index: 40;
    background: rgba(247, 249, 251, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-default);
}

.filter-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-select {
    min-height: 44px;
    padding: 8px 36px 8px 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    background-color: var(--surface-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7785' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.filter-select:hover { border-color: var(--border-strong); }

.work-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.work-pill {
    min-height: 44px;
    padding: 8px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-body);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out),
                color var(--dur-fast) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
}
.work-pill:hover { border-color: var(--border-brand); color: var(--color-primary-active); }
.work-pill[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-on-primary);
}

.filter-clear { margin-left: auto; }

/* ---------- Results ---------- */

.results-section { padding: 32px 0 72px; }

.results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.results-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.view-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-subtle);
    border-radius: var(--radius-pill);
}
.view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.view-toggle button[aria-pressed="true"] {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

/* Cards */

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
}

.job-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
    animation: card-in var(--dur-med) var(--ease-out) both;
}
.job-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.job-card-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
}
.badge-virtual { background: var(--te-blue-50); color: var(--te-blue-700); }
.badge-onsite  { background: var(--te-ocean-50); color: var(--te-ocean-700); }
.badge-hybrid  { background: var(--te-yellow-50); color: var(--te-yellow-700); }
.badge-new     { background: var(--color-accent-soft); color: var(--te-yellow-700); }
.badge-profession { background: var(--color-primary-soft); color: var(--te-blue-700); }

.job-card-title {
    font-size: 20px;
    margin: 0;
}

.job-card-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}
.job-card-meta svg { color: var(--text-subtle); }

.job-card-blurb {
    margin: 2px 0 0;
    font-size: 15px;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.job-posted { font-size: 13.5px; color: var(--text-subtle); }

.job-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-active);
}

/* List view */

.job-grid.list-view { grid-template-columns: 1fr; gap: 12px; }

.job-grid.list-view .job-card {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 20px;
    padding: 18px 22px;
}
.job-grid.list-view .job-card-main {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.job-grid.list-view .job-card-blurb { display: none; }
.job-grid.list-view .job-card-foot {
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.job-card-main { display: contents; }
.job-grid.list-view .job-card-main { display: flex; }

/* Empty state */

.empty-state {
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    padding: 56px 24px;
    text-align: center;
}
.empty-state svg { color: var(--text-subtle); margin-bottom: 12px; }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); margin-bottom: 18px; }

[hidden] { display: none !important; }

/* ---------- Detail page ---------- */

.page-main { padding: 32px 0 72px; }

.container-detail { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container-apply  { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 16px;
}
.back-link:hover { color: var(--color-primary-active); }

.job-header-card {
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
    overflow: hidden;
    margin-bottom: 28px;
}
.job-header-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 6px;
    background: var(--color-primary);
}

.job-header-card h1 {
    font-size: clamp(28px, 3.6vw, 40px);
    margin: 12px 0 10px;
}

.job-header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 22px;
}
.job-header-location svg { color: var(--text-subtle); }

.job-header-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.detail-cols {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .detail-cols { grid-template-columns: 1fr; }
}

.detail-section {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
}
.detail-section h2 { font-size: 22px; margin-bottom: 14px; }

/* Rich text from DB */
.prose { color: var(--text-body); font-size: 16px; }
.prose p { margin: 0 0 0.9em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--text-link); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 4px; list-style: none; }
.prose li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.prose li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: var(--text-subtle);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

.list-check.prose li::before,
.prose.list-check li::before {
    background-color: var(--te-green-500);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.prose.list-dot li::before {
    background-color: var(--color-primary);
}

/* Sidebar */

.detail-aside { position: sticky; top: 90px; }

.side-panel {
    background: var(--brand-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.side-panel h2 { font-size: 19px; margin-bottom: 16px; }

.perk {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.perk:last-child { margin-bottom: 0; }

.perk-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--surface-card);
    border-radius: var(--radius-md);
    color: var(--color-primary-active);
    box-shadow: var(--shadow-sm);
}

.perk h3 { font-size: 15.5px; margin: 0 0 2px; }
.perk p { font-size: 14px; color: var(--text-muted); margin: 0; }

.cta-card {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.cta-card h2 { color: var(--color-on-primary); font-size: 20px; margin-bottom: 8px; }
.cta-card p { color: var(--color-primary-tint); font-size: 14.5px; margin-bottom: 16px; }
.cta-card .btn { width: 100%; }

/* ---------- Forms (apply page) ---------- */

.apply-head { margin-bottom: 24px; }
.apply-head h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 6px; }
.apply-head .apply-role { font-size: 17px; color: var(--text-muted); margin: 0; }

.apply-cols {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 860px) {
    .apply-cols { grid-template-columns: 1fr; }
}

.form-card {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 32px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 620px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

.field { margin-bottom: 18px; }

.field label,
.field .field-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 6px;
}

.field .req { color: var(--color-primary-active); }

.field-hint { font-size: 13.5px; color: var(--text-muted); margin: 6px 0 0; }

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text-strong);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 110px; resize: vertical; }

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--border-brand);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7785' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 38px;
    cursor: pointer;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap svg {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    pointer-events: none;
}
.input-icon-wrap input { padding-left: 42px; }

/* File drop zone */

.file-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    border: 2px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-page);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.file-drop:hover, .file-drop.dragover {
    border-color: var(--border-brand);
    background: var(--color-primary-tint);
}
.file-drop svg { color: var(--color-primary); }
.file-drop strong { color: var(--text-strong); font-size: 15px; }
.file-drop span { font-size: 13.5px; color: var(--text-muted); }
.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-drop:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}
.file-drop .file-chosen { font-weight: 700; color: var(--te-green-600); }

/* Checkboxes */

.check-group { display: flex; flex-direction: column; gap: 10px; }

.check-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-body);
    cursor: pointer;
    min-height: 24px;
}
.check-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

fieldset.field {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 0 18px;
}
fieldset.field legend {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    padding: 0 6px;
}

.form-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 24px 0;
}

.recaptcha-wrap { margin-bottom: 20px; }

/* Steps aside */

.steps-panel { position: sticky; top: 90px; }

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.step:last-child { margin-bottom: 0; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-pill);
}
.step h3 { font-size: 15.5px; margin: 4px 0 2px; }
.step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- Success / thank-you page ---------- */

.success-panel {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px 32px;
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    background: var(--color-success-soft);
    color: var(--te-green-500);
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.success-panel h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 10px; }
.success-panel .success-lede { font-size: 17px; color: var(--text-body); max-width: 560px; margin: 0 auto 8px; }

.tinychat-cta {
    background: var(--brand-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px auto;
    max-width: 560px;
    text-align: center;
}
.tinychat-cta p { font-size: 15px; color: var(--text-body); }
.tinychat-cta .muted { font-size: 13.5px; color: var(--text-muted); margin: 14px 0 0; }

.success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.notice-panel h1 { color: var(--text-heading); }

/* Filled-position notice */

.filled-panel {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px 32px;
    text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--surface-card);
    border-top: 1px solid var(--border-subtle);
    padding: 28px 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.site-footer a { color: var(--text-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .job-card:hover { transform: none; }
}
