/*
 * Styles of blocks and patterns (docs/theme/03-block-contract.md).
 * Loaded after main.css; also used in the block editor (add_editor_style).
 * Tokens come from main.css (:root --bh-*), every use has a fallback so the file also works alone.
 */

/* == 1. Sections ============================================================ */
.bh-section {
	box-sizing: border-box;
	padding: 32px var(--bh-gutter, 40px);
}
.bh-section--md { padding-block: 64px; }
.bh-section--auto { padding-block: 0; }
@media (max-width: 1024px) { .bh-section--md { padding-block: 40px; } }
@media (max-width: 600px) { .bh-section { padding-inline: 20px; } .bh-section--md { padding-block: 24px; } }

.bh-section p { margin: 0 0 20px; color: #666; font-size: 16px; line-height: 20px; }
.bh-section p:last-child { margin-bottom: 0; }
.bh-section p a { color: var(--bh-accent-text, #33708f); text-decoration: underline; text-underline-offset: .15em; }
.bh-section p a:hover { color: var(--bh-accent-text-hover, #1f4f69); }

.bh-section__title {
	margin: 0 0 20px;
	color: #000;
	font-size: 40px;
	line-height: 44px;
	font-weight: 600;
}
.bh-section--help .bh-section__title { margin-bottom: 90px; }
.bh-section--country-nav .bh-section__title { margin-bottom: 60px; }
.bh-section--map .bh-section__title,
.bh-section__title.map-title { margin-bottom: 0; }
@media (max-width: 660px) {
	.bh-section__title { font-size: 32px; line-height: 1.1; }
	.bh-section--help .bh-section__title { margin-bottom: 40px; }
}

.bh-section--page-header { background: var(--bh-bg-cream, #fff8ef); }
.bh-page-header__title { margin: 0 0 12px; font-size: 50px; line-height: 1.1; }
.bh-page-header__lead { font-size: 20px; line-height: 1.4; }
@media (max-width: 660px) { .bh-page-header__title { font-size: 32px; } }

/* == 2. Buttons inside sections (Impreza styles 1 / 2 / 3 / 4) ================= */
.bh-section .wp-block-button__link {
	position: relative;
	padding: 16px 32px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: var(--bh-accent, #7baecc);
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
	transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.bh-section .wp-block-button__link:hover,
.bh-section .wp-block-button__link:focus-visible {
	border-color: var(--bh-accent, #7baecc);
	background: #fff;
	color: var(--bh-accent-text, #33708f);
}
.bh-section .is-style-outline > .wp-block-button__link {
	border: 2px solid var(--bh-accent, #7baecc);
	background: #fff;
	color: var(--bh-accent-text, #33708f);
	font-weight: 500;
	line-height: 1.2;
}
.bh-section .is-style-outline > .wp-block-button__link:hover,
.bh-section .is-style-outline > .wp-block-button__link:focus-visible {
	border-color: #fff;
	background: var(--bh-accent, #7baecc);
	color: #fff;
}
.bh-section .is-style-link > .wp-block-button__link,
.bh-section .bh-btn-link > .wp-block-button__link {
	padding: .3em 0;
	border: 0;
	border-radius: .3em;
	background: transparent;
	color: var(--bh-accent-text, #33708f);
}
.bh-section .bh-btn-danger > .wp-block-button__link { border-color: transparent; background: #db8d91; color: #fff; }
.bh-section .bh-btn-danger > .wp-block-button__link:hover { border-color: #db8d91; background: #fff; color: #db8d91; }
.bh-section .wp-block-buttons { margin-top: 24px; }

/* == 3. Hero ================================================================== */
.bh-hero { padding-block: 32px; }
.bh-hero__cols {
	gap: 0;
	min-height: 540px;
	margin: 0;
	border-radius: 20px;
	background: #fef5ea url("../img/hero-frame.png") center / cover no-repeat; /* Fallback for browsers without image-set(). */
	background: #fef5ea image-set(url("../img/hero-frame.webp") type("image/webp"), url("../img/hero-frame.png") type("image/png")) center / cover no-repeat;
}
.bh-hero__text { flex-basis: 55% !important; padding: 0 24px 0 150px; }
.bh-hero__media { flex-basis: 45% !important; align-self: stretch; }
.bh-hero__media .wp-block-image { margin: 0; }
.bh-hero__image img { display: block; width: 100%; max-width: 540px; height: auto; margin-left: auto; border-radius: 20px; aspect-ratio: 1; object-fit: cover; }
.bh-hero__title { max-width: 454px; margin: 0 0 24px; color: #444; font-size: 50px; line-height: 60px; font-weight: 600; }
.bh-section .bh-hero__lead { max-width: 352px; margin: 0 0 24px; color: #000; font-size: 20px; line-height: 25px; }
.bh-hero__actions { margin-top: 0 !important; }
.bh-section .bh-hero__cta > .wp-block-button__link {
	padding: 0 50px;
	border: 0;
	border-radius: 20px;
	background: #e8ac37;
	color: #fff;
	font-weight: 400;
	line-height: 53px;
}
.bh-section .bh-hero__cta > .wp-block-button__link:hover,
.bh-section .bh-hero__cta > .wp-block-button__link:focus-visible {
	background: #d4962a;
	color: #fff;
}
/* Second hero button (Lachin / RefAid TWIIN, C11): outline of the yellow CTA, same 53px height. */
.bh-section .bh-hero__actions { gap: 12px; }
.bh-section .bh-hero__cta--alt > .wp-block-button__link { border: 2px solid #e8ac37; background: #fff; color: #000; line-height: 49px; }
.bh-section .bh-hero__cta--alt > .wp-block-button__link:hover,
.bh-section .bh-hero__cta--alt > .wp-block-button__link:focus-visible { background: #e8ac37; color: #000; }
@media (max-width: 1024px) {
	.bh-hero__cols { min-height: 380px; }
	.bh-hero__text { padding-left: 64px; }
	.bh-hero__title { font-size: 30px; line-height: 33px; }
}
@media (max-width: 781px) {
	.bh-hero__cols { flex-direction: column-reverse; min-height: 0; padding: 0 0 32px; background: transparent; }
	.bh-hero__text, .bh-hero__media { flex-basis: auto !important; width: 100%; padding: 0; text-align: center; }
	.bh-hero__text { padding-inline: 20px; }
	.bh-hero__title, .bh-section .bh-hero__lead { max-width: none; margin-inline: auto; }
	.bh-hero__title { font-size: 24px; line-height: 34px; }
	.bh-hero__image img { max-width: 305px; margin: 0 auto 24px; }
	.bh-hero__actions { justify-content: center; }
}

/* == 4. Help cards ============================================================ */
.bh-cards { gap: 20px; margin-bottom: 20px; }
.bh-card { box-sizing: border-box; padding: 24px; border-radius: 20px; background-color: var(--wp--preset--color--sky, #f0fcff); }
.bh-cards > .bh-card { display: flex; flex-direction: column; justify-content: center; min-height: 233px; }
.bh-card__head { display: flex; align-items: center; gap: 19px; margin: 30px 0 15px 20px; }
.bh-card__title, .bh-card__head h3, .bh-card__head h4 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; }
.bh-section p.bh-card__text { max-width: 530px; margin: 0 0 30px 20px; }
.bh-icon, .bh-icon img { flex: none; width: 30px; height: 30px; margin: 0; }
.bh-help__more,
.bh-section--help > .wp-block-buttons { justify-content: center; margin-top: 20px; }
@media (max-width: 1024px) {
	.bh-card__head { margin: 20px 0 15px 10px; }
	.bh-section p.bh-card__text { max-width: 430px; margin-left: 10px; }
}
@media (max-width: 660px) {
	.bh-card { padding: 21px; }
	.bh-card__title, .bh-card__head h3, .bh-card__head h4 { font-size: 18px; }
	.bh-section p.bh-card__text { font-size: 14px; line-height: 1.2; }
}

/* == 5. Support block (details + accordion) =================================== */
.bh-support {
	width: calc(100% - 2 * var(--bh-gutter, 40px));
	max-width: 1200px;
	margin: 20px auto;
	padding: 32px 40px;
	border-radius: 20px;
}
.bh-support__head { display: flex; align-items: center; gap: 19px; margin-bottom: 20px; }
.bh-support__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 500; }
.bh-section p.bh-support__intro { width: 70%; margin: 0 auto calc(40px + .3rem) 0 !important; /* beats the constrained-layout auto margins */ }
/* Reference: Impreza button wrapper (margin .3rem, inside a flex column, so the top one does not collapse into the
   intro's 40px and sits on the intro above) around a 16/19.2 button with margin-bottom 30px. */
.bh-support__more { margin: 0 0 calc(30px + .3rem); }
.bh-support__more > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: .3em 0;
	font-size: 16px;
	line-height: 1.2;
	list-style: none;
	color: var(--bh-accent-text, #33708f);
	cursor: pointer;
}
.bh-support__more > summary::-webkit-details-marker { display: none; }
.bh-support__more > summary::after {
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border: solid currentcolor;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
	transition: transform .2s;
}
/* Both labels are in the markup (inc/i18n.php, per language); only the one for the current state is shown, and display:none
   keeps the hidden one out of the accessible name. */
.bh-support__label--open,
.bh-support__more[open] > summary > .bh-support__label--closed { display: none; }
.bh-support__more[open] > summary > .bh-support__label--open { display: inline; }
.bh-support__more[open] > summary::after { margin-top: 4px; transform: rotate(225deg); }
.bh-support__more > .bh-accordion { margin-top: 20px; }
@media (max-width: 660px) {
	.bh-support { padding: 21px; }
	.bh-section p.bh-support__intro { font-size: 1rem; line-height: 1.2; }
}

/* == 6. Accordion ============================================================= */
.bh-accordion .wp-block-accordion-item {
	margin: 0;
	border: 1px solid var(--bh-accent, #7baecc);
	border-bottom-width: 0;
	background: #fff;
}
.bh-accordion .wp-block-accordion-item:last-child { border-bottom-width: 1px; }
.bh-accordion .wp-block-accordion-heading { margin: 0; font-size: 16px; line-height: 24px; font-weight: 400; }
.bh-accordion .wp-block-accordion-heading__toggle {
	padding: 16px 24px;
	color: #000;
	font-size: 16px;
	line-height: 24px;
	font-weight: 400;
	text-align: left;
	transition: background .2s, color .2s;
}
.bh-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; }
.bh-accordion .wp-block-accordion-heading__toggle-icon { height: 24px; font-size: 22px; line-height: 24px; color: var(--bh-accent-text, #33708f); }
.bh-accordion .wp-block-accordion-heading__toggle { align-items: center; }
.bh-accordion .wp-block-accordion-panel { padding: 0 24px 24px; }
.bh-accordion .wp-block-accordion-panel p { margin: 0 0 12px; color: #666; }
.bh-accordion--faq { border: 2px solid var(--bh-accent, #7baecc); border-radius: 10px; overflow: hidden; }
.bh-accordion--faq .wp-block-accordion-item { border-width: 0 0 1px; }
.bh-accordion--faq .wp-block-accordion-item:last-child { border-bottom-width: 0; }
.bh-accordion--faq .wp-block-accordion-heading,
.bh-accordion--faq .wp-block-accordion-heading__toggle { font-size: 20px; line-height: 30px; font-weight: 500; }
@media (max-width: 660px) {
	.bh-accordion .wp-block-accordion-heading__toggle { padding: 14px 21px; font-size: 14px; }
	.bh-accordion--faq .wp-block-accordion-heading__toggle { font-size: 16px; line-height: 24px; }
}

/* == 7. Service points ======================================================== */
.bh-section--points { background: var(--bh-bg-cream, #fff8ef); }
/* Reference (us_page_block 303 & co.): cream page row around a nested row, so the cream band is full width and the
   content box is 1120 / 608 / 306 wide (two rows of padding on each side). Point = 60px (3 lines), margin-bottom
   50 / 30 / 10 on every point (Estonia's fifth point lacks it in the content; the common case wins). `> .bh-point` outranks core's `.is-layout-grid > :is(*, div) { margin: 0 }`. */
.bh-main .bh-section.bh-section--points {
	padding: calc(2 * var(--bh-row)) max(calc(2 * var(--bh-row-x)), calc((100% - 1120px) / 2));
}
.bh-section .bh-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.bh-point { display: flex; align-items: flex-start; gap: 19px; }
.bh-section .bh-points > .bh-point { margin-bottom: 50px; }
.bh-point__body { min-width: 0; }
.bh-section p.bh-point__city { margin: 0; color: #000; font-size: 20px; line-height: 1; font-weight: 700; }
.bh-section p.bh-point__address, .bh-section p.bh-point__phone { margin: 0; }
.bh-point__phone a { color: rgb(54, 54, 54); }
@media (max-width: 1024px) {
	.bh-section .bh-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bh-section .bh-points > .bh-point { margin-bottom: 30px; }
}
@media (max-width: 660px) {
	.bh-section p.bh-point__address, .bh-section p.bh-point__phone { font-size: 1rem; line-height: 1.2; }
}
@media (max-width: 600px) {
	.bh-section .bh-points { grid-template-columns: minmax(0, 1fr); }
	.bh-section .bh-points > .bh-point { margin-bottom: 10px; }
}

/* == 8. Partner of a country ================================================== */
.bh-section--partner {
	width: calc(100% - 2 * var(--bh-gutter, 40px));
	max-width: 1200px;
	margin: 20px auto;
	padding: 32px 40px 32px 100px;
	border-radius: 20px;
}
.bh-partner { gap: 48px; align-items: center; margin: 0; }
.bh-partner__title { margin: 0 0 20px; color: var(--bh-accent-text, #33708f); font-size: 40px; line-height: 1.1; font-weight: 700; }
.bh-partner__logo { margin: 0 0 30px; }
.bh-partner__logo > a { display: block; width: fit-content; }
/* The converter carries the Impreza image size (sizeSlug + file), so logos show at their file size as in the
   reference: Poland 150x150 (thumbnail), Sweden 300x90 (270 wide at 768), Estonia 166x39, Finland 77x60, Latvia 88x42. */
.bh-partner__logo img { display: block; width: auto; max-width: 100%; height: auto; }
/* Several logos in one row (Norway, block 314): Impreza us_hwrapper, centred, gap 1.2rem, margin-bottom 30.
   In a narrow column the logos shrink in proportion (flex-shrink by natural width), as in the reference:
   row 506x112 at 1440; at 768 the reference row is inset 10px per side (logos 32x55, 108x21, 72x26);
   at 390 its per-logo widths give a 53px row, matched here by a 32px inset (first logo 30x53). */
.bh-section--partner .bh-partner__logos { justify-content: center; align-items: center; gap: 1.2rem; margin: 0 0 30px; }
.bh-partner__logos > .bh-partner__logo { flex: 0 1 auto; min-width: 0; margin: 0; }
@media (max-width: 1024px) { .bh-section--partner .bh-partner__logos { padding-inline: 10px; } }
@media (max-width: 600px) { .bh-section--partner .bh-partner__logos { gap: 17px; padding-inline: 32px; } }
.bh-partner > .bh-partner__media { align-self: center; } /* core columns force align-items: normal */
.bh-section p.bh-partner__text:not(:last-child) { margin-bottom: 1.5rem; }
.bh-partner__image { margin: 0; }
.bh-partner__image img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .bh-section--partner { padding-left: 60px; } }
/* Reference keeps text and photo side by side on tablets (270 + 48 + 270 at 768);
   core stacks columns below 782px with !important (0,3,0), so only !important with more weight undoes it. */
@media (min-width: 601px) and (max-width: 1024px) {
	.bh-section--partner > .bh-partner.wp-block-columns { flex-wrap: nowrap !important; }
	.bh-section--partner > .bh-partner.wp-block-columns > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; }
}
@media (max-width: 660px) {
	.bh-section--partner { padding: 60px 21px 60px 40px; }
	.bh-partner__title { font-size: 32px; }
	.bh-section p.bh-partner__text { font-size: 1rem; line-height: 1.2; }
}
/* Mobiles: text column 300 wide (overhangs the 287px box, so the title stays on one line), copy 270 wide;
   the hidden photo column still leaves a 1.5rem gap above the bottom padding. */
@media (max-width: 600px) {
	.bh-main .bh-section.bh-section--partner { width: calc(100% - 2 * var(--bh-row-x)); padding-bottom: calc(60px + 1.5rem); }
	.bh-section--partner > .bh-partner.wp-block-columns > .bh-partner__text { flex-basis: 300px !important; flex-shrink: 0; }
	.bh-section p.bh-partner__text { max-width: 270px; }
	.bh-partner__media, .bh-partner__image { display: none; }
}

/* == 9. About project ========================================================= */
.bh-section--about {
	width: calc(100% - 2 * var(--bh-gutter, 40px));
	max-width: 1200px;
	margin-inline: auto;
	padding: 48px clamp(24px, 5vw, 64px) 56px;
	border-radius: 20px;
	background-color: var(--bh-bg-cream, #fff8ef);
}
.bh-section--about { scroll-margin-top: var(--bh-header-h, 90px); }
.bh-section--about .bh-section__title { margin-bottom: 40px; }
.bh-about, .bh-about__pair { gap: 24px; margin: 0; }
.bh-about { align-items: center; }
.bh-about__text p { color: #444; font-size: 17px; line-height: 1.55; }
.bh-about__text .wp-block-buttons { margin-top: 28px; }
.bh-about__photo { margin: 0; }
/* The source PNGs have their own transparent rounded corners: no radius/box-shadow on the box (grey corners), drop-shadow follows the alpha. */
.bh-about__photo a { display: block; border-radius: 16px; cursor: zoom-in; }
.bh-about__photo a:focus-visible { outline: 2px solid var(--bh-accent-text, #33708f); outline-offset: 4px; }
.bh-about__photo img { filter: drop-shadow(0 6px 12px rgba(80, 60, 30, .16)); transition: filter .3s, transform .3s; }
.bh-about__photo a:hover img, .bh-about__photo a:focus-visible img { filter: drop-shadow(0 10px 18px rgba(80, 60, 30, .24)); transform: translateY(-2px); }
.bh-about__photo img { display: block; width: 100%; height: auto; }
@media (max-width: 781px) {
	.bh-section--about { padding-block: 32px 40px; }
	.bh-section--about .bh-section__title { margin-bottom: 24px; }
	.bh-about { gap: 28px; }
	.bh-about__text, .bh-about__photos { flex-basis: 100% !important; }
}
@media (max-width: 480px) { .bh-about__pair { flex-direction: column; } }

/* Lightbox (assets/js/main.js): dimmed, blurred backdrop so nothing distracts from the picture. */
.bh-lightbox {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 72px;
	background: rgba(10, 14, 20, .62);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	opacity: 0;
	transition: opacity .25s;
}
.bh-lightbox.is-open { opacity: 1; }
/* The img box must hug the picture (no object-fit letterbox), or the rounded corners clip empty space. */
.bh-lightbox__img {
	width: auto;
	height: auto;
	max-width: calc(100vw - 144px);
	max-height: calc(100vh - 112px);
	max-height: calc(100dvh - 112px);
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5));
	transform: scale(.96);
	transition: transform .25s;
}
.bh-lightbox.is-open .bh-lightbox__img { transform: none; }
.bh-lightbox__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s;
}
.bh-lightbox__btn:hover, .bh-lightbox__btn:focus-visible { background: rgba(255, 255, 255, .3); }
.bh-lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.bh-lightbox__close { top: 16px; right: 16px; }
.bh-lightbox__prev { left: 16px; }
.bh-lightbox__next { right: 16px; }
.bh-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; color: rgba(255, 255, 255, .8); font-size: 14px; text-align: center; }
html.bh-lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .bh-lightbox { padding: 64px 12px; } .bh-lightbox__img { max-width: calc(100vw - 24px); } .bh-lightbox__prev { left: 8px; } .bh-lightbox__next { right: 8px; } }
@media (prefers-reduced-motion: reduce) { .bh-lightbox, .bh-lightbox__img { transition: none; } }

/* == 10. Partner logos ======================================================== */
.bh-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 24px; align-items: center; }
.bh-logos__item { margin: 0; text-align: center; }
.bh-logos__item img { display: inline-block; width: auto; max-width: 100%; max-height: 80px; object-fit: contain; }

/* == 11. News (carousel and grid) ============================================= */
.bh-news .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
/* Carousel as in Impreza/Owl: list bleeds 1.5rem each side, item padding 1.5rem, 3/2/1 items, 36px of dots below. */
.bh-news--carousel { margin: -1.5rem 0 40px; }
.bh-news--carousel::after { display: block; height: 36px; content: ""; }
.bh-news--carousel .wp-block-post-template {
	display: flex;
	gap: 0;
	margin: 0 -1.5rem;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bh-news--carousel .wp-block-post-template::-webkit-scrollbar { display: none; }
.bh-news--carousel .wp-block-post-template > li {
	flex: 0 0 calc(100% / 3);
	box-sizing: border-box;
	margin: 0;
	padding: 1.5rem;
	scroll-snap-align: start;
}
/* Card fills its slide (never wider than the list window), so nothing is cut at 375 px or 1440 px. */
.bh-news--carousel .wp-block-post-template { width: calc(100% + 3rem); max-width: none; }
.bh-news--carousel .wp-block-post-template > li { min-width: 0; scroll-snap-stop: always; }
.bh-news--carousel .bh-news__card { box-sizing: border-box; width: 100%; max-width: 350px; }
.bh-news--carousel .wp-block-post-template:focus-visible { outline: 2px solid var(--bh-accent-text, #33708f); outline-offset: -2px; border-radius: 20px; }
@media (max-width: 899px) { .bh-news--carousel .wp-block-post-template > li { flex-basis: 50%; } }
@media (max-width: 660px) { .bh-news--carousel .wp-block-post-template > li { flex-basis: 100%; } .bh-news--carousel .bh-news__card { max-width: none; } .bh-news--carousel::after { height: 34px; } }

/* Prev/next controls and position dots, added by assets/js/main.js (the ::after spacer stays as the no-JS fallback). */
.bh-news--carousel.is-enhanced::after { display: none; }
.bh-news__nav { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; margin-top: 4px; }
.bh-news__nav[hidden] { display: none; }
.bh-news__arrow {
	display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid #000; border-radius: 50%;
	background: #fff; color: #000; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.bh-news__arrow svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bh-news__arrow:hover, .bh-news__arrow:focus-visible { background: #000; color: #fff; }
.bh-news__arrow:focus-visible { outline: 2px solid var(--bh-accent-text, #33708f); outline-offset: 3px; }
.bh-news__arrow[aria-disabled="true"] { border-color: #c5c5c5; background: #fff; color: #c5c5c5; cursor: default; }
.bh-news__pos { display: flex; align-items: center; gap: 8px; }
.bh-news__pos i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, .3); transition: background-color .2s, transform .2s; }
.bh-news__pos i.is-current { background: #000; transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) {
	.bh-news__arrow, .bh-news__pos i { transition: none; }
	.bh-news--carousel .wp-block-post-template { scroll-behavior: auto; }
}

.bh-news__card { padding: 0; border-radius: 0; background: none; }
.bh-news__card > * { margin-block: 0; }
.bh-card__image { margin: 0 0 .6rem; }
.bh-card__image img { display: block; width: 100%; aspect-ratio: 350 / 188; border-radius: 20px; object-fit: cover; }
.bh-news__card .bh-card__title {
	display: -webkit-box;
	margin: 0 0 .3rem;
	overflow: hidden;
	font-size: 1.2rem;
	line-height: 1.2;
	font-weight: 600;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
/* Core sets .wp-block-post-title a to inline-block, which defeats -webkit-line-clamp (no ellipsis); keep it inline. */
.bh-card__title a { display: inline; color: #000; transition: color .3s; }
.bh-card__title a:hover { color: var(--bh-accent-text-hover, #1f4f69); }
.bh-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bh-card__date { color: var(--bh-muted, #6e6e6e); font-size: 14px; line-height: 1.6; }
.bh-card__tag, .bh-card__tag a { color: #000; font-size: 16px; line-height: 20px; }
/* WCAG 2.5.8: tag links are stand-alone targets, not inline text; give them at least 24x24 px. */
.bh-card__tag a, .bh-post__tags a { display: inline-block; min-width: 24px; min-height: 24px; padding-block: 2px; }
.bh-card__more { display: inline-block; padding: .3em 0; line-height: 1.2; color: var(--bh-accent-text, #33708f); font-size: 16px; }
.bh-card__more::after { margin-left: 8px; content: "\2192"; }

.bh-news__dots { display: flex; justify-content: center; height: 36px; }
.bh-news__dots button { width: 20px; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.bh-news__dots button::before { display: block; width: 8px; height: 8px; margin: 6px; border-radius: 50%; background: rgba(0, 0, 0, .3); content: ""; }
.bh-news__dots button[aria-selected="true"]::before { background: transparent; box-shadow: 0 0 0 2px #000; }

.bh-news--grid .wp-block-post-template { gap: 2rem; }
.bh-news__pagination { justify-content: center; gap: 8px; margin-top: 40px; }

/* == 12. Europe map =========================================================== */
/* Reference (us_page_block 168): the heading sits in its own nested row (padding 2rem 2.5rem, 1.5rem on mobiles),
   the map column is 838x793 / 625x590 / 300x283 (default / tablets / mobiles).
   `> .bh-map` outranks core's `.wp-container-* > :where(...) { max-width: 1200px }`. */
.bh-section--map > .bh-section__title { padding: 2rem 2.5rem; }
.bh-section--map > .bh-map { width: 838px; max-width: 100%; height: 793px; margin: 0 auto; }
@media (max-width: 1024px) { .bh-section--map > .bh-map { width: 625px; height: 590px; } }
@media (max-width: 600px) {
	.bh-section--map > .bh-section__title { padding: 1.5rem; }
	.bh-section--map > .bh-map { width: 300px; height: 283px; }
}
.bh-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.bh-map__bg path { fill: #cecece; }
.bh-map__country { cursor: pointer; outline: none; }
.bh-map__country path { fill: #eecbc0; transition: fill .3s; }
.bh-map__country:hover path,
.bh-map__country:focus-visible path { fill: #7baecc; }
.bh-map__country:focus-visible path { stroke: #000; stroke-width: 2; }
.bh-map__label {
	fill: #000;
	font-family: Rubik, sans-serif;
	font-size: 24px;
	visibility: hidden;
	pointer-events: none;
}
.bh-map__country:hover .bh-map__label,
.bh-map__country:focus-visible .bh-map__label { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .bh-map__country path { transition: none; } }

/* == 13. Country menu ========================================================= */
/* Reference (us_page_block 260): column 660 wide on tablets, 300 on mobiles; menu rows touch (no row gap). */
@media (max-width: 1024px) { .bh-section.bh-section--country-nav > * { max-width: 660px; } }
@media (max-width: 600px) { .bh-section.bh-section--country-nav > * { max-width: 300px; } }
.bh-country-nav__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bh-country-nav__item {
	margin: 0;
	border: 2px solid transparent;
	border-radius: 30px;
	transition: border-color .3s, background-color .3s;
}
.bh-country-nav__link {
	display: block;
	padding: .8em;
	color: #000;
	font-size: 16px;
	line-height: 20px;
}
.bh-country-nav__link:hover { color: #000; }
.bh-country-nav__item:hover,
.bh-country-nav__item:focus-within { border-color: var(--bh-accent-text, #33708f); }
.bh-country-nav__item:active,
.bh-country-nav__item.current-menu-item { background: var(--bh-accent, #7baecc); }
@media (max-width: 660px) {
	.bh-country-nav__list { gap: 0 21px; }
	.bh-country-nav__link { padding: 11.2px; font-size: 14px; line-height: 16.8px; }
}

/* == 14. Country pages: rhythm of the Impreza page rows ======================== */
/* Reference: each block of a country page is an us_page_block inside a page row (padding 2rem 2.5rem, 1.5rem on
   mobiles), so blocks stand two rows apart. Most country pages (Latvia, Lithuania, Finland, Norway, Poland, Ukraine)
   follow this; Estonia's menu row has an extra margin-bottom 30px and on Estonia and Sweden the CSS-only page
   block 351 sits above "Recent news" as an empty 4-row gap. Those two one-offs are not reproduced: all country pages
   get the common rhythm. Margins collapse between siblings, so margin-top carries the gap. Scope: pages with
   support blocks (country pages only). */
.bh-main { --bh-row: 2rem; --bh-row-x: 2.5rem; }
@media (max-width: 600px) { .bh-main { --bh-row: 1.5rem; --bh-row-x: 1.5rem; } }
.bh-entry__content:has(> .bh-support) > :is(.bh-section--country-nav, .bh-section--points, .bh-section--map) { margin-top: var(--bh-row); margin-bottom: 0; }
.bh-entry__content:has(> .bh-support) > :is(.bh-section--country-nav + *, .bh-section--partner, .bh-support) { margin-top: calc(2 * var(--bh-row)); margin-bottom: 0; }
.bh-entry__content:has(> .bh-support) > .bh-section--points + .bh-section--map { margin-top: 0; }
@media (max-width: 600px) { .bh-main .bh-support { width: calc(100% - 2 * var(--bh-row-x)); } }

/* == FAQ: вкладена секція з акордеоном (в еталоні три вкладені секції) ====== */
/* !important: інакше програє `.bh-main .bh-section:not(...)` з main.css (padding: 2rem 2.5rem). */
.bh-section--content:has(> .bh-section--content > .bh-accordion) { padding-block: 64px !important; }
.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section__title { margin-bottom: 52px; padding-inline: 40px; }
.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section--content { padding-inline: 160px !important; }
@media (max-width: 1024px) {
	.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section__title { padding-inline: 54px; }
	.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section--content { padding-inline: 94px !important; }
}
@media (max-width: 600px) {
	.bh-section--content:has(> .bh-section--content > .bh-accordion) { padding-block: 42px !important; }
	.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section__title { margin-bottom: 42px; padding-inline: 45px; }
	.bh-section--content:has(> .bh-section--content > .bh-accordion) > .bh-section--content { padding-inline: 66px !important; }
	.bh-section--content:has(> .bh-section--content > .bh-accordion) .wp-block-accordion-heading__toggle { padding-right: 45px; line-height: 21px; }
}

/* == News section frame (Impreza row: 1200/688/348 wide, padding 40/40/21) =========== */
.bh-main .bh-section.bh-section--news { box-sizing: border-box; width: min(1200px, calc(100% - 80px)); max-width: none; margin: 32px auto; padding-inline: 40px; }
.bh-main .bh-post .bh-section.bh-section--news { margin-top: 87px; }
.bh-main .bh-section.bh-section--news > * { max-width: none; }
.bh-section--news .wp-block-buttons { margin: 0 0 4.8px; }
.bh-section--news .wp-block-button__link { line-height: 1.2; }
@media (max-width: 660px) {
	.bh-main .bh-section.bh-section--news { width: calc(100% - 42px); margin-block: 21px; padding-inline: 21px; }
	.bh-main .bh-post .bh-section.bh-section--news { margin-top: 71px; }
	.bh-section--news .wp-block-buttons { margin-bottom: 4.2px; }
}
.bh-news__card .bh-card__title.wp-block-post-title { display: -webkit-box !important; max-height: 2.4em; }
.bh-section--news .wp-block-button__link { box-sizing: border-box; min-width: 208px; padding: 14px 32px; font-weight: 500; text-align: center; }
.bh-news .bh-card__tag, .bh-news .bh-card__tag a { font-size: 1rem; }
@media (max-width: 660px) { .bh-news .bh-card__tag { line-height: 1.2; } }
@media (max-width: 660px) { .bh-news .bh-card__tag a { line-height: inherit; } }

/* == Partner logos (#partners). Reference: 3 Impreza grids; tile 87x74 or 201x65 centred in a column cell. ===== */
#partners.bh-section--partners { box-sizing: border-box; width: min(1200px, calc(100% - 80px)); max-width: none; margin-inline: auto; padding: 32px 0; }
#partners .bh-logos {
	display: grid; box-sizing: border-box; width: 1218.67px; max-width: none; margin: 0 0 0 24.67px; padding: 0; gap: 0;
	grid-template-columns: repeat(4, 304.67px); grid-template-rows: 148px 122.5px 113.5px; position: relative; left: 25px; justify-content: start; align-items: start; justify-items: center;
}
#partners .bh-logos__item { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 87px; height: 74px; margin: 10px 0 0; padding: 0; background: none; }
#partners .bh-logos__item:nth-child(2), #partners .bh-logos__item:nth-child(4), #partners .bh-logos__item:nth-child(7), #partners .bh-logos__item:nth-child(9) { width: 201px; height: 65px; margin-top: 14.5px; }
#partners .bh-logos__item img { display: block; width: 87px; max-width: none; height: auto; max-height: none; object-fit: contain; }
#partners .bh-logos__item:nth-child(2) img, #partners .bh-logos__item:nth-child(9) img { width: 201px; }
#partners .bh-logos__item:nth-child(4) img { width: 88px; }
#partners .bh-logos__item:nth-child(7) img { width: 34px; }
@media (max-width: 1024px) {
	#partners.bh-section--partners { width: 660px; }
	#partners .bh-logos { width: 648px; margin-left: 24px; grid-template-columns: repeat(4, 162px); grid-template-rows: 114px 88px 80px; left: 18px; }
	#partners .bh-logos__item, #partners .bh-logos__item:nth-child(n) { width: 87px; height: 74px; margin-top: -7px; }
	#partners .bh-logos__item:nth-child(n) img { width: 87px; }
	#partners .bh-logos__item:nth-child(7) img { width: 34px; }
}
@media (max-width: 660px) {
	#partners.bh-section--partners { width: 300px; padding-block: 21px; }
	#partners .bh-logos { width: 292px; margin-left: 7px; left: 3px; padding-bottom: 14px; grid-template-columns: repeat(2, 146px); grid-template-rows: 88px 110px 89px 89px 60px; }
}

/* == /news/ grid: the converter tags this section "subhero" (rev-slider flag), undo the hero frame. ============ */
.bh-main .bh-section--subhero:has(> .bh-news) { width: auto; max-width: 1200px; min-height: 0; margin: 0 auto; padding: 18px 40px 32px; }
.bh-main .bh-section--subhero:has(> .bh-news) > * { max-width: none; margin-inline: 0; }
.bh-main .bh-section--subhero:has(> .bh-news) > .bh-section__title { margin: 0 0 64px; font-size: 40px; line-height: 44px; text-align: center; }
.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid { display: grid; gap: 0; margin: -14.4px; }
@media (min-width: 1025px) { .bh-main .bh-news--grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid > li { padding: 14.4px; }
.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid { width: calc(100% + 28.8px); max-width: none; }
/* Space of the category filter (50px + 40px) that the original shows above the grid. */
.bh-main .bh-section--subhero:has(> .bh-news) > .bh-news--grid { margin-top: 154px; }
.bh-main .bh-news--grid nav.bh-news__pagination { margin-top: 61.4px; }
.bh-main .bh-news--grid div.wp-block-query-pagination.bh-news__pagination { margin-top: 0; }
@media (max-width: 1280px) { .bh-main .bh-section--subhero:has(> .bh-news) { width: calc(100% - 80px); max-width: none; } }
@media (min-width: 661px) and (max-width: 1024px) {
	.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: -14.4px; }
	.bh-main .bh-section--subhero:has(> .bh-news) > .bh-news--grid { margin-top: 138.4px; }
}
@media (max-width: 660px) {
	.bh-main .bh-section--subhero:has(> .bh-news) { width: calc(100% - 42px); padding: 29px 21px 21px; }
	.bh-main .bh-section--subhero:has(> .bh-news) > .bh-section__title { font-size: 32px; line-height: 35.2px; }
	.bh-main .bh-section--subhero:has(> .bh-news) > .bh-news--grid { margin-top: 118px; }
	.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); width: 100%; margin: 0; }
	.bh-main .bh-news--grid .wp-block-post-template.is-layout-grid > li { padding: 0 0 .9rem; }
	.bh-main .bh-news--grid nav.bh-news__pagination { margin-top: 28px; }
}

/* == 17. RefAid TWIIN page (sections, feature cards, testimonials, rating, copy list, widget) ================
 * Contract: docs/theme/03-block-contract.md §17. Scoped to block/section classes (no page wrapper in the editor). */
.bh-section--twiin { padding-block: 64px; background: #fff4ec; }
.bh-section--twiin-alt { background: #ffecde; }
.bh-section--twiin .bh-section__title { text-align: center; }
.bh-section--twiin p.bh-twiin-lead { max-width: 750px; margin: 0 auto 40px; color: #222; font-size: 20px; line-height: 1.4; text-align: center; }
.bh-section--twiin .bh-twiin-title { margin: 0 0 12px; color: #000; font-size: 40px; line-height: 1.15; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.bh-section--twiin p.bh-twiin-note { color: #6b7280; text-align: center; }
.bh-section--twiin .wp-block-buttons { justify-content: center; }
.bh-section--twiin .wp-block-post-title { margin: 0 0 20px; font-size: 30px; line-height: 1.2; font-weight: 600; background: none; }
.bh-twiin-card {
	box-sizing: border-box;
	padding: 32px;
	border-radius: 16px;
	background: #fff;
	/* First layer is centred so the top edge is visible too (the downward-only shadow vanished above the card). */
	box-shadow: 0 0 14px rgb(0 0 0 / .08), 0 6px 16px -2px rgb(0 0 0 / .12), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.bh-twiin-card .wp-block-list { margin: 0 0 20px; padding-left: 1.4em; color: #444; line-height: 1.6; }
.bh-twiin-card .wp-block-list li { list-style: disc; }
@media (max-width: 991px) {
	.bh-section--twiin-intro .bh-twiin-title,
	.bh-section--twiin-intro p.bh-twiin-lead { padding-inline: 32px; }
}
@media (max-width: 600px) {
	.bh-section--twiin { padding-block: 40px; }
	.bh-section--twiin .bh-twiin-title { font-size: 28px; }
	.bh-section--twiin p.bh-twiin-lead { font-size: 17px; }
	.bh-twiin-card { padding: 20px 16px; }
}

/* Questions with copy buttons: core/list style "bh-copy-list" (button added on render, inc/twiin.php). */
.is-style-bh-copy-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.is-style-bh-copy-list > li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / .05);
	color: #374151;
	list-style: none;
	transition: box-shadow .2s, transform .2s;
}
.is-style-bh-copy-list > li:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1); transform: translateY(-2px); }
.bh-copy-list__btn {
	display: inline-grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #dbeafe;
	color: #1a4094;
	cursor: pointer;
	transition: background .2s;
}
.bh-copy-list__btn:hover { background: #bfdbfe; }
.bh-copy-list__btn:focus-visible { outline: 2px solid var(--bh-accent-text, #33708f); outline-offset: 2px; }
.bh-copy-list__btn svg { width: 22px; height: 22px; }
.bh-copy-list__btn .bh-copy-list__done,
.bh-copy-list__btn.is-copied .bh-copy-list__icon { display: none; }
.bh-copy-list__btn.is-copied .bh-copy-list__done { display: block; color: #15803d; }

/* Feature cards: grid = centred rows (no orphan stretched in the last row), list = icon left. */
.bh-twiin-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.bh-twiin-features--grid > .bh-twiin-feature { flex: 0 1 calc((100% - 4 * 24px) / 5); min-width: 190px; }
.bh-twiin-feature {
	box-sizing: border-box;
	padding: 28px 20px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
	text-align: center;
	transition: transform .3s, box-shadow .3s;
}
.bh-twiin-features--grid > .bh-twiin-feature:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1); }
.bh-twiin-feature__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #7cc9ed;
	color: #fff;
}
.bh-twiin-feature__icon svg { width: 26px; height: 26px; }
.bh-twiin-feature .bh-twiin-feature__title { margin: 0; color: #222; font-size: 20px; line-height: 1.35; font-weight: 600; }
.bh-twiin-feature p.bh-twiin-feature__text { margin: 8px 0 0; color: #444; }
.bh-twiin-feature p.bh-twiin-feature__text:empty { display: none; }
.bh-twiin-features--list { flex-direction: column; gap: 32px; }
.bh-twiin-features--list > .bh-twiin-feature { display: flex; gap: 16px; padding: 0; background: none; box-shadow: none; text-align: left; }
.bh-twiin-features--list .bh-twiin-feature__icon { flex: none; width: 48px; height: 48px; margin: 0; border-radius: 8px; }
.bh-twiin-features--list .bh-twiin-feature__icon svg { width: 22px; height: 22px; }
@media (max-width: 1024px) { .bh-twiin-features--grid > .bh-twiin-feature { flex-basis: calc(50% - 12px); } }
@media (max-width: 600px) { .bh-twiin-features--grid > .bh-twiin-feature { flex-basis: 100%; } }

/* Testimonials: up to 3 per row, equal height per row, an extra card in the last row is centred (no orphan on the left). */
.bh-twiin-testimonials { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: stretch; }
.bh-twiin-testimonials > .bh-twiin-testimonial { flex: 0 1 calc((100% - 2 * 24px) / 3); min-width: 280px; }
@media (max-width: 600px) { .bh-twiin-testimonials > .bh-twiin-testimonial { flex-basis: 100%; min-width: 0; } }
.bh-twiin-testimonial {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	grid-auto-rows: min-content;
	column-gap: 14px;
	box-sizing: border-box;
	padding: 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.bh-twiin-testimonial__body { display: contents; }
.bh-twiin-testimonial__avatar { grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.bh-twiin-testimonial__avatar--empty { display: grid; place-items: center; background: #e5e7eb; color: #6b7280; }
.bh-twiin-testimonial__avatar--empty svg { width: 26px; height: 26px; }
.bh-twiin-testimonial p.bh-twiin-testimonial__name { grid-column: 2; margin: 0; color: #111; font-size: 15px; line-height: 1.4; font-weight: 700; }
.bh-twiin-testimonial p.bh-twiin-testimonial__role { grid-column: 2; margin: 0; color: #6b7280; font-size: 14px; line-height: 1.4; }
.bh-twiin-testimonial .bh-rating { grid-column: 1 / -1; margin: 16px 0 8px; }
.bh-twiin-testimonial p.bh-twiin-testimonial__text { grid-column: 1 / -1; margin: 0; color: #444; font-style: italic; line-height: 1.5; }
.bh-twiin-testimonial p:empty { display: none; }

/* Rating: one star template, fill layer clipped to 100 / 50 / 0 %. */
.bh-rating { display: inline-flex; gap: 2px; color: #c0633a; }
.bh-rating__star { position: relative; display: block; width: 20px; height: 20px; }
.bh-rating__star svg { display: block; width: 20px; height: 20px; }
.bh-rating__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; width: 100%; }
.bh-rating__fill svg { fill: currentColor; }
.bh-rating__star--half .bh-rating__fill { width: 50%; }
.bh-rating__star--empty .bh-rating__fill { width: 0; }

/* Lachin widget (unith.ai): fixed 600px box as before. */
.bh-twiin-widget { width: 100%; height: 600px; margin: 0 0 20px; }
/* The card is a constrained group (text column width); the widget spans the card's full inner width instead. */
.bh-twiin-card > .bh-twiin-widget { max-width: none; }
.bh-twiin-widget--placeholder { display: grid; place-items: center; height: 120px; border: 1px dashed #9ca3af; border-radius: 10px; color: #6b7280; }
.bh-twiin-widget unith-widget { display: block; width: 100%; height: 100%; }

/* Editor canvas only: the "+" of feature / testimonial containers sits after the last item, not over its text. */
.bh-twiin-features > .block-list-appender,
.bh-twiin-testimonials > .block-list-appender { position: static; align-self: center; margin: 0; }
.bh-twiin-features--list > .block-list-appender { align-self: flex-start; }
