/*
Theme Name: EMAS Portal
Author: EMAS
Version: 1.3.0
Requires PHP: 7.4
Text Domain: emas-portal
*/
:root{--blue:#174497;--page:#f3f6fc;--ink:#123b78}*{box-sizing:border-box}body{margin:0;background:#080d17;color:var(--ink);font:15px/1.5 Arial,sans-serif}a{text-decoration:none;color:inherit}.emas-shell{max-width:1440px;min-height:calc(100vh - 28px);margin:14px auto;background:var(--page);border-radius:19px;overflow:hidden;display:flex;flex-direction:column}.site-header{background:var(--blue);color:white;min-height:84px;display:flex;align-items:center;justify-content:space-between;padding:18px 24px;gap:16px}.brand{font-size:22px;font-weight:800;display:flex;gap:12px;align-items:center;line-height:1.15}.brand small{display:block;font-size:11px;font-weight:400;margin-top:4px}.brand svg{width:24px;height:24px}.header-links{display:flex;align-items:center;gap:24px}.header-links a{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;white-space:nowrap}.header-links a:hover{text-decoration:underline}.header-links svg,.sidebar svg{width:17px;height:17px;flex-shrink:0}.layout{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1}.sidebar{background:var(--blue);padding:10px 12px 25px}.sidebar a{color:white;display:flex;align-items:center;gap:12px;font-size:15px;font-weight:600;padding:13px 14px;border-radius:9px;margin-bottom:3px}.sidebar a:hover,.sidebar a.active{background:#396bb3}.content{min-width:0;padding:25px 18px 35px}.panel{max-width:920px}.panel h1{font-size:26px;line-height:1.2;margin:0 0 7px;color:#0b3470}.subtitle{margin:0 0 15px;color:#4d6591}.service-card{background:white;border-radius:15px;padding:18px;margin:0 0 14px}.service-card h2{font-size:19px;margin:0 0 10px;color:#244b88;display:flex;gap:10px;align-items:center}.service-card p{margin:0 0 14px;color:#45628d}.service-card .muted-heading{color:#9cacc6}.primary-link,.submit-emas{display:flex;align-items:center;justify-content:center;gap:12px;border:0;border-radius:25px;background:#e9e9e9;color:#171717;padding:11px 18px;width:100%;font-size:15px;font-weight:700;cursor:pointer}.primary-link:hover,.submit-emas:hover{background:#d6e3f7}.footer{display:flex;justify-content:space-between;gap:10px;background:white;padding:15px 18px;color:#174497;font-size:12px}.footer a{color:#174497}.home-intro{margin:0 0 18px}.home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.home-actions a{background:white;border-radius:12px;padding:20px;font-weight:700}.home-actions small{display:block;font-weight:400;margin-top:6px}.tool-box,.module-card,.request-form{background:white;border-radius:14px;padding:20px;margin:12px 0}.request-form label{display:block;font-weight:700;margin:10px 0}.request-form input,.request-form textarea,.tool-grid input,.tool-grid select{display:block;width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:8px;margin-top:5px;font:inherit}.request-form textarea{min-height:110px}.request-form button{margin-top:12px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tool-result,.notice{padding:14px;background:#eaf1fb;border-radius:9px;margin-top:12px}.calendar{width:100%;border-collapse:collapse;background:white}.calendar td,.calendar th{border:1px solid #d9e3f3;text-align:center;padding:12px}.calendar .weekend{background:#e8edf7}.calendar .today{outline:2px solid #174497;outline-offset:-2px}.entry-content{max-width:860px}@media(max-width:750px){.emas-shell{margin:0;border-radius:0;min-height:100vh}.site-header{flex-wrap:wrap;padding:15px}.brand{font-size:20px}.header-links{width:100%;gap:9px;justify-content:space-between}.header-links a{font-size:11px}.header-links svg{width:14px}.layout{grid-template-columns:1fr}.sidebar{display:flex;overflow-x:auto;gap:5px;padding:9px}.sidebar a{flex:0 0 auto;font-size:12px;padding:9px}.content{padding:20px 14px}.panel h1{font-size:23px}.home-actions{grid-template-columns:1fr}.footer{flex-wrap:wrap}.tool-grid{grid-template-columns:1fr}}

/* v1.1.1 — approved compact layout and bounded icon sizing */
:root{--blue:#174497;--page:#f3f6fc;--ink:#123b78}
.emas-shell{max-width:1200px;min-height:calc(100vh - 24px);margin:12px auto;border-radius:16px}
.site-header{min-height:60px;padding:12px 15px;gap:12px}
.brand{font-size:17px;gap:8px;letter-spacing:-.25px}.brand small{font-size:9px;margin-top:1px}.brand svg{width:19px;height:19px}
.header-links{gap:20px}.header-links a{font-size:11px;gap:5px}.header-links svg{width:14px;height:14px}
.layout{grid-template-columns:245px minmax(0,1fr)}.sidebar{padding:8px}.sidebar a{font-size:12px;font-weight:600;gap:9px;padding:11px 12px;margin-bottom:3px;border-radius:8px}.sidebar svg{width:15px;height:15px}
.content{padding:16px 12px 30px}.panel{max-width:100%}.panel h1{font-size:20px;margin:0 0 4px}.subtitle{font-size:12px;margin:0 0 11px}
.service-card{padding:13px;margin-bottom:11px;border-radius:12px}.service-card h2{font-size:15px;margin:0 0 9px;gap:8px}.service-card p{font-size:12px;line-height:1.5;margin:0 0 10px}.service-card p:last-child{margin-bottom:0}
/* Crucial: never allow SVGs to inherit intrinsic giant dimensions */
.service-card svg,.entry-content svg,.panel svg{display:inline-block!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;max-height:17px!important;flex:0 0 17px!important;vertical-align:middle!important}
.primary-link,.submit-emas{min-height:34px;padding:7px 12px;font-size:12px}.footer{padding:11px 14px;font-size:10px}
/* The request form opens only when the visitor chooses to start */
.request-form{display:none}.request-form.emas-form-open{display:block}
@media(max-width:750px){.emas-shell{margin:0;border-radius:0;min-height:100vh}.site-header{padding:12px}.layout{grid-template-columns:1fr}.sidebar{display:flex;overflow-x:auto;padding:8px}.sidebar a{white-space:nowrap;font-size:12px;padding:9px}.content{padding:16px 12px}.header-links{gap:10px;flex-wrap:wrap}.brand{font-size:16px}.service-card{padding:13px}}

/* v1.2.0 full-viewport site layout */
html,body{width:100%;min-height:100%;margin:0}body{background:var(--page)}
.emas-shell{width:100%;max-width:none;min-height:100vh;margin:0;border-radius:0}
.layout{grid-template-columns:245px minmax(0,1fr)}
.content{width:100%;padding:22px 22px 40px}.panel{max-width:100%}
.site-header{padding:12px 22px}.header-links{gap:18px}.header-phone{font-size:12px!important;letter-spacing:.1px}.header-phone svg{width:17px!important;height:17px!important}
.contact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}.contact-card{background:#fff;border-radius:13px;padding:20px}.contact-card h2{font-size:17px;margin:0 0 12px}.contact-card p{margin:9px 0}.contact-card a{color:#174497;font-weight:700}.contact-map{width:100%;height:300px;border:0;border-radius:10px}.contact-form label{display:block;margin:12px 0 5px;font-weight:700}.contact-form input,.contact-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:11px;font:inherit}.contact-form textarea{min-height:130px}.contact-form button{margin-top:15px}.contact-faq details{background:white;padding:15px;border-radius:10px;margin:9px 0}.contact-faq summary{cursor:pointer;font-weight:700}.contact-faq p{margin-bottom:0}.contact-hp{position:absolute!important;left:-99999px!important}.contact-status{padding:12px;border-radius:9px;background:#eaf1fb;margin-bottom:14px}
@media(max-width:750px){.emas-shell{width:100%;min-height:100vh}.content{padding:17px 12px}.site-header{padding:13px}.header-links{justify-content:flex-start}.contact-grid{grid-template-columns:1fr}.contact-map{height:250px}}

/* v1.3.0: accessible typography and responsive proportional layout */
:root{--blue:#194794;--page:#f2f5fb;--ink:#12366e}
html{font-size:16px}body{font:16px/1.6 Arial,Helvetica,sans-serif;color:var(--ink)}
.emas-shell{min-height:100dvh}.site-header{min-height:86px;padding:16px clamp(20px,2.4vw,44px);gap:24px;flex-wrap:wrap}
.brand{font-size:clamp(21px,1.6vw,27px);line-height:1.2;letter-spacing:0}.brand small{font-size:12px;margin-top:3px}.brand svg{width:27px;height:27px}
.header-links{gap:clamp(12px,1.5vw,25px);flex-wrap:wrap;justify-content:flex-end}.header-links a,.header-phone{font-size:14px!important;gap:7px;line-height:1.4}.header-links svg,.header-phone svg{width:18px!important;height:18px!important}
.layout{grid-template-columns:clamp(255px,19vw,315px) minmax(0,1fr)}.sidebar{padding:16px 12px 26px}.sidebar a{font-size:15px;line-height:1.4;gap:12px;padding:14px 13px;margin-bottom:5px;min-height:49px}.sidebar svg{width:19px;height:19px}
.content{padding:clamp(22px,2.4vw,42px);min-width:0}.panel{max-width:1160px;width:100%}.panel h1{font-size:clamp(26px,2.1vw,34px);line-height:1.25;margin-bottom:8px}.subtitle{font-size:16px;line-height:1.55;margin-bottom:23px}
.service-card{padding:clamp(20px,2vw,30px);margin-bottom:18px;border-radius:16px;box-shadow:0 1px 3px rgba(18,54,110,.04)}.service-card h2{font-size:21px;line-height:1.35;margin-bottom:12px}.service-card p{font-size:16px;line-height:1.65;margin-bottom:16px}.service-card svg,.entry-content svg,.panel svg{width:21px!important;height:21px!important;min-width:21px!important;max-width:21px!important;max-height:21px!important;flex-basis:21px!important}
.primary-link,.submit-emas{min-height:49px;font-size:16px;padding:12px 18px;border-radius:28px}.footer{padding:17px clamp(20px,2.4vw,44px);font-size:14px;align-items:center}.footer a{display:inline-block;padding:4px 2px}
.home-actions{gap:18px}.home-actions a{font-size:17px;padding:23px}.home-actions small{font-size:14px}.tool-box,.module-card,.request-form{padding:25px}.request-form label,.contact-form label{font-size:16px}.request-form input,.request-form textarea,.contact-form input,.contact-form textarea,.tool-grid input,.tool-grid select{font-size:16px;padding:13px 15px;min-height:48px}
.contact-grid{gap:22px;max-width:1160px}.contact-card{padding:clamp(22px,2vw,32px);border-radius:16px}.contact-card h2{font-size:22px}.contact-card p{font-size:16px;line-height:1.65}.contact-map{height:340px}.contact-faq{max-width:1160px}.contact-faq details{padding:19px 22px;margin:12px 0}.contact-faq summary{font-size:17px}.contact-faq p{font-size:16px;line-height:1.7}
@media(min-width:1600px){.panel,.contact-grid,.contact-faq{max-width:1260px}}
@media(max-width:1100px){.site-header{padding:17px 22px}.header-links{gap:13px}.header-links a,.header-phone{font-size:13px!important}.layout{grid-template-columns:245px minmax(0,1fr)}.sidebar a{font-size:14px;padding:12px 10px}.content{padding:24px}.contact-grid{grid-template-columns:1fr 1fr;gap:14px}.contact-card{padding:20px}}
@media(max-width:800px){.site-header{min-height:auto;gap:14px;padding:18px 20px}.brand{font-size:23px}.header-links{width:100%;justify-content:flex-start;gap:10px 20px}.header-links a,.header-phone{font-size:14px!important}.layout{display:flex;flex-direction:column}.sidebar{display:flex;overflow-x:auto;gap:7px;padding:12px 16px;scrollbar-width:thin;scroll-snap-type:x proximity}.sidebar a{flex:0 0 auto;white-space:nowrap;min-height:46px;font-size:14px;padding:11px 14px;scroll-snap-align:start;margin:0}.content{padding:26px 20px 40px}.panel{max-width:none}.panel h1{font-size:28px}.contact-grid{grid-template-columns:1fr 1fr}.contact-card{padding:20px}.contact-map{height:260px}.footer{padding:16px 20px}}
@media(max-width:600px){body{font-size:16px}.site-header{padding:16px;gap:15px}.brand{font-size:22px}.brand small{font-size:11px}.header-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.header-links a,.header-phone{font-size:13px!important;white-space:normal;min-height:44px;padding:8px 9px;border:1px solid rgba(255,255,255,.22);border-radius:9px;justify-content:flex-start}.header-links svg,.header-phone svg{width:17px!important;height:17px!important;flex-shrink:0}.sidebar{padding:10px 12px}.sidebar a{font-size:14px;min-height:44px}.content{padding:23px 15px 34px}.panel h1{font-size:26px}.subtitle{font-size:15px;margin-bottom:17px}.service-card{padding:19px 17px;border-radius:14px;margin-bottom:13px}.service-card h2{font-size:19px}.service-card p{font-size:15px}.primary-link,.submit-emas{font-size:15px;min-height:48px}.contact-grid{grid-template-columns:1fr;gap:13px}.contact-card{padding:19px 16px}.contact-card h2{font-size:20px}.contact-map{height:255px}.contact-faq details{padding:17px}.footer{font-size:13px;gap:7px;line-height:1.7;flex-direction:column;align-items:flex-start}.home-actions{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr}.tool-box,.module-card,.request-form{padding:18px}}
@media(max-width:360px){.header-links{grid-template-columns:1fr}.brand{font-size:19px}}
