/* Mwade3 3.6.0: viewport sections grow naturally when content needs more room. */
#mwx-site { --mwx-header-space: 136px; }
#mwx-site .mwx-hero {
    min-height: calc(100vh - var(--mwx-header-space));
    min-height: max(0px, calc(100svh - var(--mwx-header-space)));
    height: auto;
    align-items: center;
    padding-block: clamp(24px, 3.5vh, 40px);
    gap: clamp(24px, 3vw, 44px);
}
#mwx-site .mwx-hero-copy { min-width: 0; padding-top: 0; }
#mwx-site .mwx-hero h1 { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.65; letter-spacing: -1.2px; margin-block: 16px; }
#mwx-site .mwx-launchpad { padding: clamp(20px, 2.1vw, 28px); }
#mwx-site .mwx-nav { gap: 8px; }
#mwx-site .mwx-nav > a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 10px 12px; border-radius: 9px;
    transition: background-color 140ms ease, color 140ms ease;
}
#mwx-site .mwx-nav > a:hover, #mwx-site .mwx-nav > a:focus-visible, #mwx-site .mwx-nav > a[aria-current="page"] { background: #eaf0e7; color: var(--green); }
#mwx-site .mwx-nav > a[aria-current="page"]::after { right: 12px; bottom: 4px; }
#mwx-site .mwx-header-actions .mwx-icon-button { min-width: 44px; min-height: 44px; }
#mwx-site .mwx-menu-dialog { display: none; }
#mwx-site .mwx-menu-dialog[open] {
    display: block; position: fixed; inset: var(--mwx-dialog-top, 130px) 0 auto;
    width: min(520px, calc(100% - 24px)); margin: 0 auto;
    max-width: none; max-height: calc(100vh - var(--mwx-dialog-top, 130px) - 12px);
    max-height: calc(100dvh - var(--mwx-dialog-top, 130px) - 12px);
    padding: 18px; border: 1px solid #d9e1d3; border-radius: 20px;
    background: var(--paper); color: var(--ink); box-shadow: 0 24px 64px #102d3633;
    overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
}
#mwx-site .mwx-menu-dialog::backdrop { background: #102d365c; }
#mwx-site .mwx-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
#mwx-site .mwx-menu-heading h2 { font-size: 18px; }
#mwx-site .mwx-menu-heading button { font-size: 28px; line-height: 1; min-width: 44px; min-height: 44px; }
#mwx-site .mwx-menu-dialog .mwx-nav.mwx-nav-open {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
    width: 100%; padding: 0; margin: 0;
}
#mwx-site .mwx-menu-dialog .mwx-nav > a {
    width: 100%; min-height: 52px; padding: 12px 16px; font-size: 15px;
    justify-content: flex-start; border: 1px solid var(--line); background: var(--white);
}
#mwx-site .mwx-menu-dialog .mwx-nav > a:hover, #mwx-site .mwx-menu-dialog .mwx-nav > a[aria-current="page"] { background: #eaf0e7; border-color: #a9bfad; }
#mwx-site .mwx-menu-dialog .mwx-nav > a[aria-current="page"]::after { display: none; }
/* A restrained site footer: brand, useful links and legal line. */
#mwx-site .mwx-footer { width: 100%; margin-top: clamp(52px, 7vw, 88px); padding: 32px 0 14px; background: #103f37; color: #e8eee8; }
#mwx-site .mwx-footer-shell { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 2.2fr); gap: 0 clamp(34px, 5vw, 70px); width: 100%; }
#mwx-site .mwx-footer-intro { display: flex; align-items: flex-start; flex-direction: column; gap: 0; padding-inline-end: clamp(28px, 4vw, 54px); border-inline-end: 1px solid #ffffff1c; }
#mwx-site .mwx-footer .mwx-brand, #mwx-site .mwx-footer .mwx-brand strong { color: #f8f4e8; }
#mwx-site .mwx-footer .mwx-brand small { color: #9fb3aa; }
#mwx-site .mwx-footer .mwx-brand-mark { border-color: #c9a75f; color: #c9a75f; background: transparent; }
#mwx-site .mwx-footer-brand p { margin-top: 10px; color: #a9bcb3; font-size: 11px; line-height: 1.8; }
#mwx-site .mwx-footer-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
#mwx-site .mwx-footer-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 15px; border: 1px solid #ffffff2b; border-radius: 9px; color: #eef2ed; font-size: 11px; font-weight: 700; }
#mwx-site .mwx-footer-actions a:first-child { background: #efe6cf; border-color: #efe6cf; color: #16463d; }
#mwx-site .mwx-footer-actions a:hover, #mwx-site .mwx-footer-actions a:focus-visible { border-color: #d3b66f; }
#mwx-site .mwx-footer-actions .mwx-icon { width: 16px; height: 16px; }
#mwx-site .mwx-footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 6vw, 78px); padding: 0; }
#mwx-site .mwx-footer-links > * { min-width: 0; }
#mwx-site .mwx-footer-link-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 34px; padding: 0; border: 0; background: transparent; color: #f5f1e7; text-align: start; font-size: 12px; font-weight: 700; cursor: default; }
#mwx-site .mwx-footer-link-toggle .mwx-icon { display: none; width: 17px; height: 17px; }
#mwx-site .mwx-footer-link-panel { display: grid; align-content: start; margin-top: 5px; }
#mwx-site .mwx-footer nav .mwx-footer-link-panel a, #mwx-site .mwx-footer nav .mwx-footer-privacy { display: flex; align-items: center; min-height: 26px; width: auto; margin: 0; padding: 2px 0; border: 0; background: transparent; color: #a9bcb3; font-size: 10px; line-height: 1.6; text-align: start; overflow-wrap: anywhere; }
#mwx-site .mwx-footer-link-panel a:hover, #mwx-site .mwx-footer .mwx-footer-privacy:hover { color: #f4e7c8; text-decoration: none; }
#mwx-site .mwx-footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; padding-top: 14px; border-top: 1px solid #ffffff1c; color: #8fa69b; font-size: 9px; }
#mwx-site .mwx-footer-bottom a { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; color: #a9bdb3; }
#mwx-site .mwx-footer-bottom .mwx-icon { width: 15px; height: 15px; }
@media (min-width: 1001px) {
    #mwx-site .mwx-header-inner { flex-wrap: nowrap; gap: 18px; padding-block: 14px; }
    #mwx-site .mwx-header-inner > .mwx-nav { order: 0; width: auto; }
    #mwx-site .mwx-menu-button { display: none; }
}
@media (max-width: 1000px) {
    #mwx-site { --mwx-header-space: 124px; }
    #mwx-site .mwx-header-inner { flex-wrap: wrap; min-height: 88px; padding-block: 14px; gap: 12px; }
    #mwx-site .mwx-header-actions { margin-inline-start: auto; gap: 8px; }
    #mwx-site .mwx-header-inner > .mwx-nav { order: 3; width: 100%; flex-wrap: wrap; justify-content: center; }
    #mwx-site[data-enhanced] .mwx-header-inner > .mwx-nav { display: none; }
    #mwx-site[data-enhanced] .mwx-menu-button { display: inline-grid; }
    #mwx-site[data-menu-fallback] .mwx-header-inner > .mwx-nav { display: flex; }
    #mwx-site[data-menu-fallback] .mwx-menu-button { display: none; }
    #mwx-site .mwx-hero { grid-template-columns: minmax(0, 1fr); padding-block: 0 28px; gap: 28px; }
    #mwx-site .mwx-hero-copy {
        display: flex; flex-direction: column; justify-content: center; align-items: stretch;
        min-height: calc(100vh - var(--mwx-header-space));
        min-height: max(0px, calc(100svh - var(--mwx-header-space)));
        padding-block: clamp(24px, 4vh, 40px);
    }
    #mwx-site .mwx-hero h1 { font-size: clamp(32px, 5vw, 48px); }
    #mwx-site .mwx-launchpad { width: 100%; max-width: 680px; margin-inline: auto; }
    #mwx-site .mwx-footer-shell { grid-template-columns: minmax(220px, .75fr) minmax(0, 2.25fr); gap: 0 32px; }
}
@media (max-width: 600px) {
    #mwx-site .mwx-header .mwx-brand { gap: 8px; }
    #mwx-site .mwx-header .mwx-brand strong { font-size: 27px; }
    #mwx-site .mwx-header .mwx-brand small { font-size: 10px; }
    #mwx-site .mwx-header-actions { gap: 5px; }
    #mwx-site .mwx-header-actions .mwx-library-link { padding-inline: 4px; }
    #mwx-site .mwx-hero h1 { font-size: clamp(30px, 8.5vw, 40px); }
    #mwx-site .mwx-hero p { font-size: 13px; }
    #mwx-site .mwx-hero-shortcuts { gap: 6px; }
    #mwx-site .mwx-hero-shortcuts a { min-height: 40px; }
    #mwx-site .mwx-footer { margin-top: 48px; padding-top: 28px; }
    #mwx-site .mwx-footer-shell { display: block; }
    #mwx-site .mwx-footer-intro { align-items: flex-start; flex-direction: column; gap: 18px; padding: 0 0 24px; border-inline-end: 0; border-bottom: 1px solid #ffffff1c; }
    #mwx-site .mwx-footer-actions { width: 100%; margin-top: 0; }
    #mwx-site .mwx-footer-actions a { flex: 1 1 0; }
    #mwx-site .mwx-footer-links { display: block; padding-block: 24px; }
    #mwx-site .mwx-footer-link-group { border-top: 1px solid #a8beb126; }
    #mwx-site .mwx-footer-link-group:last-child { border-bottom: 1px solid #a8beb126; }
    #mwx-site .mwx-footer-link-toggle { min-height: 52px; cursor: pointer; }
    #mwx-site .mwx-footer-link-toggle .mwx-icon { display: block; }
    #mwx-site .mwx-footer-link-toggle[aria-expanded="true"] .mwx-icon { transform: rotate(180deg); }
    #mwx-site[data-enhanced] .mwx-footer-link-toggle[aria-expanded="false"] + .mwx-footer-link-panel { display: none; }
    #mwx-site .mwx-footer-link-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding-bottom: 12px; }
    #mwx-site .mwx-footer nav .mwx-footer-link-panel a, #mwx-site .mwx-footer nav .mwx-footer-privacy { min-height: 40px; font-size: 11px; }
    #mwx-site .mwx-footer-bottom { font-size: 10px; }
}
@media (max-width: 430px) {
    #mwx-site .mwx-footer-actions { align-items: stretch; flex-direction: column; }
    #mwx-site .mwx-footer-bottom > span { width: 100%; }
}
@media (max-height: 650px) and (min-width: 1001px) {
    #mwx-site .mwx-hero { padding-block: 24px; }
    #mwx-site .mwx-hero h1 { font-size: clamp(34px, 3vw, 44px); }
    #mwx-site .mwx-launchpad { padding: 20px; }
    #mwx-site .mwx-footer { padding-top: 26px; }
}
@media (max-height: 850px) and (min-width: 1001px) {
    #mwx-site .mwx-hero { padding-block: 20px; }
    #mwx-site .mwx-launchpad { padding: 20px; }
    #mwx-site .mwx-launch-heading h2 { font-size: 26px; margin-block: 6px; }
    #mwx-site .mwx-launch-heading p { margin-bottom: 12px; font-size: 13px; }
    #mwx-site .mwx-launch-tabs { margin-bottom: 12px; }
    #mwx-site .mwx-launch-tabs a { padding-block: 7px; }
    #mwx-site .mwx-launch-panel h3 { margin-bottom: 8px; }
    #mwx-site .mwx-interest-chips { gap: 6px; margin-bottom: 10px; }
    #mwx-site .mwx-interest-chips a { min-height: 28px; padding-block: 3px; }
    #mwx-site .mwx-interest-results > div > a { padding-block: 6px; }
    #mwx-site .mwx-interest-shuffle { margin-top: 6px; min-height: 32px; }
}
@media (max-width: 360px) {
    #mwx-site .mwx-header .mwx-brand strong { font-size: 24px; }
    body.mwx-body #mwx-site .mwx-header .mwx-brand small { font-size: 9px; }
    #mwx-site .mwx-header .mwx-brand-mark { width: 34px; height: 36px; }
    #mwx-site .mwx-header-inner { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    #mwx-site .mwx-nav > a { transition: none; }
    #mwx-site .mwx-menu-dialog, #mwx-site .mwx-menu-dialog::backdrop { animation: none; transition: none; }
    #mwx-site .mwx-footer-link-toggle .mwx-icon { transition: none; }
}
@media print {
    #mwx-site .mwx-footer, #mwx-site .mwx-menu-dialog { display: none; }
    #mwx-site .mwx-hero, #mwx-site .mwx-hero-copy { min-height: 0; }
}
