@import url('https://cdn.jsdelivr.net/npm/animate.css@4.1.1/animate.min.css');

@font-face {
    font-family: Meta-W05;
    font-style: normal;
    font-weight: 700;
    src: url(./fonts/b9a19748-4e27-4603-9be7-aa3d2afdeddf-woff2-data.woff2) format("woff2");
}

@font-face {
    font-family: Meta-W05;
    font-style: normal;
    font-weight: 300;
    src: url(./fonts/3115f28d-46db-40b3-ba4d-1999bb176e18-woff2-data.woff2) format("woff2"),url(/resource/crblob/38886/dfa360e09358ed730ca96184308ae306/f01bb8fa-aa13-45d5-9b96-b33c4a2ecb4b-woff-data.woff) format("woff"),url(/resource/crblob/38888/e00071fe363f96ecfc88402e53c9cc76/090a1630-7007-4e83-ae11-06f406694586-ttf-data.ttf) format("truetype")
}

@view-transition {
    navigation: auto;
}


*, :after, :before {
    box-sizing: border-box;
}

html {
    background-color: #fff;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 20px;
    font-weight: 300;
    font-family: Meta-W05,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

header {
    position: sticky;
    position: -webkit-sticky;
    background-color: #fff;
    padding: 15px 0;
    margin-bottom: 1em;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 -5px 10px 0 rgba(0,0,0,.5);
    z-index: 1031;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #ffe6bb;
    background: linear-gradient(180deg, #ffe6bb 0%, #f4c871 100%);
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(40% - 85px);
    height: 5px;
    background-color: #ffd48a;
    background: linear-gradient(180deg, #ffd48a 0%, #e7a92b 100%);
}

h1 {
    font-size: 2rem;
}

h2 {
    margin-top: 0;
    margin-bottom: .1em;
}

h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: .1em;
}

img {
    max-width: 100%;
    height: auto;
}

strong {
    font-weight: bold;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 20px 0;
}

main {
    flex: 1;
    background-color: #fff;
    padding: 20px 20px 45px;
}

input[type="checkbox"] {
    cursor: pointer;
}

dialog {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    max-width: 80%;
    width: 500px;
}
dialog::backdrop {
    background-color: rgba(255, 255, 255, 0.8);
}

button,
.button {
    font-size: 16px;
    font-weight: 700;
    padding: 15px 19px 12px;
    color: #337299;
    background-color: rgba(85, 85, 85, 0.18);
    border-radius: 5px;
    border-bottom: 3px solid #555;
    border-top: 0px solid #fff;
    border-right: none;
    border-left: none;
    display: inline-block;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

button:disabled {
    opacity: .65;
}

button.primary,
.button.primary {
    color: #fff !important;
    background-color: #004994;
    border-bottom: 3px solid #257bd1;
}

bgw-event {
    display: block;
    position: relative;
    margin-bottom: 10px;
    padding: 20px;
    border: 2px solid #ccc;
    border-radius: .25rem;
    background-color: #fafafa;
}

bgw-event .meta {
    color: #888;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff3dc;
    padding: 0 2rem;
}

.items-list li {
    display: flex;
    gap: 1rem;
    position: relative;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid #ccc;

    &.linked {
        background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 8 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m7.088 6.468-5.34 5.34c-.128.128-.284.192-.467.192s-.34-.064-.468-.193l-.606-.605a.688.688 0 0 1-.206-.468.592.592 0 0 1 .179-.468L4.446 6 .18 1.734A.592.592 0 0 1 0 1.266.688.688 0 0 1 .208.798L.813.193C.94.064 1.097 0 1.28 0s.34.064.468.193l5.34 5.34c.146.128.22.284.22.467s-.074.34-.22.468z' fill='%23888' fill-rule='evenodd'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.5em center;
        background-size: .8em;
        padding-right: 1.5em;
    }

    h2 {
        margin: 0;
    }

    p {
        margin: 0;
    }
}
.items-list li:last-child {
    border-bottom: none;
}

.cover {
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0
}

.text-primary {
    color: #004994;
}

.text-muted {
    color: rgba(0, 0, 0, 0.6);
}


.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.flex[gap] {
    gap: 1em;
}

.flex[gap="small"] {
    gap: .5em;
}

.flex-1 {
    flex: 1;
}

.flex-align-center {
    align-items: center;
}

.flex-items-center {
    align-items: center;
}

form > div {
    margin-bottom: 10px;
}

form label {
    display: inline-block;
    margin-bottom: 5px;
    font-size: .8em;
    letter-spacing: .1em;
    font-weight: bold;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 4px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: #3c3c3c;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #888;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control-lg {
    height: calc(1.5em + 1rem + 4px);
    padding: .5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: .3rem;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="1.5em" height="1.5em"><polyline points="6 9 12 15 18 9"/></svg>');
    background-position: right .5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

footer {
    background-color: #3c3c3c;
    color: #fff;
    font-size: 14px;
    padding: 18px 30px 10px;

    a {
        color: inherit;
        text-decoration: none;
        margin-right: 24px;
    }
}

.webreader {
    position: fixed;
    top: 15%;
    right: 0;
    background-color: #fff;
    border-top: 2px solid #ccc;
    border-left: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    cursor: pointer;
    z-index: 1032;

    a {
        display: inline-block;
        padding: 10px 20px 10px 10px;
        font-size: 14px;
        line-height: 1;
    }
}

/* Style for the element currently being read */
.speech-highlight {
    background-color: rgba(255, 255, 0, 0.4); /* Semi-transparent yellow */
    box-shadow: 0 0 0 2px rgba(255, 220, 0, 0.6); /* Subtle outer glow */
    border-radius: 3px;
    transition: background-color 0.3s ease-out, box-shadow 0.3s ease-out;
    /* Ensure smooth transition when highlight moves */
    scroll-margin-top: 60px; /* Add space when scrolling into view */
}

@media screen and (max-width: 460px) {

    body {
        font-size: 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    main .container {
        padding: 0;
    }

    .items-list {
        padding: 0 1rem;
    }

    .items-list li {
        flex-direction: column;
        align-items: baseline;
        padding: 1rem 0;
    }

}