/* tmcalm.nl additions on top of the shared TMC component sheet (site.css). */

/* brand: five nav items, so the lockup stays compact */
.brand-txt b { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-txt span { font-size: 0.75rem; font-weight: 600; color: var(--on-navy-2); }
.nav a { padding-inline: 0.8rem; }
@media (max-width: 1180px) and (min-width: 961px) { .nav a { padding-inline: 0.55rem; font-size: 0.9375rem; } .brand-txt span { display: none; } }

/* hero: kanban panel */
.kb { padding: 1.25rem 1.25rem 1.5rem; }
.kb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.kb-col { background: var(--tint); border-radius: 14px; padding: 0.6rem; display: grid; gap: 0.5rem; align-content: start; min-height: 190px; }
.kb-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-display); font-weight: 800; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0.2rem 0.35rem 0.4rem; }
.kb-h b { font-size: 0.6875rem; background: var(--white); color: var(--navy); border-radius: 999px; padding: 0.1rem 0.5rem; }
.kb-card { background: var(--white); border-radius: 10px; padding: 0.6rem 0.65rem; display: grid; grid-template-columns: 10px 1fr; gap: 0.5rem 0.55rem; align-items: center; font-family: var(--f-text); font-size: 0.8125rem; font-weight: 600; color: var(--ink); box-shadow: 0 1px 0 var(--line-soft), 0 4px 12px -8px rgba(0,30,80,0.3); animation: kb-in 600ms var(--ease) both; animation-delay: calc(300ms + var(--i) * 70ms); }
.kb-card i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
.kb-card em { grid-column: 2; height: 5px; width: 55%; border-radius: 3px; background: var(--line); }
@keyframes kb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .kb-card { animation: none; } }
@media (max-width: 480px) { .kb-cols { grid-template-columns: repeat(2, 1fr); } .kb-col:last-child { display: none; } }

/* client and product logos */
.clients { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.cl-h { font-size: 0.9375rem; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 1.75rem; letter-spacing: 0.01em; }
.logo-grid { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.25rem 2rem; align-items: center; }
.logo-grid li { display: grid; place-items: center; }
.logo-grid img { width: 100%; max-width: 150px; height: auto; filter: grayscale(1); opacity: 0.6; transition: filter 220ms var(--ease), opacity 220ms var(--ease); }
.logo-grid li:hover img { filter: none; opacity: 1; }
@media (max-width: 960px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem 1.25rem; } }
.products h3 { font-size: 0.9375rem; color: var(--muted); font-weight: 700; margin-bottom: 1.25rem; }
.prod-grid { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem 1.5rem; align-items: center; }
.prod-grid li { background: var(--white); border-radius: var(--r-md); padding: 1rem 1.25rem; display: grid; place-items: center; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); }
.prod-grid img { width: 100%; max-width: 170px; height: auto; }
@media (max-width: 960px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }

/* bento: fifth tile (trainingen) */
.tile.t-train { grid-column: span 12; flex-direction: row; align-items: center; gap: clamp(1.5rem, 1rem + 3vw, 4rem); background: var(--blue-50); }
.tile.t-train .t-copy { flex: 1 1 320px; display: flex; flex-direction: column; }
.tile.t-train .t-art { flex: 1 1 320px; margin: 0; }
.train-list { list-style: none; display: grid; gap: 8px; }
.train-list li { display: flex; align-items: center; gap: 0.75rem; background: var(--white); border-radius: 12px; padding: 0.7rem 1rem; font-family: var(--f-display); font-weight: 700; font-size: 0.9375rem; color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-soft); }
.train-list li i { width: 12px; height: 12px; border-radius: 3px; background: var(--c, var(--blue)); flex: none; }
@media (max-width: 720px) { .tile.t-train { flex-direction: column; align-items: stretch; } .tile.t-train .t-art { order: -1; } }

/* why grid with five items: head + 5 = 6 cells */
.why-tmc > *:nth-child(n + 4) { border-top: 1px solid var(--line); }

/* approach steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.steps.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { background: var(--white); border-radius: var(--r-lg); padding: 1.75rem 1.75rem 2rem; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); position: relative; }
.steps .num { display: inline-block; font-family: var(--f-display); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; color: var(--blue-600); background: var(--blue-50); border-radius: 8px; padding: 0.3rem 0.6rem; margin-bottom: 1.1rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.9688rem; }
@media (max-width: 960px) { .steps, .steps.six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps, .steps.six { grid-template-columns: 1fr; } }

/* checks: single column variant and svc-cta links */
.checks.one { grid-template-columns: 1fr; }
.svc-cta .textlink { font-weight: 700; }

/* migration routes */
.routes { list-style: none; display: grid; gap: 0.6rem; }
.routes li { display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 0.75rem; align-items: center; padding: 0.9rem 1.1rem; border-radius: var(--r-md); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); font-family: var(--f-display); font-weight: 700; color: var(--navy); }
.routes li span { color: var(--muted); font-weight: 600; }
.routes li svg { width: 18px; height: 18px; color: var(--blue); }

/* cards grids */
.cgrid, .pgrid, .tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 960px) { .cgrid, .pgrid, .tgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cgrid, .pgrid, .tgrid { grid-template-columns: 1fr; } }
.ccard, .pcard, .tcard { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.ccard:hover, .pcard:hover, .tcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--blue-100); }
.ccard:focus-visible, .pcard:focus-visible, .tcard:focus-visible { outline: none; box-shadow: var(--ring); }
.cc-img, .pc-img { display: block; aspect-ratio: 16 / 9; background: var(--tint); overflow: hidden; }
.cc-img img, .pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--ease); }
.ccard:hover .cc-img img, .pcard:hover .pc-img img { transform: scale(1.03); }
.cc-body, .pc-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.5rem 1.5rem; flex: 1; }
.cc-tag, .pc-cat { font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue-600); }
.cc-client { font-family: var(--f-display); font-weight: 800; font-size: 0.9375rem; color: var(--muted); }
.cc-title, .pc-title { font-family: var(--f-display); font-weight: 800; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--navy); }
.cc-teaser, .pc-desc { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.pc-more { margin-top: auto; padding-top: 0.9rem; display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--f-display); font-weight: 700; color: var(--blue-600); font-size: 0.9375rem; }
.pc-more svg { width: 18px; height: 18px; transition: transform 220ms var(--ease); }
.ccard:hover .pc-more svg, .pcard:hover .pc-more svg, .tcard:hover .pc-more svg { transform: translateX(3px); }
.pc-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.pc-lang { font-family: var(--f-display); font-weight: 800; font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--navy); background: var(--blue-100); border-radius: 6px; padding: 0.15rem 0.45rem; }
.cover-ph { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: center; height: 100%; padding: 14% 10%; background: var(--navy); }
.cover-ph i { height: 14px; border-radius: 4px; background: var(--blue); }
.cover-ph i:nth-child(1) { opacity: 1; grid-column: span 2; }
.cover-ph i:nth-child(2) { opacity: .55; }
.cover-ph i:nth-child(3) { opacity: .25; grid-column: span 3; }
.cover-ph i:nth-child(4) { opacity: .8; grid-column: span 2; }
.cover-ph.ph-1 { background: var(--navy-700); } .cover-ph.ph-2 { background: var(--blue-700); } .cover-ph.ph-3 { background: var(--navy-900); } .cover-ph.ph-4 { background: var(--blue-600); }
.pgrid.has-big .pcard.big { grid-column: span 3; flex-direction: row; }
.pgrid.has-big .pcard.big .pc-img { flex: 1.2 1 0; aspect-ratio: auto; min-height: 320px; }
.pgrid.has-big .pcard.big .pc-body { flex: 1 1 0; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); justify-content: center; }
.pgrid.has-big .pcard.big .pc-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (max-width: 960px) { .pgrid.has-big .pcard.big { grid-column: span 2; flex-direction: column; } .pgrid.has-big .pcard.big .pc-img { aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 600px) { .pgrid.has-big .pcard.big { grid-column: span 1; } }

/* training cards */
.tcard { padding: 1.5rem 1.5rem 1.5rem; gap: 0.5rem; }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.tc-top svg { width: 32px; height: 32px; color: var(--blue); }
.tc-group { font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.tc-title { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: -0.01em; }
.tc-short { color: var(--ink-2); font-size: 0.9375rem; }
.tc-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); font-weight: 600; }
.tc-facts span { display: inline-flex; align-items: center; gap: 0.4rem; }
.tc-facts svg { width: 18px; height: 18px; color: var(--blue); }
.tgroup { font-size: var(--step-2); margin: 2.5rem 0 1.25rem; }
.tgroup:first-of-type { margin-top: 0; }

/* training facts card in the hero */
.facts { background: var(--white); border-radius: var(--r-xl); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); box-shadow: var(--sh-3); display: grid; gap: 0.9rem; color: var(--ink); }
.fact { display: grid; grid-template-columns: 24px 1fr; gap: 0.85rem; align-items: start; font-size: 0.9375rem; line-height: 1.45; }
.fact svg { width: 24px; height: 24px; color: var(--blue); }
.fact small { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }
.facts .btn { margin-top: 0.5rem; justify-content: center; }
.topics .num-s { font-family: var(--f-display); font-weight: 800; font-size: 0.8125rem; color: var(--blue-600); letter-spacing: 0.06em; margin-bottom: 0.75rem; display: block; }
.why-mini { display: grid; gap: 0.75rem; }
.why-mini > div { display: grid; grid-template-columns: 32px 1fr; gap: 0.25rem 1rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); }
.why-mini svg { width: 32px; height: 32px; color: var(--blue); grid-row: span 2; }
.why-mini b { font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.why-mini span { color: var(--ink-2); font-size: 0.9375rem; }

/* team */
.team { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
.member { display: grid; gap: 0.15rem; text-align: left; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); background: var(--tint); margin-bottom: 0.75rem; box-shadow: inset 0 0 0 1px var(--line-soft); }
.member b { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1.0625rem; }
.member span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
.join { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; background: var(--white); border-radius: var(--r-xl); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); }
.join h3 { margin-bottom: 0.35rem; }
.join p { margin: 0; color: var(--ink-2); max-width: 52ch; }

/* cases */
.case-tag { margin: 1rem 0 0; font-family: var(--f-display); font-weight: 700; font-size: 0.875rem; color: var(--blue-300); letter-spacing: 0.02em; }
.case-cover { box-shadow: var(--sh-3); }
.case-cover img { width: 100%; height: auto; display: block; }
.photo-pair.stacked { grid-template-columns: 1fr; margin-top: 1.5rem; }
.quote footer cite { display: block; font-style: normal; font-size: 0.9375rem; color: var(--on-navy-2); margin-bottom: 1rem; }
.quote-light { margin: 0 0 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-soft); }
.quote-light p { margin: 0 0 0.75rem; font-family: var(--f-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.4; color: var(--navy); }
.quote-light cite { font-style: normal; font-size: 0.9375rem; color: var(--muted); }

/* blog */
.cat-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.5rem); }
.cat-chips a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.95rem; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-display); font-weight: 700; font-size: 0.9375rem; color: var(--navy); text-decoration: none; min-height: 40px; }
.cat-chips a small { color: var(--muted); font-weight: 600; }
.cat-chips a:hover { box-shadow: inset 0 0 0 1px var(--blue-300); }
.cat-chips a[aria-current] { background: var(--navy); color: var(--white); box-shadow: none; }
.cat-chips a[aria-current] small { color: var(--on-navy-2); }
.post-hero h1 { max-width: 24ch; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; color: var(--on-navy-2); font-size: 0.9375rem; margin: 0 0 1rem; }
.post-meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 1.5px; background: var(--blue); margin-right: 0.75rem; vertical-align: middle; }
.post-meta .pc-lang { background: rgba(255,255,255,0.12); color: var(--white); }
.post-meta .pc-lang::before { display: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); color: var(--white); font-family: var(--f-display); font-weight: 700; font-size: 0.8125rem; text-decoration: none; }
.chip:hover { background: rgba(255,255,255,0.16); }
.post { padding-block: 0 clamp(3rem, 2rem + 3vw, 5rem); }
.post-wrap { max-width: calc(1060px + 2 * var(--gutter)); }
.post-cover { margin: -3rem 0 clamp(2rem, 1.5rem + 2vw, 3rem); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); position: relative; z-index: 2; background: var(--tint); }
.post-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.post-grid:has(.toc) { grid-template-columns: 240px minmax(0, 1fr); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 0.9375rem; }
.toc p { font-family: var(--f-display); font-weight: 800; color: var(--navy); margin-bottom: 0.75rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.toc ol { list-style: none; display: grid; gap: 0.35rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.4; }
.toc a:hover { color: var(--navy); border-left-color: var(--blue); }
@media (max-width: 960px) { .post-grid:has(.toc) { grid-template-columns: minmax(0, 1fr); } .toc { position: static; min-width: 0; } .toc ol { display: block; columns: 2; gap: 2rem; } }
.post-body { min-width: 0; }
.post-body { font-size: 1.0625rem; line-height: 1.75; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: var(--step-3); margin-top: 2em; scroll-margin-top: 100px; }
.post-body h3 { font-size: var(--step-2); margin-top: 1.6em; scroll-margin-top: 100px; }
.post-body h4 { font-size: 1.125rem; margin-top: 1.4em; }
.post-body p, .post-body li { max-width: 72ch; color: var(--ink-2); }
.post-body ul, .post-body ol { padding-left: 1.4rem; display: grid; gap: 0.4rem; }
.post-body li::marker { color: var(--blue); }
.post-body img { max-width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.post-body figure { margin: 2rem 0; }
.post-body figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.6rem; }
.post-body a { color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.post-body a:hover { color: var(--navy); }
.post-body blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--blue); background: var(--tint); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; }
.post-body pre { background: var(--navy-950); color: #dbe7f6; padding: 1.1rem 1.25rem; border-radius: var(--r-md); overflow: auto; font-size: 0.875rem; line-height: 1.6; }
.post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--tint-2); padding: 0.1em 0.35em; border-radius: 5px; color: var(--navy); }
.post-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
.tbl { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.9375rem; }
.tbl th, .tbl td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--f-display); font-weight: 800; color: var(--navy); background: var(--tint); }
.post-foot { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.post-author { display: flex; align-items: center; gap: 0.9rem; }
.post-author svg { width: 40px; height: 40px; color: var(--blue); background: var(--blue-50); border-radius: 12px; padding: 6px; }
.post-author b { display: block; font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.post-author span { font-size: 0.875rem; color: var(--muted); }

/* legal pages */
.legal { max-width: calc(860px + 2 * var(--gutter)); }
.legal .prose h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: var(--step-2); scroll-margin-top: 100px; }
.legal .prose h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.125rem; }
.legal .prose p { margin-bottom: 1rem; max-width: none; line-height: 1.7; }
.legal .prose ul { padding-left: 1.4rem; margin-bottom: 1rem; display: grid; gap: 0.3rem; }
.legal .prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 0.15em; }
.cookie-table td code { font-size: 0.8125rem; background: var(--tint-2); padding: 0.1em 0.4em; border-radius: 5px; }
.cookie-table { font-size: 0.875rem; }

/* page hero without art */
.phero-grid.no-art { grid-template-columns: minmax(0, 1fr); }
.phero-grid.no-art h1 { max-width: 20ch; }

/* footer: five columns + legal links */
.f-grid-5 { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); }
.f-legal { display: inline-flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.f-legal a { color: var(--on-navy-2); text-decoration: none; }
.f-legal a:hover { color: var(--white); text-decoration: underline; }
.f-note { padding-bottom: 1.5rem; font-size: 0.8125rem; color: var(--on-navy-3); margin: -0.5rem 0 0; }
@media (max-width: 960px) { .f-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-grid-5 .f-brand { grid-column: span 2; } }

/* consent banner */
.consent { position: fixed; inset: auto 0 0 0; z-index: 200; padding: 0 var(--gutter) max(1rem, env(safe-area-inset-bottom)); pointer-events: none; }
.consent[hidden] { display: none; }
.consent-in { pointer-events: auto; margin: 0 auto; max-width: 980px; background: var(--white); color: var(--ink); border-radius: var(--r-xl); box-shadow: 0 24px 60px -20px rgba(0, 15, 46, 0.45), inset 0 0 0 1px var(--line-soft); padding: 1.5rem clamp(1.25rem, 1rem + 1vw, 2rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; animation: consent-in 420ms var(--ease) both; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent-in { animation: none; } }
.consent h2 { font-size: 1.125rem; margin-bottom: 0.35rem; }
.consent p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; max-width: 62ch; }
.consent p a { color: var(--blue-700); text-decoration: underline; }
.consent-opts { display: none; gap: 0.6rem; margin-top: 1rem; }
.consent.open .consent-opts { display: grid; }
.consent-opts label { display: grid; grid-template-columns: 20px 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; cursor: pointer; }
.consent-opts input { width: 20px; height: 20px; margin-top: 0.1rem; accent-color: var(--blue-600); }
.consent-opts b { display: block; font-family: var(--f-display); font-weight: 800; color: var(--navy); }
.consent-opts small { display: block; color: var(--muted); font-size: 0.8438rem; }
.consent-btns { display: grid; gap: 0.6rem; min-width: 220px; }
.consent-btns .btn { justify-content: center; white-space: nowrap; }
.consent .c-save { display: none; }
.consent.open .c-save { display: inline-flex; }
.consent.open .c-more { display: none; }
@media (max-width: 720px) { .consent-in { grid-template-columns: 1fr; } .consent-btns { grid-template-columns: 1fr 1fr; } .consent-btns .c-more, .consent-btns .c-save { grid-column: span 2; } }

/* mobile fixes after the first preview round */
.toc, .toc ol { max-width: 100%; }
@media (max-width: 600px) { .toc ol { columns: 1; } }
@media (max-width: 720px) {
  .consent { padding-inline: 0.75rem; }
  .consent-in { padding: 1.25rem 1.1rem; gap: 0.9rem; }
  .consent-btns { grid-template-columns: 1fr; min-width: 0; }
  .consent-btns .c-more, .consent-btns .c-save { grid-column: auto; }
  .consent-btns .btn { white-space: normal; }
  .consent h2 { font-size: 1.0625rem; }
  .consent p { font-size: 0.875rem; }
}

/* before/after compare slider (blog) */
.cmp { margin: 1.75rem 0; }
.cmp-title { font-family: var(--f-display); font-weight: 800; color: var(--navy); font-size: 1rem; margin-bottom: 0.6rem; }
.cmp-box { position: relative; overflow: hidden; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--line-soft); background: var(--tint); user-select: none; }
.cmp-box img { display: block; width: 100%; height: auto; }
.cmp-box .cmp-top { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: left top; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 30, 80, 0.25); pointer-events: none; }
.cmp-box::before { content: ""; position: absolute; z-index: 1; top: 50%; left: var(--pos); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001e50' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 2px 8px rgba(0, 30, 80, 0.35); pointer-events: none; }
.cmp-lbl { position: absolute; top: 0.6rem; font-family: var(--f-display); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0, 30, 80, 0.78); padding: 0.2rem 0.55rem; border-radius: 6px; pointer-events: none; }
.cmp-l { left: 0.6rem; } .cmp-r { right: 0.6rem; }
.cmp-box input[type="range"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.cmp-box:focus-within { box-shadow: var(--ring); }
