/*
Theme Name: Berta Catalog (Child)
Template: blocksy
Description: Child theme of Blocksy. Injects the bespoke nursing-home catalog body into Blocksy's content area (Blocksy controls the shell, sidebar, width, spacing via the Customizer).
Author: Noka Studio
Version: 0.9.123
Text Domain: berta-catalog-child
*/

/* פלטת צבעים/רדיוסים — מקור אמת אחד לכל האתר. */
:root{
  --bz-ink:#262420; --bz-muted:#6B6862; --bz-line:#E7E2DA; --bz-surface:#FFFFFF;
  --bz-teal:#0F6E56; --bz-teal-soft:#E1F0EA; --bz-cta:#B23A48; --bz-radius:12px; --bz-radius-sm:8px;
}

/* ניקוי 0.9.22: הוסרו מחלקות הרנדר הישן שכובה (nh-body, nh-meta, badges, facts, section,
   nh-sections/nh-card, nh-video*, וכפילויות expert). מחלקות של עמוד-הבית בלבד (nh-gi, nh-map,
   gallery) הועברו ל-inc/berta-single/berta-single.css. כאן נשאר רק מה שמשותף / לתבניות אחרות. */

/* ===== עמודי אזור/עיר (taxonomy landing) — פתיח + שאלות נפוצות (details/summary) ===== */
.nh-intro{font-size:16px;line-height:1.7;margin:0 0 18px}
.nh-faq{margin:24px 0;border-top:1px solid var(--bz-line);padding-top:16px}
.nh-faq h2{font-size:19px;font-weight:600;margin:0 0 10px}
.nh-faq-item{border-bottom:1px solid var(--bz-line);padding:10px 0}
.nh-faq-item summary{font-weight:700;cursor:pointer;list-style:none}
.nh-faq-item summary::-webkit-details-marker{display:none}
.nh-faq-item>div{color:var(--bz-muted);padding-top:6px}

/* ===== וידאו מאמרים + גריד בית (berta-article-video) ===== */
.berta-article-video { margin: 24px 0; max-width: 720px; }
.berta-vfacade {
	display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
	background-size: cover; background-position: center; background-color: #000;
	border-radius: var(--bz-radius, 12px); cursor: pointer; position: relative; overflow: hidden;
}
.berta-vfacade::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); transition: background .15s ease; }
.berta-vfacade:hover::after { background: rgba(0,0,0,.05); }
.berta-vfacade__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 1;
	width: 62px; height: 62px; border-radius: 50%; background: #cc0000;
	box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.berta-vfacade__play::before {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff;
}
.berta-vfacade:hover .berta-vfacade__play { background: #e60000; }
.berta-vframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--bz-radius, 12px); display: block; }
.berta-vfacade--short, .berta-vframe--short { aspect-ratio: 9 / 16; max-width: 360px; margin-inline: auto; }

.berta-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin: 8px 0; }
.berta-vcard { margin: 0; }
.berta-vcard figcaption { margin-top: 10px; font-weight: 600; line-height: 1.4; }
.berta-vcard figcaption a { color: var(--bz-ink, #262420); text-decoration: none; }
.berta-vcard figcaption a:hover { color: var(--bz-teal, #14716A); text-decoration: underline; }

/* WCAG 1.4.1: a link inside running text must not rely on colour alone (axe link-in-text-block,
   1.44:1 against the paragraph, 17.11.2026, #88). Blocksy's link style (data-link=type-2) already
   underlines links in .entry-content; the location intro (.nh-intro) sits outside it. Same pattern
   as Blocksy, so the underline goes away on hover exactly as it does in the content (#92 review). */
[data-link=type-2] .nh-intro :where(p,em,strong)>a:not(:hover) { --theme-text-decoration: underline; }

/* Header contact bar. The HTML lives in the Customizer (Header, Text element) and stays editable:
   <ul class="berta-topbar"><li class="berta-topbar__addr">address</li><li class="berta-topbar__tel"><a href="tel:...">phone</a></li></ul>
   The RU version is its Polylang translation (Languages, Strings, group Blocksy). Icons come from here. */
.ct-header-text ul.berta-topbar,ul.berta-topbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px;list-style:none;margin:0;padding:0}
.ct-header-text .berta-topbar li{display:inline-flex;align-items:center;gap:6px;margin:0;padding:0}
.ct-header-text .berta-topbar :is(.berta-topbar__addr,.berta-topbar__tel)::before{color:inherit;content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:var(--berta-ic) center/contain no-repeat;mask:var(--berta-ic) center/contain no-repeat}
.berta-topbar__addr{--berta-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E")}
.berta-topbar__tel{--berta-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E")}
.ct-header-text .berta-topbar a{display:inline-flex;align-items:center;min-height:24px;padding-block:4px;color:inherit;text-decoration:none;unicode-bidi:isolate;direction:ltr}
.ct-header-text .berta-topbar a:hover{text-decoration:underline}
.ct-header-text .berta-topbar a:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:2px}

/* Home hero card: the <picture> wrapper (image optimizer) shrank in the flex row and made the round avatar an oval (Alexander, 19.11) */
.home-hero-card>picture{flex:none;display:block;line-height:0}

/* Header button (Blocksy CTA) in Russian: text aligned to the start of the line, not to the right (Alexander, 19.11) */
html[lang^="ru"] .ct-header-cta .ct-button-text,html[lang^="ru"] .ct-header-cta .ct-button-secondary-text{text-align:left}

/* Post navigation in Hebrew: the label is "הקודם" / "הבא" (inc/berta-blocksy-strings); Blocksy's post type name after it would read twice */
html[lang^="he"] .post-navigation .item-label>span{display:none}

/* Search form in the narrow sidebar: less padding than the hero (Additional CSS sets 40px for every .berta-hero-search) */
.ct-sidebar .berta-hero-search{padding:20px}

/* WCAG 1.4.10: RU content tables overflowed 320px and an ancestor clips overflow-x, so cells were cut off (19.11.2026). Scoped to RU on narrow screens: in Hebrew it broke words mid-letter, and on desktop it added needless hyphens. */
@media (max-width:689.98px){html[lang^="ru"] .entry-content table :is(th,td){overflow-wrap:anywhere;hyphens:auto}}

/* Articles (single post): Blocksy content spacing is 0 site-wide (Customizer), which left no space between paragraphs and headings. Restored only inside articles, so GreenShift pages built on 0 are untouched. Alona, 22.11.2026. */
body.single-post main article.type-post>.entry-content{--theme-content-spacing:1.1em;--has-theme-content-spacing:1}
body.single-post main article.type-post>.entry-content>:is(h2,h3,h4){margin-block-start:1.8em;margin-block-end:.5em}
body.single-post main article.type-post>.entry-content>:is(h2,h3,h4)+*{margin-block-start:0}
body.single-post main article.type-post>.entry-content>h3{margin-block-start:1.4em}
body.single-post main article.type-post>.entry-content>:first-child{margin-block-start:0}
/* Featured image: never upscale, and at most 600px wide on desktop. */
body.single-post .ct-featured-image img{width:auto;max-width:min(100%,600px);height:auto}
/* Sidebar help box ("אנחנו כאן בשבילכם"): the call line was white on cream (1.15:1) and on the brown shape (2.62:1). Navy passes on both (10.6:1, 4.66:1). The gap restores the space flex removed after "התקשרו:". 22.11.2026. */
.service-details-help .help-contact,.service-details-help .help-contact a{color:var(--theme-palette-color-1,#15365E)}
.service-details-help .help-contact{gap:.35em;flex-wrap:wrap}
/* Article bar "מתלבטים אם להעביר את ההורה לבית אבות?" (hook 4491 / 5471): Berta's name and her Facebook page
   under the text, white on navy like the text above it (Danil, 22.11.2026). */
.author-box .author-box-name{color:#fff;margin:8px 0 0;font-size:15px;font-weight:600}
.author-box .author-box-name a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.author-box .author-box-name a:focus-visible{outline:3px solid #fff;outline-offset:2px}
