/* ==========================================================================
   Dzengi Help Center — site.css
   Production stylesheet. Copy to app/static/css/site.css unchanged.
   Sections:
     0. Fonts
     1. Tokens (CSS custom properties)
     2. Reset / base
     3. Layout helpers (container, grid, stack)
     4. Typography helpers
     5. Buttons, inputs, icons
     6. Header (copied from dzengi.com "c-main-menu", simplified)
     7. Footer (copied from dzengi.com "c-footer")
     8. Page components (hero, breadcrumbs, cards, lists, search, pagination, sidebar)
     9. Article body (".hc-article-body") + content widgets
    10. Lightbox
    11. Utilities
   Naming:
     c-*   = classes copied from dzengi.com (header/footer) — keep identical
     hc-*  = help-center layout components
     no prefix inside .hc-article-body = classes that come from Zendesk article HTML
   ========================================================================== */

/* 0. FONTS ----------------------------------------------------------------
   Licensed font files are provided by the customer and placed into
   app/static/fonts/. Until they exist the browser uses the fallbacks below.
   File names are a contract — see docs/09-design-system.md §2.               */
@font-face { font-family: "PT Root UI"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/pt-root-ui_regular.woff2") format("woff2"); }
@font-face { font-family: "PT Root UI"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/pt-root-ui_medium.woff2") format("woff2"); }
@font-face { font-family: "PT Root UI"; font-weight: 600 700; font-style: normal; font-display: swap;
  src: url("../fonts/pt-root-ui_bold.woff2") format("woff2"); }
@font-face { font-family: "PT Root UI"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/pt-root-ui_light.woff2") format("woff2"); }

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  /* Brand palette — identical to dzengi.com :root variables */
  --green-100: #013023;
  --green-80: #1D705A;
  --green-30: #809791;
  --green-10: #DFF6EB;
  --black-100: #212322;
  --grey-prime: #363837;
  --grey-60: #666666;
  --grey-30: #999999;
  --grey-20: #F1F4F4;
  --grey-10: #E7E7E7;
  --white-100: #FFFFFF;
  --red-100: #F1491B;
  --blue-100: #02243A;
  --blue-80: #084368;
  --blue-10: #DFF1F6;
  --burgundy-80: #851E3D;
  --burgundy-10: #F7E7EC;
  /* Help-center additions (not on dzengi.com, derived from palette) */
  --amber-80: #A86A00;
  --amber-10: #FDF3E1;
  --red-10: #FDECE6;

  /* Semantic colours — use these in components, not raw palette */
  --color-bg: var(--white-100);
  --color-text: var(--black-100);
  --color-text-muted: var(--grey-60);
  --color-text-subtle: var(--grey-30);
  --color-link: var(--green-80);
  --color-link-hover: var(--green-100);
  --color-surface: var(--grey-20);
  --color-surface-accent: var(--green-10);
  --color-dark: var(--green-100);
  --color-border: rgba(128, 151, 145, 0.24);
  --color-border-strong: var(--grey-10);
  --focus-ring: inset 0 0 0 2px rgba(29, 112, 90, 0.3);
  --focus-outline: 2px solid var(--green-80);

  /* Typography */
  --font-sans: "PT Root UI", Arial, sans-serif;
  --font-serif: "Georgia Pro", georgiapro, Georgia, "Times New Roman", serif;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  /* Spacing scale (4px base) */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px; --space-6: 32px;  --space-7: 48px;  --space-8: 64px;
  --space-9: 80px; --space-10: 112px;

  /* Layout */
  --container-max: 1224px;          /* content width on dzengi.com at 1440px */
  --gutter: 16px;                   /* side padding, grows with breakpoints */
  --header-height: 57px;
  --header-offset: 16px;            /* header floats 16px from top */
  --grid-gap: 24px;

  /* Motion */
  --delay-short: 0.1s;
  --delay: 0.2s;
  --delay-long: 0.4s;
}
@media (min-width: 600px)  { :root { --gutter: 24px; } }
@media (min-width: 768px)  { :root { --gutter: 32px; --header-height: 65px; } }

/* 2. RESET / BASE ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + var(--header-offset) * 2); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.375;
  accent-color: var(--green-80);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg, video, iframe { max-width: 100%; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); }
:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 16px;
  background: var(--white-100); border-radius: var(--radius-sm); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.skip-link:focus { top: 16px; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.hc-container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hc-page { padding-top: var(--space-5); padding-bottom: var(--space-8); }
@media (min-width: 768px) { .hc-page { padding-top: var(--space-6); } }

.hc-stack > * + * { margin-top: var(--space-4); }
.hc-section-gap { margin-top: var(--space-8); }
@media (min-width: 1024px) { .hc-section-gap { margin-top: var(--space-9); } }

/* Two-column page: content + sidebar (article page) */
.hc-layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
@media (min-width: 1024px) {
  .hc-layout-sidebar { grid-template-columns: minmax(0, 1fr) 344px; gap: var(--space-8); }
}

/* 4. TYPOGRAPHY ------------------------------------------------------------ */
.hc-display {            /* hero H1 — dzengi "c-head" */
  font-family: var(--font-serif); font-weight: 300;
  font-size: 2rem; line-height: 2.5rem; color: inherit;
  overflow-wrap: break-word;
}
.hc-h1 {                 /* page titles */
  font-family: var(--font-serif); font-weight: 300;
  font-size: 2rem; line-height: 2.5rem; color: var(--color-text);
  overflow-wrap: break-word;
}
.hc-h2 {                 /* block titles: "Browse topics", "Related articles" */
  font-family: var(--font-serif); font-weight: 300;
  font-size: 1.75rem; line-height: 2.25rem; color: var(--color-text);
}
.hc-h3 {                 /* section titles in category page */
  font-family: var(--font-serif); font-weight: 300;
  font-size: 1.5rem; line-height: 2rem; color: var(--color-text);
}
@media (min-width: 600px) {
  .hc-display { font-size: 2.5rem; line-height: 3rem; }
  .hc-h1 { font-size: 2.5rem; line-height: 3rem; }
}
@media (min-width: 768px) {
  .hc-display { font-size: 3.5rem; line-height: 3.75rem; }
  .hc-h2 { font-size: 2.5rem; line-height: 3rem; }
  .hc-h3 { font-size: 1.75rem; line-height: 2.25rem; }
}
.hc-text-lg   { font-size: 1.25rem; line-height: 1.75rem; }               /* dzengi c-text   */
.hc-text      { font-size: 1.125rem; line-height: 1.5rem; }               /* dzengi c-notice ≥600 */
.hc-text-sm   { font-size: 1rem; line-height: 1.375rem; }
.hc-caption   { font-size: 0.875rem; line-height: 1.25rem; }
.hc-muted     { color: var(--color-text-muted); }
.hc-subtle    { color: var(--color-text-subtle); }
.hc-medium    { font-weight: 500; }
.hc-semibold  { font-weight: 600; }
.hc-lead      { font-size: 1.125rem; line-height: 1.625rem; color: var(--color-text-muted); }
@media (min-width: 768px) { .hc-lead { font-size: 1.25rem; line-height: 1.75rem; } }

/* 5. BUTTONS / INPUTS / ICONS ---------------------------------------------- */
.hc-icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; }
.hc-icon--sm { width: 16px; height: 16px; }
.hc-icon--lg { width: 32px; height: 32px; }

.hc-btn, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 11px 30px;
  border: 1px solid currentColor; border-radius: var(--radius-md);
  background: transparent; color: var(--green-80);
  font: 500 1.125rem/1.5rem var(--font-sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color var(--delay-short), color var(--delay-short), border-color var(--delay-short);
}
.hc-btn:hover, .btn:hover { background: var(--green-10); color: var(--green-80); }
.hc-btn--primary, .btn--primary {
  background: var(--green-80); border-color: var(--green-80); color: var(--white-100);
}
.hc-btn--primary:hover, .btn--primary:hover { background: var(--green-100); border-color: var(--green-100); color: var(--white-100); }
.hc-btn--soft { background: var(--green-10); border-color: var(--green-10); color: var(--green-80);
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); }
.hc-btn--soft:hover { background: #cdeedd; }
.hc-btn--on-dark { color: var(--white-100); border-color: rgba(255,255,255,.4); }
.hc-btn--on-dark:hover { background: rgba(255,255,255,.08); color: var(--white-100); }
.hc-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 1rem; border-radius: var(--radius-sm); }

/* "Arrow link" — dzengi c-button.m-link hover effect */
.hc-arrow-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 500; color: var(--green-80); }
.hc-arrow-link::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'><path d='M10.75 1.06066L18.75 9.06066L10.75 17.0607M17.75 9.06066H0.75'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'><path d='M10.75 1.06066L18.75 9.06066L10.75 17.0607M17.75 9.06066H0.75'/></svg>") center / contain no-repeat;
  transition: transform var(--delay);
}
.hc-arrow-link:hover::after { transform: translateX(4px); }

/* Search field (hero + compact) */
.hc-search { position: relative; display: flex; gap: var(--space-2); width: 100%; }
.hc-search__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--grey-60); pointer-events: none; }
.hc-search__input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 16px 0 52px;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--white-100); color: var(--color-text);
  font-size: 1.125rem; line-height: 1.5rem;
  transition: border-color var(--delay-short), box-shadow var(--delay-short);
}
.hc-search__input::placeholder { color: var(--grey-30); }
.hc-search__input:focus { outline: none; border-color: var(--green-80); box-shadow: 0 0 0 3px rgba(29,112,90,.18); }
.hc-search__input::-webkit-search-cancel-button { cursor: pointer; }
.hc-search__btn { flex: 0 0 auto; height: 56px; }
.hc-search--compact .hc-search__input { height: 44px; font-size: 1rem; padding-left: 44px; border-radius: var(--radius-md); background: var(--grey-20); border-color: transparent; }
.hc-search--compact .hc-search__input:focus { background: var(--white-100); }
.hc-search--compact .hc-search__icon { left: 14px; }
.hc-search--compact .hc-icon { width: 20px; height: 20px; }
@media (max-width: 599.98px) {
  .hc-search--hero { flex-direction: column; }
  .hc-search--hero .hc-search__icon { top: 28px; }
  .hc-search--hero .hc-search__btn { width: 100%; }
}

/* 6. HEADER (dzengi.com c-main-menu) ---------------------------------------- */
.c-main-menu {
  --main-menu-color: var(--green-80);
  position: sticky; top: var(--header-offset); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: min(1272px, 100% - 16px); min-height: var(--header-height);
  margin: var(--header-offset) auto 0;
  padding: 0 8px 0 16px;
  background: var(--white-100);
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 1.125rem; line-height: 1.5rem;
}
@media (min-width: 600px)  { .c-main-menu { width: min(1272px, 100% - 32px); } }
@media (min-width: 768px)  { .c-main-menu { width: min(1272px, 100% - 40px); padding: 0 12px 0 20px; } }
@media (min-width: 1024px) { .c-main-menu { width: min(1272px, 100% - 64px); padding: 0 24px; } }
/* On pages with a dark hero the header floats above it */
body.has-hero .c-main-menu { position: fixed; left: 50%; translate: -50% 0; margin-top: 0; top: var(--header-offset); }

.c-main-menu__logo-link { display: inline-flex; align-items: center; font-size: 0; color: var(--main-menu-color); flex-shrink: 0; }
.c-main-menu__logo-link > svg { width: 125px; height: 21px; }
.c-main-menu__logo-suffix { /* "Help Center" label next to logo */
  margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--color-border);
  font-size: 1rem; line-height: 1.25rem; color: var(--grey-60); white-space: nowrap; }
@media (max-width: 599.98px) { .c-main-menu__logo-suffix { display: none; } }

.c-main-menu__hamburger-input { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; }
.c-main-menu__hamburger { position: relative; width: 40px; height: 40px; color: var(--main-menu-color); cursor: pointer; order: -1; }
.c-main-menu__hamburger .c-main-menu__link-icon { position: absolute; inset: 50%; translate: -50% -50%; transition: opacity .2s, transform .2s; }
.c-main-menu__hamburger .c-main-menu__link-icon:last-child { opacity: 0; transform: scale(.7); }
.c-main-menu__hamburger-input:checked + .c-main-menu__hamburger .c-main-menu__link-icon:first-child { opacity: 0; transform: scale(.7); }
.c-main-menu__hamburger-input:checked + .c-main-menu__hamburger .c-main-menu__link-icon:last-child { opacity: 1; transform: none; }
.c-main-menu__hamburger-input:focus-visible + .c-main-menu__hamburger { outline: var(--focus-outline); border-radius: var(--radius-sm); }
.c-main-menu__link-icon { width: 24px; height: 24px; }

.c-main-menu__nav { display: none; }
.c-main-menu__top-list { list-style: none; margin: 0; padding: 0; }
.c-main-menu__link { position: relative; display: inline-block; font-size: 1.125rem; font-weight: 400; line-height: 1.5rem; color: var(--black-100); }
.c-main-menu__link:hover, .c-main-menu__link.m-active { color: var(--green-80); }
.c-main-menu__nest-links { display: flex; flex-direction: column; }

/* Mobile/tablet panel (< 1024px) */
@media (max-width: 1023.98px) {
  .c-main-menu__hamburger-input:checked ~ .c-main-menu__nav {
    display: block; position: absolute; inset: 100% 0 auto; margin-top: 8px;
    max-height: calc(100vh - 100px); overflow: auto;
    padding: 12px; background: var(--white-100);
    border-bottom: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: 0 16px 32px rgba(1, 48, 35, .08);
  }
  .c-main-menu__top-item { padding: 8px; }
  .c-main-menu__top-item + .c-main-menu__top-item { border-top: 1px solid var(--grey-20); }
  .c-main-menu__top-item-title .c-main-menu__link { font-weight: 600; }
  .c-main-menu__nest-links { gap: 0; padding: 4px 0 4px 12px; }
  .c-main-menu__nest-links .c-main-menu__link { padding: 8px 0; font-size: 1rem; }
}
/* Desktop (≥ 1024px): horizontal nav with hover dropdowns */
@media (min-width: 1024px) {
  .c-main-menu__hamburger, .c-main-menu__hamburger-input { display: none; }
  .c-main-menu__nav { display: block; align-self: stretch; }
  .c-main-menu__top-list { display: flex; height: 100%; }
  .c-main-menu__top-item { display: flex; align-items: center; padding: 0 20px; }
  .c-main-menu__top-item:hover .c-main-menu__top-item-title .c-main-menu__link { color: var(--green-80); }
  .c-main-menu__nest-links {
    position: absolute; inset: 100% 0 auto; z-index: 1;
    display: flex; flex-flow: column wrap; align-content: flex-start; gap: 12px 32px;
    max-height: 192px; margin-top: 8px; padding: 24px 32px;
    background: var(--white-100); border-bottom: 1px solid var(--color-border); border-radius: var(--radius-lg);
    visibility: hidden; opacity: 0; transition: opacity var(--delay), visibility var(--delay);
  }
  .c-main-menu__nest-links::before { content: ""; position: absolute; inset: -16px 0 100%; } /* hover bridge */
  .c-main-menu__nest-links:empty { display: none; }
  .c-main-menu__nest-links > .c-main-menu__link { min-width: 176px; }
  .c-main-menu__top-item:hover .c-main-menu__nest-links,
  .c-main-menu__top-item:focus-within .c-main-menu__nest-links { visibility: visible; opacity: 1; }
}

.c-main-menu__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
@media (min-width: 1024px) { .c-main-menu__actions { margin-left: 0; } }
.c-main-menu__lang {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-sm); color: var(--green-80); font-size: 1rem; font-weight: 500;
}
.c-main-menu__lang:hover { background: var(--grey-20); }
.c-main-menu__lang .hc-icon { width: 20px; height: 20px; }
.c-main-menu__button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; min-width: 40px; padding: 0 14px;
  background: var(--green-10); color: var(--green-80);
  border: 0; border-radius: var(--radius-sm);
  font-size: 1.125rem; font-weight: 500; line-height: 40px; cursor: pointer;
  transition: background-color var(--delay-short);
}
.c-main-menu__button:hover { background: #cdeedd; color: var(--green-80); }
.c-main-menu__button .c-main-menu__link-icon { display: none; }
@media (max-width: 599.98px) {
  .c-main-menu__button { padding: 0; border-radius: 50%; }
  .c-main-menu__button .c-main-menu__link-text { display: none; }
  .c-main-menu__button .c-main-menu__link-icon { display: block; }
}

/* Spacer under a fixed header on hero pages is the hero's own padding-top. */

/* 7. FOOTER (dzengi.com c-footer) ------------------------------------------ */
.c-footer {
  --footer-bg-from: var(--green-10);
  --footer-bg-to: var(--white-100);
  --footer-brand-color: var(--green-80);
  margin-top: 80px;
  background: linear-gradient(180deg, var(--footer-bg-from) 0, var(--footer-bg-to) 1016px);
  color: var(--black-100);
}
.c-footer__inner { max-width: 1336px; margin: 0 auto; padding: 64px 16px; }
.c-footer__header { display: grid; grid-template-columns: auto; grid-template-rows: auto 1fr; row-gap: 24px; }
.c-footer__logo-link { display: inline-block; width: fit-content; font-size: 0; color: var(--footer-brand-color); }
.c-footer__logo-link > svg { width: 100px; height: 17px; }
.c-footer__tagline { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 300; line-height: 3rem; color: var(--green-100); }
.c-footer__top { display: grid; grid-template-columns: 1fr; gap: 48px; }
.c-footer__nav-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: start; }
.c-footer__nav-link { font-size: 1.125rem; font-weight: 400; line-height: 1.5rem; color: var(--black-100); }
.c-footer__nav-link:hover { color: var(--green-80); }
.c-footer__bottom { margin-top: 96px; }
.c-footer__lang-box { display: inline-flex; align-items: center; gap: 16px; color: var(--footer-brand-color); }
.c-footer__lang-icon { width: 24px; height: 24px; }
.c-footer__lang-link { font-size: 1.125rem; line-height: 1.5rem; color: inherit; }
.c-footer__lang-link:hover { font-weight: 500; }
.c-footer__lang-link[aria-current="true"] { font-weight: 600; pointer-events: none; }
.c-footer__legal { margin-top: 32px; font-size: 1rem; line-height: 1.375rem; color: var(--grey-30); }
.c-footer__legal p { margin: 0 0 12px; }
.c-footer__legal a { color: var(--footer-brand-color); }
@media (min-width: 600px) {
  .c-footer { margin-top: 120px; }
  .c-footer__inner { padding: 72px 24px 64px; }
  .c-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .c-footer__bottom { margin-top: 120px; }
}
@media (min-width: 768px) {
  .c-footer__inner { padding: 80px 32px 64px; }
  .c-footer__header { row-gap: 32px; }
  .c-footer__logo-link > svg { width: 125px; height: 21px; }
}
@media (min-width: 1024px) {
  .c-footer__inner { padding: 80px 56px 64px; }
  .c-footer__tagline { font-size: 3rem; line-height: 3.5rem; }
}
@media (min-width: 1440px) {
  .c-footer { margin-top: 160px; }
  .c-footer__tagline { font-size: 3.5rem; line-height: 3.75rem; }
}

/* 8. PAGE COMPONENTS -------------------------------------------------------- */

/* 8.1 Hero (home) — dzengi "c-section m-hero-bg" */
.hc-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--header-offset) + 56px) 0 72px;
  background-image: url("../img/hero-bg.svg"), linear-gradient(to bottom right, #103030, #567878);
  background-repeat: no-repeat; background-position: center; background-size: cover;
  color: var(--white-100);
}
.hc-hero__inner { max-width: 720px; }
.hc-hero__subtitle { margin-top: var(--space-4); font-size: 1.125rem; line-height: 1.625rem; color: rgba(255,255,255,.85); }
.hc-hero__search { margin-top: var(--space-6); }
.hc-hero__search .hc-search__input { border-color: transparent; }
.hc-hero__hints { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 1rem; color: rgba(255,255,255,.7); }
.hc-hero__hints a { color: var(--white-100); box-shadow: inset 0 -1px 0 rgba(255,255,255,.4); }
.hc-hero__hints a:hover { box-shadow: inset 0 -2px 0 var(--white-100); }
@media (min-width: 768px) {
  .hc-hero { padding: calc(var(--header-height) + var(--header-offset) + 96px) 0 112px; }
  .hc-hero__subtitle { font-size: 1.25rem; line-height: 1.75rem; }
}

/* 8.2 Sub-header row: breadcrumbs + compact search (inner pages) */
.hc-subheader { display: flex; flex-direction: column; gap: var(--space-4); }
.hc-subheader__search { width: 100%; }
@media (min-width: 768px) {
  .hc-subheader { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-5); }
  .hc-subheader__search { width: 320px; flex-shrink: 0; }
}

/* 8.3 Breadcrumbs */
.hc-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 0;
  font-size: 1rem; line-height: 1.375rem; color: var(--grey-60); }
.hc-breadcrumbs li { display: inline-flex; align-items: center; }
.hc-breadcrumbs li + li::before {
  content: ""; width: 16px; height: 16px; margin: 0 8px; background: var(--grey-30);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'><path d='M6 3l5 5-5 5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5'><path d='M6 3l5 5-5 5'/></svg>") center / contain no-repeat;
}
.hc-breadcrumbs a { color: var(--grey-60); }
.hc-breadcrumbs a:hover { color: var(--green-80); }
.hc-breadcrumbs [aria-current="page"] { color: var(--grey-30); }

/* 8.4 Page header (title block) */
.hc-page-header { margin-top: var(--space-6); }
.hc-page-header__desc { margin-top: var(--space-3); max-width: 760px; }
.hc-page-header__meta { margin-top: var(--space-3); font-size: 1rem; line-height: 1.375rem; color: var(--grey-30); }
@media (min-width: 768px) { .hc-page-header { margin-top: var(--space-7); } }

/* 8.5 Block header (title + optional link) */
.hc-block-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-5); }
@media (min-width: 768px) { .hc-block-header { margin-bottom: var(--space-6); } }

/* 8.6 Topic cards (home grid of categories) */
.hc-topics { display: grid; grid-template-columns: 1fr; gap: var(--space-3); list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px)  { .hc-topics { grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); } }
@media (min-width: 1024px) { .hc-topics { grid-template-columns: repeat(4, 1fr); } }
.hc-topic-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6);
  height: 100%; min-height: 168px; padding: var(--space-5);
  background: var(--grey-20); border-radius: var(--radius-xl);
  color: var(--black-100);
  transition: background-color var(--delay);
}
.hc-topic-card:hover { background: var(--green-10); color: var(--black-100); }
.hc-topic-card__icon { color: var(--green-80); }
.hc-topic-card__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.hc-topic-card__meta { margin-top: var(--space-1); font-size: 1rem; line-height: 1.375rem; color: var(--grey-60); }
.hc-topic-card__arrow { position: absolute; top: var(--space-5); right: var(--space-5); color: var(--green-80); opacity: 0; transform: translateX(-6px); transition: opacity var(--delay), transform var(--delay); }
.hc-topic-card:hover .hc-topic-card__arrow { opacity: 1; transform: none; }
@media (min-width: 768px) { .hc-topic-card { min-height: 208px; padding: var(--space-6); } .hc-topic-card__arrow { top: var(--space-6); right: var(--space-6); } }

/* 8.7 Featured articles (home) — dzengi "Regulation and security" columns */
.hc-featured { display: grid; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-border); }
.hc-featured__item { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
.hc-featured__link { display: block; color: var(--black-100); }
.hc-featured__label { display: block; margin-bottom: var(--space-2); font-size: 0.875rem; line-height: 1.25rem; color: var(--green-80); }
.hc-featured__title { display: block; font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; transition: color var(--delay-short); }
.hc-featured__link:hover .hc-featured__title { color: var(--green-80); }
.hc-featured__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: var(--space-2); font-size: 1rem; line-height: 1.375rem; color: var(--grey-60); }
@media (min-width: 768px) {
  .hc-featured { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .hc-featured__item { padding: var(--space-5) var(--space-5) var(--space-6); border-bottom: 0; border-top: 1px solid var(--color-border); }
  .hc-featured__item:nth-child(2n) { border-left: 1px solid var(--color-border); }
}
@media (min-width: 1024px) {
  .hc-featured { grid-template-columns: repeat(3, 1fr); }
  .hc-featured__item:nth-child(2n) { border-left: 0; }
  .hc-featured__item:not(:nth-child(3n+1)) { border-left: 1px solid var(--color-border); }
}

/* 8.8 Section blocks (category page) */
.hc-sections { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-6); }
@media (min-width: 1024px) {
  /* masonry-like flow: cards have very different heights */
  .hc-sections { display: block; columns: 2; column-gap: var(--grid-gap); margin-top: var(--space-7); }
  .hc-sections > .hc-section-card { break-inside: avoid; margin-bottom: var(--grid-gap); }
}
.hc-section-card { padding: var(--space-5); background: var(--grey-20); border-radius: var(--radius-xl); scroll-margin-top: 100px; }
.hc-section-card:target { box-shadow: 0 0 0 2px var(--green-80); }
@media (min-width: 768px) { .hc-section-card { padding: var(--space-6); } }
.hc-section-card__header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.hc-section-card__count { flex-shrink: 0; font-size: 1rem; color: var(--grey-60); }
.hc-section-card__desc { margin: -8px 0 var(--space-4); font-size: 1rem; line-height: 1.375rem; color: var(--grey-60); }
.hc-section-card__sub { margin-top: var(--space-5); }
.hc-section-card__sub-title { margin-bottom: var(--space-2); font-size: 1.125rem; font-weight: 600; }

/* 8.9 Article link list (used in section cards, sidebar, related) */
.hc-link-list { list-style: none; margin: 0; padding: 0; }
.hc-link-list__item + .hc-link-list__item { border-top: 1px solid var(--color-border); }
.hc-link-list__link {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3);
  padding: 12px 0; font-size: 1.125rem; line-height: 1.5rem; color: var(--black-100);
}
.hc-link-list__link:hover { color: var(--green-80); }
.hc-link-list__link .hc-icon { margin-top: 4px; width: 16px; height: 16px; color: var(--green-30); transition: transform var(--delay), color var(--delay); }
.hc-link-list__link:hover .hc-icon { color: var(--green-80); transform: translateX(3px); }
.hc-link-list__badge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--green-10); color: var(--green-80); font-size: 0.75rem; line-height: 1.25rem; font-weight: 500; vertical-align: 2px; }

/* 8.10 Sidebar (article page) */
.hc-sidebar { align-self: start; }
@media (min-width: 1024px) { .hc-sidebar { position: sticky; top: calc(var(--header-height) + var(--header-offset) + 24px); margin-top: var(--space-7); } }
.hc-sidebar__card { padding: var(--space-5); background: var(--grey-20); border-radius: var(--radius-xl); }
.hc-sidebar__title { margin-bottom: var(--space-3); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; }
.hc-sidebar__nav { max-height: calc(100vh - 240px); overflow: auto; margin: 0 -8px; padding: 0 8px; }
.hc-side-nav { list-style: none; margin: 0; padding: 0; }
.hc-side-nav__link {
  position: relative; display: block; padding: 8px 0 8px 16px;
  font-size: 1rem; line-height: 1.375rem; color: var(--black-100);
}
.hc-side-nav__link::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--grey-10); }
.hc-side-nav__link:hover { color: var(--green-80); }
.hc-side-nav__link[aria-current="page"] { color: var(--green-80); font-weight: 500; }
.hc-side-nav__link[aria-current="page"]::before { background: var(--green-80); }
.hc-sidebar__back { display: inline-flex; margin-top: var(--space-4); font-size: 1rem; }

/* 8.11 Article page */
.hc-article__header { margin-top: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.hc-article__body { margin-top: var(--space-6); }
.hc-related { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.hc-related .hc-h3 { margin-bottom: var(--space-3); }
.hc-lang-notice { margin-top: var(--space-5); padding: 16px 20px; border-radius: var(--radius-lg); background: var(--blue-10); color: var(--blue-80); font-size: 1rem; }
@media (min-width: 768px) { .hc-article__header { margin-top: var(--space-7); } }

/* 8.12 Search results */
.hc-search-summary { margin-top: var(--space-3); font-size: 1.125rem; color: var(--grey-60); }
.hc-results { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.hc-result { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
.hc-result__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.hc-result__title a { color: var(--black-100); }
.hc-result__title a:hover { color: var(--green-80); }
.hc-result__path { margin-top: var(--space-1); font-size: 0.875rem; line-height: 1.25rem; color: var(--green-80); }
.hc-result__path span + span::before { content: "›"; margin: 0 6px; color: var(--grey-30); }
.hc-result__snippet { margin-top: var(--space-2); max-width: 820px; font-size: 1rem; line-height: 1.5rem; color: var(--grey-60); }
.hc-result mark, .hc-result__title mark { background: var(--green-10); color: var(--green-100); border-radius: 3px; padding: 0 2px; }
.hc-empty { margin-top: var(--space-6); padding: var(--space-7) var(--space-5); text-align: center; background: var(--grey-20); border-radius: var(--radius-xl); }
.hc-empty__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.75rem; line-height: 2.25rem; }
.hc-empty__text { margin: var(--space-3) auto 0; max-width: 520px; color: var(--grey-60); }
.hc-empty .hc-btn { margin-top: var(--space-5); }

/* 8.13 Pagination */
.hc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-7); list-style: none; padding: 0; }
.hc-pagination a, .hc-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 500; color: var(--black-100);
}
.hc-pagination a:hover { background: var(--grey-20); color: var(--green-80); }
.hc-pagination [aria-current="page"] { background: var(--green-80); color: var(--white-100); }
.hc-pagination .is-disabled { color: var(--grey-30); }

/* 8.14 Error page */
.hc-error { padding: var(--space-9) 0; text-align: center; }
.hc-error__code { font-family: var(--font-serif); font-weight: 300; font-size: 6rem; line-height: 1; color: var(--green-80); }
.hc-error .hc-h1 { margin-top: var(--space-4); }
.hc-error p { margin: var(--space-3) auto 0; max-width: 520px; color: var(--grey-60); font-size: 1.125rem; }
.hc-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }

/* 8.15 Dark CTA band (optional, dzengi "No income tax" block) */
.hc-dark-band { padding: var(--space-7) var(--space-5); background: var(--green-100); color: var(--white-100); border-radius: var(--radius-xl); }
@media (min-width: 768px) { .hc-dark-band { padding: var(--space-8) var(--space-7); border-radius: var(--radius-2xl); } }

/* 9. ARTICLE BODY + WIDGETS -------------------------------------------------
   Everything inside .hc-article-body comes from Zendesk/TinyMCE HTML.
   Class names below MUST NOT be renamed: they are stored in the database.   */
.hc-article-body { font-size: 1rem; line-height: 1.625rem; color: var(--black-100); overflow-wrap: break-word; }
@media (min-width: 768px) { .hc-article-body { font-size: 1.125rem; line-height: 1.75rem; } }
.hc-article-body > :first-child { margin-top: 0; }
.hc-article-body p { margin: 0 0 16px; }
.hc-article-body h2 { margin: 40px 0 16px; font-family: var(--font-serif); font-weight: 300; font-size: 1.75rem; line-height: 2.25rem; }
.hc-article-body h3 { margin: 32px 0 12px; font-size: 1.375rem; line-height: 1.875rem; font-weight: 600; }
.hc-article-body h4 { margin: 28px 0 12px; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; }
.hc-article-body h5, .hc-article-body h6 { margin: 24px 0 8px; font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; }
.hc-article-body strong, .hc-article-body b { font-weight: 600; }
.hc-article-body a:not(.btn) {
  color: var(--green-80);
  box-shadow: inset 0 -1px 0 0 var(--green-30);
  transition: box-shadow var(--delay-short);
}
.hc-article-body a:not(.btn):hover { box-shadow: inset 0 -2px 0 0 var(--green-80); }
.hc-article-body ul, .hc-article-body ol { margin: 0 0 16px; padding-left: 24px; }
.hc-article-body li { margin: 0 0 8px; }
.hc-article-body li > ul, .hc-article-body li > ol { margin: 8px 0 0; }
.hc-article-body li::marker { color: var(--green-80); }
.hc-article-body img { height: auto; border-radius: var(--radius-md); vertical-align: middle; }
.hc-article-body img:not(a img) { cursor: zoom-in; }
.hc-article-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--color-border); }
.hc-article-body blockquote {
  margin: 0 0 16px; padding: 16px 24px;
  background: var(--grey-20); border-left: 3px solid var(--green-80); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--grey-prime);
}
.hc-article-body blockquote > :last-child { margin-bottom: 0; }
.hc-article-body code { padding: 2px 6px; border-radius: var(--radius-xs); background: var(--grey-20); font-size: .9em; }
.hc-article-body pre { margin: 0 0 16px; padding: 16px; overflow-x: auto; border-radius: var(--radius-md); background: var(--grey-20); font-size: .875rem; line-height: 1.5; }
.hc-article-body pre code { padding: 0; background: none; }
.hc-article-body iframe {
  display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9;
  margin: 8px 0 16px; border: 0; border-radius: var(--radius-lg); background: var(--grey-20);
}
.hc-article-body p > iframe + br, .hc-article-body p > br + br { display: none; }

/* Tables */
.hc-article-body figure.wysiwyg-table, .hc-table-scroll { margin: 0 0 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hc-article-body figure.wysiwyg-table { height: auto !important; }
.hc-article-body table { width: 100% !important; border-collapse: collapse; font-size: 1rem; line-height: 1.375rem; }
.hc-article-body th, .hc-article-body td { padding: 12px 16px; border-bottom: 1px solid var(--grey-10); vertical-align: top; text-align: left; height: auto !important; }
.hc-article-body th, .hc-article-body thead td { background: var(--grey-20); font-weight: 600; }
.hc-article-body table p { margin: 0; }
.hc-article-body table.table--bordered th, .hc-article-body table.table--bordered td,
.hc-article-body table.table--bordered-aligned th, .hc-article-body table.table--bordered-aligned td { border: 1px solid var(--grey-10); }
.hc-article-body table.table--color-header th, .hc-article-body table.table--color-header thead td,
.hc-article-body table.table--color-header-aligned th, .hc-article-body table.table--color-header-aligned thead td { background: var(--green-80); color: var(--white-100); }
.hc-article-body table.table--color-header-aligned td, .hc-article-body table.table--bordered-aligned td { text-align: center; }
.hc-article-body table.table--hover tbody tr:hover { background: var(--grey-20); }

/* Zendesk wysiwyg helpers */
.hc-article-body .wysiwyg-text-align-left { text-align: left; }
.hc-article-body .wysiwyg-text-align-center { text-align: center; }
.hc-article-body .wysiwyg-text-align-right { text-align: right; }
.hc-article-body .wysiwyg-text-align-justify { text-align: left; } /* justify hurts readability; render as left */
.hc-article-body .wysiwyg-underline { text-decoration: underline; text-underline-offset: 3px; }
.hc-article-body .wysiwyg-color-black { color: var(--black-100); }
.hc-article-body .wysiwyg-color-black70 { color: var(--grey-prime); }
.hc-article-body .wysiwyg-color-green120 { color: var(--green-100); }
.hc-article-body .wysiwyg-color-green { color: var(--green-80); }
.hc-article-body .wysiwyg-color-red { color: var(--red-100); }
.hc-article-body .wysiwyg-font-size-small { font-size: .875em; }
.hc-article-body .wysiwyg-font-size-large { font-size: 1.2em; }
.hc-article-body .wysiwyg-indent1 { padding-left: 20px; }
.hc-article-body .wysiwyg-indent2 { padding-left: 40px; }
.hc-article-body .wysiwyg-indent3 { padding-left: 60px; }
.hc-article-body .wysiwyg-list-bold::marker { font-weight: 600; }
.hc-article-body .wysiwyg-table-align-left { margin-left: 0; }

/* Font Awesome icons used in old articles: <em class="fas fa-info-circle"></em> */
.hc-article-body .fas { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; background: currentColor; font-style: normal; }
.hc-article-body .fa-info-circle {
  color: var(--blue-80);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/></svg>") center / contain no-repeat;
}
.hc-article-body .fa-times-circle {
  color: var(--red-100);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm4.3 12.9l-1.4 1.4L12 13.4l-2.9 2.9-1.4-1.4 2.9-2.9-2.9-2.9 1.4-1.4 2.9 2.9 2.9-2.9 1.4 1.4-2.9 2.9 2.9 2.9z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 100 20 10 10 0 000-20zm4.3 12.9l-1.4 1.4L12 13.4l-2.9 2.9-1.4-1.4 2.9-2.9-2.9-2.9 1.4-1.4 2.9 2.9 2.9-2.9 1.4 1.4-2.9 2.9 2.9 2.9z'/></svg>") center / contain no-repeat;
}

/* Widget: buttons inside articles (<a class="btn btn--primary">) */
.hc-article-body .btn { margin: 4px 0; text-align: center; }
.hc-article-body p.wysiwyg-text-align-center > .btn { margin-inline: auto; }

/* Widget: coloured numbered list  <ol class="list-colored"> */
.hc-article-body ol.list-colored, .hc-article-body ul.list-colored,
.hc-article-body ul.list-bullet, .hc-article-body ol.list-bullet, .hc-article-body ul.list-bullet-cross {
  list-style: none; padding-left: 0;
}
.hc-article-body ol.list-colored { counter-reset: hc-step; }
.hc-article-body ol.list-colored > li { position: relative; counter-increment: hc-step; min-height: 28px; padding-left: 44px; margin-bottom: 12px; }
.hc-article-body ol.list-colored > li::before {
  content: counter(hc-step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-80); color: var(--white-100);
  font-size: .875rem; line-height: 28px; font-weight: 600; text-align: center;
}
@media (min-width: 768px) { .hc-article-body ol.list-colored > li::before { top: 0; } }
.hc-article-body ul.list-colored > li, .hc-article-body ul.list-bullet > li, .hc-article-body ol.list-bullet > li { position: relative; padding-left: 24px; }
.hc-article-body ul.list-colored > li::before, .hc-article-body ul.list-bullet > li::before, .hc-article-body ol.list-bullet > li::before {
  content: ""; position: absolute; left: 4px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--green-80);
}
.hc-article-body ul.list-bullet-cross > li { position: relative; padding-left: 28px; }
.hc-article-body ul.list-bullet-cross > li::before {
  content: "✕"; position: absolute; left: 2px; top: 0; color: var(--red-100); font-weight: 600;
}

/* Widget: callout  <div class="callout callout--warning"> (+ optional <h4 class="callout__title">) */
.hc-article-body .callout {
  margin: 0 0 16px; padding: 20px 24px;
  background: var(--grey-20); border-left: 4px solid var(--green-30); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.hc-article-body .callout > :last-child { margin-bottom: 0; }
.hc-article-body .callout__title { margin: 0 0 8px; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; }
.hc-article-body .callout--warning { background: var(--amber-10); border-left-color: var(--amber-80); }
.hc-article-body .callout--warning .callout__title { color: var(--amber-80); }
.hc-article-body .callout--info { background: var(--blue-10); border-left-color: var(--blue-80); }
.hc-article-body .callout--info .callout__title { color: var(--blue-80); }
.hc-article-body .callout--success, .hc-article-body .callout--primary { background: var(--green-10); border-left-color: var(--green-80); }
.hc-article-body .callout--success .callout__title, .hc-article-body .callout--primary .callout__title { color: var(--green-80); }
.hc-article-body .callout--danger { background: var(--red-10); border-left-color: var(--red-100); }
.hc-article-body .callout--danger .callout__title { color: #B8360F; }
.hc-article-body .callout--transparent { background: transparent; border: 1px solid var(--grey-10); border-radius: var(--radius-lg); }

/* Widget: note  <div class="note note--info"><h4 class="note-title">…</h4>…</div> */
.hc-article-body .note { margin: 0 0 16px; padding: 20px 24px; background: var(--grey-20); border-radius: var(--radius-lg); }
.hc-article-body .note > :last-child { margin-bottom: 0; }
.hc-article-body .note-title { margin: 0 0 8px; font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; }
.hc-article-body .note--info, .hc-article-body .note-info { background: var(--blue-10); }
.hc-article-body .note--info .note-title, .hc-article-body .note-info .note-title { color: var(--blue-80); }
.hc-article-body .note--success, .hc-article-body .note-success { background: var(--green-10); }
.hc-article-body .note--success .note-title, .hc-article-body .note-success .note-title { color: var(--green-80); }
.hc-article-body .note--warning, .hc-article-body .note-warning { background: var(--amber-10); }
.hc-article-body .note--warning .note-title, .hc-article-body .note-warning .note-title { color: var(--amber-80); }
.hc-article-body .note--danger, .hc-article-body .note-danger { background: var(--red-10); }
.hc-article-body .note--danger .note-title, .hc-article-body .note-danger .note-title { color: #B8360F; }

/* Widget: accordion
   <div class="accordion accordion--default">
     <div class="accordion__item">
       <div class="accordion__item-title">Title</div>
       <div class="accordion__item-content">…</div>
     </div>
   </div>
   JS (site.js) toggles .accordion__item-title--active on the title and .is-open on the content. */
.hc-article-body .accordion { margin: 0 0 16px; }
.hc-article-body .accordion__item { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--white-100); }
.hc-article-body .accordion__item + .accordion__item { margin-top: 8px; }
.hc-article-body .accordion__item:has(> .accordion__item-content:only-child) { display: none; } /* junk empty items from Zendesk */
.hc-article-body .accordion__item-title {
  position: relative; padding: 16px 20px 16px 52px; cursor: pointer; user-select: none;
  font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; border-radius: var(--radius-lg);
}
.hc-article-body .accordion__item-title > p { margin: 0; text-align: left !important; }
.hc-article-body .accordion__item-title:hover { color: var(--green-80); }
.hc-article-body .accordion__item-title:focus-visible { outline: var(--focus-outline); outline-offset: -2px; }
.hc-article-body .accordion__item-title::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  background: var(--green-80); transition: transform var(--delay);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6'><path d='M5 7.5l5 5 5-5'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6'><path d='M5 7.5l5 5 5-5'/></svg>") center / contain no-repeat;
}
.hc-article-body .accordion__item-title--active::before { transform: rotate(180deg); }
.hc-article-body .accordion__item-content { display: none; padding: 0 20px 20px 52px; }
.hc-article-body .accordion__item-content.is-open { display: block; }
.hc-article-body .accordion__item-content > :last-child { margin-bottom: 0; }
.hc-article-body .accordion--colored .accordion__item { border-color: transparent; background: var(--green-10); }
.hc-article-body .accordion--colored .accordion__item-title { color: var(--green-100); }
@media (max-width: 599.98px) {
  .hc-article-body .accordion__item-title { padding-left: 44px; }
  .hc-article-body .accordion__item-title::before { left: 14px; }
  .hc-article-body .accordion__item-content { padding: 0 16px 16px; }
}

/* Widget: tabs
   <div class="tabs tabs--colored-2">
     <div class="tabs-menu"><span class="tabs-link is-active">A</span><span class="tabs-link">B</span></div>
     <div class="tab">…A…</div>
     <div class="tab is-hidden">…B…</div>
   </div>
   JS (site.js) switches .is-active / .is-hidden by index. */
.hc-article-body .tabs { margin: 0 0 24px; }
.hc-article-body .tabs-menu {
  display: inline-flex; flex-wrap: wrap; gap: 4px; max-width: 100%;
  margin-bottom: 16px; padding: 4px; background: var(--grey-20); border-radius: var(--radius-lg);
  text-align: left !important;
}
.hc-article-body .tabs-menu.wysiwyg-text-align-center { display: flex; width: fit-content; margin-inline: auto; }
.hc-article-body .tabs-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 20px;
  border-radius: var(--radius-md); cursor: pointer; user-select: none;
  font-size: 1rem; line-height: 1.5rem; font-weight: 500; color: var(--grey-60);
  transition: background-color var(--delay-short), color var(--delay-short);
}
.hc-article-body .tabs-link:hover { color: var(--green-80); }
.hc-article-body .tabs-link:focus-visible { outline: var(--focus-outline); outline-offset: -2px; }
.hc-article-body .tabs-link.is-active { background: var(--white-100); color: var(--green-80); box-shadow: 0 1px 2px rgba(1,48,35,.08); }
.hc-article-body .tabs--colored-1 .tabs-link.is-active,
.hc-article-body .tabs--colored-2 .tabs-link.is-active { background: var(--green-80); color: var(--white-100); }
.hc-article-body .tab { padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.hc-article-body .tab > :last-child { margin-bottom: 0; }
.hc-article-body .tab.is-hidden { display: none; }
@media (max-width: 599.98px) {
  .hc-article-body .tabs-menu { display: flex; width: 100%; }
  .hc-article-body .tabs-link { flex: 1 1 auto; justify-content: center; padding: 8px 12px; }
  .hc-article-body .tab { padding: 16px; }
}

/* Legacy Zendesk div wrappers carry no meaning; do not reset list items to display:block. */
.hc-article-body div.expand-collapse-header, .hc-article-body div.expand-collapse-body { display: block; }

/* 10. LIGHTBOX -------------------------------------------------------------- */
.hc-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(1, 48, 35, .85); cursor: zoom-out; }
.hc-lightbox[hidden] { display: none; }
.hc-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); background: var(--white-100); box-shadow: 0 24px 64px rgba(0,0,0,.35); }
.hc-lightbox__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.15); color: var(--white-100); font-size: 24px; line-height: 44px; cursor: pointer; }
.hc-lightbox__close:hover { background: rgba(255,255,255,.3); }
body.has-lightbox { overflow: hidden; }

/* 11. UTILITIES ------------------------------------------------------------- */
.u-mt-0 { margin-top: 0 !important; }
.u-mt-4 { margin-top: var(--space-4) !important; }
.u-mt-6 { margin-top: var(--space-6) !important; }
.u-mt-8 { margin-top: var(--space-8) !important; }
.u-text-center { text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
