/* OneNetwork Teknikjobb – public stylesheet.
   Brand tokens follow onenetwork.se (midnight navy + champagne gold, Inter). Self-hosted font, no external requests. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #0A1F44;
  --navy-dk: #06132C;
  --navy-soft: #16305C;
  --gold: #C6A15B;
  --gold-dk: #8F6B2A;
  --gold-lt: #F4ECD8;
  --ink: #1E293B;
  --muted: #475569;
  --subtle: #64748B;
  --border: #E6E1D5;
  --border-strong: #CFC8B8;
  --surface: #F8F6F1;
  --sand: #F1EDE3;
  --white: #FFFFFF;
  --link: #144A9C;
  --focus: #1B54C9;
  --ok-bg: #E7F4EA;
  --ok-fg: #14532D;
  --warn-bg: #FFF4D6;
  --warn-fg: #6B4A00;
  --err-bg: #FDE8E8;
  --err-fg: #8A1C1C;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06);
  --shadow: 0 4px 16px rgba(10, 31, 68, .08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--gold-dk); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.01em; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); font-weight: 750; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
time { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--navy); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 var(--radius) var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }
#main:focus { outline: none; }

/* ---- header ---------------------------------------------------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { display: block; height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--navy); }
.brand__by { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px;
  color: var(--navy); font-weight: 550; font-size: .95rem; text-decoration: none; border-radius: var(--radius);
}
.site-nav a:not(.btn):hover { background: var(--gold-lt); color: var(--navy); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 700;
}
.nav-toggle { display: none; }

/* ---- buttons ----------------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px;
  border: 1.5px solid transparent; border-radius: 6px; font: 650 .82rem/1.2 var(--font); letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
  background: none; color: var(--navy);
}
.btn--primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-dk); border-color: var(--gold-dk); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(198, 161, 91, .35); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--ghost { color: var(--link); text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn--ghost:hover { background: var(--gold-lt); color: var(--navy); }
.btn--danger { border-color: #B42323; color: #B42323; }
.btn--danger:hover { background: #B42323; color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .74rem; }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- notices ------------------------------------------------------------------------------------------------------ */
.notice { padding: 12px 0; font-size: .95rem; }
.notice--warn { background: var(--warn-bg); color: var(--warn-fg); border-bottom: 1px solid #E8D08A; }
.notice--closed { background: var(--sand); color: var(--navy); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px; }
.notice--inline { border-radius: var(--radius); }
.notice-small { font-size: .9rem; color: var(--err-fg); background: var(--err-bg); padding: 10px 14px; border-radius: var(--radius); }

/* ---- hero ----------------------------------------------------------------------------------------------------------- */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(198, 161, 91, .22), transparent 60%), linear-gradient(160deg, var(--navy-dk), var(--navy) 55%, var(--navy-soft)); color: var(--white); padding: 56px 0 48px; }
.hero h1 { color: var(--white); max-width: 18ch; margin-bottom: .4em; }
.hero .accent { color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; color: var(--gold-dk); margin-bottom: 10px; }
.hero .eyebrow { color: var(--gold); }
.hero__lead { max-width: 62ch; font-size: 1.1rem; color: #D5DCEB; margin-bottom: 28px; }
.search-box { display: grid; gap: 12px; background: var(--white); padding: 14px; border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(0, 0, 0, .28); max-width: 920px; grid-template-columns: 1fr; }
.search-box__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-box label { font-size: .78rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-left: 2px; }
.search-box input, .search-box select { color: var(--ink); }
.popular { margin: 18px 0 0; font-size: .92rem; color: #C3CCDF; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.popular a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.popular a:hover { color: var(--gold); }

/* ---- forms --------------------------------------------------------------------------------------------------------- */
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--border-strong); border-radius: 6px;
}
textarea { min-height: 110px; resize: vertical; }
input::placeholder { color: var(--subtle); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--navy-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; color: var(--navy); }
.field .help { font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
.field--check label { display: flex; align-items: center; gap: 10px; font-weight: 550; min-height: 44px; }
.field--check input { width: 20px; height: 20px; accent-color: var(--navy); }

/* ---- sections ------------------------------------------------------------------------------------------------------ */
.section { padding: 44px 0; }
.section--tint { background: var(--sand); }
.section--tint, .section--tint h2 { color: var(--navy); }
.section-title { margin-bottom: .35em; }
.section-lead { color: var(--muted); max-width: 70ch; margin-bottom: 1.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.link-arrow { font-weight: 650; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.two-col { display: grid; gap: 18px; }
.prose-wrap p { max-width: 72ch; }

.category-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.category-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; height: 100%;
  padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.category-card__count { grid-row: span 2; font-size: 1.5rem; font-weight: 800; color: var(--navy); min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.category-card__name { font-weight: 700; color: var(--navy); }
.category-card__desc { grid-column: 2; font-size: .86rem; color: var(--muted); line-height: 1.45; }

/* ---- page head / breadcrumbs ---------------------------------------------------------------------------------------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--border); padding: 24px 0 18px; }
.page-head h1 { margin-bottom: .2em; }
.page-head__lead { color: var(--muted); max-width: 70ch; margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 8px; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-dk); }

/* ---- results / filters ----------------------------------------------------------------------------------------------- */
.results-layout { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 48px; grid-template-columns: minmax(0, 1fr); }
.filters__body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.filters__toggle { display: none; width: 100%; }
.filters__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.results__count { font-size: 1.15rem; margin: 0; }
.results__page { font-weight: 500; color: var(--muted); font-size: .95rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-lt); border: 1px solid #E3D3A8; color: var(--navy); font-size: .88rem; font-weight: 550; text-decoration: none;
}
.chip:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip__x { font-size: 1.1rem; line-height: 1; }
.job-list { display: grid; gap: 12px; }
.empty-state, .empty { background: var(--white); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 28px; text-align: center; color: var(--muted); }
.empty-state h2, .empty-state h3 { color: var(--navy); }

/* ---- job card -------------------------------------------------------------------------------------------------------- */
.job-card {
  display: grid; gap: 10px; padding: 16px 18px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.job-card:hover, .job-card:focus-within { border-color: var(--gold); box-shadow: var(--shadow); }
.job-card__title { margin: 0 0 4px; font-size: 1.12rem; }
.job-card__title a { color: var(--navy); text-decoration: none; }
.job-card__title a:hover { color: var(--gold-dk); text-decoration: underline; }
.job-card__meta { margin: 0 0 8px; color: var(--muted); font-size: .94rem; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.meta-employer { font-weight: 600; color: var(--ink); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.tag, .chip-static {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: #EEF2F8; color: var(--navy);
  font-size: .8rem; font-weight: 550; border: 1px solid #DCE3EE; text-decoration: none;
}
.tag--category { background: var(--gold-lt); border-color: #E3D3A8; }
.tag--source { background: #EEF2F8; border-color: #D3DCEB; color: var(--navy); }
a.tag:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.job-card__side { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-card__dates { margin: 0; display: flex; flex-direction: column; font-size: .86rem; color: var(--muted); }
.soon { font-style: normal; color: var(--gold-dk); font-weight: 650; }

.btn-save {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; background: var(--white);
  border: 1.5px solid var(--border-strong); border-radius: 6px; color: var(--navy); font: 600 .88rem var(--font); cursor: pointer;
}
.btn-save:hover { border-color: var(--navy); background: var(--gold-lt); }
.btn-save[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-save[aria-pressed="true"] svg path { fill: currentColor; }
html:not(.js) .btn-save { display: none; }

/* ---- pagination -------------------------------------------------------------------------------------------------------- */
.pagination { margin: 28px 0 8px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 6px 12px;
  border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 600; text-decoration: none;
}
a.page-link:hover { background: var(--gold-lt); border-color: var(--gold); }
.page-link.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-gap { display: inline-flex; align-items: center; padding: 0 4px; color: var(--muted); }

/* ---- job detail --------------------------------------------------------------------------------------------------------- */
.page-head--job { padding-bottom: 6px; border-bottom: 0; background: transparent; }
.job-layout { display: grid; gap: 24px; padding-bottom: 40px; grid-template-columns: minmax(0, 1fr); }
.job { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; }
.job__header h1 { margin-bottom: .25em; overflow-wrap: anywhere; }
.job__employer { font-size: 1.1rem; color: var(--ink); margin-bottom: 12px; }
.job__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.job__description h2, .job__apply-info h2 { font-size: 1.25rem; }
.prose { overflow-wrap: anywhere; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose h4 { margin-top: 1.2em; font-size: 1rem; }
.prose p, .prose li { max-width: 75ch; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1em 0; padding: .2em 1em; border-left: 4px solid var(--gold); color: var(--muted); }
.prewrap { white-space: pre-line; }
.job__source { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
.job-aside { display: grid; gap: 16px; align-content: start; }
.apply-card, .facts-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.apply-card { border-top: 4px solid var(--gold); box-shadow: var(--shadow-sm); }
.apply-card__title, .facts-card__title { font-size: 1.15rem; margin-bottom: 12px; }
.apply-card__note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.apply-card__alt { font-size: .9rem; margin: 10px 0 0; }
.apply-card__tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
html:not(.js) .btn-copy { display: none; }
.share { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.share__title { margin: 0 0 10px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.share__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.share__list li[hidden] { display: none; }
.share__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; background: var(--white);
  border: 1.5px solid var(--border-strong); border-radius: 6px; color: var(--navy); font: 600 .88rem var(--font); text-decoration: none; cursor: pointer;
}
.share__link:hover { border-color: var(--navy); background: var(--gold-lt); }
.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; gap: 1px; }
.facts dt { font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.facts--inline { grid-template-columns: 1fr; }

/* ---- content pages ------------------------------------------------------------------------------------------------------- */
.content-page { padding-top: 28px; padding-bottom: 56px; background: transparent; }
.content-page h2 { margin-top: 1.8em; }
.content-page h2:first-child { margin-top: 0; }
.contact-card, .status-card { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.contact-card h2, .status-card h2 { margin-top: 0; font-size: 1.15rem; }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.error-page { padding-top: 24px; padding-bottom: 40px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.debug { background: var(--navy-dk); color: #d6e1ff; padding: 12px; border-radius: var(--radius); overflow: auto; font-size: .85rem; }
.saved-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.saved-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; gap: 6px; }
.saved-item.is-closed { background: var(--sand); }
.saved-item__title { margin: 0; font-size: 1.05rem; }
.saved-item__meta { margin: 0; color: var(--muted); font-size: .92rem; }
.saved-item__status { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-fg); width: fit-content; }
.saved-item__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---- footer --------------------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #D5DCEB; padding: 40px 0 24px; margin-top: 24px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-title { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-small { font-size: .85rem; color: #B7C2DA; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom p { margin: 0 0 6px; }
.sync-line { font-size: .92rem; color: var(--white); }

/* ---- responsive ------------------------------------------------------------------------------------------------------------ */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr 1fr; gap: 32px; }
  .search-box { grid-template-columns: 1fr 220px auto; align-items: end; }
  .job-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .job-card__side { flex-direction: column; align-items: flex-end; justify-content: center; }
  .job-card__dates { align-items: flex-end; text-align: right; }
  .facts--inline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .results-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
  .filters { position: sticky; top: 84px; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .job { padding: 32px 36px; }
  .job-aside { position: sticky; top: 84px; }
}

/* Small screens: collapsible navigation and filters (only when JavaScript is available; otherwise everything stays visible). */
@media (max-width: 959px) {
  html.js .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: var(--white);
    border: 1.5px solid var(--navy); border-radius: 6px; color: var(--navy); font: 650 .85rem var(--font); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
  .nav-toggle__bars::before { position: absolute; top: -6px; }
  .nav-toggle__bars::after { position: absolute; top: 6px; }
  html.js .site-nav { display: none; width: 100%; padding-bottom: 12px; }
  html.js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  html.js .filters__toggle { display: inline-flex; }
  html.js .filters__body { display: none; margin-top: 10px; }
  html.js .filters__body.is-open { display: block; }
}
@media (max-width: 959px) and (min-width: 0) {
  .site-nav .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .job-aside .apply-card__tools, .share, .skip-link, .nav-toggle, .notice, .btn-save { display: none !important; }
  body { background: #fff; }
  .job { border: 0; padding: 0; }
}

/* ---- accounts, saved lists and job alerts ----------------------------------------------------------------------------- */
html:not(.js) .btn-save--server { display: inline-flex; }
a.btn-save { text-decoration: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 14px; border: 1px solid transparent; }
.flash ul { margin: 0; padding-left: 1.2em; }
.flash--success { background: var(--ok-bg); color: var(--ok-fg); border-color: #B7DFC0; }
.flash--error { background: var(--err-bg); color: var(--err-fg); border-color: #F0B8B8; }
.flash--warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #E8D08A; }
.flash--info { background: #E6EEF9; color: #12335F; border-color: #BCD0EE; }
.lead-text { font-size: 1.1rem; max-width: 62ch; }
.notice-fine { font-size: .88rem; color: var(--muted); max-width: 62ch; margin-top: 16px; }
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; max-width: 520px; box-shadow: var(--shadow); }
.auth-card--wide { max-width: 760px; }
.auth-card__alt { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.field-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.field-group legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 6px; }
.checkbox-grid { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 8px; }
.check-chip { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--border-strong); border-radius: 6px; background: var(--white); cursor: pointer; font-weight: 550; }
.check-chip:hover { border-color: var(--navy); background: var(--gold-lt); }
.check-chip input, .radio-row input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.check-chip small { color: var(--muted); font-weight: 450; }
.radio-row { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 550; cursor: pointer; }
.alert-summary { background: var(--sand); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 18px; color: var(--navy); }
.alert-cta { margin: 0 0 14px; }
.alert-list, .plain-list { list-style: none; padding: 0; }
.alert-list { display: grid; gap: 14px; margin: 18px 0 0; }
.alert-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; }
.alert-card__title { margin: 0 0 6px; font-size: 1.1rem; }
.alert-card__meta { margin: 0 0 10px; color: var(--muted); font-size: .92rem; }
.alert-card details { margin: 8px 0 12px; }
.alert-card summary, .saved-item__note-form summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: 32px; }
.inline-form { display: inline-block; margin: 0; }
.inline-forms { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.inline-forms form { margin: 0; }
.account-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 18px; }
.account-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.account-card h2 { margin-top: 0; font-size: 1.15rem; }
.account-card .plain-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.count-pill { display: inline-block; min-width: 24px; padding: 1px 9px; border-radius: 999px; background: var(--gold-lt); color: var(--navy); font-size: .8rem; font-weight: 700; text-align: center; }
.count-pill--active { background: var(--ok-bg); color: var(--ok-fg); }
.count-pill--paused, .count-pill--pending { background: var(--warn-bg); color: var(--warn-fg); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 6px; color: var(--navy); font-weight: 600; text-decoration: none; }
.tabs a:hover { background: var(--gold-lt); }
.tabs a[aria-current="page"] { background: var(--navy); color: var(--white); }
.tabs a[aria-current="page"] .count-pill { background: var(--white); }
.saved-item__badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--gold-lt); color: var(--navy); border: 1px solid #E3D3A8; }
.badge--later { background: #E6EEF9; border-color: #BCD0EE; color: #12335F; }
.badge--done { background: var(--ok-bg); border-color: #B7DFC0; color: var(--ok-fg); }
.badge--deadline { background: var(--warn-bg); border-color: #E8D08A; color: var(--warn-fg); }
.saved-item__note { margin: 0; padding: 8px 12px; background: var(--surface); border-left: 3px solid var(--gold); border-radius: 4px; font-size: .92rem; }
.saved-item__note-form { margin-top: 4px; }
.settings-section { margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.settings-section h2 { margin-top: 0; }
.settings-section--danger h2 { color: #8A1C1C; }
.signout { margin-top: 20px; }
.import-banner p { margin: 0 0 8px; }
.section--cta { background: var(--navy); color: var(--white); }
.section--cta h2 { color: var(--white); }
.cta-band { display: grid; gap: 18px; align-items: center; grid-template-columns: 1fr; }
.cta-band p { margin: 0 0 6px; color: #D5DCEB; max-width: 62ch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 18px; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--sand); color: var(--navy); }
.data-table tbody th { font-weight: 600; }
@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr auto; }
}
@media (max-width: 719px) {
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { position: absolute; left: -10000px; }
  .data-table tr { border-bottom: 2px solid var(--border-strong); padding: 6px 0; }
  .data-table td::before { content: attr(data-label); display: block; font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase; }
}
