/*
Theme Name: Infolaikas Hub
Theme URI: https://infolaikas.lt
Author: Infolaikas.lt
Description: Infolaikas.lt portalo tema - HUB navigacija + pagrindinis puslapis. Receptų puslapiai valdomi atskirai per "Infolaikas Receptai" pluginą (template_include) - ši tema jiems teikia tik header.php/footer.php.
Version: 1.2.4
Requires PHP: 7.4
Text Domain: infolaikas-hub-theme
*/

/* ====================================================================
 * Spalvos ir dydžiai PERIMAMI iš receptų plugino nustatymų (žr. functions.php,
 * kuris šias CSS kintamųjų reikšmes užpildo per wp_add_inline_style() iš
 * il_color_... ir il_radius_... opcijų). Čia tik numatytosios atsarginės reikšmės,
 * naudojamos, jei receptų pluginas kažkodėl neaktyvus.
 * ==================================================================== */
:root {
    --ih-ink: #2B2016;
    --ih-accent: #D9691E;
    --ih-sun: #E8A33D;
    --ih-sage: #3F5D3A;
    --ih-bg: #FAF6EF;
    --ih-radius-m: 20px;
    --ih-radius-l: 30px;
    --ih-card-bg: #FFFFFF;
    --ih-border: #E8DCC9;
    --ih-heading-font: 'Newsreader', Georgia, serif;
    --ih-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ih-seo-text-color: #6b5f50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    margin: 0;
    background: var(--ih-bg);
    color: var(--ih-ink);
    font-family: var(--ih-body-font);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Švelnūs dekoratyviniai gradiento debesys fone - kaip patvirtintame makete. */
body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    z-index: -1;
    pointer-events: none;
}
body::before {
    width: 420px; height: 420px; top: -120px; left: -120px;
    background: var(--ih-accent);
}
body::after {
    width: 380px; height: 380px; bottom: -140px; right: -100px;
    background: var(--ih-sun);
}

h1, h2, h3, .ih-serif {
    font-family: var(--ih-heading-font);
    font-weight: 600;
    margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.ih-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---- Layout: kairė reklama / turinys / dešinė reklama ---- */
/* "min-height: 100vh" ČIA (ne ant šoninių reklamų, kaip buvo anksčiau) -
 * tikrasis "lipnaus footer" sprendimas: visas puslapis visada užima BENT
 * visą ekrano aukštį, o footer'io blokas (.ih-main-footer-pin, žemiau)
 * "margin-top:auto" pats nusistumia iki TIKRO apačios krašto. Trumpame
 * puslapyje (pvz. 3 įrankių kortelės) footer dabar visada bus ekrano
 * apačioje, o ne iškart po turiniu. Ilgame puslapyje niekas nesikeičia -
 * "min-height" tik nustato apatinę ribą, niekada neapkarpo turinio. */
.ih-layout {
    display: flex;
    gap: 24px;
    max-width: 1460px;
    margin: 0 auto;
    padding: 16px;
    align-items: stretch;
    min-height: 100vh;
    box-sizing: border-box;
}
.ih-main {
    flex: 1; min-width: 0; max-width: 1080px; margin: 0 auto;
    display: flex; flex-direction: column;
}
.ih-main-footer-pin { margin-top: auto; }

.ih-rail {
    width: 160px; flex-shrink: 0;
    position: sticky; top: 90px;
    align-self: flex-start; /* reklama lieka prie viršaus, NE ištempta per visą (dabar 100vh) aukštį */
}
/* Tušti ar neaktyvūs rail'ai NERODOMI - jokio tarpo, ih-layout flex pats susitraukia. */
.ih-rail:empty { display: none; min-height: 0; }
@media (max-width: 1279px) {
    .ih-rail { display: none; } /* reklamos šonuose - tik desktop/tablet */
}
/* Customizer: Dizainas → Reklamos vietos → "seka slinkimą" išjungta. */
body.ih-rails-static .ih-rail { position: static; top: auto; min-height: 0; }

/* Vieta matoma TIK prisijungusiam administratoriui, kai reklamos kodas dar
   neįvestas/neįjungtas - kad būtų aišku, KUR tos vietos yra. Paprastam
   lankytojui vis tiek niekas nerodoma (tuščias rail'as lieka :empty). */
.ih-ad-placeholder {
    border: 2px dashed var(--ih-border);
    border-radius: var(--ih-radius-m);
    min-height: 260px;
    padding: 16px 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center;
}
.ih-ad-placeholder strong { font-size: 12px; color: #6b5f50; }
.ih-ad-placeholder small { font-size: 10px; color: #8F8172; line-height: 1.4; }
/* Horizontalios juostos (viršuje/apačioje) - plati ir žema, ne aukšta. */
.ih-ad-placeholder-banner {
    min-height: 60px; width: 100%; max-width: 468px; margin: 20px auto;
    flex-direction: row; gap: 10px; padding: 10px 16px;
}
.ih-ad-placeholder-banner strong, .ih-ad-placeholder-banner small { text-align: left; }
.ih-ad-placeholder-banner .ih-admin-edit-link { margin-left: auto; white-space: nowrap; }

/* ====================================================================
 * Administratoriui matomos "redaguoti čia" nuorodos - rodomos TIK
 * prisijungusiam administratoriui (current_user_can patikrinta PHP pusėje),
 * veda tiesiai į atitinkamą temos nustatymų/redagavimo vietą.
 * ==================================================================== */
.ih-admin-edit-link {
    display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700;
    color: var(--ih-accent); text-decoration: none; border-bottom: 1px dashed currentColor;
}
.ih-admin-edit-link:hover { opacity: .75; }

.ih-hub-card-wrap { position: relative; }
.ih-admin-pencil {
    position: absolute; top: 10px; left: 10px; z-index: 5;
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--ih-border); color: #8F8172;
    font-size: 11px; text-decoration: none; box-shadow: 0 2px 6px rgba(43,32,22,.12);
    transition: color .15s ease, border-color .15s ease;
}
.ih-admin-pencil:hover { color: var(--ih-accent); border-color: var(--ih-accent); }

.ih-ad-slot { display: flex; }
.ih-ad-top_banner, .ih-ad-bottom_banner, .ih-ad-between_content {
    margin: 20px 0; display: flex; justify-content: center; min-height: 60px;
}
.ih-ad-mobile_inline { display: none; }
@media (max-width: 1279px) {
    .ih-ad-mobile_inline { display: flex; justify-content: center; margin: 20px 0; }
}

/* ---- Header ---- */
.ih-header {
    background: var(--ih-card-bg);
    border-radius: var(--ih-radius-l);
    padding: 14px 20px;
    box-shadow: 0 4px 18px rgba(43,32,22,.08);
    border: 1px solid var(--ih-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}
.ih-logo { display: flex; align-items: center; }
.ih-logo .custom-logo-link { display: flex; align-items: center; }
/* Įkeltas logotipas VISADA apribojamas iki šio dydžio, nepriklausomai nuo
   originalaus paveikslėlio matmenų - apsauga nuo "per visą puslapį" klaidos. */
.ih-logo img {
    max-height: 44px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 480px) { .ih-logo img { max-height: 36px; max-width: 140px; } }
.ih-logo-fallback { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.ih-logo-badge {
    width: 36px; height: 36px; border-radius: 12px;
    background: var(--ih-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Newsreader', serif; font-weight: 700; font-size: 18px;
}
.ih-logo-text .ih-accent-dot { color: var(--ih-accent); }

.ih-nav { display: flex; }
.ih-nav-list {
    display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none;
}
.ih-nav-list li { list-style: none; margin: 0; position: relative; }
.ih-nav a {
    padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
    color: var(--ih-ink); display: inline-block;
}
.ih-nav a:hover { background: var(--ih-bg); }
/* Jei meniu punktas turi papunkčius (sub-menu), paprastas kritimo žemyn sąrašas. */
.ih-nav .sub-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
    background: var(--ih-card-bg); border: 1px solid var(--ih-border); border-radius: 12px;
    padding: 6px; margin: 4px 0 0; box-shadow: 0 10px 24px rgba(43,32,22,.12); z-index: 20;
}
.ih-nav .sub-menu a { display: block; }
.ih-nav-list > li:hover > .sub-menu { display: block; }

/* Header paieška - rodoma VISUOSE puslapiuose (ne pagrindiniame, ten jau yra
   "hero" bloke), kad paieška niekada "nedingtų" pernavigavus, pvz., į recepto
   puslapį (receptų pluginas irgi naudoja šį header.php). */
.ih-header-search input {
    width: 100%; padding: 8px 12px 8px 32px; border-radius: 10px;
    border: 1px solid var(--ih-border); font-size: 13px; background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238F8172' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") no-repeat 10px center;
    background-size: 14px;
}
.ih-header-search input:focus { outline: 2px solid var(--ih-accent); outline-offset: 1px; }

/* Paieškos pasiūlymai (autocomplete) - iškrentantis sąrašas po input'u. */
.ih-search-suggest-wrap { position: relative; flex: 0 1 230px; min-width: 150px; }
.ih-search-suggestions {
    display: none;
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--ih-border); border-radius: 14px;
    box-shadow: 0 16px 36px rgba(43,32,22,.16);
    padding: 6px; max-height: 360px; overflow-y: auto;
}
.ih-search-suggestions.is-open { display: block; }
.ih-suggest-item {
    display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px;
    text-decoration: none; color: var(--ih-ink);
}
.ih-suggest-item:hover, .ih-suggest-item:focus { background: var(--ih-bg); }
.ih-suggest-item img {
    width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.ih-suggest-noimg {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: var(--ih-bg); color: #8F8172;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.ih-suggest-item strong { display: block; font-size: 13px; line-height: 1.3; }
.ih-suggest-item small { display: block; font-size: 10px; color: #8F8172; margin-top: 2px; }
@media (max-width: 760px) { .ih-search-suggest-wrap { order: 1; flex: 1 1 100%; } }

.ih-nav-toggle {
    display: none;
    background: var(--ih-bg); border: 1px solid var(--ih-border); border-radius: 10px;
    width: 38px; height: 38px; cursor: pointer; font-size: 18px;
}
@media (max-width: 760px) {
    .ih-nav { display: none; width: 100%; order: 3; }
    .ih-nav.is-open { display: flex; }
    .ih-nav-list { flex-direction: column; width: 100%; }
    .ih-nav .sub-menu { position: static; box-shadow: none; display: block; margin-left: 12px; }
    .ih-nav-toggle { display: block; order: 2; }
}

/* ---- Meniu juostos stiliaus variantai (Customizer: Dizainas → Meniu juosta) ---- */
/* Meniu juostos spalvos - žr. v1.2.4 bloką failo gale (CSS kintamieji --ih-hd-*). */

/* ---- Hero / data juosta ---- */
.ih-hero {
    background: linear-gradient(120deg, #fff, var(--ih-bg) 60%, #fff);
    border: 1px solid var(--ih-border);
    border-radius: var(--ih-radius-l);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(43,32,22,.06);
}
.ih-date-badge {
    background: var(--ih-accent); color: #fff;
    border-radius: var(--ih-radius-m);
    min-width: 64px; padding: 10px; text-align: center; flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(217,105,30,.3);
}
.ih-date-badge .ih-day-num { font-size: 26px; font-weight: 800; display: block; line-height: 1; }
.ih-date-badge .ih-month { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.ih-hero-greeting h2 { font-size: 17px; }
.ih-hero-greeting p { margin: 4px 0 0; font-size: 13px; color: #6b5f50; font-style: italic; }

/* Kompaktiška hero versija - tik data + gyvai atsinaujinantis laikrodis (be
 * didelio sveikinimo teksto, kuris anksčiau užėmė per daug vietos ir
 * kartojosi su antraštėje jau esančiu svetainės pavadinimu). Blokas NEBE
 * ištemptas per visą plotį - tik tiek, kiek reikia turiniui (width: auto). */
.ih-hero-compact {
    display: inline-flex; width: auto; padding: 8px 16px 8px 8px; gap: 12px;
    /* .ih-main dabar yra flex stulpelis (žr. "lipnaus footer" sprendimą
       aukščiau) - be šito blokelis vėl išsitemptų per visą plotį. */
    align-self: flex-start;
}
.ih-date-badge-sm {
    min-width: 42px; padding: 5px 8px;
}
.ih-date-badge-sm .ih-day-num { font-size: 17px; }
.ih-date-badge-sm .ih-month { font-size: 8px; }
.ih-hero-clock {
    font-family: var(--ih-heading-font); font-size: 22px; font-weight: 700;
    color: var(--ih-ink); align-self: center; letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.ih-search { flex: 1; min-width: 240px; max-width: 360px; }
.ih-search input {
    width: 100%; padding: 10px 14px 10px 36px; border-radius: 12px;
    border: 1px solid var(--ih-border); font-size: 14px; background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238F8172' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") no-repeat 12px center;
}

/* ---- HUB kortelės ---- */
.ih-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
@media (max-width: 900px) { .ih-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ih-hub-grid { gap: 11px; } }

/* Bazinis (ne tik hover) šešėlis/kraštinė - kad kortelė VISADA aiškiai
 * skirtųsi nuo kreminio puslapio fono, o ne "užsidegtų" tik užvedus pelę
 * (ankstesnė problema: be hover, kortelės ribos beveik nesimatė, todėl
 * atrodė, kad tik viena kortelė "šviečia balta", kol judini pelę). */
.ih-hub-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E3D6C0;
    border-radius: 18px;
    padding: 25px 23px;
    min-height: 235px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: 0 2px 10px rgba(43,32,22,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.ih-hub-card:hover,
a.ih-hub-card:focus-visible {
    transform: translateY(-4px);
    border-color: #c9b99a;
    box-shadow: 0 14px 32px rgba(44,37,25,.12);
}
.ih-hub-card.ih-inactive { cursor: default; }
.ih-hub-icon {
    width: 48px; height: 48px; border-radius: 14px; flex: 0 0 48px;
    display: flex; align-items: center; justify-content: center; font-size: 21px;
    margin-bottom: 22px;
}
/* 5 besikartojančios spalvos (tiksliai pagal patvirtintą referencą), kad kortelių eilutė atrodytų gyva. */
.ih-icon-c1 { background: color-mix(in srgb, #D9691E 16%, #fff); color: #D9691E; }
.ih-icon-c2 { background: color-mix(in srgb, #347FC1 16%, #fff); color: #347FC1; }
.ih-icon-c3 { background: color-mix(in srgb, #7952B5 16%, #fff); color: #7952B5; }
.ih-icon-c4 { background: color-mix(in srgb, #3F7040 16%, #fff); color: #3F7040; }
.ih-icon-c5 { background: color-mix(in srgb, #659447 16%, #fff); color: #659447; }

.ih-hub-card h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.3px; margin: 0 0 9px; }
.ih-hub-card p { font-size: 14px; line-height: 1.65; color: #6b5f50; margin: 0 0 20px; }
.ih-hub-link { margin-top: auto; font-size: 13px; font-weight: 750; color: inherit; }
a.ih-hub-card .ih-hub-link { color: var(--ih-accent); }

.ih-badge {
    position: absolute; top: 15px; right: 13px;
    font-size: 10px; font-weight: 750;
    background: #f3f0e9; color: #777168; padding: 5px 8px; border-radius: 6px;
}

@media (max-width: 560px) {
    .ih-hub-card { min-height: 210px; padding: 17px 15px; border-radius: 14px; }
    .ih-hub-icon { width: 42px; height: 42px; flex-basis: 42px; margin-bottom: 17px; }
    .ih-hub-card h3 { font-size: 17px; }
    .ih-hub-card p { font-size: 13px; line-height: 1.55; }
}

/* ---- Įrankių kortelės HUB puslapyje (2 lygis) - pvz. "Orai" grupėje:
 * Vilnius / Kaunas / Klaipėda, arba "Skaičiuoklės" grupėje: PVM skaičiuoklė /
 * BMI skaičiuoklė. SĄMONINGAI be ikonų - čia tik pavadinimas, kompaktiškiau
 * nei pagrindinio puslapio HUB kortelės (ten ikona + aprašymas tinka, nes
 * jų yra tik 8; čia miestų/įrankių gali būti ir kelios dešimtys). ---- */
.ih-tool-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.ih-tool-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #FFFFFF;
    border: 1px solid #E3D6C0;
    border-radius: var(--ih-radius-m);
    padding: 15px 16px;
    box-shadow: 0 2px 8px rgba(43,32,22,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ih-tool-card h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ih-ink); }
a.ih-tool-card:hover {
    transform: translateY(-3px);
    border-color: #c9b99a;
    box-shadow: 0 12px 26px rgba(44,37,25,.12);
}
.ih-tool-arrow { color: var(--ih-accent); font-weight: 700; flex-shrink: 0; }
.ih-tool-card.is-soon { opacity: .6; cursor: default; }
.ih-tool-badge-soon {
    font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
    background: var(--ih-bg); color: #8F8172; padding: 2px 8px; border-radius: 999px;
    flex-shrink: 0;
}

/* ---- Dienos receptai / SEO tekstas / "nėra HUB" pranešimas ----
 * Fonas sąmoningai #FFFFFF (ne kintamasis), kad niekada nepaveldėtų kreminio
 * puslapio tono - be to kontrastas dirbtinai sustiprintas (ryškesnis border +
 * šešėlis), nes puslapio fonas (--ih-bg: #FAF6EF) yra labai arti balto, todėl
 * be sustiprinimo balta kortelė "susilieja" su fonu. */
.ih-section {
    background: #FFFFFF;
    border: 1px solid #DCCFBA;
    border-radius: var(--ih-radius-l);
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: 0 10px 28px rgba(43,32,22,.10), 0 1px 0 rgba(43,32,22,.03);
}
.ih-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* "Dienos receptai" - slenkanti karuselė (ne statinis tinklelis), kad
 * tilptų daugiau nei 4 receptai. Slenka AUTOMATIŠKAI (main.js), rodyklės
 * yra PLŪDURIUOJANČIOS virš pačios nuotraukų juostos (ne atskiri stulpeliai
 * flex eilutėje) - taip nereikia skaičiuoti pločių ir jos visada tiksliai
 * vidury vaizdų, nepriklausomai nuo kortelių kiekio ekrane. */
.ih-recipe-carousel { position: relative; }
.ih-recipe-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding: 2px; margin: 0 -2px;
    -ms-overflow-style: none; scrollbar-width: none; /* paslepia nešvarią gimtąją scroll juostą */
}
.ih-recipe-grid::-webkit-scrollbar { display: none; }
.ih-recipe-card {
    flex: 0 0 calc(25% - 9px); min-width: 180px; scroll-snap-align: start;
    display: block; border-radius: var(--ih-radius-m);
    transition: transform .2s ease;
}
/* Ta pati "pakilimo" paspaudus pelę animacija kaip ir HUB kortelėse /
 * visuose kituose svetainės elementuose - vizualinis nuoseklumas. */
a.ih-recipe-card:hover { transform: translateY(-4px); }
a.ih-recipe-card:hover img { box-shadow: 0 14px 28px rgba(43,32,22,.18); }
@media (max-width: 900px) { .ih-recipe-card { flex-basis: calc(50% - 6px); } }
@media (max-width: 480px) { .ih-recipe-card { flex-basis: 78%; } }
.ih-recipe-card img {
    border-radius: var(--ih-radius-m); aspect-ratio: 4/3; object-fit: cover;
    margin-bottom: 8px; width: 100%; display: block;
    transition: box-shadow .2s ease;
}
.ih-recipe-card h4 { font-size: 13px; font-weight: 600; margin: 0; }

.ih-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.92); border: 1px solid var(--ih-border); color: var(--ih-ink);
    font-size: 18px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(43,32,22,.15);
    backdrop-filter: blur(2px);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ih-carousel-arrow:hover { color: var(--ih-accent); border-color: var(--ih-accent); background: #fff; }
.ih-carousel-prev { left: -6px; }
.ih-carousel-next { right: -6px; }
@media (max-width: 480px) { .ih-carousel-arrow { display: none; } /* mobile'e tiesiog pirštu slenkama */ }

.ih-seo-text { font-size: 14px; color: var(--ih-seo-text-color, #6b5f50); line-height: 1.7; }
.ih-seo-text p { margin: 0 0 12px; }
.ih-seo-text a { color: var(--ih-accent); text-decoration: underline; }

/* ---- Footer: valdiklių (widget) zonos ---- */
.ih-footer-widgets {
    max-width: 1080px; margin: 0 auto 8px; padding: 24px 16px 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    border-top: 1px solid var(--ih-border);
}
@media (max-width: 760px) { .ih-footer-widgets { grid-template-columns: 1fr; } }
.ih-footer-widget-title { font-size: 13px; margin: 0 0 8px; }
.ih-footer-col { font-size: 13px; color: #6b5f50; }
.ih-footer-col a { color: #6b5f50; }
.ih-footer-col a:hover { color: var(--ih-accent); }

/* ---- Footer ---- */
.ih-footer {
    max-width: 1080px; margin: 0 auto; padding: 16px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; flex-wrap: wrap; font-size: 12px; color: #8F8172;
    border-top: 1px solid var(--ih-border);
}
.ih-footer a { color: #6b5f50; }
.ih-footer a:hover { color: var(--ih-accent); }
.ih-footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* wp_nav_menu() punktai ateina kaip <li> (items_wrap išjungia tik <ul>, bet
 * ne pačius <li>) - be šito jie kaip numatytasis sąrašas krenta vienas
 * po kito stulpeliu, vietoj to, kad stovėtų eilutėje šalia "Privatumo
 * politika" nuorodos. */
.ih-footer-links li { list-style: none; margin: 0; display: inline-flex; }

/* ---- Trupininė navigacija (HUB 2 lygio puslapiams) ---- */
.ih-breadcrumb { font-size: 12px; color: #8F8172; margin-bottom: 14px; }
.ih-breadcrumb a { color: #6b5f50; }

/* ====================================================================
 * v1.1 - meniu juosta su kategorijomis, kompaktiškos kategorijų kortelės,
 * „Šiandien“ blokas, svetainės žemėlapis apačioje, paieškos ir 404 puslapiai.
 * ==================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---- Antraštė: viršuje logotipas + paieška, apačioje kategorijų juosta ---- */
.ih-header { display: block; padding: 0; position: relative; z-index: 40; }
.ih-header-top { display: flex; align-items: center; gap: 16px; padding: 12px 18px; }
.ih-header-top .ih-logo { flex-shrink: 0; }
.ih-header .ih-search-suggest-wrap { flex: 0 1 340px; margin-left: auto; }
.ih-header-search input { padding-top: 10px; padding-bottom: 10px; font-size: 14px; border-radius: 12px; background-color: var(--ih-bg); }
.ih-nav { display: block; border-top: 1px solid var(--ih-border); padding: 4px 10px; }
.ih-nav-list { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.ih-nav-item { display: flex; align-items: center; position: relative; }
.ih-nav a.ih-nav-link { padding: 10px 10px; font-size: 14px; font-weight: 650; border-radius: 10px; color: var(--ih-ink); }
.ih-nav-item.has-dd > a.ih-nav-link { padding-right: 4px; }
.ih-nav-item.is-current > a.ih-nav-link { color: var(--ih-accent); }
.ih-nav-item.is-current > a.ih-nav-link::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--ih-accent); }
.ih-nav a.ih-nav-link:hover, .ih-nav-item:hover > a.ih-nav-link { background: var(--ih-bg); }
.ih-nav-extra a.ih-nav-link { color: var(--ih-accent); }
.ih-dd-btn { width: 22px; height: 30px; border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 8px; color: #8F8172; }
.ih-dd-btn span { display: block; width: 7px; height: 7px; margin: -3px auto 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.ih-dd-btn:hover, .ih-dd-btn[aria-expanded="true"] { color: var(--ih-accent); }
.ih-dd-btn[aria-expanded="true"] span { transform: rotate(225deg); margin-top: 3px; }
.ih-dd {
    display: none; position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 250px;
    background: #fff; border: 1px solid var(--ih-border); border-radius: 14px; padding: 8px;
    box-shadow: 0 18px 40px rgba(43,32,22,.16);
}
.ih-dd.is-wide { min-width: 460px; }
.ih-dd.is-wide ul { columns: 2; column-gap: 8px; }
.ih-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* pelė nenutrūksta tarpe */
.ih-nav-item.has-dd:hover > .ih-dd, .ih-nav-item.has-dd:focus-within > .ih-dd, .ih-nav-item.is-open > .ih-dd { display: block; }
.ih-nav-item:nth-last-child(-n+3) > .ih-dd { left: auto; right: 0; }
.ih-dd-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--ih-border); }
.ih-dd-head a { font-weight: 800; font-size: 14px; color: var(--ih-ink); }
.ih-dd-head a:hover { color: var(--ih-accent); }
.ih-dd-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--ih-bg); color: var(--ih-accent); font-size: 13px; flex-shrink: 0; }
.ih-dd ul { list-style: none; margin: 0; padding: 0; }
.ih-dd li { break-inside: avoid; }
.ih-dd li a { display: block; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--ih-ink); }
.ih-dd li a:hover, .ih-dd li a.is-on { background: var(--ih-bg); color: var(--ih-accent); }

.ih-nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; flex-direction: column; justify-content: space-between; }
.ih-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ih-ink); transition: transform .2s ease, opacity .2s ease; }
.ih-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ih-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ih-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
    .ih-header-top { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
    .ih-nav-toggle { display: flex; order: 2; margin-left: auto; }
    .ih-header .ih-search-suggest-wrap { order: 3; flex: 1 1 100%; margin-left: 0; }
    .ih-nav { display: none; padding: 6px; }
    .ih-nav.is-open { display: block; }
    .ih-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .ih-nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--ih-border); }
    .ih-nav-item:last-child { border-bottom: 0; }
    .ih-nav a.ih-nav-link { flex: 1; padding: 13px 10px; font-size: 15px; }
    .ih-nav-item.is-current > a.ih-nav-link::after { display: none; }
    .ih-dd-btn { width: 46px; height: 46px; }
    .ih-nav-item.has-dd:hover > .ih-dd, .ih-nav-item.has-dd:focus-within > .ih-dd { display: none; }
    .ih-nav-item.has-dd.is-open > .ih-dd { display: block; }
    .ih-dd, .ih-dd.is-wide { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 10px; background: transparent; }
    .ih-dd.is-wide ul { columns: 2; }
    .ih-dd-head { display: none; }
}

/* ---- Pradžia: data, H1 ---- */
.ih-hero-compact { padding: 10px 18px 10px 10px; margin-bottom: 20px; max-width: 100%; flex-wrap: nowrap; align-items: center; }
.ih-hero-txt { min-width: 0; }
.ih-home-h1 { font-size: 15px; font-weight: 700; margin: 0 0 2px; color: var(--ih-ink); font-family: var(--ih-heading-font); }
.ih-home-h1-solo { margin: 0 0 14px; }
.ih-hero-txt p { margin: 0; font-size: 14px; color: #6b5f50; line-height: 1.5; }
.ih-hero-txt p a { color: var(--ih-accent); font-weight: 650; }
.ih-hero-txt .ih-hero-clock { font-size: inherit; display: inline; font-weight: 800; color: var(--ih-ink); }
.ih-hero-day { font-weight: 700; color: var(--ih-ink); }

.ih-home-sec { margin-bottom: 26px; }
.ih-home-h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.ih-home-sec > .ih-home-h2::after { content: ""; flex: 1; height: 1px; background: var(--ih-border); }
.ih-more-link { font-size: 13px; font-weight: 700; color: var(--ih-accent); }

/* ---- Kompaktiškos kategorijų kortelės ---- */
.ih-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .ih-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ih-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.ih-cat { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E3D6C0; border-radius: 16px; box-shadow: 0 2px 10px rgba(43,32,22,.05); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; min-width: 0; }
.ih-cat:hover { border-color: #c9b99a; box-shadow: 0 10px 26px rgba(44,37,25,.10); transform: translateY(-2px); }
.ih-cat-main { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 10px; color: var(--ih-ink); flex: 1; }
.ih-cat-ico { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ih-cat-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 8px; }
.ih-cat-txt strong { font-family: var(--ih-heading-font); font-size: 16px; line-height: 1.25; font-weight: 700; }
.ih-cat-txt small { font-size: 12.5px; line-height: 1.45; color: #6b5f50; display: block; } /* visas aprašymas, be kirpimo */
.ih-cat .ih-badge { top: 10px; right: 10px; }
.ih-cat.is-soon { opacity: .75; }
.ih-cat-links { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 14px 13px; }
.ih-cat-links a { font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--ih-bg); color: var(--ih-ink); border: 1px solid transparent; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ih-cat-links a:hover { border-color: var(--ih-accent); color: var(--ih-accent); background: #fff; }
.ih-cat .ih-admin-pencil { top: -8px; left: -8px; }

.ih-cat-txt { padding-right: 4px; }
.ih-cat:has(.ih-badge) .ih-cat-txt strong { padding-right: 64px; }

/* ---- „Šiandien“ langeliai ---- */
.ih-w-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.ih-w { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid #E3D6C0; border-radius: 16px; box-shadow: 0 2px 10px rgba(43,32,22,.05); }
@media (min-width: 1000px) { .ih-w { flex-basis: calc(25% - 12px); } }
.ih-w-head { display: flex; align-items: center; gap: 9px; }
.ih-w-ico { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--ih-bg); color: var(--ih-accent); font-size: 13px; flex-shrink: 0; }
.ih-w-title { font-weight: 800; font-size: 14px; color: var(--ih-ink); }
a.ih-w-title:hover { color: var(--ih-accent); }
.ih-w-big { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ih-ink); font-variant-numeric: tabular-nums; }
.ih-w-big small { font-size: 12px; font-weight: 600; color: #8F8172; }
.ih-w-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ih-w-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--ih-border); font-size: 13px; }
.ih-w-rows li:last-child { border-bottom: 0; }
.ih-w-rows span { min-width: 0; color: #6b5f50; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ih-w-rows span a { color: var(--ih-ink); font-weight: 600; }
.ih-w-rows span a:hover { color: var(--ih-accent); }
.ih-w-rows b { font-weight: 800; color: var(--ih-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ih-w-rows b.up { color: #2F7A4A; }
.ih-w-rows b.down { color: #B8452F; }
.ih-w-rows b.live { color: #fff; background: #C0392B; padding: 1px 7px; border-radius: 999px; font-size: 11px; }
.ih-w-rows b.song { font-weight: 600; color: #6b5f50; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.ih-w-rows b.arrow { color: var(--ih-accent); }
.ih-w-rows li.stack { flex-direction: column; align-items: stretch; gap: 1px; }
.ih-w-rows li.stack span { white-space: normal; }
.ih-w-rows li.stack b { font-size: 12px; font-weight: 650; color: #8F8172; max-width: none; white-space: normal; }
.ih-w-rows li.stack b.live { align-self: flex-start; color: #fff; }
.ih-w-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ih-w-chips a, .ih-w-chips span { font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--ih-bg); color: var(--ih-ink); }
.ih-w-chips a:hover { color: var(--ih-accent); }
.ih-w-note { margin: 0; font-size: 12px; color: #8F8172; line-height: 1.4; }
.ih-w-more { margin-top: auto; font-size: 13px; font-weight: 750; color: var(--ih-accent); }

/* ---- Receptų karuselė (h3 vietoj h4 - teisinga antraščių hierarchija) ---- */
.ih-recipe-card h3 { font-size: 13px; font-weight: 600; margin: 0; font-family: var(--ih-body-font); }
.ih-recipe-time { font-size: 11px; color: #8F8172; }
.ih-admin-layout-link { text-align: center; margin: 0 0 18px; }

/* ---- Svetainės žemėlapis apačioje ---- */
.ih-sitemap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; margin: 10px 0 18px; padding: 22px 6px 6px; border-top: 1px solid var(--ih-border); }
@media (max-width: 900px) { .ih-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ih-sitemap-title { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; color: var(--ih-ink); }
.ih-sitemap ul { list-style: none; margin: 0; padding: 0; }
.ih-sitemap li a { display: block; padding: 2px 0; font-size: 13px; color: #6b5f50; }
.ih-sitemap a:hover { color: var(--ih-accent); }

/* ---- Paieškos ir 404 puslapiai ---- */
.ih-page-head { margin-bottom: 16px; }
.ih-page-head h1 { font-size: 26px; margin: 0 0 6px; }
.ih-page-head p { margin: 0; color: #6b5f50; }
.ih-results { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ih-results a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #E3D6C0; border-radius: 14px; color: var(--ih-ink); }
.ih-results a:hover { border-color: var(--ih-accent); }
.ih-results img, .ih-results .ih-res-ico { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.ih-results .ih-res-ico { display: flex; align-items: center; justify-content: center; background: var(--ih-bg); color: var(--ih-accent); }
.ih-results strong { display: block; font-size: 15px; }
.ih-results small { color: #8F8172; font-size: 12px; }
.ih-big-search { display: flex; gap: 8px; margin: 0 0 22px; max-width: 560px; }
.ih-big-search input { flex: 1; padding: 12px 14px; border: 1px solid var(--ih-border); border-radius: 12px; font-size: 15px; background: #fff; }
.ih-big-search button { padding: 0 18px; border: 0; border-radius: 12px; background: var(--ih-accent); color: #fff; font-weight: 800; cursor: pointer; font-family: inherit; }

/* Mobilus: kategorijos - mažos plytelės po 2 */
@media (max-width: 560px) {
    .ih-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ih-cat-main { flex-direction: column; gap: 8px; padding: 12px; }
    .ih-cat-txt small, .ih-cat-links { display: none; }
    .ih-cat-txt strong { font-size: 15px; padding-right: 0 !important; }
    .ih-cat .ih-badge { top: 8px; right: 8px; font-size: 9px; padding: 3px 6px; }
    .ih-cat-ico { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
}

/* Kategorijos kortelė: ikona ir pavadinimas vienoje eilutėje, aprašymas per visą plotį (be kirpimo). */
@media (min-width: 561px) {
    .ih-cat-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: center; align-content: start; }
    .ih-cat-txt { display: contents; }
    .ih-cat-txt strong { grid-column: 2; padding-right: 0; }
    .ih-cat:has(.ih-badge) .ih-cat-txt strong { padding-right: 0; }
    .ih-cat-txt small { grid-column: 1 / -1; }
    .ih-cat .ih-badge { position: static; grid-column: 1 / -1; justify-self: start; }
}

/* Papildomos nuorodos viršuje (pvz. „Pasiūlyk idėją“) */
.ih-top-links { display: flex; gap: 6px; margin-left: auto; }
.ih-top-links + .ih-search-suggest-wrap { margin-left: 0; }
.ih-top-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ih-accent); border: 1px solid color-mix(in srgb, var(--ih-accent) 30%, #fff); background: #fff; white-space: nowrap; }
.ih-top-links a:hover, .ih-top-links a.is-on { background: var(--ih-accent); color: #fff; border-color: var(--ih-accent); }
.ih-top-links-m { display: none; }
@media (max-width: 900px) {
    .ih-header-top > .ih-top-links { display: none; }
    .ih-top-links-m { display: flex; flex-wrap: wrap; margin: 8px 4px 4px; }
}

/* Ruošiama kategorija - nepaspaudžiama */
.ih-cat.is-soon { cursor: default; }
.ih-cat.is-soon:hover { transform: none; box-shadow: 0 2px 10px rgba(43,32,22,.05); border-color: #E3D6C0; }
div.ih-cat-main { cursor: default; }

/* ====================================================================
 * v1.2.4 - Meniu juostos spalvos per kintamuosius. Teksto spalvą (šviesią ar tamsią)
 * PHP parenka automatiškai pagal fono šviesumą (functions.php -> ih_header_palette()),
 * todėl bet kokia spalva lieka įskaitoma. Išskleidžiami sąrašai - visada balti su tamsiu tekstu.
 * ==================================================================== */
.ih-header { background: var(--ih-hd-bg, #fff); color: var(--ih-hd-fg, var(--ih-ink)); border-color: var(--ih-hd-border, var(--ih-border)); }
body.ih-header-flat .ih-header { box-shadow: none; backdrop-filter: none; }
.ih-header .ih-logo-text { color: var(--ih-hd-fg, var(--ih-ink)); }
.ih-header .ih-accent-dot { color: var(--ih-hd-dot, var(--ih-accent)); }
.ih-header .ih-logo-badge { background: var(--ih-hd-badge-bg, var(--ih-accent)); color: var(--ih-hd-badge-fg, #fff); }
.ih-nav { border-top-color: var(--ih-hd-line, var(--ih-border)); }
.ih-nav a.ih-nav-link, .ih-dd-btn { color: var(--ih-hd-fg, var(--ih-ink)); }
.ih-dd-btn { color: var(--ih-hd-muted, #8F8172); }
.ih-nav a.ih-nav-link:hover, .ih-nav-item:hover > a.ih-nav-link, .ih-nav-item.is-open > a.ih-nav-link { background: var(--ih-hd-hover, var(--ih-bg)); }
.ih-dd-btn:hover, .ih-dd-btn[aria-expanded="true"], .ih-nav-item.is-current > a.ih-nav-link { color: var(--ih-hd-cur, var(--ih-accent)); }
.ih-nav-item.is-current > a.ih-nav-link::after { background: var(--ih-hd-cur, var(--ih-accent)); }
.ih-header-search input { background-color: var(--ih-hd-input, var(--ih-bg)); color: var(--ih-ink); border-color: var(--ih-hd-border, var(--ih-border)); }
.ih-nav-toggle { background: var(--ih-hd-hover, var(--ih-bg)); border-color: var(--ih-hd-line, var(--ih-border)); }
.ih-nav-toggle span { background: var(--ih-hd-fg, var(--ih-ink)); }
.ih-top-links a { background: #fff; }
/* Išskleidžiamas sąrašas (kompiuteryje) - visada šviesus */
.ih-dd, .ih-dd a, .ih-dd-head a { color: var(--ih-ink); }
.ih-dd li a:hover, .ih-dd li a.is-on { color: var(--ih-accent); }
@media (max-width: 900px) {
    /* Telefone sąrašas atsidaro pačioje juostoje - imama juostos teksto spalva */
    .ih-dd li a { color: var(--ih-hd-fg, var(--ih-ink)); }
    .ih-dd li a:hover, .ih-dd li a.is-on { color: var(--ih-hd-cur, var(--ih-accent)); background: var(--ih-hd-hover, var(--ih-bg)); }
    .ih-nav-item { border-bottom-color: var(--ih-hd-line, var(--ih-border)); }
}
