/* ==========================================================================
   Al-Hadbaa theme: what the theme adds around the Al-Hadbaa Core blocks.
   Section styles live with each block in the plugin; this file covers plain
   content (pages with a title, 404, search) and the page shell.
   ========================================================================== */
body { background: var(--wp--preset--color--white); color: var(--wp--preset--color--navy-700); }
:lang(ar) body, body:lang(ar) { font-family: var(--wp--preset--font-family--arabic); }
.wp-site-blocks { overflow-x: clip; }
main#main:focus { outline: none; }

/* Plain text pages (page-with-title, search, 404): a light section under the fixed header */
.alh-plain {
  --fg: var(--wp--preset--color--navy-800);
  --muted: var(--wp--custom--color--text-muted-light);
  padding-block: calc(76px + clamp(3rem, 8vw, 6rem)) clamp(4rem, 8vw, 7rem);
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}
.alh-plain > * { max-inline-size: 760px; margin-inline: auto; }
.alh-plain h1 { font-family: var(--wp--preset--font-family--heading); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.04em; color: var(--fg); font-weight: 600; margin-block: 0 1.5rem; }
.alh-plain h1:lang(ar) { font-family: "Cairo", var(--wp--preset--font-family--heading); line-height: 1.3; }
.alh-plain :where(h2, h3) { font-family: var(--wp--preset--font-family--heading); color: var(--fg); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-block: 2.2rem .8rem; }
.alh-plain :where(p, ul, ol) { margin-block: 0 1.1rem; }
.alh-plain a:where(:not(.btn)) { color: var(--wp--preset--color--cyan-text); text-decoration: underline; text-underline-offset: .2em; }
.alh-plain .wp-block-search__inside-wrapper { display: flex; gap: .6rem; }
.alh-plain .wp-block-search__input { flex: 1; min-block-size: 48px; padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--wp--custom--color--line-light); font: inherit; }
.alh-plain .wp-block-search__input:focus-visible { outline: none; border-color: var(--wp--preset--color--navy-800); box-shadow: 0 0 0 3px var(--wp--custom--color--cyan-a35); }
.alh-plain .wp-block-search__button { min-block-size: 48px; padding: .6rem 1.4rem; border: 0; border-radius: 999px; background: var(--wp--preset--color--cyan); color: var(--wp--preset--color--navy-900); font-family: var(--wp--preset--font-family--heading); font-weight: 600; cursor: pointer; }
.alh-plain .wp-block-search__button:lang(ar) { font-family: "Cairo", var(--wp--preset--font-family--heading); }
.alh-plain .wp-block-post-template { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.alh-plain .wp-block-post-title { font-size: 1.25rem; margin: 0 0 .3rem; }
.alh-plain .wp-block-post-title a { text-decoration: none; color: var(--fg); }
.alh-plain .wp-block-query-pagination { margin-block-start: 2rem; gap: 1rem; }
.alh-plain .alh-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-block-end: 1.2rem; font-family: var(--wp--preset--font-family--heading); font-size: .84rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.alh-plain .alh-eyebrow::before { content: ""; inline-size: 8px; block-size: 8px; background: var(--wp--preset--color--cyan); transform: rotate(45deg); }
.alh-plain :where(h2, h3):lang(ar) { font-family: "Cairo", var(--wp--preset--font-family--heading); line-height: 1.35; }
.alh-plain :lang(ar) :where(p, li) { line-height: 1.8; }

/* Editor: the canvas shows sections edge to edge, like the site */
.editor-styles-wrapper .wp-block-post-content > .alh-editor-block { max-inline-size: none; }
