@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        display: none;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu,
    .navbar-nav .dropdown > .dropdown-menu.show {
        display: block;
    }

    .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        right: 0;
        left: auto;
    }

    .navbar-nav .dropdown-submenu {
        position: relative;
    }

    .navbar-nav .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        left: auto;
        margin-top: -1px;
    }

    .navbar-nav .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        display: block;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding-left: 1rem;
    }

    .navbar-nav .dropdown-submenu > .dropdown-menu {
        padding-left: 2rem;
    }
}

/* News cards (markdownwebgen hooks) */

.mdwg-news-card {
    display: block;
    color: inherit;
    background-color: var(--bs-tertiary-bg);
    border-radius: 0.5rem;
    overflow: hidden;
    padding: 1rem;
    height: 100%;
    position: relative;
}

.mdwg-news-card:hover {
    background-color: var(--bs-secondary-bg);
}

.mdwg-news-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.mdwg-news-title {
    font-weight: 700;
    font-size: var(--hr-news-card-title-size);
}

.mdwg-news-excerpt {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--hr-news-card-text-size);
}

.mdwg-news-date {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--hr-news-card-text-size);
}

.mdwg-news-card--grid::after {
    content: "\2192";
    color: #4da3ff;
    font-weight: 700;
}

.mdwg-news-card--grid .mdwg-news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
}

.mdwg-news-card--grid .mdwg-news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: calc(1.35em * 3);
}

/* Inline rules-text icons (gold, combat, health, etc.) */

.hr-icon {
    height: 1.4em;
    width: auto;
    vertical-align: text-bottom;
}

/* ==========================================================================
   Home page, header and footer
   ========================================================================== */

:root {
    --hr-gold-light: #f6e0a3;
    --hr-gold: #d4a950;
    --hr-gold-dark: #8f6a28;
    --hr-gold-gradient: linear-gradient(180deg, #f6e0a3 0%, #d4a950 52%, #9a732c 100%);
    --hr-navy-deep: #060a16;
    --hr-navy: #0d152b;
    --hr-cream: #f3e6c4;
    --hr-text-muted: rgba(243, 230, 196, 0.68);
    --hr-red: #b3151f;
    --hr-heading-font: 'Josefin Sans', system-ui, sans-serif;
    --hr-band-title-size: 36px;
    --hr-news-card-title-size: 20px;
    --hr-news-card-text-size: 16px;
    --hr-text-lg: 20px;
    --hr-btn-text-size: 16px;
    --hr-content-max: 1320px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--hr-navy-deep);
    background-image: radial-gradient(ellipse at 50% 0%, #101b3c 0%, var(--hr-navy-deep) 62%);
    background-attachment: fixed;
}

/* Sticky footer: short pages keep the footer at the bottom of the window. */
body > .hr-footer {
    margin-top: auto;
}

/* Header */

.hr-header {
    position: relative;
    z-index: 30;
    padding: 0.3rem 0;
    background: linear-gradient(180deg, #0b1126 0%, var(--hr-navy-deep) 100%);
    border-bottom: 2px solid var(--hr-gold-dark);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hr-header-logo {
    display: block;
    height: 54px;
    width: auto;
}

.hr-header .nav-link {
    color: var(--hr-cream);
    font-weight: 600;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.hr-header .nav-link:hover,
.hr-header .nav-link:focus,
.hr-header .nav-item.dropdown:hover > .nav-link {
    color: var(--hr-gold-light);
}

.hr-header .nav-link.active {
    color: #ffe566;
}

.hr-header .dropdown-menu {
    background-color: var(--hr-navy);
    border: 1px solid var(--hr-gold-dark);
    border-radius: 0.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
}

.hr-header .dropdown-item {
    color: var(--hr-cream);
}

.hr-header .dropdown-item:hover,
.hr-header .dropdown-item:focus {
    background-color: rgba(212, 169, 80, 0.18);
    color: var(--hr-gold-light);
}

.hr-header .dropdown-item.active {
    background-color: rgba(255, 220, 80, 0.22);
    color: #ffe566;
}

.hr-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hr-social-link {
    color: var(--hr-cream);
    font-size: 1.15rem;
    line-height: 1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.hr-social-link:hover {
    color: var(--hr-gold-light);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .hr-social {
        padding: 0.75rem 0 1rem;
    }
}

/* Tags */

.hr-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.12rem 0.55rem;
    border: 1px solid var(--hr-gold);
    border-radius: 0.2rem;
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
}



/* Latest news */

.hr-news-featured,
.hr-news-card {
    color: var(--hr-cream);
    text-decoration: none;
    background: rgba(6, 10, 22, 0.7);
    border: 1px solid rgba(212, 169, 80, 0.32);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hr-news-featured:hover,
.hr-news-card:hover {
    color: var(--hr-cream);
    border-color: var(--hr-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.hr-news-featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    margin-top: 0.5rem;
}

.hr-news-featured-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
}

.hr-news-featured-text h3 {
    margin: 0;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: var(--hr-news-card-title-size);
    line-height: 1.25;
}

.hr-news-featured-text p,
.hr-news-card-body p {
    margin: 0;
    color: var(--hr-text-muted);
    font-size: var(--hr-news-card-text-size);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hr-news-featured-text p {
    -webkit-line-clamp: 5;
}

.hr-news-featured-image {
    min-height: 260px;
}

.hr-news-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.hr-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: var(--hr-news-card-text-size);
    color: var(--hr-text-muted);
}

.hr-news-more {
    color: var(--hr-gold-light);
    font-weight: 600;
}

.hr-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.hr-news-card {
    display: flex;
    flex-direction: column;
}

.hr-news-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center 25%;
}

.hr-news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem 1rem;
}

.hr-news-card-body h3 {
    margin: 0;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: var(--hr-news-card-title-size);
    line-height: 1.3;
}

.hr-news-card-body p {
    -webkit-line-clamp: 4;
}

@media (max-width: 1099.98px) {
    .hr-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hr-news-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-news-featured-image {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hr-news-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-panel {
        padding: 1.25rem 1rem 1.75rem;
    }
}

/* Latest news */

.hr-news--home .hr-news-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    margin-top: 0;
    margin-bottom: 0;
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    background: linear-gradient(180deg, #123083 0%, #0a1d58 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(246, 224, 163, 0.18);
}

.hr-news--home .hr-news-featured-text {
    justify-content: center;
    gap: 1rem;
    padding: 2rem 2.25rem;
}

.hr-news--home .hr-news-featured-text h3 {
    font-size: var(--hr-news-card-title-size);
}

.hr-news--home .hr-news-featured-text p {
    color: #e4e9f7;
    -webkit-line-clamp: 6;
}

.hr-news--home .hr-news-featured-image {
    min-height: 280px;
    margin: 0.6rem;
    border: 1px solid rgba(246, 224, 163, 0.55);
}

.hr-news--home .hr-news-date {
    font-size: var(--hr-news-card-text-size);
    color: #c8d2ee;
}

.hr-news--home .hr-news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.hr-news--home .hr-news-card {
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    background: linear-gradient(180deg, #123083 0%, #0a1d58 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(246, 224, 163, 0.18);
}

.hr-news--home .hr-news-card-image {
    width: calc(100% - 1rem);
    margin: 0.5rem 0.5rem 0;
    border: 1px solid rgba(246, 224, 163, 0.55);
}

.hr-news--home .hr-news-card-body p {
    color: #e4e9f7;
}

.hr-news--home .hr-news-meta {
    color: #c8d2ee;
}

@media (max-width: 991.98px) {
    .hr-news--home .hr-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hr-news--home .hr-news-featured {
        grid-template-columns: minmax(0, 1fr);
    }

    .hr-news--home .hr-news-featured-image {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hr-news--home .hr-news-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Footer */

.hr-footer {
    background-color: #0a1738;
    background-image: url("/images/home/bg-footer.webp");
    background-size: 1024px 1024px;
    background-position: center top;
    border-top: 2px solid var(--hr-gold-dark);
}

.hr-footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 3.25rem 1rem 2rem;
}

.hr-footer-logo {
    display: block;
    width: 210px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.hr-footer .hr-social {
    gap: 1rem;
}

.hr-footer .hr-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--hr-gold);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #1d3270, #0b1430);
    color: var(--hr-gold-light);
    font-size: 1.25rem;
}

.hr-footer .hr-social-link:hover {
    border-color: var(--hr-gold-light);
    box-shadow: 0 0 10px rgba(246, 224, 163, 0.5);
}

.hr-footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    max-width: var(--hr-content-max);
    margin: 0 auto;
    padding: 1.1rem 1.5rem 1.4rem;
    font-size: 0.9rem;
    color: rgba(243, 230, 196, 0.8);
}

.hr-footer-legal a {
    margin-left: 0.9rem;
    color: rgba(243, 230, 196, 0.8);
    text-decoration: none;
}

.hr-footer-legal a:first-child {
    margin-left: 0;
}

.hr-footer-legal a:hover {
    color: var(--hr-gold-light);
}

@media (max-width: 575.98px) {
    .hr-footer-legal {
        justify-content: center;
        text-align: center;
    }
}

/* News catalog: search and pagination */

.hr-news-search {
    width: min(100%, 300px);
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--hr-gold-dark);
    border-radius: 999px;
    background: linear-gradient(180deg, #18295a, #0e1a3b);
    color: var(--hr-cream);
    font-size: 0.9rem;
}

.hr-news-search::placeholder {
    color: var(--hr-text-muted);
}

.hr-news-search:focus {
    outline: none;
    border-color: var(--hr-gold-light);
    box-shadow: 0 0 0 1px var(--hr-gold-light);
}

.hr-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.hr-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid var(--hr-gold);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #1d3270, #0b1430);
    color: var(--hr-gold-light);
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.hr-page-btn:hover:not(:disabled) {
    border-color: var(--hr-gold-light);
    box-shadow: 0 0 10px rgba(246, 224, 163, 0.5);
}

.hr-page-btn.active {
    background: var(--hr-gold-gradient) border-box;
    border-color: transparent;
    color: #1b1204;
}

.hr-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 575.98px) {
    .hr-news-search {
        width: 100%;
    }
}

/* News catalog: page title */

.hr-page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 3rem 1rem 2.25rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 169, 80, 0.3);
    background: linear-gradient(180deg, rgba(21, 36, 74, 0.55), rgba(6, 10, 22, 0));
}

.hr-page-hero h1 {
    margin: 0;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hr-page-hero p {
    margin: 0;
    color: var(--hr-text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   Buttons: every `{.btn .btn-primary}` (blue) and `{.btn .btn-success}` (red) link in markdown
   becomes the designer's ornate button, so authors never need a custom class.
   ========================================================================== */

.btn.btn-primary,
.btn.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    max-width: 100%;
    aspect-ratio: 1024 / 330;
    padding: 0.2rem 1.6rem 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: none;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: var(--hr-btn-text-size);
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    color: #fff4d6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    transition: filter 0.15s ease, transform 0.15s ease;
}

.btn.btn-primary,
.btn.btn-primary:active {
    background-image: url("/images/home/button-blue.webp");
    background-color: transparent;
}

.btn.btn-success,
.btn.btn-success:active {
    background-image: url("/images/home/button-red.webp");
    background-color: transparent;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus-visible,
.btn.btn-success:hover,
.btn.btn-success:focus-visible {
    color: #fff;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(240, 199, 94, 0.55));
    transform: translateY(-1px);
}

.btn.btn-primary.btn-sm,
.btn.btn-success.btn-sm {
    width: 180px;
    font-size: var(--hr-btn-text-size);
}

.btn.btn-primary.d-table,
.btn.btn-success.d-table {
    display: flex !important;
}

/* A row of buttons: `::: div { .hr-actions }` */
.hr-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin: 1.75rem 0 0;
}

.hr-actions p,
.d-flex > p {
    margin: 0;
    min-width: 0;
}

/* ==========================================================================
   Page header: `::: div { .hr-page-hero }` with a `# Title` and an optional subtitle paragraph.
   (.hr-page-hero, its h1 and p are defined with the news catalog above.)
   ========================================================================== */

.hr-page-hero::after {
    content: "";
    flex: none;
    width: min(300px, 70%);
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12'%3E%3Cdefs%3E%3ClinearGradient id='l'%3E%3Cstop offset='0' stop-color='%23d4a950' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23d4a950'/%3E%3C/linearGradient%3E%3ClinearGradient id='r'%3E%3Cstop offset='0' stop-color='%23d4a950'/%3E%3Cstop offset='1' stop-color='%23d4a950' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='0' y='5.5' width='136' height='1' fill='url(%23l)'/%3E%3Crect x='164' y='5.5' width='136' height='1' fill='url(%23r)'/%3E%3Crect x='145' y='1' width='10' height='10' transform='rotate(45 150 6)' fill='%23d4a950'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ==========================================================================
   Band: `:::::: div { .hr-band .hr-band--blue }`, a full-width section with a background.
   Backgrounds: blue (dark), texture (light blue), whirlwind, taxation, shadow-tome. Add .hr-band--flush
   to drop the bottom padding. Inside, `## Title {.hr-band-title}` and a paragraph followed by
   `{.hr-band-lead}` give the heading and intro line.
   ========================================================================== */

.hr-band {
    position: relative;
    padding: 3.5rem 1rem;
    background-color: var(--hr-navy-deep);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hr-band > * {
    max-width: var(--hr-content-max);
    margin-left: auto;
    margin-right: auto;
}

.hr-band::after,
.hr-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8px;
    background: url("/images/content/devider_01.webp") center / 100% 100% no-repeat;
    pointer-events: none;
}

.hr-band--flush {
    padding-bottom: 0;
}

.hr-band-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: var(--hr-band-title-size);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

.hr-band-title--left {
    text-align: left;
}

.hr-band-lead {
    max-width: 860px;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-size: var(--hr-news-card-text-size);
    font-weight: 600;
    line-height: 1.55;
    color: var(--hr-cream);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hr-band--shadow-tome .hr-band-lead {
    font-size: var(--hr-text-lg);
    letter-spacing: 0.05em;
}

/* A button on its own line in a band is centered. */
.hr-band > p:has(> .btn:only-child) {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 0;
}

.hr-band iframe {
    display: block;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
}

.hr-band--texture,
.hr-band--blue {
    background-image: url("/images/home/bg-blue-texture.webp");
    background-size: 100% auto;
    background-repeat: repeat-y;
    background-position: center top;
}

.hr-band--blue {
    background-image:
        linear-gradient(rgba(3, 6, 16, 0.58), rgba(3, 6, 16, 0.58)),
        url("/images/home/bg-blue-texture.webp");
    background-size: 100% 100%, 100% auto;
    background-repeat: repeat, repeat-y;
    background-position: center top;
}

.hr-band--whirlwind {
    background-image:
        linear-gradient(180deg, rgba(6, 10, 22, 0.55), rgba(6, 10, 22, 0.35) 40%, rgba(6, 10, 22, 0.7)),
        url("/images/home/bg-whirlwind.webp");
}

.hr-band--taxation {
    background-image:
        linear-gradient(180deg, rgba(6, 10, 22, 0.55), rgba(6, 10, 22, 0.45)),
        url("/images/home/bg-taxation.webp");
}

.hr-band--shadow-tome {
    padding: 5rem 1rem;
    background-image:
        linear-gradient(180deg, rgba(6, 10, 22, 0.4), rgba(6, 10, 22, 0.55)),
        url("/images/home/bg-shadow-tome.webp");
}

/* ==========================================================================
   Prose: `:::: div { .hr-prose }`, long-form text in a framed panel.
   Add .hr-prose--plain for no panel, .hr-prose--wide for 1100px instead of 940px.
   ========================================================================== */

.hr-prose {
    position: relative;
    max-width: 940px;
    padding: 2rem 2.25rem;
    border: 1px solid rgba(212, 169, 80, 0.5);
    border-radius: 0.35rem;
    background: rgba(6, 10, 22, 0.78);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-size: 1.15rem;
    line-height: 1.65;
    color: #e9edf8;
}

.hr-prose--wide {
    max-width: 1100px;
}

.hr-prose.hr-prose--plain {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #f3f6ff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.hr-prose p {
    margin: 0 0 1.1rem;
}

.hr-prose h2,
.hr-prose h3 {
    margin: 2rem 0 0.85rem;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: var(--hr-gold-light);
}

.hr-prose h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.hr-prose h3 {
    font-size: 1.2rem;
}

.hr-prose > h2:first-child,
.hr-prose > h3:first-child {
    margin-top: 0;
}

.hr-prose a:not(.btn) {
    color: var(--hr-gold-light);
}

.hr-prose a:not(.btn):hover {
    color: #fff;
}

.hr-prose img {
    border-radius: 0.3rem;
}

.hr-prose img:not(.hr-icon) {
    border: 2px solid var(--hr-gold);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* A transparent product picture: no frame, just a shadow. */
.hr-prose img.hr-noframe {
    width: auto;
    max-width: 100%;
    max-height: 360px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.hr-prose ul {
    padding-left: 1.4rem;
}

.hr-prose li {
    margin-bottom: 0.5rem;
}

.hr-prose li::marker {
    color: var(--hr-gold);
}

.hr-prose hr {
    border-color: rgba(212, 169, 80, 0.4);
    opacity: 1;
}

/* A framed wide banner picture: `![](...){.hr-banner}` */
.hr-banner {
    display: block;
    width: 100%;
    max-width: 940px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Split: `::::: div { .hr-split .hr-split--right .hr-split--bottom }`, a picture beside text.
   Content: `![](img){.hr-split-img}` then `:::: div { .hr-split-body }` (add .hr-prose for a panel).
   .hr-split--right puts the picture on the right, .hr-split--bottom sits it on the section's bottom edge,
   .hr-split--frame puts a gold frame around flat art such as a card pack.
   ========================================================================== */

.hr-split {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 2.5rem;
}

.hr-split > p:has(> .hr-split-img) {
    margin: 0;
}

.hr-split--right {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.hr-split--right > p:has(> .hr-split-img) {
    order: 2;
}

.hr-split--bottom {
    align-items: end;
}

.hr-split--bottom .hr-split-body {
    align-self: center;
    padding-bottom: 3.5rem;
}

.hr-split-img {
    display: block;
    width: 100%;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.6));
}

.hr-split--bottom .hr-split-img {
    max-height: 520px;
    object-position: center bottom;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.55));
}

.hr-split--frame .hr-split-img {
    max-width: 260px;
    margin: 0 auto;
    border: 2px solid var(--hr-gold);
    border-radius: 0.3rem;
}

.hr-split-body.hr-prose {
    max-width: none;
}

.hr-split-body:not(.hr-prose) p {
    max-width: 560px;
    margin: 0 0 1.5rem;
    font-size: var(--hr-text-lg);
    letter-spacing: 0.02em;
    line-height: 1.5;
    color: var(--hr-cream);
}

.hr-split-body .hr-banner + p {
    max-width: none;
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.hr-split + .hr-card-grid {
    margin-top: 3rem;
}

/* ==========================================================================
   Cards: `::::: div { .hr-card-grid }` holding `:::: div { .hr-card .hr-card--product }` items.
   A card is `![](img)`, `## Title`, text and optionally `::: div { .hr-actions }` with buttons.
   Grid: .hr-card-grid--2 or --4 (default 3). Variants:
     --product  blue, picture on top (add .hr-card--contain for transparent artwork)
     --feature  red, picture at the bottom
     --way-red / --way-blue  text beside a photo, the button overlapping the photo
     --store    a centered logo, the card is one link: [![](logo) Title](url)
   ========================================================================== */

.hr-card-grid {
    --hr-card-gap: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hr-card-gap);
}

.hr-card-grid > .hr-card {
    flex: 0 1 calc((100% - 2 * var(--hr-card-gap)) / 3);
}

.hr-card-grid--2 {
    max-width: 1000px;
}

.hr-card-grid--2 > .hr-card {
    flex-basis: calc((100% - var(--hr-card-gap)) / 2);
}

.hr-card-grid--4 {
    --hr-card-gap: 1.25rem;
}

.hr-card-grid--4 > .hr-card {
    flex-basis: calc((100% - 3 * var(--hr-card-gap)) / 4);
}

.hr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(246, 224, 163, 0.18);
}

.hr-card > p:has(> img:only-child) {
    margin: 0;
}

.hr-card > p:has(> img:only-child) img {
    display: block;
    width: 100%;
}

.hr-card > h2 {
    margin: 0;
    overflow-wrap: anywhere;
    padding: 1.25rem 1.25rem 0;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
}

.hr-card > p:not(:has(> img:only-child)) {
    margin: 0;
    padding: 0.75rem 1.25rem 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #e4e9f7;
}

.hr-card > p a {
    color: var(--hr-gold-light);
}

.hr-card > p:last-of-type {
    padding-bottom: 1rem;
}

.hr-card > .hr-actions {
    margin-top: auto;
    padding: 0.75rem 1.25rem 1.5rem;
}

.hr-card .hr-actions .btn {
    width: 170px;
    padding-inline: 0.9rem;
    font-size: var(--hr-btn-text-size);
}

/* product */
.hr-card--product,
.hr-card--store,
.hr-card--way-blue {
    background: linear-gradient(180deg, #123083 0%, #0a1d58 100%);
}

.hr-card--product,
.hr-card--store {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hr-card--product:hover,
.hr-card--store:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 14px rgba(240, 199, 94, 0.25);
}

.hr-card--product > p:has(> img:only-child) img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-bottom: 2px solid var(--hr-gold);
}

.hr-card--product.hr-card--contain > p:has(> img:only-child) img {
    object-fit: contain;
    padding: 1.25rem;
    background: radial-gradient(circle at 50% 40%, #1b3f9e 0%, #0a1d58 75%);
}

/* feature */
.hr-card--feature,
.hr-card--way-red {
    background: linear-gradient(180deg, #8a1016 0%, #5b080d 100%);
}

.hr-card--feature > p:has(> img:only-child) {
    order: 3;
    margin-top: auto;
    padding: 0 1rem 1rem;
}

.hr-card--feature > p:has(> img:only-child) img {
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}

.hr-card--feature > h2 {
    font-size: var(--hr-news-card-title-size);
}

.hr-card--feature > p:not(:has(> img:only-child)) {
    font-size: 1rem;
    line-height: 1.5;
    color: #f3e1cf;
}

/* way: text beside a photo, the button overlapping the photo edge */
.hr-card--way-red,
.hr-card--way-blue {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto minmax(8rem, 1fr);
    min-height: clamp(250px, 21vw, 310px);
}

.hr-card--way-red > *,
.hr-card--way-blue > * {
    grid-column: 1;
}

.hr-card--way-red > p:has(> img:only-child),
.hr-card--way-blue > p:has(> img:only-child) {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 3;
    border-left: 2px solid var(--hr-gold);
    overflow: hidden;
}

.hr-card--way-red > p:has(> img:only-child) img,
.hr-card--way-blue > p:has(> img:only-child) img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}

.hr-card--way-blue > p:has(> img:only-child) img {
    object-position: 0% 50%;
}

.hr-card--way-red > h2,
.hr-card--way-blue > h2 {
    padding: 1.4rem 0.75rem 0 1.5rem;
    font-size: 22px;
}

.hr-card--way-red > p:not(:has(> img:only-child)),
.hr-card--way-blue > p:not(:has(> img:only-child)) {
    padding: 0.75rem 0.75rem 0 1.5rem;
    font-size: var(--hr-news-card-text-size);
    font-weight: 500;
    color: #f6ebd8;
}

.hr-card--way-red > .hr-actions,
.hr-card--way-blue > .hr-actions {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.hr-card--way-red .hr-actions .btn,
.hr-card--way-blue .hr-actions .btn {
    width: 260px;
    font-size: var(--hr-btn-text-size);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

/* store */
.hr-card--store {
    align-items: center;
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.hr-card--store > p {
    margin: 0;
    padding: 0;
}

.hr-card--store a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--hr-gold-light);
}

.hr-card--store a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hr-card--store img {
    width: auto;
    height: 96px;
}

@media (max-width: 991.98px) {
    .hr-card-grid > .hr-card,
    .hr-card-grid--4 > .hr-card {
        flex-basis: calc((100% - var(--hr-card-gap)) / 2);
    }

    .hr-split,
    .hr-split--right {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hr-card-grid--2 > .hr-card {
        flex-basis: 100%;
    }

    .hr-split--bottom .hr-split-body {
        padding-bottom: 0;
        text-align: center;
    }

    .hr-split--bottom .hr-split-img {
        max-height: 340px;
    }

    .hr-split--bottom .hr-band-title--left {
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hr-card-grid > .hr-card {
        flex-basis: 100%;
    }

    .hr-card--way-red,
    .hr-card--way-blue {
        display: flex;
        min-height: 0;
        text-align: center;
    }

    .hr-card--way-red > h2,
    .hr-card--way-blue > h2 {
        order: 1;
        padding: 1.5rem 1.25rem 0;
    }

    .hr-card--way-red > p:not(:has(> img:only-child)),
    .hr-card--way-blue > p:not(:has(> img:only-child)) {
        order: 1;
        padding: 0.9rem 1.25rem 1rem;
    }

    .hr-card--way-red > .hr-actions,
    .hr-card--way-blue > .hr-actions {
        position: static;
        order: 2;
        justify-content: center;
        padding: 0 1rem 1.25rem;
    }

    .hr-card--way-red > p:has(> img:only-child),
    .hr-card--way-blue > p:has(> img:only-child) {
        order: 3;
        height: 230px;
        border-left: 0;
        border-top: 2px solid var(--hr-gold);
    }

    .hr-prose {
        padding: 1.5rem 1.15rem;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Home page: the hero (a poster behind the logo, tagline and buttons) and the story scroll
   ========================================================================== */

.hr-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    min-height: clamp(420px, 40vw, 640px);
    padding: 2.5rem 1rem;
    overflow: hidden;
    text-align: center;
    background: var(--hr-navy-deep);
}

.hr-hero-media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.hr-hero-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hr-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(6, 10, 22, 0.15), rgba(6, 10, 22, 0.7) 85%),
        linear-gradient(180deg, rgba(6, 10, 22, 0.25) 0%, rgba(6, 10, 22, 0) 30%, rgba(6, 10, 22, 0.55) 100%);
}

.hr-hero > :not(.hr-hero-media) {
    position: relative;
    z-index: 1;
    margin: 0;
}

.hr-hero > p:has(> .hr-hero-logo) {
    width: min(440px, 80%);
}

.hr-hero-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
}

.hr-hero-tagline {
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.45rem);
    line-height: 1.55;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.hr-hero > .hr-actions {
    margin-top: 0.5rem;
}

.hr-scroll {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.hr-scroll-paper {
    padding: 3.4rem 3.6rem;
    background: url("/images/home/paper.webp") center / 100% 100% no-repeat;
    color: #2a1a06;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
}

.hr-scroll-paper p {
    margin: 0 0 1rem;
    font-weight: 600;
    font-size: var(--hr-news-card-text-size);
    line-height: 1.5;
}

.hr-scroll-paper p:last-child {
    margin-bottom: 0;
    font-weight: 700;
}

/* The youtube: inline media is a div inside a paragraph, which the browser splits out of it. */
.hr-scroll > p:empty {
    display: none;
}

.hr-scroll .ratio {
    max-width: none !important;
    border: 3px solid var(--hr-gold);
    border-radius: 0.25rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.hr-scroll + .hr-card-grid {
    margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
    .hr-scroll {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hr-scroll-paper {
        padding: 2.6rem 2.1rem;
    }

    .hr-scroll-paper p {
        font-size: var(--hr-news-card-text-size);
    }
}

/* ==========================================================================
   FAQ page: collapsible rule groups
   ========================================================================== */

.hr-rules-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0 0;
    padding: 0.85rem 1.25rem;
    border: 2px solid var(--hr-gold);
    border-radius: 0.3rem;
    background: linear-gradient(180deg, #123083 0%, #0a1d58 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(246, 224, 163, 0.18);
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--hr-gold-light);
    cursor: pointer;
}

.hr-rules-toggle:hover {
    filter: brightness(1.15);
}

.hr-rules-toggle::after {
    content: "\25BE";
    color: var(--hr-gold);
    transition: transform 0.2s;
}

.hr-rules-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.hr-prose h2.hr-rules-toggle {
    margin: 1.25rem 0 0;
    font-size: 1.15rem;
    text-transform: none;
}

.hr-rules .collapse > h3:first-child,
.hr-rules .collapsing > h3:first-child {
    margin-top: 1.5rem;
}

/* ==========================================================================
   News posts: the markdown keeps its structure (title, byline, images, headings, quotes);
   the .hr-post wrapper added by SiteTemplate gives it the site look.
   ========================================================================== */

.hr-post {
    padding: 2rem 1rem 3rem;
}

.hr-post-back {
    display: block;
    max-width: 880px;
    margin: 0 auto 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--hr-gold-light);
}

.hr-post-back:hover {
    color: #fff;
}

.hr-post > .container {
    max-width: 880px;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #e9edf8;
}

.hr-post h1 {
    margin: 0 0 0.5rem;
    text-align: center;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--hr-gold-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.hr-post h1 + p {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(212, 169, 80, 0.35);
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--hr-text-muted);
}

.hr-post h2,
.hr-post h3,
.hr-post h4 {
    margin: 2rem 0 0.9rem;
    font-family: var(--hr-heading-font);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.03em;
    color: var(--hr-gold-light);
}

.hr-post h2 {
    font-size: 1.6rem;
    text-transform: uppercase;
}

.hr-post h3 {
    font-size: 1.3rem;
}

.hr-post h4 {
    font-size: 1.1rem;
}

.hr-post p {
    margin: 0 0 1.15rem;
}

.hr-post a:not(.btn) {
    color: var(--hr-gold-light);
    text-underline-offset: 0.15em;
}

.hr-post a:not(.btn):hover {
    color: #fff;
}

.hr-post img {
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.hr-post img.hr-post-img-small {
    max-width: min(100%, 480px);
}

.hr-post blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--hr-gold);
    border-radius: 0 0.35rem 0.35rem 0;
    background: rgba(212, 169, 80, 0.08);
    font-style: italic;
    color: #f3e9cf;
}

.hr-post blockquote p:last-child {
    margin-bottom: 0;
}

.hr-post ul,
.hr-post ol {
    padding-left: 1.5rem;
}

.hr-post li {
    margin-bottom: 0.5rem;
}

.hr-post li::marker {
    color: var(--hr-gold);
}

.hr-post hr {
    border-color: rgba(212, 169, 80, 0.4);
    opacity: 1;
}

.hr-post .ratio {
    border: 2px solid var(--hr-gold);
    border-radius: 0.35rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.hr-post .ratio iframe {
    border: 0;
}

@media (max-width: 575.98px) {
    .hr-post {
        padding: 1.25rem 0.75rem 2rem;
    }

    .hr-post > .container {
        font-size: 1.1rem;
    }
}
