/* ========================================
   drtchiro.itfocus.ai — WCAG 2.1 AA fixes
   Load this LAST on every page
   ======================================== */

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 6px;
    z-index: 10000;
    background: #004080;
    color: #fff !important;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
}
.skip-link:focus {
    top: 6px;
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

/* --- Focus visible (replaces outline:none) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #004080 !important;
    outline-offset: 2px !important;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* --- Contrast: links. #0d5560 verified >=4.9:1 on every known light bg --- */
a {
    color: #0d5560 !important;
}
a:hover,
a:active {
    color: #0a4750 !important;
}

/* --- Contrast: body / paragraph text --- */
body, p, td, li, b, strong, small, div, span {
    color: #333 !important;  /* 10.8:1 on white */
}

/* --- Contrast: headings on light backgrounds --- */
h3, .h2-text, .h3-text, .color-4 {
    color: #2a5a6a !important;  /* was #31a6be — 4.6:1 on white */
}

/* --- Header nav over photo: solid chip so white text has a real bg --- */
.menu li a,
.sf-menu li a,
.sf-menu a {
    background: #136473 !important;
    color: #fff !important;
}
.sf-menu li.sfHover > a,
.sf-menu li:hover > a,
.sf-menu a:hover,
.sf-menu a:focus {
    background: #0b5c6b !important;
    color: #fff !important;
}

/* --- Footer links dark on light --- */
#footer .menu a,
#footer a,
.footer a {
    color: #4a4a4a !important;
}
#footer .menu a:hover,
#footer a:hover,
.footer a:hover {
    color: #222 !important;
}
#footer .text, #footer p, .footer .text, .footer p {
    color: #4a4a4a !important;
}

/* --- Teal aside panel (bg #2c9bb6 / #e4edf3) --- */
aside,
aside p, aside li, aside td, aside strong, aside span, aside div {
    color: #262626 !important;  /* 4.85:1 on #2c9bb6 */
}
aside a {
    color: #09414a !important;
    background: none !important;
}
aside h3, aside .color-1 {
    color: #133842 !important;  /* large-text 3:1 floor on teal */
}

/* --- Footer/top teal boxes --- */
.text-bot {
    background: #136473 !important;
    color: #fff !important;
}
.text-bot a {
    color: #fff !important;
    text-decoration: underline !important;
}

/* --- Accordion (index-2): white header chips, dark panel text --- */
dl#accordion dt a {
    background: #136473 !important;  /* white on #136473 = 5.0:1 */
    color: #fff !important;
}
dl#accordion dt.active a,
dl#accordion dt a:hover {
    background: #0f5e6b !important;
    color: #fff !important;
}
dl#accordion dd {
    background: #e5ebef !important;
    color: #545e63 !important;
}
dl#accordion dd span,
dl#accordion dd a {
    color: #0d5560 !important;
}

/* --- Dark side-box (article sidebar): solid dark teal, all text white --- */
.side-box {
    background: #136473 !important;
    border-color: #136473 !important;
}
.side-box, .side-box * {
    color: #fff !important;  /* 5.0:1 on #136473 */
}
.side-box a {
    text-decoration: underline !important;
}

/* --- img-box: light gray on light gray = 3.8 -> white bg --- */
.img-box {
    background: #fbfeff !important;
    color: #333333 !important;
}
.img-box h3 {
    color: #0d5560 !important;
}

/* --- Mobile reflow: cap width at 320px viewport --- */
@media only screen and (max-width: 767px) {
    .main, .main-content, .wrapper, #wrapper,
    #page-content, #content, .content-area,
    div[class*="grid"], div[class*="container"] {
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    div[class*="grid_"], div[class*="col"],
    .grid_1, .grid_2, .grid_3, .grid_4, .grid_5, .grid_6,
    .grid_7, .grid_8, .grid_9, .grid_10, .grid_11, .grid_12,
    [class*="span"] {
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block;
    }
    table, tbody, tr, td, th {
        display: block;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    td[width], th[width] {
        width: auto !important;
    }
    thead { display: none; }
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    .slider, .slide, #slider, .tm-slider {
        max-width: 100% !important;
        height: auto !important;
    }
    .slide img {
        max-width: 100% !important;
        height: auto !important;
    }
    .sf-menu li {
        float: none !important;
        display: inline-block;
    }
    .sf-menu {
        text-align: center;
    }
}

/* --- Text spacing overrides (clip removal) --- */
.main, .wrapper, #wrapper, #page-content {
    overflow: visible !important;
}

/* --- Main landmark hidden-until-focused --- */
#maincontent {
    outline: none;
}

/* ===== Reflow 2026: fluid content at every width (Word-pasted blocks, wide tables) ===== */
table { max-width: 100%; }
img { max-width: 100%; height: auto; }
/* .padding-box reflow is mobile-only; desktop keeps the template's fixed-width padding-box */
@media only screen and (max-width: 767px) {
  .padding-box { width: auto !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
}
.MsoNormal, .MsoNormalTable { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; }
#maincontent h1, #maincontent h2, #maincontent h3, #maincontent p, #maincontent pre { max-width: 100%; overflow-wrap: anywhere; }
/* Accordion/content blocks sized to their container, not hard 960px. */
.dl-block, #maincontent .dl-block { width: auto !important; max-width: 100% !important; }
.dl-block table { max-width: 100%; }
#maincontent h1 { max-width: 100%; }
/* Right-column content blocks and Word-pasted headers must fit their column. */
.area { max-width: 100% !important; }
/* h1 static positioning is mobile-only; desktop template positions .dl-block h1 absolutely */
@media only screen and (max-width: 767px) {
  .dl-block h1 { position: static !important; }
}
.dl-block .dt-term, .dl-block .dt-pan { max-width: 100%; }
/* Unbreakable pasted URLs blow up table min-content width; let them wrap. */
#maincontent table, #maincontent table td, #maincontent table th,
#maincontent table a, .dl-block, .dl-block a { overflow-wrap: anywhere; word-break: break-word; }
/* Word-paste layout tables ignore their inline width because min-content wins;
   force fixed layout so the specified width holds. */
table[style*="436px"] { table-layout: fixed; max-width: 100% !important; }
/* Footer nested in the content column: its 960px .main must not overflow the column. */
#maincontent footer .main { width: auto !important; max-width: 100% !important; }

/* Site menu: submenus closed until the item is hovered or focused (desktop).
   Replaces the superfish.js inline-visibility toggle with pure CSS so the
   menu never renders fully expanded. */
.sf-menu li { position: relative; }
.sf-menu li ul { visibility: hidden; }
.sf-menu li:hover > ul,
.sf-menu li.sfHover > ul,
.sf-menu li:focus-within > ul,
.sf-menu li a:focus + ul { visibility: visible; }
.sf-menu li a { cursor: pointer; }

/* Slider caption text: bold white over photo (2026-11-16 request) */
.banner .h2-text1, .banner .h2-text2, .banner .h2-text3 {
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.6);
}
.banner { color:#ffffff !important; font-weight:bold;
  text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.6); }
.banner a { color:#ffffff !important; font-weight:bold;
  text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 3px rgba(0,0,0,.6); text-decoration:underline; }
/* Keep slider captions fully inside the 950x435 slider (numbers were bleeding past the bottom edge) */
.banner { top: 24px !important; max-height: 388px !important; overflow: hidden !important;
  font-size: 13px; line-height: 19px; }
.banner .h2-text1 { font-size: 50px !important; line-height: 1.1 !important; }
.banner .h2-text2 { font-size: 38px !important; }
.banner .h2-text3 { font-size: 24px !important; line-height: 1.15 !important; }

/* sr-only helper for "opens in a new window" announcements (2026-11-18) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
