/* Explicit colors override Tribune's white hover and legacy blue selection. */
/* A thin line marks the top of each homepage section. */
body.home #main { background:#fff; }
body.home #main > .td-featured-carousel,
body.home #main > .td-featured-widget,
body.home #main > #featured,
body.home #main > #home_ad,
body.home #main > .archiveposts,
body.home #main .homepage-widgets > .widget,
body.home #main .homepage-widgets > .homecat {
    background:#fff;
    margin-bottom:0;
    padding-top:20px;
    padding-bottom:22px;
    border-top:1px solid #ddd;
    border-bottom:0;
    display:flow-root;
}
body.home #main > .td-featured-carousel { padding-top:16px; }
.td-featured-widget .td-featured-carousel { margin-bottom:0; padding-bottom:0; border-bottom:0; }
.td-carousel-meta { display:flex; flex-wrap:wrap; gap:8px 16px; margin-bottom:12px; color:#666; font-size:14px; }
.td-carousel-meta a { display:inline; }
body.home #main .td-carousel-heading { border-top:0; padding-top:0; }
body.home #main .homepage-widgets > .carousel-slider > a.prev,
body.home #main .homepage-widgets > .carousel-slider > a.next { top:22px; }
body #footer { background:linear-gradient(#3c3e42,#202224); color:#f5f5f3; }
body #footer a { color:#e0e1e3; }
body #footer a:hover { color:#fff; text-decoration:underline; }
body #footer a:focus-visible { outline:2px solid #f0d49b; outline-offset:3px; }
.td-carousel-sized .caroufredsel_wrapper,
.td-carousel-sized .caroufredsel_wrapper > div { height:var(--td-widget-carousel-height)!important; }
/* Carousel story titles should not inherit homepage category-header blocks. */
#content .carousel-slider h4,
#main .homepage-widgets .carousel-slider h4 {
    background:transparent;
    border:0;
    padding:0;
    margin:8px 0 12px;
    text-transform:none;
    font-size:17px;
    line-height:1.4;
}
#content .carousel-slider h4 a,
#main .homepage-widgets .carousel-slider h4 a {
    color:#222;
    background:transparent;
    padding:0;
    box-shadow:none;
}
#content .carousel-slider h4 a:hover,
#main .homepage-widgets .carousel-slider h4 a:hover { color:#222; opacity:1; text-decoration:underline; }
#content .carousel-slider h4 a:focus-visible { outline:2px solid #885923; outline-offset:3px; }
/* The Featured Category heading is a boxed white-on-color link, tinted by the widget's
   red/green/black class. Strip the box so it matches the Carousel Slider's plain
   h3.title and both homepage sections share one heading treatment. */
#main .homepage-widgets .homecat h4 {
    background:transparent;
    border-top:0;
    margin:0 0 20px;
    padding:0;
    text-transform:none;
    font:700 20px/1.6 Merriweather,Georgia,serif;
}
/* .red/.green/.black sit on .homecat itself, so match them to outrank style.css. */
#main .homepage-widgets .homecat h4 a,
#main .homepage-widgets .homecat.red h4 a,
#main .homepage-widgets .homecat.green h4 a,
#main .homepage-widgets .homecat.black h4 a {
    background:transparent;
    color:#252324;
    padding:0;
    box-shadow:none;
}
#main .homepage-widgets .homecat h4 a:hover { color:#252324; opacity:1; text-decoration:underline; }
#main .homepage-widgets .homecat h4 a:focus-visible { outline:2px solid #885923; outline-offset:3px; }
#header #menu { background:linear-gradient(#3c3e42,#202224); }
#header #menu #mainmenu a { color:#f5f5f3!important; text-shadow:none!important; }
#header #menu #mainmenu > li > a { background:transparent; }
#header #menu #mainmenu li:hover > a,
#header #menu #mainmenu li:focus-within > a,
#header #menu #mainmenu li.sfHover > a { background:transparent; box-shadow:none; }
#header #menu #mainmenu .current-menu-item > a,
#header #menu #mainmenu .current-menu-ancestor > a,
#header #menu #mainmenu .current_page_item > a { background:#181b1e; color:#fff!important; box-shadow:inset 0 -3px #c8b48a; }
/* Hover turns the text red, with no shading. A brighter red than the site's #d5232b, which is hard to read on the dark bar. */
#header #menu #mainmenu li:hover > a,
#header #menu #mainmenu li:focus-within > a,
#header #menu #mainmenu li.sfHover > a { color:#ff5a60!important; }
#header #menu #mainmenu .sub-menu { background:#2e3236; border-color:#51565b; }
#header #menu #mainmenu .sub-menu li { border-color:#51565b; }
#header #menu #mainmenu .sf-sub-indicator { border-top-color:#deded9; }
#header #menu #mainmenu .sub-menu .sf-sub-indicator { border-top-color:transparent; border-left-color:#deded9; }
#header #menu a:focus-visible { outline:2px solid #f0d49b; outline-offset:-4px; }
@media(min-width:769px) {
    #header #menu #mainmenu li:focus-within > .sub-menu { display:block!important; visibility:visible!important; opacity:1!important; top:100%; }
    #header #menu #mainmenu .sub-menu li:focus-within > .sub-menu { top:0; left:100%; }
}
@media(max-width:768px) {
    #header #menu #mainmenu .sub-menu { background:transparent; }
    #header #menu #mainmenu > li > a { padding-left:12px; }
}
/* Fixed back-to-top control. visibility:hidden also keeps it out of the tab order
   until the page is scrolled, which opacity alone would not. */
.td-to-top {
    position:fixed; right:20px; bottom:20px; z-index:999;
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; padding:0;
    border:1px solid #555; border-radius:0;
    background:#303438; color:#fff;
    box-shadow:none; text-shadow:none; cursor:pointer;
    opacity:0; visibility:hidden;
    transition:opacity .2s ease, visibility .2s ease, background-color .2s ease;
}
.td-to-top.is-visible { opacity:1; visibility:visible; }
.td-to-top:hover { background:#4b5055; }
.td-to-top:focus-visible { outline:2px solid #885923; outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { .td-to-top { transition:none; } }
@media(max-width:768px) { .td-to-top { right:12px; bottom:12px; width:40px; height:40px; } }
@media print { .td-to-top { display:none; } }
.td-featured-carousel { clear:both; width:100%; margin:0 0 28px; padding:0 0 16px; border-bottom:1px solid #d8d5cf; }
.td-carousel-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; border-top:3px solid #303438; padding-top:12px; }
.td-carousel-heading h2 { margin:0; font:700 22px/1.3 Tinos,Georgia,serif; color:#252324; }
.td-carousel-controls { display:flex; gap:8px; }
.td-carousel-controls[hidden] { display:none; }
.td-carousel-controls button { width:40px; height:36px; padding:0; border:1px solid #555; border-radius:0; background:#303438; color:white; font:22px/1 Arial,sans-serif; text-shadow:none; box-shadow:none; cursor:pointer; }
.td-carousel-controls button:hover { background:#4b5055; }
.td-carousel-controls button[aria-disabled="true"] { opacity:.4; cursor:default; }
.td-featured-track { list-style:none; margin:0; padding:4px 0 12px; }
.td-featured-track .td-carousel-card { width:100%; min-width:0; margin:0; padding:0; }
.td-featured-track .td-carousel-card[hidden] { display:none; }
.td-carousel-card a { display:block; color:#194052; text-decoration:none; }
.td-carousel-card a:hover { color:#742f25; }
.td-carousel-card img,.td-carousel-placeholder { display:block; width:100%; aspect-ratio:1060/520; height:auto; object-fit:cover; background:#ece9e1; }
.td-carousel-placeholder { display:flex; align-items:center; justify-content:center; font:italic 18px Georgia,serif; color:#666050; }
/* Title, excerpt and link sizes match the Featured Hero (.main_feat h2, .entry p in style.css). */
.td-carousel-card h3 { margin:15px 0 10px; font:400 24px/1.5 "Merriweather",serif; color:inherit; }
.td-carousel-excerpt { margin:0 0 14px; font:14px/1.7 "Tinos",serif; color:#252324; }
.td-carousel-card .td-carousel-read-more { display:inline-block; font-size:14px; margin-bottom:8px; }
.td-featured-carousel :focus-visible { outline:2px solid #885923; outline-offset:2px; }
.td-carousel-card a:focus-visible { outline-offset:-2px; }
@media(max-width:768px) { .td-carousel-card img,.td-carousel-placeholder { aspect-ratio:4/3; } }
@media(max-width:480px) { .td-carousel-heading h2 { font-size:21px; } #header #logo h1, #header #logo .site-title { font-size:clamp(26px,8vw,38px); } }
/* On pages with their own title the site name is a div, not an h1 (header.php); keep the h1's look,
   including the Customizer's "#logo h1 a" colour. */
#logo .site-title { margin:0; padding:0; font-family:"Merriweather", serif; }
#logo .site-title a { color:#000000; }
/* Main headings inside article text are shown as h2 (content-headings.php); keep their old h1 size. */
.entry h2[data-td-h1] { font-size:26px; }

/* Clean layout: white background, thin 1px lines instead of gray bands and boxes. */
body.home .td-homepage-top + #main .homepage-widgets > :first-child { border-top:0; padding-top:0; }

#featured .meta { background:none; border-top:0; padding:8px 0 0; }
#featured .headings .meta { display:none; }
#featured .headings li { padding-bottom:15px; border-bottom:2px solid #c6c6c6; }
#featured .headings li:last-child { padding-bottom:0; border-bottom:0; }
@media (min-width:641px) {
    #featured .headings { box-sizing:border-box; padding-left:15px; border-left:2px solid #c6c6c6; }
}

#sidebar { background:#fff; }
#sidebar .widget { background:none; border:0; padding:0 0 20px; margin:0 0 20px; border-bottom:1px solid #ddd; }
#sidebar .widget:last-child { border-bottom:0; }
#sidebar .widget h3.title { box-shadow:none; }
#sidebar .widget ol > li + li,
#sidebar .widget ul:not(.tabbernav) > li + li { border-top:1px solid #eee; }
#sidebar .widget ol > li,
#sidebar .widget ul:not(.tabbernav) > li { padding:6px 0; }
@media (min-width:769px) {
    #sidebar { box-sizing:border-box; width:342px; padding:20px 0 0 20px; border-left:2px solid #c6c6c6; }
    .td-homepage-top ~ #sidebar { padding-top:0; }
}

/* WPZOOM: Carousel Slider: a thin line in the gap left of each item. The first visible item's
   line falls outside the carousel frame (which hides overflow), so lines only show between items. */
.carousel-slider .item { position:relative; }
.carousel-slider .item::before { content:""; position:absolute; top:0; bottom:20px; left:-10px; border-left:2px solid #c6c6c6; }

/* WPZOOM: Featured Category: a three-column grid with thin lines between columns and rows. */
/* Equal columns; the lines sit in the 30px gaps, and the list hides any line that runs past its outer edge. */
#main .homepage-widgets .homecat ul.featured-stories { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:30px; margin:0 0 20px; overflow:hidden; }
#main .homepage-widgets .homecat ul.featured-stories li { position:relative; display:block; width:auto; margin:0; padding:0 0 18px; }
#main .homepage-widgets .homecat ul.featured-stories li:not(:nth-child(3n+1))::before { content:""; position:absolute; top:0; bottom:0; left:-15px; border-left:2px solid #c6c6c6; }
#main .homepage-widgets .homecat ul.featured-stories li:nth-child(n+4) { padding-top:18px; }
#main .homepage-widgets .homecat ul.featured-stories li:nth-child(n+4)::after { content:""; position:absolute; top:0; left:-15px; right:-15px; border-top:2px solid #c6c6c6; }
/* Same 220x140 shape as the theme's box, filling the column, cropped instead of stretched. */
#main .homepage-widgets .homecat ul.featured-stories li .thumb img { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:220/140; object-fit:cover; }
@media (max-width:640px) {
    #main .homepage-widgets .homecat ul.featured-stories { grid-template-columns:1fr; }
    #main .homepage-widgets .homecat ul.featured-stories li { padding:0 0 16px; }
    #main .homepage-widgets .homecat ul.featured-stories li::before { display:none; }
    #main .homepage-widgets .homecat ul.featured-stories li:nth-child(n+2) { padding-top:16px; border-top:2px solid #c6c6c6; }
    #main .homepage-widgets .homecat ul.featured-stories li::after { display:none; }
}

ul.tabbernav li { background:#fff; border:1px solid #ddd; border-bottom:none; border-radius:0; }
ul.tabbernav li.tabberactive { border-color:#ddd; }
.tabberlive .tabbertab { border:0; border-top:1px solid #ddd; padding:10px 0 0; }
