/* Carpathia Herbarium / Tajomstvo bylín. Scoped to .ch-herbar and .ch-herb-detail. */
:root{--ch-green:#213c2c;--ch-cream:#f7f5ed;--ch-muted:#657267;--ch-line:#d2d9d0}
.ch-herbar,.ch-herb-detail,.ch-preview-title{color:var(--ch-green);font-family:CHManrope,Manrope,Arial,sans-serif}
.ch-herbar *, .ch-herb-detail *,.ch-preview-title *{box-sizing:border-box}
.ch-herbar h1,.ch-herbar h2,.ch-herb-detail h2,.ch-herb-detail h3,.ch-preview-title h1{font-family:CHLora,Lora,Georgia,serif;font-weight:400;line-height:1.12;letter-spacing:-.025em;color:var(--ch-green)}
.ch-herbar a,.ch-herb-detail a{color:inherit;text-decoration:none}
.ch-herbar a:focus-visible,.ch-herbar button:focus-visible,.ch-herbar input:focus-visible,.ch-herb-detail a:focus-visible{outline:2px solid #668770;outline-offset:4px}
.ch-eyebrow{font-size:11px!important;font-weight:600;line-height:1.5;letter-spacing:.18em;text-transform:uppercase;margin:0}
.ch-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Rubrika: pôvodný systémový výpis sa ukryje iba ak je vložený úplný herbár. */
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) #content.content.narrow{max-width:none;width:100%;padding:0}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .content-wrapper-in{max-width:none;width:100%}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .sidebar-left{display:none}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) #content .content-inner{max-width:none;padding:0}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .sectionDescription>h1,
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) #articlesListHeading,
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) #newsWrapper,
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .listingControls,
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .pagination,
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .sectionDescription>.elementor-element{display:none!important}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .sectionDescription{margin:0;padding:0;max-width:none}
body.in-tajomstvo-bylin.type-posts-listing:has(.ch-herbar) .sidebar{display:none}

.ch-herbar{background:var(--ch-cream)}
.ch-herbar-hero{position:relative;min-height:clamp(430px,46vw,670px);display:flex;align-items:flex-end;overflow:hidden;background:#263d2f}
.ch-herbar-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;filter:brightness(.78)}
.ch-herbar-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,27,17,.68),transparent 72%),linear-gradient(0deg,rgba(5,22,14,.36),transparent 62%);pointer-events:none}
.ch-herbar-hero__content{position:relative;z-index:1;width:min(100%,1320px);margin:0 auto;padding:68px clamp(24px,5vw,80px) 77px;color:#fff}
.ch-herbar-hero__content *{color:#fff!important}
.ch-herbar-hero h1{font-size:clamp(54px,6.7vw,104px);margin:18px 0 17px;max-width:850px}
.ch-herbar-hero__content>p:not(.ch-eyebrow){font-size:clamp(17px,1.5vw,22px);line-height:1.45;max-width:520px;margin:0 0 32px}
.ch-herbar-hero a,.ch-herb-card__link,.ch-back a{display:inline-block;border-bottom:1px solid currentColor;padding-bottom:4px;font-size:15px;line-height:1.45}
.ch-herbar-hero a span,.ch-herb-card__link span{margin-left:12px}
.ch-herbar-catalog{width:min(100%,1440px);margin:auto;padding:72px clamp(22px,5.6vw,92px) 110px}
.ch-catalog-header{display:flex;justify-content:space-between;align-items:end;gap:28px}
.ch-catalog-header h2{font-size:clamp(40px,4.3vw,68px);margin:8px 0 0}
.ch-search{display:block;width:min(100%,420px)}
.ch-search input{width:100%;height:50px;padding:0 16px;border:1px solid #9dad9f;border-radius:0;background:transparent;color:var(--ch-green);font-size:14px;box-shadow:none}
.ch-search input::placeholder{color:#657267}
.ch-filter-scroll{overflow-x:auto;scrollbar-width:thin;margin:28px 0 34px;border-bottom:1px solid var(--ch-line)}
.ch-filters{display:flex;align-items:center;gap:4px;min-width:max-content;padding-bottom:16px}
.ch-filters button{border:0;border-radius:0;background:transparent;color:var(--ch-green);font:500 13px/1.2 CHManrope,Manrope,Arial,sans-serif;padding:13px 16px;cursor:pointer}
.ch-filters button[aria-pressed="true"]{background:var(--ch-green);color:#fff}
.ch-herb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:56px}
.ch-herb-card[hidden],.ch-empty[hidden]{display:none!important}
.ch-herb-card{min-width:0}
.ch-herb-card__image{display:block;aspect-ratio:4/3;overflow:hidden;background:#e2e7dd}
.ch-herb-card__image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.ch-herb-card__image:hover img{transform:scale(1.025)}
.ch-herb-card h2{font-size:clamp(24px,2.15vw,35px);margin:16px 0 2px;line-height:1.16}
.ch-herb-card__latin{font:italic 17px/1.4 CHLora,Lora,Georgia,serif;margin:0 0 10px}
.ch-herb-card__desc{font-size:14px;line-height:1.55;color:#435449;margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ch-herb-card__link{font-size:14px}
.ch-empty{font-size:16px;padding:30px 0}

/* Článok: nadpis H1 generuje Shoptet, obsah začína botanickým perexom. */
body.type-post:has(.ch-herb-detail) #content.content.narrow{max-width:1250px}
body.type-post:has(.ch-herb-detail) .news-item-detail h1,
body.type-post:has(.ch-herb-detail) #content h1{font-family:CHLora,Lora,Georgia,serif;color:var(--ch-green);font-weight:400;font-size:clamp(42px,5.6vw,78px);line-height:1.1;letter-spacing:-.025em}
.ch-herb-detail{max-width:1160px;margin:0 auto;padding:0 20px 90px}
.ch-detail-lead{margin:12px 0 34px;max-width:790px}
.ch-detail-latin{font:italic 23px/1.4 CHLora,Lora,Georgia,serif;margin:10px 0 14px}
.ch-detail-perex{font-size:clamp(18px,2vw,23px);line-height:1.55;margin:0}
.ch-detail-image{margin:0 0 68px}
.ch-detail-image img{display:block;width:100%;aspect-ratio:4/3;height:auto;max-height:700px;object-fit:cover}
.ch-detail-image figcaption{color:var(--ch-muted);font-size:12px;padding-top:10px}
.ch-detail-content{max-width:760px;margin:0 auto;font-size:16px;line-height:1.8}
.ch-detail-content h3{font-size:clamp(27px,2.5vw,36px);margin:46px 0 14px}
.ch-detail-content p{margin:0 0 18px}
.ch-detail-content .qa{border-top:1px solid var(--ch-line);margin:20px 0 0}
.ch-detail-content .qa dt{font-weight:600;padding:22px 0 6px;border-top:1px solid var(--ch-line)}
.ch-detail-content .qa dt:first-child{border-top:0}
.ch-detail-content .qa dd{margin:0 0 16px;color:#3c4e40}
.ch-detail-content .scroll{overflow-x:auto}
.ch-detail-content table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.45}
.ch-detail-content th,.ch-detail-content td{border-bottom:1px solid var(--ch-line);padding:14px 8px 14px 0;text-align:left;vertical-align:top}
.ch-detail-content table a,.ch-related a{border-bottom:1px solid currentColor}
.ch-detail-content table small{display:block;color:var(--ch-muted);margin-top:4px}
.ch-related{max-width:760px;margin:64px auto 0;border-top:1px solid var(--ch-line);padding-top:30px}
.ch-related h2{font-size:30px;margin:0 0 17px}
.ch-related ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:12px 24px}
.ch-related a{font-size:14px}
.ch-back{max-width:760px;margin:38px auto 0}

/* Samostatný lokálny náhľad používa rovnaké triedy ako publikovaný obsah. */
body.ch-preview{margin:0;background:var(--ch-cream)}
.ch-preview-header{height:70px;background:var(--ch-green);display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 clamp(20px,6vw,92px);color:#fff;font-family:CHManrope,Manrope,Arial,sans-serif}
.ch-preview-header a{color:#fff;text-decoration:none;font:26px/1 CHLora,Lora,Georgia,serif;letter-spacing:.1em}
.ch-preview-header small{display:block;text-align:center;font:9px/1.8 CHManrope,Manrope,Arial,sans-serif;letter-spacing:.34em}
.ch-preview-header nav{display:flex;gap:26px;font-size:13px}
.ch-preview-title{max-width:1200px;margin:55px auto 0;padding:0 20px}
.ch-preview-title p{font-size:11px;letter-spacing:.16em}
.ch-preview-title h1{font-size:clamp(42px,5.6vw,78px);margin:6px 0 0}

@media(max-width:900px){.ch-herb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 18px}.ch-preview-header nav{display:none}}
@media(max-width:620px){
 .ch-preview-header{height:58px}.ch-preview-header a{font-size:17px}.ch-preview-header small{font-size:7px}
 .ch-herbar-hero{min-height:490px;max-height:570px}
 .ch-herbar-hero>img{object-position:63% center;filter:brightness(.75)}
 .ch-herbar-hero:after{background:linear-gradient(0deg,rgba(4,22,13,.75),rgba(4,22,13,.2) 60%,transparent)}
 .ch-herbar-hero__content{padding:34px 22px 38px}
 .ch-herbar-hero h1{font-size:clamp(44px,12.5vw,62px);max-width:300px;margin:12px 0}
 .ch-herbar-hero__content>p:not(.ch-eyebrow){font-size:16px;max-width:320px;margin-bottom:21px}
 .ch-herbar-catalog{padding:46px 18px 70px}
 .ch-catalog-header{display:block}.ch-catalog-header h2{font-size:38px;margin:7px 0 22px}
 .ch-search{width:100%}.ch-search input{height:46px}
 .ch-filter-scroll{margin:18px -18px 23px;padding-left:18px}.ch-filters{padding-right:18px;padding-bottom:12px}
 .ch-filters button{font-size:12px;padding:11px 13px}
 .ch-herb-grid{column-gap:14px;row-gap:34px}
 .ch-herb-card h2{font-size:21px;margin:11px 0 2px;line-height:1.2}
 .ch-herb-card__latin{font-size:13px;margin-bottom:7px}
 .ch-herb-card__desc{font-size:12px;line-height:1.45;margin-bottom:10px;-webkit-line-clamp:3}
 .ch-herb-card__link{font-size:12px;padding-bottom:3px}.ch-herb-card__link span{margin-left:4px}
 .ch-herb-detail{padding:0 18px 65px}.ch-detail-lead{margin:12px 0 25px}
 .ch-detail-latin{font-size:18px}.ch-detail-perex{font-size:17px}
 .ch-detail-image{margin:0 -18px 43px}.ch-detail-image img{max-height:none}.ch-detail-image figcaption{padding-left:18px}
 .ch-detail-content{font-size:15px;line-height:1.75}.ch-detail-content h3{font-size:27px;margin:36px 0 12px}
 .ch-related{margin-top:48px}.ch-related h2{font-size:26px}
 .ch-preview-title{margin-top:38px;padding:0 18px}.ch-preview-title h1{font-size:42px}
}
@media(prefers-reduced-motion:reduce){.ch-herb-card__image img{transition:none}}
