/* Site chrome: header, Follow band, footer. Frozen canvas "Mythosis site mockups" (#179, #188, #192).
   Link rules are scoped under .mt-header, .mt-footer and .mt-follow so they outrank the Elementor kit's
   ".elementor-kit-12 a" until Elementor is removed (step 5). */

/* Template parts sit flush: no block gap between header, main and the closing bands. */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + * { margin-block-start: 0; }

html { scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Header ---------- */
.mt-header { position: relative; z-index: 30; background: var(--wp--preset--color--cream); border-bottom: 1px solid var(--wp--preset--color--mist); }
.mt-header__in { max-width: 1240px; margin: 0 auto; padding: 18px clamp(20px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; box-sizing: border-box; }

.mt-header .mt-lockup { display: flex; align-items: center; gap: 14px; color: var(--wp--preset--color--teal); text-decoration: none; }
.mt-header .mt-lockup:hover { color: var(--wp--preset--color--teal); }
.mt-lockup__mark { display: flex; align-items: center; gap: 9px; font: 500 20px/1.2 var(--wp--preset--font-family--label); letter-spacing: .3px; }
.mt-lockup__logo { display: block; height: 30px; width: auto; max-width: none; }
.mt-lockup__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--slate); flex: none; }
.mt-lockup__bar { width: 1px; height: 18px; background: var(--wp--preset--color--mist); }
.mt-lockup__desc { font: 400 12px/1.4 var(--wp--preset--font-family--label); letter-spacing: 1.8px; text-transform: uppercase; color: var(--wp--preset--color--slate); }

.mt-nav { display: flex; align-items: center; gap: 28px; font: 400 14px/1.4 var(--wp--preset--font-family--label); }
.mt-header .mt-nav__link { color: var(--wp--preset--color--body); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.mt-header .mt-nav__link:hover { color: var(--wp--preset--color--teal); border-bottom-color: var(--wp--preset--color--mist); }
.mt-header .mt-nav__link[aria-current="page"] { color: var(--wp--preset--color--teal); font-weight: 500; border-bottom-color: var(--wp--preset--color--teal); }

.mt-header .mt-follow-pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 22px; background: var(--wp--preset--color--teal); color: var(--wp--preset--color--cream); font: 500 14px/1 var(--wp--preset--font-family--label); text-decoration: none; box-sizing: border-box; }
.mt-header .mt-follow-pill:hover { background: var(--wp--preset--color--slate); color: var(--wp--preset--color--cream); }

/* Phone menu: a disclosure, so it works without JavaScript. */
.mt-menu { display: none; }
.mt-menu__button { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--wp--preset--color--teal); border-radius: 22px; color: var(--wp--preset--color--teal); font: 400 14px/1 var(--wp--preset--font-family--label); box-sizing: border-box; }
.mt-menu__button::-webkit-details-marker { display: none; }
.mt-menu[open] .mt-menu__button { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--cream); }
.mt-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--wp--preset--color--cream); border-bottom: 1px solid var(--wp--preset--color--mist); box-shadow: 0 24px 40px -32px rgba(0, 30, 38, .45); padding: 12px clamp(20px, 5vw, 56px) 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.mt-header .mt-menu__link { display: block; padding: 8px 0; color: var(--wp--preset--color--teal); text-decoration: none; font: 400 26px/1.3 var(--wp--preset--font-family--display); }
.mt-header .mt-menu__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mt-header .mt-menu__panel .mt-follow-pill { margin-top: 16px; min-height: 48px; padding: 0 26px; font-size: 15px; }

@media (max-width: 820px) {
	.mt-nav { display: none; }
	.mt-menu { display: block; }
}
@media (max-width: 480px) {
	.mt-header .mt-lockup { flex-direction: column; align-items: flex-start; gap: 2px; }
	.mt-lockup__bar { display: none; }
	.mt-lockup__logo { height: 26px; }
}

/* ---------- Follow band ---------- */
.mt-follow { background: var(--wp--preset--color--sand); scroll-margin-top: 0; }
.mt-follow__in { max-width: 1240px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 56px); box-sizing: border-box; }
.mt-follow__box { border: 1.5px solid var(--wp--preset--color--teal); border-radius: 6px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.mt-follow :where(h2, p, form) { margin: 0; }
.mt-follow .mt-follow__title { font: 400 clamp(28px, 3.4vw, 44px)/1.15 var(--wp--preset--font-family--display); color: var(--wp--preset--color--teal); }
.mt-follow__form { width: 100%; max-width: 560px; }
.mt-follow__row { display: flex; flex-wrap: wrap; gap: 12px; }
.mt-follow__input { flex: 1 1 260px; min-width: 0; min-height: 52px; box-sizing: border-box; padding: 0 20px; border-radius: 28px; border: 1px solid var(--wp--preset--color--slate); background: var(--wp--preset--color--surface); color: var(--wp--preset--color--teal); font: 400 17px/1.3 var(--wp--preset--font-family--body); }
.mt-follow__input::placeholder { color: var(--wp--preset--color--slate); opacity: 1; }
.mt-follow__input:focus { outline: 2px solid var(--wp--preset--color--teal); outline-offset: 2px; }
.mt-follow__button { min-height: 52px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--wp--preset--color--teal); color: var(--wp--preset--color--cream); font: 500 15px/1 var(--wp--preset--font-family--label); cursor: pointer; }
.mt-follow__button:hover { background: var(--wp--preset--color--slate); }
.mt-follow__button:disabled { opacity: .6; cursor: default; }
.mt-follow__status { font: 500 14px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--slate); }
.mt-follow__status:empty { display: none; }
.mt-follow__status:not(:empty) { margin-top: 10px !important; }
.mt-follow__status.is-ok { color: var(--wp--preset--color--teal); }
.mt-follow__status.is-error { color: #9C2A1F; }
.mt-follow__form.is-done .mt-follow__row { display: none; }
.mt-follow__form.is-done .mt-follow__status { margin-top: 0 !important; }
.mt-follow__note { font: 400 13px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--slate); }
.mt-follow__rights { width: 100%; border-top: 1px solid var(--wp--preset--color--mist); padding-top: 16px; font: 400 14px/1.5 var(--wp--preset--font-family--label); color: var(--wp--preset--color--body); }
.mt-follow .mt-follow__rights a { color: var(--wp--preset--color--teal); font-weight: 500; }

/* ---------- Footer ---------- */
.mt-footer { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--cream); font: 400 14px/1.5 var(--wp--preset--font-family--label); }
.mt-footer__in { max-width: 1240px; margin: 0 auto; padding: 56px clamp(20px, 5vw, 56px) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 36px; box-sizing: border-box; }
.mt-footer__brand, .mt-footer__col { display: flex; flex-direction: column; gap: 10px; color: rgba(247, 244, 240, .82); }
.mt-footer__brand { gap: 12px; }
.mt-footer p { margin: 0; }
.mt-footer .mt-footer__mark { display: flex; align-items: center; gap: 9px; font: 500 19px/1.2 var(--wp--preset--font-family--label); color: var(--wp--preset--color--cream); text-decoration: none; }
.mt-footer .mt-footer__mark:hover { color: var(--wp--preset--color--cream); }
.mt-footer__dot { width: 8px; height: 8px; border-radius: 50%; background: #02C583; flex: none; } /* Logo green, 5.3:1 on teal. Green is the mark only: the logo, the About clip's last moment and this dot (#220). Never text, links, buttons or data on cream (2.1:1). Deliberately not a theme.json preset, so the editor never offers it. */
.mt-footer__tagline { font: 400 16px/1.5 var(--wp--preset--font-family--body); color: rgba(247, 244, 240, .82); }
.mt-footer .mt-footer__link { color: rgba(247, 244, 240, .82); text-decoration: none; }
.mt-footer .mt-footer__link:hover { color: var(--wp--preset--color--cream); text-decoration: underline; text-underline-offset: 3px; }
.mt-footer .mt-footer__email { color: var(--wp--preset--color--cream); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.mt-footer .mt-footer__email:hover { color: var(--wp--preset--color--cream); }
.mt-footer__base { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) 32px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: rgba(247, 244, 240, .7); box-sizing: border-box; }
.mt-footer .mt-footer__base .mt-footer__link { color: rgba(247, 244, 240, .7); }
.mt-footer :where(a):focus-visible { outline-color: var(--wp--preset--color--cream); }

/* Visually hidden labels (block themes don't always ship this rule). */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* Footer legal links: Privacy and Cookie settings (CookieYes option b, 20 Oct). The CookieYes floating button is off; this opens its preferences. */
.mt-footer__legal{display:inline-flex;flex-wrap:wrap;gap:6px 20px;align-items:center}
/* #233: copyright and legal links share one line; the legal links' tap padding no longer pushes them below the copyright. */
.mt-footer__base{align-items:center}
.mt-footer__cookies{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left}
.mt-footer__cookies:hover{text-decoration:underline}
.mt-footer__cookies:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.mt-footer__legal>*{padding:12px 0}
/* CookieYes banner on phones: buttons in one row so it covers less of the page (20 Oct). */
@media (max-width:576px){.cky-consent-container .cky-notice-btn-wrapper{flex-direction:row!important;gap:8px}.cky-consent-container .cky-notice-btn-wrapper .cky-btn{flex:1 1 0;margin:0!important;padding:10px 4px;font-size:14px}.cky-consent-container .cky-notice-des,.cky-consent-container .cky-notice-des p{font-size:14px;line-height:1.5}}

/* Teal buttons (#230, #231): cream labels as before; on hover or keyboard focus the button turns logo green with a teal label (5.3:1). Green labels on teal were tried and rejected. */
body .mt-header .mt-follow-pill:hover,
body .mt-follow .mt-follow__button:hover,
body .mt-about .mt-about__button:hover,
body .mt-home .mt-home__button:hover,
body .mt-std .mt-std__button:hover,
body .mt-story .mt-story__button:hover,
body .mt-404 a.mt-404__button:hover,
body .mt-search a.mt-search__button:hover,
body .mt-header .mt-follow-pill:focus-visible,
body .mt-follow .mt-follow__button:focus-visible,
body .mt-about .mt-about__button:focus-visible,
body .mt-home .mt-home__button:focus-visible,
body .mt-std .mt-std__button:focus-visible,
body .mt-story .mt-story__button:focus-visible,
body .mt-404 a.mt-404__button:focus-visible,
body .mt-search a.mt-search__button:focus-visible { background: #02C583; color: #003C4A; }

/* Cookie banner on phones (3 Dec): gap above the buttons, tighter box so it covers less of the screen; 'Always active' in petrol, not green (#220). */
@media (max-width:576px){.cky-consent-container .cky-consent-bar{padding:16px 0 18px!important}.cky-consent-container .cky-title,.cky-consent-container .cky-notice-des,.cky-consent-container .cky-notice-btn-wrapper{padding-left:20px!important;padding-right:20px!important}.cky-consent-container .cky-title{font-size:18px!important;margin-bottom:8px!important}.cky-consent-container .cky-notice-des,.cky-consent-container .cky-notice-des p{font-size:14px!important;line-height:1.45!important}.cky-consent-container .cky-notice-btn-wrapper{margin-top:14px!important}.cky-consent-container .cky-notice-btn-wrapper .cky-btn{min-height:44px;padding:8px 4px}}
.cky-always-active{color:#003d4c!important}
