/* M.S. Corporations — design system v2 ("bright classroom")
   Layout: light, airy sections; colour-coded icon chips; deep-indigo anchors (CTA, footer).
   Type: Lexend (designed for reading fluency) + Atkinson Hyperlegible Next (Braille Institute legibility face).
   Target: WCAG 2.2 AA; body text pairs ≥ 7:1. */

@font-face { font-family: "Lexend"; src: url("fonts/lexend-latin.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("fonts/atkinson-next-italic-latin.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --bg: #ffffff;
  --surface: #f4f6ff;      /* alt sections */
  --surface-2: #e8ecff;
  --ink: #172041;          /* 15.9:1 on --bg */
  --ink-2: #4a5578;        /* 7.3:1 on --bg, 6.8:1 on --surface */
  --brand: #2f45c5;        /* royal indigo, 7.6:1 on --bg */
  --brand-strong: #22339a;
  --on-brand: #ffffff;
  --sun: #ffc23d;          /* only behind --deep/--ink text */
  --sun-strong: #ffd26e;
  --deep: #141b4d;         /* CTA band, footer, top bar */
  --on-deep: #ffffff;
  --on-deep-2: #c8cff5;    /* 10.6:1 on --deep */
  --line: #d5dbf3;
  --control: #5b6588;      /* form borders 5.9:1 */
  --focus: #2f45c5;
  --success: #17663b;
  --danger: #b42318;
  /* colour-coded chips: tint background + strong foreground (≥ 4.5:1 for icons) */
  --chip-blue-bg: #e8ecff;  --chip-blue: #2f45c5;
  --chip-teal-bg: #ddf4ef;  --chip-teal: #0b6e64;
  --chip-sun-bg: #fff1c9;   --chip-sun: #8a5a00;
  --chip-coral-bg: #ffe5dc; --chip-coral: #b93a14;
  --chip-violet-bg: #eee8ff; --chip-violet: #5b3fc4;
  --hero-a: #e9edff;
  --hero-b: #fff4d6;
  --hero-c: #ddf4ef;
  --radius: 12px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(23 32 65 / 5%), 0 10px 28px rgb(47 69 197 / 8%);
  --wrap: 1200px;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Lexend", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: only light;  /* one brand palette everywhere: no automatic dark theme on phones or desktops */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 8.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.125rem; line-height: 1.65; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.35rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); text-decoration-thickness: .14em; }
strong { font-weight: 700; }
code { font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.topbar :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }

.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; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--sun); color: #141b4d; padding: .75rem 1.1rem; font-weight: 700; border-radius: 0 0 var(--radius) var(--radius); text-decoration: none; }
.skip-link:focus { top: 0; }

.container { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--deep); color: var(--on-deep-2); font-size: .92rem; }
.topbar .container { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: space-between; align-items: center; padding-block: .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: var(--sun-strong); }
.topbar ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.header-main { background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-main .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; position: relative; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.logo picture, .logo img { display: block; }
.logo img { height: 60px; width: auto; max-width: 100%; }  /* full logo; proportions from the file, never stretched */
@media (max-width: 1320px) { .logo img { height: 40px; } }  /* compact logo (symbol + name) */
@media (max-width: 400px) { .logo img { height: 34px; } }
.site-footer .logo img { height: 64px; }
@media (max-width: 1320px) { .site-footer .logo img { height: 56px; } }
.logo small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

.nav-toggle { display: none; }
.primary-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.primary-nav a, .primary-nav button.sub-toggle {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .4rem .75rem;
  color: var(--ink); text-decoration: none; font: inherit; font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
}
.primary-nav a:hover, .primary-nav button.sub-toggle:hover { background: var(--surface-2); color: var(--ink); }
.primary-nav a[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--brand); background: var(--surface); }
.sub-toggle svg { width: 12px; height: 12px; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: .6rem; position: absolute; left: 0; top: calc(100% + .35rem); min-width: 270px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgb(23 32 65 / 14%); display: none; }
.submenu.wide { display: none; grid-template-columns: 1fr 1fr; gap: .1rem .5rem; min-width: 520px; }
.submenu a { display: flex; width: 100%; font-weight: 400; font-family: var(--font-body); border-radius: 10px; }
.submenu .all a { font-weight: 700; color: var(--brand); }
.js .submenu.open, .no-js .has-sub:hover .submenu, .no-js .has-sub:focus-within .submenu { display: block; }
.js .submenu.wide.open, .no-js .has-sub:hover .submenu.wide, .no-js .has-sub:focus-within .submenu.wide { display: grid; }
.submenu.wide .all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.nav-cta { margin-left: .5rem; }
.primary-nav .nav-cta a.btn { background: var(--brand); color: var(--on-brand); padding-inline: 1.25rem; }
.primary-nav .nav-cta a.btn:hover { background: var(--brand-strong); color: var(--on-brand); }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem; font: inherit; font-family: var(--font-head); font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--control); border-radius: 999px; cursor: pointer; }
  .nav-toggle svg { width: 20px; height: 20px; }
  .js .primary-nav { display: none; }
  .js .primary-nav.open { display: block; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); max-height: calc(100vh - 7rem); overflow-y: auto; box-shadow: 0 18px 30px rgb(23 32 65 / 12%); }
  .no-js .primary-nav { position: static; box-shadow: none; }
  .header-main .container { flex-wrap: wrap; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; padding: .75rem 1rem 1.25rem; }
  .primary-nav a, .primary-nav button.sub-toggle { width: 100%; justify-content: space-between; border-radius: 10px; }
  .submenu, .submenu.wide { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin-left: .75rem; min-width: 0; }
  .js .submenu.wide.open, .no-js .has-sub:focus-within .submenu.wide { display: block; }
  .nav-cta { margin: .5rem 0 0; }
  .primary-nav .nav-cta a.btn { justify-content: center; }
}
@media (max-width: 520px) {
  .logo small { display: none; }
  .logo { font-size: 1.1rem; }
  .topbar ul[aria-label="Quick links"] { display: none; }
  /* Mobile contact bar: phone left, email right (owner request 2026-11-17); wraps only if it cannot fit */
  .topbar ul[aria-label="Contact"] { flex: 1 1 auto; justify-content: space-between; column-gap: .75rem; font-size: clamp(.8rem, 3.7vw, .92rem); }
  .topbar ul[aria-label="Contact"] a { display: inline-block; padding-block: .1rem; white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-family: var(--font-head); font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px rgb(47 69 197 / 25%); }
.btn-primary:hover { background: var(--brand-strong); color: var(--on-brand); }
.btn-secondary { background: var(--bg); color: var(--brand); border-color: currentColor; }
.btn-secondary:hover { background: var(--surface); color: var(--brand-strong); }
.btn-accent { background: var(--sun); color: #141b4d; }
.btn-accent:hover { background: var(--sun-strong); color: #141b4d; }
.btn-ghost-light { color: #fff; border-color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgb(255 255 255 / 12%); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .95rem; padding-block: .9rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--ink-2); }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* ---------- Hero (light, friendly) ---------- */
.hero {
  position: relative; overflow: hidden; padding-block: clamp(2.75rem, 6vw, 5rem);
  background:
    radial-gradient(40rem 22rem at 92% 10%, var(--hero-b), transparent 70%),
    radial-gradient(34rem 26rem at 0% 100%, var(--hero-c), transparent 70%),
    linear-gradient(180deg, var(--hero-a), var(--bg));
}
.hero .container { position: relative; z-index: 1; }
.hero .lede { color: var(--ink-2); }
.hero p { color: var(--ink-2); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.15fr 1fr; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-art { justify-self: center; width: min(100%, 500px); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .02em; color: var(--brand); background: var(--chip-blue-bg); padding: .3rem .85rem; border-radius: 999px; margin-bottom: 1rem; }
.hero .eyebrow { color: var(--brand); }
.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--ink-2); max-width: 62ch; }
.trust-line { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .95rem; }
.trust-line li { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; }
.trust-line svg { width: 18px; height: 18px; color: var(--chip-teal); flex: none; }
.highlight { background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%); padding-inline: .1em; color: inherit; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.25rem); }
.section.alt { background: var(--surface); }
.section-head { max-width: 780px; margin-bottom: 2.25rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 1.15rem; }
.section-head p.eyebrow { color: var(--brand); font-size: .85rem; }

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.cols-3 { grid-template-columns: 1fr; } }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1060px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.cols-4 { grid-template-columns: 1fr; } }
.split { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; min-width: 0; transition: transform .18s ease, border-color .18s ease; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); margin-bottom: .8rem; }
.card > :last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--chip-blue-bg); color: var(--chip-blue); margin-bottom: 1rem; flex: none; }
.icon svg { width: 26px; height: 26px; }
.icon.c-blue { background: var(--chip-blue-bg); color: var(--chip-blue); }
.icon.c-teal { background: var(--chip-teal-bg); color: var(--chip-teal); }
.icon.c-sun { background: var(--chip-sun-bg); color: var(--chip-sun); }
.icon.c-coral { background: var(--chip-coral-bg); color: var(--chip-coral); }
.icon.c-violet { background: var(--chip-violet-bg); color: var(--chip-violet); }
/* auto-colour icon chips in grids that don't set one */
.grid > :nth-child(5n+2) .icon:not([class*="c-"]) { background: var(--chip-teal-bg); color: var(--chip-teal); }
.grid > :nth-child(5n+3) .icon:not([class*="c-"]) { background: var(--chip-sun-bg); color: var(--chip-sun); }
.grid > :nth-child(5n+4) .icon:not([class*="c-"]) { background: var(--chip-coral-bg); color: var(--chip-coral); }
.grid > :nth-child(5n+5) .icon:not([class*="c-"]) { background: var(--chip-violet-bg); color: var(--chip-violet); }
.card-link { margin-top: auto; font-family: var(--font-head); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.card-link::before { content: none; }
.card.linked .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.card.linked:hover { border-color: var(--brand); transform: translateY(-3px); }
.card.linked:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card.linked .card-link:focus-visible { outline: none; }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--chip-violet-bg); color: var(--chip-violet); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 1rem; }

.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.stats li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.4rem; border-top: 5px solid var(--chip-blue); }
.stats li:nth-child(4n+2) { border-top-color: var(--chip-teal); }
.stats li:nth-child(4n+3) { border-top-color: var(--sun); }
.stats li:nth-child(4n+4) { border-top-color: var(--chip-coral); }
.stats strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-2); font-size: 1rem; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .65rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--chip-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 72% no-repeat; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* Balanced rows by step count (no lone card on a row): 1 column on phones; on tablets 2 columns for 4 or 8 steps, else 3;
   on desktop 4 or 5 steps sit in one row, 8 in 4 × 2, everything else in rows of 3 (6 steps = 3 × 2). */
@supports selector(:has(a)) {
  .steps { grid-template-columns: 1fr; align-items: stretch; }
  @media (min-width: 640px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps:has(> li:nth-child(4):last-child), .steps:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 1100px) {
    .steps:has(> li:nth-child(4):last-child), .steps:has(> li:nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .steps:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  }
  /* Inside articles the column is narrow: 2 columns for even counts, 3 for 3/6/9, one column otherwise. */
  @media (min-width: 640px) {
    .prose .steps, .prose .steps:has(> li:nth-child(5):last-child) { grid-template-columns: 1fr; }
    .prose .steps:has(> li:nth-child(2n):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose .steps:has(> li:nth-child(3n):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
}
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sun); color: #141b4d; font-family: var(--font-head); font-weight: 700; margin-bottom: .8rem; }
.steps li:nth-child(even)::before { background: var(--chip-blue); color: var(--on-brand); }
.steps h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-2); margin: 0; font-size: 1rem; }

.muted { color: var(--ink-2); font-size: .95rem; }
.draft-banner { background: var(--sun); color: #141b4d; padding-block: .7rem; font-size: .98rem; }
.draft-list { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--line); }
.post-cat { font-weight: 700; color: var(--brand); }
/* Language cards (localization page): native name, English name and script */
.lang-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
/* 13 languages: 5 + 5 + 3 on tablets, 7 + 6 on desktop, so no card sits alone on a row */
@media (min-width: 820px) { .lang-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lang-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.lang-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; align-content: start; border-top: 4px solid var(--chip-blue); }
.lang-card:nth-child(4n+2) { border-top-color: var(--chip-teal); }
.lang-card:nth-child(4n+3) { border-top-color: var(--sun); }
.lang-card:nth-child(4n+4) { border-top-color: var(--chip-violet); }
.lang-card .native { font-size: 1.6rem; line-height: 1.5; color: var(--ink); font-family: "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Gujarati", "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Gurmukhi", "Noto Sans Oriya", "Nirmala UI", "Kohinoor Devanagari", "Noto Sans", system-ui, sans-serif; }
.lang-card .native[dir="rtl"] { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", system-ui, sans-serif; text-align: start; }
.lang-card .name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.lang-card .script { color: var(--ink-2); font-size: .9rem; }
@media (forced-colors: active) { .lang-card { border: 1px solid CanvasText; } }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { background: var(--chip-blue-bg); color: var(--chip-blue); border-radius: 999px; padding: .35rem .9rem; font-size: .95rem; font-weight: 700; }
.tags li:nth-child(4n+2) { background: var(--chip-teal-bg); color: var(--chip-teal); }
.tags li:nth-child(4n+3) { background: var(--chip-sun-bg); color: var(--chip-sun); }
.tags li:nth-child(4n+4) { background: var(--chip-violet-bg); color: var(--chip-violet); }
.badge-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.badge-row li { border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: .95rem; background: var(--bg); }

.tldr { background: var(--chip-sun-bg); border: 1px solid color-mix(in srgb, var(--sun) 60%, transparent); padding: 1.15rem 1.4rem; border-radius: var(--radius-lg); margin: 0 0 2rem; }
.tldr h2, .tldr h3 { font-size: .9rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .4rem; color: var(--chip-sun); }
.tldr p:last-child, .tldr ul:last-child, .tldr ol:last-child { margin: 0; }
nav.tldr { background: var(--surface); border-color: var(--line); }
nav.tldr h2 { color: var(--ink-2); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 0; }
caption { text-align: left; font-family: var(--font-head); font-weight: 600; padding: .9rem 1rem; background: var(--surface); }
th, td { text-align: left; padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); border-top: 0; font-family: var(--font-head); font-weight: 600; }

/* Article / prose */
.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 2.3rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.prose h3 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.5rem 0; padding: .6rem 1.25rem; border-left: 4px solid var(--brand); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.prose .tldr h2, .prose .tldr h3 { font-size: .9rem; margin-top: 0; }
.prose .steps { margin-block: 1.25rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--ink-2); font-size: 1rem; margin: 0; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border-radius: var(--radius-lg); padding: 1.35rem 1.5rem; margin-top: 2.5rem; }
.author-box .avatar { margin: 0; }
.author-box h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.author-box p { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; padding: 1.05rem 3.2rem 1.05rem 1.3rem; font-weight: 700; position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1rem; top: .8rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--chip-blue-bg); color: var(--chip-blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; font-family: var(--font-head); font-size: 1.06rem; font-weight: 600; margin: 0; }
.faq .answer { padding: 0 1.3rem 1.15rem; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: radial-gradient(30rem 16rem at 90% 0%, rgb(255 194 61 / 22%), transparent 70%), var(--deep); color: var(--on-deep); padding-block: clamp(2.75rem, 5vw, 4.25rem); }
.cta-band .container { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: var(--on-deep-2); margin: 0; max-width: 60ch; }
.cta-band .actions { margin: 0; }
.cta-band a:not(.btn) { color: var(--sun-strong); }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; color: var(--ink-2); font-size: .95rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--control); border-radius: 12px; padding: .7rem .9rem; min-height: 50px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { color: var(--danger); font-weight: 700; font-size: .98rem; margin-top: .3rem; }
.req { color: var(--danger); }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 700; }
.form-status.ok { background: color-mix(in srgb, var(--success) 12%, var(--bg)); color: var(--success); border: 2px solid var(--success); }
.form-status.err { background: color-mix(in srgb, var(--danger) 10%, var(--bg)); color: var(--danger); border: 2px solid var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }

.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: .85rem; margin-bottom: 1.1rem; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--chip-teal); margin-top: .25rem; }
.map-frame { width: 100%; max-width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-lg); }

.post-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.post-list time { color: var(--ink-2); font-size: .95rem; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding-block: 3.75rem 1.5rem; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sun-strong); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { font-style: normal; }
.footer-contact { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 15%); display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.75rem; }
.footer-contact > * { display: inline-flex; align-items: baseline; gap: .45rem; }
.footer-contact .label { color: var(--sun); font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 760px) { .footer-contact .addr { white-space: nowrap; } }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo small { color: var(--on-deep-2); }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 30%); }
.social a:hover { background: rgb(255 255 255 / 10%); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 15%); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Logo strip of standards (not clients) */
.standards-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.standards-strip li { font-family: var(--font-head); font-weight: 600; color: var(--ink-2); border: 1px dashed var(--control); border-radius: 12px; padding: .5rem 1rem; font-size: .95rem; }

/* Feature band with illustration */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.feature > * { min-width: 0; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card.linked:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .card, .faq details, .stats li, .steps li, .tldr { border: 1px solid CanvasText; }
  .checklist li::before { forced-color-adjust: none; background-color: CanvasText; }
  .highlight { background: none; text-decoration: underline; }
}
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .skip-link { display: none; }
  a { color: #000; }
}

/* v2 fixes */
.eyebrow svg { width: 16px; height: 16px; flex: none; }
.primary-nav a, .primary-nav button.sub-toggle { white-space: nowrap; padding-inline: .6rem; }
.logo span { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1320px) { .logo small { display: none; } }
.feature .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .feature .grid.cols-2 { grid-template-columns: 1fr; } }

p.center { text-align: center; margin-top: 1.5rem; }

/* ---------- Line art (decorative) ----------
   Drawn with CSS masks on pseudo-elements, so it never reaches screen readers or the tab order.
   Kept faint (≤ 12%) so text contrast stays above WCAG AA. Hidden in forced-colours and print. */
.hero::before, .hero::after, .section.alt::before, .cta-band::before {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  background-color: var(--brand);
  -webkit-mask: url("art/doodles.svg") no-repeat center / contain;
          mask: url("art/doodles.svg") no-repeat center / contain;
}
.hero::before { width: 440px; height: 440px; left: -150px; bottom: -170px; opacity: .10; }
.hero::after { width: 380px; height: 380px; right: -120px; top: -110px; opacity: .09; transform: rotate(12deg); }
.section.alt { position: relative; isolation: isolate; }
.section.alt::before {
  inset: 0; opacity: .055;
  -webkit-mask: url("art/tile.svg") repeat 0 0 / 260px 260px;
          mask: url("art/tile.svg") repeat 0 0 / 260px 260px;
}
.section.alt > .container { position: relative; z-index: 1; }
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { width: 420px; height: 420px; right: -90px; top: -150px; background-color: #fff; opacity: .08; }
.cta-band > .container { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .hero::before { width: 300px; height: 300px; left: -140px; bottom: -150px; }
  .hero::after { width: 240px; height: 240px; right: -110px; top: -90px; }
}
@media (forced-colors: active) { .hero::before, .hero::after, .section.alt::before, .cta-band::before { display: none; } }
@media print { .hero::before, .hero::after, .section.alt::before, .cta-band::before { display: none; } }

/* ---------- Motion ----------
   Only for people who have not asked for reduced motion. Nothing loops: every animation ends
   within 5 seconds (WCAG 2.2.2), nothing flashes (2.3.1), and content is fully visible without JS. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ms-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes ms-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  @keyframes ms-draw { to { stroke-dashoffset: 0; } }
  @keyframes ms-fade { from { opacity: 0; } }
  @keyframes ms-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
  @keyframes ms-spin { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

  .hero::before, .hero::after { animation: ms-fade 1.4s ease-out both; }
  .hero-art { animation: ms-rise .8s ease-out both, ms-float 2s ease-in-out .8s 2; }
  .hero-art .draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: ms-draw 1.8s ease-out .3s forwards; }
  .hero-art .pop { transform-box: fill-box; transform-origin: center; animation: ms-spin .9s cubic-bezier(.2, .8, .3, 1.2) .9s both; }
  .highlight { background-repeat: no-repeat; animation: ms-sweep .9s ease-out .5s both; }

  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
  .js .reveal.in { opacity: 1; transform: none; }

  .card .icon { transition: transform .25s ease; }
  .card.linked:hover .icon, .card.linked:focus-within .icon { transform: rotate(-6deg) scale(1.08); }
}

/* ---------- Floating tool bubbles (home hero) ----------
   Decorative: names live in CSS content inside an aria-hidden layer; the real list is the tools strip below.
   This is the only looping animation on the site, so it has a Pause button (WCAG 2.2.2) and only runs
   with JavaScript (which provides that button) and when the visitor has not asked for reduced motion. */
.bubbles { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }
/* Each span is a full-height lane moved with transform (GPU-composited, no layout work per frame);
   the visible pill is its ::before, sitting at the top of the lane. */
.bubbles span { position: absolute; top: 0; height: 100%; left: var(--x); opacity: 0; will-change: transform, opacity; }
.bubbles span::before {
  content: attr(data-t); display: block;
  font-family: var(--font-head); font-weight: 600; font-size: .9rem; line-height: 1; white-space: nowrap;
  color: var(--brand); background: var(--bg); border: 1.5px dashed currentColor; border-radius: 12px;
  padding: .5rem .85rem;
}
.bubbles span:nth-child(1) { --x: 58%; --d: 17s; --w: -0.0s; }
.bubbles span:nth-child(2) { --x: 83%; --d: 21s; --w: -0.9s; }
.bubbles span:nth-child(3) { --x: 70%; --d: 19s; --w: -1.6s; }
.bubbles span:nth-child(4) { --x: 84%; --d: 16s; --w: -2.0s; }
.bubbles span:nth-child(5) { --x: 62%; --d: 23s; --w: -3.8s; }
.bubbles span:nth-child(6) { --x: 80%; --d: 22s; --w: -4.6s; }
.bubbles span:nth-child(7) { --x: 76%; --d: 18s; --w: -4.5s; }
.bubbles span:nth-child(8) { --x: 79%; --d: 24s; --w: -7.0s; }
.bubbles span:nth-child(9) { --x: 66%; --d: 20s; --w: -6.7s; }
.bubbles span:nth-child(10) { --x: 53%; --d: 25s; --w: -9.4s; }
.bubbles span:nth-child(11) { --x: 73%; --d: 15s; --w: -6.2s; }
.bubbles span:nth-child(12) { --x: 74%; --d: 19s; --w: -8.7s; }
.bubbles span:nth-child(13) { --x: 60%; --d: 22s; --w: -11.0s; }
.bubbles span:nth-child(14) { --x: 82%; --d: 17s; --w: -9.2s; }
.bubbles span:nth-child(15) { --x: 68%; --d: 21s; --w: -12.2s; }
.bubbles span:nth-child(16) { --x: 80%; --d: 24s; --w: -15.0s; }
.bubbles span:nth-child(17) { --x: 56%; --d: 18s; --w: -12.0s; }
.bubbles span:nth-child(18) { --x: 78%; --d: 20s; --w: -14.2s; }
.bubbles span:nth-child(19) { --x: 77%; --d: 23s; --w: -17.2s; }
.bubbles span:nth-child(20) { --x: 64%; --d: 16s; --w: -12.7s; }
.bubbles span:nth-child(21) { --x: 72%; --d: 19s; --w: -15.8s; }
.bubbles span:nth-child(22) { --x: 70%; --d: 25s; --w: -21.9s; }
.bubbles span:nth-child(23) { --x: 55%; --d: 21s; --w: -19.2s; }
.bubbles span:nth-child(24) { --x: 81%; --d: 18s; --w: -17.2s; }
.motion-ctl { position: relative; z-index: 1; display: flex; justify-content: flex-end; margin-top: 1rem; }
.motion-toggle {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem;
  font: inherit; font-size: .9rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--control);
  border-radius: 999px; cursor: pointer;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle svg { width: 18px; height: 18px; flex: none; }
.motion-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.motion-toggle[aria-pressed="true"] { color: var(--on-brand, #fff); background: var(--brand); border-color: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes ms-bubble {
    0%   { transform: translate(0, 100%); opacity: 0; }
    12%  { opacity: .55; }
    50%  { transform: translate(14px, 44%); }
    85%  { opacity: .55; }
    100% { transform: translate(0, -12%); opacity: 0; }
  }
  .js .bubbles { display: block; }
  .js .bubbles span { animation: ms-bubble var(--d) linear var(--w) infinite; }
  .js .bubbles.paused span { animation-play-state: paused; }
}
@media (max-width: 900px) {
  .bubbles { top: 52%; } /* rise only around the illustration, never behind the text */
  .bubbles span:nth-child(even) { display: none; }
  .bubbles span::before { font-size: .8rem; }
  .bubbles span:nth-child(1) { --x: 6%; } .bubbles span:nth-child(3) { --x: 62%; } .bubbles span:nth-child(5) { --x: 34%; } .bubbles span:nth-child(7) { --x: 72%; } .bubbles span:nth-child(9) { --x: 18%; } .bubbles span:nth-child(11) { --x: 48%; } .bubbles span:nth-child(13) { --x: 80%; } .bubbles span:nth-child(15) { --x: 26%; } .bubbles span:nth-child(17) { --x: 56%; } .bubbles span:nth-child(19) { --x: 10%; } .bubbles span:nth-child(21) { --x: 40%; } .bubbles span:nth-child(23) { --x: 66%; }
}
@media (forced-colors: active) { .bubbles, .motion-ctl { display: none; } }
@media print { .bubbles, .motion-ctl { display: none; } }

/* Related pages (service and industry pages) */
.related { border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-bottom: 1.5rem; }
.related-grid { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related-grid h3 { font-size: 1rem; letter-spacing: .02em; color: var(--ink-2); margin-bottom: .6rem; }
.related-grid ul { list-style: none; margin: 0; padding: 0; }
.related-grid li { margin-bottom: .35rem; }
.related-grid a { display: inline-block; padding-block: .3rem; font-weight: 600; }

/* Case studies (admin panel) */
.cs-figure{margin:0 0 2rem}
.cs-figure img{display:block;width:100%;height:auto;border-radius:12px}

/* Premium service cards: one restrained icon colour, equal heights, no hover lift */
.grid.premium { align-items: stretch; }
.grid.premium .card { box-shadow: none; padding: 1.75rem 1.6rem; }
.grid.premium > .card .icon:not([class*="c-"]) { width: 44px; height: 44px; border-radius: 12px; background: var(--chip-blue-bg); color: var(--chip-blue); }
.grid.premium .icon svg { width: 22px; height: 22px; }
.grid.premium h3 { font-size: 1.12rem; line-height: 1.3; }
.grid.premium p { margin: 0; }
.actions.center { justify-content: center; margin-top: 2rem; }
.form-status.info { background: var(--surface); color: var(--ink); border: 2px solid var(--brand); font-weight: 400; }

/* Compact card grid (challenge cards): icon and heading on one line, text below; rows keep equal heights. */
/* Compact challenge cards (K-12, Higher Ed). Each card spans two rows of the parent grid and shares them through
   subgrid, so in every row the headings line up and all descriptions start at the same height; cards in a row
   stretch to the tallest. Heights stay content-driven: no fixed or minimum heights. */
.grid.compact { row-gap: 1rem; column-gap: 1rem; }
.grid.compact .card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-row: span 2; column-gap: .7rem; row-gap: .6rem; align-content: start; padding: 1.15rem 1.1rem 1.2rem; }
@supports (grid-template-rows: subgrid) { .grid.compact .card { grid-template-rows: subgrid; } }
.grid.compact .card .icon { margin: 0; width: 38px; height: 38px; border-radius: 10px; align-self: start; }
.grid.compact .card .icon svg { width: 20px; height: 20px; }
.grid.compact .card h3 { margin: 0; align-self: center; font-size: 1rem; line-height: 1.3; }
.grid.compact .card p { grid-column: 1 / -1; margin: 0; font-size: .95rem; line-height: 1.55; }
/* Long dropdown labels (e.g. "M.S. Graphics Studio – Printing & Branding") wrap in the mobile menu instead of overflowing. */
@media (max-width: 1100px) { .primary-nav .submenu a { white-space: normal; line-height: 1.35; } }
/* One referral to the official M.S. Graphics Studio website, in the hero of /ms-graphics-studio/ only. */
.site-referral { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-top: 1.75rem; padding: 1.1rem 1.35rem; max-width: 62rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.site-referral p { flex: 1 1 22rem; margin: 0; color: var(--ink); }

/* ---------- Trusted by: partner logos (only verified entries, see src/data/partners.json) ---------- */
/* Minimal grid: no boxes or tiles; every logo sits in the same-height row so the set reads as one even band. */
.section.partners { border-top: 1px solid var(--line); }
.partner-logos { list-style: none; margin: 0 auto; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2.25rem; align-items: center; }
@media (min-width: 700px) { .partner-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; row-gap: 2.75rem; } }
@media (min-width: 1100px) { .partner-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 3rem; } }
.partner-logos li { display: flex; align-items: center; justify-content: center; height: 72px; }
.partner-logos img { display: block; max-height: 48px; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: .9; transition: opacity .15s ease; }
.partner-logos img.tall { max-height: 72px; }  /* near-square logos would look tiny at the standard height */
.partner-logos .partner-name { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: .01em; line-height: 1.1; color: var(--ink-2); text-align: center; opacity: .9; transition: opacity .15s ease; }
.partner-logos li:hover img, .partner-logos li:hover .partner-name { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .partner-logos img, .partner-logos .partner-name { transition: none; } }

/* Consent banner, cookie settings dialog and click-to-load map (Consent Mode v2, 2026-11) */
.consent-banner { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 -8px 28px rgb(23 32 65 / 12%); padding-block: 1rem; max-height: 70vh; overflow-y: auto; }
.consent-banner[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.consent-text { flex: 1 1 32rem; }
.consent-text p { margin: 0; color: var(--ink-2); }
.consent-text p.consent-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent-actions .btn { min-width: 8.5rem; }
.consent-dialog { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 0; border-radius: var(--radius-lg); padding: 0; color: var(--ink); background: var(--bg); box-shadow: var(--shadow); }
.consent-dialog::backdrop { background: rgb(20 27 77 / 55%); }
.consent-form { padding: 1.5rem; display: grid; gap: 1rem; }
.consent-form h2 { margin: 0; font-size: 1.4rem; }
.consent-form p { margin: 0; color: var(--ink-2); }
.consent-option { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.consent-option input { width: 1.4rem; height: 1.4rem; margin: .1rem 0 0; accent-color: var(--brand); }
.consent-option label { display: grid; gap: .2rem; cursor: pointer; }
.consent-option label span { color: var(--ink-2); font-size: .95rem; }
.consent-option input:disabled + label { cursor: default; }
@media (max-width: 640px) {
  .consent-actions { width: 100%; gap: .5rem; }
  .consent-actions .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding-inline: .5rem; }
  .consent-banner { padding-block: .75rem; }
  .consent-text p { font-size: .95rem; }
}
.map-consent { display: grid; gap: .75rem; justify-items: start; padding: 1.5rem; border: 1px dashed var(--control); border-radius: var(--radius-lg); background: var(--surface); aspect-ratio: 4 / 3; align-content: center; }
.map-consent.is-loaded { display: block; padding: 0; border: 0; background: none; }
.map-consent p { margin: 0; color: var(--ink-2); }
.map-consent p.map-consent-title { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.map-consent .map-consent-note { font-size: .95rem; }
.no-js .map-consent .btn, .no-js .map-consent-note { display: none; }
@media (max-width: 640px) { .map-consent { aspect-ratio: auto; } }
@media print { .consent-banner, .consent-dialog { display: none !important; } }
