/* Arial sized to take the same room as Schibsted Grotesk, so text does not jump when the web font arrives. */
@font-face{font-family:'Schibsted Fallback';src:local('Arial'),local('ArialMT');size-adjust:103.2%;ascent-override:94.96%;descent-override:25.19%;line-gap-override:0%}

/* Grit Fox insights: the services page's header, sheet and footer, plus the article listing and the article layout. */
:root {
  --gf-ink: #0d0d0d;
  --gf-paper: #ffffff;
  --gf-gray: #9b9b9b;
  --gf-muted: #5f5f5f; /* 5:1 on the beige cards, 6.4:1 on white */
  --gf-line: #d6d2cb;
  --gf-card: #e6e4e0;
  --gf-fox: #f3aa1d; /* Grit Fox orange, sampled from the portfolio cover */
  --gf-header-h: 62px;
  --gf-pad: 15px;
  /* Same as the main site: full width, with 16–48px side margins. */
  --gf-gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px), (100vw - 1840px) / 2); /* content stops at 1840px on 27" and ultrawide screens */
  --gf-radius: 18px;
  --gf-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--gf-ink); }

body {
  margin: 0;
  background: var(--gf-ink);
  color: var(--gf-ink);
  font-family: 'Schibsted Grotesk', 'Schibsted Fallback', Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--gf-fox); outline-offset: 3px; }

/* ---------- pill button ---------- */
.gf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  padding: 1px 9px 2px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s var(--gf-ease), background-color 0.4s var(--gf-ease), border-color 0.4s var(--gf-ease);
}
button.gf-pill { cursor: pointer; }
a.gf-pill:hover,
button.gf-pill:hover { background: var(--gf-fox); border-color: var(--gf-fox); color: var(--gf-ink); }

/* ---------- Kickoff: the Pounce, the main site's Kickoff button ---------- */
/* A forward-pointing gold plate. Pointed at, the fox takes one pounce ahead, its speed lines stretch and its eye
   glances on; it blinks now and then. Everything scales with --s, sized here for the 62px header. */
.gfb {
  --s: 0.6;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(18px * var(--s));
  flex: none;
  height: calc(76px * var(--s));
  padding: 0 calc(24px * var(--s));
  color: var(--gf-ink);
  font-size: calc(22px * var(--s));
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.gfb-label { position: relative; z-index: 2; }
.gfb .fox-ico { display: block; width: calc(38px * var(--s)); height: calc(38px * var(--s)); }
.gfb-pounce { padding-right: calc(27px * var(--s)); }
.gfb-plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gf-fox);
  clip-path: polygon(0 0, calc(100% - 25px * var(--s)) 0, 100% 50%, calc(100% - 25px * var(--s)) 100%, calc(16px * var(--s)) 100%, 0 calc(100% - 16px * var(--s)));
}
.gfb-runway { position: relative; z-index: 2; display: grid; place-items: center; flex: none; width: calc(58px * var(--s)); height: calc(48px * var(--s)); }
.gfb-flight { display: block; margin-left: calc(12px * var(--s)); transition: transform 0.22s ease-out; }
.gfb-speed { position: absolute; left: 0; width: calc(10px * var(--s)); height: 2px; background: currentColor; opacity: 0.8; transform: skewX(-24deg); transition: width 0.2s, opacity 0.2s; }
.gfb-speed-top { top: calc(19px * var(--s)); }
.gfb-speed-bottom { top: calc(27px * var(--s)); left: calc(4px * var(--s)); width: calc(6px * var(--s)); }
.gfb-pounce:is(:hover, :focus-visible) .gfb-flight { transform: translateX(calc(8px * var(--s))); animation: gfbPounce 0.62s cubic-bezier(0.22, 0.75, 0.25, 1) both; }
.gfb-pounce:is(:hover, :focus-visible) .gfb-speed-top { width: calc(21px * var(--s)); }
.gfb-pounce:is(:hover, :focus-visible) .gfb-speed-bottom { width: calc(14px * var(--s)); opacity: 0.45; }
@keyframes gfbPounce {
  0% { transform: translate(0, 0) rotate(0); }
  24% { transform: translate(-5px, 4px) rotate(-5deg); }
  65% { transform: translate(11px, -12px) rotate(5deg); }
  100% { transform: translate(8px, 0) rotate(0); }
}
.gfb .fox-iris { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gfb:is(:hover, :focus-visible) .fox-iris { transform: translate(30px, 4px); }
.gfb .fox-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); animation: foxBlink 6s ease-in-out infinite; }
.gfb:is(:hover, :focus-visible) .fox-lid { animation: foxWink 0.34s ease-in-out; }
@keyframes foxBlink { 0%, 93%, 100% { transform: scaleY(0); } 96.5% { transform: scaleY(1); } }
@keyframes foxWink { 0%, 100% { transform: scaleY(0); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .gfb * { animation: none !important; transition: none !important; } }

/* ---------- header ---------- */
.gf-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: var(--gf-ink);
  color: var(--gf-paper);
}
.gf-header__bar {
  height: var(--gf-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gf-gutter);
}
/* Logo pieces are the Grit Fox fox head and GRIT FOX lettering (SVG), used as masks so they take the link colour. */
.gf-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  transition: color 0.3s var(--gf-ease);
}
.gf-logo:hover { color: var(--gf-fox); }
.gf-logo__mark,
.gf-logo__word {
  display: block;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.gf-logo__mark { --src: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="297.7 94 404.6 411.6"%3E%3Cpath d="M 371.3 299.6 C 509.9 219.4 628.7 299.6 628.7 299.6 C 628.7 299.6 511.1 442.4 371.3 299.6 M 696.3 329.1 L 650.7 269 L 686.7 100 L 549.5 195.1 L 500 195.5 L 450.5 195.1 L 313.3 100 L 349.3 269 L 303.7 329.1 L 376 387.9 L 355.4 389.1 L 428.9 437.3 L 418.5 408.2 L 470.5 499.6 L 498.3 499.6 L 498.3 494.5 C 498 494.5 497.8 494.5 497.6 494.5 C 492.4 494.3 487.8 491.2 485.3 486.7 L 481.4 479.8 L 485.3 474.2 C 487.5 472.6 500 472.5 500 472.5 C 500 472.5 512.5 472.6 514.7 474.2 L 518.6 479.8 L 514.7 486.7 C 512.2 491.2 507.6 494.3 502.4 494.5 C 502.2 494.5 502 494.5 501.7 494.5 L 501.7 499.6 L 529.5 499.6 L 581.5 408.2 L 571.1 437.3 L 644.6 389.1 L 624 387.9 Z M 696.3 329.1"/%3E%3Cpath d="M 500 333 C 489.3 333 480.5 324.3 480.5 313.5 C 480.5 302.8 489.3 294.1 500 294.1 C 510.7 294.1 519.5 302.8 519.5 313.5 C 519.5 324.3 510.7 333 500 333 M 500 266.5 C 474 266.5 453 287.6 453 313.5 C 453 339.5 474 360.6 500 360.6 C 526 360.6 547 339.5 547 313.5 C 547 287.6 526 266.5 500 266.5"/%3E%3C/svg%3E'); width: 36px; height: 38px; }
.gf-logo__word { --src: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="303.7 541 392.6 359"%3E%3Cpath d="M 314.6 693.3 L 393.4 693.3 C 400.6 693.3 404.2 689.7 404.2 682.4 L 404.2 608.4 L 365.1 608.4 L 369.9 671.5 L 345.1 671.5 L 345.1 562.7 L 389 562.7 L 393.4 541 L 314.6 541 C 307.3 541 303.7 544.6 303.7 551.8 L 303.7 682.4 C 303.7 689.7 307.3 693.3 314.6 693.3"/%3E%3Cpath d="M 463 562.7 L 482.6 562.7 L 482.6 604.1 L 463 604.1 Z M 463 625.8 L 477.4 625.8 L 491.7 693.3 L 535.3 693.3 L 520.9 625.8 L 507.8 614.9 L 525.2 604.1 L 525.2 551.8 C 525.2 544.6 521.6 541 514.4 541 L 421.7 541 L 421.7 693.3 L 463 693.3 Z M 463 625.8"/%3E%3Cpath d="M 589.7 541 L 548.3 541 L 548.3 693.3 L 589.7 693.3 Z M 589.7 541"/%3E%3Cpath d="M 628.8 562.7 L 628.8 693.3 L 670.2 693.3 L 670.2 562.7 L 691.9 562.7 L 696.3 541 L 602.7 541 L 607.1 562.7 Z M 628.8 562.7"/%3E%3Cpath d="M 303.7 900 L 352.7 900 L 352.7 820.8 L 383.7 820.8 L 388.8 795 L 352.7 795 L 352.7 745.2 L 399.1 745.2 L 404.3 719.4 L 303.7 719.4 Z M 303.7 900"/%3E%3Cpath d="M 497.2 874.2 L 466.2 874.2 L 466.2 745.2 L 497.2 745.2 Z M 533.3 719.4 L 430.1 719.4 C 421.5 719.4 417.2 723.7 417.2 732.3 L 417.2 887.1 C 417.2 895.7 421.5 900 430.1 900 L 533.3 900 C 541.9 900 546.2 895.7 546.2 887.1 L 546.2 732.3 C 546.2 723.7 541.9 719.4 533.3 719.4"/%3E%3Cpath d="M 669.2 796.6 L 675.7 788.1 L 694.5 719.4 L 643.7 719.4 L 628.7 779.3 L 626.4 779.3 L 611.4 719.4 L 560.6 719.4 L 579.4 788.1 L 585.9 796.6 L 579.4 805.1 L 559.1 900 L 609.4 900 L 625.9 812.3 L 629.5 812.3 L 646 900 L 696.3 900 L 675.7 805.1 Z M 669.2 796.6"/%3E%3C/svg%3E'); width: 34px; height: 31px; }
.gf-nav { display: flex; align-items: center; gap: 28px; }
.gf-nav__links { display: flex; gap: 28px; font-size: 16px; }
.gf-nav__links a { color: #a8a8a8; transition: color 0.3s var(--gf-ease); }
.gf-nav__links a:hover,
.gf-nav__links a[aria-current] { color: var(--gf-paper); }
.gf-menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--gf-paper);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 767px) {
  .gf-nav { gap: 16px; }
  .gf-menu-btn { display: block; }
  .gf-nav__links {
    position: absolute;
    top: var(--gf-header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 10px var(--gf-gutter) 22px;
    background: var(--gf-ink);
    font-size: 30px;
    letter-spacing: -0.02em;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--gf-ease), transform 0.3s var(--gf-ease), visibility 0s linear 0.3s;
  }
  .gf-header.is-open .gf-nav__links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--gf-ease), transform 0.3s var(--gf-ease);
  }
}

/* Reading progress along the bottom of the header, on article pages. */
.gf-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gf-fox);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

/* The button is wider than the old pill, so at tablet widths the links close up a little to stay on one line. */
@media (min-width: 768px) and (max-width: 1023px) { .gf-nav, .gf-nav__links { gap: 20px; } }

/* ---------- sheet ---------- */
.gf-sheet {
  position: relative;
  margin-top: var(--gf-header-h);
  min-height: calc(100vh - var(--gf-header-h));
  background: var(--gf-paper);
  border-radius: 14px 14px 0 0;
  padding: 0 var(--gf-gutter);
}

/* ---------- notched corners ----------
   A paper tab cut into a rounded panel. The two pseudo-elements are inverted corners,
   so the panel's edge curves into the tab instead of meeting it at a right angle. */
.gf-ahero__tab::before,
.gf-ahero__tab::after,
.gf-card__cta::before,
.gf-card__cta::after {
  content: '';
  position: absolute;
  width: var(--gf-radius);
  height: var(--gf-radius);
  pointer-events: none;
}
/* tabs sit bottom-left: corners above the tab and to its right */
.gf-ahero__tab::before { left: 0; bottom: 100%; }
.gf-ahero__tab::after { left: 100%; bottom: 0; }
.gf-ahero__tab::before,
.gf-ahero__tab::after {
  background: radial-gradient(circle at 100% 0, transparent calc(var(--gf-radius) - 0.5px), var(--gf-paper) var(--gf-radius));
}
/* the card button sits bottom-right: corners above it and to its left */
.gf-card__cta::before { right: 0; bottom: 100%; }
.gf-card__cta::after { right: 100%; bottom: 0; }
.gf-card__cta::before,
.gf-card__cta::after {
  background: radial-gradient(circle at 0 0, transparent calc(var(--gf-radius) - 0.5px), var(--gf-paper) var(--gf-radius));
}

/* ---------- listing hero ----------
   A magazine masthead: the word set very large with a yellow full stop, the line beside it on its foot, one rule
   under both, and the articles straight after. */
.gf-ihero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 20px clamp(24px, 5vw, 80px);
  padding: clamp(40px, 7vw, 112px) 0 clamp(26px, 3.4vw, 48px);
  border-bottom: 1px solid var(--gf-ink);
}
.gf-ihero__title {
  font-size: clamp(72px, 15vw, 240px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  margin-left: -0.04em; /* the I's side bearing, so its stem lines up with the page edge */
}
.gf-ihero__title::after {
  content: '';
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--gf-fox);
}
.gf-ihero__line {
  max-width: 22ch;
  padding-bottom: 0.35em;
  font-size: clamp(18px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
@media (max-width: 767px) {
  .gf-ihero { grid-template-columns: minmax(0, 1fr); }
  .gf-ihero__line { padding-bottom: 0; }
}

/* ---------- listing ---------- */
.gf-listing { padding: 36px 0 120px; }

.gf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.gf-toolbar__count { font-size: 15px; color: var(--gf-muted); }
.gf-filter-btn { padding: 6px 14px 7px; }
.gf-filter-btn[aria-expanded='true'] { background: var(--gf-ink); border-color: var(--gf-ink); color: var(--gf-paper); }
.gf-filter-btn__badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gf-fox);
  color: var(--gf-ink);
  font-size: 12px;
}

.gf-filter-panel {
  display: grid;
  gap: 24px;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: var(--gf-radius);
  background: var(--gf-card);
}
@media (min-width: 1024px) {
  .gf-filter-panel { grid-template-columns: auto 1fr auto; align-items: start; gap: 48px; }
}
.gf-filter-group { border: 0; min-width: 0; }
.gf-filter-group legend {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gf-muted);
}
.gf-filter-group__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gf-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 8px;
  border: 1.5px solid var(--gf-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--gf-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.3s var(--gf-ease), background-color 0.3s var(--gf-ease), border-color 0.3s var(--gf-ease);
}
.gf-chip:hover { border-color: var(--gf-fox); background: var(--gf-fox); }
.gf-chip[aria-pressed='true'] { border-color: var(--gf-ink); background: var(--gf-ink); color: var(--gf-paper); }
.gf-chip__count { font-size: 13px; opacity: 0.6; font-variant-numeric: tabular-nums; }
.gf-filter-clear,
.gf-empty button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gf-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) {
  .gf-grid { grid-template-columns: 1fr 1fr; }
  .gf-card--featured { grid-column: 1 / -1; }
  .gf-grid.is-filtered .gf-card--featured { grid-column: auto; }
}

.gf-empty { padding: 48px 0; font-size: 20px; }
.gf-more { display: flex; justify-content: center; margin-top: 32px; }
.gf-more .gf-pill { padding: 6px 16px 7px; }

/* ---------- card ---------- */
.gf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--gf-radius);
  background: var(--gf-card);
}
.gf-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gf-ink);
}
.gf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.9s var(--gf-ease);
}
.gf-card:hover .gf-card__media img { scale: 1.035; }
@media (min-width: 768px) {
  .gf-grid:not(.is-filtered) .gf-card--featured .gf-card__media { aspect-ratio: 21 / 8; }
}
.gf-card__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gf-tag {
  padding: 5px 10px 6px;
  border-radius: 999px;
  background: var(--gf-paper);
  color: var(--gf-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.gf-tag--line { padding: 4px 9px 5px; border: 1.5px solid currentColor; background: none; }

.gf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 8px 0;
}
.gf-card__title {
  max-width: 30ch;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
/* The title link stretches over the whole card, so the card is one click target and one tab stop. */
.gf-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--gf-radius);
}
.gf-card__title a:focus-visible { outline: none; }
.gf-card__title a:focus-visible::after { outline: 2px solid var(--gf-fox); outline-offset: 3px; }

.gf-card__excerpt {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.4;
  color: #3a3a3a;
}
.gf-grid.is-filtered .gf-card__excerpt { display: none; }
@media (min-width: 768px) {
  .gf-grid:not(.is-filtered) .gf-card--featured .gf-card__title { font-size: clamp(30px, 3.4vw, 48px); max-width: 26ch; }
}
.gf-card__meta {
  margin-top: auto;
  padding: 30px 180px 16px 0;
  font-size: 14px;
  color: var(--gf-muted);
}

.gf-card__cta {
  position: absolute;
  right: -1px;
  bottom: -1px;
  z-index: 1;
  padding: 10px 0 0 10px;
  border-top-left-radius: var(--gf-radius);
  background: var(--gf-paper);
}
.gf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 15px;
  border-radius: 12px;
  background: var(--gf-fox);
  color: var(--gf-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.4s var(--gf-ease), color 0.4s var(--gf-ease);
}
.gf-btn__arrow { display: inline-block; transition: transform 0.4s var(--gf-ease); }
.gf-card:hover .gf-btn { background: var(--gf-ink); color: var(--gf-paper); }
.gf-card:hover .gf-btn__arrow { transform: rotate(45deg); }

/* ---------- article hero ---------- */
.gf-article { padding-top: var(--gf-pad); }
.gf-back {
  display: inline-block;
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--gf-muted);
  transition: color 0.3s var(--gf-ease);
}
.gf-back:hover { color: var(--gf-ink); }

.gf-ahero { position: relative; }
.gf-ahero__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--gf-radius);
  background: var(--gf-ink);
}
.gf-ahero__media img { width: 100%; height: 100%; object-fit: cover; }
.gf-ahero__tab { padding-top: 22px; }
.gf-ahero__title {
  max-width: 24ch;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.gf-ahero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--gf-muted);
}
.gf-ahero__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* From laptop width the title moves into a tab cut out of the cover, as on the listing hero. */
@media (min-width: 1024px) {
  .gf-ahero__media { aspect-ratio: auto; height: min(80vh, 760px); }
  .gf-ahero__tab::before,
  .gf-ahero__tab::after { display: block; }
  .gf-ahero__tab {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: min(60%, 900px);
    padding: 26px 40px 0 0;
    border-top-right-radius: var(--gf-radius);
    background: var(--gf-paper);
  }
}
@media (max-width: 1023px) {
  .gf-ahero__tab::before,
  .gf-ahero__tab::after { display: none; }
}

/* ---------- article body ---------- */
.gf-abody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
}
@media (min-width: 1024px) {
  .gf-abody {
    grid-template-columns: 250px minmax(0, 720px);
    column-gap: clamp(48px, 7vw, 140px);
    padding-top: 88px;
  }
}

/* contents: a collapsible list on small screens, a sticky rail from laptop width */
.gf-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--gf-ink);
  border-bottom: 1px solid var(--gf-line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.gf-toc summary::-webkit-details-marker { display: none; }
.gf-toc summary::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; transition: transform 0.3s var(--gf-ease); }
.gf-toc details[open] summary::after { transform: rotate(45deg); }
.gf-toc ol {
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 8px;
  font-size: 14px;
  line-height: 1.3;
}
.gf-toc li {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 28px 1fr;
}
.gf-toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gf-gray);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--gf-ease);
}
.gf-toc a { color: var(--gf-muted); transition: color 0.3s var(--gf-ease); }
.gf-toc a:hover,
.gf-toc a[aria-current='true'] { color: var(--gf-ink); }
.gf-toc a[aria-current='true'] { font-weight: 500; }
.gf-toc li:has(a[aria-current='true'])::before { color: var(--gf-ink); }
@media (min-width: 1024px) {
  .gf-toc {
    position: sticky;
    top: calc(var(--gf-header-h) + 28px);
    align-self: start;
    max-height: calc(100vh - var(--gf-header-h) - 56px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .gf-toc summary { pointer-events: none; }
  .gf-toc summary::after { display: none; }
}

.gf-prose {
  min-width: 0;
  font-size: 18px;
  line-height: 1.55;
}
.gf-prose p,
.gf-prose ul,
.gf-prose ol { margin-bottom: 1.05em; }
.gf-prose .gf-lede {
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.gf-prose strong { font-weight: 600; }
.gf-prose a {
  text-decoration: underline;
  text-decoration-color: var(--gf-fox);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--gf-ease);
}
.gf-prose a:hover { text-decoration-color: var(--gf-ink); }

.gf-prose ul > li,
.gf-prose ol > li { position: relative; margin-bottom: 0.5em; }
.gf-prose ul > li { padding-left: 24px; }
.gf-prose ul > li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gf-fox);
}
.gf-prose ol { counter-reset: item; }
.gf-prose ol > li { counter-increment: item; padding-left: 32px; }
.gf-prose ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.18em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gf-ink);
  color: var(--gf-paper);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.gf-section { padding-top: 64px; scroll-margin-top: calc(var(--gf-header-h) + 8px); }
.gf-section h2 {
  margin-bottom: 22px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.gf-prose .gf-tagline {
  margin: 44px 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* tables scroll sideways on small screens rather than squashing */
.gf-table {
  margin: 30px 0 34px;
  overflow-x: auto;
  border-top: 1.5px solid var(--gf-ink);
}
.gf-table table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}
.gf-table[data-cols='4'] table,
.gf-table[data-cols='5'] table { min-width: 720px; }
.gf-table th,
.gf-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--gf-line);
  text-align: left;
  vertical-align: top;
}
.gf-table thead th {
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gf-muted);
  vertical-align: bottom;
}
.gf-table tbody th { font-weight: 500; }
/* wide tables reach into the right margin only where there is room for it (at 1280 px it ran off the screen) */
@media (min-width: 1400px) {
  .gf-table[data-cols='4'],
  .gf-table[data-cols='5'] { width: calc(100% + 200px); }
}
/* Phones: tables of two or three columns fit the screen, their text wrapping, instead of scrolling with the right
   column cut off mid-word. Wider ones still scroll sideways, with a soft shadow at whichever edge has more to see
   (the white covers travel with the table and hide a shadow once its end is reached). */
@media (max-width: 767px) {
  .gf-table[data-cols='2'] table,
  .gf-table[data-cols='3'] table { min-width: 0; font-size: 14px; }
  .gf-table[data-cols='2'] :is(th, td),
  .gf-table[data-cols='3'] :is(th, td) { padding-right: 12px; overflow-wrap: break-word; hyphens: auto; }
  .gf-table[data-cols='2'] :is(th, td):last-child,
  .gf-table[data-cols='3'] :is(th, td):last-child { padding-right: 0; }
  .gf-table[data-cols='4'],
  .gf-table[data-cols='5'] {
    background:
      linear-gradient(90deg, var(--gf-paper) 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
      linear-gradient(270deg, var(--gf-paper) 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(13, 13, 13, 0.18), rgba(13, 13, 13, 0)) left / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(13, 13, 13, 0.18), rgba(13, 13, 13, 0)) right / 14px 100% no-repeat scroll;
  }
}

.gf-faq { padding-top: 88px; }
.gf-faq__item { border-top: 1px solid var(--gf-ink); }
.gf-faq__item:last-child { border-bottom: 1px solid var(--gf-ink); }
.gf-faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.gf-faq summary::-webkit-details-marker { display: none; }
.gf-faq summary h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--gf-ease);
}
.gf-faq summary:hover h3 { color: #b47a06; }
.gf-faq__icon { position: relative; flex: none; width: 18px; height: 18px; margin-top: 3px; transition: transform 0.35s var(--gf-ease); }
.gf-faq__icon::before,
.gf-faq__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.gf-faq__icon::after { transform: rotate(90deg); }
.gf-faq__item[open] .gf-faq__icon { transform: rotate(45deg); }
.gf-faq__answer { padding: 0 40px 10px 0; font-size: 17px; }

/* ---------- keep reading ---------- */
.gf-related {
  margin-top: 120px;
  padding-top: 14px;
  border-top: 1px solid var(--gf-ink);
}
.gf-related__title {
  margin-bottom: 28px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.gf-grid.gf-grid--related { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gf-grid--related .gf-card__title { font-size: clamp(20px, 1.7vw, 24px); }

/* ---------- footer ---------- */
.gf-footer {
  margin-top: 120px;
  border-top: 1px solid var(--gf-ink);
  padding: 90px 0 18px;
}
.gf-listing + .gf-footer { margin-top: 0; }
.gf-footer__cta {
  text-wrap: balance;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.gf-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 110px;
}
@media (min-width: 768px) { .gf-footer__cols { grid-template-columns: 1fr 1fr; } }
.gf-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.gf-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 22px; letter-spacing: -0.01em; }
.gf-footer__links a { transition: color 0.3s var(--gf-ease); }
.gf-footer__links a:hover { color: var(--gf-fox); }
.gf-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 110px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
