/* S03: retain the D8 layout and source data. No new typeface or image crop. */
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list {
    min-width: 0;
    align-items: stretch;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list .frame6,
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list .frame6_title,
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list .frame6_text {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    overflow: visible !important;
    max-height: none !important;
    text-overflow: clip !important;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list .frame6_title a {
    white-space: normal !important;
    overflow-wrap: anywhere;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list .frame6_img.md-s03-image-empty {
    display: none !important;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    border: 1px solid #E9EEF2;
    border-radius: 6px;
    background: #EDF3F7;
    color: #003368;
    line-height: 1.8;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-empty a {
    color: #003368;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .md-s03-list a:focus-visible {
    outline: 2px solid #003368;
    outline-offset: 3px;
}
/* News uses a thumbnail column; a text-only record uses the full existing row. */
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content.md-news .md-s03-image-empty ~ .frame6_title,
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content.md-news .md-s03-image-empty ~ .frame6_text {
    grid-column: 1 / -1;
}

/* Legacy justified headings create large gaps on narrow landing pages. */
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .order-lg-0 h2,
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .order-lg-0 h3{text-align:left!important}
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .order-lg-0 div:not([class]),
body[data-md-public="on"][data-md-adapter="s03"] #subpage-content .order-lg-0 p{text-align:left!important}

/* F6: retain the card/gallery position when a CMS photo is unavailable. */
body[data-md-adapter="s03"] .md-empty-media { display:flex; align-items:center; justify-content:center; min-height:96px; padding:24px; box-sizing:border-box; background:#EDF3F7; color:#003368; font-size:14px; text-align:center; }
