/*
Theme Name: ÚČTO D(N)ES
Theme URI: https://uctodnes.sk/
Author: ÚČTO D(N)ES
Description: Ľahká responzívna redakčná téma s nastaviteľným logom, hero bannerom a identitou.
Version: 0.4.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: uctodnes
License: GPL-2.0-or-later
*/
:root{--brand:#174780;--ink:#0c1d39;--muted:#5a7078;--paper:#f5f8fc;--line:#dae5e7;--accent:#ffad16;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.65}a{color:var(--brand)}a:hover{text-decoration:none}img{max-width:100%;height:auto} .wrap{width:min(var(--max),calc(100% - 40px));margin-inline:auto}.skip-link{position:absolute;left:-999px}.skip-link:focus{left:16px;top:10px;background:#fff;padding:12px;z-index:99}.site-header{border-bottom:1px solid var(--line);background:#fff}.head-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:94px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:850;font-size:1.48rem;letter-spacing:-.035em}.brand img{max-height:67px;width:auto}.tagline{color:var(--muted);font-size:.85rem;display:block}.menu{display:flex;list-style:none;gap:25px;padding:0;margin:0;flex-wrap:wrap}.menu a{color:var(--ink);font-weight:650;text-decoration:none}.menu a:hover{color:var(--brand)}.hero{background:var(--paper);padding:80px 0;position:relative;overflow:hidden}.hero.has-image{background-size:cover;background-position:center}.hero.has-image::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,32,40,.89),rgba(8,32,40,.38))}.hero.has-image{color:white}.hero .wrap{position:relative;z-index:1}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-weight:800;font-size:.76rem;color:var(--brand)}.has-image .eyebrow{color:var(--accent)}h1,h2,h3{line-height:1.19;letter-spacing:-.035em}h1{font-size:clamp(2.3rem,6vw,4.35rem);margin:12px 0 22px;max-width:850px}h2{font-size:clamp(1.5rem,3vw,2.1rem)}.hero p{max-width:650px;font-size:1.14rem;margin-bottom:30px}.button{display:inline-block;background:var(--brand);color:#fff;text-decoration:none;font-weight:750;border-radius:7px;padding:13px 21px}.has-image .button{background:var(--accent);color:#172b31}.section{padding:62px 0}.section.tint{background:var(--paper)}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}.card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white;display:flex;flex-direction:column}.card-media{aspect-ratio:16/9;display:block;background:#e2eeee}.card-media img{width:100%;height:100%;object-fit:cover}.card-body{padding:22px;flex:1}.card h3{font-size:1.32rem;margin:10px 0}.card h3 a{color:var(--ink);text-decoration:none}.card .meta,.meta{color:var(--muted);font-size:.85rem}.pill{font-size:.78rem;letter-spacing:.02em;color:var(--brand);font-weight:800}.page-content{max-width:820px;padding:55px 0 80px}.page-content h1{font-size:clamp(2rem,4vw,3rem)}.article-media{margin:20px 0 30px}.article-media img{border-radius:12px}.site-footer{background:#102b32;color:#e4eff0;padding:45px 0}.site-footer a{color:#e4eff0}.foot-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.pagination{margin-top:35px}.wp-block-image img{height:auto}input,textarea,select{max-width:100%} :focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:800px){.head-inner{align-items:flex-start;flex-direction:column;padding:18px 0}.menu{gap:12px 19px}.hero{padding:58px 0}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.wrap{width:min(var(--max),calc(100% - 28px))}.grid{grid-template-columns:1fr}.section{padding:42px 0}}

/* ÚČTO D(N)ES – redakčný rozcestník */
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.topic{position:relative;display:flex;gap:18px;align-items:center;border:1px solid #e1e7f0;border-top:4px solid var(--topic);border-radius:15px;background:#fff;padding:18px;text-decoration:none;color:var(--ink);box-shadow:0 4px 20px rgba(10,33,64,.04);transition:transform .2s,box-shadow .2s}.topic:hover{transform:translateY(-3px);box-shadow:0 10px 25px rgba(10,33,64,.10)}.topic img{width:90px;height:90px;object-fit:contain;flex-shrink:0}.topic strong{display:block;font-size:1.06rem;line-height:1.25}.topic small{display:block;color:var(--muted);line-height:1.4;margin-top:6px}.topic-label{font-size:.74rem;color:#54739b;letter-spacing:.11em;text-transform:uppercase;font-weight:800}.feature{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center;background:#fff;border:1px solid #e1e7f0;border-radius:18px;overflow:hidden}.feature-media{padding:25px;background:#fafbfd}.feature-media img{width:100%;max-height:410px;object-fit:contain}.feature-copy{padding:32px 36px 32px 0}.feature-copy p{color:var(--muted)}.hero.editorial{background:linear-gradient(125deg,#f2f7fd 0%,#fff 66%);padding:65px 0 75px}.hero.editorial .hero-layout{display:grid;grid-template-columns:1.45fr .7fr;gap:35px;align-items:center}.hero.editorial h1{font-size:clamp(2.3rem,4.8vw,4.2rem)}.hero-mark img{max-height:310px;width:100%;object-fit:contain}.brand-text{font-weight:800}.tagline{max-width:420px}.section-desc{max-width:800px;color:var(--muted);margin-top:-8px;margin-bottom:25px}.tools-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tool-item{border:1px solid var(--line);background:#fff;padding:24px;border-radius:14px}.tool-item h3{margin-top:0;font-size:1.2rem}.tool-item p{color:var(--muted);margin-bottom:0}.subtle-note{font-size:.85rem;color:var(--muted)}.head-inner .brand img{max-height:82px}.single .page-content p{overflow-wrap:anywhere}@media(max-width:860px){.topic-grid,.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero.editorial .hero-layout{grid-template-columns:1fr .45fr}}@media(max-width:620px){.topic-grid,.tools-grid{grid-template-columns:1fr}.hero.editorial .hero-layout,.feature{grid-template-columns:1fr}.hero-mark{display:none}.feature-copy{padding:8px 25px 27px}.feature-media{padding:18px}.topic img{width:78px;height:78px}}

/* Verzia 0.3: identita kategórií a detailu článku */
.category-hero{background:linear-gradient(115deg,#f5f8fc,#fff);padding:46px 0 39px;border-bottom:4px solid var(--topic-color,var(--brand))}
.category-heading{display:flex;align-items:center;gap:29px}.category-logo{width:146px;height:146px;object-fit:contain;flex:none}
.category-hero h1{font-size:clamp(2rem,4vw,3.25rem);margin:8px 0}.category-hero p{color:var(--muted);max-width:690px;margin:0}
.category-content{padding:44px 0 75px}.category-empty{background:var(--paper);padding:26px;border-radius:12px}
.category-topnav{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.category-topnav a{font-size:.83rem;text-decoration:none;border:1px solid var(--line);border-radius:99px;padding:5px 13px;background:white;color:var(--ink)}.category-topnav a[aria-current=page]{border-color:var(--topic-color,var(--brand));font-weight:800}
.article-topic{display:flex;align-items:center;gap:12px;margin-bottom:17px;text-decoration:none;font-weight:750;color:var(--topic-color,var(--brand))}.article-topic img{width:54px;height:54px;object-fit:contain}
.article-box{border-top:4px solid var(--topic-color,var(--brand));border-radius:10px;background:var(--paper);padding:23px 26px;margin:45px 0 20px}
.article-box h2{font-size:1.35rem;margin-top:0}.article-box p{margin-bottom:0}.article-related .grid{margin-top:20px}
.page-feature-hero{display:grid;grid-template-columns:1fr 260px;gap:35px;align-items:center;margin-bottom:35px}.page-feature-hero img{width:100%;height:auto;border-radius:14px}
.callout{background:var(--paper);padding:20px 25px;border-left:4px solid var(--brand);border-radius:5px}
@media(max-width:600px){.category-heading{align-items:flex-start;gap:12px}.category-logo{width:86px;height:86px}.page-feature-hero{grid-template-columns:1fr}.page-feature-hero img{max-width:230px}}

/* 0.4: navigácia s podmenu a tematické karty */
.head-inner{min-width:0}.head-inner>div:first-child{min-width:0;flex:0 1 380px}.primary-navigation{flex:1;min-width:0}.primary-navigation .menu{justify-content:flex-end;align-items:center;gap:10px 22px;flex-wrap:wrap}.primary-navigation .menu li{list-style:none;position:relative}.primary-navigation .menu > li{display:flex;align-items:center;gap:4px}.primary-navigation .menu a{display:block;padding:9px 2px;line-height:1.45}.primary-navigation .menu .sub-menu{display:none;position:absolute;z-index:100;right:0;left:auto;top:100%;width:max-content;min-width:240px;max-width:min(360px,90vw);background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 13px 32px rgba(12,29,57,.14);padding:8px 0;margin:0}.primary-navigation .menu .sub-menu a{padding:10px 18px;white-space:normal}.primary-navigation .menu .sub-menu a:hover,.primary-navigation .menu .sub-menu a:focus-visible{background:var(--paper)}.primary-navigation .menu li:hover>.sub-menu,.primary-navigation .menu li:focus-within>.sub-menu,.primary-navigation .menu li.submenu-open>.sub-menu{display:block}.submenu-toggle{border:0;border-radius:5px;background:transparent;color:var(--ink);cursor:pointer;padding:8px 9px;font-size:15px;line-height:1}.submenu-toggle:before{content:'⌄';display:block;transform:translateY(-2px)}.submenu-open>.submenu-toggle:before{transform:rotate(180deg)}.topic-card{border-top:4px solid var(--topic-color)}.topic-pill{color:var(--topic-color);display:flex;align-items:center;gap:8px}.topic-pill img{height:35px;width:35px;object-fit:contain}.card-topic-media{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f4f7fd,#fff)}.card-topic-media img{max-height:90%;max-width:55%;height:auto;width:auto;object-fit:contain}
@media(max-width:800px){.head-inner>div:first-child{flex:auto}.primary-navigation{width:100%}.primary-navigation .menu{justify-content:flex-start;gap:6px 17px}.primary-navigation .menu .sub-menu{left:0;right:auto}}
@media(max-width:560px){.primary-navigation .menu{display:block}.primary-navigation .menu>li{display:flex;flex-wrap:wrap;justify-content:space-between;border-bottom:1px solid var(--line)}.primary-navigation .menu>li>a{flex:1}.primary-navigation .menu .sub-menu{position:static;width:100%;max-width:100%;box-shadow:none;border:0;border-radius:0;padding:0 0 10px 13px;flex-basis:100%}.primary-navigation .menu li:hover>.sub-menu{display:none}.primary-navigation .menu li.submenu-open>.sub-menu,.primary-navigation .menu li:focus-within>.sub-menu{display:block}}
