/*
 * Team Computers — Long-Form Case Study v2
 * Extracted from team-computers-case-study-template-no-notes.html (draft v3, Sep 2026)
 * Google Fonts + site-wide header/footer styles are handled by the theme globally.
 * ============================================================================
 */

/* Design tokens (light theme only — mirrors the live theme) */
:root {
  color-scheme: light;
  --ink: #0B0D12;
  --text: #3B4252;
  --muted: #6B7180;
  --label: #7D7D7D;
  --line: #EAEAEA;
  --line-2: #DCDFE6;
  --paper: #FFFFFF;
  --soft: #F7F8FA;
  --blue: #036CD5;
  --blue-ink: #02519F;
  --blue-2: #2B6DF5;
  --cyan: #1EC9F2;
  --green: #0DB16A;
  --green-ink: #067A48;
  --dot: #51D281;
  --violet: #9266FD;
  --gold: #A09575;
  --slate: #474F62;
  --p-blue: #F2F5FE;
  --p-green: #EEF8F1;
  --p-lilac: #F6F0FE;
  --p-amber: #FEF7EB;
  --p-grey: #F7F7F7;
  --n-blue: #7E9CE6;
  --n-green: #62BC88;
  --n-lilac: #B99BE0;
  --n-amber: #D9A54F;
  --amber-ink: #9A6A12;
  --navy: #041024;
  --night: #000000;
  --night-field: #1A1A1F;
  --night-line: rgba(255, 255, 255, .10);
  --night-muted: #A1A1AA;
  --font: "Montserrat", "Graphik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --pill: 999px;
  --shadow: 0 4px 15px rgba(0, 0, 0, .10);
  --container: 1240px;
}

/* Base resets scoped to the case study template */
.cs-page *, .cs-page *::before, .cs-page *::after { box-sizing: border-box; }
.cs-page [hidden] { display: none !important; }
.cs-page img, .cs-page svg { max-width: 100%; }
.cs-page a { color: inherit; }
.cs-page :focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); z-index: 100; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--pill); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn-ghost { background: rgba(217,217,217,.16); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Hero */
.cs-hero { text-align: center; max-width: 1000px; margin-inline: auto; padding-block: 40px 44px; }
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0 0 26px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li { display: flex; align-items: center; gap: 6px; }
.crumbs li+li::before { content: "/"; color: var(--line-2); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.cs-hero h1 { font-size: clamp(32px, 4.8vw, 58px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; color: var(--ink); margin: 6px 0 18px; text-wrap: balance; }
.dek { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; font-weight: 500; color: #4A5060; max-width: 800px; margin: 0 auto; text-wrap: pretty; }
.byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.byline .people { display: flex; align-items: center; gap: 10px; }
.byline strong { color: var(--ink); font-weight: 600; }
.avatars { display: flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--p-blue); color: var(--blue); border: 2px solid #fff; }
.avatar .ico { width: 16px; height: 16px; }
.byline .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.byline time { font-variant-numeric: tabular-nums; }
.cs-tax { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; margin: 14px 0 0; font-size: 15px; }
.cs-tax > div { display: flex; align-items: baseline; gap: 8px; padding-inline: 20px; }
.cs-tax > div+div { border-left: 1px solid var(--line-2); }
.cs-tax dt { color: var(--muted); font-weight: 500; }
.cs-tax dt::after { content: ":"; }
.cs-tax dd { margin: 0; font-weight: 600; }
.cs-tax a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.cs-tax a:hover { color: var(--blue); text-decoration-color: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Hero visual */
.hero-media { margin: 0; }
.hero-visual {
  position: relative; aspect-ratio: 16/7; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 80% at 14% 30%, rgba(43,109,245,.60), transparent 62%),
    radial-gradient(42% 62% at 86% 18%, rgba(30,201,242,.42), transparent 62%),
    radial-gradient(48% 70% at 72% 105%, rgba(146,102,253,.40), transparent 62%),
    radial-gradient(34% 52% at 34% 100%, rgba(13,177,106,.30), transparent 62%),
    var(--navy);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
}
.glass { position: absolute; display: grid; gap: 2px; padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; text-align: left; }
.glass strong { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.glass span { font-size: 12.5px; color: rgba(255,255,255,.78); font-weight: 500; }
.g1 { left: 7%; top: 20%; }
.g2 { right: 9%; top: 34%; }
.g3 { left: 36%; bottom: 26%; }
@media (prefers-reduced-motion: no-preference) {
  .glass { animation: float 9s ease-in-out infinite; }
  .g2 { animation-delay: -3s; }
  .g3 { animation-delay: -6s; }
  @keyframes float { 50% { transform: translateY(-8px); } }
}
.spec-tag { position: absolute; right: 16px; bottom: 74px; font-size: 11.5px; font-weight: 500; color: rgba(255,255,255,.72); background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: var(--pill); }

/* Snapshot card */
.snapshot { position: relative; z-index: 1; margin-top: -58px; display: flex; justify-content: center; padding-inline: clamp(0px, 3vw, 40px); }
.snap-card { width: 100%; max-width: 1040px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); position: relative; z-index: 1; }
.snap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.snap-grid > div { padding: 24px 28px; }
.snap-grid > div+div { border-left: 1px solid var(--line); }
.snap-grid dt { font-size: 13.5px; font-weight: 500; color: var(--label); margin-bottom: 6px; }
.snap-grid dd { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* Article layout */
.cs-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); padding-block: 76px 24px; }
.cs-aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 28px); align-self: start; display: grid; gap: 22px; max-height: calc(100vh - 56px); overflow: auto; padding-bottom: 8px; }
.toc summary { list-style: none; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); padding-bottom: 14px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; }
.toc a { display: block; padding: 8px 0 8px 16px; border-left: 2px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 600; border-left-color: var(--blue); }
.aside-cta { background: var(--p-blue); border-radius: var(--r-md); padding: 22px; }
.aside-cta p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--text); }
.aside-cta strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.share { display: flex; align-items: center; gap: 8px; }
.share-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-right: 6px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: border-color .2s, color .2s; }
.share a:hover, .share button:hover { border-color: var(--blue); color: var(--blue); }
.share .ico { width: 16px; height: 16px; }
.fill { fill: currentColor; stroke: none; }

.cs-main { min-width: 0; max-width: 760px; }
.cs-section { padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.cs-section:first-child { padding-top: 0; border-top: 0; }
.cs-section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin: 0 0 24px; text-wrap: balance; }
.cs-section :where(p) { font-size: 17px; line-height: 1.8; margin: 0 0 20px; color: var(--text); }
.cs-section :where(h3) { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 44px 0 12px; text-wrap: balance; }
.cs-section :where(a) { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cs-section :where(strong) { color: var(--ink); font-weight: 600; }
.lede { font-size: 19px !important; font-weight: 500; color: #2C3240 !important; line-height: 1.7 !important; }

/* TLDR box */
.tldr { border: 1px solid var(--line-2); border-radius: 24px; padding: 30px 32px; margin-bottom: 36px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.tldr p.summary { font-size: 18px; line-height: 1.75; font-weight: 500; color: #2C3240; margin: 0; }

/* Client facts DL */
.facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 500; color: var(--label); }
.facts dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Challenge rows */
.pain { list-style: none; margin: 30px 0 8px; padding: 0; display: grid; gap: 12px; }
.pain li { display: flex; align-items: center; gap: 22px; padding: 20px 26px; border-radius: var(--r-md); background: var(--p-grey); transition: transform .3s; }
.pain li:hover { transform: scale(1.012); }
.pain .n { font-size: 44px; font-weight: 700; line-height: 1; color: var(--gold); min-width: 62px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.pain p { margin: 0; font-size: 16.5px; line-height: 1.55; font-weight: 600; color: var(--ink); }
.pain li:nth-child(5n+2) { background: var(--p-lilac); } .pain li:nth-child(5n+2) .n { color: var(--n-lilac); }
.pain li:nth-child(5n+3) { background: var(--p-blue); } .pain li:nth-child(5n+3) .n { color: var(--n-blue); }
.pain li:nth-child(5n+4) { background: var(--p-green); } .pain li:nth-child(5n+4) .n { color: var(--n-green); }
.pain li:nth-child(5n) { background: var(--p-amber); } .pain li:nth-child(5n) .n { color: var(--n-amber); }

/* Reasons (Why TC) */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 32px; }
.reason { border-radius: var(--r-md); padding: 24px; background: var(--p-blue); }
.reason:nth-child(2) { background: var(--p-green); }
.reason:nth-child(3) { background: var(--p-lilac); }
.reason h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.35; }
.reason p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Solution grid */
.solution-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 12px; padding: 0; }
.solution-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solution-grid:has(> :nth-child(5):last-child) > :last-child,
.solution-grid:has(> :nth-child(7):last-child) > :last-child { grid-column: 1/-1; }
.sol { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; display: grid; gap: 10px; align-content: start; background: #fff; }
.sol-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--p-blue); color: var(--blue); margin-bottom: 4px; }
.sol:nth-child(6n+2) .sol-ico { background: var(--p-green); color: var(--green); }
.sol:nth-child(6n+3) .sol-ico { background: var(--p-lilac); color: var(--violet); }
.sol:nth-child(6n+4) .sol-ico { background: var(--p-amber); color: var(--amber-ink); }
.sol:nth-child(6n+5) .sol-ico { background: #E9FAFE; color: #0A93B5; }
.sol:nth-child(6n) .sol-ico { background: var(--p-grey); color: var(--slate); }
.sol h3 { margin: 0; font-size: 17px; }
.sol p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Tools list */
.tools { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 16px 0 0; padding: 0; }
.tools li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 9px 16px; background: #fff; }
.tools li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* Roadblocks */
.roadblocks { display: grid; gap: 14px; margin-top: 30px; }
.rb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rb > div { padding: 24px 26px; }
.rb .problem { background: var(--p-amber); }
.rb-label { display: block; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.problem .rb-label { color: var(--amber-ink); }
.fix .rb-label { color: var(--green-ink); }
.rb h3 { margin: 0 0 8px; font-size: 17px; }
.rb p { margin: 0; font-size: 15px; line-height: 1.65; }

/* Impact tiles */
.impact { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 30px 0 40px; padding: 0; }
.imp { border-radius: 24px; padding: 28px; display: grid; gap: 6px; align-content: start; background: #F2F5FE; }
.imp:nth-child(4n+2) { background: #EEF8F1; }
.imp:nth-child(4n+3) { background: #F6F0FE; }
.imp:nth-child(4n+4) { background: #FEF7EB; }
.imp-ico { width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); margin-bottom: 12px; }
.imp:nth-child(4n+2) .imp-ico { color: var(--green); }
.imp:nth-child(4n+3) .imp-ico { color: var(--violet); }
.imp:nth-child(4n+4) .imp-ico { color: var(--amber-ink); }
.impact:has(> :nth-child(3):last-child),
.impact:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.impact:has(> :first-child:last-child) > :last-child,
.impact:has(> :nth-child(5):last-child) > :last-child { grid-column: 1/-1; }
.imp .num { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.imp h3 { margin: 8px 0 2px; font-size: 17px; }
.imp p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Testimonial quote */
.quote { margin: 44px 0 0; background: var(--p-lilac); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); }
.quote-mark { display: block; font-size: 84px; line-height: .6; height: 36px; font-weight: 700; color: var(--violet); font-family: Georgia, "Times New Roman", serif; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: clamp(19px, 2.1vw, 23px); line-height: 1.55; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.quote .avatar { width: 48px; height: 48px; background: #fff; color: var(--violet); border: 0; margin: 0; }
.quote .avatar .ico { width: 22px; height: 22px; }
.quote cite { font-style: normal; display: grid; gap: 2px; }
.quote cite b { font-size: 15px; color: var(--ink); font-weight: 600; }
.quote cite span { font-size: 14px; color: var(--muted); }

/* Key takeaways */
.takeaways { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.takeaways li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.65; color: var(--text); }
.takeaways .ck { width: 30px; height: 30px; border-radius: 50%; background: var(--p-green); color: var(--green); display: grid; place-items: center; margin-top: -1px; }
.takeaways .ck .ico { width: 16px; height: 16px; stroke-width: 2.4; }

/* FAQ accordion */
.faq { border-top: 1px solid var(--line); margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { all: unset; }
.pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .25s, background-color .25s, border-color .25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .pm { transform: rotate(45deg); background: var(--blue); border-color: var(--blue); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq .ans p { margin: 0 0 24px; font-size: 16.5px; line-height: 1.75; max-width: 66ch; }

/* End row (tags + share) */
.endrow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags a { display: inline-block; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 7px 14px; }
.tags a:hover { border-color: var(--blue); color: var(--blue); }

/* Related case studies */
.related { background: var(--soft); padding-block: 84px; margin-top: 64px; }
.related-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 34px; }
.related h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--blue); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .ico { width: 18px; height: 18px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 0; padding: 0; }
.card a { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.thumb { position: relative; aspect-ratio: 16/10; max-width: 100%; border-radius: var(--r-md); overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #E3ECFF, #F6F0FE); }
.thumb .ico { width: 56px; height: 56px; stroke-width: 1.3; color: var(--blue); transition: transform .4s; }
.card:nth-child(2) .thumb { background: linear-gradient(135deg, #DFF5EA, #EAF6FF); }
.card:nth-child(2) .thumb .ico { color: var(--green); }
.card:nth-child(3) .thumb { background: linear-gradient(135deg, #FFF1DC, #FDEBF3); }
.card:nth-child(3) .thumb .ico { color: var(--amber-ink); }
.card a:hover .thumb .ico { transform: scale(1.08); }
.thumb-tag { position: absolute; left: 14px; top: 14px; background: #fff; border-radius: var(--pill); padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ink); text-wrap: balance; }
.card .text-link { font-size: 14px; }
.services { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.services-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-right: 8px; }
.services a { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 10px 18px; }
.services a:hover { border-color: var(--blue); color: var(--blue); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 20px; border-radius: var(--pill); z-index: 80; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1000px) {
  .cs-body { grid-template-columns: minmax(0, 1fr); padding-top: 56px; gap: 0; }
  .cs-aside { position: static; max-height: none; overflow: visible; margin-bottom: 40px; }
  .toc { border: 1px solid var(--line-2); border-radius: 16px; padding: 0 18px; }
  .toc summary { cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 20px; font-weight: 500; color: var(--ink); letter-spacing: 0; }
  .toc[open] summary::after { content: "\2212"; }
  .toc ol { padding-bottom: 16px; }
  .aside-cta, .cs-aside .share { display: none; }
  .cs-main { max-width: none; }
  .snap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap-grid > div:nth-child(3) { border-left: 0; }
  .snap-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .reasons { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cs-tax { flex-direction: column; align-items: center; }
  .cs-tax > div+div { border-left: 0; }
  .hero-visual { aspect-ratio: 4/3; }
  .g1 { left: 5%; top: 9%; } .g2 { right: 5%; top: auto; bottom: 62px; } .g3, .spec-tag { display: none; }
  .glass { padding: 10px 14px; }
  .byline { gap: 6px 14px; }
  .byline .sep { display: none; }
  .byline .people { flex-basis: 100%; justify-content: center; }
  .snapshot { margin-top: -40px; padding-inline: 10px; }
  .snap-grid > div { padding: 18px 18px; }
  .tldr { padding: 24px 22px; margin-bottom: 28px; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pain li { gap: 16px; padding: 18px 18px; }
  .pain .n { font-size: 32px; min-width: 44px; }
  .solution-grid, .impact { grid-template-columns: minmax(0, 1fr); }
  .rb { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Theme-level overrides: reset global blockquote styling inside the testimonial, keep button text white */
.quote blockquote { background: none; border: 0; box-shadow: none; padding: 0; font-style: normal; quotes: none; }
.quote blockquote::before, .quote blockquote::after { content: none; display: none; }
.quote blockquote p { font-style: normal; }
.cs-aside .aside-cta .btn-primary, .cs-aside .aside-cta .btn-primary:hover { color: #fff; }

/* Related cards: theme's global .card adds a border, so give the content room inside it */
.related .card { padding: 14px 14px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.related .card h3, .related .card .text-link { padding-inline: 6px; }

/* Theme link colour overrides button text: force button colours everywhere on this template */
body.single-case_study a.btn-primary, body.single-case_study a.btn-primary:hover, body.single-case_study a.btn-primary:visited { color: #fff; }
body.single-case_study a.btn-ghost { color: var(--ink); }
body.single-case_study a.btn-ghost:hover { color: #fff; }

/* Custom uploaded icons */
.imp-ico .cs-custom-ico, .sol-ico .cs-custom-ico { width: 26px; height: 26px; object-fit: contain; display: block; }

/* Font Awesome icons in tile/solution circles */
.imp-ico .cs-fa-ico, .sol-ico .cs-fa-ico { font-size: 20px; line-height: 1; }

/* Result tiles: the big figure can be a word ("Optimized", "Strengthened"), so keep it inside the tile */
.imp { min-width: 0; }
.imp .num { max-width: 100%; overflow-wrap: anywhere; }
.imp .num.num-word { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; font-weight: 600; }

/* Responsive grids: the "3 or 6 items" layouts use :has() with higher specificity than the media rules above,
   so on tablets/phones they stayed at 3 columns and squeezed the text. Re-assert the narrow layouts here. */
@media (max-width: 1000px) {
  .impact:has(> :nth-child(3):last-child), .impact:has(> :nth-child(6):last-child),
  .solution-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .impact, .impact:has(> :nth-child(3):last-child), .impact:has(> :nth-child(6):last-child),
  .solution-grid, .solution-grid:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
  .impact > :last-child, .solution-grid > :last-child { grid-column: auto; }
  .imp .num.num-word { font-size: clamp(26px, 7vw, 34px); }
}
