/* ADHD section (Docorix_ADHD). Builds on hub.css; dark mode follows the site toggle (html[data-theme="dark"]). */
.dx-adhd {
  --a-ink: #14233a; --a-body: #33455c; --a-mute: #5e7189; --a-line: #dfe6ef; --a-card: #fff; --a-soft: #f1f6fe;
  --a-blue: #1559b5; --a-green: #1f8f4e; --a-amber: #b86a00; --a-hl: #eaf2ff;
}
html[data-theme="dark"] .dx-adhd {
  --a-ink: #eef3fb; --a-body: #c3d0e2; --a-mute: #93a5bd; --a-line: #2c3b52; --a-card: #17202f; --a-soft: #1c2840;
  --a-blue: #6fb0ff; --a-green: #4fcf88; --a-amber: #f0b45a; --a-hl: #1b2c4a;
}
.dx-adhd .dx-hub-lead, .dx-adhd p, .dx-adhd dd { color: var(--a-body); }
.dx-adhd h2, .dx-adhd h3, .dx-adhd dt, .dx-adhd strong { color: var(--a-ink); }
.dx-adhd section { margin-bottom: 34px; }

.dx-adhd-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.dx-adhd-nav a { padding: 8px 14px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-card); color: var(--a-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.dx-adhd-nav a[aria-current="page"] { background: var(--a-blue); border-color: var(--a-blue); color: #fff; }
html[data-theme="dark"] .dx-adhd-nav a[aria-current="page"] { color: #0b1220; }

.dx-adhd-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--a-blue); color: #fff !important; font-weight: 800; text-decoration: none !important; border: 1px solid var(--a-blue); font-size: 14.5px; }
html[data-theme="dark"] .dx-adhd-btn { color: #0b1220 !important; }
.dx-adhd-btn.ghost { background: transparent; color: var(--a-blue) !important; }
.dx-adhd-src { font-size: 12.5px; color: var(--a-mute) !important; text-decoration: underline; }

/* route chooser */
.dx-adhd-chooser { background: linear-gradient(135deg, var(--a-hl), var(--a-soft)); border: 1px solid var(--a-line); border-radius: 18px; padding: 26px 24px; }
.dx-adhd-chooser h2 { margin-top: 0; }
.dx-adhd-q { margin: 0 0 16px; }
.dx-adhd-q > span { display: block; font-weight: 800; color: var(--a-ink); margin-bottom: 8px; }
.dx-adhd-q [role="group"], .dx-adhd-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-adhd-q button, .dx-adhd-filter button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-ink); font-weight: 700; font-size: 14.5px; cursor: pointer; }
.dx-adhd-q button[aria-pressed="true"], .dx-adhd-filter button[aria-pressed="true"] { background: var(--a-blue); border-color: var(--a-blue); color: #fff; }
html[data-theme="dark"] .dx-adhd-q button[aria-pressed="true"], html[data-theme="dark"] .dx-adhd-filter button[aria-pressed="true"] { color: #0b1220; }
.dx-adhd-q button:focus-visible, .dx-adhd-filter button:focus-visible, .dx-adhd-btn:focus-visible, #dx-board-select:focus-visible { outline: 3px solid var(--a-blue); outline-offset: 2px; }
.dx-adhd-filter { margin: 0 0 18px; }
.dx-adhd-out { margin-top: 18px; display: grid; gap: 14px; }
.dx-adhd-route, .dx-adhd-board { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 18px 20px; }
.dx-adhd-route.hl { border-color: var(--a-blue); box-shadow: 0 0 0 2px var(--a-hl); }
.dx-adhd-route strong, .dx-adhd-board strong { display: block; font-size: 18px; margin-bottom: 6px; }
.dx-adhd-route p { margin: 0 0 12px; }
.dx-adhd-route-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dx-adhd-note { font-size: 14px; color: var(--a-mute) !important; }

/* stats */
.dx-adhd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 30px 0; }
.dx-adhd-stats > div { background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 18px 20px; }
.dx-adhd-stats strong { display: block; font-size: 34px; line-height: 1.1; color: var(--a-blue); letter-spacing: -.02em; }
.dx-adhd-stats span { display: block; color: var(--a-body); margin: 6px 0 8px; font-size: 14.5px; line-height: 1.45; }

/* comparison */
.dx-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 800; font-size: 12.5px; background: var(--a-soft); color: var(--a-ink); }
.dx-chip.g { background: #dff3e7; color: #0d5d2f; } .dx-chip.a { background: #fdebd0; color: #7a4600; }
html[data-theme="dark"] .dx-chip.g { background: #123a26; color: #8ee3b0; } html[data-theme="dark"] .dx-chip.a { background: #3d2a0c; color: #f5c77e; }
.dx-adhd-compare thead th:first-child { min-width: 110px; }
.dx-adhd-compare tbody td { min-width: 190px; }

/* flow */
.dx-adhd-flow { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: none; }
.dx-adhd-flow li { position: relative; background: var(--a-card); border: 1px solid var(--a-line); border-radius: 14px; padding: 16px 14px 14px; }
.dx-adhd-flow li::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--a-blue); font-weight: 800; background: var(--a-card); border-radius: 50%; width: 20px; text-align: center; z-index: 1; }
.dx-adhd-flow li:last-child::after { display: none; }
.dx-adhd-n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--a-blue); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
html[data-theme="dark"] .dx-adhd-n { color: #0b1220; }
.dx-adhd-flow strong { display: block; font-size: 15px; margin-bottom: 4px; }
.dx-adhd-flow small { display: block; color: var(--a-mute); line-height: 1.4; font-size: 13px; }
@media (max-width: 700px) { .dx-adhd-flow li::after { display: none; } }

/* waiting bars */
.dx-adhd-bars { display: grid; gap: 16px; }
.dx-adhd-bar-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dx-adhd-bar-h span { font-weight: 800; color: var(--a-blue); white-space: nowrap; }
.dx-adhd-bar-t { height: 14px; border-radius: 999px; background: var(--a-soft); overflow: hidden; }
.dx-adhd-bar-t i { display: block; height: 100%; background: linear-gradient(90deg, var(--a-blue), #5aa0ff); border-radius: 999px; }
.dx-adhd-bar p { margin: 8px 0 0; font-size: 14.5px; }

/* finder */
.dx-adhd-finder { border: 1px solid var(--a-line); border-radius: 18px; padding: 24px; background: var(--a-card); }
.dx-adhd-finder h2 { margin-top: 0; }
#dx-board-select { width: 100%; max-width: 560px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--a-line); background: var(--a-card); color: var(--a-ink); font-size: 16px; }
.dx-adhd-chiplist { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.dx-adhd-chiplist li { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-soft); }
.dx-adhd-chiplist a { font-weight: 700; }
.dx-adhd-chiplist em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--a-blue); }

/* provider cards */
.dx-adhd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 18px; }
.dx-adhd-card { display: block; padding: 14px 16px; border: 1px solid var(--a-line); border-radius: 14px; background: var(--a-card); text-decoration: none !important; }
.dx-adhd-card[hidden] { display: none; }
.dx-adhd-card:hover { border-color: var(--a-blue); }
.dx-adhd-card strong { display: block; font-size: 16px; margin-bottom: 8px; }
.dx-adhd-card small { color: var(--a-mute); }
.dx-adhd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dx-adhd-chips em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--a-soft); color: var(--a-ink); }
.dx-adhd-chips em.a { background: #e3efff; color: #0f4a97; } .dx-adhd-chips em.c { background: #efe6ff; color: #4c2a9a; }
html[data-theme="dark"] .dx-adhd-chips em.a { background: #16365e; color: #a9d0ff; } html[data-theme="dark"] .dx-adhd-chips em.c { background: #2e2250; color: #cdb8ff; }

/* matrix */
.dx-adhd-mtable td { text-align: center; white-space: nowrap; }
.dx-adhd-mtable thead th a { color: inherit; }
.dx-adhd-mtable b { display: inline-flex; width: 24px; height: 24px; border-radius: 6px; align-items: center; justify-content: center; font-size: 12px; margin: 0 2px; }
.dx-adhd-a { background: #e3efff; color: #0f4a97; } .dx-adhd-c { background: #efe6ff; color: #4c2a9a; }
html[data-theme="dark"] .dx-adhd-a { background: #16365e; color: #a9d0ff; } html[data-theme="dark"] .dx-adhd-c { background: #2e2250; color: #cdb8ff; }
.dx-adhd-none { color: var(--a-mute) !important; }
.dx-adhd-block dt { margin-bottom: 2px; }
html[data-theme="dark"] .dx-adhd .dx-rtc-wrap { background: var(--a-card); border-color: var(--a-line); }
html[data-theme="dark"] .dx-adhd .dx-rtc-table th, html[data-theme="dark"] .dx-adhd .dx-rtc-table td { color: var(--a-body); border-color: var(--a-line); }
html[data-theme="dark"] .dx-adhd .dx-rtc-table thead th { background: var(--a-soft); color: var(--a-ink); }

/* waiting bands */
.dx-adhd-band { margin: 6px 0 22px; }
.dx-adhd-band h3 { font-size: 19px; margin: 0 0 4px; }
.dx-adhd-h3 { font-size: 19px; margin: 26px 0 10px; }
.dx-adhd-band-t { margin: 0 0 10px; }
.dx-adhd-stack { display: flex; height: 26px; border-radius: 999px; overflow: hidden; background: var(--a-soft); margin-bottom: 12px; }
.dx-adhd-stack i, .dx-adhd-key { background: #8fc1ff; }
.dx-adhd-stack i.b2, .dx-adhd-key.b2 { background: #4f93ee; }
.dx-adhd-stack i.b3, .dx-adhd-key.b3 { background: #f0b45a; }
.dx-adhd-stack i.b4, .dx-adhd-key.b4 { background: #d9534f; }
.dx-adhd-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.dx-adhd-legend { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--a-body); }
.dx-adhd-bandtable td, .dx-adhd-bandtable th { white-space: nowrap; }

.dx-adhd-wait blockquote { margin: 0 0 8px; padding: 4px 0 4px 16px; border-left: 4px solid var(--a-blue); }
.dx-adhd-wait blockquote p { margin: 8px 0; font-size: 16px; line-height: 1.55; }
