/*
Theme Name: Superettan Tabell
Theme URI: https://superettantabell.se/
Author: Superettan Tabell
Author URI: https://superettantabell.se/
Description: Native WordPress theme for Superettan news, fixtures, standings, statistics, and SportMonks-powered football data.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: superettantabell
*/

/* WordPress-only compatibility styles. The main design system is loaded from
   the compiled Vite/Tailwind asset in dist/client/assets. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

.screen-reader-text:focus {
	background-color: #fff;
	clip: auto;
	clip-path: none;
	color: #111;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 8px;
	line-height: normal;
	padding: 12px 16px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

body {
	overflow-x: hidden;
}

.admin-bar .st-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .st-site-header {
		top: 46px;
	}
}


.st-mobile-menu[hidden] {
	display: none;
}

.st-desktop-nav .st-primary-menu {
	align-items: center;
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-desktop-nav .st-primary-menu > .menu-item {
	list-style: none;
}

.st-desktop-nav .menu-item-has-children > a::after {
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	content: '';
	display: inline-block;
	height: 0;
	margin-left: 5px;
	opacity: 0.6;
	vertical-align: middle;
	width: 0;
}

.st-mobile-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-mobile-menu .menu-item,
.st-mobile-nav-list > .menu-item {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* ── Lag dropdown – 2-column grid for 16 teams (desktop only) ── */
@media (min-width: 1024px) {
	.st-lag-sub-menu {
		grid-template-columns: 1fr 1fr;
		min-width: 340px;
	}

	.st-site-header .menu-item:hover > .st-lag-sub-menu,
	.st-site-header .menu-item:focus-within > .st-lag-sub-menu {
		display: grid;
	}
}

.st-site-header .menu-item {
	position: relative;
}

.st-site-header .menu-item > a {
	align-items: center;
	color: color-mix(in oklab, var(--foreground) 70%, transparent);
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.5rem 0.75rem;
	transition: color 160ms ease, background-color 160ms ease;
}

.st-site-header .menu-item > a:hover,
.st-site-header .current-menu-item > a,
.st-site-header .current-menu-ancestor > a {
	color: var(--accent);
}

.st-site-header .sub-menu {
	background: var(--navy);
	border: 1px solid color-mix(in oklab, white 10%, transparent);
	border-radius: 0.375rem;
	box-shadow: 0 12px 30px color-mix(in oklab, black 25%, transparent);
	display: none;
	left: 0;
	min-width: 220px;
	padding: 0.25rem;
	position: absolute;
	top: 100%;
	z-index: 50;
}

.st-desktop-nav .menu-item:hover > .sub-menu,
.st-desktop-nav .menu-item:focus-within > .sub-menu {
	display: block;
}

.st-site-header .sub-menu a {
	border-radius: 0.25rem;
	display: block;
	white-space: nowrap;
}

.st-site-header .sub-menu a:hover {
	background: color-mix(in oklab, white 5%, transparent);
}

.st-mobile-menu > a,
.st-mobile-nav-link,
.st-mobile-menu .menu-item > a,
.st-mobile-menu .sub-menu .menu-item > a {
	border-radius: 0.375rem;
	color: var(--foreground);
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25rem;
	padding: 0.625rem 0.75rem;
}

.st-site-header .st-mobile-menu .menu-item > a,
.st-site-header .st-mobile-menu .current-menu-item > a,
.st-site-header .st-mobile-menu .current-menu-ancestor > a {
	color: var(--foreground);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25rem;
}

.st-mobile-menu .sub-menu {
	border: 0;
	box-shadow: none;
	display: none;
	margin-left: 0;
	padding: 0;
	position: static;
}

.st-mobile-menu .sub-menu.is-open {
	display: block;
}

.st-mobile-item-row {
	align-items: center;
	display: flex;
}

.st-mobile-item-row > a {
	flex: 1;
}

.st-site-header .st-mobile-menu > a,
.st-site-header .st-mobile-menu .menu-item > a,
.st-site-header .st-mobile-menu .sub-menu .menu-item > a,
.st-site-header .st-mobile-nav-link {
	color: var(--foreground);
	display: block;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.25rem;
	padding: 0.625rem 0.75rem;
}

.st-sub-toggle {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	opacity: 0.5;
	padding: 0.5rem 0.75rem;
	transition: opacity 160ms ease;
}

.st-sub-toggle:hover {
	opacity: 1;
}

.st-sub-toggle svg {
	display: block;
	transition: transform 200ms ease;
}

.st-sub-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.st-wp-content img {
	height: auto;
	max-width: 100%;
}

/* ── Article typography (replaces missing @tailwindcss/typography) ─── */
.st-wp-content h2 {
	color: var(--foreground);
	font-family: var(--font-display, sans-serif);
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin-bottom: 0.875rem;
	margin-top: 2.5rem;
}

.st-wp-content h3 {
	color: var(--foreground);
	font-family: var(--font-display, sans-serif);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
	margin-bottom: 0.625rem;
	margin-top: 2rem;
}

.st-wp-content h4 {
	color: var(--foreground);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 0.5rem;
	margin-top: 1.5rem;
}

.st-wp-content p {
	color: color-mix(in oklab, var(--foreground) 85%, transparent);
	line-height: 1.75;
	margin-bottom: 1rem;
}

.st-wp-content ul,
.st-wp-content ol {
	margin-bottom: 1rem;
	margin-top: 0.5rem;
	padding-left: 1.5rem;
}

.st-wp-content ul {
	list-style: disc;
}

.st-wp-content ol {
	list-style: decimal;
}

.st-wp-content li {
	color: color-mix(in oklab, var(--foreground) 85%, transparent);
	line-height: 1.7;
	margin-bottom: 0.375rem;
}

.st-wp-content hr {
	border: none;
	border-top: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
	margin: 2.5rem 0;
}

.st-wp-content table {
	border-collapse: collapse;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	margin-top: 1rem;
	width: 100%;
}

.st-wp-content th {
	background: color-mix(in oklab, var(--foreground) 6%, transparent);
	border: 1px solid color-mix(in oklab, var(--foreground) 14%, transparent);
	color: var(--foreground);
	font-weight: 600;
	padding: 0.5rem 0.875rem;
	text-align: left;
}

.st-wp-content td {
	border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
	color: color-mix(in oklab, var(--foreground) 80%, transparent);
	padding: 0.5rem 0.875rem;
	vertical-align: top;
}

.st-wp-content nav {
	background: color-mix(in oklab, var(--foreground) 4%, transparent);
	border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
	border-radius: 0.5rem;
	margin-bottom: 2rem;
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
}

.st-wp-content nav p {
	color: var(--foreground);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
}

.st-wp-content nav ul,
.st-wp-content nav ol {
	margin-top: 0;
	padding-left: 1.25rem;
}

.st-wp-content nav li {
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

.st-wp-content nav a {
	color: color-mix(in oklab, var(--foreground) 65%, transparent);
	text-decoration: none;
	transition: color 120ms ease;
}

.st-wp-content nav a:hover {
	color: var(--accent);
}

footer .menu-item > a {
	color: color-mix(in oklab, var(--foreground) 80%, transparent);
	display: inline-block;
	font-size: 0.875rem;
}

footer .menu-item > a:hover {
	color: var(--foreground);
}

.st-wp-content iframe {
	max-width: 100%;
}

.st-wp-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.st-wp-content .alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.st-wp-content .alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.st-reveal {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 260ms ease, transform 260ms ease;
}

.st-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Table of Contents plugin overrides (Easy TOC / Rank Math) ── */
#ez-toc-container,
.ez-toc-container-direction,
.rank-math-toc,
.wp-block-rank-math-toc-block {
	background: color-mix(in oklab, var(--foreground) 4%, transparent) !important;
	border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent) !important;
	border-radius: 0.5rem !important;
	box-shadow: none !important;
	color: var(--foreground) !important;
}

#ez-toc-container p.ez-toc-title,
.rank-math-toc h5,
.wp-block-rank-math-toc-block h2 {
	color: var(--foreground) !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
}

#ez-toc-container ul,
#ez-toc-container ol,
.rank-math-toc ul,
.rank-math-toc ol {
	list-style: decimal !important;
	padding-left: 1.25rem !important;
}

#ez-toc-container ul li,
#ez-toc-container ol li,
.rank-math-toc li {
	margin-bottom: 0.25rem !important;
}

#ez-toc-container ul li a,
#ez-toc-container ol li a,
.rank-math-toc a,
.wp-block-rank-math-toc-block a {
	color: color-mix(in oklab, var(--foreground) 65%, transparent) !important;
	text-decoration: none !important;
}

#ez-toc-container ul li a:hover,
#ez-toc-container ol li a:hover,
.rank-math-toc a:hover {
	color: var(--accent) !important;
}

/* Toggle button */
#ez-toc-container .ez-toc-toggle,
#ez-toc-container nav.ez-toc-wnd-fixed {
	background: transparent !important;
	border-color: color-mix(in oklab, var(--foreground) 12%, transparent) !important;
	color: var(--foreground) !important;
}
