/*
Theme Name: ExamResults Pro
Theme URI: https://example.com/examresults-pro
Author: ExamResults
Description: Professional, responsive examination results theme for universities and examination boards: top information bar, branded header, dropdown navigation, result search, online search, position holders, printable result cards and a fully customizable footer. Requires the companion "ExamResults Manager" plugin for the examination database and dashboard.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: examresults-pro
Tags: education, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready, two-columns, right-sidebar
*/

/* ---------- Base ---------- */
:root {
	--er-primary: #0a4f86;
	--er-primary-dark: #083b64;
	--er-primary-light: #e7eff6;
	--er-secondary: #f2a516;
	--er-topbar: #063457;
	--er-header: #fff;
	--er-nav: #0a4f86;
	--er-nav-dark: #083d68;
	--er-nav-text: #fff;
	--er-footer: #072b48;
	--er-footer-dark: #051e32;
	--er-text: #1f2933;
	--er-muted: #5d6b79;
	--er-border: #dfe5ec;
	--er-bg: #f4f6f9;
	--er-radius: 6px;
	--er-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--er-container: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--er-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--er-text);
	background: var(--er-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--er-primary); text-decoration: none; }
a:hover, a:focus { color: var(--er-primary-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--er-secondary); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: #12263a; }
p { margin: 0 0 1em; }
.erp-container { width: 100%; max-width: var(--er-container); margin: 0 auto; padding: 0 20px; }
.erp-narrow { max-width: 720px; }
.erp-center { text-align: center; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 100000;
	left: 8px; top: 8px; padding: 12px 18px; background: #fff; color: var(--er-primary); font-weight: 700;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.erp-icon { display: inline-block; vertical-align: -2px; flex: none; }

/* ---------- Top bar ---------- */
.erp-topbar { background: var(--er-topbar); color: #d7e3ee; font-size: 13.5px; }
.erp-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 38px; flex-wrap: wrap; }
.erp-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.erp-topbar a { color: #e6eef5; display: inline-flex; align-items: center; gap: 6px; }
.erp-topbar a:hover { color: #fff; text-decoration: none; }
.erp-topbar-links li + li { border-left: 1px solid rgba(255,255,255,.25); padding-left: 20px; }

/* ---------- Brand bar ---------- */
.erp-brandbar { background: var(--er-header); border-bottom: 1px solid var(--er-border); }
.erp-brandbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.erp-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.erp-brand .custom-logo-link { display: block; flex: none; }
.erp-brand .custom-logo { max-height: 84px; width: auto; display: block; }
.erp-logo-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--er-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.erp-logo-placeholder .erp-icon { width: 38px; height: 38px; }
.erp-brand-text { display: flex; flex-direction: column; min-width: 0; }
.erp-brand-sub { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--er-muted); }
.erp-site-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.erp-site-title a { color: var(--er-primary); }
.erp-site-title a:hover { text-decoration: none; color: var(--er-primary-dark); }
.erp-brand-tagline { font-size: 14px; color: var(--er-muted); }
.erp-header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.erp-hbtn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: var(--er-radius);
	font-weight: 600; font-size: 14.5px; border: 2px solid transparent; transition: background .15s, color .15s;
}
.erp-hbtn-primary { background: var(--er-primary); color: #fff; }
.erp-hbtn-primary:hover, .erp-hbtn-primary:focus { background: var(--er-primary-dark); color: #fff; text-decoration: none; }
.erp-hbtn-accent { background: #fff; color: var(--er-primary); border-color: var(--er-secondary); }
.erp-hbtn-accent:hover, .erp-hbtn-accent:focus { background: var(--er-secondary); color: #1a1a1a; text-decoration: none; }

/* ---------- Navigation ---------- */
.erp-nav { background: var(--er-nav); position: relative; z-index: 50; box-shadow: 0 2px 0 var(--er-secondary); }
.has-sticky-nav .erp-nav { position: sticky; top: 0; }
.admin-bar.has-sticky-nav .erp-nav { top: 32px; }
.erp-nav.is-stuck { box-shadow: 0 2px 0 var(--er-secondary), 0 6px 16px rgba(0,0,0,.18); }
.erp-nav-inner { display: flex; align-items: center; }
.erp-menu, .erp-menu ul { list-style: none; margin: 0; padding: 0; }
.erp-menu { display: flex; flex-wrap: wrap; }
.erp-menu > li { position: relative; display: flex; align-items: center; }
.erp-menu a {
	display: block; color: var(--er-nav-text); font-weight: 600; font-size: 15px;
	padding: 14px 16px; text-decoration: none; white-space: nowrap;
}
.erp-menu > li > a:hover, .erp-menu > li:hover > a, .erp-menu > li:focus-within > a,
.erp-menu > .current-menu-item > a, .erp-menu > .current-menu-ancestor > a, .erp-menu > .current_page_item > a, .erp-menu > .current_page_ancestor > a {
	background: var(--er-nav-dark); color: var(--er-nav-text);
}
.erp-menu > .current-menu-item > a, .erp-menu > .current-menu-ancestor > a, .erp-menu > .current_page_item > a { box-shadow: inset 0 -3px 0 var(--er-secondary); }
.erp-sub-toggle {
	background: transparent; border: 0; color: var(--er-nav-text); cursor: pointer;
	padding: 0 8px 0 0; margin-left: -10px; height: 100%; display: inline-flex; align-items: center;
}
.erp-menu .sub-menu, .erp-menu .children {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border-top: 3px solid var(--er-secondary);
	box-shadow: 0 10px 28px rgba(10, 30, 50, .18); border-radius: 0 0 var(--er-radius) var(--er-radius);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .15s, transform .15s, visibility .15s;
	z-index: 60;
}
.erp-menu li:hover > .sub-menu, .erp-menu li:focus-within > .sub-menu, .erp-menu li.is-open > .sub-menu,
.erp-menu li:hover > .children, .erp-menu li:focus-within > .children, .erp-menu li.is-open > .children {
	opacity: 1; visibility: visible; transform: none;
}
.erp-menu .sub-menu li, .erp-menu .children li { position: relative; display: flex; align-items: center; justify-content: space-between; }
.erp-menu .sub-menu a, .erp-menu .children a { color: #22313f; font-weight: 500; padding: 10px 18px; width: 100%; border-bottom: 1px solid #eef1f4; white-space: normal; }
.erp-menu .sub-menu a:hover, .erp-menu .sub-menu a:focus, .erp-menu .children a:hover { background: var(--er-primary-light); color: var(--er-primary); padding-left: 22px; }
.erp-menu .sub-menu .sub-menu, .erp-menu .children .children { top: 0; left: 100%; border-top: 0; border-left: 3px solid var(--er-secondary); }
.erp-menu .sub-menu .erp-sub-toggle { color: #22313f; transform: rotate(-90deg); margin: 0; padding: 0 10px; }
.erp-menu-toggle {
	display: none; align-items: center; gap: 8px; background: transparent; border: 0;
	color: var(--er-nav-text); font: inherit; font-weight: 700; padding: 13px 0; cursor: pointer;
}
.erp-menu-toggle .erp-icon { width: 22px; height: 22px; }

/* ---------- Banner ---------- */
.erp-banner {
	background: linear-gradient(120deg, var(--er-primary-dark), var(--er-primary));
	color: #fff; padding: 34px 0 30px; position: relative; overflow: hidden;
}
.erp-banner::after {
	content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
	border-radius: 50%; border: 40px solid rgba(255,255,255,.06);
}
.erp-banner-title { color: #fff; margin: 0 0 6px; font-size: 30px; font-weight: 800; }
.erp-breadcrumb { font-size: 14px; color: #cfdeeb; }
.erp-breadcrumb a { color: #fff; }
.erp-breadcrumb span[aria-hidden] { margin: 0 6px; opacity: .6; }

/* ---------- Layout ---------- */
.erp-main { padding: 36px 0 56px; }
.erp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
.no-sidebar .erp-layout { grid-template-columns: minmax(0, 1fr); }
.erp-entry, .erp-empty, .erp-sidebar .widget {
	background: #fff; border: 1px solid var(--er-border); border-radius: var(--er-radius); padding: 28px 30px;
	box-shadow: 0 2px 10px rgba(15, 30, 50, .04);
}
.erp-sidebar .widget { padding: 20px 22px; margin-bottom: 20px; }
.widget-title { font-size: 17px; padding-bottom: 8px; border-bottom: 2px solid var(--er-secondary); display: inline-block; }
.erp-sidebar ul { margin: 0; padding-left: 18px; }
.erp-entry-content > *:last-child { margin-bottom: 0; }
.erp-entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.erp-entry-content th, .erp-entry-content td { border: 1px solid var(--er-border); padding: 8px 10px; }
.erp-entry-content blockquote { border-left: 4px solid var(--er-secondary); margin: 1em 0; padding: .5em 1em; background: var(--er-bg); }
.erp-entry-thumb { margin: -28px -30px 24px; }
.erp-entry-thumb img { width: 100%; border-radius: var(--er-radius) var(--er-radius) 0 0; display: block; }
.erp-entry-meta { color: var(--er-muted); font-size: 14px; margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.erp-meta { display: inline-flex; align-items: center; gap: 5px; }
.alignwide { max-width: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--er-muted); }

/* Buttons */
.erp-button, .wp-block-button__link, input[type="submit"], button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; border-radius: var(--er-radius); border: 2px solid var(--er-primary);
	background: var(--er-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.erp-button:hover, .erp-button:focus, input[type="submit"]:hover { background: var(--er-primary-dark); border-color: var(--er-primary-dark); color: #fff; text-decoration: none; }
.erp-button-accent { background: var(--er-secondary); border-color: var(--er-secondary); color: #1d1d1d; }
.erp-button-accent:hover, .erp-button-accent:focus { background: #fff; border-color: #fff; color: #1d1d1d; }
.erp-button-outline { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.erp-button-outline:hover, .erp-button-outline:focus { background: #fff; border-color: #fff; color: var(--er-primary); }
.erp-more { font-weight: 700; font-size: 14.5px; }

/* Forms (generic) */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="tel"], input[type="password"], textarea, select {
	font: inherit; color: inherit; border: 1px solid #b9c4d0; border-radius: 4px; padding: 9px 12px; background: #fff; max-width: 100%;
}
.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; }

/* ---------- Posts ---------- */
.erp-post-list { display: flex; flex-direction: column; gap: 16px; }
.erp-card-post { display: flex; gap: 18px; background: #fff; border: 1px solid var(--er-border); border-radius: var(--er-radius); padding: 20px; }
.erp-card-date { flex: none; width: 70px; text-align: center; background: var(--er-primary); color: #fff; border-radius: var(--er-radius); padding: 8px 4px; align-self: flex-start; }
.erp-card-date .erp-d { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.erp-card-date .erp-m { display: block; font-size: 12px; text-transform: uppercase; margin-top: 4px; }
.erp-card-title { font-size: 19px; margin-bottom: 4px; }
.erp-card-title a { color: #12263a; }
.erp-card-excerpt p { margin-bottom: .5em; color: #3d4a57; }
.navigation.pagination { margin-top: 24px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; padding: 7px 13px; border: 1px solid var(--er-border); border-radius: 4px; background: #fff; }
.page-numbers.current { background: var(--er-primary); color: #fff; border-color: var(--er-primary); }
.post-navigation .nav-links { justify-content: space-between; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--er-border); }
.erp-404-code { font-size: 96px; font-weight: 800; color: var(--er-primary); line-height: 1; margin: 10px 0; }

/* ---------- Result pages ---------- */
.erp-results-page .erp-container { max-width: 1080px; }
.erp-instructions {
	background: #fffaf0; border: 1px solid #f3dfb2; border-left: 5px solid var(--er-secondary);
	border-radius: var(--er-radius); padding: 16px 22px; margin-bottom: 24px;
}
.erp-instructions-title { font-size: 17px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: #6b4a00; }
.erp-instructions ul, .erp-instructions ol { margin: 0; padding-left: 20px; }
.erp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.erp-related-link {
	display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff;
	border: 1px solid var(--er-border); border-radius: var(--er-radius); font-weight: 700; color: #12263a;
}
.erp-related-link .erp-icon { width: 22px; height: 22px; color: var(--er-primary); }
.erp-related-link:hover { border-color: var(--er-primary); text-decoration: none; box-shadow: 0 4px 14px rgba(10,79,134,.12); }
.erp-alert { padding: 14px 18px; background: #fdeeee; border-left: 4px solid #b91c1c; border-radius: 4px; }

/* Plugin form/card skin to match the theme */
.erm-app { --erm-primary: var(--er-primary); --erm-secondary: var(--er-secondary); font-family: var(--er-font); }
.erm-app .erm-form { border-radius: var(--er-radius); border-top-width: 0; padding: 0; overflow: hidden; }
.erm-app .erm-form-head { background: var(--er-primary); color: #fff; padding: 14px 22px; margin: 0; position: relative; }
.erm-form-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--er-secondary); }
.erm-form-title { color: #fff !important; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.erm-form-title::before {
	content: ""; width: 20px; height: 20px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8l5 5 1.5-1.5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.8l-.3-.3A6.5 6.5 0 1 0 14 15.5l.3.3v.8l5 5 1.5-1.5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.erm-form-intro { color: #d6e4f0 !important; margin-top: 2px !important; }
.erm-app .erm-form .erm-grid, .erm-app .erm-form > .erm-notice, .erm-app .erm-form .erm-form-message { margin-left: 22px; margin-right: 22px; }
.erm-app .erm-form .erm-grid { padding: 20px 0 6px; }
.erm-form .erm-form-message { margin-bottom: 18px; }
.erm-form > .erm-notice { margin-top: 18px; }

/* ---------- Home ---------- */
.erp-main.erp-home { padding: 0; }
.erp-hero {
	background: linear-gradient(120deg, var(--er-primary-dark) 0%, var(--er-primary) 60%, var(--er-primary-dark) 100%);
	background-size: cover; background-position: center;
	color: #fff; padding: 56px 0 110px; position: relative; overflow: hidden;
}
.erp-hero::before, .erp-hero::after { content: ""; position: absolute; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); }
.erp-hero::before { width: 380px; height: 380px; right: -120px; top: -140px; }
.erp-hero::after { width: 260px; height: 260px; left: -100px; bottom: -150px; }
.erp-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.erp-hero-title { color: #fff; font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.erp-hero-text { font-size: 18px; color: #dce8f3; margin-bottom: 26px; }
.erp-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.erp-home-search { margin-top: -80px; position: relative; z-index: 2; }
.erp-home-search .erm-app { margin-bottom: 0; }
.erp-home-search .erm-form { box-shadow: 0 14px 40px rgba(6, 30, 52, .18); }
.erp-quicklinks { padding: 36px 0 8px; }
.erp-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.erp-quick {
	display: flex; flex-direction: column; gap: 6px; padding: 22px; background: #fff;
	border: 1px solid var(--er-border); border-bottom: 4px solid var(--er-primary); border-radius: var(--er-radius);
	color: var(--er-text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.erp-quick:hover, .erp-quick:focus { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(10,40,70,.12); border-bottom-color: var(--er-secondary); text-decoration: none; color: var(--er-text); }
.erp-quick-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--er-primary-light); color: var(--er-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.erp-quick-icon .erp-icon { width: 22px; height: 22px; }
.erp-quick-title { font-weight: 800; font-size: 17px; color: #12263a; }
.erp-quick-text { font-size: 14px; color: var(--er-muted); }
.erp-home-content { padding: 32px 0 56px; }
.erp-home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.erp-home-about, .erp-home-news { background: #fff; border: 1px solid var(--er-border); border-radius: var(--er-radius); padding: 26px 28px; }
.erp-home-about:empty { display: none; }
.erp-section-title { font-size: 21px; position: relative; padding-bottom: 10px; margin-bottom: 16px; }
.erp-section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--er-secondary); }
.erp-news-list { list-style: none; margin: 0 0 14px; padding: 0; }
.erp-news-list li { display: flex; flex-direction: column; padding: 10px 0 10px 14px; border-bottom: 1px dashed var(--er-border); border-left: 3px solid var(--er-primary-light); margin-bottom: 4px; }
.erp-news-list li:hover { border-left-color: var(--er-secondary); }
.erp-news-date { font-size: 12.5px; color: var(--er-muted); font-weight: 600; }
.erp-news-list a { font-weight: 600; color: #12263a; }

/* Contact */
.erp-contact-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; align-items: start; }
.erp-contact-cards { display: flex; flex-direction: column; gap: 14px; }
.erp-contact-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--er-border); border-radius: var(--er-radius); padding: 16px 18px; }
.erp-contact-card h2 { font-size: 15px; margin: 0 0 2px; }
.erp-contact-card p { margin: 0; color: var(--er-muted); word-break: break-word; }
.erp-contact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--er-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.erp-contact-icon .erp-icon { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.erp-footer { background: var(--er-footer); color: #bccbd8; font-size: 15px; border-top: 4px solid var(--er-secondary); }
.erp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 46px; padding-bottom: 36px; }
.erp-footer-title { color: #fff; font-size: 17px; margin-bottom: 16px; padding-bottom: 10px; position: relative; }
.erp-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--er-secondary); }
.erp-footer a { color: #dbe6ef; }
.erp-footer a:hover, .erp-footer a:focus { color: #fff; }
.erp-footer-links { list-style: none; margin: 0; padding: 0; }
.erp-footer-links li { padding: 5px 0; }
.erp-footer-links a::before { content: "›"; margin-right: 8px; color: var(--er-secondary); font-weight: 700; }
.erp-footer-contact ul { list-style: none; margin: 0; padding: 0; }
.erp-footer-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.erp-footer-contact .erp-icon { margin-top: 4px; color: var(--er-secondary); }
.erp-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; }
.erp-social a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff; }
.erp-social a:hover, .erp-social a:focus { background: var(--er-secondary); color: #1d1d1d; }
.erp-footer-bottom { background: var(--er-footer-dark); font-size: 14px; }
.erp-footer-bottom-inner { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.erp-footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.erp-quick-grid { grid-template-columns: repeat(2, 1fr); }
	.erp-footer-grid { grid-template-columns: 1fr 1fr; }
	.erp-layout, .erp-home-grid, .erp-contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
	.erp-menu-toggle { display: inline-flex; }
	.erp-nav-inner { flex-direction: column; align-items: stretch; }
	.erp-menu { display: none; flex-direction: column; padding-bottom: 10px; }
	.erp-nav.is-open .erp-menu { display: flex; }
	.erp-menu > li { flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); }
	.erp-menu > li > a { flex: 1; padding: 12px 6px; }
	.erp-sub-toggle { margin: 0; padding: 12px 14px; height: auto; }
	.erp-menu .sub-menu, .erp-menu .children {
		position: static; opacity: 1; visibility: visible; transform: none; display: none;
		width: 100%; box-shadow: none; border-radius: 0; border-top: 0; background: rgba(255,255,255,.06);
	}
	.erp-menu li:hover > .sub-menu, .erp-menu li:focus-within > .sub-menu { display: none; }
	.erp-menu li.is-open > .sub-menu, .erp-menu li.is-open > .children { display: block; }
	.erp-menu .sub-menu a, .erp-menu .children a { color: var(--er-nav-text); border-bottom-color: rgba(255,255,255,.08); padding-left: 22px; }
	.erp-menu .sub-menu a:hover, .erp-menu .sub-menu a:focus { background: rgba(255,255,255,.1); color: var(--er-nav-text); }
	.erp-menu .sub-menu .erp-sub-toggle { color: var(--er-nav-text); transform: none; }
	.erp-menu .sub-menu .sub-menu { border-left: 0; }
	.erp-brandbar-inner { justify-content: center; text-align: center; }
	.erp-brand { flex-direction: column; text-align: center; }
	.erp-header-actions { justify-content: center; width: 100%; }
	.has-sticky-nav .erp-nav { position: relative; }
}
@media (max-width: 600px) {
	.erp-topbar-inner { justify-content: center; padding-top: 6px; padding-bottom: 6px; }
	.erp-topbar-contact { justify-content: center; }
	.erp-topbar-links li + li { padding-left: 12px; }
	.erp-site-title { font-size: 23px; }
	.erp-hbtn { flex: 1 1 auto; justify-content: center; }
	.erp-hero { padding: 40px 0 96px; }
	.erp-hero-title { font-size: 28px; }
	.erp-hero-text { font-size: 16px; }
	.erp-quick-grid, .erp-footer-grid { grid-template-columns: 1fr; }
	.erp-entry, .erp-empty { padding: 20px; }
	.erp-entry-thumb { margin: -20px -20px 18px; }
	.erp-banner-title { font-size: 24px; }
	.erm-form .erm-grid, .erm-form > .erm-notice, .erm-form .erm-form-message { margin-left: 14px; margin-right: 14px; }
	.erm-form-head { padding: 12px 14px; }
	.erp-card-post { flex-direction: column; }
	.erp-card-date { display: flex; gap: 6px; width: auto; align-items: baseline; padding: 4px 10px; }
	.erp-card-date .erp-d { font-size: 16px; }
	.erp-card-date .erp-m { margin: 0; }
}
@media (max-width: 782px) { .admin-bar.has-sticky-nav .erp-nav { top: 0; } }

/* ---------- Print ---------- */
@media print {
	.erp-topbar, .erp-nav, .erp-header-actions, .erp-footer, .erp-related, .erp-instructions, .erp-hero, .erp-quicklinks { display: none !important; }
	body { background: #fff; }
	.erp-banner { background: none; color: #000; padding: 0; }
	.erp-banner-title { color: #000; }
	.erp-breadcrumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
