/*
Theme Name: OstseeCup Classic
Theme URI: https://ostseecup2.de
Author: OstseeCup
Description: A lightweight Twenty Twenty-Five child theme with a classic sailing-series layout inspired by the previous OstseeCup site.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
Template: twentytwentyfive
Text Domain: ostseecup-classic
*/

:root {
	--osc-blue: #0a4f86;
	--osc-blue-dark: #083c66;
	--osc-blue-light: #2b6b9c;
	--osc-sand: #f4f2ec;
	--osc-paper: #fff;
	--osc-border: #d8d5cb;
	--osc-heading: #154566;
}

body {
	background: var(--osc-sand) url("images/bg.jpg") top right repeat-y;
	color: #1f2e3a;
	font-size: 15px;
	line-height: 1.4;
}

.osc-site-header {
	background: linear-gradient(180deg, var(--osc-blue-light), var(--osc-blue-dark));
	color: #fff;
	border-bottom: 4px solid #e2b253;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

body {
	padding-top: 88px;
}

body.admin-bar {
	padding-top: 120px;
}

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

@media (max-width: 782px) {
	body.admin-bar {
		padding-top: 134px;
	}

	body.admin-bar .osc-site-header {
		top: 46px;
	}
}

.osc-site-header a,
.osc-site-header .wp-block-site-title a {
	color: #fff;
	text-decoration: none;
}

.osc-site-header .wp-block-site-title {
	margin: 0;
	line-height: 1.1;
}

.osc-site-header .wp-block-site-tagline {
	opacity: 0.92;
	font-size: 0.95rem;
	margin-top: 0.15rem;
}

.osc-site-header .wp-block-navigation a {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* Wider dropdowns so long regatta names do not break into many lines. */
@media (min-width: 861px) {
	.osc-site-header .wp-block-navigation .wp-block-navigation__submenu-container {
		min-width: 30rem;
		max-width: 38rem;
	}

	.osc-site-header .wp-block-navigation .wp-block-navigation__submenu-container a {
		white-space: normal;
		line-height: 1.25;
	}

	/* Force wider panel specifically for the Regatten dropdown. */
	.osc-site-header .wp-block-navigation .osc-menu-regatten > .wp-block-navigation__submenu-container {
		min-width: 22rem !important;
		max-width: 26rem !important;
	}

	/* Same width tuning for the Yardstick dropdown. */
	.osc-site-header .wp-block-navigation .osc-menu-yardstick > .wp-block-navigation__submenu-container {
		min-width: 22rem !important;
		max-width: 26rem !important;
	}
}

.osc-main-wrap {
	max-width: 1500px;
	margin: 0 auto;
	padding: 0.7rem;
}

.osc-layout-surface {
	background: var(--osc-paper);
	border: 1px solid #cfcabf;
	box-shadow: 0 1px 2px rgb(0 0 0 / 6%);
	padding: 0.65rem;
}

.osc-sidebar {
	background: #f7f6f1;
	border: 1px solid var(--osc-border);
	padding: 0.65rem;
}

.osc-sidebar .wp-block-heading {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	color: var(--osc-heading);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.osc-sidebar .wp-block-search {
	margin-bottom: 0;
}

.osc-sidebox {
	background: #fff;
	border: 1px solid #dbd7cc;
	padding: 0.7rem;
	margin-bottom: 0.7rem;
}

.osc-sidebox .wp-block-navigation {
	font-size: 0.92rem;
}

.osc-sidebox .wp-block-page-list a,
.osc-sidebox .wp-block-navigation-item__content {
	text-decoration: none;
}

.osc-sidebar .wp-block-query .wp-block-post {
	padding: 0.35rem 0;
	border-bottom: 1px solid #ece8dc;
}

.osc-content {
	background: var(--osc-paper);
	border: 1px solid var(--osc-border);
	padding: 0.8rem 0.95rem;
}

.osc-content .osc-section-head {
	margin: 0 0 0.8rem;
	padding: 0 0 0.5rem;
	border-bottom: 2px solid #e5dfcf;
	color: var(--osc-heading);
	font-size: 1.08rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.osc-content .wp-block-post {
	padding: 0.9rem 0;
	border-bottom: 1px solid #e8e5dc;
}

.osc-content .wp-block-post:last-child {
	border-bottom: 0;
}

.osc-content .wp-block-post-title a {
	text-decoration: none;
	color: var(--osc-heading);
}

.osc-content .wp-block-post-title {
	margin-top: 0.25rem;
	margin-bottom: 0.35rem;
	font-size: 1.24rem;
}

.osc-content .wp-block-post-date {
	color: #63727f;
	font-size: 0.85rem;
	font-weight: 600;
}

/* Put sidebar column on the right on desktop/tablet. */
@media (min-width: 861px) {
	.osc-main-wrap .wp-block-columns {
		flex-direction: row-reverse;
	}
}

.osc-footer {
	margin-top: 0.8rem;
	background: #f0ede5;
	border-top: 1px solid var(--osc-border);
	font-size: 0.9rem;
	color: #5a6470;
}

/* Historical winners page: make legacy tables use available width */
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table {
	width: 100% !important;
	max-width: none !important;
	table-layout: fixed;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td p,
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th p {
	margin: 0;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td:nth-child(1),
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th:nth-child(1) {
	width: 12%;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td:nth-child(2),
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th:nth-child(2) {
	width: 30%;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td:nth-child(3),
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th:nth-child(3) {
	width: 33%;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td:nth-child(4),
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th:nth-child(4) {
	width: 25%;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td,
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th {
	white-space: normal;
	word-break: break-word;
}

/* Historical winners: sectioned per class with same table look as Yardstick lists. */
body.page-id-16 .osc-content .wp-block-post-content h2 {
	margin: 0 0 0.9rem;
}

body.page-id-16 .osc-content .wp-block-post-content .osc-winner-class {
	margin: 0 0 1.15rem;
	padding: 0.45rem 0.5rem 0.55rem;
	border: 1px solid #ddd6c4;
	background: #faf8f2;
}

body.page-id-16 .osc-content .wp-block-post-content .osc-winner-head {
	margin-top: 0;
	margin-bottom: 0.55rem;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table {
	width: 100% !important;
	max-width: none !important;
	table-layout: fixed;
	border-collapse: collapse;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table td,
body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th {
	padding: 0.35rem 0.4rem !important;
	border: 1px solid #e2ddcf !important;
	vertical-align: top !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: 0.92rem !important;
	line-height: 1.3 !important;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table th {
	background: #eef3f8;
	color: #2f4a5d;
	font-weight: 700;
}

body.page-id-16 .osc-content .wp-block-post-content table.osc-winners-table tbody tr:nth-child(even) td {
	background: #fcfbf8;
}

/* Regatta detail pages: key/value 2-column facts layout. */
.parent-pageid-24 .osc-content .osc-regatta-facts {
	display: block;
}

.parent-pageid-24 .osc-content .osc-fact-row {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 0.35rem 1rem;
	margin-bottom: 0.5rem;
	padding-bottom: 0.45rem;
	border-bottom: 1px solid #ece8dc;
}

.parent-pageid-24 .osc-content .osc-fact-label {
	font-weight: 700;
	color: #2f4a5d;
}

.parent-pageid-24 .osc-content .osc-fact-value {
	min-width: 0;
}

.parent-pageid-24 .osc-content .osc-fact-value p {
	margin: 0 0 0.4rem;
}

/* Regatten overview table layout (similar to legacy site). */
body.page-id-24 .osc-content .osc-regatten-overview {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

body.page-id-24 .osc-content .osc-regatten-overview th,
body.page-id-24 .osc-content .osc-regatten-overview td {
	padding: 0.45rem 0.5rem;
	border-bottom: 1px solid #e6e1d5;
	vertical-align: top;
}

body.page-id-24 .osc-content .osc-regatten-overview thead th {
	background: #f4f1e8;
	color: #2f4a5d;
	font-size: 0.88rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

body.page-id-24 .osc-content .osc-regatten-overview th:nth-child(1),
body.page-id-24 .osc-content .osc-regatten-overview td:nth-child(1) {
	width: 28%;
	font-weight: 600;
}

body.page-id-24 .osc-content .osc-regatten-overview th:nth-child(2),
body.page-id-24 .osc-content .osc-regatten-overview td:nth-child(2) {
	width: 72%;
}

body.page-id-24 .osc-content .osc-regatten-overview .osc-date-to {
	display: inline-block;
	margin-top: 0.1rem;
	color: #556673;
}

/* Yardstick: Ausgleichs- bzw. Verguetungssystem readability */
body.page-id-33 .osc-content table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.95rem;
}

body.page-id-33 .osc-content td,
body.page-id-33 .osc-content th {
	padding: 0.4rem 0.45rem;
	border: 1px solid #e3ded1;
	vertical-align: top;
}

body.page-id-33 .osc-content tr.sectiontableentry2 td {
	background: #eef3f8;
	font-weight: 700;
}

body.page-id-33 .osc-content tr.sectiontableheader td {
	background: #f7f3e9;
	font-weight: 700;
	color: #2f4a5d;
}

body.page-id-33 .osc-content tr:nth-child(even):not(.sectiontableentry2):not(.sectiontableheader) td {
	background: #fcfbf8;
}

body.page-id-33 .osc-content td:nth-child(1) {
	width: 28%;
}

body.page-id-33 .osc-content td:nth-child(2) {
	width: 56%;
}

body.page-id-33 .osc-content td:nth-child(3) {
	width: 16%;
	text-align: center;
	font-weight: 700;
}

/* Yardstick: Neue Zertifikate table clarity */
body.page-id-34 .osc-content table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.95rem;
}

body.page-id-34 .osc-content th,
body.page-id-34 .osc-content td {
	padding: 0.42rem 0.45rem;
	border: 1px solid #e2ddcf;
	vertical-align: top;
}

body.page-id-34 .osc-content thead th,
body.page-id-34 .osc-content tr:first-child th {
	background: #eef3f8;
	color: #2f4a5d;
	font-weight: 700;
}

body.page-id-34 .osc-content tr:nth-child(even) td {
	background: #fcfbf8;
}

body.page-id-34 .osc-content th:nth-child(1),
body.page-id-34 .osc-content td:nth-child(1) {
	width: 21%;
}

body.page-id-34 .osc-content th:nth-child(2),
body.page-id-34 .osc-content td:nth-child(2) {
	width: 14%;
}

body.page-id-34 .osc-content th:nth-child(3),
body.page-id-34 .osc-content td:nth-child(3) {
	width: 33%;
}

body.page-id-34 .osc-content th:nth-child(4),
body.page-id-34 .osc-content td:nth-child(4) {
	width: 10%;
	text-align: center;
}

body.page-id-34 .osc-content th:nth-child(5),
body.page-id-34 .osc-content td:nth-child(5),
body.page-id-34 .osc-content th:nth-child(6),
body.page-id-34 .osc-content td:nth-child(6) {
	width: 11%;
	text-align: center;
	font-weight: 700;
}

/* Yardstick: Zusatzliste Sportboote clarity (single-column list table). */
body.page-id-35 .osc-content table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 0.95rem;
}

body.page-id-35 .osc-content td {
	padding: 0.4rem 0.5rem;
	border: 1px solid #e2ddcf;
	vertical-align: top;
}

body.page-id-35 .osc-content tr:first-child td {
	background: #eef3f8;
	color: #2f4a5d;
	font-weight: 700;
}

body.page-id-35 .osc-content tr:nth-child(even):not(:first-child) td {
	background: #fcfbf8;
}

/* Yardstick: Revierliste + ONE OFF list - normalize mixed Excel inline typography */
body.page-id-30 .osc-content table,
body.page-id-31 .osc-content table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

body.page-id-30 .osc-content td,
body.page-id-30 .osc-content th,
body.page-id-31 .osc-content td,
body.page-id-31 .osc-content th {
	padding: 0.35rem 0.4rem !important;
	border: 1px solid #e2ddcf !important;
	vertical-align: top !important;
	font-family: var(--wp--preset--font-family--sans) !important;
	font-size: 0.92rem !important;
	line-height: 1.3 !important;
}

/* Normalize nested spans/divs that carry conflicting inline sizes. */
body.page-id-30 .osc-content td *,
body.page-id-30 .osc-content th *,
body.page-id-31 .osc-content td *,
body.page-id-31 .osc-content th * {
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	font-weight: inherit !important;
	margin: 0 !important;
}

/* Data rows should not randomly appear bold. */
body.page-id-30 .osc-content tbody tr:not(:first-child) td,
body.page-id-31 .osc-content tbody tr:not(:first-child) td {
	font-weight: 400 !important;
}

/* Keep only header row emphasized. */
body.page-id-30 .osc-content tbody tr:first-child td,
body.page-id-31 .osc-content tbody tr:first-child td {
	background: #eef3f8;
	color: #2f4a5d;
	font-weight: 700 !important;
}

body.page-id-30 .osc-content tbody tr:nth-child(even):not(:first-child) td,
body.page-id-31 .osc-content tbody tr:nth-child(even):not(:first-child) td {
	background: #fcfbf8;
}

/* Additional Ausschreibungen: apply same clean list-table styling. */
body.page-id-139 .osc-content table.osc-award-table,
body.page-id-140 .osc-content table.osc-award-table,
body.page-id-141 .osc-content table.osc-award-table,
body.page-id-142 .osc-content table.osc-award-table,
body.page-id-143 .osc-content table.osc-award-table,
body.page-id-144 .osc-content table.osc-award-table,
body.page-id-145 .osc-content table.osc-award-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin-top: 0.6rem;
}

body.page-id-139 .osc-content table.osc-award-table td,
body.page-id-139 .osc-content table.osc-award-table th,
body.page-id-140 .osc-content table.osc-award-table td,
body.page-id-140 .osc-content table.osc-award-table th,
body.page-id-141 .osc-content table.osc-award-table td,
body.page-id-141 .osc-content table.osc-award-table th,
body.page-id-142 .osc-content table.osc-award-table td,
body.page-id-142 .osc-content table.osc-award-table th,
body.page-id-143 .osc-content table.osc-award-table td,
body.page-id-143 .osc-content table.osc-award-table th,
body.page-id-144 .osc-content table.osc-award-table td,
body.page-id-144 .osc-content table.osc-award-table th,
body.page-id-145 .osc-content table.osc-award-table td,
body.page-id-145 .osc-content table.osc-award-table th {
	padding: 0.35rem 0.4rem;
	border: 1px solid #e2ddcf;
	vertical-align: top;
	font-size: 0.92rem;
	line-height: 1.3;
}

body.page-id-139 .osc-content table.osc-award-table th,
body.page-id-140 .osc-content table.osc-award-table th,
body.page-id-141 .osc-content table.osc-award-table th,
body.page-id-142 .osc-content table.osc-award-table th,
body.page-id-143 .osc-content table.osc-award-table th,
body.page-id-144 .osc-content table.osc-award-table th,
body.page-id-145 .osc-content table.osc-award-table th {
	background: #eef3f8;
	color: #2f4a5d;
	font-weight: 700;
}

body.page-id-139 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-140 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-141 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-142 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-143 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-144 .osc-content table.osc-award-table tbody tr:nth-child(even) td,
body.page-id-145 .osc-content table.osc-award-table tbody tr:nth-child(even) td {
	background: #fcfbf8;
}

@media (max-width: 960px) {
	.parent-pageid-24 .osc-content .osc-fact-row {
		grid-template-columns: 1fr;
	}

	body.page-id-24 .osc-content .osc-regatten-overview th,
	body.page-id-24 .osc-content .osc-regatten-overview td {
		font-size: 0.92rem;
	}
}

@media (max-width: 860px) {
	.osc-main-wrap {
		padding: 0.6rem;
	}

	.osc-layout-surface {
		padding: 0.5rem;
	}
}

.osc-post-boat {
	margin: 0.1rem 0 0.45rem;
	font-size: 0.84rem;
	color: #4f6070;
	font-weight: 600;
}

.osc-frontpage .osc-front-intro {
	margin-bottom: 1rem;
	padding: 0.75rem 0.85rem;
	background: #f7f4ec;
	border: 1px solid #ddd6c4;
}

.osc-auth-links {
	display: flex;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin-bottom: 0.9rem;
}

.osc-auth-link {
	display: inline-block;
	padding: 0.34rem 0.65rem;
	border: 1px solid #9fb0bf;
	background: #f8fbfe;
	color: #23445c;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
}

.osc-auth-link:hover,
.osc-auth-link:focus {
	background: #ecf4fb;
	border-color: #7f97ac;
}

.osc-auth-link-primary {
	background: #2e627f;
	border-color: #2e627f;
	color: #ffffff;
}

.osc-auth-link-primary:hover,
.osc-auth-link-primary:focus {
	background: #234f67;
	border-color: #234f67;
}

.osc-frontpage .osc-front-intro > *:first-child {
	margin-top: 0;
}

.osc-frontpage .osc-front-intro > *:last-child {
	margin-bottom: 0;
}

.osc-inline-edit-msg {
	margin: 0.8rem 0;
	padding: 0.5rem 0.7rem;
	border: 1px solid #9cc4a5;
	background: #eef8f0;
	color: #2a5b34;
	font-weight: 600;
}

.osc-inline-editor {
	margin-top: 1rem;
	border: 1px solid #d4cebf;
	background: #f8f6ef;
	padding: 0.45rem 0.7rem 0.7rem;
}

.osc-inline-editor > summary {
	cursor: pointer;
	font-weight: 700;
	color: #2f4a5d;
}

.osc-inline-editor-form {
	margin-top: 0.7rem;
}

.osc-edit-field {
	margin: 0 0 0.7rem;
}

.osc-edit-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.osc-edit-field textarea,
.osc-edit-field input[type="date"],
.osc-edit-field input[type="text"],
.osc-edit-field input[type="email"],
.osc-edit-field input[type="password"] {
	width: 100%;
	border: 1px solid #b9c5d1;
	padding: 0.4rem 0.45rem;
	font-size: 0.92rem;
	font-family: inherit;
}

.osc-edit-save {
	border: 1px solid #234f67;
	background: #2e627f;
	color: #fff;
	font-weight: 600;
	padding: 0.4rem 0.8rem;
	cursor: pointer;
}

.osc-edit-save:hover,
.osc-edit-save:focus {
	background: #234f67;
}

.osc-edit-remove {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.86rem;
	color: #5f6872;
}

.osc-edit-add-row,
.osc-edit-remove-row {
	border: 1px solid #9fb0bf;
	background: #f4f8fb;
	color: #23445c;
	padding: 0.3rem 0.6rem;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
}

.osc-edit-add-row:hover,
.osc-edit-add-row:focus,
.osc-edit-remove-row:hover,
.osc-edit-remove-row:focus {
	background: #e8f1f9;
}

.osc-edit-field-new {
	border: 1px dashed #c3ccd3;
	padding: 0.55rem;
	background: #fcfdfe;
}

.osc-front-news-editor {
	margin-bottom: 0.9rem;
}

.osc-front-news-manage {
	margin-bottom: 1rem;
}

.osc-front-news-manage h3 {
	margin: 0 0 0.5rem;
	color: #2f4a5d;
}

.osc-front-news-item {
	margin-bottom: 0.45rem;
}

.osc-news-meta {
	color: #5f6e7a;
	font-weight: 500;
	font-size: 0.9em;
}

.osc-front-news-delete-form {
	margin-top: 0.25rem;
}

.osc-mynews-filters {
	margin: 0 0 0.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.osc-mynews-filter {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border: 1px solid #b8c4ce;
	background: #f5f8fb;
	color: #2f4a5d;
	text-decoration: none;
	font-size: 0.86rem;
}

.osc-mynews-filter.is-active {
	background: #2e627f;
	border-color: #2e627f;
	color: #fff;
}

.osc-mynews-pagination {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.8rem;
}

.osc-mynews-page-link {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border: 1px solid #b8c4ce;
	background: #f5f8fb;
	color: #2f4a5d;
	text-decoration: none;
	font-size: 0.86rem;
}

.osc-mynews-page-info {
	color: #5f6e7a;
	font-size: 0.88rem;
}

.osc-yardstick-editor {
	margin-top: 1rem;
}

.osc-yardstick-table-wrap {
	overflow-x: auto;
	margin-bottom: 0.6rem;
}

.osc-yardstick-edit-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
}

.osc-yardstick-edit-table th,
.osc-yardstick-edit-table td {
	border: 1px solid #d7d1c2;
	padding: 0.2rem;
	vertical-align: top;
}

.osc-yardstick-edit-table textarea {
	width: 100%;
	min-height: 2rem;
	border: 1px solid #b9c5d1;
	padding: 0.25rem 0.3rem;
	font-size: 0.86rem;
	font-family: inherit;
	resize: vertical;
}

.osc-yardstick-row-actions {
	white-space: nowrap;
	width: 1%;
}

.osc-yardstick-restore-form {
	margin-top: 0.55rem;
	padding-top: 0.45rem;
	border-top: 1px dashed #c8c0ad;
}

/* Ergebnisse group pages: hide sidebar and use full content width. */
body.page-id-178 .osc-layout-surface .wp-block-columns,
body.page-id-179 .osc-layout-surface .wp-block-columns {
	display: block;
}

body.page-id-178 .osc-layout-surface .wp-block-columns > .wp-block-column:first-child,
body.page-id-179 .osc-layout-surface .wp-block-columns > .wp-block-column:first-child {
	display: none;
}

body.page-id-178 .osc-layout-surface .wp-block-columns > .wp-block-column.osc-content,
body.page-id-179 .osc-layout-surface .wp-block-columns > .wp-block-column.osc-content {
	flex-basis: 100% !important;
	width: 100%;
	max-width: none;
}

/* Ergebnisse group pages: roomier matrix and centered columns. */
body.page-id-178 .osc-content table.osc-overall-results,
body.page-id-179 .osc-content table.osc-overall-results {
	width: 100%;
	border-collapse: collapse;
	table-layout: auto;
	font-size: 0.92rem;
}

body.page-id-178 .osc-content table.osc-overall-results th,
body.page-id-178 .osc-content table.osc-overall-results td,
body.page-id-179 .osc-content table.osc-overall-results th,
body.page-id-179 .osc-content table.osc-overall-results td {
	padding: 0.38rem 0.42rem;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
}

body.page-id-178 .osc-content table.osc-overall-results thead tr:first-child th:nth-child(2),
body.page-id-178 .osc-content table.osc-overall-results tbody td:nth-child(2),
body.page-id-179 .osc-content table.osc-overall-results thead tr:first-child th:nth-child(2),
body.page-id-179 .osc-content table.osc-overall-results tbody td:nth-child(2) {
	text-align: left;
	min-width: 8.8rem;
	white-space: normal;
}

body.page-id-178 .osc-content table.osc-overall-results th:nth-child(3),
body.page-id-178 .osc-content table.osc-overall-results td:nth-child(3),
body.page-id-179 .osc-content table.osc-overall-results th:nth-child(3),
body.page-id-179 .osc-content table.osc-overall-results td:nth-child(3) {
	min-width: 5.5rem;
}

body.page-id-178 .osc-content table.osc-overall-results tbody tr:nth-child(odd) td,
body.page-id-179 .osc-content table.osc-overall-results tbody tr:nth-child(odd) td {
	background: #ffffff;
}

body.page-id-178 .osc-content table.osc-overall-results tbody tr:nth-child(even) td,
body.page-id-179 .osc-content table.osc-overall-results tbody tr:nth-child(even) td {
	background: #f3f5f7;
}

body.page-id-249 .osc-results-pdf-page {
	display: grid;
	gap: 1rem;
}

body.page-id-249 .osc-results-pdf-intro {
	margin: 0;
	color: #4d5d69;
}

body.page-id-249 .osc-results-pdf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	align-items: start;
}

body.page-id-249 .osc-results-pdf-card {
	border: 1px solid #d8d2c2;
	background: linear-gradient(180deg, #fdfbf6 0%, #f7f3e8 100%);
	padding: 0.8rem 0.9rem;
}

body.page-id-249 .osc-results-pdf-card h3 {
	margin: 0 0 0.55rem;
	font-size: 1rem;
	color: #2f4a5d;
}

body.page-id-249 .osc-results-pdf-years {
	display: flex;
	flex-wrap: wrap;
	gap: 0.38rem;
	margin: 0;
}

body.page-id-249 .osc-results-pdf-years a {
	display: inline-block;
	padding: 0.16rem 0.48rem;
	border: 1px solid #b8c4ce;
	background: #ffffff;
	color: #23445c;
	text-decoration: none;
	font-size: 0.84rem;
	line-height: 1.2;
}

body.page-id-249 .osc-results-pdf-years a:hover,
body.page-id-249 .osc-results-pdf-years a:focus {
	background: #edf4fa;
	border-color: #8ea5b8;
}

body.page-id-249 .osc-results-pdf-years a.is-current {
	background: #2e627f;
	border-color: #2e627f;
	color: #ffffff;
}

body.page-id-249 .osc-results-pdf-card.is-wide {
	grid-column: 1 / -1;
}

@media (max-width: 860px) {
	body.page-id-249 .osc-results-pdf-grid {
		grid-template-columns: 1fr;
	}
}
