/* Built by tools/build_library.py from case-studies.html and tools/library/library-extra.css. Do not edit. */

/* Shared structure for every page: reset, layout, nav, buttons, section heads, close and footer.
   Each treatment sets the tokens; home.css and case.css add the page-specific parts. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--body, 1.125rem);
  line-height: var(--leading, 1.6);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight, 600);
  letter-spacing: var(--display-track, -.02em);
  line-height: 1.08;
  text-wrap: balance;
}
h3, h4 { font-weight: var(--h3-weight, 600); letter-spacing: -.01em; line-height: 1.25; }
p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p, li { text-wrap: pretty; }
cite { font-style: italic; }
:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

.wrap {
  max-width: var(--max, 1180px);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sec { padding-block: var(--sec, clamp(80px, 10vw, 140px)); }
.sec-grid { display: grid; gap: var(--head-gap, clamp(32px, 4vw, 52px)); }
.prose > * + * { margin-top: var(--flow, 1.1em); }
.measure { max-width: var(--measure, 40rem); }

/* Navigation */
.site-nav { position: relative; z-index: 10; }
.site-nav .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); min-height: 76px; }
.wordmark { font-family: var(--font-display); font-weight: var(--wordmark-weight, 700); font-size: 1.08rem; letter-spacing: -.015em; text-decoration: none; margin-right: auto; }
.site-nav nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 30px); }
.site-nav nav a { text-decoration: none; font-size: .97rem; }
.site-nav nav a:hover { text-decoration: underline; }
.nav-toggle { display: none; }
/* Case studies dropdown, opened by hover or keyboard focus like the live site */
.nav-drop { position: relative; }
.nav-drop-label::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .5em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; vertical-align: .22em; transform: rotate(45deg); }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 15.5rem; padding-block: 8px;
  background: var(--bg); color: var(--ink); border-radius: var(--menu-radius, 0);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent), 0 14px 36px rgba(0, 0, 0, .14);
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 16px; }
.site-nav .nav-menu a { display: block; padding: 10px 18px; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: block; }
.nav-drop.shut .nav-menu { display: none; }
@media (max-width: 760px) {
  .site-nav .wrap { flex-wrap: wrap; column-gap: 10px; row-gap: 0; }
  .site-nav .btn-sm { padding: .68rem .9rem; }
  .wordmark { white-space: nowrap; }
  .nav-toggle { display: inline-flex; font: inherit; font-size: .97rem; font-weight: 600; color: inherit; background: none; border: 0; padding: 12px 6px; cursor: pointer; }
  .site-nav nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 18px; }
  .site-nav nav.open { display: flex; }
  .site-nav nav a { display: block; padding: 13px 0; font-size: 1.05rem; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
  .nav-drop-label::after { display: none; }
  .nav-menu, .nav-drop:hover .nav-menu, .nav-drop.shut .nav-menu { display: block; position: static; min-width: 0; padding: 0 0 0 18px; background: none; color: inherit; box-shadow: none; }
  .nav-menu::before { content: none; }
  .site-nav .nav-menu a { padding: 11px 0; font-size: 1rem; }
}
@media (max-width: 380px) {
  .wordmark { font-size: .98rem; }
  .site-nav .btn-sm { padding: .62rem .75rem; font-size: .88rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-ui, var(--font-text));
  font-weight: var(--btn-weight, 600);
  font-size: 1.02rem; line-height: 1; letter-spacing: 0;
  padding: 1.05rem 1.75rem;
  background: var(--accent); color: var(--accent-ink);
  text-decoration: none; border-radius: var(--radius, 0); white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .12s ease;
}
.btn:hover { background: var(--accent-hover, var(--accent)); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .72rem 1.1rem; font-size: .93rem; }

/* Section heads */
.sec h2 { font-size: var(--h2, clamp(2.2rem, 4.4vw, 3.6rem)); max-width: var(--h2-measure, 16ch); }
.sec-head > * + * { margin-top: 20px; }
.statement { font-size: var(--statement, clamp(1.3rem, 2.1vw, 1.75rem)); line-height: 1.36; letter-spacing: -.012em; max-width: 32ch; }

/* Close */
.sec-close h2 { font-size: var(--close-size, clamp(2.6rem, 6vw, 5.2rem)); }
.close-cta { margin-top: 32px; }
.referrers { font-size: .95rem; color: var(--muted); }
.signoff { display: none; }

/* Footer */
.site-foot .wrap { padding-block: 56px 44px; }
.foot-mark { font-family: var(--font-display); font-weight: var(--display-weight, 700); font-size: clamp(2.4rem, 9vw, 8rem); letter-spacing: -.045em; line-height: .92; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: .95rem; color: var(--muted); }
.foot-links a { text-decoration: none; color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }

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

/* Teal Hybrid: Teal Ink's type and structure with Teal Field's readability.
   From Ink: a very heavy Schibsted headline in teal on a cool white sheet, headings in a left
   rail, big step numerals, the duotone portrait, a reversed teal logo band.
   From Field: running text in near-black at a comfortable measure, and full-bleed teal and mint
   chapters for rhythm. Headings carry the teal; paragraphs stay black. Square corners.
   This file is the system (tokens, chapters, rail, close, footer) shared with the case study pages;
   t-teal-hybrid-home.css holds the homepage composition. */
:root {
  --teal: #1B5E5A; --teal-deep: #123F3C; --teal-lift: #22706B;
  --sheet: #F5F8F7; --mint: #DCEAE5; --mint-deep: #CCE0D9;
  --on: #F0F6F3; --on-muted: #A9C9C1;
  --bg: var(--sheet); --ink: #12201E; --muted: #4A5C58; --surface: #E3ECE9; --head: var(--teal);
  --accent: var(--teal); --accent-ink: var(--on); --accent-hover: var(--teal-deep); --control-line: #93AFA9;
  --ok: var(--teal); --strain: #A13D2D;
  --font-display: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: var(--font-display);
  --display-weight: 800; --display-track: -.04em; --h3-weight: 700; --radius: 0;
  --max: 1240px; --body: 1.13rem; --leading: 1.62;
  color-scheme: light;
}
::selection { background: var(--teal); color: var(--on); }
h1, h2, h3, .wordmark, .both, .amount, .foot-mark { color: var(--head); }

/* Teal chapters (Field) */
.sec-logos, .sec-approach, .sec-pricing, .sec-close, .site-foot, .field-teal {
  --bg: var(--teal); --ink: var(--on); --head: var(--on); --muted: var(--on-muted); --surface: var(--teal-lift);
  --accent: var(--on); --accent-ink: var(--teal-deep); --accent-hover: #FFFFFF; --focus: var(--on);
  --logo-filter: brightness(0) invert(1); --logo-opacity: .9;
  background: var(--bg); color: var(--ink);
}
/* Mint chapters (Field) */
.sec-tried, .sec-check, .field-mint { --bg: var(--mint); --surface: var(--mint-deep); background: var(--bg); }

/* Rail (Ink): heading left, content right, with a reading measure on the right */
.sec-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 72px); }
.sec-head { align-self: start; position: sticky; top: 28px; }
.sec h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); max-width: none; }
.sec-head .statement { font-size: 1.15rem; font-weight: 500; color: var(--muted); }
.sec-body.prose, .sides-after, .split-note { max-width: 42rem; }
@media (max-width: 900px) {
  .sec-grid { grid-template-columns: 1fr; }
  .sec-head { position: static; }
}

.sec-close { padding-bottom: 24px; }
.sec-close h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.site-foot .wrap { padding-top: 32px; }
.foot-mark { letter-spacing: -.06em; color: color-mix(in srgb, var(--on) 24%, var(--teal)); }
.foot-links a { color: var(--on); }

/* Case study pages: Teal Hybrid's system set for long reading.
   The case name is the giant headline, the facts sit in the rail beside the lede, outcomes get a
   teal band, and each chapter keeps its name in the sticky rail while the story runs on the right
   at a reading measure. Client quotes are teal, like the homepage's client quotes. */

/* Hero */
.case-hero { padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.case-hero h1 { font-size: clamp(2.8rem, 8.4vw, 8.6rem); line-height: .92; letter-spacing: -.055em; max-width: 12ch; padding-bottom: .04em; }
.case-intro { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 4vw, 72px); margin-top: clamp(36px, 4.4vw, 60px); align-items: start; }
.case-intro .lede { grid-column: 2; grid-row: 1; margin-top: 0; max-width: 30ch; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.3; letter-spacing: -.015em; }
.case-facts { grid-column: 1; grid-row: 1; font-size: .98rem; line-height: 1.5; }
.case-facts > div + div { margin-top: 18px; }
.case-facts dt { font-weight: 700; color: var(--teal); }
.case-facts dd { margin: 2px 0 0; }
@media (max-width: 900px) {
  .case-intro { grid-template-columns: 1fr; }
  .case-intro .lede, .case-facts { grid-column: 1; grid-row: auto; }
}

/* Outcomes band */
.case-stats { padding-block: clamp(52px, 6vw, 84px); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(32px, 4vw, 64px); }
.stats h2 { font-size: clamp(1.45rem, 2.1vw, 1.9rem); letter-spacing: -.03em; line-height: 1.12; }
.stats p { margin-top: 12px; font-size: 1.02rem; line-height: 1.5; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* Chapters */
.chapter-lede { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.45rem, 2.3vw, 2.05rem); line-height: 1.2; letter-spacing: -.025em; color: var(--teal); max-width: 28ch; text-wrap: balance; margin-bottom: clamp(28px, 3vw, 40px); }
.article { max-width: 42rem; }
.article > * + * { margin-top: 1.1em; }
.article h3 { font-size: 1.3rem; color: var(--teal); margin-top: 2.2em; }
.article h3 + * { margin-top: .55em; }
.callout { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.22rem, 1.8vw, 1.42rem); line-height: 1.32; letter-spacing: -.015em; margin-top: 1.8em; text-wrap: balance; }
.article > .callout:first-child, .article > h3:first-child { margin-top: 0; }
.article blockquote { border-left: 3px solid var(--teal); padding: 2px 0 2px 22px; margin-block: 1.7em; }
.article blockquote p { color: var(--teal); font-weight: 500; font-size: 1.16rem; line-height: 1.5; }
.article blockquote p + p { margin-top: .55em; }
.article blockquote .attribution { color: var(--muted); font-size: .95rem; font-weight: 600; }
.article blockquote + blockquote { margin-top: -.6em; }
.article ul li, .article ol li { position: relative; padding-left: 28px; }
.article li + li { margin-top: .6em; }
.article ul li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 7px; height: 7px; background: var(--teal); }
.article ol { counter-reset: item; }
.article ol li { counter-increment: item; }
.article ol li::before { content: counter(item); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--teal); }
.article strong { font-weight: 700; }
.footnote { font-size: .93rem; color: var(--muted); }
.article > .footnote { margin-top: 2.6em; }

/* More stories */
.more-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 4px 32px; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.more-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.more-list a { font-weight: 700; font-size: 1.12rem; color: var(--teal); }
.all-stories { margin-top: 28px; font-weight: 600; }
@media (max-width: 700px) { .more-list li { grid-template-columns: 1fr; } }

/* Case studies index */
.story .sec-head h2 a { text-decoration: none; }
.story .sec-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.kind { font-weight: 600; color: var(--muted); }
.story-meta { font-weight: 600; }
.story-preview { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.5; }
.read-more { font-weight: 700; color: var(--teal); }
.case-intro .index-lede { font-size: clamp(1.15rem, 1.6vw, 1.36rem); line-height: 1.5; max-width: 40rem; letter-spacing: 0; }
.index-note { font-size: .98rem; color: var(--muted); }



/* Library: the hub and the article pages. Uses the Teal Hybrid tokens above.
   Article pages keep the site's rail: contents and tags on the left, the piece at a reading measure on the right. */

/* Hero, shared by hub and articles */
.lib-hero { padding-block: clamp(32px, 5vw, 72px) clamp(36px, 4.5vw, 64px); }
.crumbs { font-size: .93rem; font-weight: 600; color: var(--muted); }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.lib-hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1; letter-spacing: -.05em; max-width: 20ch; padding-bottom: .04em; }
.dek { margin-top: clamp(18px, 2.2vw, 28px); max-width: 38ch; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.34; letter-spacing: -.012em; }
.byline { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.byline a { color: var(--ink); font-weight: 600; }

/* Article layout */
.lib-body { padding-bottom: clamp(64px, 8vw, 112px); }
.lib-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 72px); row-gap: 36px; align-items: start; }
.lib-rail { position: sticky; top: 28px; font-size: .96rem; line-height: 1.45; max-width: 19rem; }
.rail-label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.lib-rail .rail-label + * { margin-top: 12px; }
.lib-rail nav + .rail-label { margin-top: 32px; }
.toc { counter-reset: toc; }
.toc li + li { margin-top: 9px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .84rem; font-weight: 600; padding: 3px 10px; background: var(--surface); }
.tags .topic { background: var(--teal); color: var(--on); }
.tags .topic a { text-decoration: none; }
.lib-main { max-width: 42rem; min-width: 0; }
.lib-main > * + * { margin-top: clamp(32px, 3.6vw, 48px); }
@media (max-width: 900px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-rail { position: static; max-width: none; }
}

/* Video */
.video { aspect-ratio: 16 / 9; background: var(--teal-deep); max-width: 100%; }
.video iframe, .video-facade { display: block; width: 100%; height: 100%; border: 0; }
.video-facade { position: relative; cursor: pointer; padding: 0; background-color: var(--teal-deep); background-size: cover; background-position: center; }
.video-facade .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); background: var(--teal); }
.video-facade .play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); border-left: 24px solid var(--on); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.video-facade:hover .play { background: var(--teal-lift); }
.video-len { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; font-size: .86rem; font-weight: 600; color: var(--on); background: rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; }

/* Short answer, takeaways, try this */
.short { background: var(--mint); padding: clamp(22px, 2.6vw, 30px); }
.short p:last-child { margin-top: 10px; font-size: 1.2rem; line-height: 1.5; font-weight: 500; letter-spacing: -.008em; }
.lib-main h2.minor { font-size: 1.3rem; letter-spacing: -.02em; }
.takeaways ul, .try > * + * { margin-top: 16px; }
.takeaways li { position: relative; padding-left: 28px; }
.takeaways li + li { margin-top: .7em; }
.takeaways li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 7px; height: 7px; background: var(--teal); }
.try { border: 2px solid var(--teal); padding: clamp(22px, 2.6vw, 30px); }
.try ol { counter-reset: item; }
.try ol li { counter-increment: item; position: relative; padding-left: 28px; }
.try ol li + li { margin-top: .6em; }
.try ol li::before { content: counter(item); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--teal); }

/* Article text */
.lib-main .article h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); letter-spacing: -.03em; line-height: 1.14; margin-top: 2.1em; scroll-margin-top: 24px; }
.lib-main .article h2 + * { margin-top: .7em; }
.lib-main .article > h2:first-child { margin-top: 0; }
.article a, .try a, .notes a, .short a { color: var(--teal); }
.article table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.article .table-scroll { overflow-x: auto; }
.article th { text-align: left; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 8px 0; border-bottom: 2px solid var(--teal); }
.article td { padding: 12px 14px 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); vertical-align: top; }
.article td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
sup.fn { font-size: .68em; line-height: 0; margin-left: 1px; font-variant-numeric: tabular-nums; }
sup.fn a { text-decoration: none; font-weight: 700; padding: 0 2px; }
sup.fn a:hover { text-decoration: underline; }

/* Notes */
.notes { border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-top: clamp(24px, 3vw, 36px); }
.notes ol { margin-top: 16px; counter-reset: note; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.notes li { counter-increment: note; position: relative; padding-left: 30px; scroll-margin-top: 24px; overflow-wrap: anywhere; }
.notes li + li { margin-top: .7em; }
.notes li::before { content: counter(note) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.notes li:target { color: var(--ink); }
.notes .back { text-decoration: none; }
.notes .source { margin-top: 20px; font-size: .95rem; color: var(--muted); }

/* Read next */
.lib-related { padding-block: clamp(56px, 7vw, 96px); }
.lib-related .more-list span { color: var(--ink); }

/* Hub: situations first */
.hub-hero { padding-bottom: clamp(56px, 7vw, 100px); }
.hub-hero h1 { max-width: 16ch; }
.sit-list { margin-top: clamp(32px, 4vw, 52px); border-top: 2px solid var(--teal); }
.sit-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding-block: clamp(16px, 2vw, 22px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); text-decoration: none; }
.sit-list .say { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 2.3vw, 1.9rem); line-height: 1.18; letter-spacing: -.028em; color: var(--teal); }
.sit-list .meta { font-size: .9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sit-list a:hover .say { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }

/* Hub: shelves by topic */
.shelf { padding-block: clamp(56px, 7vw, 100px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding-top: 16px; border-top: 2px solid var(--teal); text-decoration: none; }
.card-kind { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; line-height: 1.18; letter-spacing: -.022em; color: var(--teal); }
.card-text { font-size: 1rem; line-height: 1.48; }
.card-meta { margin-top: auto; padding-top: 6px; font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.card a:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
