/* ---------- Support pages: FAQ (page 93, wp-pages/faq_build.py) and System Requirements (page 102, wp-pages/sysreq_build.py)
   Added 2026-10-23. Palette variables only, so dark mode and the named palettes apply without extra rules.
   Selectors start with .hrm-page where they set p/li colours: style.css has html.hrm-dark .hrm-page p { color: ink }. */

/* shared: single-column hero without the screenshot column */
.hrm-faqhero h1, .hrm-reqhero h1 { max-width: 18ch; }
.hrm-faqhero .hrm-lead p, .hrm-reqhero .hrm-lead p { max-width: 60ch; }
.hrm-faqpage .et_pb_module, .hrm-req .et_pb_module { margin-bottom: 0; }
.hrm-page [hidden] { display: none !important; }

/* ===== FAQ ===== */
.hrm-faqpage { background: var(--hrm-bg) !important; padding: 56px 0 72px !important; }
.hrm-faqx { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }

/* topic index (sticky on desktop). Divi's script puts an inline overflow-y:hidden on #page-container, which makes it a
   scroll container and kills position:sticky; on this page clip instead (clip does not create a scroll container). */
#page-container:has(.hrm-faqx) { overflow-x: clip !important; overflow-y: visible !important; }
.hrm-faqx-nav { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; }
body.admin-bar .hrm-faqx-nav { top: 152px; }
.hrm-page .hrm-faqx p.hrm-faqx-navhead { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hrm-muted); margin: 0 0 8px; padding: 0 12px; line-height: 1.4; }
.hrm-faqx-nav > a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--hrm-ink); font-weight: 600; font-size: 15px; line-height: 1.3; text-decoration: none; transition: background 0.12s, color 0.12s; }
.hrm-faqx-nav > a:hover { background: var(--hrm-hover); color: var(--hrm-primary); }
.hrm-faqx-nav > a span { flex: none; font-size: 12px; font-weight: 600; color: var(--hrm-muted); background: var(--hrm-rail); border: 1px solid var(--hrm-line); border-radius: 999px; padding: 1px 8px; }
.hrm-page .hrm-faqx p.hrm-faqx-navnote { margin: 18px 0 0; padding: 16px 12px 0; border-top: 1px solid var(--hrm-line); font-size: 14px; line-height: 1.5; color: var(--hrm-muted); }
.hrm-faqx-navnote a { color: var(--hrm-primary); font-weight: 600; }

/* filter + open/close all */
.hrm-faqx-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hrm-faqx-search { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--hrm-line); border-radius: 999px; padding: 0 18px; background: var(--hrm-panel); color: var(--hrm-muted); transition: border-color 0.12s, box-shadow 0.12s; cursor: text; }
.hrm-faqx-search:focus-within { border-color: var(--hrm-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hrm-primary) 22%, transparent); }
.hrm-faqx-search svg { flex: none; }
.hrm-faqx .hrm-faqx-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none; padding: 13px 0 !important; margin: 0; font: inherit; font-size: 16px !important; color: var(--hrm-ink) !important; }
.hrm-faqx .hrm-faqx-search input::placeholder { color: var(--hrm-muted); opacity: 1; }
.hrm-faqx-all { flex: none; display: flex; gap: 2px; }
.hrm-faqx-all button { background: none; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--hrm-primary); cursor: pointer; }
.hrm-faqx-all button:hover { background: var(--hrm-hover); }

/* groups */
.hrm-faqx-group { margin-top: 36px; scroll-margin-top: 130px; }
body.admin-bar .hrm-faqx-group { scroll-margin-top: 162px; }
.hrm-faqx-group header { margin-bottom: 14px; }
.hrm-page .hrm-faqx-group h2 { font-size: 26px; margin: 0; padding: 0; }
.hrm-page .hrm-faqx-group header p { font-size: 15px; color: var(--hrm-muted); margin: 4px 0 0; padding: 0; }
.hrm-faqx-list { border: 1px solid var(--hrm-line); border-radius: 14px; background: var(--hrm-panel); overflow: hidden; }

/* items: native <details>, no height animation (William: the old accordion felt slow) */
.hrm-faqx-item + .hrm-faqx-item { border-top: 1px solid var(--hrm-line); }
.hrm-faqx-item > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; font-family: Outfit, Inter, "Open Sans", sans-serif; font-weight: 600; font-size: 17.5px; line-height: 1.35; color: var(--hrm-ink); transition: background 0.12s; }
.hrm-faqx-item > summary::-webkit-details-marker { display: none; }
.hrm-faqx-item > summary::marker { content: ""; }
.hrm-faqx-item > summary:hover { background: var(--hrm-hover); }
.hrm-faqx-item > summary:focus-visible { outline: 2px solid var(--hrm-primary); outline-offset: -2px; }
.hrm-faqx-chev { flex: none; width: 28px; height: 28px; padding: 4px; border-radius: 999px; color: var(--hrm-muted); background: var(--hrm-rail); transition: transform 0.15s ease, color 0.15s; }
.hrm-faqx-item[open] { box-shadow: inset 3px 0 0 var(--hrm-link); }
.hrm-faqx-item[open] > summary { color: var(--hrm-primary); }
.hrm-faqx-item[open] .hrm-faqx-chev { transform: rotate(180deg); color: var(--hrm-primary); }
.hrm-faqx-a { padding: 0 22px 18px; max-width: 72ch; }
.hrm-page .hrm-faqx-a p, .hrm-page .hrm-faqx-a li { font-size: 16px; line-height: 1.65; color: var(--hrm-ink); }
.hrm-page .hrm-faqx-a p { margin: 0 0 12px; padding: 0; }
.hrm-faqx-a > :last-child { margin-bottom: 0 !important; }
.hrm-faqx-a ul { list-style: disc !important; padding: 0 0 0 22px !important; margin: 0 0 12px; }
.hrm-faqx-a li { padding: 2px 0; }
.hrm-faqx-a a { color: var(--hrm-primary); text-decoration: underline; text-underline-offset: 2px; }
.hrm-page .hrm-faqx p.hrm-faqx-none { margin-top: 28px; padding: 22px; border: 1px dashed var(--hrm-line); border-radius: 14px; background: var(--hrm-rail); color: var(--hrm-muted); font-size: 16px; text-align: center; }
.hrm-faqx-none a { color: var(--hrm-primary); font-weight: 600; }

@media (max-width: 980px) {
  .hrm-faqpage { padding: 32px 0 48px !important; }
  .hrm-faqx { grid-template-columns: 1fr; gap: 20px; }
  .hrm-faqx-nav, body.admin-bar .hrm-faqx-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .hrm-page .hrm-faqx p.hrm-faqx-navhead, .hrm-page .hrm-faqx p.hrm-faqx-navnote { display: none; }
  .hrm-faqx-nav > a { border: 1px solid var(--hrm-line); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 14px; background: var(--hrm-panel); }
  .hrm-faqx-group, body.admin-bar .hrm-faqx-group { scroll-margin-top: 90px; }
}
@media (max-width: 560px) {
  .hrm-faqx-tools { flex-wrap: wrap; gap: 4px; }
  .hrm-faqx-search { flex-basis: 100%; }
  .hrm-faqx-all { margin-left: auto; }
  .hrm-faqx-item > summary { padding: 16px 16px; font-size: 16.5px; gap: 12px; }
  .hrm-faqx-a { padding: 0 16px 16px; }
  .hrm-page .hrm-faqx-group h2 { font-size: 23px; }
}

/* ===== System requirements ===== */
.hrm-req { background: var(--hrm-bg) !important; padding: 64px 0 !important; }
.hrm-req--alt { background: var(--hrm-rail) !important; }
html.hrm-dark .hrm-req--alt { background: var(--hrm-back-2) !important; }
.hrm-reqglance { background: var(--hrm-rail) !important; padding: 44px 0 !important; }
html.hrm-dark .hrm-reqglance { background: var(--hrm-back-2) !important; }
.hrm-reqglance .et_pb_module { margin-bottom: 0; }
.hrm-reqglance .hrm-stat b { font-size: clamp(28px, 2.4vw, 38px); }
.hrm-req .hrm-sechead { max-width: 760px; margin-bottom: 26px; }
.hrm-page .hrm-req .hrm-sechead h2 { margin: 0; padding: 0; }
.hrm-page .hrm-req .hrm-sechead p { font-size: 18px; color: var(--hrm-muted); margin: 10px 0 0; padding: 0; }

.hrm-reqcard { border: 1px solid var(--hrm-line); border-radius: 14px; background: var(--hrm-panel); overflow: hidden; }
.hrm-reqtable { width: 100%; border-collapse: collapse; border: 0 !important; margin: 0 !important; table-layout: fixed; }
.hrm-reqtable col.hrm-reqcol-item { width: 24%; }
.hrm-reqtable th, .hrm-reqtable td { border: 0 !important; text-align: left; vertical-align: top; padding: 16px 20px !important; font-size: 15.5px; line-height: 1.55; color: var(--hrm-ink) !important; }  /* Divi's entry-content table rules set #555 */
.hrm-reqtable thead th { background: var(--hrm-rail); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hrm-muted) !important; padding-top: 12px !important; padding-bottom: 12px !important; }
html.hrm-dark .hrm-reqtable thead th { background: rgba(255, 255, 255, 0.04); }
.hrm-reqtable tbody tr + tr th, .hrm-reqtable tbody tr + tr td { border-top: 1px solid var(--hrm-line) !important; }
.hrm-reqtable thead + tbody tr:first-child th, .hrm-reqtable thead + tbody tr:first-child td { border-top: 1px solid var(--hrm-line) !important; }
.hrm-reqtable tbody th { font-family: Outfit, Inter, "Open Sans", sans-serif; font-weight: 600; font-size: 16.5px; }
.hrm-reqtable tbody th .hrm-reqitem { display: flex; align-items: center; gap: 12px; }
.hrm-reqtable tbody th img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.hrm-reqtable td b { font-weight: 600; }
.hrm-reqtable td small { display: block; color: var(--hrm-muted) !important; font-size: 14px; margin-top: 4px; line-height: 1.45; }
.hrm-reqtable .hrm-reqnew { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--hrm-link); color: #0b1829; border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px; }

.hrm-reqnote { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 20px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--hrm-primary) 35%, transparent); background: color-mix(in srgb, var(--hrm-primary) 8%, transparent); }
.hrm-reqnote svg { flex: none; color: var(--hrm-primary); margin-top: 3px; }
.hrm-page .hrm-reqnote p { margin: 0; padding: 0; font-size: 15px; line-height: 1.6; color: var(--hrm-ink); }

@media (max-width: 980px) {
  .hrm-req { padding: 44px 0 !important; }
}
/* phones: each requirement becomes a small card; the column names come from data-label */
@media (max-width: 680px) {
  .hrm-reqtable, .hrm-reqtable tbody, .hrm-reqtable tr, .hrm-reqtable th, .hrm-reqtable td { display: block; width: 100%; }
  .hrm-reqtable colgroup, .hrm-reqtable thead { display: none; }
  .hrm-reqtable tbody tr { padding: 14px 16px; }
  .hrm-reqtable tbody tr + tr { border-top: 1px solid var(--hrm-line); }
  .hrm-reqtable tbody tr + tr th, .hrm-reqtable tbody tr + tr td, .hrm-reqtable thead + tbody tr:first-child th, .hrm-reqtable thead + tbody tr:first-child td { border-top: 0 !important; }
  .hrm-reqtable th, .hrm-reqtable td { padding: 0 !important; }
  .hrm-reqtable tbody th { margin-bottom: 8px; }
  .hrm-reqtable td + td { margin-top: 8px; }
  .hrm-reqtable td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hrm-muted); margin-bottom: 2px; }
}
.hrm-reqnote a { color: var(--hrm-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .hrm-reqglance { padding: 28px 0 !important; }
  .hrm-reqglance .hrm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hrm-reqglance .hrm-stat { padding: 16px 14px 14px; }
  .hrm-reqglance .hrm-stat b { font-size: 22px; margin-bottom: 6px; white-space: nowrap; }
  .hrm-reqglance .hrm-stat span { font-size: 13.5px; line-height: 1.4; }
}
