/* ONLINEJOBBER — phase 1. Dark cinematic surface, lime accent, rounded cards. */
:root {
  --bg: #07090b;
  --bg-2: #0d1115;
  --surface: #11161b;
  --surface-2: #161c22;
  --line: #222b33;
  --line-soft: #1a222a;
  --text: #ffffff;
  --muted: #a9b4bd;
  --lime: #c8f542;
  --lime-deep: #a9d92e;
  --radius-card: 18px;
  --radius-pill: 999px;
  --topbar-h: 76px;
  --ribbon-h: 76px;
  --maxw: 1600px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --font: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  --font-cond: "Bahnschrift Condensed", "Bahnschrift", "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--lime); color: #0a0d0f; font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---------- Top bar (logo only, per reference) ---------- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 22px 32px 12px;
  min-height: var(--topbar-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--lime);
}
.brand__mark svg { width: 34px; height: 34px; stroke-width: 1.4; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-cond); font-weight: 700; font-size: 27px; letter-spacing: .2px;
  text-transform: uppercase;
}
.brand__tag {
  margin-top: 6px; font-size: 10.5px; letter-spacing: 1.6px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
}
.topnav { display: none; }
.topnav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 10px; }
.topnav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  min-height: 340px;
  border-radius: 0;
  overflow: hidden;
  display: flex; justify-content: flex-end; align-items: flex-start;
  padding: 34px 32px 30px;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -2; display: block; overflow: hidden;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* The pack's hero is 1920x610 (3.15:1). A wide viewport is taller than that
     ratio, so cover deliberately crops top/bottom; the subject sits left, the
     type panel sits right over the dark sky. */
  object-position: 50% 50%;
}
/* Two crops from the pack (1920x610 landscape / 800x940 portrait). CSS chooses the
   file, not <source media>, so the switch follows the real layout breakpoint. */
.hero__bg--mobile { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,9,11,.15) 0%, rgba(7,9,11,.25) 42%, rgba(7,9,11,.72) 66%, rgba(7,9,11,.88) 100%),
              linear-gradient(180deg, rgba(7,9,11,.1) 0%, rgba(7,9,11,.55) 100%);
}
.hero__panel { width: min(660px, 100%); text-align: left; }
.hero__title {
  margin: 0 0 12px;
  font-family: var(--font-cond);
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: .98; letter-spacing: -.5px; font-weight: 700;
  text-transform: none;
}
.hero__line { display: block; text-shadow: 0 4px 24px rgba(0,0,0,.45); }
.hero__line--accent {
  color: var(--lime);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
  text-decoration-color: var(--lime);
}
.hero__sub {
  margin: 0 0 16px; font-size: 15px; color: #e7ecef; line-height: 1.5;
  font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.6);
}

/* Search field: white pill, grey magnifier, lime round submit */
.search {
  position: relative;
  display: grid; grid-template-columns: 26px 1fr 46px; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px; min-height: 52px;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,.65);
}
.search__icon { width: 20px; height: 20px; fill: none; stroke: #6c757d; stroke-width: 2; }
.search__input {
  border: 0; outline: 0; background: transparent; color: #101418;
  font-family: inherit; font-size: 15px; font-weight: 600; min-width: 0;
  height: 38px; padding: 0 4px; width: 100%;
}
.search__input::placeholder { color: #6c757d; font-weight: 500; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--lime); border: 0; color: #0c1013; cursor: pointer;
  justify-self: end;
}
.search__btn svg { width: 19px; height: 19px; stroke-width: 2.2; }
.search__btn:hover { background: var(--lime-deep); }
.search__status { margin-top: 10px; }
.search__nohit { margin: 0; font-size: 13px; color: var(--muted); }
.suggest {
  list-style: none; margin: 0; padding: 6px; background: #fff; color: #101418;
  border-radius: 16px; box-shadow: var(--shadow);
}
.suggest a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; }
.suggest a:hover, .suggest a:focus-visible { background: #eef3e0; }
.suggest small { color: #6c757d; }
.search--page { margin-bottom: 22px; max-width: 640px; background: #fff; }

.chips {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 8px; border-radius: var(--radius-pill);
  background: rgba(10, 14, 17, .62); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip:hover { border-color: var(--lime); color: var(--lime); }
.chip__icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); }
.chip__icon svg { width: 15px; height: 15px; color: var(--lime); }



/* ---------- Category cards ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 14px 32px; }
.cats {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px;
}
.cat-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-card); aspect-ratio: 331 / 240;
  background: var(--surface); box-shadow: var(--shadow);
  border: 1px solid #1b2229;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card__grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,9,.02) 26%, rgba(5,7,9,.55) 62%, rgba(5,7,9,.94) 100%);
}
.cat-card__chip {
  position: absolute; left: 12px; top: 12px;
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(8, 11, 13, .78); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 6px 16px -8px #000;
}
.cat-card__chip svg { width: 20px; height: 20px; color: var(--lime); }
.cat-card__text {
  position: absolute; left: 14px; right: 12px; bottom: 12px;
  /* Real photos sit behind the copy: add a soft scrim so the title keeps contrast
     over bright areas (e.g. the phone screen and the neon statue). */
  text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 6px 18px rgba(0,0,0,.7);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "kicker go" "title go";
  align-items: end; column-gap: 8px;
}
.cat-card__kicker {
  grid-area: kicker; font-size: 11px; font-weight: 700; letter-spacing: 1.3px;
  text-transform: uppercase; color: var(--lime); margin-bottom: 2px;
}
.cat-card__title {
  grid-area: title;
  font-family: var(--font-cond); font-size: clamp(16px, 1.22vw, 20px); font-weight: 700;
  line-height: 1.02; letter-spacing: .1px; text-shadow: 0 2px 10px rgba(0,0,0,.6);
  max-width: 11ch;
}
.cat-card__go {
  grid-area: go; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22); color: #fff; transition: background .2s, color .2s;
}
.cat-card__go svg { width: 14px; height: 14px; }
.cat-card:hover .cat-card__go { background: var(--lime); color: #0b0f12; border-color: var(--lime); }

/* ---------- Split: nomad + articles ---------- */
/* Nomad card on the left, the three latest articles on the right (user mock).
   align-items: start keeps the promo card its natural height instead of being
   stretched to the height of the article panel; the panel is then free to size
   itself to its own content with no blank space under the cards. */
.section--split {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.58fr);
  gap: 16px; padding-bottom: 22px; align-items: start;
}
.nomad {
  grid-column: 1; grid-row: 1;
  position: relative; overflow: hidden; border-radius: var(--radius-card);
  min-height: 220px; display: flex; align-items: center;
  background: #0c0f12; border: 1px solid #1b2229;
}
.pinned-article {
  align-self: stretch;
  align-items: flex-end;
  min-height: 370px;
}
.nomad.pinned-article::after {
  background: linear-gradient(0deg, rgba(7,9,11,.96), rgba(7,9,11,.62) 34%, transparent 72%);
}
.pinned-article .nomad__bg { object-position: center 40%; }
.pinned-article .nomad__body { max-width: 100%; }
.nomad__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nomad::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,11,.9) 0%, rgba(7,9,11,.8) 42%, rgba(7,9,11,.15) 80%);
}
.nomad__body { position: relative; z-index: 1; padding: 22px 26px; max-width: 58%; }
.nomad__title {
  margin: 0 0 8px; font-family: var(--font-cond); font-style: italic; font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1;
}
.nomad__text { margin: 0 0 16px; font-size: 14.5px; line-height: 1.4; color: #eef2f4; font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: #0b0f12; font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--lime);
}
.btn svg { width: 16px; height: 16px; stroke-width: 2.2; }
.btn:hover { background: var(--lime-deep); }
.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.22);
  font-weight: 600; font-size: 12.5px; padding: 8px 14px;
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.btn--ghost svg { width: 14px; height: 14px; }

.articles {
  border: 1px solid #1b2229; border-radius: var(--radius-card);
  background: linear-gradient(180deg, #0e1317, #0a0e11);
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px;
}
.articles__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.articles__title {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-cond); font-size: 21px; font-weight: 700; letter-spacing: .2px;
}
.articles__title svg { width: 22px; height: 22px; color: #fff; }
.articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
/* A card's image ends where its title begins: the sub is free to take the rows
   it needs, and the card is never sized by an aspect-ratio box it does not own. */
.article { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-self: start; }
.article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; flex: none; }
.article__title { font-size: 13.5px; font-weight: 700; line-height: 1.25; }
.article__sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.article:hover .article__title { color: var(--lime); }

/* ---------- Ribbon nav (desktop) ---------- */
.ribbon {
  max-width: var(--maxw); margin: 8px auto 0; padding: 16px 32px 10px;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px;
  border-top: 1px solid var(--line-soft);
}
.navitem {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 8px 4px; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: #dfe5e9; text-align: center;
}
.navitem__icon { display: grid; place-items: center; width: 30px; height: 30px; }
.navitem__icon svg { width: 26px; height: 26px; color: var(--lime); }
.navitem:hover { background: #10161b; color: #fff; }
.navitem:hover .navitem__icon svg { color: #fff; }

/* ---------- Footer ---------- */
.sitefoot { border-top: 1px solid var(--line-soft); margin-top: 12px; padding: 26px 32px 96px; }
.sitefoot__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 8px; }
.brand--foot .brand__name { font-size: 20px; }
.brand--foot .brand__mark { width: 28px; height: 28px; }
.brand--foot .brand__mark svg { width: 26px; height: 26px; }
.sitefoot__note { margin: 0; font-size: 12px; color: var(--muted); max-width: 90ch; }

/* ---------- Mobile bottom nav ---------- */
/* Seven links share one row at 320–430px. Fitting them is arithmetic, not a
   scrollbar: every column is an equal fraction of the bar (no 64px minimum that
   made the row 448px wide), labels may wrap onto a second line but are never
   clipped, and the tallest label ("Ekstra inntekt") still fits on two lines.
   --mobnav-h is what body padding reserves so the last link scrolls clear. */
:root { --mobnav-h: 62px; }
.mobnav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(9, 12, 15, .96); backdrop-filter: blur(14px);
  border-top: 1px solid #1d252d;
  padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: start;
}
.mobnav .navitem {
  min-width: 0; padding: 4px 1px; gap: 3px; font-size: 9.5px; line-height: 1.15;
  letter-spacing: -.1px; text-align: center;
}
.mobnav .navitem__icon { width: 22px; height: 22px; }
.mobnav .navitem__icon svg { width: 21px; height: 21px; }
.mobnav .navitem__label {
  display: block; max-width: 100%; font-size: 9.5px; line-height: 1.15;
  overflow-wrap: break-word; hyphens: auto;
}

/* ---------- Sub pages ---------- */
.page { max-width: var(--maxw); margin: 0 auto; padding: 18px 32px 24px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--lime); }
.crumbs svg { width: 12px; height: 12px; }
.page__head { margin-bottom: 22px; }
.page__chip { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #10161b; border: 1px solid #1d252d; margin-bottom: 10px; }
.page__chip svg { width: 22px; height: 22px; color: var(--lime); }
.page__kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lime); }
.page__head h1 { margin: 0 0 8px; font-family: var(--font-cond); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.page__lead { margin: 0; color: var(--muted); max-width: 70ch; }
.page__lead--muted { font-size: 12.5px; margin-top: 14px; }
.page__count { margin: 10px 0 0; font-size: 13px; color: var(--lime); font-weight: 700; }
.page__img { width: 100%; max-width: 720px; border-radius: 16px; margin: 14px 0; }
.listing { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
.listing__item a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft);
}
.listing__item a:hover { border-color: var(--lime); }
.listing__item span { color: var(--muted); font-size: 12.5px; text-align: right; }
.listing__empty { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
/* ---------- Job detail ---------- */
.job { max-width: 860px; }
.job__badge {
  display: inline-block; margin: 12px 0 0; padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(200,245,66,.12); border: 1px solid rgba(200,245,66,.4); color: var(--lime); font-size: 12.5px;
}
.job__head h1 { margin: 0 0 8px; font-family: var(--font-cond); font-size: clamp(28px, 4vw, 42px); line-height: 1.05; }
.job__meta { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.job__meta a { color: var(--lime); }
.job__body section { margin: 26px 0 0; }
.job__body h2 { margin: 0 0 8px; font-family: var(--font-cond); font-size: 21px; font-weight: 700; }
.job__body ul { margin: 0; padding-left: 20px; color: #dfe5e9; display: grid; gap: 6px; font-size: 14.5px; }
.job__body p { font-size: 14.5px; color: #dfe5e9; max-width: 72ch; }
.job__box { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.job__box.job__box--payment { border-color: rgba(200,245,66,.35); }
.job__hint { font-size: 13px; color: var(--muted); }
.job__hint a, .job__id span a { color: var(--lime); text-decoration: underline; }
.job__id { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #dfe5e9; }
.job__id svg { width: 18px; height: 18px; flex: none; color: var(--lime); margin-top: 2px; }
.job__adult { padding: 14px 18px; border-left: 3px solid var(--lime); background: rgba(200,245,66,.06); border-radius: 10px; }
.job__apply { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(180deg, #0e1317, #0a0e11); }
.job__adult-notice { font-size: 13.5px; }
.job__disclosure { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.page__cta { margin: 22px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.page__cta .page__lead { font-size: 13px; }
.job__body section > .page__lead--muted { font-size: 12.5px; }

mark { background: rgba(200,245,66,.28); color: var(--lime); border-radius: 4px; padding: 0 2px; }
.noscript { padding: 16px 32px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-card { aspect-ratio: 16 / 10; }
  .cat-card__title { font-size: 22px; max-width: none; }
  .section--split { grid-template-columns: 1fr; }
  .nomad { min-height: 200px; }
}

@media (max-width: 1023px) {
  .topbar { padding: 16px 20px 10px; min-height: 0; }
  .hero { padding: 26px 20px 26px; min-height: 0; }
  .hero__panel { width: 100%; }
  .hero__title { font-size: clamp(32px, 6.4vw, 46px); }
  .section { padding: 12px 20px; }
  .page { padding: 14px 20px 24px; }
}

/* Mobile portrait: hero copy stacks under the art, cards become a 2-col grid,
   the nav row is replaced by a fixed app bar. */
@media (max-width: 767px) {
  :root { --maxw: 100%; }
  body { background: var(--bg); }
  .topbar { padding: 14px 16px 8px; }
  .brand__name { font-size: 22px; }
  .brand__tag { font-size: 9px; letter-spacing: 1.3px; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__mark svg { width: 28px; height: 28px; }

  .hero {
    display: block; padding: 0 0 22px; margin: 0;
    border-radius: 0;
  }
  /* Portrait hero (pack hero-mobile 800x940) sits in normal flow: art on top,
     copy in its own HTML layer below, as the pack readme instructs. */
  .hero__media { position: relative; inset: auto; height: var(--hero-m-h, 340px); width: 100%; }
  .hero__bg--desktop { display: none; }
  .hero__bg--mobile { display: block; object-position: 50% 30%; }
  .hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: calc(var(--hero-m-h, 340px) + 90px); z-index: 0;
    background: linear-gradient(180deg, rgba(7,9,11,0) 55%, var(--bg) 96%);
    pointer-events: none;
  }
  .hero::after {
    top: 0; height: var(--hero-m-h, 340px);
    background: linear-gradient(180deg, rgba(7,9,11,.25) 0%, rgba(7,9,11,0) 40%, rgba(7,9,11,.35) 100%);
  }

  .hero__panel { position: relative; z-index: 1; padding: 12px 16px 0; width: 100%; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); }
  .hero__line--accent { text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .hero__sub { font-size: 13.5px; }
  .search { min-height: 48px; grid-template-columns: 22px 1fr 40px; padding-left: 14px; }
  .search__input { font-size: 14.5px; height: 34px; }
  .search__btn { width: 36px; height: 36px; }
  .chips { gap: 8px; }
  .chip { font-size: 12px; padding: 7px 12px 7px 7px; }

  .section { padding: 12px 16px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-card { aspect-ratio: 1 / 1; border-radius: 16px; }
  .cat-card__chip { width: 32px; height: 32px; left: 10px; top: 10px; border-radius: 10px; }
  .cat-card__chip svg { width: 17px; height: 17px; }
  .cat-card__title { font-size: 17px; }
  .cat-card__kicker { font-size: 9.5px; letter-spacing: 1.1px; }
  .cat-card__text { left: 10px; right: 8px; bottom: 10px; }
  .cat-card__go { width: 24px; height: 24px; }
  .cat-card__go svg { width: 12px; height: 12px; }

  .section--split { gap: 12px; }
  .nomad { min-height: 200px; border-radius: 16px; }
  .nomad__body { max-width: 74%; padding: 18px; }
  .nomad__title { font-size: 26px; }
  .nomad__text { font-size: 13px; }
  .articles { padding: 14px; border-radius: 16px; }
  .articles__title { font-size: 19px; }
  .articles__grid { grid-template-columns: 1fr; gap: 14px; }
  /* Article rows: photo left, title+sub stacked on the right. Without the auto
     middle column the absolute aspect-ratio thumb stretched the row to ~570px. */
  .article { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
  .article img { grid-row: 1 / span 2; width: 104px; height: 72px; flex: none; aspect-ratio: auto; border-radius: 10px; }
  .article__title { font-size: 13.5px; }

  .ribbon { display: none; }
  .mobnav { display: grid; }
  /* Reserve the fixed bar's real height (plus the home-indicator inset) at the
     bottom of the document, so the footer and the last link can be scrolled
     fully above the nav instead of hiding behind it. */
  body { padding-bottom: calc(var(--mobnav-h) + env(safe-area-inset-bottom)); }
  .sitefoot { border-bottom: 1px solid var(--line-soft); }

  .page { padding: 12px 16px 24px; }
  .page__head h1 { font-size: 28px; }
  .crumbs { font-size: 12px; }
}

@media (max-width: 360px) {
  .cats { grid-template-columns: 1fr; }
  /* 320px is the narrowest supported width: tighten the bar one more notch so
     "Nettjobber" (10 characters) still fits across its 44px column. */
  .mobnav .navitem, .mobnav .navitem__label { font-size: 8.5px; letter-spacing: -.2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.sitefoot__note a, .page__lead a { color: var(--lime); text-decoration: underline; }

/* Approved wordmark and homepage heading. */
.topbar {
  height: var(--topbar-h);
  padding-block: 8px;
  justify-content: space-between;
}
.topbar .brand { flex: 0 0 auto; }
.topbar .brand__mark {
  width: 69px;
  height: 60px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
}
.brand__mark img { width: 100%; height: auto; }
.brand__tag { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.brand__tag::before,
.brand__tag::after {
  content: "";
  flex: 1 0 5px;
  height: 1px;
  background: var(--lime);
}
.home-heading {
  max-width: 720px;
  margin: 0;
  color: var(--text);
  font: 700 clamp(1rem, 1.8vw, 1.5rem)/1.2 var(--font-cond);
  text-align: right;
  text-wrap: balance;
}
@media (max-width: 1023px) {
  .topbar .brand__mark { width: 57px; height: 48px; padding-right: 8px; }
}
@media (max-width: 767px) {
  .topbar { position: relative; padding-block: 8px; }
  .topbar .brand__mark { width: 46px; height: 40px; padding-right: 7px; }
  .home-heading {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    max-width: none;
    font-size: 1rem;
    text-align: left;
  }
  .topbar:has(.home-heading) + #app { padding-top: 50px; }
}

@media (max-width: 767px) {
  .pinned-article { min-height: clamp(300px, 95vw, 410px); }
}

/* Article archive */
.magazine { max-width: 1216px; }
.magazine .magazine__search { width: min(100%, 460px); margin: 0 0 16px; }
.magazine__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.magazine__controls a, .magazine__pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 6px 12px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.magazine__controls a, .magazine__pagination [aria-current] {
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg-2);
}
.magazine__controls a:not([aria-current]):hover { border-color: var(--lime); color: var(--text); }
.magazine__controls [aria-current] {
  border: 1px solid var(--lime); background: var(--lime); color: var(--bg);
}
.magazine__filters { margin-bottom: 24px; }
.magazine__pagination { justify-content: center; margin: 24px 0; }
.magazine__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.magazine-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.magazine-card:hover { border-color: var(--muted); }
.magazine-card__image {
  width: 100%; aspect-ratio: 21 / 9; max-height: 138px;
  object-fit: cover; object-position: center var(--image-y, 50%);
  border-radius: calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px) 0 0;
}
.magazine-card__body { display: flex; flex-direction: column; flex: 1; gap: 9px; padding: 18px; }
.magazine-card__body h2 {
  margin: 0; font-family: var(--font-cond); font-size: 23px; line-height: 1.18;
  overflow-wrap: anywhere;
}
.magazine-card__category { margin: 0; color: var(--lime); font-size: 12px; font-weight: 700; }
.magazine-card__intro { margin: 0; color: #c5ced5; font-size: 15px; line-height: 1.55; }
.magazine-card__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: auto; padding-top: 6px; color: var(--lime); font-size: 14px; font-weight: 700;
}
.magazine-card__cta svg { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .magazine-card__body { min-height: 254px; }
}
@media (max-width: 1023px) {
  .magazine__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .magazine__grid { grid-template-columns: 1fr; }
  .magazine-card__body h2 { font-size: 22px; }
}

.approved-affiliates { margin-block: 2.5rem; }
.approved-affiliates__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}
.approved-affiliates .partner {
  min-width: 0;
  padding: 1.125rem;
  border: 1px solid var(--line, #303740);
  border-radius: 0.8rem;
  background: var(--panel, #11161c);
}
.approved-affiliates .partner__name { font-size: 1.25rem; font-weight: 700; margin-top: 0; }
.approved-affiliates .partner__tag { display: block; font-size: .85rem; color: var(--lime, #d6ff40); }
.approved-affiliates .partner__pending { font-size: .875rem; }
.approved-affiliates .partner__banner { display: block; width: fit-content; max-width: 100%; }
.approved-affiliates .partner__banner img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}
