/*!
 * Mandurah Bookkeeping Service Site — runtime styles (layout base, Site Header, menus, drawer, form, map, footer).
 * Site-specific measurements are in mdbk-site.css (generated from the original).
 */
/* ---------- Design tokens ---------- */
:root{
	--mdbk-font:"Poppins","Poppins Fallback",Arial,Helvetica,sans-serif;
	--mdbk-blue:#3039e2;
	--mdbk-orange:#e27730;
	--mdbk-grey:#f4f4f4;
	--mdbk-sub-bg:#faf9f9;
	--mdbk-sub-line:#d1d1d1;
	--mdbk-input-line:#e9e9e9;
	--mdbk-required:#f11111;
	--mdbk-drawer-text:#939393;
	--mdbk-drawer-active:#646464;
	--mdbk-ab:0px;
	--mdbk-compact-h:85px;
}
body.admin-bar{--mdbk-ab:32px}
@media (max-width:782px){body.admin-bar{--mdbk-ab:46px}}
@media (max-width:767px){:root{--mdbk-compact-h:75px}}

/* ---------- Scoped base ---------- */
.mdbk-section,.mdbk-section *,.mdbk-section *::before,.mdbk-section *::after,
.mdbk-header,.mdbk-header *,.mdbk-header *::before,.mdbk-header *::after,
.mdbk-drawer,.mdbk-drawer *,.mdbk-burger,.mdbk-burger *,.mdbk-totop{box-sizing:border-box}

:is(body,#mdbk) :is(.mdbk-section,.mdbk-header,.mdbk-drawer){font-family:var(--mdbk-font);font-size:16px;font-weight:400;font-style:normal;line-height:normal;letter-spacing:normal;color:#000;text-transform:none}
:is(body,#mdbk) :is(.mdbk-section,.mdbk-header,.mdbk-drawer) :is(h1,h2,h3,h4,h5,h6,p,ul,ol,figure,blockquote,pre):where(:not(.has-background)){margin:0;padding:0}
/* Block themes (e.g. Twenty Twenty-Five) add a "block gap" margin between blocks; the original has none. Margins set in the editor are inline and still win. */
:is(body,#mdbk) :is(.mdbk-section,.mdbk-header) .is-layout-flow > *{margin-block-start:0;margin-block-end:0}
:is(body,#mdbk) :is(.mdbk-section,.mdbk-header,.mdbk-drawer) :is(h1,h2,h3,h4,h5,h6){font-family:inherit;font-weight:700;font-style:normal;line-height:normal;letter-spacing:normal;text-transform:none;color:inherit}
:is(body,#mdbk) .mdbk-section :is(p,li){font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}
.mdbk-section :is(strong,b){font-weight:700}
.mdbk-section img{max-width:100%;border:0}
.mdbk-section a:where(:not(.wp-element-button)){color:var(--mdbk-blue);text-decoration:underline}
.mdbk-section a:where(:not(.wp-element-button)):hover{text-decoration:none}
:is(.mdbk-section,.mdbk-header,.mdbk-drawer,.mdbk-burger,.mdbk-totop) :is(a,button):focus-visible{outline:2px solid #101010;outline-offset:2px}
.mdbk-section .screen-reader-text,.mdbk-header .screen-reader-text,.mdbk-drawer .screen-reader-text,.mdbk-burger .screen-reader-text,.mdbk-form-wrap .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;white-space:nowrap}

/* ---------- Plugin page template (themes other than Astra) ---------- */
body.mdbk-canvas{margin:0;padding:0;background:#fff;overflow-x:hidden}
.mdbk-canvas-page,.mdbk-canvas-main{display:block;margin:0;padding:0}
:is(body,#mdbk) .mdbk-canvas-content{margin:0;padding:0;max-width:none}
.mdbk-skip-link:focus{position:fixed !important;top:calc(var(--mdbk-ab) + 10px);left:10px;z-index:100000;width:auto;height:auto;clip:auto;clip-path:none;margin:0;padding:10px 16px;background:#000;color:#fff;font:700 14px/1.2 Arial,sans-serif;text-decoration:none;white-space:normal}

/* ---------- Astra page wrappers (plugin pages: full width, nothing added) ---------- */
:is(body,#mdbk).mdbk-page :is(#primary,#main,.site-main){margin:0;padding:0;width:100%;max-width:none;float:none}
:is(body,#mdbk).mdbk-page .site-content > .ast-container{max-width:none;padding:0;display:block}
:is(body,#mdbk).mdbk-page .site-main > article,:is(body,#mdbk).mdbk-page .ast-article-single{margin:0;padding:0;border:0;background:none;box-shadow:none}
:is(body,#mdbk).mdbk-page .entry-content{margin:0;padding:0}
:is(body,#mdbk).mdbk-page .entry-content > .mdbk-section:first-child{margin-top:0}
:is(body,#mdbk) .entry-content > .mdbk-section{margin-left:0;margin-right:0;max-width:none;width:auto}
:is(body,#mdbk).mdbk-site-body .site-content{padding-top:0;padding-bottom:0}

/* ---------- Layout ---------- */
:is(body,#mdbk) .mdbk-section{display:flow-root;padding:0}
.mdbk-wrap{width:100%;max-width:960px;margin-left:auto;margin-right:auto}
@media (min-width:1200px){.mdbk-wrap{max-width:1200px}}
:is(body,#mdbk) .wp-block-columns.mdbk-cols{display:flex;flex-wrap:nowrap;gap:0;margin:0;padding:0}

/* Images fill their column, like the original. A width set in the editor wins. */
:is(body,#mdbk) .mdbk-section .mdbk-img{margin:0}
.mdbk-img img{display:block;width:100%;height:auto}

/* Spacer used for the original's blank lines. */
:is(body,#mdbk) .mdbk-section .wp-block-spacer{margin:0;clear:both}



/* ---------- Buttons ---------- */
.wp-block-button.is-style-mdbk-dark-hover .wp-block-button__link:is(:hover,:focus-visible){background-color:#000 !important}



/* ---------- Enquiry form ---------- */
.mdbk-form-wrap{position:relative;font-family:var(--mdbk-font)}
.mdbk-form{display:flow-root}
.mdbk-form[hidden]{display:none}
.mdbk-form__grid{display:flex;flex-wrap:wrap;margin:-7.5px}
:is(body,#mdbk) .mdbk-field{width:100%;padding:7.5px;margin:0}
:is(body,#mdbk) .mdbk-field--half{width:50%}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-field__label{display:block;margin:0;padding:0;font-family:inherit;font-size:16px;font-weight:500;line-height:normal;color:#000;text-align:left;text-transform:none;letter-spacing:normal}
.mdbk-req{color:var(--mdbk-required);margin-left:.3em}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-field__control{display:block;width:100%;max-width:100%;height:40px;min-height:0;margin:3px 0;padding:0 10px;border:1px solid var(--mdbk-input-line);border-radius:0;background:transparent;box-shadow:none;color:#000;font-family:var(--mdbk-font);font-size:16px;font-weight:400;font-style:normal;line-height:normal;text-align:left;outline:0}
:is(body,#mdbk) .mdbk-form-wrap input.mdbk-field__control{-webkit-appearance:none;appearance:none}
:is(body,#mdbk) .mdbk-form-wrap textarea.mdbk-field__control{height:80px;padding:10px;font-style:italic;resize:vertical;min-height:40px}
:is(body,#mdbk) .mdbk-form-wrap select.mdbk-field__control{-webkit-appearance:auto;appearance:auto;background-color:#fff;padding:0 10px;cursor:pointer}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-field__control:focus{outline:2px solid #101010;outline-offset:0;border-color:var(--mdbk-input-line)}
:is(body,#mdbk) .mdbk-form-wrap .is-invalid .mdbk-field__control{outline:1px solid #f00;outline-offset:0}
:is(body,#mdbk) .mdbk-form-wrap .is-invalid .mdbk-field__control:focus{outline:2px solid #f00}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-field__error{margin:2px 0 0;padding:0;font-size:13px;line-height:1.3;color:#c00}
.mdbk-field__error[hidden],.mdbk-form__msg[hidden]{display:none}
.mdbk-hp{position:absolute !important;left:-10000px !important;top:auto !important;width:1px !important;height:1px !important;overflow:hidden !important}
.mdbk-form__submit{margin-top:20px;background:var(--mdbk-btn-bg,#3039e2);border:1px solid transparent;border-radius:0;transition:background-color .2s,border-color .2s}
.mdbk-form__submit:hover,.mdbk-form__submit:focus-within{background:var(--mdbk-btn-bg-hover,#000);border-color:var(--mdbk-btn-bg-hover,#000)}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-form__button{display:block;width:100%;height:56px;min-height:0;margin:0;padding:10px;border:0;border-radius:5px;background:transparent;box-shadow:none;color:var(--mdbk-btn-color,#fff);font-family:var(--mdbk-font);font-size:24px;font-weight:700;line-height:normal;letter-spacing:normal;text-transform:none;text-align:center;cursor:pointer}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-form__button:hover{background:transparent;color:var(--mdbk-btn-color,#fff)}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-form__button:focus-visible{outline:2px solid #fff;outline-offset:-5px}
.mdbk-form.is-pending .mdbk-form__submit{opacity:.75}
.mdbk-form.is-pending .mdbk-form__button{cursor:progress}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-form__msg{margin:15px 0 0;font-size:16px;font-weight:300;line-height:normal;color:#000;text-align:center}
:is(body,#mdbk) .mdbk-form-wrap .mdbk-form__msg--success{margin-top:0}
.mdbk-form__msg:focus{outline:none}

/* ---------- Site header (desktop ≥1025px) ---------- */
.mdbk-header{position:relative;z-index:1000;left:0;right:0}
.mdbk-header.is-sticky{position:fixed;top:var(--mdbk-ab)}
.mdbk-header__bar--desktop{background:var(--mdbk-h-bg,#fff);padding:15px 40px;transition:background-color .2s,padding .2s}
.mdbk-header.can-shrink.is-scrolled .mdbk-header__bar--desktop{background:var(--mdbk-h-bg-scrolled,#fff)}
.mdbk-header__inner{max-width:1200px;margin:0 auto}
:is(body,#mdbk) .mdbk-header .wp-block-columns.mdbk-header-cols{display:flex;flex-wrap:nowrap;gap:0;margin:0;padding:0}
:is(body,#mdbk) .mdbk-header .mdbk-header-cols > .wp-block-column{min-width:0;padding:0;margin:0}
:is(body,#mdbk) .mdbk-header .mdbk-header-navcol{padding-left:10px}
:is(body,#mdbk) .mdbk-header .mdbk-header-phone{margin:8px 0;padding:2px 0;line-height:normal;white-space:nowrap;transition:margin .2s}
:is(body,#mdbk) .mdbk-header.can-shrink.is-scrolled .mdbk-header-phone{margin-top:0;margin-bottom:0}
.mdbk-header-phone a{display:inline-block;text-decoration:underline}
.mdbk-header-phone a:hover{text-decoration:none}
.mdbk-header-spacer{height:98px}
.mdbk-header__bar--compact{display:none}
.mdbk-header.mdbk-measuring,.mdbk-header.mdbk-measuring *{transition:none !important}

/* ---------- SA Menu ---------- */
.mdbk-menu{display:flex;padding:7px 15px;font-family:var(--mdbk-font)}
.mdbk-menu--right{justify-content:flex-end}
.mdbk-menu--center{justify-content:center}
.mdbk-menu--left{justify-content:flex-start}
:is(body,#mdbk) .mdbk-menu__list{display:flex;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.mdbk-menu--right .mdbk-menu__list{justify-content:flex-end}
.mdbk-menu--center .mdbk-menu__list{justify-content:center}
:is(body,#mdbk) .mdbk-menu__item,:is(body,#mdbk) .mdbk-menu__subitem{position:relative;list-style:none;margin:0;padding:0}
:is(body,#mdbk) .mdbk-menu__link{display:flex;align-items:center;min-height:38px;padding:0 var(--mdbk-menu-pad,15px);font-family:var(--mdbk-font);font-size:var(--mdbk-menu-fs,18px);font-weight:700;line-height:normal;letter-spacing:.03em;color:var(--mdbk-menu-color,#000);text-decoration:none;white-space:nowrap;cursor:pointer}
.mdbk-menu__text{display:inline-block}
.mdbk-menu__link .mdbk-menu__text::after{content:"";display:block;border-top:2px solid currentColor;margin-top:.2em;transform:scaleX(0);transform-origin:0 50%;opacity:0;transition:transform .2s ease-out,opacity .2s ease-out}
.mdbk-menu__link:is(:hover,:focus-visible,.is-current) .mdbk-menu__text::after,
.mdbk-menu__item--has-sub:hover > .mdbk-menu__link .mdbk-menu__text::after,
.mdbk-menu__item--has-sub.is-open > .mdbk-menu__link .mdbk-menu__text::after{transform:scaleX(1);opacity:1}
.mdbk-menu__chev{display:inline-block;width:11px;height:8px;margin-left:10px;vertical-align:middle;position:relative;top:-1px;transition:transform .2s ease-out}
.mdbk-menu__item--has-sub:is(:hover,:focus-within,.is-open) .mdbk-menu__chev{transform:rotate(180deg)}
.mdbk-menu__item--has-sub.is-closed .mdbk-menu__chev{transform:none}
:is(body,#mdbk) .mdbk-menu__sub{position:absolute;top:100%;left:var(--mdbk-menu-pad,15px);z-index:100;display:none;min-width:max-content;list-style:none;margin:0;padding:0;background:var(--mdbk-sub-bg)}
:is(body,#mdbk) .mdbk-menu__item--has-sub:is(:hover,:focus-within,.is-open) > .mdbk-menu__sub{display:block}
:is(body,#mdbk) .mdbk-menu__item--has-sub.is-closed > .mdbk-menu__sub{display:none}
/* In the header the dropdown fades/slides like the original. */
:is(body,#mdbk) .mdbk-header .mdbk-menu__sub{display:block;opacity:0;visibility:hidden;transform:translateY(-10px);transition:transform .4s ease-out,opacity .1s ease-out,visibility 0s linear .4s}
:is(body,#mdbk) .mdbk-header .mdbk-menu__item--has-sub:is(:hover,:focus-within,.is-open) > .mdbk-menu__sub{display:block;opacity:1;visibility:visible;transform:none;transition-delay:0s}
:is(body,#mdbk) .mdbk-header .mdbk-menu__item--has-sub.is-closed > .mdbk-menu__sub{display:block;opacity:0;visibility:hidden}
/* A header that scrolls with the page must not let a closed dropdown widen the page. */
:is(body,#mdbk) .mdbk-header:not(.is-sticky) .mdbk-menu__item--has-sub:not(:hover):not(:focus-within):not(.is-open) > .mdbk-menu__sub,
html:not(.mdbk-js) :is(body,#mdbk) .mdbk-header .mdbk-menu__item--has-sub:not(:hover):not(:focus-within) > .mdbk-menu__sub{display:none}
.mdbk-menu__subitem + .mdbk-menu__subitem{border-top:1px solid var(--mdbk-sub-line)}
:is(body,#mdbk) .mdbk-menu__sublink{display:block;padding:15px 30px 15px 15px;font-family:var(--mdbk-font);font-size:var(--mdbk-menu-sub-fs,16px);font-weight:400;line-height:normal;letter-spacing:.03em;color:var(--mdbk-menu-color,#000);text-decoration:none;white-space:nowrap;text-align:left}
:is(body,#mdbk) .mdbk-menu__sublink:is(:hover,:focus-visible,.is-current){color:#646464}
:is(body,#mdbk) .mdbk-header .mdbk-menu{margin-top:6px;transition:margin .2s}
:is(body,#mdbk) .mdbk-header.can-shrink.is-scrolled .mdbk-menu{margin-top:0}
:is(body,#mdbk) .mdbk-site-footer .mdbk-menu{margin-top:10px}

/* ---------- Map ---------- */
.mdbk-map__frame{width:100%;overflow:hidden}
.mdbk-map__frame iframe{display:block;width:100%;height:100%;border:0}
.mdbk-map__button{display:none}
.mdbk-map__placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#e5e3df;color:#555;border:1px dashed #aaa;font-family:var(--mdbk-font);text-align:center;padding:10px}
.mdbk-map__placeholder .dashicons{font-size:32px;width:32px;height:32px}

/* ---------- Footer ---------- */
.mdbk-site-footer{display:block;margin:0;padding:0}
:is(body,#mdbk) .mdbk-section .wp-block-social-links.mdbk-social{gap:16px;padding:0}
:is(body,#mdbk) .mdbk-social .wp-social-link{margin:0}
:is(body,#mdbk) .mdbk-social .wp-social-link .wp-block-social-link-anchor{display:flex;align-items:center;justify-content:center;width:26px;height:31px;padding:0;position:relative}
:is(body,#mdbk) .mdbk-social .wp-social-link svg{width:18px;height:18px}
:is(body,#mdbk) .mdbk-social:not(.has-icon-color) .wp-social-link-facebook{color:#1877f2}
:is(body,#mdbk) .mdbk-social:not(.has-icon-color) .wp-social-link-linkedin{color:#2867b2}
:is(body,#mdbk) .mdbk-social:not(.has-icon-color) .wp-social-link-instagram .wp-block-social-link-anchor svg{visibility:hidden}
:is(body,#mdbk) .mdbk-social:not(.has-icon-color) .wp-social-link-instagram .wp-block-social-link-anchor::after{content:"";position:absolute;left:50%;top:50%;width:18px;height:18px;margin:-9px 0 0 -9px;background:linear-gradient(45deg,#fec053 0%,#f2203e 35%,#b729a8 70%,#5342d6 100%);-webkit-mask:var(--mdbk-ig) center/18px 18px no-repeat;mask:var(--mdbk-ig) center/18px 18px no-repeat}
.mdbk-social{--mdbk-ig:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2c2.9 0 3.2 0 4.3.1 1 .1 1.6.2 2 .4.5.2.8.4 1.2.8.4.4.6.7.8 1.2.1.4.3 1 .4 2 .1 1.1.1 1.5.1 4.3s0 3.2-.1 4.3c-.1 1-.2 1.6-.4 2-.2.5-.4.8-.8 1.2-.4.4-.7.6-1.2.8-.4.1-1 .3-2 .4-1.1.1-1.5.1-4.3.1s-3.2 0-4.3-.1c-1-.1-1.6-.2-2-.4-.5-.2-.8-.4-1.2-.8-.4-.4-.6-.7-.8-1.2-.1-.4-.3-1-.4-2C3.2 15.2 3.2 14.9 3.2 12s0-3.2.1-4.3c.1-1 .2-1.6.4-2 .2-.5.4-.8.8-1.2.4-.4.7-.6 1.2-.8.4-.1 1-.3 2-.4 1.1-.1 1.4-.1 4.3-.1M12 1.3c-2.9 0-3.3 0-4.4.1-1.1.1-1.9.2-2.6.5-.7.3-1.3.6-1.9 1.2-.6.6-1 1.2-1.2 1.9-.3.7-.4 1.5-.5 2.6C1.3 8.7 1.3 9.1 1.3 12s0 3.3.1 4.4c.1 1.1.2 1.9.5 2.6.3.7.6 1.3 1.2 1.9.6.6 1.2 1 1.9 1.2.7.3 1.5.4 2.6.5 1.1.1 1.5.1 4.4.1s3.3 0 4.4-.1c1.1-.1 1.9-.2 2.6-.5.7-.3 1.3-.6 1.9-1.2.6-.6 1-1.2 1.2-1.9.3-.7.4-1.5.5-2.6.1-1.1.1-1.5.1-4.4s0-3.3-.1-4.4c-.1-1.1-.2-1.9-.5-2.6-.3-.7-.6-1.3-1.2-1.9-.6-.6-1.2-1-1.9-1.2-.7-.3-1.5-.4-2.6-.5-1.1-.1-1.5-.1-4.4-.1zm0 5.2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11zm0 9.1a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2zm5.7-10.6a1.3 1.3 0 1 0 0 2.6 1.3 1.3 0 0 0 0-2.6z'/%3E%3C/svg%3E")}
:is(body,#mdbk) .mdbk-social .wp-social-link:last-child{margin-right:12px}

/* ---------- Hamburger, drawer, back to top (hidden on desktop) ---------- */
.mdbk-burger,.mdbk-overlay,.mdbk-drawer,.mdbk-totop{display:none}

/* ---------- Tablet and phone (≤1024px) ---------- */
@media (max-width:1024px){
	.mdbk-header__bar--desktop{display:none}
	.mdbk-header__bar--compact{display:block;height:var(--mdbk-compact-h);background:var(--mdbk-h-bg-compact,#f4f4f4)}
	.mdbk-header-spacer{height:var(--mdbk-compact-h)}
	html.mdbk-js .mdbk-burger{display:flex;flex-direction:column;justify-content:space-between;position:absolute;z-index:1003;top:calc(var(--mdbk-ab) + (var(--mdbk-compact-h) - 52px) / 2);right:18px;width:52px;height:52px;min-height:0;padding:17px 11px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:pointer;color:var(--mdbk-burger,#666)}
	html.mdbk-js .mdbk-burger.is-sticky{position:fixed}
	.mdbk-burger__slice{display:block;width:100%;height:2px;background:var(--mdbk-burger,#666);border-radius:0;transition:transform .3s ease,opacity .3s ease}
	.mdbk-burger[aria-expanded="true"] .mdbk-burger__slice--top{transform:translateY(8px) rotate(45deg)}
	.mdbk-burger[aria-expanded="true"] .mdbk-burger__slice--mid{opacity:0}
	.mdbk-burger[aria-expanded="true"] .mdbk-burger__slice--bot{transform:translateY(-8px) rotate(-45deg)}
	html.mdbk-js .mdbk-overlay{display:block;position:fixed;inset:0;z-index:1001;background:rgba(0,0,0,.4);opacity:0;transition:opacity .3s ease-out}
	html.mdbk-js .mdbk-overlay.is-open{opacity:1}
	html.mdbk-js .mdbk-overlay[hidden]{display:none}
	html.mdbk-js .mdbk-drawer{display:block;position:fixed;top:var(--mdbk-ab);right:0;bottom:0;z-index:1002;width:50%;max-width:100%;overflow-y:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 3px 11px 0 rgba(0,0,0,.25);padding:80px 20px 15px;transform:translateX(105%);visibility:hidden;transition:transform .3s linear,visibility 0s linear .3s}
	html.mdbk-js .mdbk-drawer.is-open{transform:none;visibility:visible;transition:transform .3s linear,visibility 0s}
	body.mdbk-noscroll{overflow:hidden}
	/* Without JavaScript the ☰ menu cannot open, so keep the full header visible instead. */
	html:not(.mdbk-js) .mdbk-header__bar--desktop{display:block;padding:10px 15px}
	html:not(.mdbk-js) .mdbk-header__bar--compact,html:not(.mdbk-js) .mdbk-header-spacer{display:none}
	html:not(.mdbk-js) .mdbk-header.is-sticky{position:relative;top:auto}
	html:not(.mdbk-js) :is(body,#mdbk) .mdbk-header .wp-block-columns.mdbk-header-cols{flex-wrap:wrap !important}
	html:not(.mdbk-js) :is(body,#mdbk) .mdbk-header .mdbk-header-cols > .wp-block-column{flex-basis:100% !important}
}

/* Drawer menu */
:is(body,#mdbk) .mdbk-dnav__list,:is(body,#mdbk) .mdbk-dnav__sub{list-style:none;margin:0;padding:0}
:is(body,#mdbk) .mdbk-dnav__item,:is(body,#mdbk) .mdbk-dnav__subitem{list-style:none;margin:0;padding:0}
.mdbk-dnav__sub[hidden]{display:none}
.mdbk-dnav__row{display:flex;align-items:center}
:is(body,#mdbk) :is(.mdbk-dnav__link,.mdbk-dnav__sublink){display:flex;align-items:center;min-height:48px;padding:7px 0;font-family:var(--mdbk-font);font-size:16px;font-weight:400;line-height:normal;letter-spacing:.03em;color:var(--mdbk-drawer-text);text-decoration:none}
:is(body,#mdbk) .mdbk-dnav__sublink{min-height:34px;padding:5px 12px}
.mdbk-dnav__text{display:inline-block}
:is(body,#mdbk) :is(.mdbk-dnav__link,.mdbk-dnav__sublink):is(.is-current,:hover){color:var(--mdbk-drawer-active)}
:is(.mdbk-dnav__link,.mdbk-dnav__sublink).is-current .mdbk-dnav__text::after{content:"";display:block;border-top:2px solid var(--mdbk-drawer-active);margin-top:.2em}
:is(body,#mdbk) .mdbk-dnav__toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:0;margin:0 0 0 -6px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--mdbk-drawer-active);cursor:pointer}
.mdbk-dnav__chev{width:12px;height:8px;transition:transform .2s ease-out}
.mdbk-dnav__toggle[aria-expanded="true"] .mdbk-dnav__chev{transform:rotate(180deg)}

/* ---------- Phones (≤767px) ---------- */
@media (max-width:767px){
	html.mdbk-js .mdbk-burger{top:calc(var(--mdbk-ab) + (var(--mdbk-compact-h) - 40px) / 2);right:10px;width:40px;height:40px;padding:13px 9px}
	.mdbk-burger[aria-expanded="true"] .mdbk-burger__slice--top{transform:translateY(6px) rotate(45deg)}
	.mdbk-burger[aria-expanded="true"] .mdbk-burger__slice--bot{transform:translateY(-6px) rotate(-45deg)}
	html.mdbk-js .mdbk-drawer{width:80%}



	:is(body,#mdbk) .mdbk-field--half{width:100%}
	.mdbk-form__submit{margin:20px 16px 0}

	.mdbk-map.has-mobile-button .mdbk-map__frame{display:none}
	:is(body,#mdbk) .mdbk-map.has-mobile-button .mdbk-map__button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:45px;margin:10px 0;padding:10px 0;color:#fff;font-family:var(--mdbk-font);font-size:15px;font-weight:700;line-height:normal;text-decoration:none;transition:background-color .2s}
	:is(body,#mdbk) .mdbk-map.has-mobile-button .mdbk-map__button:is(:hover,:focus-visible){background-color:#000 !important}
	:is(body,#mdbk) .mdbk-site-footer .mdbk-menu__link{font-size:calc(var(--mdbk-menu-fs,18px) * .8889);min-height:33px}
	:is(body,#mdbk) .mdbk-section .wp-block-social-links.mdbk-social{gap:4px}
	:is(body,#mdbk) .mdbk-section .wp-block-social-links.mdbk-social:is(:not([style*="margin-top"]),[style*="margin-top:19px"]){margin-top:27px !important}
	:is(body,#mdbk) .mdbk-social .wp-social-link:last-child{margin-right:0}

	/* On phones the original spaces every text block evenly. These rules only
	   match blocks that still have their original desktop spacing: once a
	   block's margin is changed in the editor, that value is used on phones too. */
	:is(body,#mdbk) .mdbk-section .wp-block-buttons:is([style*="margin-top:0px"],[style*="margin-top:-7px"]):first-child{margin-top:10px !important}

	.mdbk-totop{display:flex;align-items:center;justify-content:center;position:fixed;right:10px;bottom:10px;z-index:900;width:30px;height:30px;background:rgba(0,0,0,.6);color:#fff;opacity:0;pointer-events:none;transition:opacity .4s}
	.mdbk-totop::before{content:"";position:absolute;inset:-7px}
	.mdbk-totop.is-visible{opacity:1;pointer-events:auto}
	.mdbk-totop svg{width:14px;height:9px}
}

/* ---------- Visibility options (block settings → Visibility) ---------- */
@media (min-width:1025px){.mdbk-hide-desktop:not(.editor-styles-wrapper *){display:none !important}}
@media (min-width:768px) and (max-width:1024px){.mdbk-hide-tablet:not(.editor-styles-wrapper *){display:none !important}}
@media (max-width:767px){.mdbk-hide-mobile:not(.editor-styles-wrapper *){display:none !important}}
@media (min-width:1025px){.editor-styles-wrapper .mdbk-hide-desktop{opacity:.45}}
@media (min-width:768px) and (max-width:1024px){.editor-styles-wrapper .mdbk-hide-tablet{opacity:.45}}
@media (max-width:767px){.editor-styles-wrapper .mdbk-hide-mobile{opacity:.45}}

/* ---------- Block editor only ---------- */
/* The editor caps every block at 840px for classic themes; this layout sets its own widths. */
:is(body,#mdbk) .editor-styles-wrapper :is(.wp-block.mdbk-section,.wp-block.mdbk-header,.wp-block.mdbk-form-wrap,.mdbk-section .wp-block:not(.wp-block-button):not(.mdbk-wrap),.mdbk-header .wp-block),
:is(body,#mdbk).editor-styles-wrapper :is(.wp-block.mdbk-section,.wp-block.mdbk-header,.wp-block.mdbk-form-wrap,.mdbk-section .wp-block:not(.wp-block-button):not(.mdbk-wrap),.mdbk-header .wp-block){max-width:none}
:is(body,#mdbk) .editor-styles-wrapper .mdbk-wrap,:is(body,#mdbk).editor-styles-wrapper .mdbk-wrap{max-width:960px}
@media (min-width:1200px){:is(body,#mdbk) .editor-styles-wrapper .mdbk-wrap,:is(body,#mdbk).editor-styles-wrapper .mdbk-wrap{max-width:1200px}}
:is(body,#mdbk) .editor-styles-wrapper .mdbk-header-phone,:is(body,#mdbk).editor-styles-wrapper .mdbk-header-phone{white-space:nowrap !important}
.editor-styles-wrapper .mdbk-header.mdbk-header--editor{position:relative;top:auto}
.editor-styles-wrapper .mdbk-header--editor .mdbk-header__bar--desktop{display:block !important}
:is(body,#mdbk) .editor-styles-wrapper .mdbk-menu.is-editing .mdbk-menu__item--has-sub.is-open > .mdbk-menu__sub,:is(body,#mdbk).editor-styles-wrapper .mdbk-menu.is-editing .mdbk-menu__item--has-sub.is-open > .mdbk-menu__sub{display:block;opacity:1;visibility:visible;transform:none}
:is(body,#mdbk) .editor-styles-wrapper .mdbk-menu.is-editing .mdbk-menu__item--has-sub:not(.is-open) > .mdbk-menu__sub,:is(body,#mdbk).editor-styles-wrapper .mdbk-menu.is-editing .mdbk-menu__item--has-sub:not(.is-open) > .mdbk-menu__sub{display:none}
.editor-styles-wrapper .mdbk-form-wrap.is-editing .mdbk-field__control{pointer-events:none}
.editor-styles-wrapper .mdbk-form__grid > .block-list-appender{position:relative;width:100%;padding:7.5px;margin:0}
:is(body,#mdbk) .editor-styles-wrapper .mdbk-form__submit .mdbk-form__button,:is(body,#mdbk).editor-styles-wrapper .mdbk-form__submit .mdbk-form__button{display:flex;align-items:center;justify-content:center;cursor:text}
.mdbk-field__hint{margin:2px 0 0;font-size:12px;color:#757575}
.editor-styles-wrapper .mdbk-section .wp-block-spacer.mdbk-line{outline:1px dashed rgba(0,0,0,.08)}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion:reduce){
	.mdbk-header,.mdbk-header *,.mdbk-menu *,.mdbk-burger,.mdbk-burger *,.mdbk-drawer,.mdbk-overlay,.mdbk-totop,.mdbk-section *{transition-duration:.01ms !important;animation-duration:.01ms !important;scroll-behavior:auto !important}
}

/* ---------- Generic section building blocks (compiled pages) ---------- */
:is(body,#mdbk) .wp-block-cover.mdbk-section{min-height:0;padding:0;display:block;color:inherit;overflow:hidden}
:is(body,#mdbk) .wp-block-cover.mdbk-section > .wp-block-cover__inner-container{position:relative;z-index:1;width:100%;color:inherit}
:is(body,#mdbk) .wp-block-cover.mdbk-section > .wp-block-cover__image-background{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:cover}
:is(body,#mdbk) .mdbk-section .mdbk-col,:is(body,#mdbk) .mdbk-section .mdbk-card,:is(body,#mdbk) .mdbk-section .mdbk-text{display:flow-root;min-width:0}
:is(body,#mdbk) .mdbk-section .mdbk-text > :is(h1,h2,h3,h4,h5,h6,p,ul,ol){overflow-wrap:break-word}
:is(body,#mdbk) .mdbk-section .mdbk-text > :is(ul,ol){padding-left:0}
:is(body,#mdbk) .mdbk-section .mdbk-text > :is(ul,ol) > li{margin:0;padding:0}
:is(body,#mdbk) .mdbk-section .mdbk-img{display:block;max-width:100%}
:is(body,#mdbk) .mdbk-section .mdbk-img img{border-radius:inherit}
:is(body,#mdbk) .mdbk-section .wp-block-buttons.mdbk-btns{gap:0;margin:0}
:is(body,#mdbk) .mdbk-section .wp-block-button.mdbk-btn{margin:0}
:is(body,#mdbk) .mdbk-section .mdbk-btn .wp-block-button__link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;text-align:center;text-decoration:none;box-shadow:none;transition:background-color .2s,border-color .2s,color .2s;cursor:pointer;word-break:normal}
:is(body,#mdbk) .mdbk-ta-center{text-align:center}
:is(body,#mdbk) .mdbk-ta-right{text-align:right}
:is(body,#mdbk) .mdbk-section .wp-block-columns.mdbk-cols > .wp-block-column{margin-left:0;margin-right:0;min-width:0}
@media (max-width:767px){
	:is(body,#mdbk) .wp-block-columns.mdbk-cols.mdbk-stack{display:flex;flex-direction:column}
	:is(body,#mdbk) .wp-block-columns.mdbk-cols.mdbk-stack > .wp-block-column{flex-basis:auto !important;width:100%}
}
/* Header: the original's phone text loses its margins once the header has shrunk. */
:is(body,#mdbk) .mdbk-header.can-shrink.is-scrolled .mdbk-header-phone{margin-top:0;margin-bottom:0}
:is(body,#mdbk) .mdbk-header .mdbk-header-cols > .wp-block-column{display:block}
:is(body,#mdbk) .mdbk-header .mdbk-drawer-extra{display:none}
:is(body,#mdbk) .mdbk-drawer .mdbk-drawer-extra{display:block;margin-top:30px}
