/* ==========================================================================
   SOHT Hub — base system. Tokens overridable by the child theme. Logical properties throughout (RTL: Urdu).
   ========================================================================== */
:root {
  /* color — from the SOHT logo: slate wordmark, plum ribbon, sky + leaf figures, sunrise dot */
  --ink: oklch(0.27 0.02 250);
  --ink-2: oklch(0.44 0.02 250);
  --ink-3: oklch(0.48 0.02 250);
  --bg: oklch(0.995 0.002 300);
  --surface: oklch(0.965 0.006 300);
  --surface-2: oklch(0.935 0.01 300);
  --line: oklch(0.87 0.008 300);
  --line-strong: oklch(0.56 0.012 300);
  --plum: oklch(0.40 0.15 320);
  --plum-dk: oklch(0.33 0.13 320);
  --plum-tint: oklch(0.95 0.03 320);
  --sky: oklch(0.78 0.12 230);
  --sky-tint: oklch(0.95 0.03 230);
  --sky-deep: oklch(0.42 0.10 235);
  --leaf: oklch(0.80 0.16 130);
  --leaf-tint: oklch(0.95 0.04 130);
  --leaf-deep: oklch(0.42 0.10 150);
  --sunrise: oklch(0.74 0.17 55);
  --sunrise-tint: oklch(0.955 0.05 70);
  --focus: oklch(0.55 0.2 260);
  --danger: oklch(0.5 0.19 27);
  --danger-tint: oklch(0.96 0.03 27);
  --success: oklch(0.45 0.12 150);
  --success-tint: oklch(0.955 0.04 150);
  --link: var(--plum);
  --link-hover: var(--plum-dk);
  --primary: var(--plum);
  --primary-hover: var(--plum-dk);
  --on-primary: #fff;

  /* type — Noto Sans (Latin self-hosted); per-language stacks below keep every script in a related face */
  --font-latin: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: var(--font-latin);
  --font-display: var(--font-body);
  --fs--1: 0.875rem; --fs-0: 1.0625rem; --fs-1: 1.1875rem; --fs-2: 1.375rem; --fs-3: 1.625rem; --fs-4: 2rem; --fs-5: 2.5rem; --fs-6: 3.25rem;
  --lh: 1.6; --lh-tight: 1.15; --measure: 70ch; --wt-display: 700;

  /* space */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --container: 72rem; --gutter: clamp(1rem, 4vw, 2rem); --radius: 4px; --radius-lg: 8px;
  --z-nav: 10; --z-sticky: 20; --z-panel: 30; --z-dialog: 40; --z-toast: 50;
  --ease: cubic-bezier(0.25, 1, 0.5, 1); --dur: 180ms;
}
/* browsers without oklch() (Chromium < 111, Safari < 15.4): hex fallbacks for the tokens above */
@supports not (color: oklch(0 0 0)) {
  :root { --ink: #2B3A48; --ink-2: #566472; --ink-3: #66727e; --bg: #FEFDFE; --surface: #F4F2F5; --surface-2: #ECE8ED; --line: #DAD6DC; --line-strong: #7C7883; --plum: #6B2D82; --plum-dk: #52205F; --plum-tint: #F3E9F6; --sky: #48C0F0; --sky-tint: #D9F1FB; --sky-deep: #0F5A8A; --leaf: #8CC63F; --leaf-tint: #E3F2D2; --leaf-deep: #1F6B4A; --sunrise: #F7941D; --sunrise-tint: #FDF0DC; --focus: #2F5BD9; --danger: #B3261E; --danger-tint: #FBE9E7; --success: #1E7B4E; --success-tint: #E3F5EA; }
}
/* language-specific type: Tamil and Urdu are taller scripts; Chinese wants a CJK face; Urdu reads right-to-left */
:lang(ta) { --font-body: "Noto Sans Tamil", "Latha", "Tamil Sangam MN", system-ui, sans-serif; --lh: 1.8; --lh-tight: 1.3; }
:lang(zh-Hans), :lang(zh-CN) { --font-body: "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; --lh: 1.75; --lh-tight: 1.3; }
:lang(zh-Hant), :lang(zh-HK), :lang(zh-TW) { --font-body: "Noto Sans TC", "Noto Sans HK", "Noto Sans CJK TC", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif; --lh: 1.75; --lh-tight: 1.3; }
:lang(ur) { --font-body: "Noto Naskh Arabic", "Noto Naskh Arabic UI", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; --lh: 1.9; --lh-tight: 1.4; --fs-0: 1.125rem; }
:lang(ta) body, :lang(ur) body { font-size: calc(var(--fs-0) * 1.02); }
html[dir="rtl"] { --font-display: var(--font-body); }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3, :lang(ur) h1, :lang(ur) h2, :lang(ur) h3 { font-family: var(--font-body); letter-spacing: 0; }

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

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-0); line-height: var(--lh);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--wt-display); line-height: var(--lh-tight); margin: 0 0 var(--s-3); text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-5); }
h2 { font-size: var(--fs-3); }
h3 { font-size: var(--fs-2); }
h4 { font-size: var(--fs-1); }
p, ul, ol, dl { margin: 0 0 var(--s-4); }
a { color: var(--link); text-decoration: underline; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
address { font-style: normal; }
::selection { background: var(--sunrise); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.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 ---------- */
.skip-link { position: absolute; top: -100px; inset-inline-start: var(--s-4); z-index: var(--z-toast); background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: 0 0 var(--radius) var(--radius); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 0; outline-color: var(--sunrise); }

/* ---------- header ---------- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: var(--z-nav); }
.site-header__brand-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); padding: var(--s-3) 0; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.brand__img { height: 2.75rem; width: auto; max-width: none; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2); }
.site-header__utility { display: flex; align-items: center; gap: var(--s-2); justify-self: end; }
.utility-link { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); text-decoration: none; font-size: var(--fs--1); font-weight: 600; padding: var(--s-2) var(--s-3); border-radius: var(--radius); background: transparent; border: 0; }
.utility-link:hover { background: var(--surface); color: var(--ink); }
.icon--sm { width: 1.125rem; height: 1.125rem; }
.nav-open { border: 1px solid var(--line-strong); }
.nav-open__bars { display: inline-block; width: 1.125rem; height: 2px; background: currentColor; position: relative; }
.nav-open__bars::before, .nav-open__bars::after { content: ""; position: absolute; inset-inline-start: 0; width: 100%; height: 2px; background: currentColor; }
.nav-open__bars::before { top: -6px; } .nav-open__bars::after { top: 6px; }
.site-header__search { grid-column: 1 / -1; }

.search__label { display: block; font-size: var(--fs--1); font-weight: 600; margin-bottom: var(--s-1); }
.search__row { display: flex; }
.search__input { flex: 1; min-width: 0; padding: 0.6rem 0.75rem; border: 1px solid var(--line-strong); border-inline-end: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff; }
.search__input::placeholder { color: var(--ink-3); }
.search__btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0 var(--s-4); background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); border-start-end-radius: var(--radius); border-end-end-radius: var(--radius); font-weight: 600; }
.search__btn:hover { background: var(--primary-hover); }
.search__btn .icon { width: 1.125rem; height: 1.125rem; }
.is-home .site-header__search { display: none; }
.site-header .search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* primary nav */
.site-nav { border-top: 1px solid var(--line); background: var(--bg); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-1); }
.nav__item { position: relative; }
.nav__link, .nav__toggle { display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-3); color: var(--ink); text-decoration: none; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; }
.nav__link:hover, .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { border-bottom-color: var(--primary); color: var(--ink); }
.nav__item--current > .nav__link, .nav__item--current > .nav__toggle { border-bottom-color: var(--ink); }
.nav__chev { transition: transform var(--dur) var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__panel { position: absolute; top: 100%; inset-inline-start: 0; min-width: 18rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.25); padding: var(--s-2); z-index: var(--z-nav); }
.nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__sub a { display: block; padding: var(--s-2) var(--s-3); text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.nav__sub a:hover { background: var(--surface); text-decoration: underline; }
.nav__sub-item--overview a { font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: var(--s-1); }
.nav__desc { display: block; font-size: var(--fs--1); color: var(--ink-2); }
.site-nav__mobile-extras { display: none; }

@media (max-width: 59.99em) {
  html:not(.js) .site-nav, html:not(.js) .site-header__search { display: block; }
  html:not(.js) .nav-open, html:not(.js) [data-prefs-open] { display: none; }
  .site-header__brand-row { grid-template-columns: minmax(0, 1fr) auto; }
  .utility-link--contact { display: none; }
  .utility-link { padding-inline: var(--s-2); }
  .site-header__search { display: none; }
  .site-nav { display: none; }
  .nav-is-open .site-nav { display: block; border-top: 1px solid var(--line); }
  .nav { flex-direction: column; gap: 0; padding: var(--s-2) 0; }
  .nav__link, .nav__toggle { width: 100%; justify-content: space-between; padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
  .nav__panel { position: static; box-shadow: none; border: 0; border-inline-start: 3px solid var(--primary); margin: 0 0 var(--s-2); margin-inline-start: var(--s-2); }
  .site-nav__mobile-extras { display: block; padding: var(--s-4) 0 var(--s-5); }
  .mobile-contact { margin: var(--s-4) 0 0; font-size: var(--fs-0); }
  .mobile-contact a { font-weight: 700; }
}
@media (min-width: 60em) {
  .site-header__brand-row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search utility"; }
  .brand { grid-area: brand; }
  .site-header__search { grid-area: search; grid-column: auto; max-width: 30rem; justify-self: center; width: 100%; }
  .site-header__utility { grid-area: utility; }
  .nav-open { display: none; }
  .brand__img { height: 3.5rem; }
}

/* ---------- page header / breadcrumb ---------- */
.page-header { padding: var(--s-6) 0 var(--s-5); border-bottom: 1px solid var(--line); margin-bottom: var(--s-6); background: var(--surface); }
.page-header__title { margin-bottom: var(--s-2); }
.page-header__lede { font-size: var(--fs-1); color: var(--ink-2); max-width: var(--measure); margin: 0; text-wrap: pretty; }
.page-header__meta { color: var(--ink-2); margin: 0; }
.page-header__search { max-width: 36rem; margin-top: var(--s-4); }
.breadcrumb__list { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) 0; font-size: var(--fs--1); }
.breadcrumb__item + .breadcrumb__item::before { content: "/"; margin: 0 var(--s-2); color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- layout ---------- */
.layout--sidebar { display: grid; gap: var(--s-7); margin-bottom: var(--s-8); }
@media (min-width: 60em) { .layout--sidebar { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } }
.sidebar__title { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.sidebar__list, .section-nav__list { list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.section-nav { border-top: 3px solid var(--primary); padding-top: var(--s-3); }
.section-nav__title { font-size: var(--fs-1); }
.section-nav__list a { display: block; padding: var(--s-2) 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.section-nav__list a:hover { text-decoration: underline; }
.section-nav__list a[aria-current] { font-weight: 700; color: var(--plum); }

/* ---------- prose ---------- */
.prose { max-width: var(--measure); text-wrap: pretty; margin-bottom: var(--s-8); }
.prose--wide { max-width: none; }
.prose h2 { margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-5); }
.prose ul, .prose ol { padding-inline-start: 1.5em; }
.prose li + li { margin-top: var(--s-1); }
.prose img { border-radius: var(--radius); }
.prose .is-style-screenshot img { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 8px 24px rgb(0 0 0 / .08); }
.prose .is-style-screenshot { margin: var(--s-6) 0; }
.prose figure { margin: var(--s-5) 0; }
.prose figcaption, .entry__figure figcaption { font-size: var(--fs--1); color: var(--ink-2); margin-top: var(--s-2); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-3) var(--s-5); background: var(--surface); border-radius: var(--radius); font-size: var(--fs-1); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-buttons .wp-block-button__link, .prose .wp-element-button { background: var(--primary); color: var(--on-primary); border-radius: var(--radius); padding: 0.7rem 1.25rem; text-decoration: none; font-weight: 600; }
.prose .wp-block-buttons .wp-block-button__link:hover { background: var(--primary-hover); }
.prose .wp-block-file a:first-child { font-weight: 600; }
.prose .wp-block-file__button { display: none; }
.prose .has-surface-background-color, .prose .has-teal-background-color, .prose .has-orange-background-color { padding: var(--s-4) var(--s-5); border-radius: var(--radius); }
.prose .wp-block-details summary { cursor: pointer; font-weight: 700; padding: var(--s-2) 0; }
.prose .wp-block-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s-1) 0; }
.prose .wp-block-details + .wp-block-details { border-top: 0; }
.entry__figure { margin: 0 0 var(--s-5); }
.entry__figure img { border-radius: var(--radius); }
.reviewed { color: var(--ink-2); font-size: var(--fs--1); border-top: 1px solid var(--line); padding-top: var(--s-3); margin-top: var(--s-6); }
.doc-list, .task-links { list-style: none; padding: 0; }
.doc-list li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.doc-link { font-weight: 600; }
.doc-link__type { color: var(--ink-2); font-weight: 400; }
.facts { display: grid; margin: 0 0 var(--s-5); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s-4); background: var(--surface); padding: var(--s-4) var(--s-5); border-radius: var(--radius); margin-bottom: var(--s-5); }
.facts dt { font-size: var(--fs--1); color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.7rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid transparent; line-height: 1.2; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.btn--primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn--secondary { background: transparent; color: var(--primary); border-color: currentColor; }
.btn--secondary:hover { background: var(--plum-tint); color: var(--primary-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- home: hero (plain) ---------- */
.hero--plain { padding: var(--s-7) 0 var(--s-5); }
.hero__title { font-size: var(--fs-5); margin: 0; }

/* ---------- home: tasks ---------- */
.tasks { padding: var(--s-6) 0 var(--s-5); }
.tasks__title { margin-bottom: var(--s-4); }
.tasks__list { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-3); }
.task__link { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s-3); align-items: start; padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink); height: 100%; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.task__link:hover { border-color: var(--primary); background: var(--plum-tint); color: var(--ink); }
.task__link:hover .task__label { text-decoration: underline; text-decoration-thickness: 2px; }
.task__icon { grid-row: 1 / span 2; width: 1.75rem; height: 1.75rem; color: var(--primary); }
.task__label { font-weight: 700; font-size: var(--fs-1); line-height: 1.25; }
.task__desc { color: var(--ink-2); font-size: var(--fs--1); margin-top: var(--s-1); }
.tasks__all { font-weight: 600; }

/* ---------- section head ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); }
.section-head__title { margin: 0; }
.section-head__link { font-weight: 600; white-space: nowrap; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s-6) var(--s-5); align-items: start; }
.news-list--plain .news-item { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.news-item__media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: var(--radius); margin-bottom: var(--s-3); }
.news-item__title { font-size: var(--fs-1); margin: 0 0 var(--s-1); }
.news-item__title a { color: var(--ink); text-decoration: none; }
.news-item__title a:hover { text-decoration: underline; color: var(--plum); }
.news-item__date { display: block; font-size: var(--fs--1); color: var(--ink-2); margin-bottom: var(--s-2); }
.news-item__excerpt { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- forms ---------- */
.form { max-width: 40rem; }
.form__intro { color: var(--ink-2); }
.form__field { margin-bottom: var(--s-5); }
.form__field label, .form__group legend { display: block; font-weight: 700; margin-bottom: var(--s-1); }
.form__hint { color: var(--ink-2); font-size: var(--fs--1); margin: 0 0 var(--s-2); }
.form__error { color: var(--danger); font-weight: 700; font-size: var(--fs--1); margin: 0 0 var(--s-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="search"], .form select, .form textarea { width: 100%; padding: 0.65rem 0.75rem; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.form__field--error input, .form__field--error select, .form__field--error textarea { border-color: var(--danger); }
.form__group { border: 0; padding: 0; margin: 0 0 var(--s-5); }
.form__group legend { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.form__check { display: flex; gap: var(--s-2); align-items: flex-start; margin-bottom: var(--s-4); }
.form__check input { width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; accent-color: var(--plum); flex: none; }
.form__check label { font-weight: 600; margin: 0; }
.form__legal { font-size: var(--fs--1); color: var(--ink-2); }
.form__subhead { font-size: var(--fs-2); margin-top: var(--s-6); }
.form input[type="file"] { display: block; max-width: 100%; padding: var(--s-2) 0; }
.form input[type="file"]::file-selector-button { font: inherit; padding: 0.5rem 1rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: var(--radius); margin-inline-end: var(--s-3); cursor: pointer; }
.form input[type="file"]::file-selector-button:hover { background: var(--surface); }
.notice { padding: var(--s-4) var(--s-5); border-radius: var(--radius); margin-bottom: var(--s-5); border: 2px solid; }
.notice__title { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.notice--error { background: var(--danger-tint); border-color: var(--danger); }
.notice--error a { color: var(--danger); font-weight: 600; }
.notice--success { background: var(--success-tint); border-color: var(--success); }
.notice ul { margin: 0; padding-inline-start: 1.25em; }

/* ---------- results / pagination ---------- */
.results { list-style: none; padding: 0; margin: 0 0 var(--s-6); max-width: var(--measure); }
.result { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.result__type { font-size: var(--fs--1); color: var(--ink-2); margin: 0 0 var(--s-1); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.result__title { font-size: var(--fs-2); margin: 0 0 var(--s-1); }
.result__excerpt { margin: 0; color: var(--ink-2); }
.pagination { margin: var(--s-6) 0 var(--s-8); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pagination .page-numbers { display: inline-block; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-width: 2.5rem; text-align: center; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: oklch(0.92 0.005 286); margin-top: var(--s-8); padding: var(--s-8) 0 var(--s-6); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sunrise); }
.site-footer :focus-visible { outline-color: var(--sunrise); }
.site-footer__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer__heading { font-size: var(--fs-1); color: #fff; margin-bottom: var(--s-3); }
.site-footer__list, .site-footer__legal-list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: var(--s-2); }
.site-footer__list a { text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__address, .site-footer__urgent, .site-footer__land p { font-size: var(--fs--1); }
.site-footer__legal { border-top: 1px solid oklch(0.35 0.01 286); margin-top: var(--s-6); padding-top: var(--s-5); font-size: var(--fs--1); }
.site-footer__legal-list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-bottom: var(--s-4); }
.site-footer__copy, .site-footer__demo { color: oklch(0.8 0.005 286); margin: 0 0 var(--s-2); }
.site-footer__demo { max-width: 60ch; }

/* ---------- WordPress block alignment ---------- */
.alignwide { max-width: var(--container); }
.alignfull { width: 100vw; margin-inline-start: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
.wp-block-embed iframe { max-width: 100%; }



/* ---------- touch targets: 44px minimum on every control (WCAG 2.5.8 AA / 2.5.5) ---------- */
.btn, .utility-link, .nav-open, .nav__link, .nav__toggle, .lang__link, .search__btn, .page-tools__btn, .filter__chip, .doctor-bar__dismiss, .prefs__close, .switch, .helpful__btns .btn, .door__tasks a, .tabs__tab { min-height: 2.75rem; }
.door__tasks a, .lang__link, .filter__chip, .tabs__tab { display: inline-flex; align-items: center; }
.door__tasks a { width: 100%; }

/* ---------- demo strip + doctor banner ---------- */
.demo-strip { margin: 0; padding: var(--s-1) var(--gutter); background: var(--ink); color: #fff; font-size: var(--fs--1); text-align: center; }
.demo-strip a { color: #fff; }
@media (max-width: 47.99em) { .demo-strip { font-size: 0.75rem; padding: 0.2rem var(--gutter); } }
.doctor-bar { background: var(--sunrise-tint); border-bottom: 1px solid var(--line); color: var(--ink); }
.doctor-bar__inner { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-2) 0; }
.doctor-bar__text { margin: 0; flex: 1; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.doctor-bar__text .icon { color: var(--plum); flex: none; }
.doctor-bar__link { color: var(--plum); font-weight: 600; }
.doctor-bar__dismiss { background: transparent; border: 1px solid currentColor; color: inherit; border-radius: var(--radius); width: 2rem; height: 2rem; line-height: 1; font-size: 1.25rem; flex: none; }
.doctor-bar__dismiss:hover { background: rgb(0 0 0 / 0.08); }

/* ---------- utility: language switcher + preferences ---------- */
.utility-link .icon--sm { flex: none; }
.lang { position: relative; }
.lang__toggle[aria-expanded="true"] { background: var(--surface); }
.lang__panel { position: absolute; inset-inline-end: 0; top: 100%; min-width: 14rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.25); padding: var(--s-2); z-index: var(--z-panel); }
.lang__list { list-style: none; margin: 0; padding: 0; }
.lang__link { display: block; padding: var(--s-2) var(--s-3); text-decoration: none; color: var(--ink); border-radius: var(--radius); font-size: var(--fs-0); }
.lang__link:hover { background: var(--surface); text-decoration: underline; }
.lang__link[aria-current] { font-weight: 700; background: var(--plum-tint); }
.lang__link[aria-current]::after { content: " ✓"; }
.lang__link[lang="ur"] { direction: rtl; text-align: end; }

/* ---------- page tools ---------- */
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-5); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); font-size: var(--fs--1); }
.page-tools__label { color: var(--ink-2); font-weight: 600; }
.page-tools__btn { display: inline-flex; align-items: center; gap: var(--s-1); padding: 0.35rem 0.6rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs--1); }
.page-tools__btn:hover { border-color: var(--primary); color: var(--primary); }
.page-tools__btn.is-done { border-color: var(--success); color: var(--success); }

/* ---------- home: doors (three audiences) ---------- */
.doors { padding: var(--s-6) 0 var(--s-5); }
.doors__title { margin-bottom: var(--s-4); }
.doors__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-4); }
.door { padding: var(--s-5); border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.door--community { background: var(--sky-tint); border-color: transparent; }
.door--providers { background: var(--leaf-tint); border-color: transparent; }
.door--partners { background: var(--plum-tint); border-color: transparent; }
.door__title { font-size: var(--fs-2); margin-bottom: var(--s-2); }
.door__link { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); text-decoration: none; }
.door__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.door__icon { width: 2rem; height: 2rem; flex: none; }
.door--community .door__icon { color: var(--sky-deep); } .door--providers .door__icon { color: var(--leaf-deep); } .door--partners .door__icon { color: var(--plum); }
.door__lede { color: var(--ink-2); margin-bottom: var(--s-3); text-wrap: pretty; }
.door__tasks { list-style: none; margin: 0; padding: 0; }
.door__tasks li { padding: var(--s-2) 0; border-top: 1px solid rgb(0 0 0 / 0.08); }
.door__tasks a { color: var(--ink); font-weight: 600; }
.door__tasks a:hover { color: var(--primary); }

/* ---------- home: featured (three strategic directions — a real sequence) ---------- */
.featured { padding: var(--s-6) 0; border-top: 1px solid var(--line); }
.featured__list { margin: 0; padding: 0; list-style: none; counter-reset: sd; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-5) var(--s-6); }
.featured__item { counter-increment: sd; padding-inline-start: 3rem; position: relative; }
.featured__item::before { content: counter(sd); position: absolute; inset-inline-start: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 800; display: grid; place-items: center; }
.featured__title { font-size: var(--fs-1); margin-bottom: var(--s-2); }
.featured__title a { color: var(--ink); }
.featured__desc { color: var(--ink-2); margin: 0; text-wrap: pretty; }
.home-news, .home-events { padding: var(--s-6) 0; border-top: 1px solid var(--line); }

/* ---------- hub list / section pages ---------- */
.hub-list { list-style: none; margin: var(--s-5) 0 var(--s-7); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s-5) var(--s-6); }
.hub-item__title { font-size: var(--fs-2); margin-bottom: var(--s-1); }
.hub-item__desc { color: var(--ink-2); margin: 0 0 var(--s-2); }
.hub-item__sub { list-style: none; margin: 0; padding: 0; }
.hub-item__sub li { padding: var(--s-1) 0; }
.section-nav__list ul { list-style: none; margin: 0; padding: 0 0 0 var(--s-4); padding-inline-start: var(--s-4); }
.section-nav__list ul a { font-size: var(--fs--1); }
.section-nav__list a[aria-current] { color: var(--plum); }

/* ---------- filters + directories ---------- */
.filter { margin: 0 0 var(--s-5); }
.filter__set { border: 0; padding: 0; margin: 0; }
.filter__legend { font-weight: 700; margin-bottom: var(--s-2); }
.filter__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.filter__chip { display: inline-block; padding: 0.35rem 0.75rem; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: var(--fs--1); font-weight: 600; }
.filter__chip:hover { border-color: var(--primary); color: var(--primary); }
.filter__chip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter__count { font-weight: 400; color: inherit; opacity: 0.8; }
.filter__row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); align-items: end; }
.filter__field label { display: block; font-weight: 700; font-size: var(--fs--1); margin-bottom: var(--s-1); }
.filter__field select, .filter__field input { width: 100%; padding: 0.55rem 0.65rem; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff; }
.results-count { color: var(--ink-2); font-size: var(--fs--1); margin: 0 0 var(--s-3); }
.partner-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s-4); }
.partner { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.partner__logo img { width: 100%; height: auto; object-fit: contain; }
.partner__body { min-width: 0; }
.partner__name, .partner__site { overflow-wrap: anywhere; }
.partner__name { font-size: var(--fs-0); margin: 0 0 var(--s-1); }
.partner__name a { color: var(--ink); text-decoration: none; }
.partner__name a:hover { text-decoration: underline; color: var(--primary); }
.partner__sector { font-size: var(--fs--1); color: var(--ink-2); margin: 0 0 var(--s-1); }
.partner__site { font-size: var(--fs--1); margin: 0; }
.partner__hero-logo img { max-width: 16rem; }
.res-list { list-style: none; margin: 0 0 var(--s-6); padding: 0; }
.res { display: grid; grid-template-columns: 2rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.res:last-child { border-bottom: 1px solid var(--line); }
.res__icon { width: 1.75rem; height: 1.75rem; color: var(--plum); margin-top: 0.15rem; }
.res__title { font-size: var(--fs-1); margin: 0 0 var(--s-1); }
.res__file { font-weight: 400; color: var(--ink-2); font-size: var(--fs--1); }
.res__desc { margin: 0 0 var(--s-1); color: var(--ink-2); }
.res__meta { margin: 0; font-size: var(--fs--1); color: var(--ink-2); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.event__date { display: grid; text-align: center; align-content: start; background: var(--surface); border-radius: var(--radius); padding: var(--s-2) 0; line-height: 1.1; }
.event__month { font-size: var(--fs--1); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: var(--plum); }
.event__day { font-size: var(--fs-4); font-weight: 800; }
.event__title { font-size: var(--fs-1); margin: 0 0 var(--s-1); }
.event__title a { color: var(--ink); }
.event__meta { color: var(--ink-2); font-size: var(--fs--1); margin: 0 0 var(--s-1); }
.event__desc { margin: 0; color: var(--ink-2); }
.facts div { min-width: 0; }

/* ---------- embeds (consent gate) ---------- */
.embed { margin: var(--s-5) 0; }
.embed__gate { display: grid; align-content: center; gap: var(--s-2); padding: var(--s-5); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); max-width: 100%; }
.embed__title { margin: 0; font-size: var(--fs-1); }
.embed__text, .embed__note { margin: 0; color: var(--ink-2); font-size: var(--fs--1); max-width: 60ch; }
.embed__actions { margin: var(--s-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.embed__remember { font-size: var(--fs--1); color: var(--ink-2); display: flex; gap: var(--s-2); align-items: center; }
.embed iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); display: block; }
.embed__caption { font-size: var(--fs--1); color: var(--ink-2); margin-top: var(--s-2); }
.embed__print-note { display: none; }

/* ---------- helpful? / translation note / gate ---------- */
.helpful { margin-top: var(--s-7); padding: var(--s-4) var(--s-5); background: var(--surface); border-radius: var(--radius); }
.helpful__q { font-weight: 700; margin: 0 0 var(--s-2); }
.helpful__btns { display: flex; gap: var(--s-2); margin-bottom: var(--s-2); }
.helpful__note, .helpful__thanks { margin: 0; font-size: var(--fs--1); color: var(--ink-2); }
.helpful__thanks { font-weight: 600; color: var(--success); }
.translation-note { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); background: var(--sunrise-tint); border-radius: var(--radius); font-size: var(--fs--1); }
.translation-note p { margin: 0; }
.translation-note p + p { margin-top: var(--s-1); color: var(--ink-2); }
.gate__form { margin-top: var(--s-4); }
.form__req { font-weight: 400; color: var(--ink-2); }
.form__hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.callout { padding: var(--s-4) var(--s-5); border-radius: var(--radius); }
.callout h3 { margin-top: 0; }
.prose .has-sky-background-color, .prose .has-leaf-background-color, .prose .has-plum-tint-background-color, .prose .has-surface-background-color { padding: var(--s-4) var(--s-5); border-radius: var(--radius); }
.prose .has-sky-background-color { background: var(--sky-tint); } .prose .has-leaf-background-color { background: var(--leaf-tint); } .prose .has-plum-tint-background-color { background: var(--plum-tint); } .prose .has-surface-background-color { background: var(--surface); }
.doc-links { list-style: none; padding: 0; }
.doc-links li { padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }

/* ---------- display preferences dialog + states ---------- */
.prefs { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(92vw, 30rem); width: 100%; box-shadow: 0 24px 64px -24px rgb(0 0 0 / 0.4); color: var(--ink); background: #fff; }
.prefs::backdrop { background: rgb(0 0 0 / 0.45); }
.prefs__form { padding: var(--s-5); }
.prefs__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.prefs__title { margin: 0; font-size: var(--fs-2); }
.prefs__close { background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); width: 2.25rem; height: 2.25rem; font-size: 1.4rem; line-height: 1; color: var(--ink); }
.prefs__intro { color: var(--ink-2); font-size: var(--fs--1); margin: var(--s-2) 0 var(--s-3); }
.prefs__sub { font-size: var(--fs-0); margin: var(--s-4) 0 var(--s-1); }
.prefs__list { list-style: none; margin: 0; padding: 0; }
.prefs__item { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.prefs__label { font-weight: 600; }
.prefs__hint { display: block; font-weight: 400; font-size: var(--fs--1); color: var(--ink-2); }
.prefs__actions { margin: var(--s-4) 0 0; display: flex; gap: var(--s-2); justify-content: flex-end; }
.switch { position: relative; width: 3rem; height: 1.75rem; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface-2); padding: 0; flex: none; transition: background var(--dur) var(--ease); }
.switch__knob { position: absolute; top: 2px; inset-inline-start: 2px; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); transition: transform var(--dur) var(--ease); }
.switch[aria-checked="true"] { background: var(--plum); border-color: var(--plum); }
.switch[aria-checked="true"] .switch__knob { transform: translateX(1.25rem); border-color: transparent; }
html[dir="rtl"] .switch[aria-checked="true"] .switch__knob { transform: translateX(-1.25rem); }
.switch[aria-checked="true"]::before { content: ""; position: absolute; inset-inline-start: 0.4rem; top: 0.5rem; width: 0.35rem; height: 0.6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
html[data-pref-text] { font-size: 118.75%; }
html[data-pref-spacing] { --lh: 1.9; }
html[data-pref-spacing] body { letter-spacing: 0.04em; word-spacing: 0.12em; }
html[data-pref-spacing] p, html[data-pref-spacing] li { margin-bottom: calc(var(--s-4) * 1.5); }
html[data-pref-links] a { text-decoration: underline; text-decoration-thickness: 2px; background: oklch(0.97 0.16 100); color: var(--ink) !important; outline: 1px solid var(--ink); outline-offset: 1px; }
html[data-pref-contrast] { --ink: #000; --ink-2: #111; --ink-3: #222; --bg: #fff; --surface: #fff; --surface-2: #f0f0f0; --line: #000; --line-strong: #000; --plum: #3a0d4d; --plum-dk: #000; --plum-tint: #fff; --sky-tint: #fff; --leaf-tint: #fff; --sunrise-tint: #fff; --sky-deep: #000; --leaf-deep: #000; --link: #0000c8; --link-hover: #000; --primary: #000; --primary-hover: #3a0d4d; }
html[data-pref-contrast] .door, html[data-pref-contrast] .partner, html[data-pref-contrast] .helpful, html[data-pref-contrast] .embed__gate { border: 2px solid #000; }
html[data-pref-contrast] .site-footer { background: #000; color: #fff; }
html[data-pref-motion] *, html[data-pref-motion] *::before, html[data-pref-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-pref-images] img:not(.brand__img):not(.partner__logo img) { visibility: hidden; }
html[data-pref-images] .news-item__media, html[data-pref-images] .entry__figure, html[data-pref-images] .hero__media { display: none; }

/* ---------- print: the page, not the chrome; a printable, downloadable web page ---------- */
@media print {
  .demo-strip, .doctor-bar, .site-header, .site-nav, .page-tools, .helpful, .prefs, .site-footer__grid, .breadcrumb, .sidebar, .skip-link, .search { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .layout--sidebar { display: block; }
  .prose { max-width: none; }
  a { color: #000; }
  .entry a[href^="http"]:not([href*="datacleave.com"])::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #333; }
  .page-header { background: none; border-bottom: 2px solid #000; }
  .page-header__title::before { content: "Scarborough Ontario Health Team"; display: block; font-size: 10pt; font-weight: 400; color: #333; margin-bottom: 4pt; }
  .site-footer { margin-top: 12pt; padding: 0; background: none; color: #333; }
  .site-footer__legal { border: 0; padding: 0; }
  .embed__gate .btn { display: none; }
  .embed iframe { display: none; }
  .embed__gate::after, .embed__print-note { content: "Open online to use this map or dashboard."; font-size: 0.9em; }
  .embed__print-note { display: block; }
  .site-footer__legal::before { content: "Printed from " attr(data-print-url) " on " attr(data-print-date) "."; display: block; font-size: 0.85em; color: #333; margin-bottom: 4pt; }
}
/* ---------- engage strip ---------- */
.engage { background: var(--plum-tint); padding: var(--s-7) 0; margin-top: var(--s-5); }
.engage__inner { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 60em) { .engage__inner { grid-template-columns: 1.4fr 1fr; } .engage__actions { justify-self: end; } }
.engage__title { margin-bottom: var(--s-2); }
.engage__text { margin: 0; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.engage__actions { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
