/* ==========================================================
   EmployAim
   ========================================================== */


/* ----------------------------------------------------------
   THEME
   ---------------------------------------------------------- */

:root {
    --page-width: 1180px;

    /* Swapped Green for the Logo's Precision Cyan/Blue */
    --green: #0076df;          /* Vibrant tech blue/cyan from your dart logo */
    --green-hover: #005cb1;    /* Darker active blue state */
    --green-soft: #f0f7ff;     /* True cold blue-gray tint for highlights */

    /* Universal accessible warning states */
    --warning: #b45309;        /* Warm amber/ochre tint */
    --warning-bg: #fffbeb;     /* Soft warm cream warning panel */

    /* TRUE Slate Off-White Backgrounds (Zero Green Undertones) */
    --bg: #f8fafc;             /* True light slate-gray (Tailwind slate-50) */
    --bg-alt: #f1f5f9;         /* Clean slate-gray for alternate rows (Tailwind slate-100) */
    --surface: #ffffff;        /* Pure white reserved strictly for structural cards */

    /* Pure Charcoal Dark Text */
    --text: #0f172a;           /* Deep midnight ink (Tailwind slate-900) */
    --text-soft: #475569;      /* Clean neutral body text (Tailwind slate-600) */
    --text-faint: #94a3b8;     /* Clean placeholder/meta gray (Tailwind slate-400) */

    /* Cold Slate Borders */
    --border: #e2e8f0;         /* Thin light slate-gray rule (Tailwind slate-200) */
    --border-strong: #cbd5e1;  /* High contrast border line (Tailwind slate-300) */

    --header-bg: rgba(248, 250, 251, 0.96); /* Exact match to the new slate background */

    /* Clean Utility Tags (SYS, DEV, PLT) */
    --tag-bg: #f1f5f9;         /* Matches --bg-alt for uniform structure */
    --tag-text: #334155;       /* Sharp slate gray labels (Tailwind slate-700) */

    /* True Dark Panel (Deep tech slate navy instead of forest green) */
    --dark-panel: #0f172a;     /* Deep slate base—same as text color for uniform blacks */

    /* Shadow shifted to a light slate dispersion */
    --menu-shadow:
        0 14px 40px rgba(15, 23, 42, 0.06);

    color-scheme: light;
}

html[data-theme="dark"] {
    /* Updated to match the Logo's Precision Cyan/Blue in Dark Mode */
    --green: #38bdf8;          /* Bright, high-contrast cyan/blue (Tailwind sky-400) for dark backgrounds */
    --green-hover: #7dd3fc;    /* Lighter blue state for hover actions */
    --green-soft: #072541;     /* Deep navy tint for alert panels or active row states */

    /* Accessible Dark Mode Warning Colors */
    --warning: #fbbf24;        /* Vibrant amber warning text */
    --warning-bg: #2d2006;     /* Deep warning amber background tone */

    /* True Dark Slate Background Tones (Zero Green Undertones) */
    --bg: #0b0f19;             /* Very deep midnight slate-black (Tailwind slate-950 variant) */
    --bg-alt: #0f172a;         /* Clean background variant for alternate table rows */
    --surface: #1e293b;        /* Elevated charcoal/slate card containers (Tailwind slate-800) */

    /* Crisp Off-White Text Elements */
    --text: #f8fafc;           /* Bright crisp text for high readability (Tailwind slate-50) */
    --text-soft: #94a3b8;      /* Soft body text gray (Tailwind slate-400) */
    --text-faint: #64748b;     /* Dim placeholder/meta text gray (Tailwind slate-500) */

    /* Clean Borders for Dark Mode Layouts */
    --border: #1e293b;         /* Low-contrast dark border lines */
    --border-strong: #334155;  /* Defined, high-contrast border lines for inputs/headers */

    --header-bg: rgba(11, 15, 25, 0.96); /* Exact match to the new deep midnight --bg */

    /* Dark Mode Utility Tags (SYS, DEV, PLT) */
    --tag-bg: #1e293b;         /* Matches --surface background for a clean, embedded look */
    --tag-text: #cbd5e1;       /* Light slate-gray labels for high tag readability */

    /* Universal Dark Panel Baseline */
    --dark-panel: #020617;     /* Pure midnight baseline black */

    /* Deep neutral dispersion drop shadow */
    --menu-shadow:
        0 18px 44px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
}

/*
:root {
    --page-width: 1180px;

    --green: #08783f;
    --green-hover: #056333;
    --green-soft: #eaf4ee;

    --warning: #a55d00;
    --warning-bg: #fff3df;

    --bg: #ffffff;
    --bg-alt: #f7f9f7;
    --surface: #ffffff;

    --text: #172019;
    --text-soft: #59645d;
    --text-faint: #7b857f;

    --border: #dce3de;
    --border-strong: #c6d0c9;

    --header-bg: rgba(255, 255, 255, 0.96);

    --tag-bg: #eef3ef;
    --tag-text: #455149;

    --dark-panel: #10281b;

    --menu-shadow:
        0 14px 40px rgba(17, 31, 22, 0.12);

    color-scheme: light;
}

html[data-theme="dark"] {
    --green: #35a967;
    --green-hover: #52bd7d;
    --green-soft: #182b20;

    --warning: #f1b35f;
    --warning-bg: #332617;

    --bg: #111512;
    --bg-alt: #151a17;
    --surface: #191f1b;

    --text: #f0f3f1;
    --text-soft: #a7b1ab;
    --text-faint: #7f8a83;

    --border: #2b342e;
    --border-strong: #3d4941;

    --header-bg: rgba(17, 21, 18, 0.96);

    --tag-bg: #222b25;
    --tag-text: #bec7c1;

    --dark-panel: #0b2317;

    --menu-shadow:
        0 18px 44px rgba(0, 0, 0, 0.34);

    color-scheme: dark;
}
*/

/* ----------------------------------------------------------
   RESET
   ---------------------------------------------------------- */

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


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.55;
}


img {
    display: block;
    max-width: 100%;
}


button,
input,
textarea {
    font: inherit;
}


button {
    color: inherit;
}


a {
    color: inherit;
}


svg {
    display: block;
}


[hidden] {
    display: none !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;
}


.page-width {
    width: min(
        calc(100% - 48px),
        var(--page-width)
    );

    margin-inline: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border);

    background: var(--header-bg);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.header-inner {
    min-height: 82px;

    display: grid;

    grid-template-columns: 220px 1fr auto;

    align-items: center;

    gap: 28px;
}


.brand {
    display: inline-flex;

    width: fit-content;

    text-decoration: none;
}


.brand-logo {
    position: relative;

    display: block;

    width: 172px;
    height: 58px;
}


.brand-logo img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: left center;
}


.brand-logo__dark {
    display: none;
}


html[data-theme="dark"] .brand-logo__light {
    display: none;
}


html[data-theme="dark"] .brand-logo__dark {
    display: block;
}


.desktop-nav {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 32px;
}


.desktop-nav a,
.employer-link {
    color: var(--text-soft);

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 650;
}


.desktop-nav a:hover,
.employer-link:hover {
    color: var(--text);
}


.header-actions {
    display: flex;

    align-items: center;

    gap: 18px;
}


/* ----------------------------------------------------------
   THEME BUTTON
   ---------------------------------------------------------- */

.theme-toggle {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);

    cursor: pointer;
}


.theme-toggle:hover {
    border-color: var(--border-strong);
}


.theme-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.theme-toggle__moon {
    display: none;
}


html[data-theme="dark"] .theme-toggle__sun {
    display: none;
}


html[data-theme="dark"] .theme-toggle__moon {
    display: block;
}


/* ----------------------------------------------------------
   MOBILE HEADER
   ---------------------------------------------------------- */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    padding: 9px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.mobile-menu-button span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 4px auto;

    background: var(--text);

    transition:
        transform 160ms ease,
        opacity 160ms ease;
}


.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}


.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}


.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


.mobile-nav {
    display: none;

    padding: 8px 24px 22px;

    border-top: 1px solid var(--border);

    background: var(--bg);
}


.mobile-nav.is-open {
    display: grid;
}


.mobile-nav a {
    padding: 13px 0;

    border-bottom: 1px solid var(--border);

    text-decoration: none;

    font-weight: 650;
}


/* ==========================================================
   INTRO
   ========================================================== */

.site-intro {
    padding: 42px 0 0;
}


.intro-brand {
    display: flex;

    justify-content: center;

    padding: 4px 0 34px;
}


.intro-logo {
    position: relative;

    display: block;

    width: 245px;
    height: 165px;
}


.intro-logo img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


.intro-logo__dark {
    display: none;
}


html[data-theme="dark"] .intro-logo__light {
    display: none;
}


html[data-theme="dark"] .intro-logo__dark {
    display: block;
}


.intro-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(280px, 0.8fr);

    gap: clamp(42px, 8vw, 105px);

    align-items: end;

    padding: 31px 0 37px;

    border-top: 1px solid var(--border);
}


.intro-primary {
    max-width: 690px;
}


.intro-primary h1 {
    max-width: 650px;

    margin: 0 0 16px;

    font-size: clamp(1.95rem, 3.2vw, 2.8rem);
    line-height: 1.12;

    letter-spacing: -0.03em;

    font-weight: 720;
}


.intro-primary p,
.intro-secondary p {
    margin: 0;

    color: var(--text-soft);

    line-height: 1.72;
}


.intro-primary p {
    max-width: 660px;

    font-size: 1rem;
}


.intro-secondary p {
    max-width: 420px;

    margin-bottom: 20px;

    font-size: 0.91rem;
}


.intro-jobs-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--green);

    text-decoration: none;

    font-size: 0.89rem;
    font-weight: 750;
}


.quick-categories {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


.quick-categories a {
    min-height: 57px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-right: 1px solid var(--border);

    color: var(--text-soft);

    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 700;
}


.quick-categories a:last-child {
    border-right: 0;
}


.quick-categories a:hover {
    background: var(--bg-alt);

    color: var(--text);
}


/* ==========================================================
   CURATION STRIP
   ========================================================== */

.curation-strip {
    background: var(--bg-alt);

    border-bottom: 1px solid var(--border);
}


.curation-strip__inner {
    min-height: 62px;

    display: flex;

    align-items: center;

    gap: 0;
}


.curation-strip__inner > * {
    padding: 0 22px;

    border-right: 1px solid var(--border);

    color: var(--text-soft);

    font-size: 0.75rem;
}


.curation-strip__inner > :first-child {
    padding-left: 0;

    color: var(--text);

    font-weight: 750;
}


.curation-strip__inner > :last-child {
    border-right: 0;
}


/* ==========================================================
   COMMON HEADINGS
   ========================================================== */

.section-label {
    margin: 0 0 11px;

    color: var(--green);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.jobs-section,
.my-jobs-section,
.categories-section,
.about-section {
    padding: 88px 0;
}


.jobs-heading,
.section-heading,
.my-jobs-header {
    display: flex;

    justify-content: space-between;
    align-items: end;

    gap: 40px;

    margin-bottom: 35px;
}


.jobs-heading h2,
.section-heading h2,
.my-jobs-header h2,
.about-grid h2,
.employer-box h2 {
    margin: 0;

    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.12;

    letter-spacing: -0.035em;
}


.jobs-heading-note {
    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-soft);

    font-size: 0.8rem;
}


.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);
}


/* ==========================================================
   JOB TOOLBAR
   ========================================================== */

.job-toolbar {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}


.job-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}


.filter-button {
    min-height: 36px;

    padding: 0 12px;

    border: 1px solid transparent;
    border-radius: 4px;

    background: transparent;

    color: var(--text-soft);

    font-size: 0.8rem;
    font-weight: 700;

    cursor: pointer;
}


.filter-button:hover {
    background: var(--bg-alt);

    color: var(--text);
}


.filter-button.active {
    border-color: var(--border-strong);

    background: var(--surface);

    color: var(--text);
}


.job-search {
    width: 250px;
    min-height: 40px;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 0 11px;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: var(--surface);
}


.job-search:focus-within {
    border-color: var(--green);
}


.job-search svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: var(--text-faint);
    stroke-width: 1.8;
}


.job-search input {
    min-width: 0;

    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 0.83rem;
}


/* ==========================================================
   JOB LIST
   ========================================================== */

.job-list {
    border-bottom: 1px solid var(--border);
}


.job {
    display: grid;

    grid-template-columns: 100px minmax(0, 1fr);

    gap: 28px;

    padding: 31px 8px;

    border-bottom: 1px solid var(--border);

    transition:
        background-color 130ms ease,
        padding-left 130ms ease,
        padding-right 130ms ease;
}


.job:last-child {
    border-bottom: 0;
}


.job:hover {
    padding-left: 14px;
    padding-right: 14px;

    background: var(--bg-alt);
}


/* ----------------------------------------------------------
   CATEGORY MARK
   ---------------------------------------------------------- */

.job-category {
    padding-top: 2px;
}


.job-category__code {
    display: inline-flex;

    min-width: 46px;
    min-height: 29px;

    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border: 1px solid var(--border-strong);
    border-radius: 3px;

    color: var(--green);

    font-size: 0.7rem;
    font-weight: 850;

    letter-spacing: 0.06em;
}


.job-category__name {
    display: block;

    margin-top: 7px;

    color: var(--text-faint);

    font-size: 0.69rem;
}


/* ----------------------------------------------------------
   JOB CONTENT
   ---------------------------------------------------------- */

.job-content {
    min-width: 0;
}


.job-heading-row {
    display: flex;

    justify-content: space-between;

    gap: 22px;
}


.job h3 {
    margin: 0;

    font-size: 1.1rem;
    line-height: 1.35;
}


.job h3 a {
    text-decoration: none;
}


.job h3 a:hover {
    color: var(--green);
}


.company-name {
    margin: 4px 0 0;

    color: var(--text-soft);

    font-size: 0.88rem;
}


.job-age {
    flex: 0 0 auto;

    color: var(--text-faint);

    font-size: 0.73rem;
}


.job-facts {
    display: flex;

    flex-wrap: wrap;

    gap: 7px 18px;

    margin-top: 16px;

    color: var(--text-soft);

    font-size: 0.8rem;
}


.job-facts > span {
    position: relative;
}


.job-facts > span:not(:last-child)::after {
    content: "";

    position: absolute;

    top: 50%;
    right: -10px;

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: var(--text-faint);
}


.remote-detail {
    margin: 8px 0 0;

    color: var(--text-faint);

    font-size: 0.76rem;
}


.employment-flag {
    color: var(--green);

    font-weight: 750;
}


.employment-flag--warning {
    padding: 1px 6px;

    border-radius: 3px;

    background: var(--warning-bg);

    color: var(--warning);
}


.job-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 14px;
}


.job-tags span {
    padding: 4px 8px;

    border-radius: 3px;

    background: var(--tag-bg);

    color: var(--tag-text);

    font-size: 0.7rem;
    font-weight: 650;
}


/* ==========================================================
   JOB ACTIONS
   ========================================================== */

.job-actions {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 20px;
}


.job-action {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    min-height: 34px;

    padding: 0 9px;

    border: 1px solid transparent;
    border-radius: 3px;

    background: transparent;

    color: var(--text-soft);

    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
}


.job-action:hover {
    border-color: var(--border);

    background: var(--surface);

    color: var(--text);
}


.job-action svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.job-action.is-active {
    color: var(--green);
}


.save-job.is-active svg {
    fill: currentColor;
}


.applied-job.is-active {
    background: var(--green-soft);
}


/* ==========================================================
   JOB MENU
   ========================================================== */

.job-menu-wrap {
    position: relative;

    margin-left: auto;
}


.job-menu-button {
    width: 35px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 3px;

    background: transparent;

    cursor: pointer;
}


.job-menu-button:hover,
.job-menu-button[aria-expanded="true"] {
    border-color: var(--border);

    background: var(--surface);
}


.job-menu-button span {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: currentColor;
}


.job-menu {
    position: absolute;

    right: 0;
    top: calc(100% + 6px);

    z-index: 30;

    display: none;

    width: 210px;

    padding: 5px;

    border: 1px solid var(--border);
    border-radius: 5px;

    background: var(--surface);

    box-shadow: var(--menu-shadow);
}


.job-menu.is-open {
    display: grid;
}


.job-menu button {
    width: 100%;

    padding: 9px 10px;

    border: 0;
    border-radius: 3px;

    background: transparent;

    color: var(--text-soft);

    text-align: left;

    font-size: 0.78rem;

    cursor: pointer;
}


.job-menu button:hover {
    background: var(--bg-alt);

    color: var(--text);
}


.job-menu .report-job {
    color: #a64141;
}


/* ==========================================================
   NO RESULTS
   ========================================================== */

.no-results {
    padding: 55px 0;

    color: var(--text-soft);

    text-align: center;
}


/* ==========================================================
   MY JOBS
   ========================================================== */

.my-jobs-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: var(--bg-alt);
}


.my-jobs-header p {
    max-width: 390px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.88rem;
    line-height: 1.7;
}


.my-jobs-summary {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}


.summary-item {
    min-height: 125px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    padding: 24px;

    border: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    background: var(--surface);

    text-align: left;

    cursor: pointer;
}


.summary-item:hover {
    background: var(--bg);
}


.summary-item strong {
    margin-bottom: 4px;

    color: var(--green);

    font-size: 1.8rem;
    line-height: 1;
}


.summary-item span {
    color: var(--text-soft);

    font-size: 0.8rem;
    font-weight: 650;
}


.personal-panel {
    margin-top: 22px;

    border: 1px solid var(--border);

    background: var(--surface);
}


.personal-panel__header {
    min-height: 52px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 0 16px;

    border-bottom: 1px solid var(--border);
}


.personal-panel__header strong {
    font-size: 0.88rem;
}


.personal-panel__header button {
    border: 0;

    background: none;

    color: var(--text-soft);

    font-size: 0.75rem;

    cursor: pointer;
}


.personal-panel-entry {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 14px 16px;

    border-bottom: 1px solid var(--border);

    font-size: 0.82rem;
}


.personal-panel-entry:last-child {
    border-bottom: 0;
}


.personal-panel-entry strong {
    display: block;
}


.personal-panel-entry span {
    color: var(--text-soft);

    font-size: 0.75rem;
}


.personal-panel-entry button {
    flex: 0 0 auto;

    border: 0;

    background: transparent;

    color: var(--green);

    font-size: 0.74rem;
    font-weight: 700;

    cursor: pointer;
}


.personal-empty {
    padding: 28px 16px;

    color: var(--text-soft);

    font-size: 0.83rem;
}


/* ==========================================================
   CATEGORIES
   ========================================================== */

.categories-section {
    background: var(--bg);
}


.section-heading p {
    max-width: 410px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;
    line-height: 1.7;
}


.category-list {
    border-top: 1px solid var(--border);
}


.category-list a {
    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: center;

    gap: 30px;

    padding: 25px 5px;

    border-bottom: 1px solid var(--border);

    text-decoration: none;
}


.category-list a:hover {
    background: var(--bg-alt);
}


.category-list h3 {
    margin: 0 0 5px;

    font-size: 1rem;
}


.category-list p {
    max-width: 620px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.82rem;
}


.category-list > a > span {
    min-width: 45px;

    color: var(--green);

    font-size: 0.68rem;
    font-weight: 850;

    letter-spacing: 0.06em;

    text-align: right;
}


/* ==========================================================
   ABOUT
   ========================================================== */

.about-section {
    background: var(--bg-alt);
}


.about-grid {
    display: grid;

    grid-template-columns: 1fr 0.8fr;

    gap: clamp(55px, 10vw, 140px);
}


.about-copy {
    color: var(--text-soft);

    line-height: 1.8;
}


.about-copy p {
    margin: 0 0 22px;
}


/* ==========================================================
   EMPLOYERS
   ========================================================== */

.employer-section {
    padding: 0 0 88px;

    background: var(--bg-alt);
}


.employer-box {
    display: grid;

    grid-template-columns: minmax(0, 1fr) auto;

    align-items: end;

    gap: 65px;

    padding: 54px 58px;

    border-radius: 7px;

    background: var(--dark-panel);

    color: #ffffff;
}


.employer-box .section-label {
    color: #69d294;
}


.employer-box h2 {
    max-width: 670px;
}


.employer-box p {
    max-width: 630px;

    margin: 17px 0 0;

    color: #b8c8bf;

    font-size: 0.9rem;
    line-height: 1.7;
}


.employer-actions {
    display: grid;

    gap: 13px;
}


.employer-secondary-link {
    color: #aabdb2;

    text-decoration: none;

    font-size: 0.75rem;

    text-align: center;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.button {
    min-height: 47px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 4px;

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 750;

    cursor: pointer;
}


.button-primary {
    background: var(--green);

    color: #ffffff;
}


.button-primary:hover {
    background: var(--green-hover);
}


.button-secondary {
    border-color: var(--border-strong);

    background: var(--surface);

    color: var(--text);
}


.button-light {
    background: #ffffff;

    color: #143621;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    padding: 41px 0;

    border-top: 1px solid var(--border);
}


.footer-inner {
    display: grid;

    grid-template-columns: 1fr auto auto;

    align-items: center;

    gap: 45px;
}


.footer-brand {
    display: grid;

    gap: 3px;
}


.footer-brand strong {
    color: var(--green);
}


.footer-brand span,
.footer-copy {
    color: var(--text-faint);

    font-size: 0.73rem;
}


.footer-nav {
    display: flex;

    gap: 21px;
}


.footer-nav a {
    color: var(--text-soft);

    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 650;
}


/* ==========================================================
   REPORT DIALOG
   ========================================================== */

.report-dialog {
    width: min(94vw, 590px);

    max-height: 90vh;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 7px;

    background: var(--surface);

    color: var(--text);

    box-shadow: var(--menu-shadow);
}


.report-dialog::backdrop {
    background: rgba(0, 0, 0, 0.48);
}


.report-dialog form {
    padding: 25px;
}


.dialog-heading {
    display: flex;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 23px;
}


.dialog-label {
    color: var(--green);

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.dialog-heading h2 {
    margin: 4px 0 2px;

    font-size: 1.35rem;
}


.dialog-heading p {
    margin: 0;

    color: var(--text-soft);

    font-size: 0.82rem;
}


.dialog-close {
    width: 34px;
    height: 34px;

    border: 0;

    background: transparent;

    color: var(--text-soft);

    font-size: 1.5rem;

    cursor: pointer;
}


.report-dialog fieldset {
    display: grid;

    gap: 0;

    padding: 0;
    margin: 0;

    border: 0;
}


.report-dialog legend {
    margin-bottom: 10px;

    font-size: 0.83rem;
    font-weight: 750;
}


.report-dialog fieldset label {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);

    color: var(--text-soft);

    font-size: 0.8rem;

    cursor: pointer;
}


.report-dialog input[type="radio"] {
    margin-top: 3px;

    accent-color: var(--green);
}


.report-notes {
    display: grid;

    gap: 7px;

    margin-top: 20px;
}


.report-notes span {
    font-size: 0.8rem;
    font-weight: 750;
}


.report-notes textarea {
    width: 100%;

    resize: vertical;

    padding: 10px;

    border: 1px solid var(--border);
    border-radius: 4px;

    outline: 0;

    background: var(--bg);

    color: var(--text);

    line-height: 1.5;
}


.report-notes textarea:focus {
    border-color: var(--green);
}


.dialog-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 22px;
}


/* ==========================================================
   TOAST
   ========================================================== */

.toast {
    position: fixed;

    left: 50%;
    bottom: 25px;

    z-index: 300;

    transform: translateX(-50%) translateY(15px);

    max-width: min(90vw, 520px);

    padding: 10px 15px;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: var(--text);

    color: var(--bg);

    font-size: 0.79rem;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 150ms ease,
        transform 150ms ease;
}


.toast.is-visible {
    opacity: 1;

    transform: translateX(-50%) translateY(0);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 950px) {

    .desktop-nav,
    .employer-link {
        display: none;
    }


    .mobile-menu-button {
        display: block;
    }


    .header-inner {
        grid-template-columns: 1fr auto;
    }


    .site-intro {
        padding-top: 32px;
    }


    .intro-logo {
        width: 220px;
        height: 150px;
    }


    .intro-content {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .quick-categories {
        grid-template-columns: repeat(3, 1fr);
    }


    .quick-categories a:nth-child(3) {
        border-right: 0;
    }


    .quick-categories a:nth-child(n + 4) {
        border-top: 1px solid var(--border);
    }


    .curation-strip__inner {
        flex-wrap: wrap;

        padding: 10px 0;
    }


    .curation-strip__inner > * {
        padding: 7px 15px;

        border-right: 0;
    }


    .curation-strip__inner > :first-child {
        padding-left: 15px;
    }


    .jobs-heading,
    .section-heading,
    .my-jobs-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .job-toolbar {
        align-items: stretch;

        flex-direction: column;
    }


    .job-search {
        width: 100%;
    }


    .my-jobs-summary {
        grid-template-columns: repeat(2, 1fr);
    }


    .about-grid {
        grid-template-columns: 1fr;

        gap: 37px;
    }


    .employer-box {
        grid-template-columns: 1fr;

        gap: 34px;
    }


    .employer-actions {
        width: fit-content;
    }


    .footer-inner {
        grid-template-columns: 1fr;

        gap: 21px;
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .page-width {
        width: min(
            calc(100% - 30px),
            var(--page-width)
        );
    }


    .header-inner {
        min-height: 70px;
    }


    .brand-logo {
        width: 145px;
        height: 50px;
    }


    .header-actions {
        gap: 5px;
    }


    .site-intro {
        padding-top: 20px;
    }


    .intro-brand {
        padding: 2px 0 22px;
    }


    .intro-logo {
        width: 185px;
        height: 128px;
    }


    .intro-content {
        padding: 23px 0 27px;
    }


    .intro-primary h1 {
        font-size: clamp(1.7rem, 7vw, 2.1rem);
    }


    .intro-primary p {
        font-size: 0.93rem;
    }


    .intro-secondary p {
        font-size: 0.86rem;
    }


    .quick-categories {
        grid-template-columns: repeat(2, 1fr);
    }


    .quick-categories a {
        min-height: 51px;

        justify-content: flex-start;

        padding: 0 13px;

        font-size: 0.75rem;
    }


    .quick-categories a:nth-child(odd) {
        border-right: 1px solid var(--border);
    }


    .quick-categories a:nth-child(even) {
        border-right: 0;
    }


    .quick-categories a:nth-child(n + 3) {
        border-top: 1px solid var(--border);
    }


    .jobs-section,
    .my-jobs-section,
    .categories-section,
    .about-section {
        padding: 64px 0;
    }


    .job-filters {
        flex-wrap: nowrap;

        margin-inline: -15px;

        padding-inline: 15px;
        padding-bottom: 4px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .job-filters::-webkit-scrollbar {
        display: none;
    }


    .filter-button {
        white-space: nowrap;
    }


    .job {
        grid-template-columns: 1fr;

        gap: 14px;

        padding: 25px 0;
    }


    .job:hover {
        padding-left: 0;
        padding-right: 0;
    }


    .job-category {
        display: flex;

        align-items: center;

        gap: 8px;
    }


    .job-category__name {
        display: inline;

        margin: 0;
    }


    .job-heading-row {
        gap: 12px;
    }


    .job-facts {
        display: grid;

        gap: 4px;
    }


    .job-facts > span::after {
        display: none;
    }


    .job-actions {
        flex-wrap: wrap;
    }


    .job-menu-wrap {
        margin-left: auto;
    }


    .job-menu {
        right: 0;
    }


    .my-jobs-summary {
        grid-template-columns: 1fr 1fr;
    }


    .summary-item {
        min-height: 105px;

        padding: 18px;
    }


    .category-list a {
        gap: 15px;

        padding: 22px 3px;
    }


    .category-list p {
        line-height: 1.55;
    }


    .employer-section {
        padding-bottom: 64px;
    }


    .employer-box {
        padding: 36px 25px;
    }


    .footer-nav {
        flex-wrap: wrap;
    }


    .report-dialog form {
        padding: 20px;
    }


    .dialog-actions {
        flex-direction: column-reverse;
    }


    .dialog-actions .button {
        width: 100%;
    }

}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width: 400px) {

    .brand-logo {
        width: 135px;
        height: 48px;
    }


    .intro-logo {
        width: 168px;
        height: 116px;
    }


    .quick-categories {
        grid-template-columns: 1fr;
    }


    .quick-categories a {
        border-right: 0 !important;
        border-top: 1px solid var(--border);
    }


    .quick-categories a:first-child {
        border-top: 0;
    }


    .my-jobs-summary {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


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

}
