/* Site-wide custom styles layered on top of Bulma (bulma2.min.css).
   Extracted from an inline <style> block in baseof.html.

   Note: the inline original was missing the closing brace of the media
   query below, which unintentionally scoped every rule in this file to
   viewports >= 769px. That is fixed here: only the wide-figure rules are
   desktop-only; everything else applies at all widths. */

@media only screen and (min-width: 769px) {
    figure.is-wide-figure {
        margin-left: -20%;
        margin-right: -20%;
    }

    img.is-wide-figure {
        margin-left: -20%;
        margin-right: -20%;
    }
}

.card {
    height: 100%;
}

.footnote-ref {
    font-weight: bold;
}

.rounded-word-box {
    padding: 1px 5px; /* Space around the word */
    border-radius: 5px; /* Rounded corners */
}

/* Accessibility: darken green success buttons for 4.5:1 contrast */
.button.is-success {
    background-color: #257953;
}
.button.is-success:hover {
    background-color: #1e6e49;
}
.button.is-success:active, .button.is-success.is-active {
    background-color: #1a5f3f;
}

/* Accessibility: darken info buttons and message headers */
.button.is-info {
    background-color: #296fa8;
}
.button.is-info:hover {
    background-color: #235f91;
}
.message.is-info .message-header {
    background-color: #296fa8;
}

/* Accessibility: darken grey text */
.has-text-grey {
    color: #636363 !important;
}

/* Accessibility: underline links in body content */
.content a:not(.button):not(.tag),
.message-body a,
.footer a:not(.button) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Accessibility: focus indicators for keyboard nav */
a:focus-visible,
.button:focus-visible,
.input:focus-visible,
.textarea:focus-visible,
.select select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #485fc7;
    outline-offset: 2px;
}

/* Accessibility: skip-nav link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100;
    padding: 0.5em 1em;
    background: #485fc7;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Accessibility: visually hidden but available to screen readers */
.is-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
