/* public_html/css/ah-readable.css
   Readable text on every AhMath LC page (founder 2026-11-17: "tiny and gray --
   so that nobody can read them? We are at the screen all day"). Loaded last:
   in the four page templates' <head> and again from footer.php for pages that
   build their own frame, so it wins over the Porto theme and Bootstrap.

   - The Porto theme sets body text to 13px #777 (gray); paragraphs repeat the
     gray. Text is now 14px and dark (#1f2937, the site's text color).
   - Paragraphs take the color of what they sit in, so white text on blue
     headers stays white.
   - Bootstrap's .text-muted / .text-secondary gray is dark text instead.
   - small / .small never drop below 13px.
   Colors set inline on a page (style="color:#6b7280") are fixed page by page. */

body {
    font-size: 14px;
    color: #1f2937;
}

p,
li,
dd,
dt,
figcaption {
    color: inherit;
}

/* css/custom.css scopes 12px + a soft gray to the app shell (.body), with
   !important, so the same scope is repeated here; this file loads later. */
.text-muted,
.text-secondary,
.text-black-50,
.body .text-muted,
.body .text-secondary {
    color: #1f2937 !important;
}

small,
.small,
.body small,
.body .small {
    font-size: max(13px, 0.92em);
}

/* Top bar (About Us, Contact Us, Welcome ...): dark and not tiny. */
.header-nav-top .nav-link,
.header-nav-top .user-menu-link,
.header-nav-top .user-menu-link strong {
    color: #1f2937 !important;
    font-size: 13px !important;
}

/* The footer is dark (#212529): its text stays light, readable sizes. */
#footer,
#footer p,
#footer li,
#footer a,
#footer span {
    color: #e5e7eb !important;
}
#footer a:hover {
    color: #ffffff !important;
}
#footer p,
#footer li,
#footer a {
    font-size: 14px !important;
}

/* ---- Shared "headline + bullets" message (founder 2026-11-17: bullets,
   not essays). Built by ahListMsgHtml() (functions/ah-list-msg.php) and
   AhListMsg.html() (js/ah-list-msg.js). Colors inherit, so a red alert
   stays red and a green one stays green. ---- */
.ah-list-msg { margin: 0; }
.ah-list-msg + .ah-list-msg { margin-top: 8px; }
.ah-list-msg-head { font-weight: 600; margin: 0; }
.ah-list-msg-items {
    margin: 2px 0 0;
    padding-left: 20px;
    list-style: disc;
}
/* Porto shrinks ".alert ul li" to 0.9em and some alert boxes are bold:
   bullets stay full size and normal weight; the headline carries the weight. */
.ah-list-msg .ah-list-msg-items > li { margin: 1px 0; overflow-wrap: anywhere; font-size: max(13px, 1em); font-weight: 400; }
/* Long name lists flow into columns on wide screens, one column on phones. */
.ah-list-msg-items.ah-list-cols { columns: 3 190px; column-gap: 28px; }
.ah-list-msg-items.ah-list-cols li { break-inside: avoid; }
.ah-list-msg-next { margin: 4px 0 0; }

/* ---- Compact summary figures (label above, number below). ---- */
.ah-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.ah-stats > div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 6px 12px;
    min-width: 0;
}
.ah-stats dt {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}
.ah-stats dd {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.ah-stats dd .ah-stats-note { font-size: 13px; font-weight: 400; }
