/* Draw mathematics */
#draw-mathematics-links {min-width:0;max-width:100%;color:inherit}
#draw-mathematics-links .draw-mathematics-entries, #draw-mathematics-links .sub-menu {margin:0;padding:0;list-style:none}
#draw-mathematics-links .draw-mathematics-entries {display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-end;gap:.3rem 1rem}
#draw-mathematics-links li {margin:0;max-width:100%;min-width:0}
#draw-mathematics-links li a {display:flex;align-items:center;min-height:44px;padding:.4rem .3rem;color:inherit;text-decoration:none;line-height:1.35;overflow-wrap:anywhere}
#draw-mathematics-links a:hover, #draw-mathematics-links a[aria-current="page"] {text-decoration:underline;text-underline-offset:.25em}
#draw-mathematics-links :focus-visible, .draw-mathematics-toggle:focus-visible {outline:2px solid currentColor;outline-offset:2px}
#draw-mathematics-links .sub-menu {padding-inline-start:1rem}

.draw-mathematics-toggle {display:none}
.draw-mathematics-navigation {min-width:0;max-width:100%}
.draw-mathematics-toggle::-webkit-details-marker {display:none}
@media(min-width:833px) {
body .multilotto-mast-inner {display:grid;grid-template-columns:minmax(8rem,min(29%,19rem)) minmax(0,1fr);align-items:center;gap:1rem}
body .multilotto-mast-inner > :first-child {min-width:0;max-width:100%}
body .multilotto-mast-inner > :first-child img {max-width:100%;object-fit:contain}
}

@media(max-width:832px) {

body .multilotto-mast-inner {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem .75rem;min-height:0;padding-block:.65rem}
body .multilotto-mast-inner > :first-child {grid-column:1;max-width:100%;width:100%;min-width:0}
body .multilotto-mast-inner > :first-child a,body .multilotto-mast-inner > :first-child img {max-width:100%;min-width:0}
body .multilotto-mast-inner > :first-child img {width:auto;height:auto;max-height:4rem;object-fit:contain;object-position:left center}

.draw-mathematics-navigation, .draw-mathematics-navigation > details {display:contents}
.draw-mathematics-toggle {grid-column:2;grid-row:1;justify-self:end;align-items:center;justify-content:center;gap:.45rem;min-height:44px;min-width:44px;
padding:.5rem .65rem;margin:0;color:inherit;background:transparent;border:1px solid currentColor;border-radius:.25rem;font:600 .94rem/1.25 system-ui,sans-serif;cursor:pointer;list-style:none}
.draw-mathematics-toggle svg {flex:none;fill:none;stroke:currentColor;stroke-width:2}
.draw-mathematics-toggle svg > *, .draw-mathematics-toggle i {transition:transform .18s ease,opacity .18s ease;transform-origin:center;transform-box:fill-box}
.draw-mathematics-toggle span[aria-hidden] {display:grid;gap:4px;width:18px}
.draw-mathematics-toggle i {display:block;height:2px;background:currentColor}
:is([open] > summary,button[aria-expanded=true]) :is(svg,span[aria-hidden]) > :first-child {transform:translateY(6px) rotate(45deg)}
:is([open] > summary,button[aria-expanded=true]) :is(svg,span[aria-hidden]) > :nth-child(2) {opacity:0}
:is([open] > summary,button[aria-expanded=true]) :is(svg,span[aria-hidden]) > :last-child {transform:translateY(-6px) rotate(-45deg)}
#draw-mathematics-links {grid-column:1/-1;width:100%;margin:0;padding:.4rem 0}
#draw-mathematics-links .draw-mathematics-entries {display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#draw-mathematics-links li a {width:100%;min-height:48px;border-bottom:1px solid color-mix(in srgb,currentColor 30%,transparent)}
.draw-mathematics-toggle {display:inline-flex}
#draw-mathematics-links[hidden] {display:none}
}
@media(prefers-reduced-motion:reduce) {.draw-mathematics-toggle svg > *, .draw-mathematics-toggle i {transition:none}}

/* Navigation colours drawn from the multilotto identity. */
#draw-mathematics-links li > a[aria-current="page"] {text-decoration:underline;text-underline-offset:.24em;text-decoration-color:#ffab50;text-decoration-thickness:3px}
#draw-mathematics-links li > a:hover, #draw-mathematics-links li > a:focus-visible {background:#61093f;color:#ffffff;text-decoration-color:#ffab50}
@media(max-width:832px) {
    .draw-mathematics-toggle, .draw-mathematics-toggle:hover, .draw-mathematics-toggle:focus {background:#61093f;color:#ffffff;border:1px solid #ffab50}
    .draw-mathematics-toggle svg, .draw-mathematics-toggle span[aria-hidden] {color:#ffab50}
    #draw-mathematics-links {border-top:2px solid #ffab50}
    #draw-mathematics-links li > a[aria-current="page"] {background:#61093f;color:#ffffff;box-shadow:inset 3px 0 #ffab50;padding-inline-start:.85rem}
}
@media(max-width:832px) {
    body .multilotto-mast-inner {position:relative;grid-template-columns:minmax(0,1fr) max-content}
    body .multilotto-mast-inner > :first-child {grid-row:1;align-self:center;max-width:calc(100% - .25rem)}
    .draw-mathematics-navigation[open]::details-content, .draw-mathematics-navigation details[open]::details-content {display:contents}
    #draw-mathematics-links {grid-row:2;grid-column:1/-1;min-width:0;width:100%}
}

/* Navigation and editorial controls */
body .draw-mathematics-toggle, body .draw-mathematics-toggle:is(:hover,:focus) {
    border-radius:22px; padding-inline:.8rem;
    border-color:color-mix(in srgb, #ffab50 52%, #61093f);
}
#draw-mathematics-links a, #draw-mathematics-links li > a {border-radius:13px}
#draw-mathematics-links :is(a,button):focus-visible, body .draw-mathematics-toggle:focus-visible {
    outline:2px solid currentColor;outline-offset:3px;
}
main :is(button,input[type="submit"],input[type="button"],.wp-block-button__link) {border-radius:22px}
main :is(input[type="email"],input[type="text"],input[type="search"],input[type="number"],select,textarea) {border-radius:10px}
main :is(details,details > summary,[class$="-table-wrap"],[class$="-guides"] a) {border-radius:13px}
@media(max-width:832px) {
    #draw-mathematics-links {padding:.45rem;background:color-mix(in srgb, currentColor 5%, transparent);border:1px solid color-mix(in srgb,currentColor 14%,transparent);border-radius:18px;margin-top:.3rem}
    #draw-mathematics-links > :is(ul,ol) {row-gap:5px;width:100%}
    #draw-mathematics-links li > a, #draw-mathematics-links li > a[aria-current="page"] {
        padding:.65rem .85rem;min-height:48px;border:0;box-shadow:none;
    }
    #draw-mathematics-links li > a[aria-current="page"] {
        background:#61093f;color:#ffffff;text-decoration:underline;
        text-decoration-color:#ffab50;text-decoration-thickness:2px;text-underline-offset:.25em;
    }
}
