/* Quokkaroo site styles, matching the approved mockups: white and Deep ocean,
   Shallows as the light tint, Gilda Display headings, Manrope text, square corners. */
:root {
  --ocean: #0F5C63;
  --shallows: #E4EFED;
  --white: #FFFFFF;
  --line: #8FC3DC;
  --pebble: #8C8175;
  --driftwood: #5E5750;
  --charcoal: #313131;
  --display: "Gilda Display", Georgia, serif;
  --sans: Manrope, "Segoe UI", system-ui, sans-serif;
  --edge: clamp(24px, 6.6vw, 96px);
  /* Colours run edge to edge, but page content stays within 1440px on very wide screens. */
  --margin: max(var(--edge), calc((100vw - 1440px) / 2 + 96px));
  --section: 96px;
  --bar: 104px;
  --hero-photo: 460px;
  --hero-start: 340px;
  --hero-bottom: 64px;
}
@media (max-width: 1099px) {
  :root { --bar: 76px; }
}
@media (max-width: 699px) {
  :root { --section: 64px; --hero-photo: 320px; --hero-start: 232px; --hero-bottom: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--charcoal); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; }
/* Lets a photo with a phone copy fill its frame like a plain image. */
picture { display: contents; }
picture > source { display: none; }
a { color: var(--ocean); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.page-hero :focus-visible, .home-intro :focus-visible, .site-header :focus-visible, .ocean :focus-visible, .on-ocean :focus-visible { outline-color: var(--white); }
[hidden] { display: none !important; }
.needs-js { display: none; }
.js .needs-js { display: block; }
.skip { position: absolute; left: -9999px; z-index: 30; background: var(--white); padding: 12px 16px; }
.skip:focus { left: 16px; top: 16px; }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(42px, 4.6vw, 66px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; max-width: 900px; }
h1.title-long { font-size: clamp(36px, 3.8vw, 54px); }
h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.01em; color: var(--ocean); }
h2.h2-small { font-size: clamp(32px, 3vw, 44px); }
h3 { font-size: clamp(26px, 2.1vw, 30px); line-height: 1.2; color: var(--ocean); }
p { margin: 0; max-width: 65ch; }
.lede, .hero-text p { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.65; }
.lede-group p { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.65; }
.eyebrow { display: block; font-size: 15px; font-weight: 700; color: var(--ocean); }
.muted { color: var(--driftwood); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 27px; border: 1px solid var(--ocean); background: transparent; color: var(--ocean); font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ocean); color: var(--white); }
.btn-solid { background: var(--ocean); color: var(--white); }
.btn-solid:hover { background: #0B474D; border-color: #0B474D; }
.btn:active:not(:disabled), .chip:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.text-link { display: inline-block; padding: 10px 0; font-weight: 600; color: var(--ocean); }
.text-link.big { font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

/* Images and placeholders */
.photo { width: 100%; height: 100%; object-fit: cover; }
/* Photos fade in once they've fully loaded, rather than sharpening in stages. site.js adds the class. */
.photo { transition: opacity 0.45s ease; }
.photo.is-loading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .photo { transition: none; } }
.pos-top { object-position: 50% 15%; }
.pos-upper { object-position: 50% 30%; }
.pos-lower { object-position: 50% 70%; }
.pos-bottom { object-position: 50% 85%; }
.pos-left { object-position: 15% 50%; }
.pos-right { object-position: 85% 50%; }
.image-empty { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2F7C82, #A9CBCB); color: var(--white); text-align: center; font-size: 14px; font-weight: 600; padding: 16px; }
.image-label { max-width: 32ch; }
.home-photo .image-empty, .fade-photo .image-empty { align-items: flex-start; padding-top: calc(var(--bar) + 24px); }
.register-photo .image-empty { align-items: flex-start; padding-top: 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--bar); margin-bottom: calc(var(--bar) * -1); display: flex; align-items: center; justify-content: space-between; gap: 8px 40px; padding: 0 var(--margin); background: transparent; transition: background-color 0.2s ease; }
.site-header.solid { background: var(--ocean); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.logo { display: flex; flex: none; }
.logo img { height: 72px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.main-nav > ul { display: flex; align-items: center; gap: 4px 28px; }
.main-nav a { display: block; padding: 12px 0; color: var(--white); text-decoration: none; }
.main-nav > ul > li > a { border-bottom: 2px solid transparent; padding-bottom: 8px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.active { border-bottom-color: rgba(255, 255, 255, 0.65); }
.main-nav .nav-cta { font-weight: 700; border-bottom-color: var(--white); }
.has-menu { position: relative; }
.main-nav .submenu { display: none; position: absolute; top: 100%; left: -24px; min-width: 260px; padding: 12px 0; background: var(--ocean); box-shadow: 0 16px 40px rgba(6, 42, 46, 0.45); }
.main-nav .has-menu:hover .submenu, .main-nav .has-menu:focus-within .submenu { display: block; }
.main-nav .submenu a { padding: 12px 24px; line-height: 1.4; }
.main-nav .submenu a:hover, .main-nav .submenu a:focus-visible { background: rgba(255, 255, 255, 0.14); }
.main-nav .submenu a[aria-current="page"] { font-weight: 700; }

/* Phone menu */
.phone-menu { display: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] > summary > .when-closed { display: none; }
details:not([open]) > summary > .when-open { display: none; }
.menu-button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 0 0 12px; color: var(--white); font-size: 16px; font-weight: 600; }
.menu-icon { display: flex; flex-direction: column; gap: 5px; }
.menu-icon i { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.2s ease, opacity 0.2s ease; }
details[open] > .menu-button .menu-icon i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
details[open] > .menu-button .menu-icon i:nth-child(2) { opacity: 0; }
details[open] > .menu-button .menu-icon i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-icon i { transition: none; } }
.phone-menu > nav { position: absolute; top: var(--bar); left: 0; right: 0; max-height: calc(100vh - var(--bar)); max-height: calc(100dvh - var(--bar)); overflow-y: auto; padding: 0 var(--margin) 16px; background: var(--ocean); box-shadow: 0 16px 40px rgba(6, 42, 46, 0.45); }
.phone-row { display: flex; justify-content: space-between; align-items: center; min-height: 50px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.25); color: var(--white); font-size: 17px; font-weight: 600; text-decoration: none; }
.phone-row span { font-size: 22px; font-weight: 400; line-height: 1; }
.phone-subs { padding-bottom: 8px; }
.phone-sub { display: flex; align-items: center; min-height: 44px; padding-left: 16px; color: var(--white); font-size: 16px; font-weight: 500; text-decoration: none; }
.phone-all { font-weight: 700; }
.phone-menu [aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 1099px) {
  .main-nav { display: none; }
  .phone-menu { display: block; }
  .site-header { gap: 8px 12px; }
  .logo img { height: 52px; }
}
@media (max-width: 379px) {
  .logo img { height: 40px; }
}

/* Page hero: the photo fades into a teal title band */
.page-hero { position: relative; background: var(--ocean); color: var(--white); padding: var(--hero-start) var(--margin) var(--hero-bottom); }
.page-hero.plain { padding-top: calc(var(--bar) + 48px); }
.fade-photo { position: absolute; inset: 0 0 auto; height: var(--hero-photo); overflow: hidden; }
.fade-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15, 92, 99, 0.78) 0, transparent 30%, transparent 40%, var(--ocean) 78%); }
/* Half-photo hero (sector pages and Get in touch): the photo fills the right of the band and
   fades into the teal towards the text. Shown at about half the screen width, so it stays sharp.
   On narrower screens the photo sits on top and fades down into the title. */
.half-hero { padding: calc(var(--bar) + 72px) var(--margin) 104px; overflow: hidden; }
.half-photo { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; }
.half-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--ocean) 0, rgba(15, 92, 99, 0.6) 18%, transparent 45%), linear-gradient(to bottom, rgba(15, 92, 99, 0.55) 0, transparent 22%, transparent 80%, var(--ocean) 100%); }
.half-photo .image-empty { height: 100%; }
.half-text { position: relative; max-width: 560px; min-height: 420px; justify-content: center; }
@media (max-width: 899px) {
  .half-hero { padding-top: 0; }
  .half-photo { position: relative; width: auto; height: 340px; margin: 0 calc(var(--margin) * -1) 8px; }
  .half-photo::after { background: linear-gradient(to bottom, rgba(15, 92, 99, 0.6) 0, transparent 30%, transparent 55%, var(--ocean) 100%); }
  .half-text { min-height: 0; }
}
.header-marker { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.page-hero-body { position: relative; display: flex; flex-direction: column; gap: 24px; }
.page-hero h1 { color: var(--white); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-text .btn { border-color: var(--white); color: var(--white); }
.hero-text .btn:hover { background: var(--white); color: var(--ocean); }
.hero-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 96px; }
@media (max-width: 899px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }

/* Facts band on What we do */
.hero-text .facts { align-self: stretch; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 48px; margin: 16px 0 0; }
.facts > div { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.4); }
.facts dt { font-family: var(--display); font-size: clamp(30px, 3vw, 44px); line-height: 1.1; }
.facts dd { margin: 6px 0 0; font-size: 15px; }
@media (max-width: 799px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Home hero and intro */
.home-hero { position: relative; min-height: 780px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--margin) 170px; }
.home-photo { position: absolute; inset: 0; overflow: hidden; }
.home-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15, 92, 99, 0.75) 0, transparent 22%, transparent 62%, var(--ocean) 100%); }
.headline-box { position: relative; max-width: 700px; padding: 40px 48px; background: rgba(15, 92, 99, 0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.headline-box h1 { color: var(--white); }
.home-intro { background: var(--ocean); color: var(--white); padding: 40px var(--margin) 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 32px 96px; align-items: start; }
.home-lead { font-family: var(--display); font-size: clamp(32px, 3vw, 44px); line-height: 1.15; text-wrap: balance; }
.home-intro-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; font-size: 18px; line-height: 1.65; }
.home-intro .btn { border-color: var(--white); color: var(--white); }
.home-intro .btn:hover { background: var(--white); color: var(--ocean); }
.home-intro .text-link { color: var(--white); }
@media (max-width: 699px) {
  .home-hero { min-height: 620px; padding-bottom: 88px; }
  .headline-box { padding: 24px; }
  .home-intro { padding: 24px var(--margin) 56px; }
  .home-intro-text { font-size: 17px; }
}

/* Sections */
.subnav { display: flex; flex-wrap: wrap; gap: 0 32px; padding: 8px var(--margin); background: var(--shallows); font-size: 15px; font-weight: 600; }
.subnav a { display: flex; align-items: center; min-height: 44px; color: var(--ocean); text-decoration: none; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a[aria-current="page"] { border-bottom-color: var(--ocean); }
.subnav a[aria-current="page"] { font-weight: 700; }
@media (max-width: 420px) { .subnav { gap: 0 20px; font-size: 14px; } }
.band { padding: var(--section) var(--margin); display: flex; flex-direction: column; gap: clamp(32px, 3vw, 40px); }
.white { background: var(--white); }
.ocean { background: var(--ocean); color: var(--white); }
.ocean > h2, .ocean .columns > h2 { color: var(--white); }
.box { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 2.8vw, 40px) clamp(24px, 2.8vw, 40px); background: var(--shallows); color: var(--charcoal); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 32px 64px; }
.columns.wide { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 72px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Below desktop width, the numbered steps become simple rows on the teal band, with no boxes. */
@media (max-width: 1099px) {
  .cards.four { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
  .cards.four .box { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 8px; padding: 24px 0; background: transparent; color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.3); }
  .cards.four .step-number { grid-row: 1 / span 2; color: var(--white); font-size: 40px; }
  .cards.four h3 { grid-column: 2; color: var(--white); }
  .cards.four .box > p:last-child { grid-column: 2; }
}
.brief-button { align-self: flex-start; }
.step-number { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--ocean); }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }

/* Sector tiles and lists */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; align-items: flex-end; height: 280px; overflow: hidden; text-decoration: none; }
.tile .photo { position: absolute; inset: 0; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 92, 99, 0.88) 0, rgba(15, 92, 99, 0.08) 62%); }
.tile span { position: relative; z-index: 1; padding: 24px; font-family: var(--display); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.15; color: var(--white); }
.tile:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 719px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { height: 150px; }
}
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.sector-list a { display: block; padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: clamp(24px, 1.9vw, 26px); line-height: 1.25; color: var(--ocean); text-decoration: none; }
.sector-list a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 799px) { .sector-list { grid-template-columns: minmax(0, 1fr); } }
.position-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.position-tiles li { display: flex; align-items: flex-end; min-height: 132px; padding: 24px; background: var(--shallows); font-family: var(--display); font-size: 26px; line-height: 1.15; color: var(--ocean); }
@media (max-width: 699px) {
  .position-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .position-tiles li { min-height: 96px; padding: 16px; font-size: 20px; }
}

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 64px; align-items: center; }
.headshot { width: 100%; aspect-ratio: 7 / 8; height: auto; object-fit: cover; }
.headshot.image-empty { background: var(--shallows); color: var(--ocean); }
.person { display: flex; flex-direction: column; gap: 4px; }
.person-name { font-size: 20px; font-weight: 600; }
.person-role { color: var(--driftwood); }
@media (max-width: 899px) {
  .founder { display: flex; gap: 32px; align-items: stretch; }
  .headshot { max-width: 220px; }
}

/* Not sure where to start */
.not-sure { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: stretch; }
.not-sure .photo { height: 360px; }
.not-sure-text { padding: 32px var(--edge); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.not-sure h2 { font-size: clamp(36px, 3.4vw, 48px); line-height: 1.1; }
.not-sure p { font-size: clamp(17px, 1.3vw, 18px); line-height: 1.65; }
.on-white { background: var(--white); }
.on-shallows { background: var(--shallows); }
.on-ocean { background: var(--ocean); color: var(--white); }
.on-ocean h2, .on-ocean .text-link { color: var(--white); }
.on-ocean .btn { border-color: var(--white); color: var(--white); }
.on-ocean .btn:hover { background: var(--white); color: var(--ocean); }
@media (max-width: 799px) {
  .not-sure { display: flex; flex-direction: column; }
  .not-sure .photo { height: 240px; }
  .not-sure-text { padding: 40px var(--edge); }
}

/* Register */
.register { position: relative; background: var(--ocean); padding: 0 var(--margin) var(--section); }
.register-photo { position: absolute; inset: 0 0 auto; height: 520px; overflow: hidden; }
.register-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 10%, var(--ocean) 66%); }
.register-body { position: relative; padding-top: 300px; display: flex; flex-direction: column; gap: 32px; }
.register h2 { color: var(--white); }
.form-card { background: var(--white); padding: clamp(24px, 3.4vw, 48px); box-shadow: 0 24px 48px rgba(11, 71, 77, 0.35); }
.form-card.light { box-shadow: 0 24px 48px rgba(15, 92, 99, 0.16); }
@media (max-width: 699px) {
  .register-photo { height: 340px; }
  .register-body { padding-top: 200px; }
}

/* Forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--charcoal); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid var(--pebble); border-radius: 0; background: var(--white); color: var(--charcoal); font-family: var(--sans); font-size: 16px; }
textarea { resize: vertical; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px; border: 1px dashed var(--pebble); }
.upload input { max-width: 100%; font-family: var(--sans); font-size: 14px; color: var(--driftwood); }
.upload span { font-size: 12px; color: var(--driftwood); }
.ticks { display: flex; flex-direction: column; gap: 16px; }
.tick { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--driftwood); cursor: pointer; }
.tick input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ocean); }
.form-status { padding: 12px 16px; font-size: 15px; font-weight: 600; max-width: none; background: var(--shallows); color: var(--ocean); }
.form-status[data-kind="error"] { background: #FBEDEA; color: #A8321F; }
.form-note { padding: 12px 16px; background: var(--shallows); color: var(--ocean); font-size: 14px; font-weight: 600; max-width: none; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
.quote { margin: 0; padding: clamp(28px, 2.8vw, 40px); background: var(--shallows); color: var(--ocean); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.25; letter-spacing: -0.01em; }
.quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.quote figcaption b { font-size: 16px; font-weight: 600; }
.quote figcaption span { font-size: 14px; }

/* Jobs */
.js .filters.needs-js { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px 24px; }
.filter-tick { align-self: end; align-items: center; min-height: 48px; font-weight: 600; color: var(--charcoal); }
.job-list { border-bottom: 1px solid var(--line); }
.job-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.job-row > .stack-sm { flex: 1 1 420px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 4px 12px; background: var(--shallows); color: var(--ocean); font-size: 14px; font-weight: 600; }

/* Insights */
.filter-bar { padding: 20px var(--margin); background: var(--shallows); }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { margin-right: 8px; font-size: 15px; font-weight: 700; color: var(--ocean); }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--ocean); background: transparent; color: var(--ocean); font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip:hover, .chip[aria-pressed="true"] { background: var(--ocean); color: var(--white); }
.reset { min-height: 44px; margin-left: 8px; padding: 0 4px; border: 0; background: transparent; color: var(--ocean); font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.filter-select { display: none; }
@media (max-width: 899px) {
  .filter-bar { padding: 24px var(--margin); }
  .filter-chips { display: none; }
  .filter-select { display: flex; }
}
.article-list { border-bottom: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--charcoal); }
.article-photo { width: 100%; height: 260px; object-fit: cover; }
.article-title { font-family: var(--display); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; color: var(--ocean); }
.article-row:hover .article-title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.article-body { max-width: 720px; }
.js .load-more.needs-js { display: inline-flex; align-self: center; padding: 0 40px; }
@media (max-width: 799px) {
  .article-row { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding: 28px 0; }
  .article-photo { height: 210px; }
}

/* Footer */
.site-footer { background: var(--shallows); padding: 48px var(--margin); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; font-size: 14px; color: var(--ocean); }
.site-footer img { height: 56px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 699px) {
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer img { height: 48px; }
  .footer-links { gap: 0 24px; }
}

/* Privacy policy and terms */
.legal { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.legal h2 { margin-top: 28px; }
.legal-list { margin: 0; padding-left: 2.2em; display: flex; flex-direction: column; gap: 14px; max-width: 70ch; }
.legal-list > li { padding-left: 6px; }
.legal-list > li::marker { color: var(--ocean); font-weight: 600; }
.legal-sub { margin: 10px 0 0; padding-left: 1.8em; list-style: lower-alpha; display: flex; flex-direction: column; gap: 6px; }
.legal a, .notice a { color: var(--ocean); }
.legal-table { margin-top: 16px; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table thead th { font-weight: 700; color: var(--ocean); border-bottom-color: var(--ocean); }
.legal-table tbody th { font-weight: 600; width: 34%; }
.notice { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--driftwood); }
@media (max-width: 699px) {
  .legal-list { padding-left: 1.6em; }
  .legal-table tbody th { width: auto; }
}

/* Formatted text from the staff site (roles and articles): lists, subheadings and links */
.rich-list { margin: 0; padding-left: 1.2em; font-size: clamp(17px, 1.3vw, 18px); line-height: 1.65; }
.rich-list li + li { margin-top: 6px; }
.rich-heading { margin-top: 8px; }
.also-listed { margin-top: 16px; font-weight: 600; }
.link-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; }
/* The role details box stays its own size and in view while the description scrolls. */
.job-detail .columns > .box { align-self: start; position: sticky; top: calc(var(--bar) + 24px); }

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