/* EhabSAT x Hairline: palette mapping (v1). Hairline plates are opaque fills, so
   --hairline-plate must equal the flat background the figure sits on. */
[data-hl] { --hairline-hi: #f59e0b; --hairline-edge: #94a3b8; --hairline-mid: #334155; --hairline-lo: #1e293b; --hairline-stroke: .9;
  --hairline-plate: #0d172b; aspect-ratio: 5 / 4; width: 100%; max-width: var(--hl-max, 420px); margin-inline: auto; }
[data-hl][data-hl-surface="page"]    { --hairline-plate: #040812; }
[data-hl][data-hl-surface="surface"] { --hairline-plate: #0a1122; }
[data-hl][data-hl-surface="card"]    { --hairline-plate: #0d172b; }
/* light themes used by practice-style pages */
body.light-mode [data-hl], [data-theme="light"] [data-hl] { --hairline-hi: #d97706; --hairline-edge: #64748b; --hairline-mid: #cbd5e1; --hairline-lo: #e2e8f0; --hairline-plate: #ffffff; }
[data-hl][data-hl-size="sm"] { --hl-max: 240px; }
[data-hl][data-hl-size="lg"] { --hl-max: 560px; }
/* mobile rules: hide = not mounted below 768px; static = small */
@media (max-width: 767px) {
  [data-hl][data-hl-mobile="hide"] { display: none; }
  [data-hl][data-hl-mobile="static"] { --hl-max: 160px; }
}
.hl-guide { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 8px 0; }
.hl-guide p { color: var(--text-secondary, #94a3b8); font-size: 14px; max-width: 44ch; margin: 0; }

/* side illustration on wide screens (sign-in pages): fixed, never affects layout */
.hl-aside { display: none; }
@media (min-width: 1100px) { .hl-aside { display: block; position: fixed; right: 6vw; top: 50%; transform: translateY(-50%); width: min(300px, 22vw); z-index: 0; } }
