/*
Theme Name: Slovenska Politika
Theme URI: https://slovenskapolitika.si/
Author: OpenAI
Description: Svetla, odzivna uredniška WordPress tema za novičarski portal Slovenska politika.
Version: 1.1.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: slovenska-politika
*/
:root{--sp-green:#16834a;--sp-green-dark:#0d6035;--sp-green-soft:#eaf5ee;--sp-ink:#17221b;--sp-muted:#68756d;--sp-line:#e5ebe7;--sp-bg:#f5f7f5;--sp-white:#fff;--sp-width:1200px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--sp-bg);color:var(--sp-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65}
a{color:inherit;text-decoration:none}
a:hover{color:var(--sp-green)}
img{max-width:100%;height:auto;display:block}
button,input{font:inherit}
.container{width:min(var(--sp-width),calc(100% - 40px));margin-inline:auto}
.site-topline{background:#123d29;color:#eaf5ee;font-size:12px}
.topline-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.site-header{background:var(--sp-white);border-bottom:1px solid var(--sp-line)}
.header-main{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.brand{display:flex;align-items:center;gap:13px;min-width:0}
.custom-logo{max-height:62px;width:auto}
.brand-mark{width:52px;height:52px;border-radius:14px;background:var(--sp-green);color:white;display:grid;place-items:center;font-weight:900;font-size:25px;letter-spacing:-2px;box-shadow:0 5px 16px #16834a30}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-weight:800;font-size:clamp(23px,3vw,34px);line-height:1.05;letter-spacing:-1.2px}
.brand-tagline{font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--sp-muted);margin-top:5px}
.header-tools{display:flex;align-items:center;gap:12px}
.search-form{display:flex;border:1px solid var(--sp-line);border-radius:8px;overflow:hidden;background:#fff}
.search-form input{border:0;padding:10px 12px;min-width:170px;outline:0}
.search-form button{border:0;background:var(--sp-green);color:#fff;padding:0 14px;cursor:pointer}
.primary-nav{border-top:1px solid var(--sp-line)}
.primary-nav .menu,.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:0;flex-wrap:wrap}
.primary-nav li{margin:0}
.primary-nav a{display:block;padding:14px 17px;font-size:13px;font-weight:800;letter-spacing:.35px;text-transform:uppercase;border-bottom:3px solid transparent}
.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--sp-green);border-bottom-color:var(--sp-green)}
.mobile-menu-note{display:none}
.breaking{background:var(--sp-green-soft);border-bottom:1px solid #d9ebdf}
.breaking-inner{display:flex;align-items:center;gap:13px;min-height:42px;font-size:13px}
.breaking-label{background:var(--sp-green);color:#fff;font-weight:800;text-transform:uppercase;letter-spacing:.7px;padding:4px 9px;border-radius:3px;font-size:10px;white-space:nowrap}
.page-shell{padding:30px 0 55px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 17px;padding-bottom:10px;border-bottom:2px solid var(--sp-line)}
.section-heading h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1.2}
.section-heading h2:before{content:"";display:inline-block;width:5px;height:23px;background:var(--sp-green);margin-right:11px;vertical-align:-4px;border-radius:2px}
.section-heading a{font-size:12px;font-weight:800;color:var(--sp-green);text-transform:uppercase}
.hero-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:22px;margin-bottom:38px}
.hero-card,.story-card,.side-story,.article-panel,.content-panel{background:#fff;border:1px solid var(--sp-line);border-radius:10px;overflow:hidden}
.hero-image{aspect-ratio:16/9;background:linear-gradient(135deg,#dbece1,#a9cdb5);position:relative;overflow:hidden}
.hero-image img{width:100%;height:100%;object-fit:cover}
.image-placeholder{height:100%;display:grid;place-items:center;color:#39734e;font-family:Georgia,serif;font-size:20px;font-weight:700;background:linear-gradient(135deg,#e9f4ec,#cfe5d5)}
.hero-content{padding:23px 25px 25px}
.kicker{font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:1px;color:var(--sp-green);margin-bottom:8px}
.hero-content h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(27px,3.3vw,43px);line-height:1.12;letter-spacing:-.7px;margin:0 0 12px}
.excerpt{color:#536158;font-size:15px;margin:0 0 15px}
.meta{font-size:12px;color:var(--sp-muted);display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.hero-side{display:flex;flex-direction:column;gap:14px}
.side-story{display:grid;grid-template-columns:112px 1fr;min-height:112px}
.side-story .thumb{background:#e5eee8;min-height:112px}
.side-story .thumb img{width:100%;height:100%;object-fit:cover}
.side-story .side-copy{padding:12px}
.side-story h3{font-family:Georgia,serif;font-size:17px;line-height:1.2;margin:4px 0 7px}
.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:38px}
.story-card .thumb{aspect-ratio:16/9;background:#e5eee8;overflow:hidden}
.story-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .25s}
.story-card:hover .thumb img{transform:scale(1.035)}
.story-copy{padding:15px 16px 17px}
.story-copy h3{font-family:Georgia,serif;font-size:20px;line-height:1.23;margin:5px 0 9px}
.story-copy p{font-size:13px;color:var(--sp-muted);margin:0 0 11px}
.category-section{margin-bottom:38px}
.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.category-tile{background:#fff;border:1px solid var(--sp-line);border-radius:8px;padding:18px;min-height:115px}
.category-tile strong{display:block;font-family:Georgia,serif;font-size:19px;margin-bottom:6px}
.category-tile span{font-size:12px;color:var(--sp-muted)}
.archive-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px}
.archive-list{display:grid;gap:16px}
.archive-card{display:grid;grid-template-columns:230px 1fr;background:#fff;border:1px solid var(--sp-line);border-radius:9px;overflow:hidden}
.archive-card .thumb{background:#e5eee8;min-height:155px}
.archive-card .thumb img{width:100%;height:100%;object-fit:cover}
.archive-card .story-copy{padding:17px 19px}
.archive-card h2{font-family:Georgia,serif;font-size:23px;line-height:1.2;margin:4px 0 8px}
.sidebar-box{background:#fff;border:1px solid var(--sp-line);border-radius:9px;padding:18px;margin-bottom:17px}
.sidebar-box h3{font-family:Georgia,serif;margin:0 0 12px;font-size:20px}
.sidebar-box ul{padding-left:18px;margin:0}
.sidebar-box li{margin:7px 0;color:var(--sp-muted);font-size:14px}
.article-panel{padding:clamp(20px,4vw,42px)}
.article-header{max-width:850px;margin:0 auto 25px}
.article-header h1{font-family:Georgia,serif;font-size:clamp(32px,5vw,54px);line-height:1.08;letter-spacing:-1px;margin:8px 0 14px}
.article-lead{font-size:19px;color:#536158;line-height:1.55}
.article-featured{max-width:1000px;margin:0 auto 25px}
.article-featured img{width:100%;max-height:560px;object-fit:cover;border-radius:8px}
.article-body{max-width:760px;margin:0 auto;font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.85}
.article-body h2,.article-body h3{font-family:Inter,Arial,sans-serif;line-height:1.25;margin-top:1.7em}
.article-body a{color:var(--sp-green);text-decoration:underline}
.article-body blockquote{border-left:4px solid var(--sp-green);margin:25px 0;padding:8px 22px;color:#536158;background:var(--sp-green-soft)}
.article-footer{max-width:760px;margin:30px auto 0;border-top:1px solid var(--sp-line);padding-top:18px}
.content-panel{padding:clamp(22px,4vw,42px)}
.content-panel h1{font-family:Georgia,serif;font-size:clamp(32px,4vw,46px);margin-top:0}
.pagination{display:flex;gap:7px;margin-top:25px}
.pagination a,.pagination span{padding:8px 12px;border:1px solid var(--sp-line);border-radius:5px;background:#fff}
.pagination .current{background:var(--sp-green);color:#fff}
.site-footer{background:#123d29;color:#eaf5ee;padding:38px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:35px}
.site-footer h3{font-family:Georgia,serif;font-size:21px;margin:0 0 12px;color:#fff}
.site-footer p,.site-footer li{font-size:13px;color:#c5d8cb}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin:7px 0}
.footer-bottom{border-top:1px solid #ffffff25;margin-top:27px;padding-top:15px;font-size:11px;color:#b9cfc1}
.empty-state{background:#fff;padding:25px;border:1px dashed #cbd8cf;border-radius:8px;color:var(--sp-muted)}
.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:850px){.header-main{min-height:82px}.search-form input{min-width:110px}.hero-layout{grid-template-columns:1fr}.hero-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.archive-layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.container{width:min(100% - 26px,var(--sp-width))}.topline-inner{min-height:30px}.header-main{min-height:75px;gap:10px}.brand-mark{width:43px;height:43px;font-size:21px}.brand-name{font-size:23px}.brand-tagline{font-size:9px;letter-spacing:.8px}.header-tools .search-form{display:none}.primary-nav ul,.primary-nav .menu{display:grid;grid-template-columns:repeat(3,1fr)}.primary-nav a{text-align:center;padding:11px 5px;font-size:10px}.breaking-inner{font-size:11px}.page-shell{padding:20px 0 38px}.hero-content{padding:18px}.hero-side{grid-template-columns:1fr}.side-story{grid-template-columns:100px 1fr}.story-grid{grid-template-columns:1fr 1fr;gap:11px}.story-copy{padding:11px}.story-copy h3{font-size:17px}.story-copy p{display:none}.section-heading h2{font-size:22px}.archive-card{grid-template-columns:112px 1fr}.archive-card .thumb{min-height:120px}.archive-card h2{font-size:17px}.archive-card .story-copy{padding:11px}.archive-card .excerpt{display:none}.footer-grid{grid-template-columns:1fr}.article-body{font-size:18px}.article-lead{font-size:17px}}

/* Logo and accessibility refinements */
.brand-emblem{width:58px;height:58px;object-fit:contain;flex:0 0 auto;border-radius:10px}.site-header a:focus-visible,.site-footer a:focus-visible,.primary-nav a:focus-visible{outline:3px solid #80c99a;outline-offset:3px}
@media(max-width:600px){.brand-emblem{width:45px;height:45px}}
