/**
 * Sport & State — main stylesheet.
 * Mobile-first. CSS custom properties for the brand palette.
 * Headings: Oswald (condensed news). Body: Inter.
 */

/* ============================================================
   1. Custom properties / tokens
   ============================================================ */
:root {
	--navy: #06254b;
	--navy-700: #0a3266;
	--red: #b11e24;
	--red-700: #8f181d;
	--white: #ffffff;
	--bg: #f5f5f5;
	--text: #222222;
	--muted: #5a5a5a;
	--border: #e2e2e2;
	--border-strong: #cfcfcf;

	--font-head: "Oswald", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--container: 1200px;
	--gap: 1.5rem;
	--radius: 4px;
	--shadow: 0 1px 3px rgba(6, 37, 75, 0.08), 0 1px 2px rgba(6, 37, 75, 0.06);

	--focus: 3px solid var(--red);
}

/* ============================================================
   2. Reset / base
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
picture,
iframe,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--navy);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--red);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	color: var(--navy);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.2em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.25em;
	border-left: 4px solid var(--red);
	font-style: italic;
	color: var(--muted);
}

code, pre {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	overflow: auto;
	padding: 1rem;
	background: #0d1b2a;
	color: #f5f5f5;
	border-radius: var(--radius);
}

hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 2rem 0;
}

/* ============================================================
   3. Accessibility helpers
   ============================================================ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.ss-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--navy);
	color: var(--white);
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 var(--radius) 0;
}

.ss-skip-link:focus {
	left: 0;
	color: var(--white);
	text-decoration: none;
}

:focus-visible {
	outline: var(--focus);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   4. Layout
   ============================================================ */
.ss-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 1rem;
}

.ss-main {
	padding-block: 1.5rem;
}

.ss-layout {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr;
}

/* ============================================================
   5. Top bar (ad / ticker)
   ============================================================ */
.ss-topbar {
	background: var(--navy);
	color: var(--white);
	padding: 0.4rem 0;
	border-bottom: 3px solid var(--red);
}

.ss-topbar--ad {
	text-align: center;
}

.ss-topbar .ss-ad { margin: 0; }

.ss-ticker {
	display: flex;
	align-items: center;
	gap: 1rem;
	overflow: hidden;
}

.ss-ticker__label {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	background: var(--red);
	color: var(--white);
	padding: 0.15rem 0.6rem;
	border-radius: var(--radius);
	flex: none;
	font-size: 0.85rem;
}

.ss-ticker__track {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	font-size: 0.9rem;
}

/* ============================================================
   6. Header
   ============================================================ */
.ss-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: relative;
}

.ss-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.75rem;
}

.ss-logo__img {
	max-height: 56px;
	width: auto;
}

.ss-logo--text {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
	color: var(--navy);
}

.ss-logo--text:hover { color: var(--red); text-decoration: none; }

.ss-header__logo-mobile { display: none; }

.ss-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Social icons */
.ss-social {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	color: var(--navy);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ss-social__link:hover,
.ss-social__link:focus {
	background: var(--navy);
	color: var(--white);
	text-decoration: none;
}

.ss-social svg { width: 1.15rem; height: 1.15rem; }

/* Buttons in header */
.ss-search-toggle,
.ss-menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy);
	cursor: pointer;
}

.ss-search-toggle:hover,
.ss-menu-toggle:hover {
	background: var(--navy);
	color: var(--white);
}

.ss-search-toggle svg,
.ss-menu-toggle svg { width: 1.35rem; height: 1.35rem; }

.ss-menu-toggle__close { display: none; }
.ss-nav-open .ss-menu-toggle__open { display: none; }
.ss-nav-open .ss-menu-toggle__close { display: inline-flex; }

/* Primary nav */
.ss-primary-nav { position: static; }

.ss-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.25rem;
}

.ss-menu a {
	display: block;
	padding: 0.5rem 0.85rem;
	font-family: var(--font-head);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--navy);
	border-radius: var(--radius);
}

.ss-menu a:hover,
.ss-menu .current-menu-item > a {
	background: var(--bg);
	color: var(--red);
	text-decoration: none;
}

.ss-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Header search panel */
.ss-header-search {
	border-top: 1px solid var(--border);
	background: var(--bg);
	padding-block: 1rem;
}

.ss-header-search[hidden] { display: none; }

/* Search form */
.ss-search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 640px;
}

.ss-search-form__field {
	flex: 1;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	font: inherit;
	color: var(--text);
	background: var(--white);
}

.ss-search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.85rem;
	padding: 0 0.85rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--red);
	color: var(--white);
	cursor: pointer;
}

.ss-search-form__submit:hover { background: var(--red-700); }
.ss-search-form__submit svg { width: 1.2rem; height: 1.2rem; }

/* ============================================================
   7. Buttons
   ============================================================ */
.ss-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 1.4rem;
	font-family: var(--font-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--red);
	color: var(--white);
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ss-btn:hover,
.ss-btn:focus {
	background: var(--red-700);
	color: var(--white);
	text-decoration: none;
}

.ss-btn svg { width: 1.1rem; height: 1.1rem; }

.ss-btn--center {
	display: flex;
	width: fit-content;
	margin: 2rem auto 0;
}

/* ============================================================
   8. Ads
   ============================================================ */
.ss-ad {
	margin: 0 0 var(--gap);
	text-align: center;
}

.ss-ad img { margin-inline: auto; }

.ss-ad--banner { margin: 0; }

.ss-ad--sidebar { background: var(--white); padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); }

/* ============================================================
   9. Featured / hero
   ============================================================ */
.ss-hero {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin-bottom: var(--gap);
}

.ss-hero__media {
	position: relative;
	display: block;
}

.ss-hero__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ss-hero__body {
	padding: 1.25rem 1.5rem 1.75rem;
}

.ss-hero__title {
	font-size: clamp(1.6rem, 3.5vw, 2.5rem);
	margin: 0.5rem 0;
}

.ss-hero__title a { color: var(--navy); }
.ss-hero__title a:hover { color: var(--red); text-decoration: none; }

.ss-hero__excerpt {
	font-size: 1.05rem;
	color: var(--muted);
	margin-bottom: 0;
}

/* Play badge for video items */
.ss-hero__play,
.ss-card__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 64px;
	height: 64px;
	background: rgba(177, 30, 36, 0.92);
	border-radius: 50%;
	pointer-events: none;
}

.ss-card__play { width: 44px; height: 44px; }

.ss-hero__play::after,
.ss-card__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}

.ss-card__play::after { border-width: 7px 0 7px 12px; }

/* ============================================================
   10. Section headings
   ============================================================ */
.ss-section-title {
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border-bottom: 3px solid var(--red);
	padding-bottom: 0.35rem;
	margin: 0 0 1.25rem;
}

/* ============================================================
   11. Story list / cards (Thumbnail | Headline/Excerpt/Meta)
   ============================================================ */
.ss-stories { display: grid; gap: 1.25rem; }

.ss-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem;
	box-shadow: var(--shadow);
}

.ss-card__media {
	position: relative;
	display: block;
}

.ss-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--radius);
}

.ss-card__title {
	font-size: 1.25rem;
	margin: 0 0 0.4rem;
}

.ss-card__title a { color: var(--navy); }
.ss-card__title a:hover { color: var(--red); text-decoration: none; }

.ss-card__excerpt {
	color: var(--muted);
	margin: 0 0 0.6rem;
	font-size: 0.97rem;
}

/* Meta */
.ss-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.82rem;
	color: var(--muted);
}

.ss-meta__cat {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	font-size: 0.78rem;
	color: var(--white);
	background: var(--red);
	padding: 0.15rem 0.55rem;
	border-radius: var(--radius);
}

.ss-meta__cat:hover { background: var(--red-700); color: var(--white); text-decoration: none; }

.ss-meta__date::before,
.ss-meta__author::before {
	content: "•";
	margin-right: 0.6rem;
	color: var(--border-strong);
}

/* No leading separator on the first meta item. */
.ss-meta > :first-child::before { content: none; margin-right: 0; }

/* ============================================================
   12. Homepage video area
   ============================================================ */
.ss-video-section { margin-bottom: var(--gap); }

.ss-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--radius);
	overflow: hidden;
}

.ss-video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ============================================================
   13. Sidebar
   ============================================================ */
.ss-sidebar > * { margin-bottom: var(--gap); }
.ss-sidebar > *:last-child { margin-bottom: 0; }

.ss-widget {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem;
}

.ss-widget__title,
.widget-title {
	font-size: 1.2rem;
	text-transform: uppercase;
	border-bottom: 2px solid var(--red);
	padding-bottom: 0.35rem;
	margin: 0 0 0.85rem;
}

.ss-recent-posts__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-recent-posts__item {
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--border);
}

.ss-recent-posts__item:last-child { border-bottom: 0; padding-bottom: 0; }

.ss-recent-posts__link {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.02rem;
	display: block;
	color: var(--navy);
}

.ss-recent-posts__link:hover { color: var(--red); }

.ss-recent-posts__date {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	margin-top: 0.2rem;
}

/* ============================================================
   14. Single post
   ============================================================ */
.ss-article { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }

.ss-article__header { margin-bottom: 1.25rem; }

.ss-article__title { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 0.5rem 0; }

.ss-article__media { margin: 1.25rem 0; }

.ss-article__media img { width: 100%; border-radius: var(--radius); }

.ss-article__content {
	font-size: 1.08rem;
	line-height: 1.75;
}

.ss-article__content img { border-radius: var(--radius); margin-block: 1rem; }

.ss-article__content h2,
.ss-article__content h3 { margin-top: 1.6em; }

/* Breadcrumbs */
.ss-breadcrumbs {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 0.75rem;
}

.ss-breadcrumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
}

.ss-breadcrumbs li::after { content: "/"; margin-left: 0.4rem; color: var(--border-strong); }
.ss-breadcrumbs li:last-child::after { content: none; }

/* Share */
.ss-share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
	padding: 1rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.ss-share__label {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-weight: 600;
	color: var(--navy);
}

.ss-share__list {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ss-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--navy);
	color: var(--white);
	border: 0;
	cursor: pointer;
}

.ss-share__link:hover { background: var(--red); color: var(--white); }
.ss-share__link svg { width: 1.15rem; height: 1.15rem; }
.ss-share__copy.is-copied { background: #2e7d32; }

/* Related posts */
.ss-related { margin-top: 2rem; }

.ss-related__grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

.ss-related__card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.ss-related__card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ss-related__body { padding: 0.85rem 1rem; }
.ss-related__title { font-size: 1.05rem; margin: 0; }

/* ============================================================
   15. Search results / archive list
   ============================================================ */
.ss-page-header { margin-bottom: 1.5rem; }
.ss-page-header__title { margin: 0; }
.ss-page-header__desc { color: var(--muted); margin: 0.5rem 0 0; }

.ss-results { list-style: none; margin: 0; padding: 0; }

.ss-result {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem;
	margin-bottom: 1rem;
}

.ss-result__title { font-size: 1.3rem; margin: 0 0 0.35rem; }
.ss-result__excerpt { color: var(--muted); margin: 0.5rem 0 0; }

/* ============================================================
   16. Pagination
   ============================================================ */
.ss-pagination { margin-top: 2rem; }

.ss-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.ss-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--navy);
	font-family: var(--font-head);
	font-weight: 500;
}

.ss-pagination .page-numbers:hover { background: var(--bg); text-decoration: none; }

.ss-pagination .page-numbers.current {
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy);
}

/* ============================================================
   17. 404
   ============================================================ */
.ss-404 { text-align: center; padding: 2rem 0; }
.ss-404__code { font-size: clamp(4rem, 12vw, 8rem); color: var(--red); margin: 0; line-height: 1; }

/* ============================================================
   18. Footer
   ============================================================ */
.ss-footer {
	background: var(--navy);
	color: var(--white);
	margin-top: 2.5rem;
}

.ss-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-block: 2rem;
}

.ss-footer a { color: var(--white); }
.ss-footer a:hover { color: #ffd3d5; }

.ss-footer .ss-logo__img { max-height: 56px; filter: brightness(0) invert(1); }
.ss-footer .ss-logo--text { color: var(--white); }

.ss-footer .ss-social__link { color: var(--white); }
.ss-footer .ss-social__link:hover { background: var(--red); color: var(--white); }

.ss-footer__nav {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ss-footer-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
}

.ss-footer-menu a {
	font-family: var(--font-head);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.92rem;
}

.ss-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	padding-block: 1rem;
	font-size: 0.85rem;
}

.ss-copyright { margin: 0; color: rgba(255, 255, 255, 0.8); }

/* ============================================================
   19. Responsive — tablet & up
   ============================================================ */
@media (min-width: 600px) {
	.ss-card {
		grid-template-columns: 200px 1fr;
		align-items: start;
	}
	.ss-related__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   20. Responsive — desktop (content + sidebar)
   ============================================================ */
@media (min-width: 992px) {
	.ss-layout--with-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
	}

	.ss-card { grid-template-columns: 260px 1fr; }
}

/* ============================================================
   21. Mobile navigation (below 992px)
   ============================================================ */
@media (max-width: 991px) {
	.ss-header__logo-desktop { display: none; }
	.ss-header__logo-mobile { display: inline-flex; }
	.ss-header__logo-mobile .ss-logo__img { max-height: 44px; }

	.ss-header .ss-social--header { display: none; }

	.ss-primary-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--white);
		border-top: 1px solid var(--border);
		border-bottom: 3px solid var(--red);
		box-shadow: var(--shadow);
		z-index: 50;
		display: none;
	}

	.ss-nav-open .ss-primary-nav { display: block; }

	.ss-menu {
		flex-direction: column;
		gap: 0;
		padding: 0.5rem 0;
	}

	.ss-menu a {
		padding: 0.85rem 1.25rem;
		border-radius: 0;
		border-bottom: 1px solid var(--border);
	}

	.ss-menu .sub-menu a { padding-left: 2.5rem; }
}

@media (min-width: 992px) {
	.ss-menu-toggle { display: none; }
}
