/* Kakse: a reading-first Bulgarian publication. All assets are local. */
:root{color-scheme:light;--paper:#fff;--surface:#f2f7f3;--ink:#182a23;--muted:#50645b;--line:#d7e3dc;--control-border:#7c9385;--accent:#176747;--accent-hover:#104d35;--accent-soft:var(--surface);--visited:#655078;--focus:#965000;--sans:Arial,'Segoe UI',sans-serif;--reading-font:var(--sans);--reading:70ch;--body-size:1.25rem}
:root[data-theme=dark]{color-scheme:dark;--paper:#121c17;--surface:#1a2a21;--ink:#edf5ef;--muted:#aac3b3;--line:#334a3d;--control-border:#7f9c8b;--accent:#91d8ae;--accent-hover:#bfe8ce;--visited:#d2b9eb;--focus:#f5cc85}
*{box-sizing:border-box}html{scroll-padding-top:1.5rem}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:1.0625rem;line-height:1.55;-webkit-text-size-adjust:100%}
body.accent-forest{--accent:#176747;--accent-hover:#104d35}body.accent-clay{--accent:#a03926;--accent-hover:#7c2819}[data-theme=dark] body.accent-forest{--accent:#91d8ae;--accent-hover:#bfe8ce}[data-theme=dark] body.accent-clay{--accent:#ffb3a0;--accent-hover:#ffcfbf}
.type-serif{--reading-font:Georgia,'Times New Roman',serif}.width-65{--reading:65ch}.width-75{--reading:75ch}
a{color:var(--accent);text-underline-offset:.19em;text-decoration-thickness:1px}a:visited{color:var(--visited)}a:hover{color:var(--accent-hover);text-decoration-thickness:2px}
button,input,select,textarea{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--control-border);border-radius:6px}
button,select{cursor:pointer}button,select,input:not([type=checkbox]):not([type=radio]){min-height:44px}button{padding:.55rem 1rem;font-weight:600}button:hover{border-color:var(--accent);background:var(--surface)}button:disabled{opacity:.6;cursor:not-allowed}input,textarea,select{max-width:100%;padding:.55rem .75rem}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input[type=checkbox],input[type=radio]{accent-color:var(--accent)}textarea{width:100%;min-height:9rem}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px}main:focus{outline:0}[hidden]{display:none!important}img,video{max-width:100%;height:auto}iframe{max-width:100%}figure{margin:0}svg{flex-shrink:0}
h1,h2,h3,h4,h5,h6{font-family:var(--sans);font-weight:700;line-height:1.15;overflow-wrap:anywhere;letter-spacing:-.025em}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,3.5vw,3.25rem)}h2{font-size:1.75rem}h3{font-size:1.4rem}ul,ol{padding-left:1.5rem}.wrap{width:calc(100% - 6rem);max-width:1240px;margin-inline:auto}.muted{color:var(--muted)}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:10000;top:.6rem;left:.6rem;padding:.8rem 1rem;transform:translateY(-200%);background:var(--ink);color:var(--paper)}.skip-link:focus{transform:translateY(0);color:var(--paper)}
/* The header keeps its reading-mode control within reach at every width. */
.masthead{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:2rem}.brand-group{display:flex;align-items:center;gap:1.6rem;min-width:0}.brand{display:inline-flex;text-decoration:none;color:var(--ink)!important;align-items:center;max-width:100%}.wordmark{font-size:2.5rem;line-height:1;letter-spacing:-.055em;font-weight:800;white-space:nowrap}.wordmark>span{color:var(--accent);font-size:.7em;letter-spacing:-.04em}.brand-caption{font-size:.875rem;line-height:1.3;color:var(--muted);max-width:8ch}.brand-image{width:auto;max-width:235px;max-height:60px;object-fit:contain}.logo-dark{display:none}[data-theme=dark] .logo-dark{display:block}[data-theme=dark] .logo-light{display:none}
.header-tools{display:flex;align-items:center;gap:.75rem}.header-search{width:300px}.header-search .search-form{padding:2px;border-color:var(--control-border);background:var(--surface)}.header-search .search-form input{font-size:.875rem}.header-search .search-form button{background:transparent;color:var(--accent);padding-inline:.75rem;font-size:.875rem}
.mode-control{position:relative;flex:0 0 44px}.icon-button{display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;padding:0;border-color:transparent;background:transparent}.mode-moon{display:none}[data-theme=dark] .mode-moon{display:block}[data-theme=dark] .mode-sun{display:none}
.mode-options{position:absolute;z-index:50;right:0;top:calc(100% + .75rem);width:184px;margin:0;padding:.6rem;border:1px solid var(--control-border);border-radius:10px;background:var(--paper);box-shadow:0 8px 24px #00000012}.mode-options legend{float:left;width:100%;font-size:.8125rem;color:var(--muted);padding:.3rem .5rem;font-weight:600}.mode-options label{clear:both;display:flex;align-items:center;gap:.75rem;min-height:44px;padding:.5rem;border-radius:5px;font-size:1rem;cursor:pointer}.mode-options label:has(input:checked){background:var(--surface);font-weight:700}.mode-options label:hover{background:var(--surface)}.mode-options input{width:18px;height:18px;flex-shrink:0;margin:0}
.menu-toggle{display:inline-flex;align-items:center;gap:.5rem;border-color:transparent;background:transparent;font-size:.875rem;padding:.5rem}.nav-rule{border-block:1px solid var(--line)}.primary-nav>.menu{display:flex;align-items:center;justify-content:space-between;list-style:none;margin:0;padding:0;gap:1.25rem}.primary-nav a{color:var(--ink);text-decoration:none;font-size:.9375rem;font-weight:500;display:inline-flex;align-items:center;min-height:50px;line-height:1.3;padding-block:.65rem}.primary-nav a:hover,.primary-nav a[aria-current=page]{color:var(--accent);text-decoration:underline}.primary-nav li{position:relative}.primary-nav .sub-menu{position:absolute;z-index:20;top:100%;left:0;min-width:15rem;background:var(--paper);border:1px solid var(--line);border-radius:0 0 8px 8px;padding:.6rem 1rem;list-style:none;display:none}.primary-nav li:hover>.sub-menu,.primary-nav li:focus-within>.sub-menu{display:block}.primary-nav .sub-menu .sub-menu{position:static;border:0;padding-left:.75rem}.primary-nav .sub-menu a{min-height:44px}.nav-search{display:none}
.has-js .mode-control[hidden]{display:block!important}
/* Search is a native GET form everywhere, including without scripts. */
.search-form{display:flex;width:100%;gap:0;border:1px solid var(--control-border);border-radius:8px;background:var(--paper);padding:5px}.search-form input{min-width:0;width:100%;flex:1;border:0;background:transparent;padding:.7rem .85rem;font-size:1rem;outline-offset:-3px}.search-form button{background:var(--accent);color:var(--paper);border:0;white-space:nowrap;padding-inline:1.25rem;min-height:48px;font-size:1rem}.search-form button:hover{background:var(--accent-hover)}
.intro{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;padding:2.75rem 0 2.5rem;border-bottom:1px solid var(--line);margin-bottom:2rem}.intro h1{font-size:clamp(1.8rem,2.8vw,2.5rem);margin-bottom:.6rem;letter-spacing:-.035em}.intro p{font-size:1.0625rem;color:var(--muted);margin-bottom:0}.intro-search{width:100%}
.eyebrow{font-family:var(--sans);font-size:.8125rem;line-height:1.5;font-weight:600;color:var(--accent);letter-spacing:0}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.section-heading h2{font-size:1.375rem;margin:0;letter-spacing:-.015em}.section-rule{border-top:1px solid var(--line);padding-top:2rem}.story{min-width:0}.story-context{display:flex;align-items:center;gap:.35rem 1rem;flex-wrap:wrap;margin-bottom:.75rem}.story-context>.category-link{text-decoration:none}.story-context>.category-link:hover{text-decoration:underline}.post-meta{display:flex;gap:.35rem 1rem;flex-wrap:wrap;color:var(--muted);font-family:var(--sans);font-size:.8125rem;line-height:1.65}.post-meta a{color:inherit}.story h2{font-size:1.5rem;margin:0 0 .75rem;line-height:1.22;letter-spacing:-.02em}.story h2 a{color:var(--ink);text-decoration:none}.story h2 a:visited{color:var(--visited)}.story h2 a:hover{color:var(--accent);text-decoration:underline}.story>p{font-size:1rem;color:var(--muted);line-height:1.6;margin:0;overflow-wrap:anywhere}
.latest{margin-bottom:3rem}.latest-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2.5rem}.latest-grid>.story{grid-column:span 6;padding:1.65rem 0;border-top:1px solid var(--line)}.latest-grid>.story:first-child{grid-column:1/8;grid-row:1/4;padding:2rem 2.25rem;border:0;background:var(--surface);border-radius:10px;margin-bottom:2rem;align-self:stretch;display:flex;flex-direction:column;justify-content:center}.latest-grid>.story:first-child h2{font-size:clamp(2rem,3.25vw,2.9rem);line-height:1.12;max-width:24ch;margin-bottom:1.1rem}.latest-grid>.story:first-child .story-context{margin-bottom:1.2rem}.latest-grid>.story:first-child p{font-size:1.125rem;line-height:1.65;max-width:56ch}
.latest-grid>.story:nth-child(2),.latest-grid>.story:nth-child(3),.latest-grid>.story:nth-child(4){grid-column:8/13;padding:1.25rem 0}.latest-grid>.story:nth-child(2){padding-top:0;border-top:0}.latest-grid>.story:nth-child(4){margin-bottom:2rem;padding-bottom:0}.latest-grid>.story:nth-child(n+2):nth-child(-n+4) h2{font-size:1.375rem}.latest-grid>.story:nth-child(n+2):nth-child(-n+4)>p{display:none}
.pagination{border-top:1px solid var(--line);padding-top:1.5rem;margin-top:1.5rem}.pagination ul{display:flex;gap:.45rem;justify-content:center;flex-wrap:wrap;list-style:none;padding:0;margin:0}.pagination a,.pagination span.page-numbers{display:flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;padding:.4rem .85rem;text-decoration:none;color:var(--ink);border-radius:6px;font-size:.9375rem}.pagination .current{background:var(--accent)!important;color:var(--paper)!important;font-weight:700}.pagination a:hover{background:var(--surface)}
.topics-section{background:var(--surface);border-radius:10px;padding:2rem 2.25rem;margin-block:3rem}.topic-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem 2rem}.topic-strip a{display:flex;align-items:center;min-height:44px;font-size:1.0625rem;text-decoration:none;color:var(--ink);font-weight:600}.topic-strip a:hover{color:var(--accent);text-decoration:underline}
.featured{margin-bottom:3rem}.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.feature-grid>.story{padding-left:1.25rem;border-left:2px solid var(--accent)}
/* Archives favour scanning a long collection over repeated front-page panels. */
.archive-main{padding-block:3rem}.archive-header{margin-bottom:2.5rem;max-width:980px}.archive-header h1{font-size:clamp(2rem,3.6vw,3rem);margin-bottom:1rem}.archive-description{font-size:1.125rem;max-width:65ch;color:var(--muted)}.archive-grid{max-width:1080px}.archive-grid>.story{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:3rem;padding:1.7rem 0;border-top:1px solid var(--line)}.archive-grid .story-context{grid-column:1/-1}.archive-grid .story h2{margin-bottom:0;font-size:1.75rem;max-width:32ch}.archive-grid .story>p{align-self:start;font-size:1rem}.page-index{color:var(--muted);font-size:.65em;font-weight:500;white-space:normal}.search-header .search-form{max-width:670px;margin-bottom:1.25rem}.search .archive-grid{max-width:860px}.search .archive-grid>.story{display:block}.search .archive-grid .story h2{max-width:none;margin-bottom:.7rem}.search .archive-grid .story p{max-width:75ch}.search .archive-header .eyebrow{display:none}
.empty-state{max-width:700px;padding:1.5rem 0 3rem}.empty-state .menu,.error-main .menu{display:flex;flex-wrap:wrap;gap:.7rem 1.3rem;list-style:none;padding:1rem 0}.empty-state .menu a,.error-main .menu a{display:inline-flex;align-items:center;min-height:44px}.error-main{padding-block:4rem;max-width:800px}.error-main h1{font-size:clamp(2.25rem,4.5vw,3.5rem)}.error-main>.search-form{margin-top:2rem}
/* The publication name stays distinct from the theme developer credit. */
.site-footer{border-top:1px solid var(--line);background:var(--surface);padding:2.5rem 0 1rem}.footer-top{display:flex;justify-content:space-between;align-items:center;gap:2rem}.footer-top .wordmark{font-size:2rem}.footer-top p{color:var(--muted);font-size:.9375rem;margin:.75rem 0 0}.back-top{font-size:.875rem;display:inline-flex;min-height:44px;align-items:center}.footer-widgets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3rem;margin-top:2rem;padding-top:2rem;border-top:1px solid var(--line)}.widget{min-width:0;margin-bottom:2rem}.widget-title{font-size:1.125rem}.widget ul{list-style:none;padding:0;margin:0}.widget li{margin-bottom:.75rem}.widget a{font-size:.9375rem;line-height:1.55}.widget img{height:auto}.footer-bottom{border-top:1px solid var(--line);margin-top:2rem;padding-top:1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center;font-size:.8125rem;color:var(--muted)}.footer-bottom p{margin:0}.footer-bottom ul{margin:0;display:flex;flex-wrap:wrap;gap:1.2rem;list-style:none;padding:0}.footer-bottom a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted)}.breadcrumbs{margin:0 0 1.75rem;font-size:.8125rem;color:var(--muted)}.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:.45rem;margin:0;padding:0}.breadcrumbs li+li:before{content:'/';padding-right:.45rem;color:var(--muted)}.breadcrumbs a{color:var(--muted)}.breadcrumbs li:last-child{max-width:65ch;overflow-wrap:anywhere}.kig-html-sitemap ul,.sitemap-content ul{columns:2;column-gap:3rem}.sitemap-content li{break-inside:avoid}.sitemap-content h2{margin-top:2rem}
@media(max-width:1100px){.wrap{width:calc(100% - 4rem)}.brand-caption{display:none}.primary-nav>.menu{gap:1.25rem;flex-wrap:wrap;justify-content:flex-start}.primary-nav a{min-height:44px;font-size:.875rem}.latest-grid{column-gap:2rem}.latest-grid>.story:first-child{padding:1.75rem}.latest-grid>.story:first-child h2{font-size:2.25rem}.footer-widgets{gap:2rem}}
@media(max-width:760px){.wrap{width:calc(100% - 2.5rem)}.masthead{min-height:78px;gap:.75rem}.wordmark{font-size:2.125rem}.brand-image{max-width:160px;max-height:48px}.header-tools{gap:.5rem}.header-search{display:none}.menu-toggle{font-size:.875rem}.has-js .menu-toggle[hidden]{display:inline-flex!important}.has-js .primary-nav:not([data-open=true]){display:none}.has-js .nav-rule:has(.primary-nav:not([data-open=true])){border-bottom:0}.primary-nav>.menu{display:block;padding:.5rem 0}.primary-nav a{font-size:1rem;min-height:44px}.primary-nav .sub-menu{position:static;display:block;min-width:0;border:0;padding:.1rem 1rem}.nav-search{display:block;padding:.5rem 0 1rem}.intro{grid-template-columns:1fr;gap:1.1rem;padding:1.8rem 0 1.75rem;margin-bottom:1.75rem}.intro h1{font-size:1.875rem;max-width:21ch;margin-bottom:.55rem}.intro p{font-size:1rem}.search-form input{font-size:1rem;padding-inline:.65rem}.search-form button{padding-inline:1rem;font-size:.9375rem}.section-heading{margin-bottom:1.1rem}.section-heading h2{font-size:1.25rem}
.latest-grid{display:block}.latest-grid>.story{padding:1.5rem 0}.latest-grid>.story:first-child{padding:1.5rem;margin:0 0 .3rem;display:block;border-radius:8px}.latest-grid>.story:first-child h2{font-size:2rem;max-width:none;line-height:1.15}.latest-grid>.story:first-child p{font-size:1.0625rem;line-height:1.6}.latest-grid>.story:first-child .story-context{margin-bottom:.9rem}.latest-grid>.story:nth-child(2){padding-top:1.5rem}.latest-grid>.story:nth-child(4){margin-bottom:0;padding-bottom:1.5rem}.latest-grid>.story:nth-child(n+2):nth-child(-n+4) h2{font-size:1.5rem}.latest-grid>.story:nth-child(n+2):nth-child(-n+4)>p{display:block}.story h2{font-size:1.5rem}.story-context{gap:.3rem .8rem}.story-context .post-meta,.story-context .eyebrow{font-size:.8125rem}.story>p{font-size:1rem}.latest{margin-bottom:2rem}.pagination{margin-top:.5rem}.topics-section{padding:1.5rem;margin-block:2.5rem}.topic-strip{grid-template-columns:1fr 1fr;gap:.6rem 1.25rem}.topic-strip a{font-size:.9375rem}.feature-grid{grid-template-columns:1fr;gap:1.5rem}.archive-main{padding-block:2rem}.archive-header{margin-bottom:1.75rem}.archive-header h1{font-size:2.25rem}.archive-description{font-size:1.0625rem}.archive-grid>.story{display:block;padding:1.5rem 0}.archive-grid .story h2{font-size:1.5rem;max-width:none;margin-bottom:.65rem}.footer-top,.footer-bottom{align-items:flex-start;flex-direction:column;gap:1rem}.footer-widgets{grid-template-columns:1fr;gap:.5rem}.site-footer{padding-top:2rem}.footer-bottom{margin-top:1.5rem}.kig-html-sitemap ul,.sitemap-content ul{columns:1}.breadcrumbs{font-size:.75rem;margin-bottom:1.5rem}}
@media(max-width:360px){.wrap{width:calc(100% - 2rem)}.wordmark{font-size:1.875rem}.header-tools{gap:.125rem}.menu-toggle{padding-inline:.3rem}.menu-toggle span{display:none}.menu-toggle{min-width:44px;justify-content:center}.brand-image{max-width:145px}.intro h1{font-size:1.75rem}.latest-grid>.story:first-child{padding:1.25rem}.latest-grid>.story:first-child h2{font-size:1.875rem}.topic-strip{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(forced-colors:active){button,input,select,textarea,.toc,.search-form,.mode-options,.latest-grid>.story:first-child{border:1px solid CanvasText}:focus-visible{outline-color:Highlight}.search-form button,.pagination .current{color:ButtonText!important;border:1px solid ButtonText!important}.mode-options label:has(input:checked){outline:1px solid Highlight}}
/* Explicit submenus retain parent links; without JavaScript all children are visible. */
.primary-nav .sub-menu{display:block;position:static;min-width:0}.has-js .primary-nav .sub-menu{display:none;position:absolute;min-width:15rem}.has-js .primary-nav .sub-menu[data-open=true]{display:block}.has-js .primary-nav .sub-menu .sub-menu{position:static;min-width:0}.primary-nav li:has(>.submenu-toggle){display:flex;align-items:center;flex-wrap:wrap}.primary-nav .sub-menu li>a{flex:1}.primary-nav .sub-menu .sub-menu{flex-basis:100%}.submenu-toggle{width:44px;height:44px;padding:0;border-color:transparent;background:transparent;font-size:1.25rem;line-height:1;flex-shrink:0}
@media(max-width:760px){.has-js .primary-nav .sub-menu{position:static;min-width:0;flex-basis:100%}.primary-nav li:has(>.submenu-toggle)>a{flex:1}}
.primary-nav>.menu{flex-wrap:wrap}.has-js .primary-nav .menu-item-has-children{padding-right:44px}.primary-nav .menu-item-has-children>.submenu-toggle{position:absolute;right:0;top:0}.primary-nav .sub-menu a{min-width:0;overflow-wrap:anywhere}.has-js .primary-nav .sub-menu{max-width:calc(100vw - 2rem)}.has-js .primary-nav .sub-menu.submenu-align-end{left:auto;right:0}@media(max-width:760px){.has-js .primary-nav .menu-item-has-children>.sub-menu{margin-right:-44px;flex-basis:calc(100% + 44px)}}
/* Text zoom may need another header row; controls must never cover the wordmark. */
.masthead{flex-wrap:wrap;padding-block:.75rem}.brand-group{flex-shrink:0;max-width:100%}.header-tools{position:relative;margin-left:auto;max-width:100%}.mode-control{position:static}.wordmark{white-space:normal;overflow-wrap:anywhere;max-width:100%}.wordmark>span{display:inline-block}.mode-options{width:11.5rem;min-width:0;max-width:calc(100vw - 2rem)}.mode-options label,.mode-options legend{overflow-wrap:anywhere}
.topic-strip a{min-width:0;overflow-wrap:anywhere}@media(max-width:760px){.topic-strip{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}}

/* The optional face shares the base request; unused faces do not download. */
@font-face{font-family:'Sofia Sans';font-style:normal;font-weight:400 800;font-display:optional;src:url('../fonts/SofiaSans-400-800.woff2') format('woff2')}
.type-sofia{--sans:'Sofia Sans',Arial,sans-serif;--reading-font:var(--sans)}

/* Kakse identity; the blue preset remains an explicit choice. */
body.accent-blue{--accent:#075bd8;--accent-hover:#0648a8}[data-theme=dark] body.accent-blue{--accent:#86b8ff;--accent-hover:#b8d5ff}.wordmark .wordmark-action{font-size:1em;color:var(--accent);letter-spacing:inherit}.wordmark .wordmark-domain{font-size:.72em;color:var(--ink);letter-spacing:-.03em}.brand-caption{max-width:16ch}


