/* Case-study repository */
.post-type-archive-fuel_case_study .site-main,
.post-type-archive-fuel_case_study #content,
.fuel-case-library {
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.fuel-case-library,
.fuel-case-library * { box-sizing: border-box; }

.fuel-case-library {
  --library-ink: #0b0b0d;
  --library-charcoal: #17171a;
  --library-muted: #65656c;
  --library-line: #dedee2;
  --library-paper: #f7f7f8;
  --library-red: #c81017;
  background: #fff;
  color: var(--library-ink);
  font-family: Inter, Arial, sans-serif;
  overflow: clip;
}

.fuel-library-wrap {
  margin: 0 auto;
  max-width: 1320px;
  padding-left: clamp(20px, 4vw, 54px);
  padding-right: clamp(20px, 4vw, 54px);
  width: 100%;
}

.fuel-library-hero {
  background:
    radial-gradient(circle at 86% 22%, rgba(200, 16, 23, .28), transparent 24%),
    linear-gradient(135deg, #09090a 0%, #171719 72%, #230608 100%);
  color: #fff;
  min-height: 610px;
  overflow: hidden;
  padding: 44px 0 76px;
  position: relative;
}

.fuel-library-hero::after {
  background: var(--library-red);
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  width: min(34vw, 510px);
}

.fuel-library-hero__grid {
  align-items: end;
  display: grid;
  gap: clamp(48px, 8vw, 120px);
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .55fr);
}

.fuel-library-breadcrumbs {
  align-items: center;
  color: #aaaab0;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 9px;
  margin: 0 0 clamp(70px, 10vw, 132px);
}

.fuel-library-breadcrumbs a {
  color: #fff;
  text-decoration: none;
}

.fuel-library-breadcrumbs a:hover,
.fuel-library-breadcrumbs a:focus-visible { color: #ff5960; }

.fuel-library-eyebrow {
  color: #ff5960;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.fuel-library-eyebrow--dark { color: var(--library-red); }

.fuel-library-hero h1 {
  color: #fff;
  font-size: clamp(58px, 8.7vw, 126px);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: .82;
  margin: 0;
  max-width: 920px;
  text-wrap: balance;
}

.fuel-library-hero h1 em {
  color: #ff333b;
  font-style: normal;
}

.fuel-library-lede {
  color: #d0d0d4;
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.6;
  margin: 34px 0 0;
  max-width: 760px;
}

.fuel-library-disclosure {
  border-left: 2px solid #e62d34;
  color: #aaaab0;
  font-size: 13px;
  line-height: 1.65;
  margin: 26px 0 0;
  max-width: 720px;
  padding-left: 16px;
}

.fuel-library-disclosure strong { color: #fff; }

.fuel-library-index {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.65);
  color: var(--library-ink);
  margin-bottom: 12px;
  padding: 28px;
  position: relative;
}

.fuel-library-index::before {
  background: var(--library-red);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 28px;
  position: absolute;
  right: 28px;
  top: -3px;
}

.fuel-library-index__number {
  color: #c3c3c7;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 68px;
}

.fuel-library-index p {
  font-size: clamp(24px, 2.35vw, 34px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0 0 26px;
}

.fuel-library-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fuel-library-index li {
  background: #f0f0f2;
  border: 1px solid #e5e5e7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .07em;
  padding: 8px 11px;
  text-transform: uppercase;
}

.fuel-library-browser { padding: clamp(70px, 8vw, 118px) 0 110px; }

.fuel-library-browser__intro {
  align-items: end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 38px;
}

.fuel-library-browser__intro h2,
.fuel-library-empty h2 {
  font-size: clamp(40px, 5.3vw, 72px);
  font-weight: 820;
  letter-spacing: -.055em;
  line-height: .95;
  margin: 0;
}

.fuel-library-browser__intro > p {
  color: var(--library-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 4px;
  max-width: 410px;
}

.fuel-library-filter {
  background: var(--library-paper);
  border: 1px solid #e3e3e6;
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(12,12,14,.07), inset 0 1px 0 #fff;
  padding: clamp(18px, 2.5vw, 30px);
}

.fuel-library-search label,
.fuel-library-field label {
  color: #4d4d53;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.fuel-library-search__control { position: relative; }

.fuel-library-search__control svg {
  color: #74747a;
  left: 17px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.fuel-library-search input,
.fuel-library-field select {
  appearance: none;
  background-color: #fff;
  border: 1px solid #d3d3d7;
  border-radius: 13px;
  color: var(--library-ink);
  font: inherit;
  font-size: 15px;
  min-height: 50px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}

.fuel-library-search input { padding: 12px 16px 12px 49px; }

.fuel-library-field select {
  background-image: linear-gradient(45deg, transparent 50%, #5d5d63 50%), linear-gradient(135deg, #5d5d63 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding: 12px 34px 12px 13px;
}

.fuel-library-search input:focus,
.fuel-library-field select:focus {
  border-color: var(--library-red);
  box-shadow: 0 0 0 4px rgba(200,16,23,.11);
}

.fuel-library-selects {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 16px;
}

.fuel-library-filter__actions {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-top: 20px;
}

.fuel-library-filter__actions button,
.fuel-library-empty > a {
  align-items: center;
  background: var(--library-red);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.2), 0 8px 20px rgba(200,16,23,.2);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 780;
  gap: 18px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
}

.fuel-library-filter__actions button:hover,
.fuel-library-filter__actions button:focus-visible,
.fuel-library-empty > a:hover,
.fuel-library-empty > a:focus-visible { background: #a70e14; color: #fff; transform: translateY(-1px); }

.fuel-library-filter__actions > a {
  color: #353539;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: #a8a8ad;
  text-underline-offset: 4px;
}

.fuel-library-active {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.fuel-library-active > span {
  color: #77777e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 32px;
  text-transform: uppercase;
}

.fuel-library-active ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fuel-library-active a {
  background: #111113;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  gap: 5px;
  line-height: 1;
  padding: 10px 13px;
  text-decoration: none;
}

.fuel-library-active a:hover,
.fuel-library-active a:focus-visible { background: var(--library-red); color: #fff; }

.fuel-library-results-head {
  align-items: baseline;
  border-bottom: 1px solid var(--library-line);
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-bottom: 18px;
}

.fuel-library-results-head p {
  color: #6b6b72;
  font-size: 13px;
  margin: 0;
}

.fuel-library-results-head p:first-child {
  color: #2c2c30;
  font-size: 15px;
}

.fuel-library-grid {
  display: grid;
  gap: 38px 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.fuel-library-card {
  background: #fff;
  border: 1px solid #dfdfe2;
  border-radius: 26px;
  box-shadow: 0 9px 28px rgba(15,15,17,.055);
  margin: 0;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fuel-library-card:hover {
  border-color: #c6c6ca;
  box-shadow: 0 20px 48px rgba(15,15,17,.1);
  transform: translateY(-4px);
}

.fuel-library-card__media {
  background: #101012;
  display: block;
  overflow: hidden;
  position: relative;
}

.fuel-library-card__media::after {
  background: linear-gradient(to top, rgba(0,0,0,.26), transparent 42%);
  bottom: 0;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.fuel-library-card__media img {
  aspect-ratio: 16 / 10;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

.fuel-library-card:hover .fuel-library-card__media img { transform: scale(1.025); }

.fuel-library-card__fallback {
  align-items: flex-start;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, transparent 0 54%, rgba(255,255,255,.06) 54% 55%, transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(231,35,43,.58), transparent 30%),
    #111113;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.fuel-library-card__fallback span {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .85;
}

.fuel-library-card__fallback small {
  color: #ff4d55;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  margin-top: 8px;
}

.fuel-library-card__open {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  bottom: 16px;
  color: #111113;
  display: flex;
  font-size: 19px;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 16px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  width: 42px;
  z-index: 1;
}

.fuel-library-card:hover .fuel-library-card__open { background: var(--library-red); color: #fff; transform: rotate(8deg); }

.fuel-library-card__body { padding: 22px 22px 24px; }

.fuel-library-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.fuel-library-card__meta span {
  background: #f0f0f2;
  border: 1px solid #e4e4e6;
  border-radius: 999px;
  color: #3f3f44;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .07em;
  padding: 7px 9px;
  text-transform: uppercase;
}

.fuel-library-card h2 {
  font-size: clamp(23px, 2.2vw, 31px);
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
}

.fuel-library-card h2 a { color: var(--library-ink); text-decoration: none; }
.fuel-library-card h2 a:hover,
.fuel-library-card h2 a:focus-visible { color: var(--library-red); }

.fuel-library-card__summary {
  color: var(--library-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 0;
}

.fuel-library-card__facts {
  border-bottom: 1px solid #e3e3e6;
  border-top: 1px solid #e3e3e6;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0;
  padding: 14px 0;
}

.fuel-library-card__facts div + div { border-left: 1px solid #e3e3e6; padding-left: 14px; }

.fuel-library-card__facts dt {
  color: #818188;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.fuel-library-card__facts dd {
  color: #27272b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.fuel-library-card__link {
  align-items: center;
  color: var(--library-red);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 9px;
  text-decoration: none;
}

.fuel-library-card__link:hover,
.fuel-library-card__link:focus-visible { color: #8f0a0f; gap: 12px; }

.fuel-library-pagination { margin-top: 62px; }
.fuel-library-pagination .page-numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fuel-library-pagination a,
.fuel-library-pagination span.page-numbers {
  align-items: center;
  background: #f3f3f4;
  border: 1px solid #dfdfe2;
  border-radius: 999px;
  color: #1e1e21;
  display: inline-flex;
  font-size: 13px;
  font-weight: 750;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 14px;
  text-decoration: none;
}

.fuel-library-pagination a:hover,
.fuel-library-pagination a:focus-visible,
.fuel-library-pagination .current { background: #111113; border-color: #111113; color: #fff; }

.fuel-library-empty {
  background: var(--library-paper);
  border: 1px solid #e0e0e3;
  border-radius: 28px;
  margin-top: 28px;
  padding: clamp(34px, 7vw, 86px);
  text-align: center;
}

.fuel-library-empty p:not(.fuel-library-eyebrow) { color: var(--library-muted); margin: 20px 0 28px; }

.fuel-case-library a:focus-visible,
.fuel-case-library button:focus-visible,
.fuel-case-library input:focus-visible,
.fuel-case-library select:focus-visible { outline: 3px solid #ff5a61; outline-offset: 3px; }

@media (max-width: 1024px) {
  .fuel-library-hero { min-height: 0; }
  .fuel-library-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); }
  .fuel-library-hero h1 { font-size: clamp(58px, 9.2vw, 94px); }
  .fuel-library-selects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fuel-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .fuel-library-hero { padding: 28px 0 54px; }
  .fuel-library-hero__grid { gap: 40px; grid-template-columns: 1fr; }
  .fuel-library-breadcrumbs { margin-bottom: 62px; }
  .fuel-library-hero h1 { font-size: clamp(54px, 17vw, 78px); line-height: .86; }
  .fuel-library-lede { font-size: 17px; margin-top: 26px; }
  .fuel-library-disclosure { font-size: 12px; }
  .fuel-library-index { border-radius: 22px; margin: 0; padding: 24px; }
  .fuel-library-index__number { margin-bottom: 38px; }
  .fuel-library-browser { padding: 66px 0 78px; }
  .fuel-library-browser__intro { align-items: flex-start; flex-direction: column; gap: 18px; }
  .fuel-library-browser__intro h2 { font-size: 46px; }
  .fuel-library-filter { border-radius: 20px; padding: 16px; }
  .fuel-library-selects { grid-template-columns: 1fr; }
  .fuel-library-search input,
  .fuel-library-field select { font-size: 16px; min-height: 52px; }
  .fuel-library-filter__actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .fuel-library-filter__actions button { width: 100%; }
  .fuel-library-filter__actions > a { align-self: center; }
  .fuel-library-active { align-items: flex-start; flex-direction: column; gap: 7px; }
  .fuel-library-active > span { line-height: 1.4; }
  .fuel-library-results-head { margin-top: 38px; }
  .fuel-library-grid { grid-template-columns: 1fr; }
  .fuel-library-card { border-radius: 22px; }
  .fuel-library-card h2 { font-size: 27px; }
  .fuel-library-pagination .page-numbers { gap: 5px; }
  .fuel-library-pagination a,
  .fuel-library-pagination span.page-numbers { min-height: 40px; min-width: 40px; padding: 7px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .fuel-case-library *,
  .fuel-case-library *::before,
  .fuel-case-library *::after { scroll-behavior: auto !important; transition: none !important; }
}
