/* WeeklyRO theme, part 2: page frame. Top bar, quick-links rail, home page sections, footer.
   Colours come from the variables defined in weeklyro.css. */

/* ─── Page skeleton ─── */
html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.wr-page {
    flex: 1 0 auto;
}

.wr-page-inner .wr-page > .container {
    padding-top: 100px;
    padding-bottom: 48px;
}

.wr-dot {
    flex: 0 0 auto;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c7a99;
}

[data-state="online"] .wr-dot {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

[data-state="online"] .wr-status-text {
    color: var(--green);
}

[data-state="offline"] .wr-dot {
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
}

[data-state="offline"] .wr-status-text {
    color: var(--red);
}

/* Section headings: centred with a short bar, or left with a bar to the right. */
.wr-heading {
    margin: 0 0 26px;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

.wr-heading-center {
    text-align: center;
}

.wr-heading-center::after {
    content: '';
    display: block;
    width: 62px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--orange);
}

.wr-heading-line {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 24px;
    white-space: nowrap;
}

.wr-heading-line::after {
    content: '';
    flex: 0 1 110px;
    height: 3px;
    background: var(--orange);
}

/* ─── Top bar ─── */
.wr-navbar.navbar-inverse {
    min-height: 72px;
    margin: 0;
    background: #0a0f1c;
    border: 0;
    border-bottom: 1px solid var(--panel-line);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Over the home hero the bar is see-through until the page scrolls. */
.wr-page-home:not(.wr-scrolled) .wr-navbar.navbar-inverse {
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.78) 0%, rgba(6, 10, 20, 0) 100%) no-repeat;
    border-bottom-color: transparent;
    box-shadow: none;
}

.wr-navbar-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
}

.wr-navbar .navbar-brand.wr-brand {
    height: 72px;
    padding: 16px 34px 16px 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 40px;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 0 #060a14, 0 0 18px rgba(245, 162, 28, 0.3);
}

.wr-navbar .navbar-brand.wr-brand span {
    color: var(--orange);
}

.wr-navbar .navbar-brand.wr-brand img {
    display: block;
    max-height: 56px;
    margin-top: -8px;
}

.wr-navbar .navbar-brand.wr-brand:hover {
    color: #fff;
    text-decoration: none;
}

.wr-navbar .navbar-nav > li > a {
    padding: 26px 13px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #e8eefb;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.wr-navbar .navbar-nav > li > a:hover,
.wr-navbar .navbar-nav > li > a:focus,
.wr-navbar .navbar-nav > .open > a,
.wr-navbar .navbar-nav > .open > a:hover,
.wr-navbar .navbar-nav > .open > a:focus {
    color: var(--orange-light);
    text-decoration: none;
    background: transparent;
}

.wr-navbar .navbar-nav .caret {
    margin-left: 2px;
    opacity: 0.7;
}

.wr-navbar .dropdown-menu {
    min-width: 210px;
    padding: 6px 0;
    background: #16213a;
    border: 1px solid var(--panel-line);
    border-top: 2px solid var(--orange);
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.wr-navbar .dropdown-menu > li > a {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-soft);
}

.wr-navbar .dropdown-menu > li > a:hover,
.wr-navbar .dropdown-menu > li > a:focus {
    color: #fff;
    text-decoration: none;
    background: var(--plum-light);
}

.wr-navbar .navbar-toggle {
    height: auto;
    margin: 19px 0 0;
    padding: 9px 10px;
    line-height: 1;
    background: transparent;
    border-color: var(--panel-line);
    box-shadow: none;
}

.wr-navbar .navbar-toggle:hover,
.wr-navbar .navbar-toggle:focus {
    background: var(--plum);
}

.wr-navbar .navbar-collapse {
    border-color: var(--panel-line);
}

.wr-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    margin-right: 0;
}

.wr-nav-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.2;
}

.wr-nav-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.wr-nav-status strong {
    font-size: 13px;
    color: #fff;
}

.wr-nav-status:hover, .wr-nav-status:focus {
    text-decoration: none;
    color: var(--text);
}

.wr-nav-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.wr-nav-meta a {
    color: var(--text-soft);
}

.wr-nav-meta a:hover {
    color: var(--orange-light);
    text-decoration: none;
}

.wr-clock {
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.wr-btn-outline {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 36px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--orange-light);
    background: rgba(10, 15, 28, 0.35);
    border: 2px solid var(--orange);
    border-radius: 3px;
    box-shadow: none;
}

.wr-btn-outline:hover, .wr-btn-outline:focus {
    color: var(--orange-ink);
    background: var(--orange);
    border: 2px solid var(--orange);
}

.wr-navbar .wr-btn-ghost {
    height: 40px;
    line-height: 38px;
}

/* ─── Quick-links rail ─── */
.wr-rail {
    display: none;
}

@media (min-width: 1360px) {
    .wr-rail {
        position: fixed;
        left: 0;
        top: 50%;
        z-index: 900;
        display: flex;
        flex-direction: column;
        width: 66px;
        padding: 6px 0;
        transform: translateY(-50%);
        background: rgba(10, 15, 28, 0.88);
        border: 1px solid var(--panel-line);
        border-left: 0;
        transition: margin-left 0.2s ease;
    }

    .wr-rail a {
        display: block;
        padding: 10px 2px 9px;
        font-size: 11px;
        font-weight: 700;
        text-align: center;
        color: var(--text-soft);
        border-bottom: 1px solid var(--row-line);
    }

    .wr-rail a:last-of-type {
        border-bottom: 0;
    }

    .wr-rail a .glyphicon {
        display: block;
        margin-bottom: 5px;
        font-size: 21px;
        color: #fff;
    }

    .wr-rail a:hover, .wr-rail a:focus {
        color: var(--orange-light);
        text-decoration: none;
        background: var(--plum);
    }

    .wr-rail a:hover .glyphicon {
        color: var(--orange-light);
    }

    .wr-rail .wr-rail-toggle {
        position: absolute;
        left: 100%;
        top: 50%;
        width: 18px;
        height: 34px;
        margin-top: -17px;
        padding: 0;
        font-size: 10px;
        line-height: 32px;
        color: #fff;
        background: rgba(10, 15, 28, 0.88);
        border: 1px solid var(--panel-line);
        border-left: 0;
        border-radius: 0 3px 3px 0;
        box-shadow: none;
    }

    .wr-rail .wr-rail-toggle:hover {
        color: var(--orange-light);
        background: var(--plum);
        border: 1px solid var(--panel-line);
        border-left: 0;
    }

    .wr-rail.wr-rail-folded {
        margin-left: -66px;
    }

    .wr-rail.wr-rail-folded .wr-rail-toggle .glyphicon {
        transform: rotate(180deg);
    }
}

/* ─── Home: hero ─── */
.wr-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(100vh, 980px);
    padding: 104px 0 96px;
    overflow: hidden;
    /* Shown until img/hero-bg is added. */
    background:
        radial-gradient(ellipse 60% 70% at 72% 58%, rgba(245, 162, 28, 0.20) 0%, rgba(245, 162, 28, 0) 70%),
        radial-gradient(ellipse 80% 90% at 25% 10%, #24407a 0%, rgba(28, 44, 80, 0) 70%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #16223f 0%, #0d1424 100%);
    background-size: cover;
    background-position: center top;
}

.wr-hero.wr-hero-has-bg {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

/* Darkens the bottom edge so the hero melts into the news section. */
.wr-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0) 55%, var(--bg-deep) 100%);
    pointer-events: none;
}

.wr-hero-has-bg .wr-hero-shade {
    background:
        linear-gradient(90deg, rgba(10, 15, 28, 0.55) 0%, rgba(10, 15, 28, 0) 60%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.25) 0%, rgba(10, 15, 28, 0) 30%, rgba(10, 15, 28, 0) 60%, var(--bg-deep) 100%);
}

.wr-hero-char {
    position: absolute;
    right: 4%;
    bottom: 0;
    max-width: 52%;
    max-height: 88%;
    pointer-events: none;
}

.wr-hero-inner {
    position: relative;
    z-index: 2;
}

.wr-hero-col {
    width: 340px;
    max-width: 100%;
    margin-left: 9%;
}

.wr-hero-logo {
    position: relative;
    z-index: 2;
    margin-bottom: -18px;
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    text-align: center;
    color: #fff;
    text-shadow: 0 3px 0 #060a14, 0 0 26px rgba(245, 162, 28, 0.45);
}

.wr-hero-logo span {
    color: var(--orange);
}

.wr-hero-logo img {
    display: block;
    max-width: 78%;
    max-height: 170px;
    margin: 0 auto;
}

.wr-hero-col > .message {
    margin: 26px 0 -14px;
}

.wr-login-box {
    padding: 44px 22px 20px;
    text-align: center;
    background: rgba(10, 15, 28, 0.82);
    border: 1px solid rgba(42, 60, 99, 0.8);
    border-radius: 4px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.wr-login-box h2 {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.wr-login-box input[type=text],
.wr-login-box input[type=password] {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0 0 12px;
    font-size: 15px;
    text-align: center;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 3px;
}

.wr-login-box ::placeholder {
    color: #c3cde3;
}

.wr-login-box .wr-login-submit,
.wr-login-box button.wr-login-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 900;
    line-height: 44px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    color: var(--orange-ink);
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 100%);
    border: 0;
    border-radius: 3px;
    box-shadow: none;
}

.wr-login-box .wr-login-submit:hover,
.wr-login-box .wr-login-submit:focus {
    color: var(--orange-ink);
    text-decoration: none;
    background: linear-gradient(180deg, #ffd372 0%, #ffb02e 100%);
    border: 0;
}

.wr-login-user {
    margin: -6px 0 4px;
    font-size: 22px;
    font-weight: 900;
    color: var(--orange-light);
    overflow-wrap: anywhere;
}

.wr-login-alt {
    margin: 16px 0 0;
    font-size: 15px;
    color: #fff;
}

.wr-login-alt a {
    font-weight: 800;
    color: var(--orange-light);
}

.wr-blurb {
    margin-top: 56px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    background: rgba(10, 15, 28, 0.82);
    border: 1px solid rgba(42, 60, 99, 0.8);
    border-radius: 4px;
}

.wr-blurb p {
    margin: 0 0 3px;
}

.wr-blurb p:last-child {
    margin: 0;
}

.wr-hero-down {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    width: 44px;
    height: 44px;
    margin-left: -22px;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    color: var(--orange);
}

.wr-hero-down:hover, .wr-hero-down:focus {
    color: var(--orange-light);
    text-decoration: none;
}

/* ─── Home: sections ─── */
.wr-section {
    position: relative;
}

.wr-section-news {
    padding: 34px 0 64px;
    background: var(--bg-deep);
}

.wr-news-carousel {
    position: relative;
}

.wr-news-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 18px 0 22px;
    scrollbar-width: none;
}

.wr-news-viewport::-webkit-scrollbar {
    display: none;
}

.wr-news-track {
    display: flex;
    align-items: flex-start;
    width: max-content;
    margin: 0 auto;
    padding: 0 70px;
}

.wr-card {
    position: relative;
    flex: 0 0 300px;
    width: 300px;
    min-height: 470px;
    text-align: center;
    background: #141c2f;
    border-right: 1px solid #2a3552;
    cursor: pointer;
    outline: 0;
    transition: background-color 0.15s ease;
}

.wr-card:first-child {
    border-left: 1px solid #2a3552;
}

.wr-card-img {
    height: 270px;
    background-color: var(--plum);
    background-size: cover;
    background-position: center;
}

/* Shown until a card has its own picture (or img/news-default exists). */
.wr-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 3px, transparent 3px 9px),
        radial-gradient(ellipse at 50% 35%, #35528c 0%, #1b2a4b 70%);
}

.wr-card-img-empty[data-tag="patch"] {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 9px),
        radial-gradient(ellipse at 50% 35%, #a8650c 0%, #3a2408 75%);
}

.wr-card-img-empty[data-tag="event"] {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 3px, transparent 3px 9px),
        radial-gradient(ellipse at 50% 35%, #1f7f6c 0%, #102d33 75%);
}

.wr-card-img-empty span {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: rgba(255, 255, 255, 0.55);
}

.wr-card-img-empty b {
    color: rgba(245, 162, 28, 0.75);
}

.wr-card-body {
    padding: 20px 20px 24px;
}

.wr-card-meta {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--text-soft);
}

.wr-card-meta strong {
    color: #fff;
}

.wr-card .wr-card-title {
    margin: 0 0 10px;
    padding: 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    border: 0;
    overflow-wrap: anywhere;
}

.wr-card-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-soft);
}

/* The newest card stands out; any card lights up on hover. */
.wr-card-active {
    z-index: 2;
    margin: -18px 0 -22px;
    background: #1a2440;
    border: 0;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
}

.wr-card-active .wr-card-img {
    height: 300px;
}

.wr-card-active .wr-card-body {
    padding-bottom: 38px;
}

.wr-card-active .wr-card-title,
.wr-card:hover .wr-card-title,
.wr-card:focus .wr-card-title {
    color: var(--orange-light);
}

.wr-card:hover, .wr-card:focus {
    background: #1a2440;
}

.wr-news-carousel .wr-news-arrow {
    position: absolute;
    top: 165px;
    z-index: 5;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 18px;
    line-height: 44px;
    color: #0a0f1c;
    background: #e8eefb;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.wr-news-carousel .wr-news-arrow:hover {
    color: var(--orange-ink);
    background: var(--orange);
    border: 0;
}

.wr-news-prev {
    left: max(12px, calc(50% - 470px));
}

.wr-news-next {
    right: max(12px, calc(50% - 470px));
}

.wr-news-fits .wr-news-arrow {
    display: none;
}

.wr-news-empty {
    margin: 0;
    padding: 34px 16px 10px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--text-dim);
}

.wr-section-info {
    padding: 84px 0 0;
    background:
        radial-gradient(ellipse 70% 80% at 50% 30%, #1c2c50 0%, rgba(28, 44, 80, 0) 75%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 22%, var(--bg) 70%, var(--bg-deep) 100%);
}

.wr-info {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.wr-info-text {
    flex: 0 0 470px;
    max-width: 100%;
    padding-bottom: 96px;
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
}

.wr-info-text p {
    margin: 0 0 12px;
}

.wr-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.wr-info-actions .wr-btn {
    height: 40px;
    padding: 0 20px;
    font-size: 14px;
    line-height: 38px;
}

.wr-info-actions .wr-btn-outline {
    line-height: 36px;
}

.wr-info-text .wr-heading {
    margin-top: 0;
}

.wr-info-text .wr-heading ~ .wr-heading {
    margin-top: 56px;
}

/* The picture stands on the bottom edge of the section (on the footer line). */
.wr-info-art {
    flex: 1 1 0;
    min-width: 0;
    align-self: flex-end;
    text-align: center;
}

.wr-info-art img {
    display: block;
    max-width: 100%;
    max-height: 640px;
    margin: 0 auto;
}

.wr-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 26px 40px;
}

.wr-stat {
    text-align: center;
}

.wr-stat .glyphicon {
    display: block;
    margin-bottom: 12px;
    font-size: 34px;
    color: #fff;
}

.wr-stat strong {
    display: block;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.wr-stat em {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ─── News article window ─── */
.wr-modal .modal-dialog {
    margin-top: 110px;
}

.wr-modal .modal-content {
    color: var(--text-soft);
    background: #16213a;
    border: 1px solid var(--panel-line);
    border-top: 3px solid var(--orange);
    border-radius: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.wr-modal .modal-header {
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--panel-line);
}

.wr-modal .modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.wr-modal .modal-body {
    padding: 18px 22px 22px;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.wr-modal .modal-body img {
    max-width: 100%;
    height: auto;
}

.wr-modal .modal-body h4 {
    margin: 16px 0 6px;
}

.wr-modal .modal-body ul, .wr-modal .modal-body ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.wr-modal button.close {
    width: 32px;
    height: 32px;
    margin: -4px -6px 0 0;
    padding: 0;
    font-size: 26px;
    line-height: 30px;
    color: #fff;
    text-shadow: none;
    opacity: 0.7;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.wr-modal button.close:hover {
    opacity: 1;
    background: transparent;
    border: 0;
}

.modal-backdrop {
    background: #05080f;
}

.modal-backdrop.in {
    opacity: 0.8;
}

/* ─── Footer ─── */
#footer {
    flex: 0 0 auto;
    position: static;
    height: auto;
    background: #070b14;
}

.wr-footer-line {
    height: 2px;
    max-width: 1060px;
    margin: 0 auto;
    background: linear-gradient(90deg, rgba(245, 162, 28, 0) 0%, var(--orange) 50%, rgba(245, 162, 28, 0) 100%);
}

.wr-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 44px;
    font-size: 13px;
    color: var(--text-dim);
}

.wr-footer p {
    margin: 0 0 16px;
}

.wr-footer-links a {
    display: inline-block;
    padding: 0 10px;
    font-size: 14px;
    line-height: 1;
    color: #fff;
    border-left: 1px solid #fff;
}

.wr-footer-links a:first-child {
    padding-left: 0;
    border-left: 0;
}

.wr-footer-links a:hover {
    color: var(--orange-light);
    text-decoration: none;
}

.wr-footer-legal a {
    color: var(--orange-light);
}

.wr-footer-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
}

.wr-footer-tools select {
    height: 28px;
    padding: 0 6px;
    font-size: 13px;
}

.wr-footer-dim {
    color: #4f5d7e;
}

.wr-footer-side {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.wr-play {
    display: block;
    min-width: 176px;
    height: 54px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 900;
    line-height: 54px;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
    color: var(--orange-ink);
    background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 100%);
    border-radius: 2px;
}

.wr-play:hover, .wr-play:focus {
    color: var(--orange-ink);
    text-decoration: none;
    background: linear-gradient(180deg, #ffd372 0%, #ffb02e 100%);
}

.wr-footer-discord {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

.wr-footer-discord:hover {
    color: var(--orange-light);
    text-decoration: none;
}

/* Bootstrap's .container clearfix pseudo-elements would count as flex items. */
.wr-info::before, .wr-info::after,
.wr-footer::before, .wr-footer::after {
    display: none;
}

/* ─── Medium screens: tighter top bar ─── */
@media (min-width: 768px) and (max-width: 1199px) {
    .wr-navbar-inner {
        padding: 0 14px;
    }

    .wr-navbar .navbar-brand.wr-brand {
        padding-right: 14px;
        font-size: 27px;
    }

    .wr-navbar .navbar-nav > li > a {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 14px;
    }

    .wr-nav-info {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .wr-navbar .navbar-nav > li > a {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 13px;
    }

    .wr-navbar .navbar-brand.wr-brand {
        font-size: 23px;
    }

    .wr-info-art {
        display: none;
    }
}

/* ─── Small screens ─── */
@media (max-width: 767px) {
    .wr-page-inner .wr-page > .container {
        padding-top: 88px;
        padding-bottom: 30px;
    }

    .wr-navbar-inner {
        padding: 0 15px;
    }

    /* The opened menu needs a solid backdrop even over the hero. */
    .wr-page-home:not(.wr-scrolled) .wr-navbar.navbar-inverse {
        background: #0a0f1c;
        border-bottom-color: var(--panel-line);
    }

    .wr-navbar .navbar-brand.wr-brand {
        padding-left: 0;
        font-size: 30px;
    }

    .wr-navbar .navbar-header {
        margin: 0;
    }

    .wr-navbar .navbar-collapse {
        margin: 0 -15px;
    }

    .wr-navbar .navbar-nav {
        margin: 6px 0;
    }

    .wr-navbar .navbar-nav > li > a {
        padding: 10px 15px;
    }

    .wr-navbar .navbar-nav .open .dropdown-menu > li > a {
        color: var(--text-soft);
    }

    .wr-nav-right {
        height: auto;
        margin: 0;
        padding: 12px 15px 16px;
        justify-content: space-between;
        flex-wrap: wrap;
        border-top: 1px solid var(--panel-line);
    }

    .wr-nav-info {
        align-items: flex-start;
    }

    .wr-hero {
        min-height: 0;
        padding: 100px 0 70px;
    }

    .wr-hero-char {
        display: none;
    }

    .wr-hero-inner {
        width: 100%;
    }

    .wr-hero-col {
        margin: 0 auto;
    }

    .wr-hero-logo {
        font-size: 54px;
    }

    .wr-blurb {
        margin-top: 22px;
    }

    .wr-heading {
        font-size: 22px;
    }

    .wr-news-track {
        padding: 0 16px;
    }

    .wr-card {
        flex-basis: 270px;
        width: 270px;
    }

    .wr-news-prev {
        left: 6px;
    }

    .wr-news-next {
        right: 6px;
    }

    .wr-section-info {
        padding: 54px 0 0;
    }

    .wr-info {
        display: block;
    }

    .wr-info-text {
        padding-bottom: 40px;
    }

    .wr-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 26px 20px;
        max-width: 320px;
    }

    .wr-footer {
        flex-direction: column;
    }

    .wr-footer-side {
        align-items: flex-start;
    }

    .wr-footer-links a {
        margin-bottom: 8px;
    }

    .wr-content {
        padding: 0 14px 16px;
    }

    .wr-content > h2:first-child {
        margin-left: -14px;
        margin-right: -14px;
        padding: 0 14px;
    }

    .generic-form-table th, .generic-form-table td {
        display: block;
        text-align: left;
    }

    .generic-form-table td input[type=text],
    .generic-form-table td input[type=password] {
        width: 100%;
    }

    .wr-modal .modal-dialog {
        margin-top: 84px;
    }
}

.wr-navbar-inner::after {
    content: '';
    display: table;
    clear: both;
}

/* ─── Artwork guide: open the home page with ?wrslots=1 to see where each image goes ─── */
.wr-slot {
    display: none;
}

.wr-show-slots .wr-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    color: var(--orange-light);
    background: rgba(245, 162, 28, 0.08);
    border: 2px dashed var(--orange);
}

.wr-show-slots .wr-hero-char.wr-slot {
    width: 44%;
    height: 80%;
}

.wr-show-slots .wr-slot-bg {
    position: absolute;
    top: 84px;
    right: 24px;
    z-index: 3;
}

.wr-show-slots .wr-info-art .wr-slot {
    height: 460px;
    margin-bottom: 60px;
}

.wr-show-slots .wr-hero-logo .wr-slot {
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: 0;
    text-shadow: none;
}

.wr-show-slots .wr-card-img {
    position: relative;
}

.wr-show-slots .wr-card-img .wr-slot {
    position: absolute;
    inset: 10px;
    font-size: 13px;
}

.wr-show-slots .wr-card-img-empty > span {
    visibility: hidden;
}
