/*
Theme Name: Doctor SEO
Description: Custom theme for doctor-seo.net — Google/Material palette, modern product-site layout, depth-aware course templates, multilingual (Polylang ES/EN/DE).
Author: Doctor SEO
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: doctor-seo
WPVibe: yes
*/

/* ===========================================================================
   Doctor SEO — site styles.

   Every selector here is prefixed or scoped (html body, .ds-*) so it outranks
   the Tailwind preflight reset regardless of stylesheet order. Do not add
   bare single-element selectors.

   Content from the course is published as unclassed semantic HTML (h2, h3,
   table, ul, blockquote — no divs, no classes) for GEO reasons, so .ds-prose
   styles bare tags directly rather than expecting classed markup.
   =========================================================================== */

:root {
	--ds-blue: #1A73E8;
	--ds-blue-dark: #174EA6;
	--ds-blue-tint: #E8F0FE;
	--ds-red: #D93025;
	--ds-red-tint: #FCE8E6;
	--ds-amber: #F9AB00;
	--ds-amber-ink: #B06000;
	--ds-amber-tint: #FEF7E0;
	--ds-green: #1E8E3E;
	--ds-green-tint: #E6F4EA;

	--ds-ink: #202124;
	--ds-body: #3C4043;
	--ds-muted: #5F6368;
	--ds-faint: #9AA0A6;
	--ds-line: #DADCE0;
	--ds-hair: #E8EAED;
	--ds-fill: #F1F3F4;
	--ds-band: #F8F9FA;

	--ds-display: "Outfit", "Segoe UI", system-ui, sans-serif;
	--ds-sans: "Public Sans", "Segoe UI", system-ui, sans-serif;

	--ds-gutter: 24px;
	--ds-max: 1200px;
	--ds-shadow: 0 8px 28px rgba(32, 33, 36, .10);
}

/* --- base ---------------------------------------------------------------- */

html body {
	margin: 0;
	background: #fff;
	color: var(--ds-ink);
	font-family: var(--ds-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

html body * { box-sizing: border-box; }

html body img { max-width: 100%; height: auto; }

html body a { color: var(--ds-blue); text-decoration: none; }
html body a:hover { color: var(--ds-blue-dark); text-decoration: underline; }

html body :focus-visible {
	outline: 3px solid var(--ds-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

.ds-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: #fff;
	padding: 12px 20px;
	border-radius: 0 0 12px 0;
	font-weight: 600;
}
.ds-skip:focus { left: 0; }

.ds-container {
	width: 100%;
	max-width: var(--ds-max);
	margin: 0 auto;
	padding: 0 var(--ds-gutter);
}

.ds-section { padding: 88px 0; }
.ds-section--band { background: var(--ds-band); border-top: 1px solid var(--ds-hair); border-bottom: 1px solid var(--ds-hair); }
.ds-section--tight { padding: 56px 0; }

.ds-eyebrow {
	display: block;
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ds-blue);
}

.ds-h2 {
	margin: 0;
	font-family: var(--ds-display);
	font-size: 42px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ds-ink);
}

/* --- header -------------------------------------------------------------- */

.ds-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--ds-hair);
}

.ds-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 72px;
}

.ds-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ds-brand:hover { text-decoration: none; }
.ds-brand__mark { display: block; flex-shrink: 0; }
.ds-brand__name {
	font-family: var(--ds-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ds-ink);
}

.ds-nav { flex-grow: 1; }
.ds-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.ds-nav li { position: relative; }
.ds-nav a { font-size: 15px; font-weight: 500; color: var(--ds-body); }
.ds-nav a:hover { color: var(--ds-blue); text-decoration: none; }
.ds-nav .current-menu-item > a,
.ds-nav .current_page_item > a,
.ds-nav .current-menu-ancestor > a,
.ds-nav .current_page_ancestor > a { color: var(--ds-blue); font-weight: 600; }

/* dropdowns */
.ds-nav ul ul {
	position: absolute;
	top: 100%;
	left: -16px;
	min-width: 230px;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: 14px;
	box-shadow: var(--ds-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ds-nav li:hover > ul,
.ds-nav li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.ds-nav ul ul a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.ds-nav ul ul a:hover { background: var(--ds-blue-tint); }
.ds-nav ul ul ul { top: 0; left: 100%; }

.ds-header__side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.ds-lang { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ds-lang a {
	display: block;
	padding: 6px 11px;
	border-radius: 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ds-muted);
	text-transform: uppercase;
}
.ds-lang a:hover { background: var(--ds-fill); text-decoration: none; }
.ds-lang .current-lang a { background: var(--ds-fill); color: var(--ds-ink); }

.ds-burger {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

/* --- buttons ------------------------------------------------------------- */

.ds-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--ds-sans);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.ds-btn:hover { text-decoration: none; }
/* The filled button's label is white, and it has to be stated at a
 * specificity that survives a plugin setting a global link colour — Elementor's
 * kit was overriding a plain .ds-btn--primary with #0071A1 (≈2.9:1 on blue).
 * The background is deepened slightly from the #1A73E8 brand blue so white
 * clears 4.5:1 comfortably rather than sitting exactly on the line.
 * Not yellow: #FBBC04 on this blue is ≈2.6:1 and fails outright. */
html body .ds-btn--primary,
html body a.ds-btn--primary { background: #1667D2; color: #FFFFFF; }
html body .ds-btn--primary:hover,
html body a.ds-btn--primary:hover { background: var(--ds-blue-dark); color: #FFFFFF; }
html body .ds-btn--primary svg { color: #FFFFFF; stroke: #FFFFFF; }
.ds-btn--ghost { background: #fff; color: var(--ds-blue); border-color: var(--ds-line); }
.ds-btn--ghost:hover { background: var(--ds-blue-tint); color: var(--ds-blue-dark); }
.ds-btn--sm { min-height: 40px; padding: 0 20px; font-size: 15px; }

/* --- cards --------------------------------------------------------------- */

.ds-grid { display: grid; gap: 24px; }
.ds-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ds-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ds-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--ds-line);
	border-radius: var(--ds-lg, 16px);
	border-radius: 16px;
	transition: box-shadow .18s ease, transform .18s ease;
}
a.ds-card:hover { box-shadow: var(--ds-shadow); transform: translateY(-2px); text-decoration: none; }
.ds-card__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ds-blue);
}
.ds-card__title {
	margin: 0;
	font-family: var(--ds-display);
	font-size: 21px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ds-ink);
}
.ds-card__text { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ds-muted); }
.ds-card__meta { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ds-muted); }

.ds-card__thumb {
	margin: -26px -26px 4px;
	height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ds-blue-tint);
	border-radius: 16px 16px 0 0;
	overflow: hidden;
	font-family: var(--ds-display);
	font-size: 44px;
	font-weight: 700;
	color: var(--ds-blue);
}
.ds-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* --- page head ----------------------------------------------------------- */

.ds-pagehead { padding: 56px 0 36px; }
.ds-pagehead__title {
	margin: 0 0 14px;
	font-family: var(--ds-display);
	font-size: 48px;
	line-height: 1.12;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ds-ink);
}
.ds-pagehead__sub { margin: 0; max-width: 680px; font-size: 19px; line-height: 1.65; color: var(--ds-muted); }

.ds-crumbs {
	padding: 14px 0;
	background: var(--ds-band);
	border-bottom: 1px solid var(--ds-hair);
	font-size: 13px;
	color: var(--ds-muted);
}
.ds-crumbs a { color: var(--ds-muted); }
.ds-crumbs a:hover { color: var(--ds-blue); }
.ds-crumbs span[aria-current] { color: var(--ds-ink); font-weight: 600; }

.ds-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
	font-size: 14px;
	color: var(--ds-muted);
}
.ds-meta__sep { width: 1px; height: 18px; background: var(--ds-line); }

.ds-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ds-blue-tint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ds-blue);
}

/* --- prose: bare semantic HTML ------------------------------------------- */

.ds-prose { max-width: 760px; font-size: 18px; line-height: 1.85; color: var(--ds-body); }
.ds-prose > *:first-child { margin-top: 0; }
.ds-prose > *:last-child { margin-bottom: 0; }

.ds-prose h2 {
	margin: 48px 0 18px;
	font-family: var(--ds-display);
	font-size: 32px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ds-ink);
}
.ds-prose h3 {
	margin: 36px 0 14px;
	font-family: var(--ds-display);
	font-size: 23px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ds-ink);
}
.ds-prose h4 {
	margin: 28px 0 12px;
	font-family: var(--ds-display);
	font-size: 19px;
	font-weight: 600;
	color: var(--ds-ink);
}
.ds-prose p { margin: 0 0 22px; }
.ds-prose ul,
.ds-prose ol { margin: 0 0 22px; padding-left: 26px; }
.ds-prose li { margin-bottom: 10px; }
.ds-prose li::marker { color: var(--ds-blue); }

.ds-prose blockquote {
	margin: 32px 0;
	padding: 22px 26px;
	background: var(--ds-blue-tint);
	border-radius: 16px;
	font-size: 17px;
	color: var(--ds-body);
}
.ds-prose blockquote p:last-child { margin-bottom: 0; }

.ds-prose table {
	width: 100%;
	margin: 32px 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.6;
}
.ds-prose thead th {
	text-align: left;
	padding: 12px 14px;
	background: var(--ds-band);
	border-bottom: 2px solid var(--ds-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ds-muted);
}
.ds-prose td,
.ds-prose tbody th { padding: 12px 14px; border-bottom: 1px solid var(--ds-hair); vertical-align: top; }
.ds-prose tbody th { text-align: left; font-weight: 600; color: var(--ds-ink); }
.ds-prose tbody tr:hover { background: var(--ds-band); }

.ds-prose code {
	padding: 2px 6px;
	background: var(--ds-fill);
	border: 1px solid var(--ds-hair);
	border-radius: 5px;
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-size: .88em;
	color: var(--ds-ink);
}
.ds-prose pre {
	margin: 28px 0;
	padding: 20px 22px;
	background: var(--ds-ink);
	border-radius: 14px;
	overflow-x: auto;
	color: #E8EAED;
	font-size: 14px;
	line-height: 1.7;
}
.ds-prose pre code { padding: 0; background: none; border: none; color: inherit; }

.ds-prose figure { margin: 32px 0; }
.ds-prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ds-muted); }
.ds-prose img { border-radius: 14px; }
.ds-prose hr { margin: 44px 0; border: 0; border-top: 1px solid var(--ds-hair); }

/* Gutenberg alignment inside prose */
.ds-prose .alignwide { max-width: 1000px; margin-left: calc(50% - 500px); }
.ds-prose .alignfull { max-width: none; }
.ds-prose .alignleft { float: left; margin: 6px 26px 18px 0; }
.ds-prose .alignright { float: right; margin: 6px 0 18px 26px; }
.ds-prose .aligncenter { margin-left: auto; margin-right: auto; }

/* --- course ------------------------------------------------------------- */

.ds-lesson { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }

.ds-rail {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	background: var(--ds-band);
	border: 1px solid var(--ds-hair);
	border-radius: 16px;
}
.ds-rail__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ds-muted);
}
.ds-rail ol { margin: 0; padding: 0; list-style: none; counter-reset: ds-lesson; }
.ds-rail li { counter-increment: ds-lesson; margin-bottom: 10px; }
.ds-rail li a { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; color: var(--ds-body); }
.ds-rail li a::before { content: counter(ds-lesson) "."; flex-shrink: 0; color: var(--ds-faint); font-variant-numeric: tabular-nums; }
.ds-rail li a:hover { color: var(--ds-blue); text-decoration: none; }
.ds-rail li.is-current a { color: var(--ds-blue); font-weight: 600; }
.ds-rail li.is-current a::before { color: var(--ds-blue); }

.ds-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.ds-adjacent a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 24px;
	border: 1px solid var(--ds-line);
	border-radius: 16px;
}
.ds-adjacent a:hover { box-shadow: var(--ds-shadow); text-decoration: none; }
.ds-adjacent .is-next { text-align: right; }
.ds-adjacent__dir { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ds-muted); }
.ds-adjacent__title { font-family: var(--ds-display); font-size: 17px; font-weight: 600; color: var(--ds-ink); }

.ds-progress { height: 3px; background: var(--ds-fill); }
.ds-progress__bar { height: 100%; width: 0; background: var(--ds-blue); transition: width .1s linear; }

/* --- footer -------------------------------------------------------------- */

.ds-footer { background: var(--ds-ink); color: #BDC1C6; }
.ds-footer__top { padding: 64px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ds-footer h2 {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
}
.ds-footer ul { margin: 0; padding: 0; list-style: none; }
.ds-footer li { margin-bottom: 12px; }
.ds-footer a { font-size: 14px; color: #BDC1C6; }
.ds-footer a:hover { color: #fff; }
.ds-footer p { margin: 0; font-size: 14px; line-height: 1.7; color: #9AA0A6; }
.ds-footer .ds-brand__name { color: #fff; }

.ds-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	padding: 24px 0;
	border-top: 1px solid #3C4043;
	font-size: 13px;
	color: #9AA0A6;
}
.ds-footer__bottom .ds-lang { margin-left: auto; }
.ds-footer__bottom .ds-lang a { color: #9AA0A6; }
.ds-footer__bottom .ds-lang a:hover { background: #3C4043; color: #fff; }
.ds-footer__bottom .ds-lang .current-lang a { background: #3C4043; color: #fff; }

/* --- cta band ------------------------------------------------------------ */

.ds-cta { padding: 80px 0; background: var(--ds-ink); color: #fff; }
.ds-cta__inner { display: flex; align-items: center; gap: 56px; }
.ds-cta h2 {
	margin: 0 0 14px;
	font-family: var(--ds-display);
	font-size: 38px;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
}
.ds-cta p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: #BDC1C6; }
.ds-cta .ds-btn--primary { background: #fff; color: var(--ds-blue); }
.ds-cta .ds-btn--primary:hover { background: var(--ds-blue-tint); }

/* --- search / 404 / misc ------------------------------------------------- */

.ds-searchform { display: flex; gap: 10px; max-width: 520px; }
.ds-searchform input[type="search"] {
	flex-grow: 1;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--ds-line);
	border-radius: 999px;
	font-family: var(--ds-sans);
	font-size: 15px;
	color: var(--ds-ink);
}
.ds-searchform input[type="search"]:focus { border-color: var(--ds-blue); }

.ds-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.ds-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--ds-line);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ds-body);
}
.ds-pagination .page-numbers:hover { background: var(--ds-blue-tint); text-decoration: none; }
.ds-pagination .page-numbers.current { background: var(--ds-ink); border-color: var(--ds-ink); color: #fff; }

.ds-empty { padding: 72px 0; text-align: center; color: var(--ds-muted); }

.ds-sr {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.ds-lesson { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.ds-rail { position: static; order: 2; }
	.ds-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ds-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.ds-burger { display: inline-flex; }
	.ds-nav {
		display: none;
		position: absolute;
		top: 72px;
		left: 0;
		right: 0;
		padding: 12px var(--ds-gutter) 20px;
		background: #fff;
		border-bottom: 1px solid var(--ds-hair);
		box-shadow: var(--ds-shadow);
	}
	.ds-nav.is-open { display: block; }
	.ds-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.ds-nav > div > ul > li > a { display: block; padding: 12px 4px; font-size: 16px; }
	.ds-nav ul ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		margin: 0 0 6px 14px;
		padding: 0;
		border: none;
		border-left: 1px solid var(--ds-hair);
		border-radius: 0;
		box-shadow: none;
	}
	.ds-header__side .ds-btn { display: none; }

	.ds-section { padding: 56px 0; }
	.ds-grid--2,
	.ds-grid--3,
	.ds-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.ds-pagehead { padding: 36px 0 28px; }
	.ds-pagehead__title { font-size: 34px; }
	.ds-h2 { font-size: 30px; }
	.ds-cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
	.ds-cta h2 { font-size: 28px; }
	.ds-adjacent { grid-template-columns: minmax(0, 1fr); }
	.ds-adjacent .is-next { text-align: left; }
	.ds-footer__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }

	.ds-prose { font-size: 17px; }
	.ds-prose h2 { font-size: 26px; margin-top: 36px; }
	.ds-prose h3 { font-size: 20px; }
	.ds-prose table { display: block; overflow-x: auto; white-space: nowrap; }
	.ds-prose .alignwide { max-width: none; margin-left: 0; }
	.ds-prose .alignleft,
	.ds-prose .alignright { float: none; margin: 0 0 18px; }
}

/* --- home sections ------------------------------------------------------- */

.ds-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 72px 0 84px; }
.ds-hero__title {
	margin: 0 0 18px;
	font-family: var(--ds-display);
	font-size: 58px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.02em;
	color: var(--ds-ink);
}
.ds-hero__sub { margin: 0 0 30px; max-width: 520px; font-size: 20px; line-height: 1.6; color: var(--ds-muted); }
.ds-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ds-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ds-blue-tint);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ds-blue);
}
.ds-kicker span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ds-muted); }

/* SERP illustration */
.ds-serp { padding: 22px; background: #fff; border: 1px solid var(--ds-line); border-radius: 20px; box-shadow: var(--ds-shadow); }
.ds-serp__bar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; margin-bottom: 18px; border: 1px solid var(--ds-line); border-radius: 999px; font-size: 14px; color: var(--ds-body); }
.ds-serp__dots { display: flex; gap: 4px; margin-left: auto; }
.ds-serp__dots i { width: 7px; height: 7px; border-radius: 50%; }
.ds-serp__hit { display: flex; gap: 14px; padding: 16px; background: var(--ds-blue-tint); border-radius: 14px; }
.ds-serp__rank { flex-shrink: 0; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ds-blue); color: #fff; font-size: 12px; font-weight: 700; }
.ds-serp__rank--dim { background: var(--ds-fill); color: var(--ds-muted); }
.ds-serp__url { display: block; font-size: 12px; color: var(--ds-muted); }
.ds-serp__title { display: block; margin: 5px 0; font-size: 17px; font-weight: 600; color: var(--ds-blue); }
.ds-serp__snippet { display: block; font-size: 13px; line-height: 1.5; color: var(--ds-muted); }
.ds-serp__row { display: flex; gap: 14px; padding: 14px 16px 0; }
.ds-serp__lines { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 5px; }
.ds-serp__lines i { display: block; height: 9px; border-radius: 5px; background: var(--ds-hair); }
.ds-serp__lines i + i { width: 78%; background: var(--ds-fill); }

/* trust strip */
.ds-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 0; }
.ds-strip__label { font-size: 14px; font-weight: 600; color: var(--ds-muted); }
.ds-pill { padding: 7px 16px; background: #fff; border: 1px solid var(--ds-line); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ds-muted); }
.ds-pill.is-active { font-weight: 600; color: var(--ds-ink); }

/* section head */
.ds-sectionhead { display: flex; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.ds-sectionhead > div:first-child { flex-grow: 1; }
.ds-sectionhead p { margin: 0; width: 360px; flex-shrink: 0; font-size: 16px; line-height: 1.65; color: var(--ds-muted); }

/* icon box */
.ds-iconbox { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ds-blue-tint); }

/* numbered course tiles */
.ds-tile { display: flex; flex-direction: column; gap: 16px; min-height: 168px; padding: 24px; background: #fff; border: 1px solid var(--ds-line); border-radius: 16px; }
a.ds-tile:hover { box-shadow: var(--ds-shadow); text-decoration: none; }
.ds-tile__n { font-family: var(--ds-display); font-size: 22px; font-weight: 700; }
.ds-tile__t { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--ds-ink); }
.ds-tile__m { margin-top: auto; font-size: 13px; color: var(--ds-muted); }

/* stat tiles */
.ds-stat { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--ds-band); border: 1px solid var(--ds-hair); border-radius: 16px; }
.ds-stat__n { font-family: var(--ds-display); font-size: 44px; line-height: 1; font-weight: 700; color: var(--ds-ink); }
.ds-stat__l { font-size: 15px; font-weight: 600; color: var(--ds-ink); }
.ds-stat__s { font-size: 13px; color: var(--ds-muted); }

/* timeline chart */
.ds-chart { padding: 28px; border: 1px solid var(--ds-line); border-radius: 18px; }
.ds-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 18px; font-size: 13px; color: var(--ds-body); }
.ds-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ds-legend i { width: 11px; height: 11px; border-radius: 3px; }
.ds-tl { display: flex; gap: 14px; align-items: flex-start; }
.ds-tl__lanes { flex-shrink: 0; width: 74px; display: flex; flex-direction: column; gap: 12px; }
.ds-tl__lanes span { height: 20px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ds-body); }
.ds-tl__plot { position: relative; flex-grow: 1; height: 124px; }
.ds-tl__grid { position: absolute; top: 0; bottom: 28px; width: 1px; background: var(--ds-hair); }
.ds-tl__bar { position: absolute; height: 20px; border-radius: 4px; }
.ds-tl__axis { position: absolute; left: 0; right: 0; top: 96px; height: 1px; background: var(--ds-line); }
.ds-tl__tick { position: absolute; top: 102px; font-size: 11px; color: var(--ds-muted); }
.ds-note { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--ds-muted); }

/* testimonials */
.ds-quote { display: flex; flex-direction: column; gap: 20px; padding: 32px; background: #fff; border: 1px solid var(--ds-line); border-radius: 16px; }
.ds-quote blockquote { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ds-body); }
.ds-quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.ds-quote__av { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 15px; font-weight: 700; }
.ds-quote__who { display: block; font-size: 15px; font-weight: 600; color: var(--ds-ink); }
.ds-quote__org { display: block; font-size: 13px; color: var(--ds-muted); }

@media (max-width: 1024px) {
	.ds-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ds-sectionhead { flex-direction: column; align-items: flex-start; gap: 16px; }
	.ds-sectionhead p { width: auto; }
}

@media (max-width: 860px) {
	.ds-hero { padding: 40px 0 48px; }
	.ds-hero__title { font-size: 36px; }
	.ds-hero__sub { font-size: 17px; }
	.ds-hero__actions .ds-btn { width: 100%; }
	.ds-tl { flex-direction: column; }
	.ds-tl__lanes { flex-direction: row; gap: 18px; width: auto; }
	.ds-tl__plot { width: 100%; }
}

/* --- responsive corrections ---------------------------------------------- */

/* Tile grids size themselves. Templates must NOT set grid-template-columns as
 * an inline style: an inline declaration outranks every media query in this
 * file, which is exactly why the course tiles stayed three-across on a phone.
 * auto-fit handles three tiles or eight, and collapses to one column without
 * needing a breakpoint at all. */
.ds-grid--tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

/* German compounds (Suchmaschinen-Optimierung) overflow a narrow card. */
.ds-hero__title,
.ds-h2,
.ds-card__title,
.ds-tile__t,
.ds-pagehead__title { overflow-wrap: break-word; hyphens: auto; }

/* Tables inside lesson content.
 *
 * Between 700 and 860px the table scrolls sideways but wraps normally — the
 * earlier nowrap made short cells unreadable. Below 700px each row becomes its
 * own card stacked vertically, which is what a phone actually has room for.
 * Content ships as unclassed <table>, so there are no data-label attributes to
 * re-print headers from; the first cell carries the row's identity instead and
 * gets the emphasis. The header row is hidden visually but stays in the
 * accessibility tree for screen readers. */
@media (max-width: 860px) {
	.ds-prose table { white-space: normal; }
}

@media (max-width: 700px) {
	.ds-prose table,
	.ds-prose thead,
	.ds-prose tbody,
	.ds-prose tr,
	.ds-prose th,
	.ds-prose td { display: block; width: 100%; }

	.ds-prose table { overflow: visible; border: 0; }

	.ds-prose thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.ds-prose tr {
		box-sizing: border-box;
		margin-bottom: 16px;
		padding: 14px 16px;
		border: 1px solid var(--ds-line);
		border-radius: 12px;
	}
	.ds-prose tbody tr:hover { background: transparent; }

	.ds-prose td,
	.ds-prose tbody th { padding: 5px 0; border: 0; }

	.ds-prose tr > *:first-child {
		font-family: var(--ds-display);
		font-size: 17px;
		font-weight: 600;
		color: var(--ds-ink);
		padding-bottom: 8px;
	}
}

@media print {
	.ds-header, .ds-footer, .ds-rail, .ds-adjacent, .ds-cta { display: none; }
	.ds-prose { max-width: none; font-size: 12pt; }
}
