/* ============================================================
   SmartGearHQ — Accessibility (WCAG 2.2 AA) overrides
   Loaded AFTER the compiled Tailwind bundle so these win by order.
   ============================================================ */

/* 1) Links — sufficient contrast + a non-color cue (underline).
      brand-600 (#ea580c, ~3.2:1 on white) -> brand-800 (#9a3412, ~6.6:1). */
a.text-brand-600,
.text-brand-600 {
    color: #9a3412;                 /* brand-800 */
}
a.text-brand-600 {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
a.text-brand-600:hover,
a.text-brand-600:focus-visible {
    color: #7c2d12;                 /* brand-900 */
}

/* 2) White text on brand-500 surfaces (buttons, badges).
      brand-500 (#f97316, ~2.4:1) -> brand-700 (#c2410c, ~4.8:1). */
.bg-brand-500 {
    background-color: #c2410c;      /* brand-700 */
}
.bg-brand-500:hover {
    background-color: #b45309;
}

/* 3) Muted labels — text-stone-500 on light backgrounds -> stone-600. */
.text-stone-500 {
    color: #57534e;                 /* stone-600 */
}

/* 4) Inside dark (bg-stone-900) sections, muted text goes LIGHTER. */
.bg-stone-900 .text-stone-500,
.bg-stone-900 .section-kicker,
.bg-stone-900 .text-stone-400,
.bg-stone-900 .text-stone-600 {
    color: #d6d3d1;                 /* stone-300 */
}

/* 5) Rating star — text-yellow-600 -> yellow-700. */
.text-yellow-600 {
    color: #a16207;
}

/* 6) Footer — link, paragraph, and muted text must be light on the dark
      background (they otherwise inherit dark body text). */
footer a {
    color: #e7e5e4;                 /* stone-200 */
}
footer a:hover {
    color: #ffffff;
}
footer p,
footer .text-stone-500,
footer .text-stone-600 {
    color: #d6d3d1;                 /* stone-300 */
}

/* 7) Sidebar / TOC "Quick Links" on light background. */
aside a,
[class*="sticky"] a {
    color: #44403c;                 /* stone-700 */
}

/* 8) Share buttons — the arbitrary Tailwind classes (bg-[#...]) are NOT in
      the pre-built CSS bundle, so they render with no background. Set the
      brand backgrounds via stable attribute selectors (white text then
      passes AA). */
a[href*="facebook.com/sharer"] { background-color: #153e8c; }
a[href*="wa.me"]              { background-color: #0b6e4f; }
a[href*="linkedin.com/shareArticle"] { background-color: #0a66c2; }
