@font-face {
    font-family: Ablaj;
    src: url('/brand/Ablaj-Medium.otf') format('opentype');
    font-weight: 400 500;
    font-display: swap;
}
@font-face {
    font-family: Ablaj;
    src: url('/brand/Ablaj-Bold.otf') format('opentype');
    font-weight: 600 900;
    font-display: swap;
}
:root {
    --blue: #4963f6;
    --dark: #282344;
    --ink: #282344;
    --muted: #656479;
    --line: #e5e6ee;
    --pale: #f5f6fc;
    color: var(--ink);
    background: #fff;
    font:
        16px/1.7 Ablaj,
        Arial,
        sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--blue);
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
input,
button,
textarea,
select {
    font: inherit;
}
button,
.button {
    cursor: pointer;
    background: var(--blue);
    color: white;
    border: 0;
    border-radius: 4px;
    padding: 0.45rem 1rem;
}
input,
textarea,
select {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.45rem 0.75rem;
    min-width: 0;
    color: inherit;
    background: white;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
.wrap {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}
.skip {
    position: fixed;
    inset-inline-start: 1rem;
    top: -8rem;
    background: white;
    padding: 0.5rem;
    z-index: 5;
}
.skip:focus {
    top: 1rem;
}
.utility {
    background: var(--dark);
    color: #fff;
}
.utility .wrap {
    display: flex;
    gap: 1.3rem;
    align-items: center;
    min-height: 37px;
    font-size: 0.875rem;
}
.utility span {
    margin-inline-end: auto;
}
.mast {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    min-height: 124px;
}
.mast img {
    width: 148px;
}
.tagline {
    color: var(--muted);
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 1.5rem;
}
.mast form {
    display: flex;
    gap: 0.4rem;
    margin-inline-start: auto;
}
.nav {
    border-block: 1px solid var(--line);
    background: #fff;
}
.nav .wrap {
    display: flex;
    gap: 1.6rem;
    overflow: auto;
    white-space: nowrap;
}
.nav a {
    padding: 1rem 0;
    border-block-end: 3px solid transparent;
    font-weight: 700;
}
.nav a[aria-current] {
    color: var(--blue);
    border-color: var(--blue);
}
main.wrap {
    padding-block: 1.6rem 4rem;
    min-height: 55vh;
}
.section {
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.55rem;
    position: relative;
    font-size: 1.55rem;
}
.section::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: -1px;
    width: 2.5rem;
    height: 3px;
    background: var(--blue);
}
.label {
    color: var(--blue);
    font-weight: 700;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.byline,
.lead {
    color: var(--muted);
}
.label {
    font-size: 0.875rem;
}
.paging,
.tags,
.byline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.paging {
    justify-content: center;
    margin-top: 1.5rem;
}
.paging a,
.tags a {
    background: var(--pale);
    color: var(--blue);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}
.empty {
    background: var(--pale);
    border-radius: 5px;
    text-align: center;
    padding: 3.5rem 1rem;
}
.story {
    max-width: 850px;
    margin: 1rem auto 3rem;
}
.story h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    line-height: 1.35;
    margin: 0.4rem 0 0.6rem;
    overflow-wrap: anywhere;
}
.lead {
    font-size: 1.25rem;
}
.byline {
    border-block: 1px solid var(--line);
    padding: 0.7rem 0;
    margin: 1.25rem 0;
}
.story .cover,
.story video,
.story iframe {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 5px;
}
.story iframe {
    border: 0;
    aspect-ratio: 16/9;
}
.story-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 1.12rem;
    line-height: 2.05;
    margin: 1.6rem 0;
}
.notice,
.ad {
    background: var(--pale);
    padding: 0.65rem 1rem;
}
.ad {
    margin: 1.5rem 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.875rem;
}
.info a {
    color: var(--blue);
}
footer {
    background: var(--dark) url('/brand/dark-texture.png') center/cover;
    color: #fff;
    padding-block: 2rem;
}
footer .wrap {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}
footer strong {
    font-size: 2rem;
}
footer p {
    margin: 0;
}
footer a {
    display: inline-block;
    margin-inline-start: 1rem;
}
@media (max-width: 780px) {
    .wrap {
        width: calc(100% - 28px);
    }
    .mast {
        min-height: 95px;
        gap: 0.8rem;
    }
    .mast img {
        width: 104px;
    }
    .tagline {
        display: none;
    }
    .label {
    color: var(--blue);
    font-weight: 700;
}
.grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 475px) {
    .utility .wrap {
        gap: 0.65rem;
        font-size: 0.8rem;
    }
    .mast form {
        width: 57%;
    }
    .mast input {
        width: 100%;
    }
    .mast button {
        padding-inline: 0.65rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    footer .wrap {
        align-items: start;
        flex-direction: column;
    }
    footer a {
        margin-inline-start: 0;
        margin-inline-end: 1rem;
    }
}
.admin-shell {
    min-height: 100vh;
    background: var(--pale);
    color: var(--ink);
    font:
        16px/1.7 Ablaj,
        Arial,
        sans-serif;
}
.admin-shell header {
    background: var(--dark);
    color: white;
}
.admin-shell header .wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding-block: 0.8rem;
}
.admin-shell header strong {
    margin-inline-end: auto;
}
.admin-shell main {
    padding-block: 1.5rem 4rem;
}
.admin-shell h1 {
    font-size: 1.9rem;
    font-weight: 700;
}
.admin-shell h2 {
    font-size: 1.3rem;
    font-weight: 700;
}
.admin-panel {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}
.admin-panel :is(input:not([type='checkbox']), textarea, select) {
    display: block;
    width: 100%;
}
.admin-panel :is(label, fieldset) {
    display: block;
    margin-block: 0.65rem;
}
.admin-panel fieldset {
    border: 1px solid var(--line);
    padding: 0.8rem;
    border-radius: 4px;
}
.admin-panel .error {
    background: #fff1f1;
    color: #831d31;
    padding: 0.55rem;
    margin: 0.4rem 0;
}
.admin-row {
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.admin-row strong {
    margin-inline-end: auto;
}
.admin-row a {
    color: #334ac8;
}
.admin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.admin-shell button:disabled {
    opacity: 0.55;
}
.admin-panel img,
.admin-panel video {
    width: min(100%, 320px);
    max-height: 220px;
    object-fit: contain;
}
.admin-panel progress {
    width: 95%;
}
@media (max-width: 650px) {
    .admin-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
.auth-shell {
    font-family: Ablaj, Arial, sans-serif;
}
