.mw-shell {
    width: min(100% - 2rem, var(--site-width));
    margin: 0 auto;
    padding: 0.85rem 0 2rem;
}

.mw-kicker {
    margin: 0;
    color: #4a6380;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mw-hero,
.mw-feature-card,
.mw-card,
.mw-editorial,
.mw-sidebar section,
.mw-detail-visual,
.mw-post-head,
.mw-copy,
.mw-empty {
    border: 1px solid #c9d7e6;
    background: #ffffff;
    box-shadow: 0 20px 45px rgb(16 32 51 / 0.06);
}

.mw-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: clamp(1.05rem, 2.5vw, 1.65rem);
    background:
        linear-gradient(90deg, rgb(255 255 255 / 0.96), rgb(255 255 255 / 0.83)),
        radial-gradient(circle at 92% 14%, rgb(0 51 102 / 0.12), transparent 20rem);
}

.mw-hero h1,
.mw-post-head h1 {
    max-width: 62rem;
    margin: 0.2rem 0 0.5rem;
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    line-height: 0.95;
}

.mw-lede,
.mw-hero p,
.mw-feature-card p,
.mw-card p,
.mw-sidebar p,
.mw-copy p {
    color: #435a74;
    font-weight: 500;
}

.mw-actions,
.mw-card-foot,
.mw-sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mw-actions {
    justify-content: flex-end;
}

.mw-actions a,
.mw-card-foot a,
.mw-share-button,
.mw-manage-actions button,
.mw-manage-actions a,
.mw-sidebar-links a,
.mw-source-link,
.mw-pagination a,
.mw-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #003366;
    color: #003366;
    background: #ffffff;
    font-size: 0.86rem;
    font-family: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.mw-actions a:hover,
.mw-actions a:focus,
.mw-card-foot a:hover,
.mw-card-foot a:focus,
.mw-share-button:hover,
.mw-share-button:focus,
.mw-manage-actions button:hover,
.mw-manage-actions button:focus,
.mw-manage-actions a:hover,
.mw-manage-actions a:focus,
.mw-sidebar-links a:hover,
.mw-sidebar-links a:focus,
.mw-source-link:hover,
.mw-source-link:focus,
.mw-pagination a:hover,
.mw-pagination a:focus {
    background: #003366;
    color: #ffffff;
}

.mw-manage-actions .mw-danger-action {
    border-color: #9d2b10;
    color: #9d2b10;
}

.mw-manage-actions .mw-danger-action:hover,
.mw-manage-actions .mw-danger-action:focus {
    background: #9d2b10;
    color: #ffffff;
}

.mw-feature {
    margin-top: 0.85rem;
}

.mw-live-stream {
    min-width: 0;
}

.mw-live-stream.htmx-request {
    opacity: 0.92;
}

.mw-feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.52fr);
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-color: #b8cce0;
    background:
        linear-gradient(115deg, rgb(255 255 255 / 0.96) 0%, rgb(247 251 254 / 0.96) 54%, rgb(238 246 252 / 0.98) 100%),
        linear-gradient(180deg, #ffffff, #f5f9fd);
    box-shadow: 0 24px 55px rgb(16 32 51 / 0.08);
}

.mw-feature-copy {
    display: grid;
    align-content: start;
    gap: 0.65rem;
}

.mw-feature-copy h2,
.mw-card h2,
.mw-sidebar h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2.05rem);
    line-height: 1.04;
}

.mw-feature-copy h2 a,
.mw-card h2 a {
    color: #081a2f;
    text-decoration: none;
}

.mw-feature-copy h2 a:hover,
.mw-card h2 a:hover,
.mw-feature-copy h2 a:focus,
.mw-card h2 a:focus {
    text-decoration: underline;
}

.mw-feature-body {
    display: grid;
    gap: 0.45rem;
}

.mw-feature-body p,
.mw-card p,
.mw-copy p {
    margin: 0;
    line-height: 1.48;
}

.mw-feature-visual,
.mw-visual-link,
.mw-detail-visual {
    display: block;
    overflow: hidden;
    background: #f8fbfe;
}

.mw-feature-visual {
    align-self: start;
    border: 1px solid #d7e4ef;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.75);
    aspect-ratio: 3 / 2;
    min-height: 15rem;
    max-height: 22rem;
}

.mw-visual-link {
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-bottom: 1px solid #d7e4ef;
}

.mw-detail-visual {
    justify-self: stretch;
    width: 100%;
    margin: 0;
    aspect-ratio: 3 / 2;
    border: 1px solid #d7e4ef;
}

.mw-feature-visual img,
.mw-visual-link img,
.mw-detail-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: inherit;
    object-fit: contain;
    object-position: center;
}

.mw-visual--ai_image img {
    object-fit: cover;
    object-position: center;
}

.mw-visual--chart,
.mw-visual--editorial_card {
    background: #ffffff;
}

.mw-visual--chart img,
.mw-visual--editorial_card img {
    object-fit: contain;
}

.mw-visual-link.mw-visual--chart img,
.mw-visual-link.mw-visual--editorial_card img {
    object-fit: cover;
}

.mw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.mw-card {
    display: grid;
    align-content: start;
    min-height: 100%;
}

.mw-card-body {
    display: grid;
    gap: 0.55rem;
    padding: 0.9rem;
}

.mw-context-list {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding-left: 1.05rem;
    color: #173655;
    font-weight: 700;
    line-height: 1.38;
}

.mw-card-foot {
    margin-top: 0.2rem;
}

.mw-editorial {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
    padding: 1rem;
}

.mw-editorial h2 {
    margin: 0.15rem 0 0;
}

.mw-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.mw-mini-card {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid #d5e0eb;
    color: #081a2f;
    text-decoration: none;
}

.mw-mini-card > span {
    color: #4a6380;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mw-mini-card strong a {
    color: #081a2f;
    text-decoration: none;
}

.mw-mini-card strong a:hover,
.mw-mini-card strong a:focus {
    text-decoration: underline;
}

.mw-mini-card small {
    color: #9d2b10;
    font-weight: 800;
}

.mw-mini-card:hover,
.mw-mini-card:focus-within {
    border-color: #003366;
}

.mw-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-top: 0.35rem;
}

.mw-manage-actions form {
    margin: 0;
}

.mw-manage-panel {
    border-top: 4px solid #006b63;
}

.mw-quality-flags li {
    color: #9d2b10;
}

.mw-empty {
    grid-column: 1 / -1;
    padding: 1.25rem;
}

.mw-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.mw-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 0.65rem;
    color: #526579;
    font-size: 0.8rem;
    font-weight: 800;
}

.mw-breadcrumbs a {
    color: #003366;
    text-decoration: none;
}

.mw-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.34fr);
    gap: 0.85rem;
    align-items: start;
}

.mw-detail-main {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}

.mw-post-head,
.mw-copy,
.mw-sidebar section {
    padding: 1rem;
}

.mw-copy {
    display: grid;
    gap: 0.8rem;
}

.mw-sidebar {
    position: sticky;
    top: 0.85rem;
    display: grid;
    gap: 0.85rem;
}

.mw-sidebar section {
    display: grid;
    gap: 0.65rem;
}

.mw-sidebar h2 {
    font-size: 1.3rem;
}

@media (max-width: 1100px) {
    .mw-feature-card,
    .mw-detail-grid {
        grid-template-columns: 1fr;
    }

    .mw-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mw-hero {
        grid-template-columns: 1fr;
    }

    .mw-actions {
        justify-content: flex-start;
    }

    .mw-grid,
    .mw-mini-grid,
    .mw-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .mw-shell {
        width: min(100% - 1rem, var(--site-width));
    }

    .mw-hero,
    .mw-feature-card,
    .mw-post-head,
    .mw-copy,
    .mw-sidebar section {
        padding: 0.85rem;
    }

    .mw-actions a,
    .mw-card-foot a,
    .mw-share-button,
    .mw-manage-actions button,
    .mw-manage-actions a,
    .mw-sidebar-links a {
        width: 100%;
    }

    .mw-manage-actions form {
        width: 100%;
    }
}
