/* ==========================================================================
   the Inclusive App Accelerator — site styles
   Refined edition: same layout, palette and markup as the original
   inclusiveapps.com rebuild, with a token-driven type scale, spacing rhythm,
   surfaces and a button hierarchy. Fonts: Libre Franklin (headings/nav),
   Mulish (body). Every colour pair is >= 4.5:1 in light and dark mode.
   ========================================================================== */

:root {
  /* brand */
  --blue: #0f57a7;          /* links, primary buttons, nav */
  --blue-dark: #0b4484;     /* primary hover */
  --blue-top: #1e73be;      /* "Skip to content" */
  --blue-tint: rgba(15, 87, 167, 0.08);
  --red: #dd3333;           /* current menu item / nav hover (original theme) */
  --purple: #3d1242;
  --accent: #feaf00;
  --cyan: #09bce5;

  /* text */
  --heading: #0f1115;
  --text: #3f4247;          /* 9.6:1 on white */
  --muted: #5f6368;         /* 5.9:1 on white, 5.5:1 on --surface */

  /* surfaces */
  --body-bg: #ffffff;
  --surface: #f6f7f9;       /* tinted panels: title bands, table head, footer */
  --surface-raised: #ffffff;/* cards */
  --nav-bg: #ffffff;
  --border: rgba(15, 17, 21, 0.10);
  --border-strong: rgba(15, 17, 21, 0.18);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-hover: 0 4px 12px rgba(16, 24, 40, 0.08);

  /* states */
  --on-blue: #ffffff;
  --focus: #0f57a7;
  --footer-text: #3f4247;

  /* scale */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 10px;
  --font-heading: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --content-max: 1040px;
  --measure: 72ch;
  --nav-height: 64px;
}

body.dark-mode {
  --blue: #5aa0ea;
  --blue-dark: #8cc0f5;
  --blue-top: #5aa0ea;
  --blue-tint: rgba(90, 160, 234, 0.14);
  --red: #f28b82;
  --purple: #a98fb0;
  --heading: #f5f5f7;
  --text: #d4d4d8;
  --muted: #a1a1aa;         /* 8.5:1 on #0f1115 */
  --body-bg: #0f1115;
  --surface: #15181d;
  --surface-raised: #1a1d23;
  --nav-bg: #0f1115;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 4px 14px rgba(0, 0, 0, 0.5);
  --on-blue: #0d1b2a;
  --focus: #feaf00;
  --footer-text: #d4d4d8;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;            /* 18px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
a:hover { color: var(--blue-dark); }
/* Links inside running text are underlined so they are never identified by colour alone (WCAG 1.4.1) */
.main-content p a:not(.btn), .main-content li a, .main-content td a, figcaption a, .copyright-info a, .table-note a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.main-content p a:not(.btn):hover, .main-content li a:hover, .copyright-info a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 var(--space-4); }
.accordion-body p, .accordion-body li, .tab-panel p, .tab-panel li, .resource p { max-width: var(--measure); }
/* long URLs used as link text must wrap at 320px (WCAG 1.4.10) */
.page-content p, .page-content li, .page-content td, .copyright-info { overflow-wrap: anywhere; }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.5em; }
li { margin-bottom: var(--space-2); }
li > ul, li > ol { margin-top: var(--space-2); margin-bottom: 0; }
strong, b { font-weight: 700; }
hr { border: 0; height: 1px; background: var(--border); margin: var(--space-7) 0; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  overflow-wrap: break-word;   /* long single words (e.g. #AppXcelerate2025) must not overflow at 320px */
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 var(--space-4);
}
h1 { font-size: 2.75rem; letter-spacing: -0.015em; }        /* 44px */
h2 { font-size: 1.875rem; letter-spacing: -0.01em; margin-bottom: 20px; }        /* 30px */
h3 { font-size: 1.375rem; }                                 /* 22px */
h4 { font-size: 1.125rem; }
h5, h6 { font-size: 1rem; }
h1 a, h2 a, h3 a, h4 a { color: inherit; }
.main-content > h2:not(:first-child), .main-content > article > h2:not(:first-child), .main-container > h2:not(:first-child) { margin-top: 40px; }
.main-content > h3:not(:first-child), .main-content > article > h3:not(:first-child), .main-container > h3:not(:first-child) { margin-top: var(--space-6); }
.main-content .page-title-band + h2, .main-content .page-title-band + h2:not(:first-child) { margin-top: 0; }   /* the heading right after a title band */
.eyebrow {
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space-3);
}

.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;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--body-bg); }
#content:focus-visible { outline: none; box-shadow: none; }
/* Keep focused and jumped-to elements out from under the sticky header (WCAG 2.4.11) */
[id], a, button, summary, [tabindex] { scroll-margin-top: calc(var(--nav-height) + 24px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Top bar ("Skip to Content") ---------- */
#top-bar { padding: 0 var(--space-4); }
#top-bar ul { list-style: none; margin: 0; padding: 0; }
#top-bar a {
  display: inline-block; font-family: var(--font-heading); font-size: 0.8125rem; line-height: 40px;
  letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase; color: var(--blue-top);
}
#top-bar a:hover { color: var(--heading); }

/* ---------- Main navigation ---------- */
#main-nav {
  position: sticky; top: 0; z-index: 1000;
  min-height: var(--nav-height);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.nav-inner { position: relative; padding: 0 var(--space-4); min-height: var(--nav-height); }
.mini-logo { position: absolute; left: var(--space-4); top: 0; height: var(--nav-height); display: flex; align-items: center; }
.mini-logo a { display: block; max-width: 190px; border-radius: var(--radius-sm); }
.mini-logo img { width: 100%; height: auto; }
body.dark-mode .mini-logo img { background: #fff; padding: 3px 6px; border-radius: var(--radius-sm); }

#main-menu { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: var(--space-1); }
#main-menu li { margin: 0; }
#main-menu li a, .mobile-menu-btn {
  display: block; position: relative; padding: 0 var(--space-4);
  font-family: var(--font-heading); font-size: 1rem; line-height: var(--nav-height);
  letter-spacing: 0.04em; font-weight: 700; text-transform: uppercase; color: var(--blue);
}
#main-menu li a::after {
  content: ""; position: absolute; left: var(--space-4); right: var(--space-4); bottom: 0; height: 3px;
  border-radius: 2px 2px 0 0; background: currentColor; opacity: 0; transition: opacity .15s ease;
}
#main-menu li a:hover, #main-menu li.current-menu-item > a { color: var(--red); }
#main-menu li a:hover::after, #main-menu li.current-menu-item > a::after { opacity: 1; }

.main-nav-icons { position: absolute; right: var(--space-1); top: 0; height: var(--nav-height); display: flex; align-items: center; gap: var(--space-3); }
.dark-mode-switcher {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--blue);
  width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.dark-mode-switcher svg { width: 18px; height: 18px; fill: currentColor; }
.dark-mode-switcher:hover { color: var(--red); background: var(--blue-tint); }
.dark-mode-switcher .icon-sun { display: none; }
body.dark-mode .dark-mode-switcher .icon-sun { display: block; }
body.dark-mode .dark-mode-switcher .icon-moon { display: none; }

.mobile-menu-btn { display: none; background: none; border: 0; cursor: pointer; min-height: 44px; border-radius: var(--radius-sm); }
.mobile-menu-container { display: none; border-top: 1px solid var(--border); background: var(--surface-raised); }
.mobile-menu-container.is-open { display: block; padding: var(--space-2) 0; box-shadow: var(--shadow-hover); }
.mobile-menu-container ul { list-style: none; margin: 0; padding: 0 var(--space-4); }
.mobile-menu-container li { margin: 0; }
.mobile-menu-container a {
  display: block; padding: 0 var(--space-3); margin: 2px 0; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-size: 1rem; line-height: 3; letter-spacing: 0.04em; font-weight: 700;
  text-transform: uppercase; color: var(--blue);
}
.mobile-menu-container a:hover { background: var(--blue-tint); }
.mobile-menu-container a:hover, .mobile-menu-container li.current-menu-item > a { color: var(--red); }

/* ---------- Page layout ---------- */
.main-content { max-width: var(--content-max); margin: 0 auto; padding: var(--space-7) var(--space-4) var(--space-8); }
.main-content::after { content: ""; display: table; clear: both; }

/* Left-sidebar layout (Apply page) */
.layout-lsidebar { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--space-7); }
.layout-lsidebar .main-container { min-width: 0; }
.sidebar-sticky { position: sticky; top: calc(var(--nav-height) + var(--space-5)); }

/* "On this page" jump links: a native disclosure, open on desktop, collapsible on phones */
.jump-links-box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); padding: var(--space-3) var(--space-3) var(--space-2); }
.jump-links-summary {
  list-style: none; cursor: default;
  font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); padding: var(--space-1) var(--space-3) var(--space-2);
}
.jump-links-summary::-webkit-details-marker { display: none; }
.jump-links { list-style: none; margin: 0; padding: 0; }
.jump-links li { margin: 0; }
.jump-links a { display: block; padding: 7px var(--space-3); border-radius: var(--radius-sm); font-size: 0.9375rem; line-height: 1.4; color: var(--text); }
.jump-links a:hover { color: var(--blue); background: var(--blue-tint); }

/* ---------- Title bands (Apply, About, Resources) ---------- */
.page-title-band {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding: 0 0 var(--space-5); margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}
.page-title-band h1 { margin: 0; }
.page-title-band .band-sub { margin: var(--space-2) 0 0; font-size: 1.0625rem; color: var(--muted); max-width: 60ch; }
.page-title-band .band-icon { flex: 0 0 auto; width: auto; height: 64px; }

/* ---------- Home: hero ---------- */
.hero-call {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: stretch;
  margin-bottom: var(--space-7); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-raised); box-shadow: var(--shadow);
}
.hero-call-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: var(--space-7) var(--space-7); }
.hero-eyebrow { margin-bottom: var(--space-4); }
.hero-title { font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 var(--space-3); color: var(--heading); max-width: 14ch; }
.hero-sub { font-size: 1.25rem; line-height: 1.4; margin: 0 0 var(--space-5); color: var(--text); }
.hero-cta { margin: 0; }
.hero-call-media { position: relative; min-height: 360px; border-left: 1px solid var(--border); }
.hero-call-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* ---------- Home: intro, cards, partners ---------- */
.home-intro { font-size: 1.1875rem; line-height: 1.6; margin-bottom: var(--space-6); }
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin: 0 0 var(--space-6); }
.home-card {
  text-align: center; padding: var(--space-6) var(--space-5);
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.home-card:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.home-card .card-icon { display: block; margin: 0 auto var(--space-5); width: auto; height: 96px; }
.home-card h3 { margin: 0 0 var(--space-2); font-size: 1.375rem; }
.home-card h3 a { color: var(--blue); }
.home-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-card p { margin: 0 auto; color: var(--muted); font-size: 1rem; }
.partners-title { text-align: center; margin: var(--space-7) 0 var(--space-5); font-size: 1.5rem; }

.partner-list {
  list-style: none; margin: 0 0 var(--space-5); padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-5) var(--space-7);
}
.partner-list li { margin: 0; flex: 0 1 220px; display: flex; align-items: center; justify-content: center; }
.partner-list img { width: auto; height: auto; max-width: 100%; max-height: 64px; }
.partner-list a { display: inline-flex; border-radius: var(--radius-sm); }
.partner-list a:hover img { opacity: .8; }
.partner-list-community li { flex: 0 1 220px; }
.partner-list-community img { max-height: 110px; }
body.dark-mode .partner-list img, body.dark-mode .partner-gallery img, body.dark-mode .awardee-gallery img { background: #fff; }
body.dark-mode .partner-list img { padding: 6px 10px; border-radius: var(--radius-sm); }

/* ---------- Buttons: primary / secondary / tertiary ---------- */
.btn, .elementor-button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 10px 22px;
  background: var(--blue); color: var(--on-blue) !important;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; line-height: 1.2; text-align: center;
  border: 1.5px solid var(--blue); border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn:hover, .elementor-button:hover { background: var(--blue-dark); border-color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--blue) !important; border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); border-color: var(--blue); color: var(--blue-dark) !important; }
.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-4); }
.btn-center { text-align: center; margin: var(--space-2) 0 var(--space-4); }
/* tertiary: a text link with an arrow (used for "read more") */
.read-more { margin: var(--space-4) 0 0; }
.read-more a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-1);
  font-size: 0.9375rem; font-weight: 700; color: var(--blue); border-radius: var(--radius-sm);
}
.read-more a::after { content: "\2192"; transition: transform .15s ease; }
.read-more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.read-more a:hover::after { transform: translateX(3px); }

/* ---------- Accordion (WAI-ARIA accordion pattern) ---------- */
.accordion { margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.accordion-item { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.acc-heading { margin: 0; font-size: 1.25rem; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; margin: 0; padding: var(--space-4) var(--space-5);
  background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; line-height: 1.3; transition: background-color .15s ease;
}
.acc-trigger:hover { background: var(--blue-tint); }
.acc-trigger .acc-icon {
  flex: 0 0 auto; width: 28px; height: 28px; position: relative; color: var(--blue);
  border: 1px solid var(--border-strong); border-radius: 50%;
}
.acc-trigger .acc-icon::before, .acc-trigger .acc-icon::after {
  /* borders, not backgrounds, so the icon survives forced colours */
  content: ""; position: absolute; left: 7px; top: 50%; width: 12px; height: 0; margin-top: -1px;
  border-top: 2px solid currentColor; border-radius: 1px;
}
.acc-trigger .acc-icon::after { transform: rotate(90deg); transition: transform .2s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.accordion-body { padding: 0 var(--space-5) var(--space-5); }
.accordion-body > :last-child { margin-bottom: 0; }

/* ---------- Tabs (WAI-ARIA tabs pattern, underline style) ---------- */
.tabs-heading { display: flex; flex-wrap: wrap; gap: var(--space-1); border-bottom: 1px solid var(--border); margin-bottom: var(--space-5); }
.tab-title {
  position: relative; margin-bottom: -1px; padding: 12px var(--space-4); min-height: 44px;
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.tab-title:hover { color: var(--heading); background: var(--blue-tint); }
.tab-title[aria-selected="true"] { color: var(--heading); border-bottom-color: var(--blue); }
.tab-panel { padding: 0 0 var(--space-2); }
.tab-panel > :last-child { margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-raised); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 1.0625rem; }
th, td { padding: 14px var(--space-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-heading); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
.table-note { font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* ---------- Team / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin: 0 0 var(--space-6); }
.gallery figure {
  margin: 0; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s ease, border-color .15s ease;
}
.gallery figure:hover { box-shadow: var(--shadow-hover); border-color: var(--border-strong); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery figcaption { font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; line-height: 1.35; text-align: center; padding: var(--space-3) var(--space-2); color: var(--heading); }
.partner-gallery { grid-template-columns: repeat(3, 1fr); }
.partner-gallery img { aspect-ratio: 3 / 2; object-fit: contain; padding: var(--space-4); }
.partner-gallery figure a { display: block; color: inherit; border-radius: inherit; }
.partner-gallery figure a figcaption { color: var(--blue); }
.partner-gallery figure a:hover figcaption { text-decoration: underline; text-underline-offset: 4px; }
.partner-gallery figure a:focus-visible { outline-offset: -3px; }
.awardee-gallery img { aspect-ratio: 1 / 1; object-fit: contain; padding: var(--space-4); }

/* ---------- Resources ---------- */
.resource { padding: var(--space-4) 0; border-top: 1px solid var(--border); }
.resource:first-child { border-top: 0; padding-top: 0; }
.resource h3 { font-size: 1.25rem; margin: 0 0 var(--space-2); }
.resource h3 a { color: var(--blue); }
.resource h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.resource p:last-child { margin-bottom: 0; }

/* ---------- News list ---------- */
.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.blog-grid > li { margin: 0; padding: var(--space-5); background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.blog-post { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: var(--space-6); align-items: start; }
.post-media { margin: 0; }
.post-media img { width: 200px; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.post-title { margin: 0 0 var(--space-2); font-size: 1.5rem; line-height: 1.2; }
.post-title a { color: var(--heading); }
.post-title a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.post-meta { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--space-3); }
.post-content p:last-child { margin-bottom: 0; }

/* ---------- Single article ---------- */
.single-post .post-featured { margin-bottom: var(--space-6); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.single-post .post-featured img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.single-post .post-title { font-size: 2.5rem; letter-spacing: -0.015em; margin-bottom: var(--space-2); }
.single-post .post-meta { margin-bottom: var(--space-5); }
.single-post .post-content { max-width: 800px; }
.post-nav { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.post-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9375rem; }
.post-nav a:hover { background: var(--blue-tint); }
.video-wrapper { position: relative; width: 100%; max-width: 800px; aspect-ratio: 16 / 9; margin: var(--space-5) 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
#page-footer { background: var(--surface); color: var(--footer-text); border-top: 1px solid var(--border); }
.page-footer-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-4); }
.footer-copyright { padding: var(--space-7) 0; text-align: center; font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }
.copyright-info { max-width: 80ch; margin: 0 auto; }
#page-footer a { color: var(--footer-text); }
#page-footer a:hover { color: var(--blue); }
.copyright-info em { font-style: italic; }
.copyright-info address { font-style: normal; margin-bottom: var(--space-4); color: var(--footer-text); }

.scrolltop {
  display: none; position: fixed; bottom: var(--space-6); right: var(--space-6); z-index: 20;
  width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-raised); color: var(--blue); font-size: 20px; line-height: 42px; text-align: center;
  box-shadow: var(--shadow-hover);
}
.scrolltop:hover { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.scrolltop.is-visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .layout-lsidebar { column-gap: var(--space-6); }
  .scrolltop { right: var(--space-4); bottom: var(--space-4); }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  #main-menu, .main-menu-container { display: none; }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
  .mini-logo, .main-nav-icons { position: static; }
  .mini-logo a { max-width: 136px; }
  .mobile-menu-btn { display: inline-block; padding: 0 var(--space-3); font-size: 1rem; }
  .main-content { padding: var(--space-5) var(--space-4) var(--space-7); }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  .main-content h2:not(:first-child) { margin-top: var(--space-6); }
  .hero-call { grid-template-columns: 1fr; }
  .hero-call-text { padding: var(--space-6) var(--space-5); align-items: flex-start; }
  .hero-title { font-size: 1.875rem; max-width: none; }
  .hero-sub { font-size: 1.0625rem; }
  .hero-call-media { min-height: 0; border-left: 0; border-top: 1px solid var(--border); }
  .hero-call-media img { position: static; height: auto; aspect-ratio: 4 / 3; }
  .layout-lsidebar { grid-template-columns: 1fr; }
  .layout-lsidebar .sidebar-left { margin-bottom: var(--space-5); }
  .sidebar-sticky { position: static; }
  .jump-links-summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: var(--heading); min-height: 44px; padding: 0 var(--space-3); }
  .jump-links-summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; color: var(--blue); }
  .jump-links-box[open] .jump-links-summary::after { content: "\2212"; }
  .page-title-band { padding-bottom: var(--space-4); gap: var(--space-4); }
  .page-title-band .band-icon { height: 48px; }
  .home-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .partner-gallery { grid-template-columns: repeat(2, 1fr); }
  .blog-grid > li { padding: var(--space-4); }
  .blog-post { grid-template-columns: 1fr; row-gap: var(--space-4); }
  .post-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .single-post .post-title { font-size: 2rem; }
  .accordion-body { padding: 0 var(--space-4) var(--space-4); }
  .acc-trigger { padding: var(--space-4); }
  .tab-title { padding: 10px var(--space-3); }
  table { font-size: 1rem; }
  th, td { padding: 12px var(--space-3); }
}

@media (max-width: 480px) {
  .partner-list { gap: var(--space-4); }
  .partner-list li { flex: 0 1 100%; }
  .partner-list img { max-width: 240px; max-height: 60px; }
  .partner-list-community img { max-height: 96px; }
  .btn-group .btn { width: 100%; }
}

@media (forced-colors: active) {
  /* Windows High Contrast: state must not depend on colour alone */
  .tab-title[aria-selected="true"] { border-bottom: 4px solid; }
  .btn, .scrolltop, .acc-icon, .tab-title { border: 2px solid; }
  .home-card, .accordion-item, .gallery figure, .blog-grid > li, .table-wrap, .hero-call, .page-title-band, .jump-links-box, .mobile-menu-container.is-open { border: 1px solid; }
}

@media print {
  #top-bar, #main-nav, .scrolltop, .read-more, .jump-links-box { display: none !important; }
  .accordion-body[hidden], .tab-panel[hidden] { display: block !important; }
  .home-card, .accordion-item, .gallery figure, .blog-grid > li, .hero-call { box-shadow: none !important; }
}
