/* Colours come from the logo: orange on black. Light by default, dark by choice or system setting.
   The top bar and footer stay dark in both modes because the logo has white lettering. */
:root {
  --orange: #f47a20;
  --orange-hover: #ff8b36;
  --on-orange: #10141b;
  --night: #0c1118;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --ink: #121821;
  --ink-2: #33404f;
  --muted: #5b6675;
  --line: #dde1e7;
  --accent-text: #b4530a;
  --bad: #b3261e;
  --bad-bg: #fbeceb;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0c1118; --surface: #141b25; --surface-2: #1b2430; --ink: #eef1f5; --ink-2: #c6ced9; --muted: #97a3b4; --line: #2a3442; --accent-text: #ff9a4d; --bad: #ff8a80; --bad-bg: #3a1b1a;
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #0c1118; --surface: #141b25; --surface-2: #1b2430; --ink: #eef1f5; --ink-2: #c6ced9; --muted: #97a3b4; --line: #2a3442; --accent-text: #ff9a4d; --bad: #ff8a80; --bad-bg: #3a1b1a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); margin: 0 0 .35em; overflow-wrap: anywhere; }
h2 { font-size: 1.9rem; margin: 1.5em 0 .45em; }
h3 { font-size: 1.35rem; margin: 1em 0 .35em; }
p { margin: 0 0 .9em; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.after { margin-top: 14px; }
.crumb { font-size: .92rem; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding: 10px 20px; background: var(--night); color: #fff; }
.logo { display: block; flex: none; }
.logo img { display: block; width: auto; height: 34px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; font-weight: 500; font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--orange); }
.theme-form { display: inline; margin: 0; }
.theme-toggle { padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: none; color: inherit; font: 500 .85rem var(--body); cursor: pointer; }
.theme-toggle:hover { border-color: #fff; }
.to-light { display: none; }
:root[data-theme=dark] .to-dark { display: none; }
:root[data-theme=dark] .to-light { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .to-dark { display: none; }
  :root:not([data-theme=light]) .to-light { display: inline; }
}
main { max-width: 760px; margin: 0 auto; padding: 34px 20px 56px; }
main:has(.board-page), main:has(.job-wrap), main:has(.portal) { max-width: 1240px; }
main:has(.with-photo), main:has(.home) { max-width: none; padding: 0; }
.flash { margin: 0; padding: 12px 20px; background: var(--orange); color: var(--on-orange); font-weight: 600; }
.alert { padding: 11px 14px; background: var(--bad-bg); border-radius: 6px; color: var(--bad); font-weight: 500; }
.note { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }

.btn { display: inline-block; padding: 12px 26px; min-height: 50px; border: 0; border-radius: 6px; background: var(--orange); color: var(--on-orange); font: 800 1.3rem/26px var(--display); text-transform: uppercase; letter-spacing: .035em; text-align: center; text-decoration: none; cursor: pointer; transition: background .18s var(--ease), transform .18s var(--ease); }
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn-wide { display: block; width: 100%; }
.btn-plain { background: var(--surface-2); color: var(--ink); min-height: 44px; padding: 9px 20px; font-size: 1.1rem; box-shadow: inset 0 0 0 1px var(--line); }
.btn-plain:hover { background: var(--line); }
.link { padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.field { display: block; margin-bottom: 16px; min-width: 0; }
.field > span { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 5px; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .84rem; }
.field small.err { color: var(--bad); font-weight: 500; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type=file] { max-width: 100%; font: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.two { display: grid; gap: 0 14px; }
.place { display: grid; grid-template-columns: 2fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; }
.check input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--orange); }
.box { padding: 20px; background: var(--surface-2); border-radius: 10px; margin: 0 0 20px; }
.box h2:first-child { margin-top: 0; }
details { margin-bottom: 16px; }
summary { cursor: pointer; padding: 8px 0; font-weight: 500; }

/* Home. The hero and footer stay dark in both modes, like the logo artwork. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--night); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; animation: settle 2.4s var(--ease) both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,18,.65) 0%, rgba(8,12,18,.2) 30%, rgba(8,12,18,.5) 55%, rgba(8,12,18,.94) 100%); }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 96px 20px 26px; animation: rise .9s var(--ease); }
.hero h1 { font-size: clamp(3.5rem, 9.4vw, 9.6rem); font-weight: 900; line-height: .92; margin: 0 0 .16em; max-width: 11em; text-wrap: balance; }
.hero p { font-size: clamp(1.05rem, 1.7vw, 1.3rem); margin-bottom: 1.1em; }
.quick { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.quick .field { margin: 0; }
.quick .field > span { font-size: .82rem; color: var(--muted); }
.quick .btn { width: 100%; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
/* Movement only, never opacity: the headline and form must show even if this never runs. */
@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
.motion .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion .reveal.in { opacity: 1; transform: none; }

.how { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) 20px; }
.how h2, .included h2 { margin: 0 0 .5em; font-size: clamp(2.5rem, 6.5vw, 5.4rem); font-weight: 900; }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; }
.how li { padding: 22px 0; border-top: 2px solid var(--ink); }
.how-n { display: block; font: 900 clamp(4rem, 8vw, 7rem)/.9 var(--display); color: var(--orange); }
.how h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .2em 0 .25em; }
.how p { margin: 0; font-size: 1.08rem; max-width: 26em; color: var(--ink-2); }

.included { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 9vw, 120px) 20px 0; }
.included-cols { display: grid; gap: 34px 48px; }
.included h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0 0 .5em; }
.included li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1.08rem; }

.tiles { display: grid; gap: 6px; padding: 6px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #222; color: #fff; text-decoration: none; border-radius: 4px; }
.tile-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 52%, rgba(0,0,0,.72) 100%); }
.tile:hover .tile-img { transform: scale(1.05); }
.tile-label { position: absolute; z-index: 1; left: 18px; bottom: 14px; right: 18px; font: 800 clamp(1.9rem, 4vw, 3.2rem)/1 var(--display); text-transform: uppercase; }
.more-types { max-width: 1400px; margin: 0 auto; padding: 20px 20px 0; color: var(--muted); font-size: 1.02rem; }

.on-board { background: var(--surface-2); padding: clamp(40px, 7vw, 90px) 20px; }
.on-board > * { max-width: 1360px; margin-left: auto; margin-right: auto; }
.on-board-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.on-board h2 { margin: 0; font-size: clamp(2.5rem, 6.5vw, 5.4rem); font-weight: 900; }
.on-board-top a { color: var(--accent-text); font-weight: 500; white-space: nowrap; }

.ops { max-width: 1400px; margin: 0 auto; padding: clamp(56px, 10vw, 130px) 20px; display: grid; gap: 10px 56px; align-items: center; }
.ops-price { font: 900 clamp(8rem, 27vw, 22rem)/.82 var(--display); letter-spacing: -.01em; color: var(--orange); }
.ops h2 { margin: 0 0 .35em; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; }
.ops p { font-size: 1.12rem; max-width: 30em; margin-bottom: 1.3em; color: var(--ink-2); }

.foot { background: var(--night); color: #97a3b4; padding: 34px 20px 14px; overflow: hidden; font-size: .92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; max-width: 1400px; margin: 0 auto 26px; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { color: var(--orange); }
.foot-links span { margin-left: auto; }
.foot-logo { display: block; width: min(100%, 460px); height: auto; margin: 10px auto 20px; }

/* The board */
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.board-head { display: none; }
.jobs > li + li { border-top: 1px solid var(--line); }
.job { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px 16px; padding: 15px 14px; color: inherit; text-decoration: none; transition: background .18s var(--ease); }
.job:hover { background: var(--surface-2); }
.job-title { font: 700 1.5rem/1.12 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.job:hover .job-title { color: var(--accent-text); }
.job-from, .job-to, .job-when, .job-right { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.job-to::before { content: 'to '; color: var(--muted); }
.job-when, .job-right { color: var(--muted); }
.job-mine { color: var(--accent-text); font-weight: 600; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.filters input, .filters .btn { grid-column: 1 / -1; }
.pager { display: flex; gap: 18px; margin-top: 16px; }

/* Photo beside a form */
.with-photo { display: grid; min-height: calc(100svh - 62px); }
.with-photo-main { width: 100%; max-width: 620px; margin: 0 auto; padding: 36px 20px 56px; }
.side-photo { display: none; position: relative; overflow: hidden; background: var(--night); }
.side-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }

/* Job page */
.job-grid { display: grid; gap: 20px 56px; }
.job-main, .job-side { min-width: 0; }
.summary { background: var(--night); color: #fff; border-radius: 10px; padding: 22px; }
.summary small { display: block; font-size: .9rem; color: #c6ced9; margin-bottom: 2px; }
.summary-figure { font: 800 3.6rem/1 var(--display); color: var(--orange); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.summary-count { color: #c6ced9; }
.summary p { margin: 10px 0 0; }
.summary .btn { margin-top: 12px; }
.facts { display: grid; grid-template-columns: minmax(84px, 26%) 1fr; margin: 0 0 20px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--muted); padding-right: 14px; }
.facts dd { font-weight: 500; overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.quotes > li, .thread > li { padding: 16px 0; border-top: 1px solid var(--line); }
.quotes p, .thread p { margin: 5px 0 0; }
.quotes form { margin-top: 12px; }
.quote-top { display: flex; justify-content: space-between; gap: 16px; }
.price { font: 800 2rem/1 var(--display); white-space: nowrap; color: var(--accent-text); }
.stars { color: var(--accent-text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.star-pick { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.alerts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.alerts .unread a { font-weight: 700; }

/* Dashboards */
.portal { display: grid; gap: 22px 40px; }
.portal-main { min-width: 0; }
.portal-main h2 { margin-top: 1.2em; }
.portal-nav { display: flex; gap: 4px; overflow-x: auto; margin: -8px -20px 0; padding: 0 20px 10px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.portal-nav a { flex: none; padding: 9px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.portal-nav a:hover { background: var(--surface-2); }
.portal-nav a.on { background: var(--orange); color: var(--on-orange); font-weight: 600; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: .78rem; text-align: center; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-bottom: 8px; }
.head-row h1 { margin: 0; }
.callout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 16px 18px; margin-bottom: 18px; background: var(--night); color: #fff; border-left: 5px solid var(--orange); border-radius: 6px; }
.callout > div { flex: 1 1 280px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .18s var(--ease); }
.stat:hover { border-color: var(--orange); }
.stat b { display: block; font: 900 3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
.works { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.work { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding: 14px 16px; }
.work + .work { border-top: 1px solid var(--line); }
.work-text { flex: 1 1 280px; min-width: 0; overflow-wrap: anywhere; }
.work-text > * { display: block; }
.work-title { font: 700 1.45rem/1.15 var(--display); text-transform: uppercase; text-decoration: none; }
.work-title:hover { color: var(--accent-text); }
.work-side { display: flex; align-items: center; gap: 14px; }

.table-wrap { overflow-x: auto; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; }
td .btn { min-height: 32px; padding: 4px 12px; font-size: 1rem; line-height: 22px; }

/* The home page header sits over the photo */
body:has(.home) .top { position: absolute; z-index: 5; left: 0; right: 0; background: none; }
body:has(.home) .flash { position: relative; z-index: 6; }

@media (min-width: 560px) {
  .two { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 2fr 1fr 1fr auto; }
  .filters input, .filters .btn { grid-column: auto; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .top { padding: 16px 40px; }
  .logo img { height: 44px; }
  .hero-in { padding: 110px 40px 40px; }
  .quick { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; padding: 18px; }
  .quick .btn { width: auto; }
  .how, .included, .ops, .more-types { padding-left: 40px; padding-right: 40px; }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .included-cols { grid-template-columns: 1fr 1fr; }
  .on-board { padding-left: 40px; padding-right: 40px; }
  .foot { padding-left: 40px; padding-right: 40px; }
  .ops { grid-template-columns: auto 1fr; }
  main:has(.board-page), main:has(.job-wrap), main:has(.portal) { padding-left: 40px; padding-right: 40px; }
  .board-head, .job { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 150px; gap: 18px; align-items: baseline; }
  .board-head { padding: 10px 14px; color: var(--muted); font-size: .78rem; font-weight: 500; }
  .board-head span:last-child, .job-right { text-align: right; }
  .job-to::before { content: none; }
  .with-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .with-photo-main { padding: 60px 40px 80px; max-width: 640px; }
  .side-photo { display: block; }
  .job-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .job-side { grid-column: 2; grid-row: 1; position: sticky; top: 24px; align-self: start; }
  .job-main { grid-column: 1; grid-row: 1; }
  .portal { grid-template-columns: 210px minmax(0, 1fr); }
  .portal-nav { flex-direction: column; margin: 0; padding: 0; border: 0; overflow: visible; position: sticky; top: 24px; align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .hero-in { animation: none; }
  .tile-img, .btn, .job, .stat { transition: none; }
}
