/*
Theme Name: Syria Morse Theme
Theme URI: https://syriamorse.com/
Author: Syria Morse News Network
Description: Lightweight application shell built specifically for the SMNN Template Engine. The plugin remains authoritative for SMNN layouts, header, footer, articles, portals, forms, and newsroom interfaces.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: syria-morse-theme
*/

/*
 * Intentionally minimal. The SMNN Template Engine owns presentation.
 * These rules only remove browser-default page gutters and keep the theme
 * shell from constraining plugin-rendered full-width interfaces.
 */
:root {
	--smnn-global-font: "Almarai", "Segoe UI", Tahoma, Arial, sans-serif;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	font-family: var(--smnn-global-font);
}

/* Native form controls do not always inherit body typography by default. */
button,
input,
select,
textarea {
	font-family: inherit;
}

.smnn-theme-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/*
 * The theme shell must never create a visible seam between the global SMNN
 * header, plugin/page content, and global SMNN footer.  These rules affect
 * only the outer edge of each theme-owned region; spacing inside SMNN
 * components remains under the plugin's control.
 */
.smnn-theme-header-shell,
.smnn-theme-footer-shell,
.smnn-theme-content {
	box-sizing: border-box;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
}

/* Establish independent formatting contexts so child margins cannot collapse
 * through a theme wrapper and become an unexplained header/footer gap. */
.smnn-theme-header-shell,
.smnn-theme-footer-shell,
.smnn-theme-content {
	display: flow-root;
}

/* Neutralize only the margins touching a theme boundary.  We do not reset
 * margins between elements inside a plugin-rendered component. */
.smnn-theme-header-shell > :last-child {
	margin-bottom: 0 !important;
}

.smnn-theme-content > :first-child {
	margin-top: 0 !important;
}

.smnn-theme-content > :last-child {
	margin-bottom: 0 !important;
}

.smnn-theme-footer-shell > :first-child {
	margin-top: 0 !important;
}

/* The SMNN header/footer renderers expose configurable outer spacing. In the
 * dedicated Syria Morse shell, the inner-facing edges are intentionally flush
 * so the site reads as one continuous surface. Header top spacing and footer
 * bottom spacing remain untouched. */
.smnn-theme-header-shell .smnn-network-header {
	padding-bottom: 0 !important;
}

.smnn-theme-footer-shell .smnn-network-footer {
	padding-top: 0 !important;
}

.smnn-theme-fallback {
	box-sizing: border-box;
	width: min(100% - 32px, 900px);
	margin: 72px auto;
	padding: 32px;
	font-family: var(--smnn-global-font);
	color: #0b3458;
	background: #fff;
}

.smnn-theme-fallback h1 {
	margin: 0 0 12px;
	font-size: clamp(30px, 5vw, 52px);
}

.smnn-theme-fallback p {
	margin: 0;
	line-height: 1.8;
}


/* Used only if the SMNN Template Engine route renderer is unavailable. */
.smnn-theme-archive-fallback {
	box-sizing: border-box;
	width: min(100% - 32px, 1100px);
	margin: 48px auto;
}

.smnn-theme-fallback-entry {
	margin: 0 0 28px;
}
