/* Site stylesheet (layout _Layout). Design tokens come from the redesign mockup (README, Design tokens).
   All classes are prefixed with hm-. */

@font-face { font-family: 'RoadUA'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/RoadUA-Regular.woff2') format('woff2'), url('../fonts/RoadUA-Regular.woff') format('woff'); }
@font-face { font-family: 'RoadUA'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../fonts/RoadUA-Medium.woff2') format('woff2'), url('../fonts/RoadUA-Medium.woff') format('woff'); }
@font-face { font-family: 'RoadUA'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/RoadUA-Bold.woff2') format('woff2'), url('../fonts/RoadUA-Bold.woff') format('woff'); }

:root {
  --hm-accent: #FFC400;
  --hm-ink: #0E1B2C;
  --hm-navy: #1C3353;
  --hm-bg: #F3F5F8;
  --hm-card: #FFFFFF;
  --hm-muted: #5A6779;
  --hm-text2: #3D4A5C;
  --hm-rubric: #8A5A00;
  --hm-line: #E2E7EE;
  --hm-on-dark: #C3CEDD;
  --hm-radius: 16px;
  --hm-radius-lg: 20px;
  --hm-wrap: 1200px;
  --hm-pad: 24px;
  --hm-head: 'RoadUA', system-ui, sans-serif;
  --hm-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
.hm-body { margin: 0; background: var(--hm-bg); color: var(--hm-ink); font-family: var(--hm-body); font-size: 17px; line-height: 1.55; }
.hm-body *, .hm-body *::before, .hm-body *::after { box-sizing: border-box; }
.hm-body a { color: var(--hm-ink); text-decoration: none; }
.hm-body a:hover { color: var(--hm-navy); text-decoration: underline; }
.hm-body a:focus-visible, .hm-body button:focus-visible, .hm-body input:focus-visible { outline: 3px solid var(--hm-accent); outline-offset: 2px; }
.hm-body img { max-width: 100%; display: block; }
.hm-body time { font-variant-numeric: tabular-nums; }

.hm-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--hm-accent); color: var(--hm-ink) !important; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.hm-skip:focus { left: 8px; }

.hm-wrap { max-width: var(--hm-wrap); margin: 0 auto; padding-left: var(--hm-pad); padding-right: var(--hm-pad); }

/* ---------- header ---------- */
.hm-header { background: var(--hm-ink); color: #fff; position: relative; z-index: 10; }
.hm-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.hm-body .hm-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.hm-body .hm-logo:hover { color: #fff; text-decoration: none; }
.hm-logo__img { display: block; width: 90px; height: 51px; background: url("/assets/visionzero-logo-light.png") center / contain no-repeat; }

.hm-burger { display: none; width: 44px; height: 44px; border: 1px solid #3A4B63; border-radius: 12px; background: transparent; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.hm-burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.hm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hm-header__panel { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; }
.hm-nav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 auto; font-family: var(--hm-head); font-size: 18px; font-synthesis: none; }
.hm-body .hm-nav a { color: #fff; padding: 10px 14px; font-weight: 500; border-radius: 10px; }
.hm-body .hm-nav a:hover { background: #1B2B42; text-decoration: none; color: #fff; }
.hm-header__tools { display: flex; align-items: center; gap: 8px; }

.hm-search { display: flex; align-items: center; border: 1px solid #3A4B63; border-radius: 22px; overflow: hidden; }
.hm-search input { background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; padding: 9px 4px 9px 16px; width: 150px; min-width: 0; }
.hm-search input::placeholder { color: #8FA0B8; }
.hm-search input:focus-visible { outline-offset: -2px; }
.hm-search button { background: transparent; border: 0; color: #fff; padding: 9px 14px 9px 8px; cursor: pointer; display: flex; }

.hm-lang { display: flex; border: 1px solid #3A4B63; border-radius: 22px; overflow: hidden; }
.hm-body .hm-lang a { padding: 10px 14px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; }
.hm-body .hm-lang a:hover { background: #1B2B42; text-decoration: none; color: #fff; }
.hm-body .hm-lang a[aria-current="true"] { background: #fff; color: var(--hm-ink); }

/* ---------- hero ---------- */
.hm-hero { background: var(--hm-navy); color: #fff; }
.hm-hero__main { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px; padding-top: 80px; padding-bottom: 56px; }
.hm-hero__text { flex: 999 1 560px; min-width: 0; }
.hm-eyebrow { margin: 0 0 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hm-accent); }
.hm-hero__content h1 { margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: clamp(34px, 8vw, 56px); line-height: 1.08; font-synthesis: none; }
.hm-hero__content p { margin: 28px 0 0; max-width: 620px; font-size: 19px; color: #D5DDE8; }

.hm-event { position: relative; flex: 1 1 320px; max-width: 452px; background: #fff; color: var(--hm-ink); border-radius: var(--hm-radius-lg); padding: 28px; }
.hm-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hm-rubric); }
.hm-event__content p { margin: 0; }
.hm-event__content p:first-child { font-family: var(--hm-head); font-weight: 500; font-size: 20px; line-height: 1.3; font-synthesis: none; }
.hm-event__content p:first-child a::after { content: ''; position: absolute; inset: 0; border-radius: var(--hm-radius-lg); }
.hm-event__content p + p { margin-top: 16px; font-weight: 600; color: var(--hm-navy); }
.hm-body .hm-event__content a { color: inherit; }

.hm-directions ul { list-style: none; margin: 0; padding: 0 0 72px; display: flex; flex-wrap: wrap; gap: 16px; }
.hm-directions li { flex: 1 1 280px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 22px 24px; border: 1px solid #34496A; border-radius: var(--hm-radius); }
.hm-directions li::before { content: '\2713'; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--hm-accent); color: var(--hm-accent); font-family: var(--hm-head); font-weight: 700; font-size: 22px; line-height: 1; font-synthesis: none; }
.hm-directions strong, .hm-directions span { grid-column: 2; }
.hm-directions strong { display: block; font-weight: 600; font-size: 18px; }
.hm-directions span { display: block; margin-top: 4px; color: var(--hm-on-dark); font-size: 15px; }
.hm-directions a { color: inherit; }
.hm-body .hm-directions a { color: #fff; }

/* ---------- sections ---------- */
.hm-section { padding-top: 56px; padding-bottom: 24px; }
.hm-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.hm-section__head h2 { margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: 36px; line-height: 1.15; font-synthesis: none; }
.hm-body .hm-section__head a { font-weight: 600; color: var(--hm-navy); }
.hm-date { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--hm-muted); }

/* campaign */
.hm-campaign { background: #fff; border-radius: var(--hm-radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); column-gap: 48px; align-content: start; }
.hm-campaign h2 { margin: 0; font-family: var(--hm-head); font-weight: 500; font-size: 32px; line-height: 1.15; font-synthesis: none; }
.hm-campaign__content { display: contents; }
.hm-campaign .hm-label, .hm-campaign h2, .hm-campaign__content > p { grid-column: 1; }
.hm-campaign__content > p { margin: 16px 0 0; color: var(--hm-text2); }
.hm-campaign__content > p:nth-of-type(2) { margin-top: 24px; }
.hm-body .hm-campaign__content > p:nth-of-type(2) > a { display: inline-block; background: var(--hm-ink); color: #fff; font-weight: 600; padding: 14px 26px; border-radius: 999px; }
.hm-body .hm-campaign__content > p:nth-of-type(2) > a:hover { background: var(--hm-navy); text-decoration: none; color: #fff; }
.hm-campaign__content > ol { grid-column: 2; grid-row: 1 / span 6; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-self: start; }
.hm-campaign__content > ol li { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--hm-line); }
.hm-campaign__content > ol li:last-child { border-bottom: 0; }
.hm-campaign__content > ol time { flex: 0 0 120px; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.hm-campaign__content > ol li a { flex: 1 1 280px; min-width: 0; font-weight: 500; }
.hm-campaign__content > ol li:first-child time { color: var(--hm-ink); font-weight: 700; }
.hm-campaign__content > ol li:first-child a { font-weight: 600; }

/* news */
.hm-news { display: flex; flex-wrap: wrap; gap: 24px; }
.hm-body .hm-news__lead { flex: 2 1 420px; min-width: 0; display: block; background: #fff; border-radius: var(--hm-radius-lg); overflow: hidden; color: var(--hm-ink); }
.hm-body .hm-news__lead:hover, .hm-body .hm-card:hover, .hm-body .hm-pub:hover { text-decoration: none; box-shadow: 0 8px 24px rgba(14, 27, 44, .10); }
.hm-news__img, .hm-pub__img { display: block; background: linear-gradient(135deg, #D7DEE9, #E9EDF3); overflow: hidden; }
.hm-news__img { aspect-ratio: 16 / 9; }
.hm-news__img img, .hm-pub__img img { width: 100%; height: 100%; object-fit: cover; }
.hm-news__body { display: block; padding: 24px; }
.hm-news__title { display: block; font-family: var(--hm-head); font-weight: 500; font-size: 22px; line-height: 1.3; font-synthesis: none; }
.hm-news__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hm-body .hm-card { display: block; background: #fff; border-radius: var(--hm-radius); padding: 24px; color: var(--hm-ink); }
.hm-card__title { display: block; font-weight: 600; font-size: 18px; line-height: 1.35; }

/* analytics */
.hm-analytics { display: flex; flex-wrap: wrap; gap: 24px; }
.hm-figure { position: relative; flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: var(--hm-ink); color: #fff; border-radius: var(--hm-radius-lg); padding: 32px; }
.hm-figure__number { font-family: var(--hm-head); font-weight: 700; font-size: clamp(48px, 7vw, 72px); line-height: 1; color: var(--hm-accent); font-synthesis: none; }
.hm-figure__unit { font-size: 28px; margin-left: 6px; }
.hm-figure__content p { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; }
.hm-figure__content p + p { margin-top: 20px; font-size: 17px; font-weight: 600; color: var(--hm-on-dark); }
.hm-figure__content p:first-child a::after { content: ''; position: absolute; inset: 0; border-radius: var(--hm-radius-lg); }
.hm-body .hm-figure__content a { color: inherit; }
.hm-list { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--hm-radius); align-self: flex-start; width: 100%; }
.hm-list li { border-bottom: 1px solid var(--hm-line); }
.hm-list li:last-child { border-bottom: 0; }
.hm-body .hm-list a { display: block; padding: 20px 28px; }
.hm-body .hm-list a:hover { background: #F7F9FB; text-decoration: none; }
.hm-list .hm-date { margin-bottom: 4px; }
.hm-list__title { display: block; font-weight: 600; font-size: 18px; line-height: 1.35; }

/* publications */
.hm-pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hm-body .hm-pub { display: block; background: #fff; border-radius: var(--hm-radius); overflow: hidden; color: var(--hm-ink); }
.hm-pub__img { aspect-ratio: 4 / 3; }
.hm-pub__body { display: block; padding: 20px; }
.hm-pub__title { display: block; font-weight: 600; font-size: 17px; line-height: 1.35; }

/* call to action */
.hm-cta-section { padding-top: 72px; padding-bottom: 72px; }
.hm-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; background: #fff; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-lg); padding: clamp(24px, 4vw, 40px); }
.hm-cta h2 { grid-column: 1; margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: 28px; line-height: 1.2; font-synthesis: none; }
.hm-cta__content { display: contents; }
.hm-cta__content > p { grid-column: 1; margin: 12px 0 0; color: var(--hm-text2); }
.hm-cta__content > p:nth-of-type(2) { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hm-body .hm-cta__content > p:nth-of-type(2) a { display: inline-block; border-radius: 999px; padding: 14px 26px; font-weight: 600; border: 2px solid var(--hm-ink); color: var(--hm-ink); }
.hm-body .hm-cta__content > p:nth-of-type(2) a:first-child { background: var(--hm-ink); color: #fff; }
.hm-body .hm-cta__content > p:nth-of-type(2) a:hover { text-decoration: none; background: var(--hm-navy); border-color: var(--hm-navy); color: #fff; }

/* ---------- footer ---------- */
.hm-footer { background: var(--hm-ink); color: var(--hm-on-dark); }
.hm-footer__cols { display: flex; flex-wrap: wrap; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; font-size: 15px; }
.hm-footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hm-footer__col--brand { flex-basis: 280px; }
.hm-footer__brand { margin: 0; font-family: var(--hm-head); font-weight: 700; color: #fff; font-size: 18px; font-synthesis: none; }
.hm-footer__tagline { margin: 4px 0 0; max-width: 320px; }
.hm-footer__title { font-weight: 600; color: #fff; }
.hm-body .hm-footer a { color: var(--hm-on-dark); }
.hm-body .hm-footer a:hover { color: #fff; }
.hm-footer__legal { border-top: 1px solid #23344B; padding-top: 20px; padding-bottom: 20px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hm-cta { grid-template-columns: 1fr; }
  .hm-cta__content > p:nth-of-type(2) { grid-column: 1; grid-row: auto; margin-top: 20px; }
}

@media (max-width: 1000px) {
  .hm-campaign { grid-template-columns: 1fr; }
  .hm-campaign__content > ol { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

@media (max-width: 860px) {
  .hm-burger { display: flex; }
  .hm-header__bar { flex-wrap: wrap; }
  .hm-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 8px; }
  .hm-header__panel.is-open { display: flex; }
  .hm-nav { flex-direction: column; margin: 0; gap: 0; }
  .hm-body .hm-nav a { padding: 14px 4px; border-bottom: 1px solid #1F2F45; border-radius: 0; }
  .hm-header__tools { flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
  .hm-search { flex: 1 1 200px; }
  .hm-search input { width: 100%; flex: 1; }
}

@media (max-width: 640px) {
  :root { --hm-pad: 20px; }
  .hm-body { font-size: 16px; }
  .hm-hero__main { padding-top: 48px; padding-bottom: 40px; gap: 32px; }
  .hm-hero__content p { font-size: 17px; }
  .hm-event { max-width: none; }
  .hm-directions ul { padding-bottom: 48px; }
  .hm-section__head h2 { font-size: 30px; }
  .hm-campaign h2 { font-size: 26px; }
  .hm-campaign__content > ol time { flex-basis: 100%; }
  .hm-list a { padding: 16px 20px; }
  .hm-figure { padding: 24px; }
  .hm-cta-section { padding-top: 48px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hm-burger span { transition: none; }
}

/* ======================================================================
   Inner pages
   ====================================================================== */
.hm-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.hm-page { padding-top: 28px; padding-bottom: 72px; }
.hm-page--narrow { max-width: 860px; }
.hm-h2 { margin: 0 0 20px; font-family: var(--hm-head); font-weight: 700; font-size: 28px; line-height: 1.2; font-synthesis: none; }

/* breadcrumbs */
.hm-crumbs { margin: 0 0 20px; font-size: 14px; color: var(--hm-muted); }
.hm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.hm-crumbs li + li::before { content: '/'; margin: 0 8px; color: #9AA6B6; }
.hm-body .hm-crumbs a { color: var(--hm-muted); }
.hm-body .hm-crumbs a:hover { color: var(--hm-ink); }
.hm-crumbs [aria-current="page"] { display: inline-block; max-width: min(520px, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--hm-ink); font-weight: 500; }

/* page title */
.hm-pagehead { margin: 0 0 32px; }
.hm-pagehead h1 { margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.12; font-synthesis: none; }
.hm-pagehead__lead { margin: 14px 0 0; max-width: 720px; font-size: 19px; color: var(--hm-text2); }

/* card grid (lists) */
.hm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.hm-postcard .hm-pub__excerpt { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--hm-text2); font-weight: 400; }
.hm-empty { margin: 8px 0; padding: 28px; background: #fff; border-radius: var(--hm-radius); color: var(--hm-text2); }

/* pagination */
.hm-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 40px; }
.hm-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hm-pager li a, .hm-pager li span { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; font-weight: 600; }
.hm-body .hm-pager li a { background: #fff; color: var(--hm-ink); }
.hm-body .hm-pager li a:hover { background: var(--hm-ink); color: #fff; text-decoration: none; }
.hm-pager li span[aria-current] { background: var(--hm-ink); color: #fff; }
.hm-pager li[aria-hidden] span { color: var(--hm-muted); }
.hm-body .hm-pager__step { font-weight: 600; color: var(--hm-navy); }

/* tag chips */
.hm-chips { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hm-body .hm-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--hm-line); color: var(--hm-ink); font-weight: 500; line-height: 1.3; }
.hm-body .hm-chips a:hover { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; text-decoration: none; }

/* article */
.hm-article__meta { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14px; font-weight: 600; color: var(--hm-muted); }
.hm-body .hm-article__meta a { color: var(--hm-rubric); }
.hm-article__head h1 { margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-synthesis: none; }
.hm-article__cover { margin: 32px 0 0; border-radius: var(--hm-radius-lg); overflow: hidden; background: #E4E9F0; }
.hm-article__cover img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.hm-article .hm-prose { margin-top: 32px; }

/* prose: HTML written in the admin (often imported from WordPress or pasted from Word) */
.hm-prose { font-size: 18px; line-height: 1.7; color: #1B2738; overflow-wrap: break-word; }
.hm-prose > :first-child { margin-top: 0; }
.hm-prose h1, .hm-prose h2, .hm-prose h3, .hm-prose h4 { font-family: var(--hm-head); font-weight: 700; line-height: 1.25; margin: 1.8em 0 0.6em; font-synthesis: none; }
.hm-prose h1 { font-size: 32px; }
.hm-prose h2 { font-size: 28px; }
.hm-prose h3 { font-size: 22px; }
.hm-prose h4 { font-size: 19px; }
.hm-prose p, .hm-prose ul, .hm-prose ol, .hm-prose blockquote, .hm-prose figure, .hm-prose table, .hm-prose pre { margin: 0 0 1.1em; }
.hm-prose ul, .hm-prose ol { padding-left: 1.4em; }
.hm-prose li { margin: 0.3em 0; }
.hm-body .hm-prose a { color: var(--hm-navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #9DB0CC; }
.hm-body .hm-prose a:hover { text-decoration-color: currentColor; }
.hm-prose img, .hm-prose video, .hm-prose svg { max-width: 100% !important; height: auto !important; border-radius: 12px; }
/* logos pasted as images with a white background: blend them into the page and centre them */
.hm-prose img[alt*="logo" i] { display: block; margin: 0 auto 1.4em; border-radius: 0; mix-blend-mode: multiply; }
.hm-prose figure { max-width: 100%; }
.hm-prose figcaption, .hm-prose .wp-caption-text { font-size: 14px; color: var(--hm-muted); margin-top: 6px; }
.hm-prose iframe { max-width: 100% !important; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.hm-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--hm-accent); color: var(--hm-text2); }
.hm-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.hm-prose th, .hm-prose td { border: 1px solid var(--hm-line); padding: 8px 12px; text-align: left; vertical-align: top; }
.hm-prose th { background: #EEF2F7; }
.hm-prose hr { border: 0; border-top: 1px solid var(--hm-line); margin: 2em 0; }
.hm-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.hm-prose .alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 50%; }
.hm-prose .alignright { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 50%; }
.hm-prose::after { content: ''; display: block; clear: both; }
/* pasted text carries inline fonts and sizes of its source: keep the site typography */
.hm-prose [style*="font-family"] { font-family: inherit !important; }
.hm-prose [style*="line-height"] { line-height: inherit !important; }
.hm-prose [style*="width"] { max-width: 100% !important; }
.hm-prose mark, .hm-results mark { background: #FFE58A; color: inherit; padding: 0 2px; border-radius: 3px; }
.hm-prose--invert { color: #E4EBF5; }
.hm-body .hm-prose--invert a { color: #fff; text-decoration-color: #7F93B3; }

/* attached files */
.hm-files { margin-top: 40px; padding: 24px 28px; background: #fff; border-radius: var(--hm-radius); }
.hm-files h2 { margin: 0 0 14px; font-family: var(--hm-head); font-weight: 700; font-size: 22px; font-synthesis: none; }
.hm-files ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hm-body .hm-files li > a { font-weight: 600; color: var(--hm-navy); }
.hm-body .hm-files li > a::before { content: '⬇'; margin-right: 10px; color: var(--hm-rubric); }
.hm-files__from { display: block; margin: 2px 0 0 24px; font-size: 14px; color: var(--hm-muted); }
.hm-body .hm-files__from a { color: var(--hm-muted); text-decoration: underline; }
.hm-body .hm-files__from a::before { content: none; }

.hm-related { margin-top: 64px; }
.hm-related h2 { margin: 0 0 24px; font-family: var(--hm-head); font-weight: 700; font-size: 28px; font-synthesis: none; }

/* search */
.hm-searchbox { display: flex; gap: 10px; max-width: 720px; margin-bottom: 28px; }
.hm-searchbox input { flex: 1; min-width: 0; font: inherit; font-size: 18px; padding: 14px 20px; border: 2px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-ink); }
.hm-searchbox input:focus { border-color: var(--hm-navy); outline: none; }
.hm-searchbox button, .hm-btn { display: inline-block; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 28px; border: 0; border-radius: 999px; background: var(--hm-ink); color: #fff; cursor: pointer; }
.hm-searchbox button:hover, .hm-btn:hover { background: var(--hm-navy); }
.hm-body a.hm-btn { color: #fff; }
.hm-body a.hm-btn:hover { text-decoration: none; color: #fff; }
.hm-results__count { margin: 0 0 12px; color: var(--hm-muted); font-weight: 600; }
.hm-results { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--hm-radius); }
.hm-results li { border-bottom: 1px solid var(--hm-line); }
.hm-results li:last-child { border-bottom: 0; }
.hm-body .hm-results a { display: block; padding: 22px 28px; }
.hm-body .hm-results a:hover { background: #F7F9FB; text-decoration: none; }
.hm-results__title { display: block; font-weight: 600; font-size: 20px; line-height: 1.35; }
.hm-results__excerpt { display: block; margin-top: 6px; color: var(--hm-text2); font-size: 16px; }

/* feedback form */
.hm-formcard { margin-top: 48px; padding: clamp(24px, 4vw, 36px); background: #fff; border-radius: var(--hm-radius-lg); }
.hm-form h2 { margin: 0 0 20px; font-family: var(--hm-head); font-weight: 700; font-size: 26px; font-synthesis: none; }
.hm-field { margin-bottom: 18px; }
.hm-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; }
.hm-field input, .hm-field textarea { width: 100%; font: inherit; font-size: 17px; padding: 12px 16px; border: 2px solid var(--hm-line); border-radius: 12px; background: #fff; color: var(--hm-ink); }
.hm-field textarea { resize: vertical; min-height: 140px; }
.hm-field input:focus, .hm-field textarea:focus { border-color: var(--hm-navy); outline: none; }
.hm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hm-notice { padding: clamp(24px, 4vw, 40px); background: #fff; border-radius: var(--hm-radius-lg); border-left: 6px solid var(--hm-accent); }
.hm-notice h1 { margin: 0 0 12px; font-family: var(--hm-head); font-weight: 700; font-size: 30px; line-height: 1.2; font-synthesis: none; }
.hm-notice--error { border-left-color: #C0392B; }

/* 404 / error */
.hm-404 { text-align: center; padding-top: 56px; }
.hm-404 .hm-404__code { margin: 0; font-family: var(--hm-head); font-weight: 700; font-size: clamp(80px, 18vw, 160px); line-height: 1; color: var(--hm-ink); text-shadow: 4px 4px 0 var(--hm-accent); font-synthesis: none; }
.hm-404 h1 { margin: 8px 0 12px; font-family: var(--hm-head); font-weight: 700; font-size: 32px; font-synthesis: none; }
.hm-404 p { color: var(--hm-text2); }
.hm-404 .hm-searchbox { margin: 28px auto; }
.hm-404 .hm-chips { justify-content: center; }
.hm-404__id { margin-top: 28px; font-size: 14px; color: var(--hm-muted); }

/* archive and tag cloud */
.hm-archive h2, .hm-tagcloud h2 { margin: 0 0 20px; font-family: var(--hm-head); font-weight: 700; font-size: 28px; font-synthesis: none; }
.hm-archive__years { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hm-archive__year { background: #fff; border-radius: var(--hm-radius); padding: 20px 24px; }
.hm-archive__year h3 { margin: 0 0 10px; font-family: var(--hm-head); font-weight: 700; font-size: 24px; font-synthesis: none; }
.hm-archive__year ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hm-body .hm-archive__year a { font-weight: 500; color: var(--hm-navy); }
.hm-tagcloud { margin-top: 56px; }
.hm-tagcloud .hm-chips { margin-top: 0; }

/* campaign page */
.hm-campaignhero { background: var(--hm-navy); color: #fff; border-radius: var(--hm-radius-lg); padding: clamp(28px, 5vw, 56px); margin-bottom: 8px; }
.hm-campaignhero .hm-label { color: var(--hm-accent); }
.hm-campaignhero h1 { margin: 0 0 18px; font-family: var(--hm-head); font-weight: 700; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; font-synthesis: none; }
.hm-campaignhero .hm-prose { font-size: 18px; max-width: 760px; }
.hm-campaignhero__count { margin: 24px 0 0; color: var(--hm-on-dark); }
.hm-campaignhero__count strong { color: var(--hm-accent); font-size: 20px; }
.hm-timeline { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 28px; margin-bottom: 24px; }
.hm-timeline__year { margin: 0; padding-top: 22px; font-family: var(--hm-head); font-weight: 700; font-size: 28px; color: var(--hm-navy); font-synthesis: none; }
.hm-timeline ol { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--hm-radius); }
.hm-timeline li { border-bottom: 1px solid var(--hm-line); }
.hm-timeline li:last-child { border-bottom: 0; }
.hm-body .hm-timeline a { display: block; padding: 20px 28px; }
.hm-body .hm-timeline a:hover { background: #F7F9FB; text-decoration: none; }
.hm-timeline__title { display: block; font-weight: 600; font-size: 19px; line-height: 1.35; }
.hm-timeline__excerpt { display: block; margin-top: 6px; color: var(--hm-text2); font-size: 15px; }
.hm-section.hm-files { padding: 24px 28px; margin-top: 48px; }

@media (max-width: 640px) {
  .hm-page { padding-top: 20px; padding-bottom: 48px; }
  .hm-prose { font-size: 17px; }
  .hm-prose .alignleft, .hm-prose .alignright { float: none; max-width: 100%; margin: 0 0 1em; }
  .hm-searchbox { flex-direction: column; }
  .hm-searchbox button { width: 100%; }
  .hm-timeline { grid-template-columns: 1fr; }
  .hm-timeline__year { padding-top: 8px; padding-bottom: 10px; }
  .hm-body .hm-results a, .hm-body .hm-timeline a { padding: 16px 20px; }
}
