/* Shared layout for the three designs; colours and fonts come from each design's theme.json */
.burhan-section { padding-block: clamp(48px, 7vw, 96px); }
.burhan-section > * { max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
.burhan-eyebrow { color: var(--wp--custom--burhan--accent); font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; }
.burhan-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(6px); }
.burhan-header .wp-block-navigation a { text-decoration: none; }
.burhan-footer a { color: inherit; }
.burhan-hero .wp-block-buttons { gap: 12px; }
.wp-site-blocks { overflow-x: clip; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--wp--custom--burhan--accent); outline-offset: 2px; }
@media (max-width: 720px) { .burhan-hide-mobile { display: none !important; } }

/* ---- Regional identity (docs/office-website-identity.md): the office's region picks an original motif drawn
   from its heritage (website/dev/motifs.py) and its accent colours; the design keeps its own layout and type */
body { --burhan-tile: none; --burhan-strip: none; }
body.burhan-region-sharqiya { --burhan-tile: url(motifs/sharqiya-tile.svg); --burhan-strip: url(motifs/sharqiya-strip.svg); --burhan-r1: #0E4C6B; --burhan-r2: #3FA7A3; --burhan-r3: #A8662E; --burhan-region-name: "الشرقية"; }
body.burhan-region-najd     { --burhan-tile: url(motifs/najd-tile.svg);     --burhan-strip: url(motifs/najd-strip.svg);     --burhan-r1: #6B4A33; --burhan-r2: #C9A27A; --burhan-r3: #A8432F; }
body.burhan-region-hijaz    { --burhan-tile: url(motifs/hijaz-tile.svg);    --burhan-strip: url(motifs/hijaz-strip.svg);    --burhan-r1: #5A3E2B; --burhan-r2: #2F7F79; --burhan-r3: #2C5F8A; }
body.burhan-region-south    { --burhan-tile: url(motifs/south-tile.svg);    --burhan-strip: url(motifs/south-strip.svg);    --burhan-r1: #1A1A1A; --burhan-r2: #C8322B; --burhan-r3: #2E8B57; }
body.burhan-region-north    { --burhan-tile: url(motifs/north-tile.svg);    --burhan-strip: url(motifs/north-strip.svg);    --burhan-r1: #1E1A18; --burhan-r2: #9E2A2B; --burhan-r3: #8A5A3B; }
/* the motif, faint, behind a section */
.burhan-motif { position: relative; isolation: isolate; }
.burhan-motif::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--burhan-tile) repeat; opacity: .07; pointer-events: none; }
.burhan-motif.burhan-motif-strong::before { opacity: .12; }
/* the regional band between sections and above the footer */
.burhan-divider { height: 30px; background: var(--burhan-strip) repeat-x center / auto 30px; margin: 0 !important; }
body:not([class*="burhan-region-"]) .burhan-divider { display: none; }
.burhan-footer { position: relative; }
.burhan-footer::before { content: ""; position: absolute; inset-inline: 0; top: -30px; height: 30px; background: var(--burhan-strip) repeat-x center / auto 30px; }
/* the office's cover photo behind a hero, under a veil of the design's background for legible text */
.burhan-has-cover { background-image: linear-gradient(var(--burhan-veil, rgba(251,249,244,.88)), var(--burhan-veil, rgba(251,249,244,.88))), var(--burhan-cover, none) !important; background-size: cover; background-position: center; }
.burhan-header .burhan-logo { max-height: 44px; }
.burhan-section-title-region { color: var(--burhan-r1, inherit); }

/* Headings break into even lines, not one long line and a lone word */
h1, h2, h3 { text-wrap: balance; }

/* Titles inside article cards stay card-sized in every design */
.wp-block-post-template .wp-block-post-title { font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important; line-height: 1.6; }
