/* Neo Technology brand system. Tokens mirror the prototype and the live site: ink purple, action orange. */

:root {
  --ink: #27265A; --ink-deep: #1B1A45; --action: #F8A21B; --interactive: #2859D4;
  --m-purple: #5C449A; --m-green: #9BCB3D; --m-yellow: #F2CF22; --m-blue: #2859D4;
  --paper: #FFFFFF; --cream: #F7F7FB; --mist: #EEEEF5; --line: #E4E4EE;
  --text: #1E1E30; --text-soft: #5B5B72; --focus: #F8A21B;
  --r-lg: 18px; --r-md: 12px; --r-sm: 10px;
  --shadow: 0 10px 34px rgba(39, 38, 90, .13); --shadow-sm: 0 8px 30px rgba(39, 38, 90, .08);
  --wrap: 1240px;
  --block-gap: 48px;
  /* Type. Every value below is what the stylesheet already used, so an untouched theme renders identically.
     93% of the font sizes in this file are in rem, so --text-base alone scales almost all of them; the headings
     are fluid and keep their three parts as separate tokens rather than a nested calc, so the builder can move
     them together without this file needing to do arithmetic. */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --text-base: 16px;
  --leading: 1.6;
  --weight-body: 400;
  --weight-heading: 750;
  --tracking-heading: -.015em;
  --h1-min: 30px; --h1-fluid: 4.2vw; --h1-max: 46px;
  --h2-min: 22px; --h2-fluid: 2.8vw; --h2-max: 30px;
  --h3-size: 1.1rem;
  --lead-size: 1.05rem;
  --eyebrow-size: .78rem;
  /* The original site's dark-band palette, used by the home-page sections */
  --brand-indigo: #251C68; --brand-navy: #0F1E33; --brand-amber: #FAB01E; --brand-cyan: #10BFD2;
  /* Mud and olive belong to the palette too: they are the middle stops of the stripe above the header. */
  --brand-mud: #8A6B63; --brand-olive: #B5A254;
  --brand-gradient: linear-gradient(90deg, var(--brand-indigo) 0%, var(--brand-navy) 24%, var(--brand-mud) 44%, var(--brand-amber) 68%, var(--brand-cyan) 100%);
  /* The dark bands are not a flat fill: two corner blooms sit over a diagonal base. */
  --grad-band: radial-gradient(80% 120% at 0% 108%, rgba(250, 176, 30, .30) 0%, rgba(250, 176, 30, 0) 56%), radial-gradient(66% 112% at 100% 104%, rgba(16, 191, 210, .28) 0%, rgba(16, 191, 210, 0) 52%), linear-gradient(168deg, var(--brand-indigo) 0%, #1B2140 62%, var(--brand-navy) 100%);
  --grad-cta: radial-gradient(42% 105% at 0% 100%, rgba(250, 176, 30, .62) 0%, rgba(250, 176, 30, 0) 66%), radial-gradient(38% 100% at 100% 100%, rgba(16, 191, 210, .58) 0%, rgba(16, 191, 210, 0) 62%), radial-gradient(50% 80% at 4% 0%, rgba(37, 28, 104, .9) 0%, rgba(37, 28, 104, 0) 70%), linear-gradient(160deg, #241B60 0%, #17203C 55%, var(--brand-navy) 100%);
  --grad-dark: radial-gradient(70% 120% at 2% 106%, rgba(250, 176, 30, .20) 0%, rgba(250, 176, 30, 0) 56%), radial-gradient(60% 115% at 99% 104%, rgba(16, 191, 210, .22) 0%, rgba(16, 191, 210, 0) 52%), linear-gradient(160deg, var(--brand-indigo) 0%, #1B2140 60%, var(--brand-navy) 100%);
}
* { box-sizing: border-box; }
html { font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); color: var(--text); background: var(--cream); -webkit-text-size-adjust: 100%; }
body { margin: 0; display: flex; min-height: 100vh; flex-direction: column; }
/* The page's shape, set in the site builder. With the built-in arrangement .shell is display:contents, so its
   children remain flex items of body and the footer still sits at the bottom of a short page exactly as before.
   Only a side menu changes the shape, and then the shell becomes the column beside it. */
.shell { display: contents; }
body.has-side { display: grid; min-height: 100vh; }
body.has-side.side-left { grid-template-columns: minmax(200px, 260px) 1fr; }
body.has-side.side-right { grid-template-columns: 1fr minmax(200px, 260px); }
body.has-side.side-right .site-side { order: 2; }
body.has-side .shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-side { background: var(--paper); border-inline-end: 1px solid var(--line); padding: 8px 0; }
body.has-side.side-right .site-side { border-inline: 1px solid var(--line) none; }
.site-side .site-header { position: static; padding: 0; }
.site-side .mainnav { display: block; padding-inline: 12px; }
.site-side .primary ul { flex-direction: column; align-items: stretch; gap: 2px; }
.site-side details.mega .panel { position: static; box-shadow: none; padding: 6px 0 6px 12px; grid-template-columns: 1fr; }
.site-side .utility .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
.site-side .cta { display: block; text-align: center; margin: 10px 12px; }
@media (max-width: 900px) {
  body.has-side, body.has-side.side-left, body.has-side.side-right { grid-template-columns: 1fr; }
  body.has-side.side-right .site-side { order: 0; }
}
/* Menus along the bottom sit below the content rather than above it. */
.shell > .site-header:last-of-type { position: static; border-top: 1px solid var(--line); }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--interactive); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.brand-stripe { height: 4px; width: 100%; background: var(--brand-gradient); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--action); color: var(--ink); padding: .5rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { left: 8px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); line-height: 1.15; letter-spacing: var(--tracking-heading); margin: 0 0 .5rem; }
h1 { font-size: clamp(var(--h1-min), var(--h1-fluid), var(--h1-max)); font-weight: var(--weight-heading); }
h2 { font-size: clamp(var(--h2-min), var(--h2-fluid), var(--h2-max)); font-weight: var(--weight-heading); }
h3 { font-size: var(--h3-size); font-weight: var(--weight-heading); }
.lead { color: var(--text-soft); font-size: var(--lead-size); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: var(--eyebrow-size); font-weight: var(--weight-heading); color: var(--text-soft); margin: 0 0 .75rem; }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: filter .15s, background .15s; }
.btn.primary { background: var(--action); color: var(--ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { border-color: var(--ink); color: var(--ink); }

/* Utility bar + header */
.utility { background: var(--ink); color: rgba(255, 255, 255, .85); font-size: .8rem; }
.utility .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-block: 6px; }
.utility a { color: inherit; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 16px 0; background: var(--paper); }
/* Arrangement options set in the site builder. Neither class is emitted unless it is chosen, so the header
   renders exactly as before until somebody changes it. */
.site-header.not-sticky { position: static; }
.mainnav.logo-centre { grid-template-columns: 1fr auto 1fr; justify-items: center; }
.mainnav.logo-centre .logo { grid-column: 2; }
.mainnav { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; align-items: center; gap: 6px; padding: 8px 12px 8px 20px; }
.mainnav .logo { display: flex; align-items: center; color: var(--ink); margin-right: 12px; }
.mainnav .logo img { display: block; width: 94px; height: 50px; }
.mainnav nav.primary { flex: 1; }
.mainnav nav.primary > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.mainnav .cta { margin-left: auto; }
details.mega > summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: .93rem; color: var(--ink); display: flex; align-items: center; gap: 6px; }
/* A menu with no dropdown: the label goes straight to a page, and must sit exactly like the ones that do open. */
.primary .toplink { display: flex; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 500; font-size: .93rem; color: var(--ink); text-decoration: none; }
.primary .toplink:hover { background: var(--mist); }
details.mega > summary::-webkit-details-marker { display: none; }
details.mega > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); position: relative; top: -2px; }
details.mega[open] > summary { background: var(--mist); }
details.mega .panel { position: absolute; left: 16px; right: 16px; margin-top: 10px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: var(--wrap); margin-inline: auto; }
details.mega .panel h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--action); margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 2px solid var(--action); display: inline-block; }
details.mega .panel ul { list-style: none; margin: 0; padding: 0; }
details.mega .panel a { display: block; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
details.mega .panel a:hover { background: var(--mist); }
details.mega .panel a b { display: block; font-weight: 600; font-size: .93rem; }
details.mega .panel a span { display: block; font-size: .8rem; color: var(--text-soft); }
.menu-toggle { display: none; }
.menu-toggle > summary { list-style: none; cursor: pointer; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; color: var(--ink); background: var(--mist); }
.menu-toggle > summary::-webkit-details-marker { display: none; }

/* Heroes: light, headline left, product image right, proof chips beneath (as in the original layout) */
.hero { background: var(--paper); color: var(--text); padding: clamp(28px, 4vw, 56px) 0 8px; margin-bottom: calc(var(--block-gap) * 2 / 3); }
.hero h1 { color: var(--ink); max-width: 22ch; }
.hero .lead { color: var(--text-soft); font-size: 1.1rem; margin: 16px 0 24px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.ghost { border-color: var(--ink); color: var(--ink); } .hero .btn.ghost:hover { background: var(--ink); color: #fff; }
.hero .eyebrow { color: var(--action); }
.hero.with-image .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.hero .hero-figure { margin: 0; } .hero .hero-figure img { display: block; }
.hero + .wrap > .block.stats:first-child { margin-top: 8px; }
.page-hero { padding: 20px 24px 8px; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }   /* the shadow spreads the white full-bleed; the clip keeps it to this band */
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); max-width: 26ch; }
.page-hero .lead { margin: 12px 0 0; }
.breadcrumb { font-size: .85rem; color: var(--text-soft); margin: 0 0 14px; }
.breadcrumb a { color: var(--text-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--interactive); }
@media (max-width: 900px) { .hero.with-image .wrap { grid-template-columns: 1fr; } }

/* Body content */
article.page { padding-bottom: 40px; }
.prose { max-width: 72ch; }
.block.prose { margin-bottom: calc(var(--block-gap) * 5 / 6); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: .35rem; }
.prose blockquote { border-left: 4px solid var(--action); margin: 1.2rem 0; padding: .2rem 0 .2rem 1rem; color: var(--text-soft); }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; }
.prose img { border-radius: var(--r-md); }
.prose code { background: var(--mist); padding: .1rem .35rem; border-radius: 4px; font-size: .9em; }

/* Blocks */
.block { margin-bottom: var(--block-gap); }

/* Section variants, chosen per section in the editor rather than fixed by the block's type. These come after the
   type rules on purpose: equal specificity, so source order lets an editor's choice win over the type default.
   A section with no variant set carries no class and renders exactly as it always has. */
.block.surface-dark { background: var(--grad-band); color: #fff; border-radius: var(--r-lg); padding: 28px 24px; }
.block.surface-tint { background: var(--cream); color: inherit; border-radius: var(--r-lg); padding: 28px 24px; }
.block.surface-light { background: none; color: inherit; padding: 0; box-shadow: none; }
.block.surface-dark h2, .block.surface-dark h3 { color: #fff; }
.block.surface-dark p, .block.surface-dark li { color: rgba(255, 255, 255, .82); }
.block.surface-dark .eyebrow { color: var(--brand-amber); }
.block.surface-dark a:not(.btn) { color: #fff; text-decoration: underline; }
.block.surface-dark .card, .block.surface-dark .grid > * { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: none; }
.block.surface-dark .card h3 { color: #fff; }
.block.surface-dark .card p { color: rgba(255, 255, 255, .78); }
.block.space-tight { margin-bottom: calc(var(--block-gap) * 5 / 12); }
.block.space-loose { margin-bottom: calc(var(--block-gap) * 7 / 4); }
.block.stats { background: var(--grad-band); color: #fff; border-radius: var(--r-lg); padding: 28px 24px; }
.block.stats h2 { color: #fff; text-align: center; margin-bottom: 16px; }
.block.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; text-align: center; }
.block.stats b { display: block; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; color: var(--action); letter-spacing: -.02em; line-height: 1.05; }
.block.stats span { font-size: .75rem; color: rgba(255, 255, 255, .75); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.block.logos { text-align: center; }
.block.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; align-items: center; }
.block.logos li span { display: inline-block; padding: 8px 14px; border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); font-size: .9rem; }
.block.logos img { max-height: 44px; width: auto; }
.block.cards h2, .block.steps h2 { text-align: center; }
.block.cards .lead, .block.steps .lead { margin-inline: auto; text-align: center; margin-bottom: 28px; }
.block.cards .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 22px 22px 24px; border-left: 6px solid var(--m-purple); }
.card.accent-green { border-left-color: var(--m-green); } .card.accent-yellow { border-left-color: var(--m-yellow); } .card.accent-blue { border-left-color: var(--m-blue); } .card.accent-orange { border-left-color: var(--action); }
.card h3 { margin-bottom: .4rem; } .card h3 a { color: var(--ink); text-decoration: none; } .card h3 a:hover { text-decoration: underline; }
/* A card whose heading or foot carries the link is clickable across its whole face: the anchor grows an overlay
   over the card rather than the card gaining a second link, so there is still one link, one focus stop and one
   destination. Left off inside the builder, where the same clicks are how a field is chosen for editing. */
.card:has(> h3 > a[href]), .card:has(> .foot > .card-link) { position: relative; }
.block:not([data-block]) .card > h3 > a[href]::after,
.block:not([data-block]) .card > .foot > .card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.block.steps ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.block.steps li { counter-increment: step; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; }
.block.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--action); color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.block.steps p { margin: 0; color: var(--text-soft); font-size: .95rem; }
.block.faq { max-width: 800px; }
.block.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.block.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.block.faq summary::-webkit-details-marker { display: none; }
.block.faq summary::after { content: "+"; color: var(--text-soft); font-size: 1.3rem; line-height: 1; }
.block.faq details[open] summary::after { content: "−"; }
.block.faq .prose { padding-top: 8px; color: var(--text-soft); }
.block.quote blockquote { margin: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px 32px; max-width: 900px; margin-inline: auto; border-left: 6px solid var(--action); }
.block.quote p { font-size: 1.15rem; color: var(--ink); margin: 0 0 12px; }
.block.quote footer { color: var(--text-soft); font-size: .9rem; } .block.quote cite { font-style: normal; font-weight: 600; color: var(--ink); }
.block.cta { background: var(--grad-cta); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); text-align: center; }
.block.cta h2 { color: #fff; } .block.cta p { color: rgba(255, 255, 255, .8); max-width: 60ch; margin-inline: auto; }
.block.cta .actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

.block.compare table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.block.compare th { text-align: left; padding: 14px 18px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); background: var(--mist); }
.block.compare th:last-child { color: var(--ink); background: #FFF4E0; }
.block.compare td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.block.compare td:first-child { color: var(--text-soft); } .block.compare td:last-child { color: var(--ink); font-weight: 500; }
@media (max-width: 700px) { .block.compare table, .block.compare thead, .block.compare tbody, .block.compare tr, .block.compare td, .block.compare th { display: block; } .block.compare thead { display: none; } .block.compare td:first-child::before { content: "Today: "; font-weight: 600; } .block.compare td:last-child::before { content: "With Neo: "; font-weight: 600; } }

.page-hero.with-image { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.page-hero .hero-figure { margin: 0; } .page-hero .hero-figure img { border-radius: var(--r-lg); box-shadow: var(--shadow); display: block; }
.block.with-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.block.with-figure > h2, .block.with-figure > .lead { grid-column: 1 / -1; }
.block.with-figure figure { margin: 0; } .block.with-figure figure img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); display: block; width: 100%; }
.block.cards.with-figure .grid { grid-template-columns: 1fr; }
.block.video video { width: 100%; max-width: 960px; display: block; border-radius: var(--r-lg); background: var(--ink); box-shadow: var(--shadow); }
.block.video .caption { color: var(--text-soft); font-size: .9rem; margin-top: 8px; }
.card .thumb { display: block; width: calc(100% + 46px); margin: -22px -22px 14px -24px; border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 900px) { .page-hero.with-image, .block.with-figure { grid-template-columns: 1fr; } }

.block.form { max-width: 720px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; }
.site-form .field { margin-bottom: 16px; }
.site-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.site-form .field.consent label, .site-form .field label:has(input[type=checkbox]) { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.site-form input[type=text], .site-form input[type=email], .site-form input[type=tel], .site-form textarea, .site-form select { width: 100%; padding: 11px 12px; font: inherit; border: 1.5px solid #C9C9D6; border-radius: var(--r-sm); background: #fff; }
.site-form input:focus, .site-form textarea:focus, .site-form select:focus { border-color: var(--interactive); }
.site-form [aria-invalid=true] { border-color: #B00020; }
.site-form .field-error { color: #B00020; margin: 6px 0 0; font-size: .9rem; }
.site-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: .6rem 1rem; border-left: 4px solid #0b5cad; background: #eef4fb; margin-bottom: 1rem; border-radius: 4px; }
.flash.error { border-color: #B00020; background: #fdecee; }

.consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--paper); border-top: 4px solid var(--action); box-shadow: 0 -10px 34px rgba(39,38,90,.18); padding: 18px 0; }
.consent-banner .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.consent-banner h2 { font-size: 1.1rem; margin-bottom: .3rem; } .consent-banner p { margin: 0; font-size: .92rem; color: var(--text-soft); }
.consent-choices label { display: inline-flex; gap: 6px; align-items: center; margin-right: 14px; font-weight: 500; }
.consent-choices .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.consent-choices .btn { padding: 9px 14px; font-size: .9rem; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; } button.linklike:hover { text-decoration: underline; }
@media (max-width: 800px) { .consent-banner .wrap { grid-template-columns: 1fr; } }

.ebook-pages { list-style: none; margin: 0 auto 32px; padding: 0; max-width: 900px; display: grid; gap: 18px; }
.ebook-pages li { position: relative; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.ebook-pages img { display: block; width: 100%; height: auto; }
.ebook-pages .page-no { position: absolute; right: 10px; bottom: 10px; background: rgba(39,38,90,.8); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.reader .actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }

.block.listing .group-title { margin: 28px 0 12px; font-size: 1.15rem; } .block.listing .count { color: var(--text-soft); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.block.listing .grid, .block.cards .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card .hint { margin-top: 10px; font-size: .9rem; }

.block.ebook .gate { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 28px; border-top: 6px solid var(--action); max-width: 760px; }
.block.ebook .gate .block.form { box-shadow: none; padding: 0; margin: 0; }
.block.ebook .gate .block.form h2 { display: none; }
/* The granted panel is a plain div, so it matches none of the .block.cta rules and sits on the page's own
   light background. The ghost button's default is drawn for a dark ground, so it needs the hero's treatment. */
/* The page's own show-and-hide, which custom CSS on a page must not be able to overrule: a form that cannot be
   hidden, or a message that cannot be shown, is a download that appears to do nothing. */
[hidden] { display: none !important; }
.dl-toast-wait { background: var(--ink); }
.dl-toast a { color: #fff; text-decoration: underline; }
/* The download popup. Everything here is inert without the script that opens it. */
.dl-dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: 560px; width: calc(100vw - 32px); box-shadow: 0 24px 60px rgba(20, 20, 45, .3); }
.dl-dialog::backdrop { background: rgba(20, 20, 45, .55); }
.dl-close-row { display: flex; justify-content: flex-end; padding: 8px 8px 0; margin: 0; }
.dl-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-soft); padding: 4px 10px; }
.dl-body { display: flex; gap: 18px; padding: 0 24px 24px; }
.dl-cover { flex: 0 0 auto; border-radius: 8px; box-shadow: var(--shadow-sm); object-fit: cover; align-self: flex-start; }
.dl-main { min-width: 0; flex: 1; }
.dl-main h2 { margin: 0 0 6px; font-size: 1.15rem; }
.dl-lead { color: var(--text-soft); font-size: .92rem; margin: 0 0 14px; }
.dl-error { background: #fdecee; border-left: 4px solid #b00020; padding: .6rem .8rem; border-radius: 4px; margin-bottom: 12px; font-size: .9rem; }
.dl-done p { margin: 0 0 12px; }
.btn-size { opacity: .75; font-weight: 400; }
.rx-dl { margin: 8px 0 0; }
.dl-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-size: .9rem; z-index: 90; margin: 0; }
@media (max-width: 460px) { .dl-body { flex-direction: column; } .dl-cover { align-self: center; } }
.flash-download { background: var(--mist); border-left: 4px solid var(--action); border-radius: var(--r-sm); padding: .7rem 1rem; margin: 0 0 20px; }
.block.ebook .cta .btn.ghost { border-color: var(--ink); color: var(--ink); }
.block.ebook .cta .btn.ghost:hover { background: var(--ink); color: #fff; }

/* Footer */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .8); margin-top: 40px; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.site-footer .brand img { margin-bottom: 10px; }   /* the mark is white already; colour cannot reach into an <img> */
.site-footer .brand p { max-width: 34ch; margin: 0; }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li + li { margin-top: .35rem; }
.site-footer .legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.site-footer .legal ul { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .mainnav { flex-wrap: wrap; }
  .menu-toggle { display: block; order: 2; margin-left: auto; }
  .mainnav .cta { order: 3; margin-left: 8px; }
  .mainnav nav.primary { order: 4; flex-basis: 100%; display: none; padding-top: 8px; }
  .mainnav:has(.menu-toggle[open]) nav.primary { display: block; }
  .mainnav nav.primary > ul { flex-direction: column; }
  details.mega .panel { position: static; box-shadow: none; padding: 4px 0 12px 12px; grid-template-columns: 1fr; gap: 12px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 404 and error pages */
.not-found .page-hero h1 { max-width: 26ch; }
.not-found .block.cards { margin-top: 8px; }

/* Draft mode indicator for signed-in staff */
.draft-bar { position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #FFF3C4; color: #4A3B00; border-bottom: 2px solid #E0B400; padding: 8px 20px; font-size: .9rem; }
.draft-bar a, .draft-bar .linklike { color: #4A3B00; font-weight: 600; margin-left: 12px; }
.draft-bar form { display: inline; }

/* Related-links strip between the header and the hero */
.strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; gap: 8px; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
.strip .wrap::-webkit-scrollbar { display: none; }
.strip .tile { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--mist); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.strip .tile:hover { background: var(--ink); color: #fff; }
.strip .tile-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.strip .tile:hover .tile-ic { background: var(--action); color: var(--ink); }
.page-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.page-hero .eyebrow { color: var(--action); }

/* Shared sections drawn from Site data */
.block.logos.clients img { height: 40px; width: auto; max-height: none; }   /* the SVGs carry no size, so height must be explicit */
.block.trust { background: var(--grad-band); color: #fff; border-radius: var(--r-lg); padding: 28px 24px; text-align: center; }
.block.trust .trust-line { margin: 0 0 18px; font-size: 1.05rem; color: rgba(255, 255, 255, .8); } .block.trust .trust-line b { color: #fff; }
.block.trust ul { list-style: none; margin: 0; padding: 0; }
.block.trust .trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; align-items: center; margin-bottom: 22px; }
.block.trust .trust-logos img { height: 36px; width: auto; } .block.trust .trust-logos span { font-weight: 600; }
.block.trust .trust-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
.block.trust .trust-stats b { display: block; font-size: clamp(26px, 3.2vw, 38px); color: var(--action); letter-spacing: -.02em; line-height: 1.05; }
.block.trust .trust-stats span { font-size: .75rem; color: rgba(255, 255, 255, .75); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.block.trust .accreds { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.block.trust .accreds li { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-size: .8rem; font-weight: 600; }
.block.impact h2 { text-align: center; }
.block.impact .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.block.impact .item { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; border-top: 6px solid var(--action); }
.block.impact .item b { display: block; font-size: clamp(30px, 3.6vw, 44px); color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }
.block.impact .label { display: block; font-weight: 600; color: var(--ink); margin-top: 4px; }
.block.impact .basis { display: block; color: var(--text-soft); font-size: .9rem; margin-top: 8px; }
.block.impact .source { color: var(--text-soft); font-size: .82rem; margin-top: 14px; text-align: center; }
.block.testimonials h2 { text-align: center; } .block.testimonials .lead { margin-inline: auto; text-align: center; }
.block.testimonials .rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; margin-top: 20px; }
.block.testimonials .test-card { margin: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px 28px; border-left: 6px solid var(--line); scroll-snap-align: start; display: flex; flex-direction: column; transition: border-left-color .2s; }
.block.testimonials .test-card:hover { border-left-color: var(--action); }
.block.testimonials blockquote { margin: 0 0 16px; color: var(--ink); font-size: 1.02rem; flex: 1; }
.block.testimonials figcaption { display: flex; align-items: center; gap: 14px; color: var(--text-soft); font-size: .88rem; }
.block.testimonials figcaption img { height: 36px; width: auto; } .block.testimonials .org { font-weight: 700; color: var(--ink); }
.block.testimonials figcaption p { margin: 0; } .block.testimonials figcaption b { color: var(--ink); }
.block.case-studies h2 { text-align: center; }
.block.case-studies .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.block.case-studies .cs-tile { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; text-decoration: none; color: var(--text); border-left: 6px solid var(--m-green); }
.block.case-studies .org { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--text-soft); }
.block.case-studies .title { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.block.case-studies .result { color: var(--interactive); font-weight: 600; }
.block.case-studies .more { margin-top: auto; padding-top: 8px; color: var(--interactive); font-weight: 600; font-size: .9rem; }
.block.case-studies .cs-tile:hover .title { text-decoration: underline; }
.block.works-with { background: var(--mist); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.block.works-with .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.block.works-with .stat { background: var(--paper); border-radius: var(--r-md); padding: 16px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); }
.block.works-with .stat b { display: block; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; line-height: 1.05; } .block.works-with .stat span { font-size: .82rem; color: var(--text-soft); font-weight: 600; }
.block.works-with .groups { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.block.works-with .groups li { padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--ink); }
.block.works-with .more { grid-column: 1 / -1; font-weight: 600; text-decoration: none; }
.block.works-with.full { display: block; }
.block.works-with.full h3 { margin-top: 26px; } .block.works-with.full .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.block.works-with.full .card h4 { margin: 0 0 8px; font-size: .95rem; color: var(--ink); } .block.works-with.full .card ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); font-size: .92rem; }
.block.works-with.full .chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .block.works-with.full .chips li { padding: 5px 12px; border-radius: 999px; background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--ink); }
.block.works-with.full .more-box { background: var(--paper); border-radius: var(--r-md); padding: 22px; margin-top: 22px; box-shadow: var(--shadow-sm); } .block.works-with.full .more-box p { color: var(--text-soft); }
.block.team h2 { text-align: center; } .block.team .lead { margin-inline: auto; text-align: center; margin-bottom: 24px; }
.block.team .grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.block.team .person { border-left-color: var(--m-blue); }
.block.team .photo, .block.team .initials { display: block; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.block.team .initials { display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.6rem; background: var(--m-purple); }
.block.team .tint-1 { background: var(--interactive); } .block.team .tint-2 { background: #0E8F9E; } .block.team .tint-3 { background: #5B4BA8; } .block.team .tint-4 { background: var(--ink); }
.block.team .role { color: var(--interactive); font-weight: 600; font-size: .9rem; margin: 0 0 8px; }
.block.team .bio { margin: 0; } .block.team .links { margin: 12px 0 0; font-size: .9rem; } .block.team .links a + a { margin-left: 12px; }
.block.case-types .note { background: #FFF4E0; border-radius: var(--r-md); padding: 12px 16px; color: var(--ink); font-size: .95rem; }
.block.case-types h3 { margin-top: 26px; } .block.case-types .count { color: var(--text-soft); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.block.case-types .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.block.case-types details.card { padding: 14px 18px; border-left-color: var(--m-yellow); }
.block.case-types summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; } .block.case-types summary::-webkit-details-marker { display: none; }
.block.case-types summary b { color: var(--ink); } .block.case-types summary span { color: var(--text-soft); font-size: .9rem; }
.block.case-types details[open] summary { margin-bottom: 10px; } .block.case-types details p, .block.case-types details ul { font-size: .92rem; color: var(--text-soft); margin: 8px 0; } .block.case-types details ul { padding-left: 1.1rem; }
.block.case-types .resident strong { color: var(--ink); }
.block.feature { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: clamp(24px, 3.5vw, 40px); }
.block.feature.with-figure { grid-template-columns: 1.1fr .9fr; align-items: center; }
.block.feature .logo { display: block; height: 48px; width: auto; margin-bottom: 14px; }
.block.feature blockquote { margin: 16px 0 6px; padding-left: 16px; border-left: 4px solid var(--action); font-size: 1.1rem; color: var(--ink); }
.block.feature .attrib { color: var(--text-soft); margin: 0 0 18px; }
.block.feature .figures { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.block.feature .figures b { display: block; font-size: clamp(26px, 3vw, 36px); color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }
.block.feature .figures span { font-size: .82rem; color: var(--text-soft); font-weight: 600; }
.card ul { margin: 10px 0 0; padding-left: 1.1rem; color: var(--text-soft); font-size: .92rem; } .card li + li { margin-top: .25rem; }
.card > .eyebrow { margin-bottom: .35rem; }
@media (max-width: 900px) { .block.works-with { grid-template-columns: 1fr; } .block.testimonials .rail { grid-auto-columns: minmax(260px, 85%); } }

/* eBook pages */
.ebook-lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.ebook-lead .takeaways { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px 26px; border-top: 6px solid var(--action); }
.ebook-lead .takeaways h2 { font-size: 1.05rem; } .ebook-lead .takeaways ul { margin: 0; padding-left: 1.1rem; color: var(--text-soft); }
.ebook-page .reader-intro { margin: 8px 0 20px; } .ebook-page .reader-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; }
@media (max-width: 900px) { .ebook-lead { grid-template-columns: 1fr; } }

/* Products mega-menu: master–detail, CSS-only pane switching */
details.mega .panel.panel-products { display: block; padding: 0; }
.prod-layout { display: grid; grid-template-columns: 340px 1fr; min-height: 360px; }
.prod-list { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--cream); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.prod-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prod-item { display: block; padding: 16px 18px; border-radius: var(--r-md); cursor: pointer; border: 1px solid transparent; }
.prod-item:hover { background: #fff; }
.prod-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.prod-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.prod-desc { display: block; font-size: .85rem; color: var(--text-soft); line-height: 1.45; }
.chip { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.chip.enterprise { color: var(--ink); background: #E4E4F3; }
.chip.saas { color: #7A5B00; background: #FDECC8; }
.chip.ai { color: #1B3FAE; background: #DCE4F7; }
.prod-detail { padding: 22px 26px; }
.prod-detail .pane { display: none; }
.prod-layout:has(.prod-radio:nth-of-type(1):checked) .prod-list .prod-item:nth-of-type(1),
.prod-layout:has(.prod-radio:nth-of-type(2):checked) .prod-list .prod-item:nth-of-type(2),
.prod-layout:has(.prod-radio:nth-of-type(3):checked) .prod-list .prod-item:nth-of-type(3),
.prod-layout:has(.prod-radio:nth-of-type(4):checked) .prod-list .prod-item:nth-of-type(4) { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); }
.prod-layout:has(.prod-radio:nth-of-type(1):checked) .pane-0,
.prod-layout:has(.prod-radio:nth-of-type(2):checked) .pane-1,
.prod-layout:has(.prod-radio:nth-of-type(3):checked) .pane-2,
.prod-layout:has(.prod-radio:nth-of-type(4):checked) .pane-3 { display: block; }
.prod-radio:focus-visible + .prod-item { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Multi-column, not grid: the modules read down the first column and then down the second, which is what
   keeps "View all case types" directly under Case management. A grid flows them across rows instead, so
   the source order was always right and the reading order was not. */
.module-grid { columns: 2; column-gap: 32px; margin-top: 2px; }
.module-grid a { display: block; break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.module-grid a b { display: block; font-weight: 600; font-size: .93rem; }
.module-grid a span { display: block; font-size: .8rem; color: var(--text-soft); margin-top: 2px; }
.module-grid a:hover b { color: var(--interactive); }
.mod-jump { display: inline-block; margin-top: 14px; color: var(--interactive); font-weight: 600; font-size: .9rem; text-decoration: none; }
.pane-cta { display: inline-block; margin-top: 16px; margin-left: 24px; color: var(--interactive); font-weight: 700; font-size: .95rem; text-decoration: none; }
.pane-cta:first-of-type { margin-left: 0; }
@media (max-width: 900px) {
  .prod-layout { grid-template-columns: 1fr; min-height: 0; }
  .prod-list { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .module-grid { grid-template-columns: 1fr; }
}

/* Footer accreditation strip and contact block */
.site-footer .footer-accreds { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 22px; margin-bottom: 28px; }
.site-footer .fa-eyebrow { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.site-footer .fa-row { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.site-footer .fa-item { font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 12px; }
.site-footer address { font-style: normal; color: rgba(255,255,255,.75); font-size: .85rem; line-height: 1.6; margin: 12px 0 0; }
.site-footer .footer-contact { margin: 12px 0 0; font-size: .85rem; }
.site-footer .footer-social { margin: 8px 0 0; font-size: .85rem; }

/* ===== Sections rebuilt from the original site: home-page pickers, index heroes, Book a demo ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.card-link { color: var(--interactive); font-weight: 600; font-size: .9rem; text-decoration: none; } .card-link:hover { text-decoration: underline; }

/* Proof chips: under the home hero, or as a block on pages such as Book a demo */
.hero .chips, .block.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.block.chips { justify-content: center; margin-bottom: 32px; }
.proof { display: inline-flex; align-items: baseline; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: .85rem; font-weight: 600; color: var(--text); box-shadow: 0 2px 10px rgba(39, 38, 90, .06); }
.proof b { color: var(--ink); font-weight: 800; }

/* Cards: a figure and link in the foot, and a caption under a side image */
.card .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card .foot .figure b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.card .foot .figure span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); }
.block.with-figure figcaption { margin-top: 10px; font-size: .85rem; color: var(--text-soft); line-height: 1.5; }
.block.faq .lead { margin-bottom: 8px; }
.block.listing .more { margin: 22px 0 0; }

/* Resident questions: a list of questions with one answer shown at a time */
.block.questions .head { text-align: center; max-width: 64ch; margin: 0 auto; }
.block.questions .head .lead { margin-inline: auto; }
.rq-picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: stretch; margin-top: 22px; }
.rq-questions { display: grid; gap: 6px; align-content: start; }
.rq-radio, .mod-radio, .ch-radio, .ww-radio { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.rq-q { cursor: pointer; display: block; padding: 10px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
.rq-q:hover { border-color: var(--interactive); }
.rq-radio:focus-visible + .rq-q { outline: 3px solid var(--interactive); outline-offset: 3px; }
.rq-emotion { display: block; font-size: .66rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--brand-amber); margin-bottom: 3px; }
.rq-text { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.rq-answers { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rq-answer { display: none; flex-direction: column; flex: 1; min-height: 0; }
.rq-photo { width: 100%; flex: 1 1 0; min-height: 0; object-fit: cover; display: block; }
.rq-answer > :not(.rq-photo) { padding-left: 28px; padding-right: 28px; }
.rq-body { font-size: 1.03rem; line-height: 1.55; color: var(--text); margin: 16px 0 14px; }
.rq-owner { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-amber); margin: 0 0 14px; }
.rq-answer > .card-link { display: inline-block; padding-bottom: 20px; }

.rq-picker:has(.rq-radio:nth-of-type(1):checked) .rq-answers > .rq-answer:nth-child(1) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(1):checked) .rq-questions > label:nth-of-type(1) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(1):checked) .rq-questions > label:nth-of-type(1) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(2):checked) .rq-answers > .rq-answer:nth-child(2) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(2):checked) .rq-questions > label:nth-of-type(2) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(2):checked) .rq-questions > label:nth-of-type(2) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(3):checked) .rq-answers > .rq-answer:nth-child(3) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(3):checked) .rq-questions > label:nth-of-type(3) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(3):checked) .rq-questions > label:nth-of-type(3) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(4):checked) .rq-answers > .rq-answer:nth-child(4) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(4):checked) .rq-questions > label:nth-of-type(4) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(4):checked) .rq-questions > label:nth-of-type(4) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(5):checked) .rq-answers > .rq-answer:nth-child(5) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(5):checked) .rq-questions > label:nth-of-type(5) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(5):checked) .rq-questions > label:nth-of-type(5) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(6):checked) .rq-answers > .rq-answer:nth-child(6) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(6):checked) .rq-questions > label:nth-of-type(6) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(6):checked) .rq-questions > label:nth-of-type(6) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(7):checked) .rq-answers > .rq-answer:nth-child(7) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(7):checked) .rq-questions > label:nth-of-type(7) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(7):checked) .rq-questions > label:nth-of-type(7) .rq-text { color: #fff; }
.rq-picker:has(.rq-radio:nth-of-type(8):checked) .rq-answers > .rq-answer:nth-child(8) { display: flex; }
.rq-picker:has(.rq-radio:nth-of-type(8):checked) .rq-questions > label:nth-of-type(8) { background: var(--ink); border-color: var(--ink); }
.rq-picker:has(.rq-radio:nth-of-type(8):checked) .rq-questions > label:nth-of-type(8) .rq-text { color: #fff; }

/* Module tabs: one module card shown at a time */
.block.modules h2 { text-align: center; } .block.modules .lead { text-align: center; margin: 0 auto 28px; }
.mod-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.mod-tab { padding: 10px 18px; border-radius: var(--r-sm); font-size: .85rem; font-weight: 600; color: var(--text-soft); border: 1.5px solid var(--line); cursor: pointer; transition: all .15s; }
.mod-tab:hover { border-color: var(--ink); color: var(--ink); }
.mod-radio:focus-visible + .mod-tab { outline: 3px solid var(--interactive); outline-offset: 2px; }
.mod-card { display: none; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; grid-template-columns: 1fr 1fr; align-items: center; }
.mod-text { padding: 34px 38px; }
.mod-text h3 { font-size: 1.25rem; margin-bottom: 10px; }
.mod-text p { font-size: .95rem; color: var(--text-soft); margin: 0 0 16px; line-height: 1.65; }
.mod-visual { background: var(--mist); overflow: hidden; min-height: 300px; height: 100%; }
.mod-visual--photo img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.mod-visual--types { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.ct-count { font-size: .82rem; color: var(--text-soft); margin: 0; }
.ct-count strong { font-size: 1.4rem; color: var(--ink); font-weight: 700; margin-right: 4px; }
.ct-cloud { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { font-size: .75rem; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--paper); color: var(--text-soft); border: 1px solid rgba(39, 38, 90, .10); white-space: nowrap; }
.ct-chip.ct-tenancy { border-color: rgba(39, 38, 90, .28); color: var(--ink); }
.ct-chip.ct-safety { border-color: rgba(214, 90, 44, .40); color: #9c3f16; }
.ct-chip.ct-money { border-color: rgba(36, 102, 180, .32); color: #1f5a9e; }
.ct-chip.ct-property { border-color: rgba(22, 124, 101, .32); color: #136554; }
.ct-foot { font-size: .75rem; color: var(--text-soft); margin: 0; }

.mod-tabs-wrap:has(.mod-radio:nth-of-type(1):checked) .mod-cards > .mod-card:nth-child(1) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(1):checked) .mod-tabs > label:nth-of-type(1) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(2):checked) .mod-cards > .mod-card:nth-child(2) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(2):checked) .mod-tabs > label:nth-of-type(2) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(3):checked) .mod-cards > .mod-card:nth-child(3) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(3):checked) .mod-tabs > label:nth-of-type(3) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(4):checked) .mod-cards > .mod-card:nth-child(4) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(4):checked) .mod-tabs > label:nth-of-type(4) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(5):checked) .mod-cards > .mod-card:nth-child(5) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(5):checked) .mod-tabs > label:nth-of-type(5) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(6):checked) .mod-cards > .mod-card:nth-child(6) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(6):checked) .mod-tabs > label:nth-of-type(6) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(7):checked) .mod-cards > .mod-card:nth-child(7) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(7):checked) .mod-tabs > label:nth-of-type(7) { background: var(--ink); color: #fff; border-color: var(--ink); }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(8):checked) .mod-cards > .mod-card:nth-child(8) { display: grid; }
.mod-tabs-wrap:has(.mod-radio:nth-of-type(8):checked) .mod-tabs > label:nth-of-type(8) { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Challenges filtered by role. Every card stays in the page; the filter is presentational. */
.block.challenges h2 { text-align: center; } .block.challenges .lead { text-align: center; margin: 0 auto 28px; }
.ch-tabs { border: 0; padding: 0; margin: 0; min-width: 0; }
.ch-tablist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ch-tab { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--text-soft); transition: background .16s, color .16s, border-color .16s; }
.ch-tab:hover { border-color: var(--interactive); color: var(--ink); }
.ch-count { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--mist); color: var(--text-soft); }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.chcard { position: relative; display: none; flex-direction: column; padding: 18px 18px 16px; background: var(--paper); border-radius: var(--r-md); text-decoration: none; color: inherit; box-shadow: 0 4px 18px rgba(39, 38, 90, .06); border-left: 4px solid var(--line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.chcard:hover { border-left-color: var(--action); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(39, 38, 90, .12); }
.chcard h3 { font-size: .95rem; line-height: 1.3; margin: 0 0 6px; }
.chcard p { font-size: .82rem; line-height: 1.5; color: var(--text-soft); margin: 0 0 12px; }
.chcard-go { margin-top: auto; font-size: .8rem; font-weight: 650; color: var(--interactive); }
.chcard-badge { display: inline-block; align-self: flex-start; margin-bottom: 8px; font-size: .6rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--mist); color: var(--text-soft); }
.chcard-badge--urgent { background: #FFF1D6; color: #8A5A00; }
.chcard-badge--new { background: rgba(40, 89, 212, .10); color: var(--interactive); }
.ch-radio:nth-of-type(1):checked ~ .ch-grid .chcard { display: flex; }

.ch-radio:nth-of-type(1):checked ~ .ch-tablist > label:nth-of-type(1) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(1):checked ~ .ch-tablist > label:nth-of-type(1) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(1):focus-visible ~ .ch-tablist > label:nth-of-type(1) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(2):checked ~ .ch-tablist > label:nth-of-type(2) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(2):checked ~ .ch-tablist > label:nth-of-type(2) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(2):focus-visible ~ .ch-tablist > label:nth-of-type(2) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(2):checked ~ .ch-grid .chcard[data-r1] { display: flex; }
.ch-radio:nth-of-type(3):checked ~ .ch-tablist > label:nth-of-type(3) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(3):checked ~ .ch-tablist > label:nth-of-type(3) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(3):focus-visible ~ .ch-tablist > label:nth-of-type(3) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(3):checked ~ .ch-grid .chcard[data-r2] { display: flex; }
.ch-radio:nth-of-type(4):checked ~ .ch-tablist > label:nth-of-type(4) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(4):checked ~ .ch-tablist > label:nth-of-type(4) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(4):focus-visible ~ .ch-tablist > label:nth-of-type(4) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(4):checked ~ .ch-grid .chcard[data-r3] { display: flex; }
.ch-radio:nth-of-type(5):checked ~ .ch-tablist > label:nth-of-type(5) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(5):checked ~ .ch-tablist > label:nth-of-type(5) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(5):focus-visible ~ .ch-tablist > label:nth-of-type(5) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(5):checked ~ .ch-grid .chcard[data-r4] { display: flex; }
.ch-radio:nth-of-type(6):checked ~ .ch-tablist > label:nth-of-type(6) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(6):checked ~ .ch-tablist > label:nth-of-type(6) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(6):focus-visible ~ .ch-tablist > label:nth-of-type(6) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(6):checked ~ .ch-grid .chcard[data-r5] { display: flex; }
.ch-radio:nth-of-type(7):checked ~ .ch-tablist > label:nth-of-type(7) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(7):checked ~ .ch-tablist > label:nth-of-type(7) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(7):focus-visible ~ .ch-tablist > label:nth-of-type(7) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(7):checked ~ .ch-grid .chcard[data-r6] { display: flex; }
.ch-radio:nth-of-type(8):checked ~ .ch-tablist > label:nth-of-type(8) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(8):checked ~ .ch-tablist > label:nth-of-type(8) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(8):focus-visible ~ .ch-tablist > label:nth-of-type(8) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(8):checked ~ .ch-grid .chcard[data-r7] { display: flex; }
.ch-radio:nth-of-type(9):checked ~ .ch-tablist > label:nth-of-type(9) { background: var(--ink); color: #fff; border-color: transparent; }
.ch-radio:nth-of-type(9):checked ~ .ch-tablist > label:nth-of-type(9) .ch-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ch-radio:nth-of-type(9):focus-visible ~ .ch-tablist > label:nth-of-type(9) { outline: 3px solid var(--interactive); outline-offset: 2px; }
.ch-radio:nth-of-type(9):checked ~ .ch-grid .chcard[data-r8] { display: flex; }

/* Statutory clocks with the guide offer beside them */
.comp-card { border-radius: var(--r-lg); padding: 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; color: #fff; background: var(--grad-dark); box-shadow: 0 18px 46px rgba(39, 38, 90, .22); }
.comp-card h2 { color: #fff; margin-bottom: 10px; }
.comp-card p { font-size: .95rem; color: rgba(255, 255, 255, .82); line-height: 1.6; margin: 0 0 18px; }
.comp-clocks { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.comp-clocks li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); padding: 14px 16px; }
.comp-clocks b { display: block; font-size: 1.9rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand-amber); }
.comp-clocks span { display: block; font-size: .78rem; line-height: 1.4; margin-top: 6px; opacity: .85; }
.comp-note { font-size: .82rem; opacity: .75; }
.comp-hub-link { color: var(--brand-amber); font-weight: 600; font-size: .9rem; text-decoration: none; } .comp-hub-link:hover { text-decoration: underline; }
.comp-gate { background: var(--paper); border-radius: var(--r-md); padding: 28px; text-align: center; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.comp-gate h3 { font-size: 1.1rem; margin-bottom: 6px; } .comp-gate p { font-size: .85rem; color: var(--text-soft); margin: 0 0 16px; }

/* Microsoft Bookings calendar */
.booking-card { background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 12px 40px rgba(39, 38, 90, .12); overflow: hidden; padding: 8px; }
.booking-card iframe { width: 100%; display: block; border: 0; }
.alt-row { max-width: 1000px; margin: 18px auto 0; text-align: center; font-size: .9rem; color: var(--text-soft); }
.alt-row a { font-weight: 600; }

/* Resource grid: the case studies and insights indexes */
.rx-filter { border: 0; padding: 0; margin: 0 0 40px; min-inline-size: 0; }
.rx-dropbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.rx-drop { position: relative; }
.rx-drop summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--text-soft); list-style: none; white-space: nowrap; }
.rx-drop summary::-webkit-details-marker { display: none; }
.rx-drop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); position: relative; top: -2px; }
.rx-drop summary:hover, .rx-drop[open] summary { border-color: var(--ink); color: var(--ink); }
.rx-drop:has(input:checked) summary { background: var(--ink); color: #fff; border-color: transparent; }
.rx-drop-panel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 320px; overflow-y: auto; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.rx-drop-opt { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--r-sm); font-size: .85rem; color: var(--text); cursor: pointer; }
.rx-drop-opt:hover { background: var(--cream); }
.rx-drop-opt input { accent-color: var(--interactive); flex-shrink: 0; } .rx-drop-opt span:first-of-type { flex: 1; }
.rx-chip-n { font-size: .72rem; font-weight: 700; opacity: .6; }
.rx-drop-clear { font-size: .82rem; color: var(--text-soft); }
.rx-filter:not(:has(.rx-drop input:checked)) .rx-drop-clear { display: none; }
.rx-grid { display: grid; gap: 26px 20px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rx-item { display: flex; flex-direction: column; min-width: 0; }
.rx-media { position: relative; display: block; overflow: hidden; border-radius: 10px; background: var(--mist); aspect-ratio: 16 / 9; text-decoration: none; box-shadow: 0 10px 26px rgba(20, 20, 45, .14); transition: transform .18s, box-shadow .18s; }
.rx-media:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 20, 45, .24); }
.rx-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; text-align: center; background: var(--grad-dark); color: #fff; }
.rx-fallback b { font-size: .95rem; font-weight: 750; line-height: 1.25; }
.rx-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--brand-amber); color: var(--ink); font-size: .85rem; font-weight: 750; padding: 7px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(20, 20, 45, .22); }
.rx-body { padding-top: 12px; }
.rx-kind { font-size: .66rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 5px; }
.rx-title { font-size: .97rem; line-height: 1.35; margin: 0; font-weight: 700; }
.rx-title a { color: var(--ink); text-decoration: none; } .rx-title a:hover { color: var(--interactive); }

.rx-filter:has(.rx-k:checked):not(:has(.rx-k1:checked)) .rx-item[data-k="1"] { display: none; }
.rx-filter:has(.rx-k:checked):not(:has(.rx-k2:checked)) .rx-item[data-k="2"] { display: none; }
.rx-filter:has(.rx-k:checked):not(:has(.rx-k3:checked)) .rx-item[data-k="3"] { display: none; }
.rx-filter:has(.rx-k:checked):not(:has(.rx-k4:checked)) .rx-item[data-k="4"] { display: none; }
.rx-filter:has(.rx-k:checked):not(:has(.rx-k5:checked)) .rx-item[data-k="5"] { display: none; }
.rx-filter:has(.rx-k:checked):not(:has(.rx-k6:checked)) .rx-item[data-k="6"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t1:checked)) .rx-item[data-t="1"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t2:checked)) .rx-item[data-t="2"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t3:checked)) .rx-item[data-t="3"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t4:checked)) .rx-item[data-t="4"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t5:checked)) .rx-item[data-t="5"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t6:checked)) .rx-item[data-t="6"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t7:checked)) .rx-item[data-t="7"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t8:checked)) .rx-item[data-t="8"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t9:checked)) .rx-item[data-t="9"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t10:checked)) .rx-item[data-t="10"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t11:checked)) .rx-item[data-t="11"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t12:checked)) .rx-item[data-t="12"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t13:checked)) .rx-item[data-t="13"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t14:checked)) .rx-item[data-t="14"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t15:checked)) .rx-item[data-t="15"] { display: none; }
.rx-filter:has(.rx-t:checked):not(:has(.rx-t16:checked)) .rx-item[data-t="16"] { display: none; }
.rx-filter:has(.rx-t:checked) .rx-item[data-t="0"] { display: none; }

/* eBook shelf: every guide as a book cover, filtered by topic */
.eb-filter { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.eb-filter input[type=radio], .eb-filter input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.eb-chiprow { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px 8px; scrollbar-width: none; }
.eb-chiprow::-webkit-scrollbar { display: none; }
.eb-chiprow label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.eb-chiprow label:hover { border-color: var(--interactive); }
.eb-chiprow input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.eb-chiprow input:focus-visible + label { outline: 3px solid var(--interactive); outline-offset: 2px; }
.eb-chip-n { font-size: .72rem; font-weight: 700; opacity: .6; }
.eb-shelf { display: grid; gap: 26px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-items: start; }
.eb-item { min-width: 0; }
.eb-cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; padding: 16px 15px; text-decoration: none; color: #fff; background: linear-gradient(160deg, var(--brand-indigo) 0%, #332F6B 52%, #1D2A55 100%); box-shadow: 0 10px 26px rgba(20, 20, 45, .20); transition: transform .18s, box-shadow .18s; }
.eb-cover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 20, 45, .28); }
.eb-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06)); }
.eb-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eb-cover-brand { font-size: .6rem; font-weight: 800; letter-spacing: .14em; opacity: .8; margin-bottom: auto; } .eb-cover-brand b { color: var(--brand-amber); }
.eb-cover-title { font-size: .95rem; font-weight: 750; line-height: 1.24; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.eb-cover-rule { height: 3px; width: 34px; border-radius: 2px; margin: 10px 0 8px; background: linear-gradient(90deg, var(--brand-amber), var(--brand-cyan)); }
.eb-cover-foot { font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .75; }
.eb-cover[data-tint="compliance"] { background: linear-gradient(160deg, #123E52, #0E5B6B 55%, #0B3446); }
.eb-cover[data-tint="migration"] { background: linear-gradient(160deg, #4A2E6B, #6A3F86 55%, #2C1B45); }
.eb-cover[data-tint="case-management"] { background: linear-gradient(160deg, #6B3A1F, #8A5B2A 55%, #40230F); }
.eb-cover[data-tint="ai-data"] { background: linear-gradient(160deg, #0F4F45, #12756A 55%, #0A322C); }
.eb-cover[data-tint="income-arrears"] { background: linear-gradient(160deg, #5B2438, #83384F 55%, #371522); }
.eb-cover[data-tint="transformation"] { background: linear-gradient(160deg, #243A6B, #33529E 55%, #18254A); }
.eb-cover:has(.eb-cover-img) { padding: 0; background: #EEEDF4; } .eb-cover:has(.eb-cover-img)::before { display: none; }
.eb-cover-hint { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 16px; background: rgba(12, 12, 32, .62); color: #fff; font-size: .9rem; font-weight: 700; text-align: center; opacity: 0; transition: opacity .18s; }
.eb-cover:hover .eb-cover-hint, .eb-cover:focus-visible .eb-cover-hint { opacity: 1; }
.eb-title { font-size: .9rem; font-weight: 650; line-height: 1.35; margin: 12px 0 5px; min-height: calc(2 * 1.35 * .9rem); }
.eb-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .eb-title a:hover { color: var(--interactive); }
.eb-meta { margin: 0; font-size: .78rem; }
.eb-dl { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text-soft); text-decoration: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; }
.eb-dl:hover { border-color: var(--interactive); color: var(--interactive); background: var(--mist); }
.eb-more { display: none; justify-content: center; margin-top: 26px; }
.eb-more label { cursor: pointer; display: inline-flex; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: .9rem; color: var(--ink); }
.eb-more label:hover { border-color: var(--interactive); color: var(--interactive); }
.eb-filter:has(#eb-all:checked):not(:has(.eb-more-t:checked)) .eb-item:nth-child(n+19) { display: none; }
.eb-filter:has(#eb-all:checked):not(:has(.eb-more-t:checked)) .eb-more { display: flex; }

.eb-filter:has(.eb-t1:checked) .eb-item:not([data-t="1"]) { display: none; }
.eb-filter:has(.eb-t2:checked) .eb-item:not([data-t="2"]) { display: none; }
.eb-filter:has(.eb-t3:checked) .eb-item:not([data-t="3"]) { display: none; }
.eb-filter:has(.eb-t4:checked) .eb-item:not([data-t="4"]) { display: none; }
.eb-filter:has(.eb-t5:checked) .eb-item:not([data-t="5"]) { display: none; }
.eb-filter:has(.eb-t6:checked) .eb-item:not([data-t="6"]) { display: none; }
.eb-filter:has(.eb-t7:checked) .eb-item:not([data-t="7"]) { display: none; }
.eb-filter:has(.eb-t8:checked) .eb-item:not([data-t="8"]) { display: none; }
.eb-filter:has(.eb-t9:checked) .eb-item:not([data-t="9"]) { display: none; }
.eb-filter:has(.eb-t10:checked) .eb-item:not([data-t="10"]) { display: none; }
.eb-filter:has(.eb-t11:checked) .eb-item:not([data-t="11"]) { display: none; }
.eb-filter:has(.eb-t12:checked) .eb-item:not([data-t="12"]) { display: none; }
.eb-filter:has(.eb-t13:checked) .eb-item:not([data-t="13"]) { display: none; }
.eb-filter:has(.eb-t14:checked) .eb-item:not([data-t="14"]) { display: none; }
.eb-filter:has(.eb-t15:checked) .eb-item:not([data-t="15"]) { display: none; }
.eb-filter:has(.eb-t16:checked) .eb-item:not([data-t="16"]) { display: none; }

/* Integrations grid: one status at a time */
.ww-tabs { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.ww-tablist { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.ww-tab { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.ww-tab:hover { border-color: var(--interactive); color: var(--ink); }
.ww-tab-count { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--mist); color: var(--text-soft); }
.ww-panel { display: none; }
.ww-panel-blurb { text-align: center; font-size: .9rem; color: var(--text-soft); line-height: 1.6; max-width: 60ch; margin: 0 auto 22px; }
.block.works-with.full .more-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.block.works-with.full .more-box p { margin: 0; max-width: 74ch; }
.ww-open { margin-top: 28px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand-amber); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.ww-open h3 { margin: 0 0 7px; } .ww-open p { font-size: .9rem; color: var(--text-soft); margin: 0; }
.block.works-with.full .ww-open .chips { margin: 0; }

.ww-tabs:has(.ww-radio:nth-of-type(1):checked) > .ww-panel:nth-child(3) { display: block; }
.ww-tabs:has(.ww-radio:nth-of-type(1):checked) .ww-tablist > label:nth-of-type(1) { background: var(--interactive); color: #fff; border-color: transparent; }
.ww-tabs:has(.ww-radio:nth-of-type(1):checked) .ww-tablist > label:nth-of-type(1) .ww-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ww-tabs:has(.ww-radio:nth-of-type(2):checked) > .ww-panel:nth-child(4) { display: block; }
.ww-tabs:has(.ww-radio:nth-of-type(2):checked) .ww-tablist > label:nth-of-type(2) { background: #5B5B72; color: #fff; border-color: transparent; }
.ww-tabs:has(.ww-radio:nth-of-type(2):checked) .ww-tablist > label:nth-of-type(2) .ww-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ww-tabs:has(.ww-radio:nth-of-type(3):checked) > .ww-panel:nth-child(5) { display: block; }
.ww-tabs:has(.ww-radio:nth-of-type(3):checked) .ww-tablist > label:nth-of-type(3) { background: #5B5B72; color: #fff; border-color: transparent; }
.ww-tabs:has(.ww-radio:nth-of-type(3):checked) .ww-tablist > label:nth-of-type(3) .ww-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }
.ww-tabs:has(.ww-radio:nth-of-type(4):checked) > .ww-panel:nth-child(6) { display: block; }
.ww-tabs:has(.ww-radio:nth-of-type(4):checked) .ww-tablist > label:nth-of-type(4) { background: #5B5B72; color: #fff; border-color: transparent; }
.ww-tabs:has(.ww-radio:nth-of-type(4):checked) .ww-tablist > label:nth-of-type(4) .ww-tab-count { background: rgba(255, 255, 255, .22); color: #fff; }

@media (max-width: 900px) {
  .rq-picker, .comp-card, .ww-open { grid-template-columns: 1fr; }
  .mod-card { grid-template-columns: 1fr; } .mod-text { padding: 24px; }
  .rx-drop, .rx-drop summary, .rx-drop-panel { width: 100%; }
}


/* Sibling modules ("More of the platform"): name and the headline that page leads with */
.block.siblings h2 { text-align: center; } .block.siblings .lead { text-align: center; margin: 0 auto 24px; }
.sib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sib-card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; text-decoration: none; transition: border-color .16s, transform .16s; }
.sib-card:hover { border-color: var(--interactive); transform: translateY(-2px); }
.sib-name { display: block; font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sib-desc { display: block; font-size: .8rem; color: var(--text-soft); line-height: 1.5; }

/* Search */
.site-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 640px; }
.site-search input { flex: 1 1 260px; padding: 12px 14px; font: inherit; border: 1.5px solid #C9C9D6; border-radius: var(--r-sm); background: #fff; }
.site-search input:focus { border-color: var(--interactive); }
.search-count { color: var(--text-soft); font-size: .9rem; margin: 0 0 18px; }
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 760px; }
.search-results li { border-left: 4px solid var(--line); padding-left: 18px; }
.search-results h2 { font-size: 1.1rem; margin: 0 0 4px; }
.search-results h2 a { color: var(--ink); text-decoration: none; } .search-results h2 a:hover { text-decoration: underline; }
.search-results .snippet { margin: 0; color: var(--text-soft); font-size: .93rem; line-height: 1.55; }
.search-results .snippet mark { background: #FFF1D6; color: var(--ink); font-weight: 600; padding: 0 1px; border-radius: 2px; }
.search-results .url { margin: 6px 0 0; font-size: .8rem; color: var(--m-green); }
.search-results .rx-kind { margin-bottom: 2px; }

/* Style preview (staff only). Deliberately plain: it must not compete with what it is showing. */
.swatches { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.swatches .swatch { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.swatches code { font-size: .8rem; color: var(--text-soft); }

/* Tables built as a section rather than written in markdown. The scroll wrapper keeps a wide table from
   pushing the page sideways on a phone, which is the usual way tables break a layout. */
.block.table .table-scroll { overflow-x: auto; }
.block.table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.block.table th, .block.table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.block.table thead th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); white-space: nowrap; }
.block.table tbody tr:last-child td { border-bottom: 0; }
.block.surface-dark.table th, .block.surface-dark.table td { border-color: rgba(255, 255, 255, .16); }
.block.surface-dark.table thead th { color: #fff; }

/* The gated guide, as a dialog over the page rather than a section to scroll to. No script: the address is the
   state, so :target opens it and a link away from it closes it. Without the stylesheet it is a plain section
   further down the page, which is what it was before and still works. */
.gate-dialog { display: none; }
.gate-dialog:target { display: grid; position: fixed; inset: 0; z-index: 60; place-items: center; padding: 20px; overflow: auto; }
.gate-dialog:target .gate-backdrop { position: fixed; inset: 0; background: rgba(27, 26, 69, .55); }
.gate-dialog:target .gate { position: relative; z-index: 1; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 28px; max-width: 34rem; width: 100%; }
.gate-close { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; line-height: 1; color: var(--text-soft); text-decoration: none; padding: 4px 8px; border-radius: var(--r-sm); }
.gate-close:hover { background: var(--mist); color: var(--ink); }
@media (max-width: 700px) { .gate-dialog:target { padding: 12px; } .gate-dialog:target .gate { padding: 20px; } }
