/*
=======================================
THE CRIMSON COURT HUB
=======================================

/crimson-court, which used to be six portal tiles and nothing else, is now the
wiki's front page. Palette, type and textures all come from crimson-court.css;
nothing here redefines a token.

Section rhythm: every band is .hub-section, separated by a gold hairline, with
one .hub-head at the top carrying an eyebrow, a title and an optional link out
to the full page. Border, fill and glow are spent by role rather than stamped on
every block - the session cards and archive tiles are objects you click, the
heirs and houses bands are fields you scan.
*/

/* .royal-header (68px, fixed) + .court-index-nav (46px, fixed under it). */
.court-hub-page .hub-banner {
    padding-top: calc(var(--court-header-h) + var(--court-index-h) + 2.5rem);
    padding-bottom: 2.75rem;
}

.court-hub-page main {
    display: block;
}

/* ======================
   SECTION FURNITURE
   ====================== */
.hub-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    position: relative;
    overflow: visible;
}

.hub-section:last-of-type {
    border-bottom: 0;
}

.hub-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hub-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--crimson-light);
    margin: 0 0 7px;
}

.hub-head h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.55rem, 3.6vw, 2.15rem);
    font-weight: 700;
    color: var(--royal-gold-light);
    margin: 0;
    text-wrap: balance;
}

.hub-lede {
    margin: 7px 0 0;
    color: rgba(244, 233, 201, 0.62);
    font-size: 0.98rem;
    max-width: 56ch;
}

.hub-more {
    font-family: 'Cinzel', serif;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--royal-gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    padding-bottom: 3px;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hub-more:hover,
.hub-more:focus-visible {
    color: var(--royal-gold-light);
    border-bottom-color: var(--royal-gold);
}

.hub-loading,
.hub-empty {
    color: rgba(244, 233, 201, 0.4);
    font-family: 'EB Garamond', serif;
    font-style: italic;
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px 0;
}

.hub-empty a {
    color: var(--royal-gold);
}

/* ======================
   1. REALM AT A GLANCE
   ====================== */
.hub-glance {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 34px;
    align-items: start;
}

.hub-premise {
    background:
        linear-gradient(rgba(20, 19, 30, 0.88), rgba(20, 19, 30, 0.92)),
        url('../assets/images/parchment-texture.png');
    background-size: cover;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-left: 3px solid var(--crimson-blood);
    padding: 28px 30px;
}

.hub-premise h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--royal-gold-light);
    margin: 0 0 12px;
}

.hub-premise p {
    margin: 0 0 13px;
    color: rgba(244, 233, 201, 0.88);
    font-family: 'EB Garamond', serif;
    font-size: 1.04rem;
    line-height: 1.7;
}

.hub-premise p:last-child {
    margin-bottom: 0;
}

.hub-drop::first-letter {
    font-family: 'Uncial Antiqua', 'Cinzel', serif;
    font-size: 3.1rem;
    line-height: 0.82;
    float: left;
    padding: 4px 10px 0 0;
    color: var(--crimson-light);
}

/* -- latest session -- */
.hub-latest {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #1B1926;
    overflow: hidden;
}

.hub-latest-flag {
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson-blood));
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 7px 16px;
    color: var(--royal-gold-light);
}

.hub-latest-link {
    display: block;
    text-decoration: none;
}

.hub-latest-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.hub-latest-body {
    padding: 18px 20px 4px;
}

.hub-latest-meta {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--crimson-light);
    margin-bottom: 6px;
}

.hub-latest h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.28rem;
    color: var(--parchment);
    margin: 0 0 6px;
    line-height: 1.25;
}

.hub-latest-when {
    font-family: 'EB Garamond', serif;
    font-size: 0.88rem;
    color: rgba(244, 233, 201, 0.4);
    font-style: italic;
    margin: 0;
}

.hub-latest-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 20px 20px;
}

.hub-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 9px 15px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--royal-gold);
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.hub-btn:hover,
.hub-btn:focus-visible {
    background: var(--royal-gold);
    color: var(--royal-black);
    border-color: var(--royal-gold);
}

.hub-btn-watch {
    border-color: rgba(195, 10, 61, 0.6);
    color: var(--crimson-light);
}

.hub-btn-watch:hover,
.hub-btn-watch:focus-visible {
    background: var(--crimson-blood);
    color: var(--parchment);
    border-color: var(--crimson-blood);
}

/* -- state of the realm -- */
.hub-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-top: 2px solid var(--royal-gold);
    background: #14131E;
}

.hub-stat {
    padding: 19px 16px;
    text-align: center;
    border-left: 1px solid rgba(212, 175, 55, 0.14);
}

.hub-stat:first-child {
    border-left: 0;
}

.hub-stat b {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--royal-gold);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hub-stat span {
    display: block;
    margin-top: 4px;
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(244, 233, 201, 0.4);
}

/* ======================
   2. THE HEIRS
   ====================== */
.hub-heirs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.hub-heir {
    position: relative;
    display: block;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: #14131E;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hub-heir:hover,
.hub-heir:focus-visible {
    transform: translateY(-6px);
    border-color: var(--heir-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), 0 0 22px var(--heir-glow);
}

.hub-heir-portrait {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #262232;
}

.hub-heir-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.28s ease, transform 0.5s ease;
}

.hub-heir-portrait .is-silhouette {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.hub-heir:hover .is-base,
.hub-heir:focus-visible .is-base {
    opacity: 0;
}

.hub-heir:hover .is-silhouette,
.hub-heir:focus-visible .is-silhouette {
    opacity: 1;
    transform: scale(1.04);
}

/* Keeps the nameplate legible over the lightest part of a portrait. */
.hub-heir::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 15, 26, 0.94) 92%);
}

.hub-heir-plate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 13px 13px 15px;
    text-align: center;
}

.hub-heir-rule {
    display: block;
    height: 1px;
    width: 34px;
    margin: 0 auto 8px;
    background: var(--heir-color);
    opacity: 0.75;
}

.hub-heir h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--parchment);
    line-height: 1.22;
    margin: 0;
}

.hub-heir em {
    display: block;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.79rem;
    color: var(--heir-color);
    margin-top: 3px;
}

/* ======================
   3. THE GREAT HOUSES
   ====================== */
.hub-houses {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid rgba(212, 175, 55, 0.14);
    background:
        linear-gradient(rgba(15, 15, 26, 0.86), rgba(15, 15, 26, 0.93)),
        url('../assets/images/dark-texture.png');
    background-size: cover;
}

.hub-house {
    padding: 26px 12px 22px;
    text-align: center;
    border-left: 1px solid rgba(212, 175, 55, 0.14);
    text-decoration: none;
    transition: background 0.22s ease;
}

.hub-house:first-child {
    border-left: 0;
}

.hub-house:hover,
.hub-house:focus-visible {
    background: linear-gradient(180deg, transparent, var(--house-glow));
}

.hub-house img {
    width: 74px;
    height: 84px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    filter: grayscale(0.42) brightness(0.85);
    transition: filter 0.24s ease, transform 0.24s ease;
}

.hub-house:hover img,
.hub-house:focus-visible img {
    filter: none;
    transform: translateY(-4px) scale(1.06);
}

.hub-house h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--parchment);
    line-height: 1.25;
    margin: 0;
}

.hub-house em {
    display: block;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.75rem;
    color: rgba(244, 233, 201, 0.4);
    margin-top: 5px;
    transition: color 0.22s ease;
}

.hub-house:hover em,
.hub-house:focus-visible em {
    color: var(--house-color);
}

/* ======================
   4. THE CHRONICLE
   ====================== */
.hub-acts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.hub-act-btn {
    font-family: 'Cinzel', serif;
    font-size: 0.71rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 8px 16px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: rgba(244, 233, 201, 0.62);
    background: transparent;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hub-act-btn:hover {
    color: var(--royal-gold-light);
    border-color: rgba(212, 175, 55, 0.28);
}

.hub-act-btn[aria-pressed="true"] {
    background: var(--crimson-dark);
    border-color: var(--crimson-blood);
    color: var(--royal-gold-light);
}

.hub-chronicle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* An act band is a full-width rule across the card grid. */
.hub-act-band {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 2px;
}

.hub-act-band:not(:first-child) {
    margin-top: 30px;
}

.hub-act-band h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--royal-gold);
    white-space: nowrap;
    margin: 0;
}

.hub-act-band em {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 0.88rem;
    color: rgba(244, 233, 201, 0.4);
    white-space: nowrap;
}

.hub-act-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.28), transparent);
}

.hub-session {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: #14131E;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-session:hover,
.hub-session:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hub-session-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #262232;
    flex: none;
}

.hub-session-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-session:hover .hub-session-thumb img {
    transform: scale(1.05);
}

/* Stand-in for a session with no art yet, so the card keeps its shape. */
.hub-session-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(212, 175, 55, 0.28);
}

.hub-session-num {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(15, 15, 26, 0.88);
    border-right: 1px solid rgba(212, 175, 55, 0.28);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    padding: 6px 12px;
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--royal-gold);
}

.hub-session-yt {
    position: absolute;
    bottom: 9px;
    right: 9px;
    width: 33px;
    height: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(195, 10, 61, 0.93);
    color: var(--parchment);
    font-size: 0.76rem;
    border-radius: 2px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55);
}

.hub-session-body {
    padding: 15px 17px 17px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
}

.hub-session h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.07rem;
    font-weight: 600;
    color: var(--parchment);
    line-height: 1.28;
    margin: 0;
}

.hub-session-when {
    font-family: 'EB Garamond', serif;
    font-size: 0.81rem;
    color: rgba(244, 233, 201, 0.4);
    font-style: italic;
}

.hub-session-teaser {
    font-family: 'EB Garamond', serif;
    font-size: 0.91rem;
    color: rgba(244, 233, 201, 0.62);
    margin: 0;
    flex: 1;
}

.hub-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-chip {
    font-family: 'EB Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    padding: 3px 9px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: rgba(244, 233, 201, 0.4);
    border-radius: 2px;
}

/* A chip whose place has a pin on the realm map leads to it (court-hub.js
   follows data-realm, since the card is already a link). */
.hub-chip-link {
    color: var(--royal-gold);
    border-color: var(--court-border);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.hub-chip-link:hover {
    background: var(--court-hover);
    color: var(--royal-gold-light);
}

/* ======================
   5. THE REALM (MAP)
   ====================== */
.hub-map-frame {
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #14131E;
    padding: 11px;
}

.hub-map-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 0 4px 11px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    margin-bottom: 11px;
}

.hub-map-caption h3 {
    font-family: 'Uncial Antiqua', 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--royal-gold);
    margin: 0;
}

.hub-map-filters {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.hub-mf {
    font-family: 'Cinzel', serif;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 11px;
    border: 1px solid rgba(212, 175, 55, 0.14);
    color: rgba(244, 233, 201, 0.62);
    background: transparent;
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hub-mf[aria-pressed="true"] {
    border-color: var(--royal-gold);
    color: var(--royal-gold);
    background: rgba(212, 175, 55, 0.08);
}

.hub-map-stage {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #262232;
}

#hub-map {
    width: 100%;
    height: 100%;
    background: #0F0F1A;
}

/* Leaflet paints its own light chrome; these put it back in the court's. */
.hub-map-stage .leaflet-container {
    background: #0F0F1A;
    font-family: 'EB Garamond', serif;
}

.hub-map-stage .leaflet-control-zoom a {
    background: rgba(15, 15, 26, 0.9);
    color: var(--royal-gold);
    border-color: rgba(212, 175, 55, 0.28);
}

.hub-map-stage .leaflet-control-zoom a:hover {
    background: var(--crimson-dark);
    color: var(--royal-gold-light);
}

.hub-pin-dot {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--royal-gold-light);
    background: var(--crimson-blood);
    box-shadow: 0 0 9px rgba(195, 10, 61, 0.85);
    transition: transform 0.18s ease;
}

.hub-pin:hover .hub-pin-dot {
    transform: scale(1.35);
}

.hub-pin-nation .hub-pin-dot { background: var(--royal-gold); }
.hub-pin-region .hub-pin-dot { background: var(--royal-velvet); }
.hub-pin-landmark .hub-pin-dot { background: var(--crimson-dark); }

.hub-map-stage .hub-tip {
    background: rgba(15, 15, 26, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--parchment);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    box-shadow: none;
}

.hub-map-stage .hub-tip::before {
    border-top-color: rgba(212, 175, 55, 0.28);
}

.hub-map-stage .hub-popup .leaflet-popup-content-wrapper {
    background: #1B1926;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 2px;
    color: var(--parchment);
}

.hub-map-stage .hub-popup .leaflet-popup-tip {
    background: #1B1926;
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.hub-map-stage .hub-popup a.leaflet-popup-close-button {
    color: rgba(244, 233, 201, 0.62);
}

.hub-pop-type {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--crimson-light);
}

.hub-pop h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--royal-gold-light);
    margin: 4px 0 6px;
}

.hub-pop p {
    font-family: 'EB Garamond', serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(244, 233, 201, 0.75);
    margin: 0 0 8px;
}

/* The sessions played here, as a row of links back into the chronicle. */
.hub-pop-sessions {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 0 0 10px;
}

.hub-pop-sessions-label {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--crimson-light);
    width: 100%;
}

.hub-pop-sessions a {
    font-family: 'Cinzel', serif;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: var(--parchment);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 2px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.hub-pop-sessions a:hover,
.hub-pop-sessions a:focus-visible {
    background: #262232;
    border-color: var(--royal-gold);
}

.hub-pop-sessions-more {
    font-family: 'EB Garamond', serif;
    font-size: 0.8rem;
    color: rgba(244, 233, 201, 0.55);
}

.hub-pop-link {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--royal-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

/* Static stand-in used on touch-width screens. */
.hub-map-static {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hub-map-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-map-static-cta {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid var(--royal-gold);
    color: var(--royal-gold);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 9px 16px;
    white-space: nowrap;
}

/* ======================
   6. THE ARCHIVES
   ====================== */
.hub-archives {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.hub-arch {
    border: 1px solid rgba(212, 175, 55, 0.14);
    background: #14131E;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hub-arch:hover,
.hub-arch:focus-visible {
    border-color: rgba(212, 175, 55, 0.28);
    background: #1B1926;
}

.hub-arch-ico {
    font-size: 1.3rem;
    color: var(--royal-gold);
    margin-bottom: 3px;
}

.hub-arch h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.08rem;
    color: var(--parchment);
    margin: 0;
}

.hub-arch p {
    margin: 0;
    font-family: 'EB Garamond', serif;
    font-size: 0.9rem;
    color: rgba(244, 233, 201, 0.62);
}

.hub-arch-count {
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--crimson-light);
    margin-top: 3px;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 1020px) {
    .hub-glance {
        grid-template-columns: 1fr;
    }

    .hub-heirs {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-houses {
        grid-template-columns: repeat(3, 1fr);
    }

    .hub-house:nth-child(3n + 1) {
        border-left: 0;
    }

    .hub-house:nth-child(n + 4) {
        border-top: 1px solid rgba(212, 175, 55, 0.14);
    }

    .hub-chronicle {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-archives {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .hub-map-stage {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 660px) {
    .hub-section {
        padding: 44px 0;
    }

    .hub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-stat {
        border-top: 1px solid rgba(212, 175, 55, 0.14);
    }

    .hub-stat:nth-child(odd) {
        border-left: 0;
    }

    /* Five tiles over two columns leaves one alone on the last row; let it
       take the full width rather than sit in a half-empty track. */
    .hub-stat:last-child {
        grid-column: 1 / -1;
    }

    .hub-heirs {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-houses {
        grid-template-columns: repeat(2, 1fr);
    }

    .hub-house:nth-child(3n + 1) {
        border-left: 1px solid rgba(212, 175, 55, 0.14);
    }

    .hub-house:nth-child(odd) {
        border-left: 0;
    }

    .hub-house:nth-child(n + 3) {
        border-top: 1px solid rgba(212, 175, 55, 0.14);
    }

    .hub-chronicle {
        grid-template-columns: 1fr;
    }

    .hub-act-band em {
        display: none;
    }

    .hub-premise {
        padding: 22px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hub-heir,
    .hub-session,
    .hub-house img,
    .hub-heir-portrait img,
    .hub-session-thumb img,
    .hub-pin-dot {
        transition: none;
    }

    .hub-heir:hover,
    .hub-session:hover {
        transform: none;
    }

    .hub-house:hover img,
    .hub-session:hover .hub-session-thumb img {
        transform: none;
    }
}
