/* Обираємо породу — stylistically scoped to the Tyhydyk journal/Atlas UI */
#tybh { --green:#129843;--ink:#12314e;--muted:#617684;--line:#dce5df;--tint:#edf7f0;color:var(--ink);font-family:inherit;font-size:14px;line-height:1.5; width:100%;max-width:1300px;position:static;left:auto;transform:none;margin:0 auto 50px;padding:5px 0 20px; }
#tybh *,#tybh *:before,#tybh *:after{box-sizing:border-box}
#tybh h1,#tybh h2,#tybh h3,#tybh p{margin:0}
#tybh a{color:inherit;text-decoration:none}
#tybh a:hover{color:var(--green)}
#tybh [hidden]{display:none!important}
#tybh .tybh-heading{padding:0 0 15px}
#tybh .tybh-heading h1{font-size:30px;font-weight:750;line-height:1.25;color:var(--ink);letter-spacing:-.02em}
#tybh .tybh-heading p{color:var(--muted);font-size:14px;margin-top:5px}
#tybh .tybh-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:3px 0 27px}
#tybh .tybh-tool{display:flex;flex-direction:column;gap:7px;border:1px solid #d9e5dc;border-left:3px solid var(--green);background:#f3faf5;min-height:131px;padding:15px 16px;color:var(--ink)}
#tybh .tybh-tool:hover{background:#e3f3e9;border-color:#9dceb0;color:var(--ink)}
#tybh .tybh-tool-icon{color:#158e47;font-weight:800;font-size:22px;line-height:1}
#tybh .tybh-tool strong{font-size:17px;line-height:1.25;font-weight:750;color:var(--ink)}
#tybh .tybh-tool small{font-size:12px;color:var(--muted);line-height:1.4}
#tybh .tybh-section{scroll-margin-top:90px;margin:0 0 31px;padding-top:19px;border-top:1px solid var(--line)}
#tybh .tybh-section-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:7px 15px;margin-bottom:12px}
#tybh .tybh-section-head h2{color:var(--green);font-size:23px;font-weight:750;line-height:1.3}
#tybh .tybh-section-head>span{font-size:12px;color:var(--muted)}
#tybh .tybh-intro{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 14px}
#tybh .tybh-dual,#tybh .tybh-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:100%}
#tybh .tybh-dual{grid-template-columns:repeat(2,minmax(0,1fr))}
#tybh label{display:flex;flex-direction:column;gap:5px;color:var(--ink);font-size:12px;font-weight:650}
#tybh select,#tybh input{width:100%;min-width:0;height:40px;padding:8px 10px;font:inherit;font-size:13px;border:1px solid #cbdcd0;background:#fff;color:var(--ink);border-radius:0;box-shadow:none}
#tybh .tybh-result{margin-top:16px}
#tybh .tybh-muted{font-size:13px;color:var(--muted);margin:0 0 10px}
#tybh .tybh-comparison{width:100%;border-top:2px solid var(--green)}
#tybh .tybh-compare-head,#tybh .tybh-compare-row{display:grid;grid-template-columns:22% 39% 39%;gap:0;border-bottom:1px solid var(--line)}
#tybh .tybh-compare-head{background:var(--tint);font-weight:750}
#tybh .tybh-compare-head>* ,#tybh .tybh-compare-row>*{padding:10px 12px;min-width:0;overflow-wrap:anywhere;border-right:1px solid var(--line);font-size:13px}
#tybh .tybh-compare-head>*:last-child,#tybh .tybh-compare-row>*:last-child{border-right:0}
#tybh .tybh-compare-head a{color:#14733a;text-decoration:underline}
#tybh .tybh-compare-row>span:first-child{color:var(--muted)}
#tybh .tybh-pick-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;margin-top:10px}
#tybh .tybh-pick-list a{padding:10px 0;border-bottom:1px solid var(--line);font-weight:700;min-width:0}
#tybh .tybh-pick-list small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:3px}
#tybh [data-picker-result]{margin-top:15px}
#tybh .tybh-cost-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 0}
#tybh .tybh-cost-results>div{background:var(--tint);border:1px solid #d6e9dc;padding:13px 15px}
#tybh .tybh-cost-results span{display:block;font-size:12px;color:#4d7560}
#tybh .tybh-cost-results strong{display:block;font-size:21px;color:#116d38;line-height:1.4}
#tybh .tybh-switch{display:flex;gap:8px;margin:0 0 13px;flex-wrap:wrap}
#tybh .tybh-switch button,#tybh .tybh-letters button{padding:8px 13px;border:1px solid #d3e3d7;border-radius:0;background:#f4f9f5;color:#27563b;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
#tybh .tybh-switch button.is-active,#tybh .tybh-letters button.is-active{background:var(--green);border-color:var(--green);color:#fff}
#tybh .tybh-letters{display:flex;gap:4px;flex-wrap:wrap;margin:14px 0}
#tybh .tybh-letters button{padding:7px 9px;min-width:31px}
#tybh .tybh-letters button:disabled{opacity:.3;cursor:not-allowed}
#tybh .tybh-search{max-width:470px}
#tybh .tybh-alpha-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 19px;margin:7px 0 0}
#tybh .tybh-alpha-results a{display:block;padding:10px 0;font-size:13px;line-height:1.35;font-weight:650;border-bottom:1px solid var(--line)}
#tybh .tybh-last-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 15px}
#tybh .tybh-card{min-width:0}
#tybh .tybh-card-link{display:block}
#tybh .tybh-photo{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;background:#e8f0ea}
#tybh .tybh-photo img{display:block;width:100%;height:100%;max-width:none;object-fit:cover}
#tybh .tybh-no-photo{display:flex;height:100%;align-items:center;justify-content:center;font-size:12px;color:#698477}
#tybh .tybh-card strong{display:block;font-size:15px;line-height:1.3;color:var(--ink);margin-top:9px}
#tybh .tybh-card small{display:block;font-size:11px;line-height:1.4;color:var(--muted);margin-top:4px}
#tybh .tybh-add{appearance:none;border:1px solid #c6e0cf;background:#f0f8f2;color:#17733c;font-size:11px;font-weight:750;padding:6px 8px;margin-top:8px;border-radius:0;cursor:pointer}
#tybh .tybh-add:hover,#tybh .tybh-add[aria-pressed=true]{background:var(--green);color:#fff}
#tybh .tybh-selection{display:flex;align-items:center;flex-wrap:wrap;gap:9px 13px;border:1px solid #acd1b5;background:#e5f5e9;padding:10px 14px;margin-bottom:24px;font-size:13px}
#tybh .tybh-selection button{border:1px solid #c4d8ca;border-radius:0;background:#fff;padding:7px 11px;font:inherit;font-weight:700;cursor:pointer}
#tybh .tybh-selection button[data-go-compare]{background:var(--green);color:#fff;border-color:var(--green)}
#tybh a:focus-visible,#tybh button:focus-visible,#tybh select:focus-visible,#tybh input:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:1000px){#tybh .tybh-tools{grid-template-columns:repeat(2,minmax(0,1fr))}#tybh .tybh-alpha-results,#tybh .tybh-last-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){#tybh{width:100%}#tybh .tybh-heading h1{font-size:26px}#tybh .tybh-tools{gap:8px}#tybh .tybh-tool{min-height:115px;padding:12px}#tybh .tybh-tool strong{font-size:14px}#tybh .tybh-tool small{font-size:11px}#tybh .tybh-section-head h2{font-size:21px}#tybh .tybh-dual,#tybh .tybh-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#tybh .tybh-alpha-results,#tybh .tybh-last-grid,#tybh .tybh-pick-list{grid-template-columns:repeat(2,minmax(0,1fr))}#tybh .tybh-cost-results{grid-template-columns:1fr;gap:7px}#tybh .tybh-cost-results>div{padding:9px 12px}#tybh .tybh-cost-results strong{font-size:19px}#tybh .tybh-compare-head,#tybh .tybh-compare-row{grid-template-columns:26% 37% 37%}#tybh .tybh-compare-head>*,#tybh .tybh-compare-row>*{font-size:11px;padding:8px 6px}}
@media(max-width:380px){#tybh .tybh-form-grid,#tybh .tybh-dual{grid-template-columns:1fr}#tybh .tybh-letters button{min-width:30px}}

/* Keep the hub as compact as Atlas: tool panels appear only when invoked. */
#tybh.tybh-enhanced .tybh-interactive:not(.is-open){display:none!important}
body.tybh-hub-page .hero-section,body.tybh-hub-page .entry-header{display:none!important}
body.tybh-hub-page .site-main{padding-top:0!important}
body.tybh-hub-page .entry-content{margin-top:0!important}
body.tybh-hub-page .entry-content>.wp-block-shortcode{margin-top:0!important}
body.tybh-hub-page .ct-container-full{padding-top:10px!important}

/* v0.6.1 — prevent the Blocksy narrow post container from offsetting the hub.
   Scope every rule to this shortcode page; header, footer and posts stay intact. */
body.tybh-hub-page #main.site-main,
body.tybh-hub-page #main > article,
body.tybh-hub-page #main > article .entry-content,
body.tybh-hub-page #main .entry-content,
body.tybh-hub-page #main .entry-content > .wp-block-shortcode {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    min-width: 0;
}
body.tybh-hub-page #main.site-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
}
body.tybh-hub-page #main .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.tybh-hub-page #main #tybh {
    width: 100% !important;
    max-width: 1300px !important;
    margin: 0 auto 50px !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-sizing: border-box;
}
@media(max-width:700px) {
    body.tybh-hub-page #main.site-main {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* v0.6.2: searchable selectors and inline name suggestions, Atlas-style */
#tybh .tybh-native-select{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)}
#tybh .tybh-combobox{position:relative;width:100%;min-width:0}
#tybh .tybh-combobox input{width:100%;height:40px;border-radius:0;background:#fff}
#tybh .tybh-search{position:relative}
#tybh .tybh-suggest{position:absolute;z-index:30;top:100%;left:0;right:0;max-height:270px;overflow:auto;background:#fff;border:1px solid #b7d3c1;box-shadow:0 6px 16px rgba(12,52,30,.08)}
#tybh .tybh-suggest>a,#tybh .tybh-suggest>button{display:block!important;width:100%;min-height:37px;padding:9px 12px!important;text-align:left;background:#fff;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;font:inherit;font-size:13px;font-weight:650;cursor:pointer;line-height:1.4;text-decoration:none}
#tybh .tybh-suggest>a:hover,#tybh .tybh-suggest>a:focus-visible,#tybh .tybh-suggest>button:hover,#tybh .tybh-suggest>button:focus-visible{background:var(--tint);color:#11763a;outline:none}
#tybh .tybh-compare-hint{grid-column:1/-1;font-size:12px;color:#168640;margin:0 0 2px}
#tybh .tybh-dual{align-items:start}
#tybh .tybh-dual label{min-width:0}
#tybh .tybh-combobox input:disabled{background:#f3f7f4;color:#82968a}

/* v0.6.6: one filter and live photo results; no redundant alphabet index */
#tybh .tybh-catalog { padding-bottom: 9px; }
#tybh .tybh-catalog .tybh-switch { margin: 0 0 12px; }
#tybh .tybh-catalog .tybh-search { display:block; max-width: 470px; }
#tybh .tybh-last { margin-top: 10px; }
#tybh .tybh-last-grid[hidden],#tybh .tybh-search-grid[hidden] { display:none!important; }
#tybh [data-search-empty][hidden] { display:none!important; }
#tybh [data-search-empty] { margin: 10px 0 0; font-size: 14px; color:var(--muted); }

/* v0.6.7: alphabetical dropdown for catalog and comparison; same Atlas visual language. */
#tybh .tybh-suggest {max-height:300px;overscroll-behavior:contain;scrollbar-width:thin;}
#tybh .tybh-suggest[hidden] {display:none!important;}
#tybh .tybh-suggest-empty {padding:12px;color:var(--muted);font-size:13px;}
#tybh .tybh-combobox input,#tybh .tybh-search input[data-alpha-search] {cursor:text;}
#tybh .tybh-combobox:focus-within {z-index:8;}
#tybh .tybh-search:focus-within {z-index:8;}
@media (max-width:700px){#tybh .tybh-suggest {max-height:min(45vh,300px);}}

/* v0.7.6 — pagination for all breeds */
#tybh .tybh-pages{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;margin:26px 0 8px;}
#tybh .tybh-pages[hidden]{display:none!important;}
#tybh .tybh-pages button{appearance:none;min-width:36px;min-height:36px;padding:7px 12px;background:#fff;border:1px solid #d6e4d9;border-radius:0;color:#1b4730;font:inherit;font-size:13px;font-weight:700;cursor:pointer;}
#tybh .tybh-pages button.is-active{background:#129843;border-color:#129843;color:#fff;}
#tybh .tybh-pages button:hover:not(:disabled):not(.is-active){background:#eef7f0;border-color:#129843;}
#tybh .tybh-pages button:disabled{opacity:.38;cursor:default;}
#tybh .tybh-pages-gap{color:#708577;padding:0 3px;}
@media(max-width:600px){#tybh .tybh-pages{gap:4px;margin-top:20px;}#tybh .tybh-pages button{min-width:33px;padding:7px 9px;font-size:12px;}}
