/*
Theme Name: Hando
Theme URI: https://example.com/
Author: Hando Murumägi
Description: Hando Murumägi koduleht ("C + vestlus" kujundus). Ühe lehe avaleht, blogi koos kategooriatega, artikli leht ja töötav kontaktivorm. Avalehe tekstid ja pildid saab muuta menüüs Välimus → Kohanda.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hando
*/

/* ---------- Põhi ---------- */
:root {
	--blue: #2F3BFF;
	--blue-d: #1A22B8;
	--lime: #D7F75B;
	--ink: #0B0B1F;
	--bg: #EEF0FF;
	--muted: #3A3A55;
	--soft: #E3E6FF;
	--dim: #C8CAE0;
	--white: #FFFFFF;
	--display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
	--sans: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.005em; font-weight: 900; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .wrap { padding-left: 20px; padding-right: 20px; } }

.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 !important;
	width: 1px; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: var(--lime); color: var(--ink); padding: 10px 16px; border: 2px solid var(--ink); }

.kicker { margin: 0 0 20px; font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--lime); }
.hl { color: var(--lime); }
.hl-blue { color: var(--blue); }

/* ---------- Nupud ---------- */
.btn {
	display: inline-block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
	text-decoration: none;
	padding: 16px 28px;
	border: 2px solid var(--ink);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn--lime { background: var(--lime); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.btn--lime:hover { color: var(--ink); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--blue:hover { color: var(--white); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn--ghost { color: var(--white); border-color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--blue); }
.btn--ink { background: var(--ink); color: var(--white); padding: 15px 26px; }
.btn--ink:hover { background: var(--blue); color: var(--white); }
.btn--sm { padding: 11px 20px; font-size: 16px; box-shadow: 4px 4px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Päis ---------- */
.site-top { background: var(--blue); color: var(--white); border-bottom: 3px solid var(--ink); overflow-x: clip; }
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 16px;
}
.logo { color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; text-transform: uppercase; }
.logo:hover { color: var(--white); }
.logo span { color: var(--lime); }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 52px; width: auto; display: block; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; font-weight: 500; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.main-nav ul a { color: var(--white); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.main-nav ul a:hover { color: var(--white); text-decoration: underline; }
.main-nav .current-menu-item > a,
.main-nav .current_page_parent > a,
.main-nav .current-menu-parent > a,
.main-nav .current-post-ancestor > a,
.main-nav .current-category-ancestor > a,
.main-nav .is-current > a { color: var(--lime); text-decoration: underline; }
.main-nav ul ul { display: none; }

.nav-toggle {
	display: none; align-items: center; gap: 10px;
	background: var(--lime); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
	font: 600 16px/1 var(--sans); padding: 11px 14px; cursor: pointer;
}
.nav-toggle svg { display: block; }
@media (max-width: 960px) {
	.js .nav-toggle { display: inline-flex; }
	.js .main-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 22px; padding: 10px 0 12px; }
	.js .main-nav.is-open { display: flex; }
	.main-nav ul { flex-direction: column; gap: 14px; font-size: 21px; }
}

/* ---------- Avalehe algus ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.hero__text { flex: 999 1 560px; min-width: 0; }
.hero h1 { margin: 0 0 28px; font-size: clamp(54px, 9.2vw, 132px); line-height: 1.04; word-spacing: 0.06em; overflow-wrap: break-word; }
.hero__lead { margin: 0 0 36px; font-size: 20px; color: var(--soft); max-width: 560px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 40px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .4); }
.stat { flex: 1 1 150px; }
.stat__num { margin: 0; font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--lime); }
.stat__label { margin: 4px 0 0; font-size: 14px; color: var(--soft); }
.hero__media { flex: 1 1 380px; min-width: 0; position: relative; }
.hero__img { width: 100%; height: 480px; object-fit: cover; object-position: 60% 50%; display: block; border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform: rotate(2deg); }

.bubble { margin: 0; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 14px 18px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.bubble--left { border-radius: 22px 22px 22px 4px; background: var(--white); }
.bubble--right { border-radius: 22px 22px 4px 22px; background: var(--lime); }
.hero__q { position: absolute; left: -36px; top: -22px; max-width: 270px; transform: rotate(-2deg); }
.hero__a { position: absolute; right: -20px; bottom: -36px; max-width: 320px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.hero__sign { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--white); }
@media (max-width: 1340px) { .hero__a { right: -8px; } }
@media (max-width: 760px) {
	.hero { gap: 64px; }
	.hero__img { height: 380px; }
	.hero__q { left: -6px; top: -34px; }
	.hero__a { right: -6px; bottom: -48px; max-width: 290px; }
}

/* ---------- Sektsioonid ---------- */
.section { padding-top: 110px; padding-bottom: 110px; }
@media (max-width: 700px) { .section { padding-top: 80px; padding-bottom: 80px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 56px; }
.section-head p { margin: 0; flex: 0 1 460px; font-size: 18px; }
.section-head__link { color: var(--ink); font-weight: 600; font-size: 18px; }
.section-head__link:hover { color: var(--blue); }
.h-xl { margin: 0; font-size: clamp(52px, 7vw, 96px); line-height: .9; }

.box { background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }

/* Teenused */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; }
.service { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service__num { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--blue); }
.service h3 { margin: 0; font-size: 44px; line-height: .95; }
.service__text { margin: 0; flex: 1; }
.service__link { font-family: var(--mono); font-size: 15px; border-top: 2px solid var(--ink); padding-top: 14px; color: var(--ink); text-decoration: none; }
.service__link:hover { color: var(--blue); }
.service--blue { background: var(--blue); color: var(--white); }
.service--blue .service__num { color: var(--lime); }
.service--blue .service__text { color: var(--soft); }
.service--blue .service__link { border-color: var(--white); color: var(--white); }
.service--blue .service__link:hover { color: var(--lime); }

.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; border: 2px solid var(--ink); background: var(--ink); }
.step { padding: 26px; background: var(--white); }
.step__num { font-family: var(--display); font-weight: 900; font-size: 56px; line-height: 1; color: var(--blue); }
.step strong { display: block; margin: 8px 0 4px; }
.step__text { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Miks mina */
.dark { background: var(--ink); color: var(--white); }
.why { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.why__text { flex: 999 1 560px; min-width: 0; }
.why h2 { margin: 0 0 48px; font-size: clamp(50px, 6.8vw, 92px); line-height: .9; }
.reasons { border-top: 1px solid var(--muted); }
.reason { display: flex; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--muted); }
.reason__num { font-family: var(--display); font-weight: 900; font-size: 36px; line-height: 1; color: var(--lime); flex: none; width: 44px; }
.reason h3 { margin: 0 0 4px; font-size: 30px; font-weight: 700; }
.reason p { margin: 0; color: var(--dim); }
.why__fig { flex: 1 1 340px; min-width: 0; margin: 0; }
.why__fig img { width: 100%; height: 560px; object-fit: cover; object-position: 50% 45%; display: block; border: 3px solid var(--lime); transform: rotate(-2deg); }
.why__fig figcaption { margin-top: 22px; font-family: var(--mono); font-size: 14px; color: var(--lime); }
@media (max-width: 700px) { .why__fig img { height: 460px; } }

/* Koolitused */
.train { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.train__big { flex: 1 1 380px; min-width: 0; container-type: inline-size; background: var(--blue); color: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.train__big .kicker { margin: 0; }
.train__num { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(72px, 8vw, 128px); font-size: clamp(64px, 38cqi, 160px); line-height: .85; color: var(--lime); white-space: nowrap; }
.train__label { margin: 0; font-size: 18px; }
.train__body { flex: 999 1 560px; min-width: 0; }
.train h2 { margin: 0 0 20px; font-size: clamp(48px, 6vw, 80px); line-height: .9; }
.train__lead { margin: 0 0 28px; font-size: 18px; max-width: 620px; }
.rows { border-top: 2px solid var(--ink); margin-bottom: 28px; }
.row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.row__name { font-weight: 600; font-size: 19px; }
.row__desc { font-weight: 400; color: var(--muted); font-size: 16px; }
.row__dur { font-family: var(--mono); font-size: 15px; }

/* Minust */
.about { background: var(--white); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.about__in { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-top: 100px; padding-bottom: 100px; }
.about h2 { margin: 0; flex: 1 1 360px; font-size: clamp(56px, 7vw, 96px); line-height: .88; }
.about__text { flex: 999 1 560px; min-width: 0; }
.about__lead { margin: 0 0 18px; font-size: 22px; font-weight: 500; line-height: 1.45; }
.about__text p.about__p { margin: 0 0 14px; color: var(--muted); }

/* Blogi kaardid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.card {
	text-decoration: none; color: var(--ink); background: var(--white);
	border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
	display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.card__img { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 2px solid var(--ink); }
.card__ph { height: 220px; background: var(--blue); display: flex; align-items: center; justify-content: center; border-bottom: 2px solid var(--ink); }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.card__title { margin: 0; font-size: 34px; line-height: 1.04; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.card__more { margin: auto 0 0; padding-top: 6px; font-weight: 600; color: var(--blue); }
.card--small .card__img, .card--small .card__ph { height: 200px; }
.card--small .card__title { font-size: 32px; }

/* KKK */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 28px; }
.faq__item { padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.chat-q { margin: 0; align-self: flex-start; max-width: 88%; background: var(--bg); border-radius: 20px 20px 20px 4px; padding: 12px 16px; font-weight: 600; }
.chat-a { margin: 0; align-self: flex-end; max-width: 88%; background: var(--blue); color: var(--white); border-radius: 20px 20px 4px 20px; padding: 12px 16px; }

/* Kontakt */
.contact { background: var(--lime); border-top: 3px solid var(--ink); }
.contact__in { display: flex; flex-wrap: wrap; gap: 48px 72px; padding-top: 100px; padding-bottom: 100px; }
.contact__text { flex: 1 1 420px; min-width: 0; }
.contact h2 { margin: 0 0 24px; font-size: clamp(76px, 11vw, 150px); line-height: .82; }
.contact__lead { margin: 0 0 32px; font-size: 20px; max-width: 460px; }
.contact__line { margin: 0 0 6px; font-family: var(--mono); font-size: 18px; }
.contact__line a { color: var(--ink); }
.contact__line a:hover { color: var(--blue); }
.form { flex: 1 1 440px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form__hello { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 4px; }
.form__hello p { margin: 0; background: var(--bg); border-radius: 20px 20px 20px 4px; padding: 12px 16px; font-size: 16px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 2px solid var(--ink); flex: none; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
	padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0; font: inherit; font-weight: 400; font-size: 16px;
	background: var(--white); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--blue); outline-offset: 0; }
.form .btn { align-self: flex-start; font-size: 16px; padding: 14px 28px; box-shadow: 4px 4px 0 var(--ink); }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 14px 16px; border: 2px solid var(--ink); font-weight: 600; }
.notice--ok { background: var(--lime); }
.notice--err { background: #FFD9D9; }

/* ---------- Blogi leht ---------- */
.page-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 40px 64px; padding-top: 48px; padding-bottom: 88px; }
.page-hero__text { flex: 999 1 560px; min-width: 0; }
.page-hero h1 { margin: 0 0 24px; font-size: clamp(72px, 11vw, 150px); line-height: .85; overflow-wrap: break-word; }
.page-hero h1.is-long { font-size: clamp(48px, 7vw, 96px); line-height: .92; }
.page-hero__lead { margin: 0; font-size: 20px; color: var(--soft); max-width: 560px; }
.page-hero__lead p { margin: 0; }
.page-hero__chat { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.page-hero__chat .bubble--left { align-self: flex-start; max-width: 300px; transform: rotate(-1.5deg); padding: 12px 16px; }
.page-hero__chat .bubble--right { align-self: flex-end; max-width: 320px; padding: 12px 16px; }

.listing { padding-top: 72px; padding-bottom: 96px; }
.chips { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 9px 16px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3; }
.chip:hover { background: var(--lime); color: var(--ink); }
.chip.is-active, .chip[aria-current] { background: var(--ink); color: var(--white); }
.chip__count { font-family: var(--mono); font-size: 12px; font-weight: 500; opacity: .7; margin-left: 4px; }

.feature { display: flex; flex-wrap: wrap; background: var(--white); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); text-decoration: none; color: var(--ink); margin-bottom: 56px; transition: transform .12s ease, box-shadow .12s ease; }
.feature:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--ink); }
.feature__media { flex: 1 1 520px; min-height: 380px; position: relative; border-right: 2px solid var(--ink); overflow: hidden; background: var(--blue); }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__media .card__ph { position: absolute; inset: 0; height: auto; border: 0; }
.badge { position: absolute; left: 24px; top: 24px; background: var(--lime); border: 2px solid var(--ink); padding: 6px 12px; font-family: var(--mono); font-size: 13px; color: var(--ink); }
.feature__body { flex: 1 1 420px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature__body .meta { font-size: 13px; }
.feature h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.02; }
.feature__excerpt { margin: 0; color: var(--muted); }
@media (max-width: 1000px) {
	.feature__media { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 280px; }
	.feature__body { padding: 28px; }
}

.empty { padding: 32px; }
.empty h2 { margin: 0 0 8px; font-size: 40px; }
.empty p { margin: 0; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 56px; }
.pagination .page-numbers { min-width: 48px; padding: 10px 14px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; text-align: center; }
.pagination a.page-numbers:hover { background: var(--lime); }
.pagination .current { background: var(--ink); color: var(--white); }
.pagination .dots { border-color: transparent; background: transparent; }

.cta-lime { background: var(--lime); border-top: 3px solid var(--ink); }
.cta-lime__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; padding-top: 88px; padding-bottom: 88px; }
.cta-lime h2 { margin: 0; flex: 1 1 420px; font-size: clamp(60px, 8vw, 104px); line-height: .86; }
.cta-lime__chat { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-lime__row { display: flex; gap: 10px; align-items: flex-end; }
.cta-lime__row .avatar { width: 44px; height: 44px; }
.cta-lime__row .bubble { background: var(--white); border-radius: 20px 20px 20px 4px; font-size: 17px; }
.cta-lime .btn { align-self: flex-start; margin-left: 54px; padding: 15px 26px; }

/* ---------- Artikkel ---------- */
.article__head { max-width: 860px; margin: 0 auto; padding: 56px 32px 0; }
.back { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.back:hover { color: var(--blue); }
.article__meta { margin: 28px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.tag { background: var(--lime); color: var(--ink); border: 2px solid var(--ink); padding: 4px 10px; text-decoration: none; }
a.tag:hover { color: var(--ink); background: var(--white); }
.article__head h1 { margin: 0 0 28px; font-size: clamp(44px, 6vw, 76px); line-height: 1.02; overflow-wrap: break-word; }
.article__lead { margin: 0; font-size: 22px; line-height: 1.55; color: var(--muted); }
.article__img { max-width: 1080px; margin: 48px auto; padding: 0 32px; }
.article__img img { width: 100%; height: 520px; object-fit: cover; display: block; border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); }
.article__noimg { height: 48px; }
.article__foot { max-width: 860px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 700px) {
	.article__head, .article__img, .article__foot { padding-left: 20px; padding-right: 20px; }
	.article__img img { height: 280px; box-shadow: 7px 7px 0 var(--ink); }
	.article__lead { font-size: 19px; }
}

.post-tags { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { display: inline-block; font-family: var(--mono); font-size: 13px; padding: 4px 10px; border: 2px solid var(--ink); background: var(--white); color: var(--ink); text-decoration: none; }
.post-tags a:hover { background: var(--lime); }

.author { margin: 56px 0 0; background: var(--white); border: 2px solid var(--ink); padding: 22px 24px; display: flex; align-items: center; gap: 18px; }
.author .avatar { width: 64px; height: 64px; }
.author__text { line-height: 1.45; }
.author__text p { margin: 0; }
.author__name { font-weight: 600; }
.author__bio { color: var(--muted); font-size: 16px; }

.cta-blue { background: var(--blue); color: var(--white); border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--ink); padding: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.cta-blue h2 { margin: 0; flex: 1 1 380px; font-size: clamp(52px, 6vw, 80px); line-height: .88; }
.cta-blue__chat { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.45; }
.cta-blue__chat .bubble { box-shadow: none; padding: 12px 16px; font-size: 17px; max-width: 340px; }
.cta-blue__chat .bubble--left { align-self: flex-start; }
.cta-blue__chat .bubble--right { align-self: flex-end; }
.cta-blue__chat .btn { align-self: flex-end; padding: 14px 24px; }
@media (max-width: 600px) { .cta-blue { padding: 32px 24px; box-shadow: 7px 7px 0 var(--ink); } }

.single-main { padding-bottom: 96px; }
.cta-wrap { padding-top: 80px; }
.related { padding-top: 96px; }
.related h2 { margin: 0 0 32px; font-size: 64px; line-height: .9; }

/* ---------- Artikli sisu (plokiredaktor) ---------- */
.entry-content { max-width: 860px; margin: 0 auto; padding: 0 32px; font-size: 19px; line-height: 1.7; }
@media (max-width: 700px) { .entry-content { padding-left: 20px; padding-right: 20px; font-size: 18px; } }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { margin-top: 0; margin-bottom: 24px; }
.entry-content h2 { margin: 48px 0 24px; font-size: clamp(36px, 4.4vw, 52px); line-height: 1.02; }
.entry-content > h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 40px 0 16px; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; }
.entry-content h4 { margin: 32px 0 12px; font-family: var(--sans); text-transform: none; font-weight: 600; font-size: 21px; letter-spacing: 0; }
.entry-content a { color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content strong { font-weight: 600; }
.entry-content ul { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 20px; }
.entry-content ul > li { position: relative; padding-left: 30px; }
.entry-content ul > li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; background: var(--lime); border: 2px solid var(--ink); }
.entry-content ol { list-style: none; padding: 0; margin: 0 0 40px; counter-reset: hando-li; display: flex; flex-direction: column; gap: 20px; }
.entry-content ol > li { counter-increment: hando-li; position: relative; padding-left: 48px; }
.entry-content ol > li::before { content: counter(hando-li) "."; position: absolute; left: 0; top: -.08em; font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1.1; color: var(--blue); }
.entry-content li ul, .entry-content li ol { margin: 14px 0 0; gap: 12px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 0 0 40px; padding: 8px 0 8px 24px; border-left: 6px solid var(--blue); font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; text-transform: uppercase; }
.entry-content blockquote p { margin: 0 0 12px; }
.entry-content blockquote p:last-of-type { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 12px; font-family: var(--mono); font-size: 13px; font-style: normal; font-weight: 500; text-transform: none; color: var(--muted); }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); padding: 32px 0; text-align: left; }
.entry-content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry-content .is-style-kokkuvote { background: var(--lime); border: 2px solid var(--ink); border-radius: 22px 22px 22px 4px; box-shadow: 6px 6px 0 var(--ink); padding: 18px 22px; line-height: 1.55; margin-bottom: 32px; }
.entry-content .is-style-kokkuvote::before { content: "KOKKUVÕTTEKS"; display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 12px; }
.entry-content figure { margin: 0 0 32px; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.entry-content .wp-block-image img { border: 2px solid var(--ink); display: block; }
.entry-content .wp-block-image.is-style-rounded img { border-radius: 9999px; }
.entry-content hr, .entry-content .wp-block-separator { border: 0; border-top: 2px solid var(--ink); margin: 48px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border: 2px solid var(--ink); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--white); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content code { font-family: var(--mono); font-size: .88em; background: var(--white); padding: 2px 6px; border: 1px solid var(--dim); }
.entry-content pre { font-family: var(--mono); font-size: 15px; background: var(--ink); color: var(--white); padding: 20px; overflow-x: auto; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { background: var(--blue); color: var(--white); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 0; padding: 14px 26px; font-weight: 600; text-decoration: none; }
.entry-content .wp-block-button__link:hover { color: var(--white); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.entry-content .wp-block-embed { margin-bottom: 32px; }
.entry-content .alignleft { float: left; margin: 6px 28px 16px 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 6px 0 16px 28px; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 1200px) { .entry-content .alignwide { margin-left: -110px; margin-right: -110px; max-width: none; } }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

/* ---------- Tavaline leht / 404 ---------- */
.page-plain { padding-bottom: 96px; }
.page-plain .article__head { padding-bottom: 40px; }

/* ---------- Jalus ---------- */
.site-footer { background: var(--ink); color: var(--dim); }
.site-footer__in { padding-top: 26px; padding-bottom: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
	.btn, .card, .feature { transition: none; }
}
