/* v0.3.13: focused safety rules for front-page card overflow & branding.
   Loaded after existing editorial styles. No admin or editor CSS changes. */
.header .header-main > .thv313-brand {
  display:inline-flex;position:relative;align-items:center;justify-self:start;
  width:184px;min-width:140px;max-width:100%;height:61px;
  line-height:1;transform:none;overflow:visible;white-space:nowrap;
}
.header .thv313-brand > .thv313-wordmark {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:7px;width:100%;height:100%;font-size:inherit;line-height:1;letter-spacing:normal;font-style:normal;color:#151b25}
.header .thv313-symbol {position:relative;display:block;flex:0 0 37px;width:37px;height:37px;border:4px solid #202631;border-radius:50%;background:#1a212b;box-shadow:inset 0 0 0 4px white}
.header .thv313-symbol::after{content:'';position:absolute;inset:7px;background:#202631;border-radius:50%}
.header .thv313-brand-words{display:flex;flex-direction:column;align-items:flex-start;gap:0;font-weight:900;font-style:italic;font-family:Arial,Helvetica,sans-serif;letter-spacing:-1.2px;font-size:22px;line-height:.87}
.header .thv313-brand-words strong{font:inherit;font-size:23px;letter-spacing:.1px;color:#c91536;border-bottom:2px solid #c91536}
.header .thv313-custom-brand {display:none;position:absolute;inset:0;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;object-position:left center}
.header .thv313-brand.thv313-image-ready .thv313-custom-brand{display:block}
.header .thv313-brand.thv313-image-ready .thv313-wordmark{visibility:hidden}
/* Contain each visual in its own card: uploaded aspect ratios and browser
   image width/height attributes must never expand editorial grids. */
.site-content .news-section,.site-content .featured-layout,.site-content .featured-grid,
.site-content .big-two,.site-content .five-strip,.site-content .feature-list {min-width:0;max-width:100%}
.site-content .featured-layout {grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}
.site-content .featured-layout > .featured-main {height:100%;min-height:0;min-width:0;align-self:stretch}
.site-content .featured-layout > .featured-grid {height:100%;min-width:0;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));overflow:hidden}
.site-content .featured-grid > .tiny-card {display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.site-content .featured-grid > .tiny-card img {display:block;width:100%;height:64%;min-height:0;max-height:64%;flex:0 0 64%;aspect-ratio:auto;object-fit:cover;object-position:center}
.site-content .featured-grid > .tiny-card strong {min-height:0;overflow:hidden;-webkit-line-clamp:2;line-clamp:2}
.site-content .five-strip {align-items:start}
.site-content .five-strip > .tiny-card{min-width:0;min-height:0;max-width:100%;overflow:hidden;align-self:start}
.site-content .five-strip > .tiny-card img{display:block;width:100%;height:auto;max-height:125px;aspect-ratio:1.75/1;object-fit:cover;object-position:center}
.site-content .five-strip > .tiny-card strong{-webkit-line-clamp:2;line-clamp:2}
.site-content .big-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.site-content .big-two > .pic-card{height:100%;min-height:0;min-width:0;overflow:hidden}
.site-content .news-section:not(.section-dark) .feature-list {grid-template-columns:minmax(0,1.16fr) minmax(0,1fr)}
.site-content .feature-list > .pic-card{min-width:0;overflow:hidden}
.site-content .pic-card > img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover}
.site-content .tiny-card img{max-width:100%;object-fit:cover}
/* Market occupies the entire width and smoothly cycles the source site's
   live quotes, never a hard-coded number. */
.site-content .thv313-market{display:flex;width:100%;align-items:stretch;min-height:43px;overflow:hidden}
.site-content .thv313-market > .market-label{flex:none;white-space:nowrap;min-width:115px;justify-content:center}
.site-content .thv313-market .thv313-ticker-viewport{display:block;flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;position:relative}
.site-content .thv313-market .thv313-ticker-run{display:flex;align-items:stretch;width:max-content;min-width:100%;height:100%;animation:thv313-ticker 36s linear infinite;will-change:transform}
.site-content .thv313-market .thv313-ticker-group{display:flex;align-items:center;flex:none;min-width:max-content;white-space:nowrap}
.site-content .thv313-market .thv312-quote{display:inline-flex;align-items:center;gap:6px;flex:none;padding:0 23px;font-size:12px;font-weight:600;white-space:nowrap;line-height:1.2}
.site-content .thv313-market .thv312-quote strong{white-space:nowrap}
.site-content .thv313-market .thv313-price{white-space:nowrap;padding:0;border:0;font-size:12px;color:#202a37;font-weight:800}
.site-content .thv313-market .thv312-market-unavailable{padding:11px 15px;display:block;white-space:normal;line-height:1.3}
.site-content .thv313-market .thv313-ticker-viewport:hover .thv313-ticker-run,
.site-content .thv313-market .thv313-ticker-viewport:focus-within .thv313-ticker-run{animation-play-state:paused}
@keyframes thv313-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:1000px){.site-content .featured-grid > .tiny-card img{height:61%;max-height:61%;flex-basis:61%}}
@media(max-width:730px){
  .header .header-main > .thv313-brand{height:52px;width:150px;min-width:0}
  .header .thv313-symbol{width:31px;height:31px;flex-basis:31px}
  .header .thv313-brand-words{font-size:18px}
  .header .thv313-brand-words strong{font-size:19px}
  .site-content .featured-layout{display:flex;flex-direction:column;height:auto}
  .site-content .featured-layout > .featured-main{height:265px;flex:0 0 265px}
  .site-content .featured-layout > .featured-grid{height:auto;min-height:0;grid-template-rows:auto auto;overflow:visible}
  .site-content .featured-grid > .tiny-card{min-height:0;overflow:hidden}
  .site-content .featured-grid > .tiny-card img{height:100px;max-height:100px;flex:0 0 100px}
  .site-content .five-strip{overflow-x:auto;max-width:100%;grid-template-columns:repeat(5,minmax(105px,1fr))}
  .site-content .five-strip > .tiny-card img{height:auto;max-height:95px}
  .site-content .thv313-market > .market-label{min-width:97px;padding:0 9px;font-size:10px}
  .site-content .thv313-market .thv312-quote{font-size:11px;padding:0 15px}
}
@media(max-width:390px){
 .site-content .featured-layout > .featured-main{height:220px;flex-basis:220px}
 .site-content .featured-grid > .tiny-card img{height:80px;max-height:80px;flex-basis:80px}
}
@media(prefers-reduced-motion:reduce){.site-content .thv313-market .thv313-ticker-run{animation:none;will-change:auto}}
