/*
Theme Name: The 2027 Innovative Teacher Competition
Author: Hossam Fahmy
Author URI: mailto:hfahmy@hfahmy.net
Description: Official WordPress theme for The 2027 Innovative Teacher Competition — a collaborative initiative by ALECSO, Classera, Intel, and Millennium@EDU, sponsored by jp.ik and SixUnited. Bilingual (English / Arabic with RTL), responsive, and fully editable.
Version: 2.13.40
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itc2027
Tags: education, bilingual, rtl-language-support, custom-menu, custom-logo, responsive, accessibility-ready
*/

/* Interactive prototype styles — responsive (mobile + desktop) */

/* font-display: optional — the browser renders in the fallback and never swaps
   the web font in mid-page, so a late-loading font can't reflow text and inflate
   Cumulative Layout Shift (keeps CLS under the 0.1 perf budget). The font still
   downloads and is used on subsequent cached navigations. */
/* Montserrat / Kufam are declared once, in theme.json (WordPress prints the
   @font-face rules). When the Font Library already provides the same family,
   the theme's copy is dropped (itc_theme_json_drop_library_dupes), so a page
   never downloads both (v2.13.18). */

:root {
  --navy: #004D72;
  --teal: #00748D;
  --gray: #5E5E5E;
  --blue: #1073C2;
  --cyan: #00C7FD;
  --white: #FFFFFF;
  --ink-1: #0A2D45;
  --ink-2: #2B4A60;
  --ink-3: #6F7E89;
  --line: #E3EAEF;
  --bg-soft: #F4F7FA;
  --bg-sky: #E7F4FB;
  --shadow-card: 0 4px 16px rgba(0, 77, 114, 0.06);
  --shadow-hover: 0 14px 36px rgba(0, 77, 114, 0.16);
  --serif: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --arabic: "Kufam", "Tahoma", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--serif);
  color: var(--ink-1);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}
body.rtl, body.rtl * { font-family: var(--arabic); }
body.rtl { direction: rtl; }
/* F-12: keep Latin typography for mixed content — code/technical strings and
 * anything explicitly marked LTR or English (Intel® SFI, AWS, LMS, SCORM, URLs,
 * emails). These selectors out-specify `body.rtl *`, so no !important is needed. */
body.rtl code, body.rtl kbd, body.rtl samp, body.rtl pre, body.rtl tt,
body.rtl [dir="ltr"], body.rtl [lang="en"], body.rtl .itc-ltr {
  font-family: var(--serif);
}
body.rtl [dir="ltr"], body.rtl [lang="en"], body.rtl .itc-ltr {
  direction: ltr;
  unicode-bidi: isolate;
}
/* F-20: scroll-lock while the mobile drawer is open — a body class, not an inline
 * style that could clobber another overlay's scroll state. */
body.itc-menu-open { overflow: hidden; }

a { color: var(--blue); text-decoration: none; }
/* Links inside running text are underlined, not told apart by colour alone
   (WCAG 1.4.1; v2.13.17, full review UI-03). Class-less links only, so
   buttons, cards and menus keep their own styling. */
:where(main, .itc-main, .entry-content) :where(p, li, td, dd, figcaption, small) a:not([class]) {
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px;
}
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* Accessibility: visible keyboard focus everywhere (WCAG 2.4.7). */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
  /* A dark inner ring keeps focus visible on white, where cyan alone is
     under 3:1 (WCAG 1.4.11; UI-12). */
  box-shadow: 0 0 0 2px var(--navy);
}
main:focus { outline: none; }

/* Skip-to-content link — off-screen until keyboard-focused. */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  font-weight: 700; transition: top 0.15s;
}
.skip-link:focus { top: 0; color: #fff; }
body.rtl .skip-link { left: auto; right: 8px; }

/* ---------------- Header ---------------- */
.topstripe { height: 5px; background: linear-gradient(90deg, var(--navy), var(--teal), var(--blue), var(--cyan)); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; gap: 24px;
}
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { height: 64px; width: auto; max-width: 100%; object-fit: contain; display: block; }
/* Phones: the top bar is only logo + menu button, so the logo can be big. */
@media (min-width: 1200px) { .brand img { height: 72px; } }
@media (max-width: 560px) { .brand img { height: 58px; } }
@media (max-width: 360px) { .brand img { height: 50px; } .hamburger { padding: 0 14px; } }
.header-account { display: flex; gap: 14px; align-items: center; }
.nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.nav a {
  color: var(--ink-2);
  padding: 8px 0;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
}
.nav a.active { color: var(--navy); font-weight: 700; }
/* 981–1100 px (just above the phone menu): the full menu + language + account
   row is tightest here; it overflowed by ~18 px at 1000 px. After the base
   .nav / .header-inner rules so these win. */
@media (min-width: 981px) and (max-width: 1100px) { .nav { gap: 18px; } .header-inner { gap: 16px; } }
@media (min-width: 981px) and (max-width: 1040px) { .nav { gap: 12px; } .header-inner { padding-inline: 20px; } .brand img { height: 56px; } }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px;
  height: 3px; background: var(--cyan);
}
.nav a:hover { color: var(--navy); }
/* ---------------- Language menu (one button + dropdown) ---------------- */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu__btn {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px 0 11px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1;
  letter-spacing: 0.03em; white-space: nowrap;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.lang-menu__btn::-webkit-details-marker { display: none; }
.lang-menu__btn::marker { content: ""; }
.lang-menu__btn:hover { border-color: var(--navy); background: var(--bg-sky); }
.lang-menu__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16, 115, 194, 0.35); border-color: var(--blue); }
.lang-menu[open] > .lang-menu__btn { border-color: var(--navy); background: var(--bg-sky); }
.lang-menu__globe { flex: 0 0 auto; color: var(--teal); }
.lang-menu__current { min-width: 1.4em; text-align: center; }
.lang-menu__chev { flex: 0 0 auto; opacity: .7; transition: transform .2s ease; }
.lang-menu[open] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 80;
  min-width: 196px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-hover);
  transform-origin: top right; animation: itcLangMenuIn .16s ease-out;
}
body.rtl .lang-menu__list { transform-origin: top left; }
@keyframes itcLangMenuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lang-menu__list { animation: none; } .lang-menu__chev { transition: none; } }
.lang-menu__list li { margin: 0; }
.lang-menu__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink-1); text-decoration: none;
}
a.lang-menu__item:hover, a.lang-menu__item:focus-visible { background: var(--bg-sky); color: var(--navy); outline: none; }
.lang-menu__item.is-current { color: var(--teal); cursor: default; }
.lang-menu__code {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  min-width: 28px; height: 22px; padding: 0 4px; border-radius: 6px;
  background: var(--bg-soft); color: var(--ink-2);
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
}
.lang-menu__item.is-current .lang-menu__code { background: var(--teal); color: #fff; }
.lang-menu__name[lang="ar"] { font-family: var(--arabic); }
.lang-menu__check { margin-inline-start: auto; color: var(--teal); }
/* Auth-aware account links in the header */
.nav-account-link {
  font-size: 13px; font-weight: 700; color: var(--navy);
  text-decoration: none; white-space: nowrap; letter-spacing: 0.02em;
}
.nav-account-link:hover { text-decoration: underline; }
/* White account links inside the dark mobile drawer */
.mobile-menu .nav-account-link {
  color: #fff; font-size: 18px; font-weight: 700;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
/* Compact account dropdown (desktop) — native <details>, keeps the nav from wrapping */
.account-menu { position: relative; flex-shrink: 0; }
.account-menu > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; line-height: 1;
  max-width: 180px;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { border-color: var(--navy); }
.account-menu-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-caret { font-size: 10px; transition: transform 0.15s; }
.account-menu[open] .account-menu-caret { transform: rotate(180deg); }
.account-menu-panel {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 210px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0,77,114,0.16);
  padding: 8px; display: flex; flex-direction: column; z-index: 60;
}
.account-menu-panel a {
  padding: 10px 12px; border-radius: 8px; color: var(--navy);
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.account-menu-panel a:hover { background: rgba(0,199,253,0.12); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 12px 22px; border-radius: 8px;
  border: 0;
  transition: background 0.18s, transform 0.18s;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn:hover { background: var(--teal); }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 14px 28px; font-size: 15px; }
.btn.xl { padding: 16px 32px; font-size: 16px; }
.btn.cyan { background: var(--cyan); color: var(--navy); }
.btn.cyan:hover { background: #00b0e0; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn.ghost.light:hover { background: #fff; color: var(--navy); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }
/* Flip the → glyph to point ← in RTL, and keep the hover nudge direction-correct */
body.rtl .btn .arrow { display: inline-block; transform: scaleX(-1); }
body.rtl .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* Core button blocks (wp:button) tagged with our .btn utility classes put the
   intent classes on the .wp-block-button wrapper, while the real control is the
   inner <a>. Left alone, the wrapper became the colored box and the inner link
   kept WordPress's default dark pill — a button inside a button. Neutralize the
   wrapper and map the appearance onto the link for one clean button. */
.wp-block-button.btn { background: none; border: 0; padding: 0; border-radius: 0; }
.wp-block-button.btn .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  padding: 12px 22px; border: 0; border-radius: 8px;
  text-decoration: none; transition: background 0.18s, transform 0.18s;
}
.wp-block-button.btn .wp-block-button__link:hover { background: var(--teal); }
.wp-block-button.btn.lg .wp-block-button__link { padding: 14px 28px; font-size: 15px; }
.wp-block-button.btn.xl .wp-block-button__link { padding: 16px 32px; font-size: 16px; }
.wp-block-button.btn.cyan .wp-block-button__link { background: var(--cyan); color: var(--navy); }
.wp-block-button.btn.cyan .wp-block-button__link:hover { background: #00b0e0; }
.wp-block-button.btn.ghost .wp-block-button__link { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.wp-block-button.btn.ghost .wp-block-button__link:hover { background: var(--navy); color: #fff; }
.wp-block-button.btn.ghost.light .wp-block-button__link { color: #fff; border-color: rgba(255,255,255,0.6); }
.wp-block-button.btn.ghost.light .wp-block-button__link:hover { background: #fff; color: var(--navy); }

/* Menu button (phones/tablets): a solid navy pill — animated bars + a label —
   so it is unmistakable next to the logo. The bars morph into an ✕ and the
   pill turns cyan while the drawer is open. */
.hamburger {
  display: none; flex: 0 0 auto;
  align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 16px;
  border: 0; border-radius: 999px;
  background: var(--navy); color: #fff;
  font: 700 14px/1 var(--serif); letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 77, 114, 0.28);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.hamburger:hover { background: var(--teal); }
.hamburger:active { transform: scale(.97); }
.hamburger:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--cyan); }
.hamburger.open { background: var(--cyan); color: var(--navy); box-shadow: 0 6px 18px rgba(0, 199, 253, 0.35); }
.hamburger__bars { position: relative; display: block; width: 20px; height: 14px; flex: 0 0 20px; }
.hamburger__bars span {
  position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, top .25s ease, opacity .2s ease, right .25s ease;
}
.hamburger__bars span:nth-child(1) { top: 0; }
.hamburger__bars span:nth-child(2) { top: 6px; right: 6px; }
body.rtl .hamburger__bars span:nth-child(2) { right: 0; left: 6px; }
.hamburger__bars span:nth-child(3) { top: 12px; }
.hamburger.open .hamburger__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.hamburger.open .hamburger__bars span:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
body.rtl .hamburger__label { font-family: var(--arabic); }
@media (prefers-reduced-motion: reduce) { .hamburger, .hamburger__bars span { transition: none; } }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: linear-gradient(180deg, var(--navy), #002b40);
  color: #fff;
  display: flex; flex-direction: column;
  padding: 100px 32px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  /* visibility:hidden takes the closed drawer's links out of the tab order AND
     the accessibility tree (translate alone leaves them keyboard-focusable at
     every breakpoint, incl. desktop where the drawer can't even open — WCAG
     2.4.3). Delay hiding until the slide-out finishes so the animation still
     plays; show immediately on open. */
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.35s;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  color: #fff; font-size: 22px; font-weight: 700;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
}
.mobile-menu nav a.active { color: var(--cyan); }
.mobile-menu .lang-menu { margin-top: 24px; align-self: stretch; }
.mobile-menu .lang-menu__btn {
  height: 44px; padding: 0 16px; font-size: 15px;
  background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); color: #fff;
}
.mobile-menu .lang-menu__btn:hover,
.mobile-menu .lang-menu[open] > .lang-menu__btn { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.4); }
.mobile-menu .lang-menu__globe { color: var(--cyan); }
.mobile-menu .lang-menu__list {
  position: static; margin-top: 10px; min-width: 0; animation: none;
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none;
}
.mobile-menu .lang-menu__item { color: #fff; font-size: 16px; padding: 12px; }
.mobile-menu a.lang-menu__item:hover, .mobile-menu a.lang-menu__item:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
.mobile-menu .lang-menu__item.is-current { color: var(--cyan); }
.mobile-menu .lang-menu__code { background: rgba(255,255,255,0.14); color: #fff; }
.mobile-menu .lang-menu__item.is-current .lang-menu__code { background: var(--cyan); color: var(--navy); }
.mobile-menu .lang-menu__check { color: var(--cyan); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------------- Generic layout ---------------- */
main { min-height: 70vh; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
/* Long unbreakable tokens (URLs, emails, long compounds) must wrap rather
   than force horizontal page scroll — matters most at mobile widths. */
.itc-page { overflow-wrap: break-word; word-break: break-word; }
/* Readable, centered column for plain document pages (Cookie Policy, Terms &
   Conditions, Privacy, and their Arabic translations) rendered by the generic
   page.php. Block-designed pages use their own templates and are unaffected;
   plugin shortcode pages are rendered outside this wrapper (see page.php). */
/* Cookie Policy — a plain document page with no width container of its own
   would render cramped against the left edge, so give it (EN + AR both use the
   `cookie-policy` slug) a centered, readable column. Scoped to this slug so no
   other page.php-rendered page is constrained. */
.itc-page--cookie-policy { max-width: 860px; margin: 0 auto; padding: 40px 24px 64px; }
.itc-page--cookie-policy .itc-page-title { margin: 0 0 .6em; }
.itc-page--cookie-policy :where(h1, h2, h3):not(:first-child) { margin-top: 1.6em; }
.section { padding: 88px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: var(--bg-soft); }
/* A section block saved without its inner .container (some Arabic pages) still
   gets the site's centred content width and side gutter, like every other
   section — so its content never runs edge to edge. */
.wp-block-group.section:not(.is-layout-constrained):not(:has(> .container)) > * { max-width: 1280px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
/* The eyebrow is inline-flex, which auto margins can't centre — make it block-level here so it lines up with the heading. */
.wp-block-group.section:not(:has(> .container)) > .eyebrow { display: flex; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h2 { color: #fff; }
.section.dark p { color: rgba(255,255,255,0.92); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--teal); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--cyan); display: inline-block;
}

h1 { font-size: 60px; line-height: 1.05; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
h2 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; color: var(--navy); margin: 0; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--navy); margin: 0; }
p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,199,253,0.15);
  color: var(--navy); font-weight: 700; font-size: 12px;
  padding: 6px 14px; border-radius: 999px;
  letter-spacing: 0.06em;
}
.badge.light { background: rgba(255,255,255,0.16); color: #fff; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card.accent {
  background: linear-gradient(135deg, #00485F 0%, #004D72 100%); color: #fff;
  border: 0;
}
.card.accent h3, .card.accent h2 { color: #fff; }
.card.accent p { color: rgba(255,255,255,0.85); }
.card.interactive:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: rgba(0,77,114,0.18); }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #003a58 0%, #004D72 45%, #00748D 100%);
  color: #fff;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: center;
  padding: 80px 0 90px;
}
.hero-bg {
  position: absolute; right: -120px; top: -100px;
  width: 420px; opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.hero-bg.b { left: -80px; top: auto; bottom: -100px; opacity: 0.06; right: auto; }
.hero p { color: rgba(255,255,255,0.92); }
.stat-num { font-size: 56px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.stat-lab { font-size: 12px; color: rgba(255,255,255,0.85); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; margin-top: 6px; }

.photo {
  background-color: var(--bg-sky);
  background-size: cover; background-position: center;
  border-radius: 14px; position: relative; overflow: hidden;
}
.photo.tint::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,77,114,0.4), rgba(0,77,114,0.05));
  pointer-events: none;
}

/* Orgs strip */
.orgs {
  background: var(--bg-soft);
  padding: 36px 0;
}
.orgs-inner {
  display: grid;
  /* Organizers hold more logos than sponsors — give that column extra room so
     four marks sit on one tidy row instead of wrapping. */
  grid-template-columns: minmax(0, 1.7fr) auto minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.orgs-tier { display: flex; flex-direction: column; gap: 18px; }
.orgs-tier-label {
  font-size: 11px; letter-spacing: 0.2em; color: var(--navy);
  text-transform: uppercase; font-weight: 800;
}
.orgs-tier-label.small { color: var(--gray); font-weight: 700; }
.orgs-tier-row { display: flex; align-items: center; gap: 26px 34px; flex-wrap: wrap; }
/* Uniform-height logo bar: every mark is capped to the same visual height and a
   sane max width, so square emblems and wide wordmarks read as one balanced row
   without distortion (aspect ratios preserved via object-fit). */
.orgs-tier-row .logo-cell {
  height: 78px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
/* Wide wordmarks (Classera, Intel, jp.ik) sit at this height. */
.orgs-tier-row .logo-cell img {
  max-height: 58px; max-width: 220px;
  width: auto; height: auto; object-fit: contain;
}
/* Compact square emblems (Millennium@EDU/Sustainable EDU) read visibly
   smaller than wide wordmarks at the same bounding height, so size them up
   optically — a taller cap on the near-1:1 marks balances the whole row.
   (ALECSO's current logo is a wide wordmark + emblem, so it uses the
   wordmark height — v2.13.19.) */
.orgs-tier-row .logo-cell img[alt*="Millennium" i],
.orgs-tier-row .logo-cell img[alt*="Sustainable" i] {
  max-height: 78px;
}
.orgs-tier-row.sponsors .logo-cell { height: 52px; opacity: 0.7; filter: grayscale(20%); }
.orgs-tier-row.sponsors .logo-cell img { max-height: 42px; max-width: 150px; }
.orgs-tier-row.sponsors .word {
  font-weight: 700; color: var(--gray); font-size: 15px;
  letter-spacing: 0.08em; /* full opacity: 3.5:1 was too faint (UI-13) */
  height: 52px; display: grid; place-items: center;
}
.orgs-divider { width: 1px; align-self: stretch; background: rgba(0,0,0,0.1); }

/* Steps grid */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
/* Blue, not cyan: cyan on white is under 3:1 even for large text (UI-13). */
.step-num { font-size: 44px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; line-height: 1; }
.step-bar { height: 3px; width: 40px; background: var(--cyan); margin: 14px 0 18px; border-radius: 2px; }

/* Timeline */
.timeline {
  /* One column per milestone (--tl-cols, set by the block from its row count),
     so five milestones sit on one line instead of wrapping the fifth onto a
     second row (v2.13.18). Tablets / phones keep their 2 / 1 columns below. */
  display: grid; grid-template-columns: repeat(var(--tl-cols, 4), minmax(0, 1fr)); gap: 20px;
  position: relative; padding-top: 12px;
}
.timeline::before {
  content: ""; position: absolute; top: 30px; left: 18px; right: 18px;
  height: 3px; background: linear-gradient(90deg, var(--cyan), rgba(255,255,255,0.2));
}
.tl-dot {
  width: 36px; height: 36px; border-radius: 50%;
  /* Opaque fill (navy + ~16% white) so the connector line is hidden behind the
     circle instead of showing through and crossing the number. */
  background: #296989;
  border: 2px solid var(--cyan);
  color: var(--cyan); font-weight: 800;
  display: grid; place-items: center;
  margin-bottom: 18px;
  position: relative; z-index: 1;
}
.tl-dot.now { background: var(--cyan); color: var(--navy); }
.tl-date { font-size: 12px; letter-spacing: 0.12em; color: var(--cyan); text-transform: uppercase; font-weight: 700; }
.tl-title { color: #fff; font-size: 18px; font-weight: 700; margin-top: 6px; }

/* Cards grid generic */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* Icon square */
.icon-sq {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(0,199,253,0.15); color: var(--navy);
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 22px; font-weight: 800;
}
.icon-sq.navy { background: var(--navy); color: var(--cyan); }

/* FAQ */
/* FAQ category filter bar */
.faq-search-bar { margin-bottom: 28px; }
.faq-search-input {
  width: 100%; max-width: 560px; display: block; margin: 0 auto;
  font: inherit; font-size: 16px; padding: 12px 16px;
  border: 1.5px solid #cfd8de; border-radius: 10px; background: #fff; color: var(--navy);
}
.faq-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
}
.faq-filter-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  color: var(--navy); background: #fff; border: 1.5px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.faq-filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.faq-filter-btn.active {
  background: var(--navy); border-color: var(--navy); color: #fff;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-button {
  width: 100%; text-align: inherit;
  background: transparent; border: 0; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
  color: var(--navy); font-weight: 700; font-size: 18px;
  font-family: inherit;
  cursor: pointer;
}
.faq-button:hover { color: var(--blue); }
.faq-icon { color: var(--blue); font-size: 22px; flex-shrink: 0; transition: transform 0.25s; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-cat {
  font-size: 11px; letter-spacing: 0.14em; color: var(--teal);
  text-transform: uppercase; font-weight: 700; margin-bottom: 6px;
}
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: 24px; color: var(--ink-2); font-size: 15px; line-height: 1.65; max-width: 70ch; }

/* FAQ search */
.search-bar {
  max-width: 640px; margin: 32px auto 0;
  background: #fff; border-radius: 14px;
  padding: 6px 8px 6px 22px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 12px 40px rgba(0,77,114,0.08);
}
.search-bar input {
  flex: 1; border: 0; outline: 0; padding: 14px 12px; font-size: 16px;
  font-family: inherit; color: var(--ink-1); background: transparent;
}
.cat-chips { display: flex; justify-content: center; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.cat-chips button {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: #fff; color: var(--ink-2);
  border: 1px solid var(--line);
}
.cat-chips button.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

/* Form */
/* Contact-form grid: two columns on desktop, one on mobile. min-width:0 lets
   the inputs shrink below their intrinsic width so the form never overflows. */
.itc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.itc-form-grid .itc-form-wide { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.02em;
}
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 14px 16px; font-size: 15px; font-family: inherit;
  color: var(--ink-1); background: #fff;
  outline: none; transition: border 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(16,115,194,0.1);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: #d65454;
  box-shadow: 0 0 0 4px rgba(214,84,84,0.08);
}
.field .err-msg { color: #d65454; font-size: 12px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--gray); }

.checkbox-row {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: border 0.15s, background 0.15s;
}
.checkbox-row.checked {
  border-color: var(--navy); background: rgba(0,77,114,0.05); color: var(--navy);
}
.checkbox-row .box {
  width: 18px; height: 18px; border: 1.5px solid var(--navy);
  border-radius: 4px; display: grid; place-items: center;
  background: #fff; color: #fff; font-size: 12px; font-weight: 800;
}
.checkbox-row.checked .box { background: var(--navy); }

/* Progress stepper */
.stepper { display: flex; align-items: center; gap: 0; }
.stepper-item { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 92px; }
.stepper-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line);
  display: grid; place-items: center;
  font-weight: 700; color: var(--gray); font-size: 14px;
}
.stepper-dot.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper-dot.done { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.stepper-label { font-size: 11px; font-weight: 700; color: var(--gray); letter-spacing: 0.06em; text-align: center; }
.stepper-label.active { color: var(--navy); }
.stepper-bar { flex: 1; height: 2px; background: var(--line); min-width: 18px; }
.stepper-bar.done { background: var(--cyan); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--navy); color: #fff;
  padding: 16px 24px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 60px rgba(0,77,114,0.3);
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; align-items: center; gap: 12px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #1c7e4a; }
.toast .check {
  width: 22px; height: 22px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: grid; place-items: center;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: #fff;
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .hero-bg { opacity: 0.08; right: -60px; top: -60px; width: 260px; }
.cta-band .hero-bg.b { left: -60px; bottom: -80px; top: auto; right: auto; }
.cta-band h2 { color: #fff; font-size: 44px; margin-top: 18px; }
/* Body copy on the navy→teal band — keep it high-contrast (AA). */
.cta-band p { color: rgba(255,255,255,0.95); }
/* The default eyebrow teal is near-invisible on the navy→teal band; brighten it. */
.cta-band .eyebrow { color: var(--cyan); }
.cta-band .eyebrow::before { background: var(--cyan); }

/* Footer */
footer {
  background: #002A40;
  color: rgba(255,255,255,0.78);
  padding: 60px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4,
footer .footer-heading {
  color: #fff; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 18px 0; font-weight: 700;
}
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer a { color: rgba(255,255,255,0.78); cursor: pointer; }
footer a:hover { color: var(--cyan); }
/* Footer social icons — only configured platforms render (blank ones hidden). */
/* "Follow us" icons in page content: [itc_social_icons] (v2.13.6). */
.itc-social-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.itc-social-row a { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: background .15s, color .15s; }
.itc-social-row a:hover, .itc-social-row a:focus-visible { background: var(--navy); color: #fff; }
.itc-social-row svg { width: 18px; height: 18px; }

.footer-social { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.9);
  transition: background 0.18s, color 0.18s;
}
.footer-social a:hover { background: var(--cyan); color: var(--navy); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: 12px; color: rgba(255,255,255,0.72);
}
.footer-disclaimer {
  padding-top: 12px; font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.66);
}

/* Tabs (apply page sidebar) */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }

/* Rubric tiles */
.rubric-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; transition: transform 0.2s, box-shadow 0.2s;
}
.rubric-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.rubric-num { font-size: 56px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1; }
.rubric-tile.bonus { background: linear-gradient(135deg, var(--cyan), #36d8ff); color: var(--navy); border: 0; }
.rubric-tile.bonus h3 { color: var(--navy); }
.rubric-tile.bonus p { color: rgba(0,77,114,0.82); }

/* Phase cards */
.phase {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px;
  position: relative; overflow: hidden;
}
.phase.win { background: linear-gradient(135deg, #00485F, #004D72); color: #fff; border: 0; }
.phase.win h3 { color: #fff; }
.phase.win p { color: rgba(255,255,255,0.85); }
.phase-num { font-size: 11px; letter-spacing: 0.18em; color: var(--teal); text-transform: uppercase; font-weight: 700; }
.phase.win .phase-num { color: var(--cyan); }
.phase-when { font-size: 14px; font-weight: 600; color: var(--gray); margin-top: 24px; }
.phase.win .phase-when { color: var(--cyan); }

/* Tags row */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag-row span {
  font-size: 12px; padding: 5px 12px; background: var(--bg-sky); color: var(--navy);
  border-radius: 999px; font-weight: 600;
}

/* Page header band (non-hero pages) */
.page-head {
  padding: 80px 0 56px;
  background: var(--bg-soft);
  position: relative; overflow: hidden;
}
.page-head .hero-bg { filter: none; opacity: 0.06; }
.page-head h1 { max-width: 920px; }

/* Apply form deadline card */
.deadline-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 18px 24px;
  text-align: center;
  flex-shrink: 0;
}
.deadline-card .num { font-size: 30px; font-weight: 800; color: #fff; margin-top: 6px; }

/* Two-col layout for apply form */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 36px; }

/* ============================================================ */
/*                       RESPONSIVE BREAKS                       */
/* ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 64px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .stat-num { font-size: 42px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  /* Page content sometimes sets its own column count inline (the How to Win
     rubric's 4 tiles, About's 2-up rows); the breakpoints must still win. */
  .grid-3[style*="grid-template-columns"], .grid-2[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 32px; }
  /* Below 980px the full nav + account cluster no longer fits a single-line
     header — switch to the hamburger + drawer (top bar = logo + hamburger). */
  .nav, .header-account { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 20px; }
  .container { padding: 0 20px; }
  .wp-block-group.section:not(.is-layout-constrained):not(:has(> .container)) > * { padding-inline: 20px; }
  .section { padding: 56px 0; }
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 18px; }
  p { font-size: 15px; }
  .steps, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-3[style*="grid-template-columns"], .grid-2[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .itc-form-grid { grid-template-columns: 1fr; }
  .itc-form-grid .itc-form-wide { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .hero-grid { padding: 40px 0 48px; }
  .photo { border-radius: 12px; }
  /* The step indicator can't shrink below its dots+labels; let it scroll
     inside its own card on narrow screens instead of overflowing the page. */
  .stepper { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .stepper-item { flex: 0 0 auto; min-width: 64px; }
  .stepper-label { font-size: 10px; }
  .stepper-bar { min-width: 8px; }
  .page-head { padding: 48px 0 32px; }
  .cta-band h2 { font-size: 26px; }
  .stat-num { font-size: 36px; }
  .step-num { font-size: 36px; }
  .rubric-num { font-size: 44px; }
  .orgs-inner { grid-template-columns: 1fr; gap: 24px; }
  .orgs-divider { width: 100%; height: 1px; }
  .orgs-tier-row { gap: 22px 26px; }
  .orgs-tier-row .logo-cell { height: 64px; }
  .orgs-tier-row .logo-cell img { max-height: 50px; max-width: 160px; }
  .orgs-tier-row .logo-cell img[alt*="ALECSO" i],
  .orgs-tier-row .logo-cell img[alt*="Millennium" i],
  .orgs-tier-row .logo-cell img[alt*="Sustainable" i] { max-height: 64px; }
}

/* ── Access Intel SFI → Learning Hub CTA band ─────────────────────── */
.itc-sfi-lms-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin: 48px auto 8px; max-width: 1120px; padding: 32px 36px;
  border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  box-shadow: 0 10px 30px rgba(0,77,114,.18);
}
.itc-sfi-lms-cta__text { flex: 1 1 320px; }
.itc-sfi-lms-cta__text h2 { margin: 0 0 6px; color: #fff; font-size: 1.5rem; }
.itc-sfi-lms-cta__text p { margin: 0; color: rgba(255,255,255,.9); }
.itc-sfi-lms-cta__btn {
  flex: 0 0 auto; background: var(--cyan); color: var(--navy);
  font-weight: 700; padding: 14px 26px; border-radius: 10px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.itc-sfi-lms-cta__btn:hover { background: #fff; transform: translateY(-1px); }
.itc-sfi-lms-cta__btn { font-size: 1.1rem; padding: 16px 30px; box-shadow: 0 8px 24px rgba(0,199,253,.35); }
/* Hero "Enter the SFI Learning Hub" — the page's primary action, above the fold. */
.itc-hero-cta { margin: 30px 0 0; }
.itc-sfi-hub-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 1.15rem;
  padding: 18px 34px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,199,253,.40), 0 0 0 4px rgba(0,199,253,.18);
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  animation: itc-hub-pulse 2.4s ease-in-out 3;
}
.itc-sfi-hub-btn:hover, .itc-sfi-hub-btn:focus-visible { background: #fff; color: var(--navy); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,199,253,.5), 0 0 0 6px rgba(255,255,255,.35); }
.itc-sfi-hub-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes itc-hub-pulse { 0%,100% { box-shadow: 0 10px 28px rgba(0,199,253,.40), 0 0 0 4px rgba(0,199,253,.18); } 50% { box-shadow: 0 10px 28px rgba(0,199,253,.55), 0 0 0 10px rgba(0,199,253,.10); } }
@media (prefers-reduced-motion: reduce) { .itc-sfi-hub-btn { animation: none; } }
@media (max-width: 600px) { .itc-sfi-hub-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; } }
body.rtl .itc-sfi-lms-cta { text-align: right; }
@media (max-width: 600px) {
  .itc-sfi-lms-cta { padding: 24px; }
  /* Long labels (French) wrap instead of being clipped (UI-07). */
  .itc-sfi-lms-cta__btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
}

/* How to Win step cards (v2.13.14, full review UI-01). The EN/FR page content
   lays each step out with an inline `grid-template-columns:auto 1fr 220px`,
   which left a few pixels for the text on phones (one letter per line, page
   scrolling sideways). Matched by that inline style so live pages are fixed
   without rewriting their content: number + text side by side, photo below. */
@media (max-width: 700px) {
  .card[style*="grid-template-columns:auto 1fr 220px"] {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 14px 16px !important;
    padding: 20px !important;
  }
  .card[style*="grid-template-columns:auto 1fr 220px"] > div:first-child {
    font-size: 40px !important;
  }
  .card[style*="grid-template-columns:auto 1fr 220px"] > .photo {
    grid-column: 1 / -1;
    height: 150px !important;
  }
  .card[style*="grid-template-columns:auto 1fr 220px"] > div > div[style*="display:flex"] {
    flex-wrap: wrap;
  }
}

/* How to Win step numbers ("01"…) are set to cyan inline in the page content;
   on the white cards that is under 3:1, so use the brand blue (UI-13). */
.card[style*="grid-template-columns:auto 1fr 220px"] > div:first-child { color: var(--blue) !important; }

/* Complianz cookie banner: its open animation grows the banner's height on
   phones, which Lighthouse measured as layout shift (CLS 0.13). Show it in
   its final size at once (v2.13.18). */
.cmplz-cookiebanner,
.cmplz-cookiebanner * { transition: none !important; animation: none !important; }
/* Complianz starts its slide-in banner below the screen (bottom:-50vh) and the
   slideIn animation brings it to bottom:0. With the animation off it stayed
   below the screen while the cookie wall dimmed the page, so nobody could
   answer it (v2.13.30). Put it where the animation would have ended. */
body #cmplz-cookiebanner-container .cmplz-cookiebanner { bottom: 0; }
