/*
Theme Name: TechVoice
Description: قالب ووردبريس عربي مستقل يجمع تيك فويس وليه ولوحة التحرير والهوية.
Version: 0.23.5
Requires at least: 7.0
Requires PHP: 8.2
Text Domain: techvoice
*/
/* WordPress block wrappers only. Visual rules live in assets/design/. */
.wp-site-blocks { padding: 0; }
/* Paint the browser's end-of-page canvas black; never expose white below the footer. */
html:has(body > .wp-site-blocks > .site-frame) { background: #000; overscroll-behavior-y: none; scroll-behavior: auto; }
/* Keep short pages full-height while allowing long articles to grow normally. */
.wp-site-blocks > .site-frame { margin-block: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.admin-bar .wp-site-blocks > .site-frame { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px)); }
.site-frame > main { flex: 1 0 auto; min-height: 0; }
.site-frame > :is(.site-header, .site-footer) { flex-shrink: 0; }
.site-frame > * { margin-block-start: 0; }
.site-frame > .site-header { margin-block: 0; }
.site-frame > .site-footer { margin-top: 64px; }
body { background: var(--page-background, var(--paper)); color: var(--ink); font-family: var(--font-editorial); font-weight: var(--body-weight); font-feature-settings: "ss01" 0, "ss02" 0; line-height: 1.85; }
.site-frame a { text-decoration: none; }
.site-frame .sources a, .site-frame .article-body a { text-decoration: underline; }
.site-frame :is(h1,h2,h3,h4,h5,h6) { font-feature-settings: "ss01" 1, "ss02" 1; }
.site-frame :is(h1,h2,h3,h4,h5,h6) { font-family: var(--font-editorial); font-weight: var(--heading-weight); }
.site-frame .article-body > * { margin-block-start: 0; }
.site-frame .article-body h2 { margin-block-start: 1.8em; }
.site-frame .article-body h3 { margin-block-start: 1.5em; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .wp-site-blocks > .site-frame { margin-block: 0; }
  .site-frame > .site-footer { margin-top: 48px; }
}

/* Whole-card links remain native, keyboard operable and usable without JavaScript. */
.content-card, .featured-card { position: relative; }
.content-card :is(h2,h3) a::after, .featured-copy h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-surface); z-index: 1; }
.content-card :is(button), .featured-card :is(button) { position: relative; z-index: 2; }
.content-card:has(:is(h2,h3) a:focus-visible), .featured-card:has(h3 a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

:root[data-brand="leh"] .site-frame :is(h1,h2,h3,h4,h5,h6) { font-feature-settings: "ss01" 1, "ss02" 0; }
