/*
Theme Name: LOR Theme
Description: LOR's own theme. Runs LOR Tasks and the other LOR tools, and works with Elementor (Elementor Pro headers and footers too). No parent theme needed.
Author: LOR
Version: 1.0.1
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: lor-theme
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ===== Base =====
 * Light on purpose: Elementor pages get their look from the Elementor kit,
 * and the LOR app pages bring their own styles. No button styling here, so
 * nothing fights the app's buttons. */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: #333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
a { color: #2563eb; }

/* ===== Accessibility ===== */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	top: 8px; left: 8px;
	z-index: 100000;
	width: auto; height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: #111;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ===== Layout =====
 * Same class names Hello used (site-header, site-main, page-header,
 * entry-title, page-content, site-footer): the LOR tools hide or widen these
 * on their pages. Every page is full screen: no max width, no side padding.
 * The LOR app pages bring their own spacing. */
.site-header .header-inner,
.site-footer .footer-inner {
	width: 100%;
	max-width: none;
	padding-left: 16px;
	padding-right: 16px;
}
.site-main,
.page-content,
.entry-content,
.elementor-widget-shortcode {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}
/* Pages are LOR tools: no page title above the app. Posts keep theirs. */
.page .page-header { display: none; }
.page .page-content > p:empty { display: none; }
/* LOR Tasks has its own header and menu: drop the theme's so the app fits the screen. */
body:has(#lor-contracts-app) #site-header,
body:has(#lor-contracts-app) #site-footer { display: none; }
.page-header .entry-title,
.lor-post,
.lor-pagination { padding-left: 16px; padding-right: 16px; }

/* ===== Fallback header & footer =====
 * Shown only when no Elementor header / footer template is set. */
.site-header { border-bottom: 1px solid #eee; }
.site-header .header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}
.site-branding a { text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.site-branding img { display: block; max-height: 40px; width: auto; }
.site-navigation ul { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.site-navigation a { text-decoration: none; font-size: .95rem; }
.site-navigation a:hover { text-decoration: underline; }
.site-footer { border-top: 1px solid #eee; color: #777; font-size: .85rem; }
.site-footer .footer-inner { padding-top: 20px; padding-bottom: 20px; }

/* ===== Lists of posts, search, 404 ===== */
.lor-post { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.lor-post .entry-title { margin: 0 0 6px; font-size: 1.25rem; }
.lor-post .entry-title a { text-decoration: none; }
.lor-pagination { margin-top: 24px; }
