:root{
	--mc-primary:#102E3A;
	--mc-accent:#5FAECE;
	/* Backward-compatible maximum used by header components. */
	--mc-max:1510px;
	/* Global 2027 layout scale. */
	--mc-wide:1510px;
	--mc-content:1440px;
	--mc-commerce:1440px;
	--mc-narrow:1180px;
	--mc-gutter:32px;
	--mc-section-space:clamp(38px,4vw,64px);
	--mc-section-space-compact:clamp(24px,2.6vw,42px);
	--mc-text:#172026;
	/* Semantic copy colours for WordPress-managed content. */
	--mc-heading:#102E3A;
	--mc-copy:#385563;
	--mc-copy-muted:#667A85;
	--mc-muted:#66737a;
	--mc-link:#2F86AD;
	--mc-link-hover:#236E93;
	--mc-border:#e3e8eb;
	--mc-bg:#ffffff;
	--mc-soft:#f5f8f9;
	--mc-radius:12px;
	--mc-shadow:0 14px 40px rgba(16,46,58,.12);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.macrigi-core-theme{
	margin:0;
	background:var(--mc-bg);
	color:var(--mc-text);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	line-height:1.5;
}
body.mc-drawer-open{overflow:hidden}

/* =========================================================
   MACRIGI 2027 — WORDPRESS CONTENT COLOUR SYSTEM
   Defaults only: Elementor and purpose-built Core components can still own
   their explicit colours. This keeps product/page/editor copy consistent.
   ========================================================= */
body.macrigi-core-theme:not(.elementor-page)
:is(.mc-entry__content, .mc-page:not(.mc-system-page)) {
	color:var(--mc-copy);
}

body.macrigi-core-theme:not(.elementor-page)
:is(.mc-entry__content, .mc-page:not(.mc-system-page))
:where(p,li,dd,dt,figcaption,blockquote) {
	color:inherit;
}

body.macrigi-core-theme:not(.elementor-page)
:is(.mc-entry__content, .mc-page:not(.mc-system-page))
:where(h1,h2,h3,h4,h5,h6) {
	color:var(--mc-heading);
}

body.macrigi-core-theme:not(.elementor-page)
:is(.mc-entry__content, .mc-page:not(.mc-system-page))
:where(a:not(.button):not([class*="button"])) {
	color:var(--mc-link);
}

body.macrigi-core-theme:not(.elementor-page)
:is(.mc-entry__content, .mc-page:not(.mc-system-page))
:where(a:not(.button):not([class*="button"])):hover {
	color:var(--mc-link-hover);
}

/* Native WooCommerce archive/category descriptions are WordPress content too. */
body.macrigi-core-theme :where(
	.term-description,
	.woocommerce-products-header__description
) {
	color:var(--mc-copy);
}

body.macrigi-core-theme :where(
	.term-description,
	.woocommerce-products-header__description
) :where(h1,h2,h3,h4,h5,h6) {
	color:var(--mc-heading);
}

body.macrigi-core-theme :where(
	.term-description,
	.woocommerce-products-header__description
) a:not(.button) {
	color:var(--mc-link);
}

img{max-width:100%;height:auto}
a{color:inherit}
button,input{font:inherit}
.mc-main{min-height:50vh;overflow-x:clip}

/* =========================================================
   MACRIGI 2027 — GLOBAL LAYOUT & SPACING SYSTEM
   Full width: hero / colour bands / intentional Elementor full-width pages.
   Wide: commerce / dashboards / operational tools.
   Standard: normal site pages.
   Narrow: legal and long-form reading pages.
   ========================================================= */
.mc-container,
.mc-container--standard,
.macrigi-container{
	width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-content));
	margin-inline:auto;
	padding-block:32px;
}
.mc-container--wide,
.macrigi-container-wide{
	width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-wide));
	margin-inline:auto;
}
.mc-container--narrow,
.macrigi-container-narrow{
	width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-narrow));
	margin-inline:auto;
}
.mc-full-width,
.macrigi-full-width{
	width:100%!important;
	max-width:none!important;
	margin-inline:0!important;
}

.mc-page{margin:0;min-width:0}
.mc-layout{margin-inline:auto;min-width:0}
.mc-layout--full{width:100%;max-width:none}
.mc-layout--wide{width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-wide))}
.mc-layout--standard{width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-content))}
.mc-layout--narrow{width:min(calc(100% - (var(--mc-gutter) * 2)),var(--mc-narrow))}

/* Elementor geometry is page-owned. The Core must never squeeze the outer
   page wrapper on Elementor-built pages; boxed/full-width sections then keep
   exactly the widths configured in Elementor. */
body.elementor-page .mc-page.mc-layout{
	width:100%!important;
	max-width:none!important;
	margin-inline:0!important;
}
body.elementor-page .mc-page.mc-layout > .elementor{
	width:100%;
	max-width:none;
}

/* Elementor owns its internal spacing. Native WordPress pages receive a
   compact default rhythm so old pages do not look excessively open. */
body.macrigi-core-theme:not(.elementor-page) .mc-page.mc-layout:not(.mc-layout--full){
	padding-block:var(--mc-section-space-compact);
}

/* Reusable section rhythm for new Core components and optional Elementor CSS classes. */
.mc-section,.macrigi-section{padding-block:var(--mc-section-space)}
.mc-section--compact,.macrigi-section-compact{padding-block:var(--mc-section-space-compact)}
.mc-section:first-child,.macrigi-section:first-child{padding-top:var(--mc-section-space-compact)}

/* Keep long-form/native content readable without overriding Elementor typography. */
body.macrigi-core-theme:not(.elementor-page) .mc-layout--narrow :where(p,li){line-height:1.68}
body.macrigi-core-theme:not(.elementor-page) .mc-layout--narrow :where(h1,h2,h3,h4){line-height:1.18}

.mc-entry__title{line-height:1.15}
.mc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.mc-card{border:1px solid var(--mc-border);border-radius:var(--mc-radius);padding:18px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:1024px){
	:root{--mc-gutter:24px;--mc-section-space:clamp(32px,5vw,52px);--mc-section-space-compact:28px}
}
@media(max-width:900px){.mc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
	:root{--mc-gutter:16px;--mc-section-space:36px;--mc-section-space-compact:22px}
	.mc-container,.mc-container--standard,.macrigi-container{padding-block:24px}
	.mc-grid{grid-template-columns:1fr}
}

/* v0.7.159 — UM legal gateway visual contract.
 * IMPORTANT: core.css is the stylesheet enqueued as `macrigi-core`; style.css is only the WP theme header.
 * Keep legal text light and make only actionable legal destinations visibly underlined. */
.macrigi-um-legal-notice{
  margin:14px 0 0!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:baseline!important;
  gap:3px 5px!important;
  color:#6f7d84!important;
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:400!important;
}
.macrigi-um-legal-notice span,
.macrigi-um-legal-notice a{
  font-size:12px!important;
  line-height:1.45!important;
  font-weight:400!important;
}
.macrigi-um-legal-notice a,
.um a.macrigi-um-privacy-link{
  color:#5f6d74!important;
  font-weight:400!important;
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:2px!important;
  text-decoration-skip-ink:auto!important;
}
.um a.macrigi-um-privacy-link{
  font-size:12px!important;
  line-height:1.45!important;
}
.macrigi-um-legal-notice a:hover,
.macrigi-um-legal-notice a:focus,
.um a.macrigi-um-privacy-link:hover,
.um a.macrigi-um-privacy-link:focus{
  color:#0f657d!important;
}
.um [data-macrigi-privacy-native-hidden="1"]{display:none!important;}

/* =========================================================
   v0.7.166 — Professional language-aware 404 responsive contract refinement
   Presentation only. LM remains owner of language/routes.
   ========================================================= */
.mc-404-pro{
  --mc-404-ink:#103746;
  --mc-404-blue:#5faece;
  --mc-404-soft:#eef8fc;
  --mc-404-line:#d8e7ed;
  background:#fff;
  color:var(--mc-404-ink);
}
.mc-404-pro__inner{
  width:min(calc(100% - 10cm),var(--mc-wide));
  margin-inline:auto;
  padding:clamp(42px,5vw,76px) 0 clamp(48px,5vw,72px);
}
.mc-404-pro__hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);
  gap:clamp(40px,5vw,84px);
  align-items:center;
}
.mc-404-pro__eyebrow{
  display:flex;align-items:center;gap:12px;margin:0 0 14px;
  color:#3e9fc3;font-size:13px;font-weight:800;letter-spacing:.12em;
}
.mc-404-pro__eyebrow:before{content:"";width:31px;height:2px;background:var(--mc-404-blue);border-radius:4px}
.mc-404-pro h1{margin:0;font-size:clamp(44px,4vw,70px);line-height:1.02;letter-spacing:-.04em;color:#0d3140}
.mc-404-pro__lead{max-width:760px;margin:18px 0 0;color:#51666f;font-size:clamp(17px,1.35vw,21px);line-height:1.55}
.mc-404-pro__actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.mc-404-pro__button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:11px 18px;border:1px solid #a9d2e2;border-radius:7px;background:#fff;color:#123c4c;text-decoration:none;font-weight:750;font-size:14px;transition:.18s ease}
.mc-404-pro__button:hover,.mc-404-pro__button:focus-visible{transform:translateY(-1px);border-color:#5faece;box-shadow:0 8px 22px rgba(15,55,69,.10)}
.mc-404-pro__button--primary{background:#0e3a4a;border-color:#0e3a4a;color:#fff;padding-inline:23px}
.mc-404-pro__search{display:flex;align-items:center;gap:16px;margin-top:30px;padding:16px 18px;border:1px solid var(--mc-404-line);border-radius:10px;background:#f7fbfd;max-width:830px}
.mc-404-pro__search-icon{width:34px;flex:0 0 34px;color:#42a9d2}
.mc-404-pro__search-icon svg,.mc-404-pro__search button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.mc-404-pro__search-body{min-width:0;flex:1}.mc-404-pro__search-body label{display:block;font-size:14px;font-weight:800;margin-bottom:8px}
.mc-404-pro__search-row{display:grid;grid-template-columns:minmax(0,1fr) 48px;border:1px solid #cddfe6;border-radius:7px;overflow:hidden;background:#fff}
.mc-404-pro__search input[type="search"]{min-width:0;height:46px;border:0!important;box-shadow:none!important;padding:0 14px!important;color:#203f4b;background:#fff}
.mc-404-pro__search button{height:46px;border:0;background:#0e3a4a;color:#fff;display:grid;place-items:center;cursor:pointer}
.mc-404-pro__visual{position:relative;min-height:445px;border-radius:22px;overflow:hidden;background:linear-gradient(145deg,#f4fbfe 0%,#eef7fa 50%,#f9fcfd 100%);border:1px solid #e3eef2;box-shadow:0 18px 45px rgba(15,55,69,.08)}
.mc-404-pro__visual:after{content:"";position:absolute;inset:auto -8% -18% 18%;height:44%;background:radial-gradient(ellipse,rgba(14,58,74,.15),transparent 68%);filter:blur(18px)}
.mc-404-pro__map{position:absolute;inset:5% 3% 17% 2%;opacity:.97}.mc-404-pro__map svg{width:100%;height:100%}
.mc-404-pro__map-sheet{fill:#e3f2f8;stroke:#b8d8e5;stroke-width:2}.mc-404-pro__route{fill:none;stroke:#287aa0;stroke-width:4;stroke-dasharray:11 10}.mc-404-pro__route-dot{fill:#fff;stroke:#287aa0;stroke-width:5}.mc-404-pro__pin{fill:#10729c}.mc-404-pro__pin-x{fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round}
.mc-404-pro__pallet{position:absolute;left:19%;right:12%;bottom:9%;height:27px;background:repeating-linear-gradient(90deg,#b88854 0 72px,#8f6135 72px 84px);border-radius:3px;box-shadow:0 8px 12px rgba(54,45,32,.18)}
.mc-404-pro__box{position:absolute;background:linear-gradient(135deg,#dcb481,#c79258);border:1px solid #b8854f;box-shadow:0 10px 22px rgba(78,55,32,.17)}
.mc-404-pro__box:before,.mc-404-pro__box:after{content:"";position:absolute;background:rgba(255,255,255,.34)}
.mc-404-pro__box:before{left:50%;top:0;width:16%;height:100%;transform:translateX(-50%)}.mc-404-pro__box:after{left:8%;right:8%;top:30%;height:1px;background:#b27e49}
.mc-404-pro__box span{position:absolute;left:12%;bottom:14%;width:26px;height:26px;border:2px solid #6e4b2d;border-radius:4px}.mc-404-pro__box i{position:absolute;right:12%;bottom:15%;width:34px;height:20px;border-top:2px solid #6e4b2d;border-bottom:2px solid #6e4b2d}
.mc-404-pro__box--large{left:29%;bottom:14%;width:42%;height:34%;border-radius:5px}.mc-404-pro__box--small{right:8%;bottom:13%;width:23%;height:25%;border-radius:4px}
.mc-404-pro__warehouse-lines{position:absolute;right:-8%;top:10%;width:26%;height:70%;opacity:.28;background:repeating-linear-gradient(90deg,#9cbac6 0 4px,transparent 4px 44px),repeating-linear-gradient(0deg,#9cbac6 0 4px,transparent 4px 58px);transform:skewY(-7deg)}
.mc-404-pro__help{margin-top:clamp(42px,5vw,72px)}.mc-404-pro__help h2{margin:0;font-size:clamp(25px,2vw,34px);letter-spacing:-.02em}.mc-404-pro__help>p{margin:5px 0 20px;color:#60747c;font-size:15px}
.mc-404-pro__cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.mc-404-pro__card{display:grid;grid-template-columns:46px minmax(0,1fr) 14px;gap:12px;align-items:center;min-height:108px;padding:16px;border:1px solid var(--mc-404-line);border-radius:9px;background:#fff;text-decoration:none;transition:.18s ease}
.mc-404-pro__card:hover,.mc-404-pro__card:focus-visible{border-color:#72bad4;box-shadow:0 10px 24px rgba(15,55,69,.08);transform:translateY(-2px)}
.mc-404-pro__card-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eff9fd;color:#1596c8;font-size:22px;font-weight:800}.mc-404-pro__card strong{display:block;font-size:14px;line-height:1.2;color:#123744}.mc-404-pro__card small{display:block;margin-top:5px;color:#657980;font-size:12px;line-height:1.4}.mc-404-pro__card b{color:#1596c8;font-size:24px;font-weight:400}
/* v0.7.166 — 404 keeps the approved ecosystem width contract and refines tablet/mobile alignment. */
@media (min-width:1500px){
  .mc-404-pro__inner{width:calc(100% - 10cm);max-width:none;margin-inline:auto}
}
@media (min-width:1100px) and (max-width:1499px){
  .mc-404-pro__inner{width:calc(100% - 72px);max-width:none;margin-inline:auto}
  .mc-404-pro__hero{grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:clamp(34px,4vw,64px)}
  .mc-404-pro__cards{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:768px) and (max-width:1099px){
  .mc-404-pro__inner{width:calc(100% - 48px);max-width:none;margin-inline:auto;padding-top:36px}
  .mc-404-pro__hero{grid-template-columns:1fr;gap:30px}
  .mc-404-pro__copy{max-width:820px;margin-inline:auto;text-align:center}
  .mc-404-pro__actions{justify-content:center}
  .mc-404-pro__search{margin-inline:auto;text-align:left}
  .mc-404-pro__visual{min-height:360px;max-width:820px;width:100%;margin-inline:auto}
  .mc-404-pro__help{text-align:center}
  .mc-404-pro__cards{grid-template-columns:repeat(6,minmax(0,1fr));max-width:900px;margin-inline:auto}
  .mc-404-pro__card{grid-column:span 2}
  .mc-404-pro__card:nth-child(4){grid-column:2 / span 2}
  .mc-404-pro__card:nth-child(5){grid-column:4 / span 2}
}
@media (max-width:767px){
  .mc-404-pro__inner{width:calc(100% - 28px);max-width:none;margin-inline:auto;padding:28px 0 38px}
  .mc-404-pro__hero{grid-template-columns:1fr;gap:24px}
  .mc-404-pro__copy{text-align:center}
  .mc-404-pro h1{font-size:40px}
  .mc-404-pro__lead{margin-inline:auto}
  .mc-404-pro__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mc-404-pro__button{width:100%;text-align:center;padding-inline:10px}
  .mc-404-pro__button--primary{grid-column:1 / -1}
  .mc-404-pro__actions .mc-404-pro__button:nth-child(4){grid-column:1 / -1;width:calc(50% - 5px);justify-self:center}
  .mc-404-pro__search{padding:14px;gap:10px;text-align:left}
  .mc-404-pro__search-icon{display:none}
  .mc-404-pro__visual{min-height:290px}
  .mc-404-pro__help{text-align:center}
  .mc-404-pro__cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .mc-404-pro__card{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:142px;padding:14px 10px;text-align:center}
  .mc-404-pro__card b{display:none}
  .mc-404-pro__card small{margin-top:4px}
  .mc-404-pro__card:nth-child(5){grid-column:1 / -1;width:calc(50% - 5px);justify-self:center}
  .mc-404-pro__box--large{left:18%;width:48%}
  .mc-404-pro__box--small{right:6%;width:28%}
}
@media (max-width:430px){
  .mc-404-pro__inner{width:calc(100% - 22px)}
}
@media (max-width:380px){
  .mc-404-pro h1{font-size:36px}
  .mc-404-pro__card{min-height:136px;padding:12px 8px}
  .mc-404-pro__card strong{font-size:12.5px}
  .mc-404-pro__card small{font-size:11px}
}
