/* abboud/section: a full-width band with the style picker Plain / Cream / Hatched top corner / Hatched bottom corner, a heading row (eyebrow, title, "view all" link),
   the content and the phone "more" button. Loaded only where the block is used (block.json "style"), in the editors and pattern previews too.
   Self-contained: every selector starts at the block's own root. Tokens (--h-*) are global (abboud-block.css). Logical properties only (RTL-ready).
   The hatching is a real aria-hidden element that PHP adds on the site only (inc/blocks.php, abboud_block_decorations): one absolutely positioned layer (.ab-deco) over
   the whole band, the shape placed against that layer, so nothing the editor changes inside the band moves it. */
.wp-block-abboud-section, .wp-block-abboud-section * { box-sizing: border-box; }
.wp-block-abboud-section { padding-block: var(--h-sec); padding-inline: var(--h-pad); position: relative; isolation: isolate; overflow-x: clip; }
:root .wp-block-abboud-section { margin-block: 0; }
.wp-block-abboud-section :is(h1, h2, h3) { margin: 0; line-height: 1.12; letter-spacing: -.01em; }
.wp-block-abboud-section .ab-eyebrow { margin: 0 0 6px; font-size: .9375rem; font-weight: 700; color: var(--h-gold); }

/* ---------- styles ---------- */
.wp-block-abboud-section.is-style-cream { background: var(--h-cream); z-index: 1; }
.wp-block-abboud-section.is-style-hatched-top { z-index: 3; }
.wp-block-abboud-section.is-style-hatched-bottom { z-index: 2; }
.wp-block-abboud-section > .ab-deco { position: absolute; inset: 0; margin: 0; pointer-events: none; }
.wp-block-abboud-section > .ab-deco > .ab-sec__hatch {
	position: absolute; z-index: -1; pointer-events: none; inline-size: 300px; block-size: 150px;
	background: repeating-linear-gradient(135deg, var(--h-cream2) 0 2px, transparent 2px 12px);
}
.wp-block-abboud-section.is-style-hatched-top > .ab-deco > .ab-sec__hatch { inset-inline-end: 0; inset-block-start: 0; -webkit-mask-image: radial-gradient(farthest-side at 100% 0, #000 30%, transparent); mask-image: radial-gradient(farthest-side at 100% 0, #000 30%, transparent); }
.wp-block-abboud-section.is-style-hatched-bottom > .ab-deco > .ab-sec__hatch { inset-inline-start: 0; inset-block-end: 0; -webkit-mask-image: radial-gradient(farthest-side at 0 100%, #000 30%, transparent); mask-image: radial-gradient(farthest-side at 0 100%, #000 30%, transparent); }
:dir(rtl) .wp-block-abboud-section.is-style-hatched-top > .ab-deco > .ab-sec__hatch { -webkit-mask-image: radial-gradient(farthest-side at 0 0, #000 30%, transparent); mask-image: radial-gradient(farthest-side at 0 0, #000 30%, transparent); }
:dir(rtl) .wp-block-abboud-section.is-style-hatched-bottom > .ab-deco > .ab-sec__hatch { -webkit-mask-image: radial-gradient(farthest-side at 100% 100%, #000 30%, transparent); mask-image: radial-gradient(farthest-side at 100% 100%, #000 30%, transparent); }

/* ---------- heading row ---------- */
.wp-block-abboud-section .ab-sh { margin-block-end: 28px; gap: 8px 16px; }
.wp-block-abboud-section .ab-sh h2 { font-size: 1.5rem; font-weight: 700; }
.wp-block-abboud-section .ab-link { margin: 0; }
.wp-block-abboud-section .ab-link a { font-weight: 700; color: var(--h-ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 2px; }
.wp-block-abboud-section .ab-link a:hover { color: var(--h-red); }
.wp-block-abboud-section .ab-sh-more { display: none; }

/* ---------- help band (a white card inside a section) ---------- */
.wp-block-abboud-section .ab-help { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--h-line); border-radius: 24px; padding: clamp(20px, 3vw, 36px); }
.wp-block-abboud-section .ab-help h2 { font-size: 1.5rem; font-weight: 700; }
.wp-block-abboud-section .ab-help p { margin: 6px 0 0; color: var(--h-soft); }
.wp-block-abboud-section .ab-help .wp-block-buttons { margin: 0; }

@media (min-width: 641px) and (max-width: 1000px) { .wp-block-abboud-section .ab-link a { display: inline-flex; align-items: center; min-block-size: 44px; } }

/* ---------- phones: the section link becomes a full-width button ---------- */
@media (max-width: 640px) {
	.wp-block-abboud-section { padding-block-end: 44px; }
	.wp-block-abboud-section .ab-sh .ab-link { display: none; }
	.wp-block-abboud-section .ab-sh-more { display: flex; margin-block-start: 16px; }
	.wp-block-abboud-section .ab-sh-more .wp-block-button, .wp-block-abboud-section .ab-sh-more .wp-block-button__link { inline-size: 100%; }
	.wp-block-abboud-section .ab-sh-more .wp-block-button__link { min-block-size: 56px; border: 1px solid var(--h-line); border-radius: 16px; box-shadow: var(--h-e1); background: #fff; color: var(--h-ink); }
	:root .wp-block-abboud-section .wp-block-button__link { font-size: .9375rem; padding-inline: 1rem; }
	.wp-block-abboud-section .ab-help { grid-template-columns: 1fr; }
	.wp-block-abboud-section .ab-help .wp-block-button, .wp-block-abboud-section .ab-help .wp-block-button__link { inline-size: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-abboud-section *, .wp-block-abboud-section *::before, .wp-block-abboud-section *::after { transition: none !important; }
}
