/* Us Ary Sports TV — v0.3.0 styles (Sporting News redesign, 2026-11-16).
   Palette: black #111111 (header/nav/footer), ink #1A1A1A, page #F5F5F5,
   muted #666666, borders #E5E5E5, live red #E5213F (LIVE tags only).
   Dark: bg #121212, cards #1E1E1E, text #F5F5F5.
   The scoreboard panel and data-widget styles below are kept although
   nothing renders them since v0.3.0 (scoreboard retired from display);
   they stay so the removal is reversible. */

:root {
	--usary-black: #111111;
	--usary-ink: #1A1A1A;
	--usary-page: #F5F5F5;
	--usary-muted: #666666;
	--usary-border: #E5E5E5;
	--usary-live: #E5213F;
}

/* ---------- Page background + footer ---------- */
html body { background: var(--usary-page); }
/* GeneratePress 3.6's footer element is <footer class="site-info"> (there is
 * no .site-footer class), and the theme's Customizer inline CSS sets
 * .site-info and .footer-widgets to indigo #1e0b4f AFTER this stylesheet
 * loads, so equal-specificity rules lose. NOTE: #footer-widgets is a
 * SIBLING of the <footer> element, not a child of it, so a descendant
 * selector like .site-info .footer-widgets never matches (v0.3.2 mistake) —
 * target it by its ID. */
footer.site-info, #footer-widgets { background: var(--usary-black); }
/* Footer menu in two columns so the link list does not tower over the
 * disclaimer column and leave a large empty band. */
#menu-footer-menu { columns: 2; column-gap: 24px; }
#menu-footer-menu li { break-inside: avoid; }

/* ---------- Utility bar ---------- */
.usary-utility { background: var(--usary-black); color: #fff; font-size: 13.5px; }
.usary-utility-inner {
	max-width: 1240px; margin: 0 auto; padding: 6px 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.usary-utility-date { font-weight: 600; letter-spacing: 0.01em; }
.usary-utility-right { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.usary-tz-label { display: inline-flex; align-items: center; gap: 6px; color: #CCC; }
.usary-tz-select {
	background: #222; color: #fff; border: 1px solid rgba(255,255,255,0.35);
	border-radius: 8px; padding: 3px 6px; font-size: 13.5px;
}
.usary-clock { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 108px; }
.usary-theme-toggle {
	background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.45);
	border-radius: 999px; padding: 3px 12px; font-size: 13px; cursor: pointer;
}
.usary-theme-toggle:hover { background: rgba(255,255,255,0.14); }

/* ---------- Scoreboard panel (retired from display in v0.3.0; kept for reversibility) ---------- */
.usary-panel {
	background: #fff; border-bottom: 1px solid var(--usary-border);
	max-width: 1240px; margin: 0 auto; padding: 10px 16px 12px;
}
.usary-panel-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.usary-date-ctl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.usary-date-arrow, .usary-cards-arrow {
	background: var(--usary-page); border: 1px solid var(--usary-border); color: var(--usary-black);
	border-radius: 8px; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 auto;
}
.usary-date-label { font-weight: 700; color: var(--usary-ink); min-width: 92px; text-align: center; }
.usary-date-input { border: 1px solid var(--usary-border); border-radius: 8px; padding: 4px 6px; font-size: 13px; color: var(--usary-ink); }
.usary-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.usary-tab {
	background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 6px 10px;
	font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700; font-size: 17px;
	letter-spacing: 0.03em; text-transform: uppercase; color: var(--usary-muted); cursor: pointer; white-space: nowrap;
}
.usary-tab:hover { color: var(--usary-black); }
.usary-tab-active { color: var(--usary-black); border-bottom-color: var(--usary-black); }
.usary-cards-wrap { display: flex; align-items: stretch; gap: 8px; }
.usary-cards {
	display: flex; gap: 10px; overflow-x: auto; flex: 1 1 auto; padding: 2px;
	scrollbar-width: thin; -webkit-overflow-scrolling: touch; min-height: 118px;
}
.usary-card {
	flex: 0 0 210px; width: 210px; background: #fff; border: 1px solid var(--usary-border);
	border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--usary-ink);
	display: flex; flex-direction: column; gap: 6px;
}
.usary-card:hover { background: var(--usary-page); }
.usary-card-status { font-size: 12.5px; font-weight: 700; color: var(--usary-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.usary-live-status { color: var(--usary-live); }
.usary-live-dot {
	display: inline-block; width: 8px; height: 8px; border-radius: 50%;
	background: var(--usary-live); margin-right: 5px; vertical-align: 1px;
}
.usary-card-row { display: flex; align-items: center; gap: 8px; }
.usary-badge {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; color: #fff;
	font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
	letter-spacing: 0.02em;
}
.usary-card-team { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usary-card-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.usary-card-row:not(.usary-win) .usary-card-team, .usary-card-row:not(.usary-win) .usary-card-score { color: var(--usary-muted); }
.usary-card-row.usary-win .usary-card-team, .usary-card-row.usary-win .usary-card-score { color: var(--usary-ink); }
.usary-card-league { font-size: 11.5px; color: var(--usary-muted); }
.usary-card-all { align-items: center; justify-content: center; text-align: center; background: var(--usary-page); }
.usary-all-label { font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; color: var(--usary-black); }
.usary-all-sub { font-size: 12.5px; color: var(--usary-muted); }
.usary-no-games { color: var(--usary-muted); font-size: 15px; margin: 0; align-self: center; }
.usary-flash { animation: usaryFlash 1.2s ease-out; }
@keyframes usaryFlash { 0% { background: #DDD; } 100% { background: transparent; } }

/* ---------- Data widgets (scores / standings / schedule / ticker; unused since v0.3.0) ---------- */
.usary-widget, .usary-ticker {
	background: #fff; color: var(--usary-ink);
	border: 1px solid var(--usary-border); border-radius: 12px;
	padding: 14px 16px; margin: 0 0 20px; min-height: 96px;
	font-size: 16px; line-height: 1.45;
}
.usary-widget-title {
	font-family: "Barlow Condensed", "Oswald", Arial, sans-serif;
	font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase;
	margin: 0 0 10px; color: var(--usary-ink);
	border-bottom: 3px solid var(--usary-black); padding-bottom: 6px;
}
.usary-games { list-style: none; margin: 0; padding: 0; }
.usary-game {
	display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 4px 10px; align-items: baseline;
	background: var(--usary-page); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; min-height: 44px;
}
.usary-team { font-weight: 600; overflow-wrap: anywhere; }
.usary-score { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; }
.usary-status { grid-column: 1 / -1; font-size: 13px; color: var(--usary-muted); }
.usary-status .usary-time { font-weight: 600; }
.usary-standings { width: 100%; border-collapse: collapse; }
.usary-standings th, .usary-standings td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--usary-border); }
.usary-standings thead th { background: var(--usary-black); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.usary-attrib { font-size: 12px; color: var(--usary-muted); margin: 8px 0 0; }
.usary-unavailable { border-style: dashed; }
.usary-unavailable-title { font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; margin: 0 0 6px; }
.usary-ticker { display: flex; gap: 22px; overflow-x: auto; white-space: nowrap; border-radius: 0; border-left: 0; border-right: 0; min-height: 52px; align-items: center; scrollbar-width: thin; }
.usary-tick strong { color: var(--usary-black); text-transform: uppercase; margin-right: 6px; }
.usary-tick em { color: var(--usary-muted); font-style: normal; font-size: 13px; }
.usary-ticker:focus-visible, .usary-widget a:focus-visible, .usary-card:focus-visible, .usary-tab:focus-visible { outline: 3px solid var(--usary-black); outline-offset: 2px; }

/* ---------- Home page sections ---------- */
body.home .widget-area { display: none; }
body.home #primary, body.home .content-area { width: 100%; float: none; }
.usary-img-169 { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 8px; }
.usary-kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--usary-black); margin: 8px 0 4px; }
.usary-meta { font-size: 13.5px; color: var(--usary-muted); }
.usary-section { margin: 0 0 28px; }
.usary-section-title {
	font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700;
	font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--usary-ink);
	border-bottom: 3px solid var(--usary-black); padding-bottom: 6px; margin: 0 0 16px;
}
.usary-btn {
	display: inline-block; background: var(--usary-black); color: #fff !important; text-decoration: none;
	font-weight: 700; border-radius: 999px; padding: 10px 26px; font-size: 15.5px;
}
.usary-btn:hover { background: #333; }
.usary-more-wrap { text-align: center; margin: 16px 0 0; }

/* Hero: big lead + Latest News rail, secondary cards below. */
.usary-hero { display: grid; grid-template-columns: 1.9fr 1fr; gap: 22px; margin: 0 0 22px; align-items: start; }
.usary-hero-lead { background: #fff; border: 1px solid var(--usary-border); border-radius: 12px; padding: 16px; }
.usary-hero-title { font-size: 32px; line-height: 1.1; margin: 2px 0 8px; }
.usary-hero-title a { color: var(--usary-ink); text-decoration: none; }
.usary-hero-title a:hover { text-decoration: underline; }
.usary-hero-summary { color: var(--usary-muted); font-size: 16.5px; margin: 0 0 12px; }
.usary-hero-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--usary-border); padding-top: 10px; }
.usary-read-more { color: var(--usary-ink); font-weight: 700; font-size: 15px; text-decoration: underline; white-space: nowrap; }
.usary-hero-rail { background: #fff; border: 1px solid var(--usary-border); border-radius: 12px; padding: 16px; }
.usary-rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--usary-border); padding-bottom: 8px; margin-bottom: 6px; }
.usary-rail-head h2 {
	font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700;
	font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--usary-ink); margin: 0;
}
.usary-see-all { color: var(--usary-ink); font-weight: 700; font-size: 14px; text-decoration: underline; white-space: nowrap; }
.usary-rail-list { list-style: none; margin: 0; padding: 0; }
.usary-rail-list li { padding: 9px 0; border-bottom: 1px solid var(--usary-border); }
.usary-rail-list li:last-child { border-bottom: 0; }
.usary-rail-list a { color: var(--usary-ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; text-decoration: none; display: block; }
.usary-rail-list a:hover { text-decoration: underline; }
.usary-hero-time { font-size: 12.5px; color: var(--usary-muted); }

.usary-hero-secondary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 28px; }
.usary-hero-sec-card {
	background: #fff; border: 1px solid var(--usary-border); border-radius: 12px; padding: 12px;
	display: grid; grid-template-columns: 40% 1fr; gap: 12px; align-items: start;
}
.usary-hero-sec-card h3 { font-size: 18px; line-height: 1.2; margin: 0 0 6px; }
.usary-hero-sec-card h3 a { color: var(--usary-ink); text-decoration: none; }
.usary-hero-sec-card h3 a:hover { text-decoration: underline; }
.usary-hero-sec-card .usary-kicker { margin-top: 0; }

/* Sport rows: header + 5 cards in a row. */
.usary-sport-row { margin: 0 0 30px; }
.usary-sport-row-head { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--usary-ink); padding-bottom: 8px; margin: 0 0 14px; }
.usary-sport-letter {
	background: var(--usary-black); color: #fff; font-family: "Barlow Condensed", "Oswald", Arial, sans-serif;
	font-weight: 700; font-size: 20px; width: 34px; height: 34px; border-radius: 8px;
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.usary-sport-row-head h2 {
	font-family: "Barlow Condensed", "Oswald", Arial, sans-serif; font-weight: 700;
	font-size: 26px; text-transform: uppercase; margin: 0; color: var(--usary-ink);
}
.usary-see-more { margin-left: auto; color: var(--usary-ink); font-weight: 700; font-size: 14px; text-decoration: underline; white-space: nowrap; }
.usary-sport-row-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.usary-sport-row-card h3 { font-size: 17px; line-height: 1.25; margin: 8px 0 4px; }
.usary-sport-row-card h3 a { color: var(--usary-ink); text-decoration: none; }
.usary-sport-row-card h3 a:hover { text-decoration: underline; }

.usary-band { background: #fff; border: 1px solid var(--usary-border); border-radius: 12px; padding: 20px; margin: 0 0 28px; }
.usary-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usary-guide-card { background: #fff; border: 1px solid var(--usary-border); border-radius: 12px; padding: 10px; }
.usary-guide-card h3 { font-size: 19px; line-height: 1.2; margin: 8px 2px 4px; }
.usary-guide-card h3 a { color: var(--usary-ink); text-decoration: none; }
.usary-guide-card h3 a:hover { text-decoration: underline; }

/* ---------- Reserved ad slots (fixed size, empty) ---------- */
/* Ad slots: fixed reserved space. A tiny ADVERTISEMENT label on a slightly
 * darker ground so the reserved slot reads as intentional, not a blank gap. */
.usary-ad { background: #EBEBEB; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; }
.usary-ad::after { content: "ADVERTISEMENT"; font-size: 10px; letter-spacing: .18em; color: #999; font-weight: 600; }
.usary-ad-leaderboard { max-width: 970px; height: 90px; }
.usary-ad-box { max-width: 300px; height: 250px; }
.usary-ad-sticky { display: none; }

/* ---------- Dark mode ---------- */
html[data-usary-theme="dark"] body { background: #121212; color: #F5F5F5; }
html[data-usary-theme="dark"] .site-header, html[data-usary-theme="dark"] .main-navigation, html[data-usary-theme="dark"] .main-navigation ul ul { background: #1E1E1E; }
html[data-usary-theme="dark"] .inside-article, html[data-usary-theme="dark"] .comments-area, html[data-usary-theme="dark"] .page-header,
html[data-usary-theme="dark"] .usary-widget, html[data-usary-theme="dark"] .usary-guide-card, html[data-usary-theme="dark"] .usary-card,
html[data-usary-theme="dark"] .usary-panel, html[data-usary-theme="dark"] .usary-hero-lead, html[data-usary-theme="dark"] .usary-hero-rail,
html[data-usary-theme="dark"] .usary-hero-sec-card, html[data-usary-theme="dark"] .usary-band { background: #1E1E1E; color: #F5F5F5; border-color: #333; }
html[data-usary-theme="dark"] .usary-game, html[data-usary-theme="dark"] .usary-card-all { background: #262626; }
html[data-usary-theme="dark"] h1, html[data-usary-theme="dark"] h2, html[data-usary-theme="dark"] h3, html[data-usary-theme="dark"] h4,
html[data-usary-theme="dark"] .usary-hero-title a, html[data-usary-theme="dark"] .usary-rail-list a, html[data-usary-theme="dark"] .usary-section-title,
html[data-usary-theme="dark"] .usary-widget-title, html[data-usary-theme="dark"] .usary-card-team,
html[data-usary-theme="dark"] .usary-card-score, html[data-usary-theme="dark"] .usary-date-label, html[data-usary-theme="dark"] .usary-sport-row-head h2,
html[data-usary-theme="dark"] .usary-sport-row-card h3 a, html[data-usary-theme="dark"] .usary-hero-sec-card h3 a,
html[data-usary-theme="dark"] .usary-guide-card h3 a, html[data-usary-theme="dark"] .usary-read-more, html[data-usary-theme="dark"] .usary-see-all,
html[data-usary-theme="dark"] .usary-see-more, html[data-usary-theme="dark"] .usary-kicker { color: #F5F5F5; }
html[data-usary-theme="dark"] a { color: #DDD; }
html[data-usary-theme="dark"] .usary-meta, html[data-usary-theme="dark"] .usary-hero-summary, html[data-usary-theme="dark"] .usary-hero-time,
html[data-usary-theme="dark"] .usary-card-league, html[data-usary-theme="dark"] .usary-status, html[data-usary-theme="dark"] .usary-attrib { color: #AAA; }
html[data-usary-theme="dark"] .usary-rail-list li, html[data-usary-theme="dark"] .usary-rail-head, html[data-usary-theme="dark"] .usary-hero-meta,
html[data-usary-theme="dark"] .usary-sport-row-head, html[data-usary-theme="dark"] .usary-standings th,
html[data-usary-theme="dark"] .usary-standings td { border-color: #333; }
html[data-usary-theme="dark"] .site-info { background: #0A0A0A; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.usary-hero { grid-template-columns: 1fr; }
	.usary-hero-secondary { grid-template-columns: 1fr 1fr; }
	.usary-sport-row-grid { grid-template-columns: repeat(3, 1fr); }
	.usary-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.usary-hero-title { font-size: 28px; }
	.usary-hero-secondary { grid-template-columns: 1fr; }
	.usary-sport-row-grid { grid-template-columns: 1fr 1fr; }
	.usary-guide-grid { grid-template-columns: 1fr; }
	.usary-ad-leaderboard { height: 60px; }
	.usary-ad-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 50px; margin: 0; z-index: 90; }
	.usary-game { grid-template-columns: 1fr auto; }
	.usary-widget { font-size: 15px; padding: 12px; }
	.usary-cards-arrow { display: none; }
	.usary-clock { min-width: 0; }
}
