/*
Theme Name: Break the Spin
Theme URI: https://breakthespin.com
Description: Lightweight GeneratePress child theme for Break the Spin. Navy and gold news layout.
Author: Break the Spin
Template: generatepress
Version: 1.0.2
Text Domain: breakthespin
*/

:root {
	--bts-navy: #0b1f3a;
	--bts-navy-2: #14305a;
	--bts-gold: #f2b705;
	--bts-gold-dark: #b98a00;
	--bts-text: #1f2933;
	--bts-muted: #5b6673;
	--bts-line: #e3e7ec;
	--bts-soft: #f4f6f9;
}

body {
	color: var(--bts-text);
	background: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
body .site-content { background: #fff; }
a { color: var(--bts-navy); }
a:hover, a:focus { color: var(--bts-gold-dark); }
img { height: auto; }

/* ---------- Header + nav ---------- */
body .site-header { background: var(--bts-navy); border-bottom: 0; }
body .inside-header { padding: 14px 20px; }
body .main-title { margin: 0; font-size: 28px; line-height: 1; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
body .main-title a, body .main-title a:hover { color: #fff; text-decoration: none; }
.bts-logo-a { color: #fff; }
.bts-logo-b { color: var(--bts-gold); }

body .main-navigation, body .main-navigation ul ul { background: var(--bts-navy-2); }
body .main-navigation { border-top: 1px solid rgba(255,255,255,.08); border-bottom: 3px solid var(--bts-gold); }
body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle { color: #fff; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li:focus > a,
body .main-navigation .main-nav ul li.sfHover > a,
body .main-navigation .main-nav ul li[class*="current-menu-"] > a { color: var(--bts-gold); background: transparent; }
body .main-navigation .menu-toggle:hover { color: var(--bts-gold); background: transparent; }
body .main-navigation .inside-navigation { padding: 0 20px; }

/* ---------- BREAKING ticker ---------- */
.bts-ticker { display: flex; align-items: stretch; background: var(--bts-gold); color: var(--bts-navy); overflow: hidden; }
.bts-ticker__label { flex: none; background: var(--bts-navy); color: var(--bts-gold); font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; display: flex; align-items: center; position: relative; z-index: 1; }
.bts-ticker__label::after { content: ""; position: absolute; right: -10px; top: 0; border-left: 10px solid var(--bts-navy); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.bts-ticker__viewport { flex: 1; overflow: hidden; min-width: 0; }
.bts-ticker__track { display: flex; width: max-content; animation: bts-scroll 45s linear infinite; will-change: transform; }
.bts-ticker__track:hover, .bts-ticker__track:focus-within { animation-play-state: paused; }
.bts-ticker ul { display: flex; margin: 0; padding: 0 0 0 28px; list-style: none; flex: none; }
.bts-ticker li { margin: 0 36px 0 0; white-space: nowrap; line-height: 40px; font-weight: 600; font-size: 15px; }
.bts-ticker li::before { content: "\25CF"; font-size: 8px; margin-right: 10px; vertical-align: middle; }
.bts-ticker a { color: var(--bts-navy); text-decoration: none; }
.bts-ticker a:hover { text-decoration: underline; }
@keyframes bts-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.bts-ticker__track { animation: none; }
	.bts-ticker__viewport { overflow-x: auto; }
}

/* ---------- Homepage layout ---------- */
body.home .inside-article, body.home .site-main > article { padding: 0; background: transparent; }
body.home .site-content { display: block; }
.bts-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; padding: 24px 16px 40px; }
.bts-home__main { min-width: 0; }
.bts-home__side { min-width: 0; }
@media (min-width: 992px) {
	.bts-home { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 32px 20px 56px; }
	.bts-home__side { border-left: 1px solid var(--bts-line); padding-left: 28px; }
	.bts-home__side .bts-latest-sticky { position: sticky; top: 16px; }
}

/* Top story + 4 headlines */
.bts-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--bts-line); }
@media (min-width: 768px) { .bts-top { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; } }
a.gb-loop-item, a.gb-loop-item:hover, a.gb-loop-item:focus { color: inherit; text-decoration: none; display: block; }
.bts-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--bts-soft); }
.bts-lead__title { overflow-wrap: anywhere; font-size: 28px; line-height: 1.15; font-weight: 800; margin: 14px 0 8px; color: var(--bts-navy); }
@media (min-width: 768px) { .bts-lead__title { font-size: 34px; } }
a.gb-loop-item:hover .bts-lead__title, a.gb-loop-item:hover .bts-card__title, a.gb-loop-item:hover .bts-hl__title { color: var(--bts-gold-dark); }
.bts-lead__excerpt { font-size: 17px; line-height: 1.5; color: var(--bts-muted); margin: 0; }
.bts-lead__excerpt .read-more, .bts-lead__excerpt a { display: none; }

.bts-headlines__title, .bts-section__title, .bts-latest__title { font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--bts-navy); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--bts-gold); }
.bts-hl { padding: 12px 0; border-bottom: 1px solid var(--bts-line); }
.bts-hl:first-child { padding-top: 0; }
.bts-hl:last-child { border-bottom: 0; }
.bts-hl__title { font-size: 17px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; color: var(--bts-navy); }

/* Category rows */
.bts-section { margin-bottom: 36px; }
.bts-section__title a { color: inherit; text-decoration: none; }
.bts-cards .gb-looper { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 560px) { .bts-cards .gb-looper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .bts-cards .gb-looper { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bts-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--bts-soft); }
.bts-card__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 10px 0 4px; color: var(--bts-navy); }
.bts-ago, .bts-card__time, .bts-hl__time { display: block; text-decoration: none; font-size: 13px; color: var(--bts-muted); }

/* Latest list (homepage column + article sidebar) */
.bts-latest__list { list-style: none; margin: 0; padding: 0; counter-reset: bts; }
.bts-latest__list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bts-line); counter-increment: bts; }
.bts-latest__list li:last-child { border-bottom: 0; }
.bts-latest__list a { font-weight: 700; line-height: 1.3; text-decoration: none; display: block; }
.bts-latest__list a:hover { color: var(--bts-gold-dark); }
.bts-latest__loop > * { margin: 0; }
.bts-latest-item { padding: 12px 0; border-bottom: 1px solid var(--bts-line); }
a.bts-latest-item:hover .bts-latest-item__title { color: var(--bts-gold-dark); }
.bts-latest-item__title { font-weight: 700; line-height: 1.3; margin: 0 0 3px; font-size: 16px; }

/* ---------- Article ---------- */
.bts-article .entry-title { font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--bts-navy); margin: 0 0 12px; }
@media (min-width: 768px) { .bts-article .entry-title { font-size: 42px; } }
.bts-byline { font-size: 14px; color: var(--bts-muted); margin-bottom: 14px; }
.bts-byline a { color: var(--bts-navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--bts-gold); }
.bts-sep { margin: 0 6px; color: var(--bts-gold-dark); }
.bts-share { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; flex-wrap: wrap; }
.bts-share__label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--bts-muted); }
.bts-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; }
.bts-share__fb { background: #1877f2; }
.bts-share__x { background: #111; }
.bts-share__btn:hover, .bts-share__btn:focus { color: #fff; opacity: .88; }
.bts-feature { margin: 0 0 22px; }
.bts-feature img { width: 100%; display: block; }
.bts-feature figcaption { font-size: 13px; color: var(--bts-muted); padding-top: 6px; }
.bts-article .entry-content { font-size: 18px; line-height: 1.7; }
.bts-article .entry-content p { margin-bottom: 1.3em; }
.bts-article .entry-content a { text-decoration: underline; text-decoration-color: var(--bts-gold); text-underline-offset: 3px; }
.bts-sources { margin-top: 36px; padding: 18px 20px; background: var(--bts-soft); border-left: 4px solid var(--bts-gold); }
.bts-sources h2 { font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; color: var(--bts-navy); }
.bts-sources ol { margin: 0 0 0 1.2em; padding: 0; font-size: 15px; line-height: 1.6; }
.bts-sources li { overflow-wrap: anywhere; }

body .inside-right-sidebar .bts-latest { padding: 0; }
@media (min-width: 769px) { body.single .inside-right-sidebar .bts-latest { position: sticky; top: 16px; } }

/* Archive cards: keep GP defaults but tidy */
.archive .page-header .page-title, .search .page-header .page-title { color: var(--bts-navy); border-bottom: 3px solid var(--bts-gold); padding-bottom: 8px; }
body .entry-title a { color: var(--bts-navy); }

/* ---------- Footer ---------- */
body .site-footer, body .footer-bar { background: var(--bts-navy); }
.bts-footer { background: var(--bts-navy); color: #cfd8e6; border-top: 4px solid var(--bts-gold); }
.bts-footer__inner { max-width: 1200px; margin: 0 auto; padding: 36px 20px 28px; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bts-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; } .bts-footer__disclaimer, .bts-footer__copy { grid-column: 1 / -1; } }
.bts-footer__brand { font-size: 26px; font-weight: 900; text-transform: uppercase; }
.bts-footer h2 { color: var(--bts-gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.bts-footer ul { list-style: none; margin: 0; padding: 0; }
.bts-footer li { margin: 0 0 6px; }
.bts-footer a { color: #fff; text-decoration: none; }
.bts-footer a:hover { color: var(--bts-gold); text-decoration: underline; }
.bts-footer__disclaimer { font-size: 14px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; margin: 0; }
.bts-footer__copy { font-size: 13px; opacity: .7; margin: 0; }

/* ---------- Pages ---------- */
body.page:not(.home) .entry-title { color: var(--bts-navy); }
