/*
Theme Name: Kandidát – Miloš Gallo
Description: Web kandidáta na poslanca ŽSK: úvod, program, prísľub, formulár na podnety, ako voliť a novinky. Bez externých fontov a skriptov.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kandidat
*/

/* Písmo Poppins je súčasťou motívu (licencia OFL), nič sa nesťahuje z Google. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
	src: url("assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("assets/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
	src: url("assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("assets/fonts/poppins-latin-ext-700-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
	src: url("assets/fonts/poppins-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
	src: url("assets/fonts/poppins-latin-ext-800-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap;
	src: url("assets/fonts/poppins-latin-800-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	/* Farby z letáku */
	--blue: #30b1e8;
	--blue-dark: #0a78b0;
	--blue-pale: #eaf7fd;
	--yellow: #fbee09;
	--green: #95c11f;
	--green-dark: #5d8a00;
	--ink: #101820;
	--bg: #ffffff;
	--text: #1c2530;
	--muted: #55606e;
	--line: #d9e6ee;
	--radius: 16px;
	--sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--sans); font-weight: 800; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.small { font-size: .9rem; color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .6em; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.brand-slogan { display: block; font-size: .98rem; line-height: 1.15; }
.brand-slogan em { color: var(--green); }
.brand-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--blue); color: var(--ink); font-size: 1.15rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--blue-dark); }
.nav .nav-cta { background: var(--green); color: var(--ink); padding: 8px 18px; border-radius: 999px; font-weight: 700; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--blue); border-radius: 8px; padding: 6px 14px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }

/* Tlačidlá */
.btn { display: inline-block; background: var(--green); color: var(--ink); border: 2px solid var(--green); padding: 12px 28px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; margin: 0 8px 8px 0; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero {
	/* Fotka okolia ako pozadie; vľavo ju prekrýva biely závoj, aby bol text čitateľný, vpravo je vidno celú */
	background-color: #fff;
	background-image: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.9) 40%, rgba(255,255,255,.35) 68%, rgba(255,255,255,0) 100%), url("assets/hero-bg.jpg");
	background-size: cover;
	background-position: center;
	padding-top: 48px;
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; }
.hero-text { padding-bottom: 56px; align-self: center; }
.headline em { color: var(--green); }
.hero-name { display: flex; align-items: center; gap: 18px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; color: var(--ink); letter-spacing: .02em; margin: 0 0 24px; }
.num-ring { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; border: 4px solid var(--blue); border-radius: 50%; font-size: .9em; line-height: 1; }
/* Číslo zakrúžkované perom */
.pen-circle { position: relative; display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; font-size: .9em; line-height: 1; cursor: pointer; }
.pen-svg { position: absolute; left: -8.3%; top: -8.3%; width: 116.7%; height: 116.7%; overflow: visible; pointer-events: none; }
.pen-path { fill: none; stroke: var(--blue); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.pen-nib { opacity: 0; transition: opacity .25s ease; }
.final-ring { display: flex; justify-content: center; margin-bottom: 22px; }
.final .pen-circle { font-size: clamp(3rem, 9vw, 5rem); font-weight: 800; color: var(--yellow); }
.final .pen-path { stroke: #fff; }

.credentials { display: inline-block; background: var(--yellow); padding: 14px 20px; border-radius: 6px; font-weight: 600; color: var(--ink); margin-bottom: 28px; }
.credentials strong { display: block; font-weight: 800; }
.credentials span { display: block; }
.hero-media { align-self: end; }
.hero-media img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.date-band { background: var(--blue); color: var(--ink); text-align: center; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .9rem; padding: 14px 0; }
.hero-date { color: var(--muted); font-weight: 700; }

/* Sekcie */
.section { padding: 76px 0; }
.section.alt { background: var(--blue-pale); }
.section.tight { padding-top: 0; }
.me p:first-of-type { font-size: 1.12rem; }
.me h2 { margin-bottom: .7em; }
.section.dark { background: var(--blue-dark); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .kicker { color: var(--yellow); }
.big-num { color: var(--green-dark); }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5em 0 0; }
.tags li { background: var(--yellow); padding: 4px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; color: var(--ink); }

/* Program */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 36px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 20px; }
.tick { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.card details { margin-top: .4em; }
.card summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); padding: 6px 0; list-style: none; }
.card summary::-webkit-details-marker { display: none; }
.card summary::after { content: " ▾"; }
.card details[open] summary::after { content: " ▴"; }
.card details[open] summary { margin-bottom: .6em; }

/* Prísľub */
.promise { font-size: 1.15rem; margin-bottom: 1.2em; }
.promise strong { color: #fff; display: block; font-size: 1.4rem; font-weight: 800; }
.closing { font-size: 1.5rem; font-weight: 800; color: var(--yellow); margin-top: 1.4em; }

/* Postup / kroky */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 32px 0; }
.step { border-top: 5px solid var(--green); padding-top: 16px; }
.step .tick { margin-bottom: 8px; }
.step-when { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--blue-dark); margin-bottom: .3em; }

/* Tabuľka hlasovaní */
.table-title { margin-top: 2em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.votes { width: 100%; border-collapse: collapse; font-size: .95rem; }
.votes th, .votes td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.votes th { background: var(--blue-pale); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.votes tr:last-child td { border-bottom: 0; }

/* Formulár */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.examples { padding-left: 1.2em; color: var(--muted); font-style: italic; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.form input[type=text], .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; border: 1px solid #b7c7d2; border-radius: 10px; background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue-dark); outline: 2px solid var(--blue); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 10px; font-weight: 600; margin-bottom: 18px; }
.notice.ok { background: #e6f4ea; color: #14532d; }
.notice.err { background: #fde8e8; color: #7f1d1d; }

/* Novinky */
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.news-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.news-item h3 a, .news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h3 a:hover, .news-item h2 a:hover { color: var(--blue-dark); }
.meta { color: var(--muted); font-size: .9rem; font-weight: 600; }
.pill { background: var(--yellow); color: var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* Zdieľanie / záver */
.share { margin-top: 8px; }
.final { text-align: center; }
.final-num { font-weight: 800; font-size: clamp(6rem, 20vw, 10rem); line-height: 1; color: var(--yellow); }
.final .hero-date { color: #d5eefa; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; }
.contact-links a { color: #fff; font-weight: 700; }
.contact-links a:hover { color: var(--yellow); }

/* Obsah príspevkov */
.page-title { font-size: clamp(2rem, 5vw, 3rem); text-transform: none; }
.entry { font-size: 1.05rem; }
.entry img { border-radius: 10px; }
.post-img { margin: 0 0 1.5em; }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* Pätička */
.site-footer { background: var(--ink); color: #b4c2cf; padding: 36px 0; font-size: .9rem; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 .4em; }

/* Mobil */
@media (max-width: 820px) {
	body { font-size: 16px; }
	.header-in { min-height: 60px; gap: 10px; }
	.brand { gap: 8px; }
	.brand-num { width: 32px; height: 32px; font-size: 1rem; flex: none; }
	.brand-slogan { font-size: .72rem; }
	.nav { gap: 12px; flex: none; }
	.nav a { font-size: .82rem; }
	.nav .nav-cta { padding: 7px 11px; }
	.nav { gap: 10px; }
	.nav a { font-size: .78rem; }
	.hero { padding-top: 32px; background: linear-gradient(180deg, #eaf7fd 0%, #fff 100%); }
	.two-col { grid-template-columns: 1fr; }
	/* Mobil: slogan, potom fotka v modrom rámiku, potom meno a údaje */
	.hero-in { grid-template-columns: 1fr; gap: 0; align-items: start; }
	.hero-text { display: contents; }
	.hero-head { order: 1; margin: 0 0 18px; }
	.hero-media { order: 2; align-self: auto; display: flex; justify-content: center; align-items: flex-start; height: 340px; padding-top: 16px; overflow: hidden; border-radius: 24px; background: url("assets/hero-bg.jpg") 62% center / cover; margin-bottom: 26px; }
	.hero-media img { width: auto; max-width: none; height: 440px; margin: 0; }
	.hero-info { order: 3; padding-bottom: 36px; }
	.section { padding: 56px 0; }
	.cards { grid-template-columns: 1fr; }
	.votes thead { display: none; }
	.votes, .votes tbody, .votes tr, .votes td { display: block; width: 100%; }
	.votes tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
	.votes td { border: 0; padding: 4px 16px; }
	.votes td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 600; }
}

@media (max-width: 480px) {
	.nav a[href$="#program"] { display: none; }
}

@media (max-width: 360px) {
	.nav a:not(.nav-cta) { display: none; }
	.brand-slogan { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
