/* Shared news rail and canonical masthead logo. */
.am-news-rail { --am-red: var(--am-logo-red, #c90021); }
.am-news-rail .am-news-heading h2,
.am-news-rail .am-news-list h3 a,
.am-news-rail .am-all-news { color: var(--am-forest, #123d2b); }
.am-news-rail .am-news-list h3 a:is(:hover, :focus-visible, :active),
.am-news-rail .am-all-news:is(:hover, :focus-visible, :active) { color: var(--am-logo-red, #c90021); }
.am-news-rail .am-news-controls button:not(:disabled) {
    color: var(--am-forest, #123d2b);
    border-color: var(--am-forest, #123d2b);
}
.am-news-rail .am-news-controls button:not(:disabled):is(:hover, :focus-visible, :active) {
    color: #fff;
    border-color: var(--am-logo-red, #c90021);
    background: var(--am-logo-red, #c90021);
}
#right-sidebar .inside-right-sidebar { padding-left: 28px; }
#right-sidebar .am-news-scroll { height: clamp(360px, 58vh, 560px); }
#right-sidebar .am-news-heading { flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; }
#right-sidebar .am-news-heading h2 { font-size: 20px; }
#right-sidebar .am-news-controls { margin-left: auto; }
#right-sidebar .google-auto-placed { display: none !important; }
#main-footer .am-canonical-logo {
    display: block;
    width: 300px !important;
    max-width: 100%;
    height: auto;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #fff;
}
#generate-slideout-menu .am-canonical-logo { width: auto; max-width: 100%; height: 40px; object-fit: contain; }
#mobile-header .mobile-header-logo img { width: auto; object-fit: contain; }
@media (max-width: 768px) {
    #right-sidebar .inside-right-sidebar { padding-left: 0; }
    #right-sidebar .am-news-scroll { height: 320px; }
}
/* Homepage masthead: a lead story, scrollable news rail and full-width grid. */
.home.blog #site-navigation { margin-bottom: 0; }
.home.blog #page { background: #fff; }
.home.blog #content { padding-top: 28px; }
.home.blog:not(.paged) #primary { width: 100%; }
.home.blog:not(.paged) #main { margin-right: 0; margin-left: 0; }
.home.blog:not(.paged) #right-sidebar { display: none; }
/* Reserve the top of the homepage for editorial content. */
.home.blog #page > .google-auto-placed,
.home.blog #content > .google-auto-placed,
.home.blog #primary > .google-auto-placed,
.home.blog #main > .google-auto-placed,
.home.blog .am-home-lead .google-auto-placed { display: none !important; }
.am-home-lead {
    --am-red: var(--secondary-color, #c90021);
    display: grid;
    grid-template-columns: minmax(0, 2.12fr) minmax(290px, 1fr);
    gap: 30px;
    align-items: stretch;
    margin-bottom: 38px;
}
.am-lead-story, .am-news-rail { min-width: 0; }
.am-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    gap: 12px;
    border-top: 3px solid var(--am-red);
    margin-bottom: 16px;
}
.am-section-heading h2 {
    font-size: 21px;
    line-height: 1.2;
    margin: 0;
    color: #161a21;
    font-weight: 800;
}
.am-section-heading > span { font-size: 12px; color: #69717b; }
.am-featured-story { height: 440px; }
.am-featured-link {
    display: block;
    height: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #141b25;
    color: #fff;
}
.am-featured-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 15%, rgba(6, 12, 20, .12) 35%, rgba(6, 12, 20, .9) 100%);
    pointer-events: none;
}
.am-featured-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.am-featured-placeholder {
    display: grid;
    place-content: center;
    height: 100%;
    font: 800 48px/1.1 sans-serif;
    color: #fff;
    background: #141b25;
}
.am-featured-placeholder span { color: #e41d36; }
.am-featured-copy { position: absolute; left: 28px; right: 28px; bottom: 28px; z-index: 2; }
.am-featured-category {
    display: inline-block;
    background: var(--am-red);
    color: #fff;
    padding: 5px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.am-featured-copy h1 {
    font-size: clamp(27px, 2.5vw, 36px);
    line-height: 1.1;
    color: #fff;
    margin: 0 0 15px;
    text-wrap: balance;
}
.am-featured-meta { font-size: 12px; line-height: 1.5; color: #e0e4e9; }
.am-featured-link:focus-visible { outline: 3px solid var(--am-red); outline-offset: 4px; }
.am-featured-link:hover .am-featured-copy h1 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.am-news-rail { display: flex; flex-direction: column; }
.am-news-heading h2 { display: flex; gap: 8px; align-items: center; font-size: 20px; }
.am-news-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--am-red); flex: 0 0 7px; }
.am-news-controls { display: none; gap: 5px; }
.am-news-controls.am-ready { display: flex; }
.am-news-controls button {
    display: grid;
    place-items: center;
    padding: 0;
    min-width: 32px;
    width: 32px;
    height: 32px;
    border: 1px solid #e1e4e7;
    border-radius: 0;
    background: #fff;
    color: #c90021;
    font: 600 19px/1 sans-serif;
    cursor: pointer;
}
.am-news-controls button:hover, .am-news-controls button:focus-visible { color: #fff; background: #c90021; border-color: #c90021; }
.am-news-controls button:disabled { color: #adb2b8; cursor: default; background: #fafafa; border-color: #e1e4e7; }
.am-news-scroll {
    height: 397px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c90021 #f1f2f4;
    padding-right: 12px;
}
.am-news-scroll:focus-visible { outline: 2px solid #c90021; outline-offset: 3px; }
.am-news-list { margin: 0; padding: 0; list-style: none; }
.am-news-list li { display: grid; grid-template-columns: 47px minmax(0, 1fr); gap: 13px; padding: 15px 0; border-bottom: 1px solid #e9ebed; }
.am-news-list li:first-child { padding-top: 2px; }
.am-news-list time { color: #c90021; font-size: 12px; line-height: 1.5; font-weight: 700; padding-top: 1px; }
.am-news-list time span { display: block; color: #858b92; font-size: 10px; font-weight: 400; }
.am-news-list h3 { font-size: 17px; line-height: 1.3; margin: 0; font-weight: 700; }
.am-news-list h3 a { color: #252a32; text-decoration: none; }
.am-news-list h3 a:hover, .am-news-list h3 a:focus-visible { color: #c90021; }
.am-all-news { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 13px 0 0; color: #c90021; font-size: 12px; font-weight: 700; line-height: 1.5; }
.am-latest-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 3px solid #252a32;
    padding-top: 18px;
    margin-bottom: 24px;
}
.am-latest-heading h2 { font-size: 26px; line-height: 1.2; margin: 0; }
.am-latest-heading > span { font-size: 12px; color: #747a82; }
.home.blog #main > .gb-query-loop-wrapper { column-gap: 28px; row-gap: 32px; }
.home.blog #main .loop-title { font-size: 22px; }
@media (max-width: 1023px) {
    .am-home-lead { gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); }
    .am-section-heading > span { display: none; }
    .am-featured-copy { left: 22px; right: 22px; bottom: 22px; }
    .am-news-heading h2 { font-size: 18px; }
    .am-news-controls button { min-width: 28px; width: 28px; height: 30px; }
}
@media (max-width: 767px) {
    .home.blog #content { padding-top: 18px; }
    .am-home-lead { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-bottom: 28px; }
    .am-section-heading { min-height: 45px; margin-bottom: 12px; }
    .am-section-heading h2 { font-size: 20px; }
    .am-featured-story { height: 400px; }
    .am-featured-copy h1 { font-size: 30px; }
    .am-news-scroll { height: 295px; }
    .am-news-controls button { min-width: 34px; width: 34px; height: 32px; }
    .am-all-news { margin-top: 0; }
    .am-latest-heading > span { display: none; }
    .am-latest-heading h2 { font-size: 24px; }
}
@media (max-width: 399px) {
    .am-featured-story { height: 370px; }
    .am-featured-copy { left: 18px; right: 18px; bottom: 20px; }
    .am-featured-copy h1 { font-size: 27px; }
}
