/* TentangBola: scoped presentation fixes. Parent theme files remain untouched. */
.tb-site-improvements {
  --theme-color-red: #c62828;
  --post-title-texttransform: none;
  --content-texttransform: none;
  --single-title-texttransform: none;
  --single-content-texttransform: none;
  --single-content-h1-texttransform: none;
  --single-content-h2-texttransform: none;
  --single-content-h3-texttransform: none;
}

.tb-site-improvements .post-title,
.tb-site-improvements .post-excerpt,
.tb-site-improvements .entry-title,
.tb-site-improvements .entry-content h1,
.tb-site-improvements .entry-content h2,
.tb-site-improvements .entry-content h3,
.tb-site-improvements .entry-content h4 {
  text-transform: none;
}

.tb-site-improvements a:focus-visible,
.tb-site-improvements button:focus-visible,
.tb-site-improvements input:focus-visible,
.tb-site-improvements textarea:focus-visible,
.tb-site-improvements select:focus-visible,
.tb-site-improvements [role="button"]:focus-visible,
.tb-site-improvements [tabindex="0"]:focus-visible {
  outline: 3px solid #005fcc !important;
  outline-offset: 3px !important;
}

/* Keep the logo centered independently of unequal left and right controls. */
@media (min-width: 770px) {
  .tb-site-improvements #masthead.layout--one .site-branding-section .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 2fr) minmax(0, 1fr);
  }
  .tb-site-improvements #masthead.layout--one .site-branding-section .site-branding {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }
  .tb-site-improvements #masthead.layout--one .site-branding-section .social-icons-wrap {
    grid-column: 1;
    grid-row: 1;
  }
  .tb-site-improvements #masthead.layout--one .header-right-button-wrap {
    grid-column: 3;
    grid-row: 1;
  }
}

.tb-site-improvements #masthead .site-branding-section .social-icons-wrap a,
.tb-site-improvements #masthead .site-branding-section .newsletter-element a,
.tb-site-improvements #masthead .site-branding-section .random-news-element a {
  color: #242424;
}
.tb-site-improvements #masthead .site-branding-section .social-icons-wrap a:hover,
.tb-site-improvements #masthead .site-branding-section .newsletter-element a:hover,
.tb-site-improvements #masthead .site-branding-section .random-news-element a:hover {
  color: #b71c1c;
}

/* Desktop sticky header is compact; mobile keeps the header in normal flow. */
.tb-site-improvements #masthead .main-header.fixed_header .site-branding img.custom-logo {
  width: min(180px, 100%);
  height: auto;
}
.tb-site-improvements #masthead .main-header.fixed_header .site-branding-section {
  padding-block: 6px;
}

/* The audited layout has three independent padding layers (20+10+40px). */
@media (max-width: 769px) {
  .tb-site-improvements #masthead.layout--one .main-header .site-branding-section {
    padding: 8px 0;
  }
  .tb-site-improvements #masthead.layout--one .main-header .site-branding-section .row {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
  }
  .tb-site-improvements #masthead.layout--one .main-header .site-branding-section .site-branding {
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
  }
  .tb-site-improvements #masthead.layout--one .site-branding-section .social-icons-wrap,
  .tb-site-improvements #masthead.layout--one .site-branding-section .header-right-button-wrap {
    display: none;
  }
  .tb-site-improvements #masthead .main-header.fixed_header {
    position: static;
    inset: auto;
    width: auto;
    transform: none;
  }
  .tb-site-improvements #masthead .main-header.fixed_header .site-branding img.custom-logo {
    width: 220px;
    max-width: 85vw;
  }
  .tb-site-improvements #masthead .site-branding .custom-logo-link {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
  }
  .tb-site-improvements #masthead .site-branding img.custom-logo {
    height: auto;
    max-width: 85vw;
  }
}

/* Allow the complete main fact to fit without making every font smaller. */
.tb-site-improvements #main-banner-section.banner-layout--five .post-title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.tb-site-improvements #main-banner-section .main-banner-wrap .post-element .post-title {
  font-size: clamp(25px, 2.4vw, 36px);
  line-height: 1.2;
  max-height: none;
  margin-block: 8px 12px;
}
.tb-site-improvements #main-banner-section .main-banner-wrap .post-excerpt {
  font-size: 16px;
  line-height: 1.45;
}
.tb-site-improvements #main-banner-section .post-thumb img {
  object-fit: cover;
  object-position: center 30%;
}
.tb-site-improvements #main-banner-section .main-banner-wrap .post-element {
  background: linear-gradient(transparent, rgb(0 0 0 / 85%));
}
.tb-site-improvements #main-banner-section .main-banner-wrap .post-date {
  color: #fff;
}
.tb-site-improvements #main-banner-section .main-banner-list-posts .post-title,
.tb-site-improvements #main-banner-section .main-banner-grid-posts .post-title {
  line-height: 1.35;
}
@media (max-width: 610px) {
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-element .post-title {
    font-size: 25px;
    line-height: 1.2;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-excerpt {
    display: none;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-element {
    padding: 16px 16px 34px;
  }
}

/* Only mobile: landscape photo + flowing headline/meta, then compact news rows. */
.tb-site-improvements #main-banner-section .tb-grid-date {
  display: none;
}
@media (max-width: 768px) {
  .tb-site-improvements #main-banner-section.banner-layout--five .main-banner-wrap article.slide-item {
    height: auto;
    background: #fff;
  }
  .tb-site-improvements #main-banner-section.banner-layout--five .main-banner-wrap article .post-thumb {
    width: 100%;
    height: auto;
    max-height: 280px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin: 0;
    background: #161616;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-thumb > a {
    display: block;
    width: 100%;
    height: 100%;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-element {
    position: static;
    width: 100%;
    padding: 14px 16px 34px;
    background: #fff;
    color: #222;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-element .post-title {
    display: block;
    width: 100%;
    max-height: none;
    margin: 8px 0 0;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: 22px;
    line-height: 1.35;
    color: #222;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-title a {
    color: #222;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-meta .post-date,
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-meta .post-date time,
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-meta .post-date:before {
    color: #595959;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .post-excerpt {
    display: none;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-dots {
    top: auto;
    bottom: 8px;
    right: 16px;
    width: auto;
    height: 24px;
    margin: 0;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-dots li,
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-dots li button {
    width: 24px;
    height: 24px;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-dots li button::before {
    top: 4px;
    left: 4px;
    background-color: #686868;
    opacity: 1;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-dots li.slick-active button::before {
    background-color: #c62828;
  }
  .tb-site-improvements #main-banner-section .main-banner-wrap .slick-arrow {
    top: 84px;
  }
  .tb-site-improvements #main-banner-section.banner-layout--five .main-banner-list-posts {
    flex: 0 1 100%;
    width: 100%;
    max-width: 100%;
  }
  .tb-site-improvements #main-banner-section.banner-layout--five .main-banner-grid-posts article.post-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    box-sizing: border-box;
    min-height: 96px;
    height: auto;
    padding: 12px;
    margin: 0;
    background: #fff;
    border-bottom: 1px solid #dedede;
  }
  .tb-site-improvements #main-banner-section .main-banner-grid-posts article .post-thumb {
    position: static;
    width: 96px;
    height: 72px;
    margin: 0;
  }
  .tb-site-improvements #main-banner-section .main-banner-grid-posts article .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tb-site-improvements #main-banner-section .main-banner-grid-posts article .post-element {
    position: static;
    min-width: 0;
    width: auto;
    padding: 0;
    background: none;
  }
  .tb-site-improvements #main-banner-section .main-banner-grid-posts article .post-element .post-title {
    display: block;
    max-height: none;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    font-size: 16px;
    line-height: 1.4;
    color: #222;
  }
  .tb-site-improvements #main-banner-section .main-banner-grid-posts .post-title a {
    color: #222;
  }
  .tb-site-improvements #main-banner-section .tb-grid-date {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #595959;
  }
}
@media (max-width: 768px) and (orientation: landscape) {
  .tb-site-improvements #main-banner-section.banner-layout--five .main-banner-wrap article .post-thumb {
    max-height: 180px;
  }
}

/* Preserve featured-photo composition and show its existing Media Library caption. */
.tb-site-improvements.single #theme-content .post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.tb-site-improvements .tb-featured-image {
  margin: 0;
}
.tb-site-improvements .tb-featured-caption {
  padding: 10px 0 2px;
  color: #505050;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
}
.tb-site-improvements .tb-featured-caption a {
  color: #a91d1d;
  text-decoration: underline;
}
.tb-site-improvements.single .post-inner .entry-content {
  font-size: 18px;
  line-height: 1.7;
}
.tb-site-improvements.single .post-inner .entry-content p {
  margin-bottom: 1.15em;
}
.tb-site-improvements.single .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  line-height: 1.7;
  color: #595959;
}
.tb-site-improvements.single .entry-meta > span {
  display: inline-flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
}
.tb-site-improvements.single .entry-meta a {
  color: #595959;
}
.tb-site-improvements.single .entry-meta .post-date {
  text-transform: none;
}
@media (max-width: 610px) {
  .tb-site-improvements.single .post-inner .entry-content {
    font-size: 17px;
    line-height: 1.7;
  }
  .tb-site-improvements.single .post-inner .entry-title {
    font-size: 28px;
    line-height: 1.25;
  }
}

/* Native inline related stories; no fixed popup or viewport overflow. */
.tb-site-improvements .tb-related-inline {
  position: static;
  width: 100%;
  margin-top: 24px;
}
.tb-site-improvements .tb-related-inline .single-related-posts-section {
  width: auto;
  height: auto;
  padding: 20px;
}
.tb-site-improvements .tb-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tb-site-improvements .tb-related-card {
  min-width: 0;
}
.tb-site-improvements .tb-related-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.tb-site-improvements .tb-related-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 10px 0 6px;
  text-transform: none;
}
.tb-site-improvements .tb-related-card time {
  color: #595959;
  font-size: 14px;
}
@media (max-width: 480px) {
  .tb-site-improvements .tb-related-grid { grid-template-columns: 1fr; }
}

/* Information pages use a readable centered column without article sidebars. */
.tb-site-improvements.tb-information-page #theme-content .secondary-sidebar,
.tb-site-improvements.tb-information-page #theme-content .secondary-left-sidebar {
  display: none;
}
.tb-site-improvements.tb-information-page #theme-content .primary-content {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.tb-site-improvements.tb-information-page #primary {
  max-width: 1000px;
  margin-inline: auto;
}
.tb-site-improvements.tb-information-page .entry-content {
  font-size: 17px;
  line-height: 1.7;
}

/* Explicit pairings for the audited low-contrast labels. */
.tb-site-improvements .site-footer .bottom-footer {
  color: #bdbdbd;
  background-color: #333;
}
.tb-site-improvements .site-footer .bottom-footer a {
  color: #e0e0e0;
}
.tb-site-improvements .site-footer .social-icons-wrap a {
  color: #e0e0e0;
}
.tb-site-improvements .digital-newspaper-ticker .digital-newspaper-ticker-label {
  background: #c62828;
  color: #fff;
}
.tb-site-improvements .digital-newspaper-ticker button {
  color: #242424;
  background-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .tb-site-improvements { scroll-behavior: auto; }
  .tb-site-improvements .post-thumb img,
  .tb-site-improvements .blaze_box_wrap {
    transition: none;
    animation: none;
  }
}
