/* mkmobile.info v2 - design tokens and components.
   Colour carries game meaning: tier colours mark card rarity, blood red only means "time is running out".
   Display type is the site's own SevenElevenSerif (caps by design); everything else is Barlow. */

@font-face {
    font-family: "SevenEleven";
    src: url(/fonts/SevenElevenSerif.otf) format("opentype");
    font-display: swap;
}

:root {
    --ink: #1c1517;
    --ink-raised: #261d20;
    --ink-line: #3a2d31;
    --bone: #eee6d8;
    --bone-muted: #b5aa9c;
    --gold: #e2b33c;
    --blood: #d3263a;
    --bronze: #b87333;
    --silver: #aeb8c2;
    --diamond: #7dd8f2;
    --epic: #a66cff;
    --rare: #5b8def;

    --font-display: "SevenEleven", "Barlow Condensed", Impact, serif;
    --font-text: "Barlow", system-ui, sans-serif;
    --font-hud: "Barlow Condensed", "Barlow", system-ui, sans-serif;

    /* 1.25 scale on a 17px body */
    --step--1: .85rem;
    --step-0: 1.0625rem;
    --step-1: 1.33rem;
    --step-2: 1.66rem;
    --step-3: 2.07rem;
    --step-4: 2.6rem;
    --step-5: 3.25rem;

    --gutter: clamp(16px, 4vw, 40px);
    --max: 1240px;
}

/* Legacy overrides: the old stylesheet set Comfortaa on every element and a fixed-navbar padding */
* { font-family: inherit; }
.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands { font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands"; }
.fab, .fa-brands { font-family: "Font Awesome 6 Brands"; }
body {
    padding-top: 0 !important;
    background: var(--ink) !important;
    background-image: none !important;
    color: var(--bone);
    font-family: var(--font-text);
    font-size: var(--step-0);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body a:not(.btn):not(.dropdown-item):not(.nav-link):not(.page-link) { color: var(--bone); text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }
body a:not(.btn):not(.dropdown-item):not(.nav-link):not(.page-link):hover { color: var(--gold); }
body :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body img { max-width: 100%; height: auto; }
body h1, body h2, body h3, body h4, body h5 { font-family: var(--font-display); font-weight: normal; letter-spacing: .02em; line-height: 1.15; margin: 0; color: var(--bone); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--bone-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font-family: var(--font-display); font-size: 1.35rem; color: var(--bone); letter-spacing: .03em; }
.brand:hover span { color: var(--gold); }
.main-nav { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 12px; font-family: var(--font-hud); font-size: 1.12rem; font-weight: 600; text-decoration: none; color: var(--bone-muted); border-radius: 4px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--bone); background: var(--ink-raised); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--bone-muted); text-decoration: none; border: 1px solid var(--ink-line); background: none; }
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 420px) { .brand span { font-size: 1.05rem; } .brand img { width: 32px; height: 32px; } }
@media (max-width: 900px) {
    .site-header .wrap { gap: 12px; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 8px var(--gutter) 16px; }
    .main-nav.open { display: flex; }
    .main-nav a { font-size: 1.3rem; padding: 12px 8px; }
}

/* ---------- buttons ---------- */
.btn-v2 { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 4px; font-family: var(--font-hud); font-size: 1.1rem; font-weight: 600; text-decoration: none; border: 1px solid var(--gold); color: var(--ink) !important; background: var(--gold); }
.btn-v2:hover { background: #f0c552; }
.btn-v2.ghost { background: none; color: var(--bone) !important; border-color: var(--ink-line); }
.btn-v2.ghost:hover { border-color: var(--gold); color: var(--gold) !important; }

/* ---------- section heads ---------- */
.section { padding-top: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.7rem, 7vw, var(--step-3)); }
.section-head p { margin: 6px 0 0; color: var(--bone-muted); max-width: 60ch; }
.section-head .more { font-family: var(--font-hud); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

/* ---------- health bar: time left on a running event ---------- */
.hp { --left: 1; position: relative; height: 14px; background: #120d0f; border: 1px solid #000; box-shadow: 0 0 0 1px var(--ink-line); border-radius: 2px; overflow: hidden; }
.hp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #f5d36a 0%, var(--gold) 55%, #b9861d 100%); transform-origin: left; transform: scaleX(var(--left)); }
.hp.low::after { background: linear-gradient(180deg, #ef5a6a 0%, var(--blood) 60%, #8f1424 100%); }
.hp.thin { height: 8px; }
.hp-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-family: var(--font-hud); font-size: 1.05rem; color: var(--bone-muted); }
.hp-meta strong { color: var(--bone); font-weight: 600; }
.hp-meta .low { color: #ff6b7b; }
@media (prefers-reduced-motion: no-preference) {
    .hp.drain::after { animation: hp-drain 1.1s .25s cubic-bezier(.3, .7, .2, 1) both; }
    @keyframes hp-drain { from { transform: scaleX(1); } }
}

/* ---------- live board (home hero) ---------- */
.live { padding-top: clamp(24px, 4vw, 48px); }
.live-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.live h1 { font-size: var(--step-1); font-family: var(--font-hud); font-weight: 600; letter-spacing: 0; color: var(--bone-muted); margin-bottom: 14px; }
.challenge { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; grid-template-areas: "art head" "art bar" "art actions"; grid-template-rows: auto auto 1fr; column-gap: clamp(16px, 2.5vw, 28px); background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 6px; padding: clamp(14px, 2vw, 22px); }
.challenge + .challenge { margin-top: 14px; }
.challenge .art { grid-area: art; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: #0e0a0b; align-self: start; }
.challenge .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.challenge .head { grid-area: head; }
.challenge .kind { color: var(--bone-muted); margin: 0 0 10px; }
.challenge h2 a { text-decoration: none; }
.name-main { display: block; font-size: var(--step-5); text-wrap: balance; overflow-wrap: anywhere; }
.name-variant { display: block; font-family: var(--font-hud); font-weight: 600; font-size: var(--step-2); color: var(--gold); letter-spacing: 0; margin-top: 4px; }
.challenge .bar { grid-area: bar; margin-top: 18px; }
.challenge .bar .hp { height: 18px; }
.challenge .actions { grid-area: actions; margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; align-self: start; }
.challenge.compact { grid-template-columns: 96px 1fr; }
.challenge.compact .name-main { font-size: var(--step-3); }
.challenge.compact .name-variant { font-size: var(--step-1); }
.challenge.compact .bar .hp { height: 12px; }

.aside-title { font-family: var(--font-hud) !important; font-weight: 600; font-size: var(--step-1) !important; color: var(--bone-muted) !important; letter-spacing: 0 !important; margin-bottom: 12px !important; }
.running { list-style: none; margin: 0; padding: 0; }
.running li { padding: 14px 0; border-bottom: 1px solid var(--ink-line); }
.running li:first-child { padding-top: 0; }
.running a.title { font-family: var(--font-hud); font-size: 1.3rem; font-weight: 600; text-decoration: none; display: block; margin-bottom: 8px; }
.running a.title:hover { color: var(--gold); }
.rotation { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--ink-line); border-radius: 6px; }
.rotation strong { font-family: var(--font-hud); font-size: 1.25rem; display: block; }

@media (max-width: 900px) {
    .live-grid { grid-template-columns: 1fr; }
    .challenge, .challenge.compact { grid-template-columns: 96px 1fr; grid-template-areas: "art head" "bar bar" "actions actions"; grid-template-rows: auto; }
    .challenge .head { align-self: center; }
    .name-main, .challenge.compact .name-main { font-size: var(--step-3); }
    .name-variant, .challenge.compact .name-variant { font-size: var(--step-1); }
    .challenge .actions .btn-v2 { flex: 1 1 auto; justify-content: center; }
}

/* ---------- tier cards (characters) ---------- */
.tier-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; padding: 0; list-style: none; }
.tier-tabs a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--ink-line); text-decoration: none; font-family: var(--font-hud); font-size: 1.15rem; font-weight: 600; }
.tier-tabs a[class*="t-"]::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--t, var(--bone-muted)); transform: rotate(45deg); align-self: center; }
.tier-tabs a span { color: var(--bone-muted); font-weight: 500; }
.tier-tabs a[aria-current="page"], .tier-tabs a:hover { border-color: var(--t, var(--gold)); color: var(--bone); }
.t-bronze { --t: var(--bronze); } .t-silver { --t: var(--silver); } .t-gold { --t: var(--gold); } .t-diamond { --t: var(--diamond); }
.t-epic { --t: var(--epic); } .t-rare { --t: var(--rare); } .t-uncommon { --t: #6fbf73; } .t-common { --t: var(--silver); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 42vw), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card-v2 { position: relative; display: block; text-decoration: none; background: var(--ink-raised); border-radius: 6px; overflow: hidden; border: 1px solid var(--ink-line); border-top: 3px solid var(--t, var(--ink-line)); }
.card-v2:hover { border-color: var(--t, var(--gold)); }
.card-v2 .art { aspect-ratio: 3 / 4; background: #0e0a0b; }
.card-v2 .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-v2 .body { padding: 10px 12px 12px; }
.card-v2 .name { font-family: var(--font-hud); font-size: 1.18rem; font-weight: 600; line-height: 1.15; color: var(--bone); }
.card-v2 .sub { font-size: var(--step--1); color: var(--bone-muted); margin-top: 2px; }
.card-v2 .score { position: absolute; top: 8px; right: 8px; font-family: var(--font-hud); font-weight: 700; font-size: 1.05rem; padding: 2px 8px; border-radius: 3px; background: rgba(14, 10, 11, .85); color: var(--t, var(--gold)); }
.card-v2.wide .art { aspect-ratio: 16 / 10; }

/* ---------- rows (guides, events list) ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row-v2 { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--ink-line); }
.row-v2:first-child { border-top: 1px solid var(--ink-line); }
.row-v2 .thumb { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0e0a0b; }
.row-v2 .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-v2 h3 { font-family: var(--font-hud); font-weight: 600; font-size: var(--step-1); line-height: 1.2; letter-spacing: 0; }
.row-v2 h3 a { text-decoration: none; }
.row-v2 p { margin: 6px 0 0; color: var(--bone-muted); max-width: 70ch; }
.row-v2 .when { font-family: var(--font-hud); color: var(--bone-muted); font-size: 1rem; margin-top: 6px; }
@media (max-width: 600px) { .row-v2 { grid-template-columns: 96px 1fr; gap: 12px; } .row-v2 p { display: none; } }

/* ---------- event grid on /events ---------- */
.event-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.event-card { display: grid; grid-template-columns: 92px 1fr; gap: 14px; padding: 12px; background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 6px; text-decoration: none; }
.event-card:hover { border-color: var(--gold); }
.event-card .art { aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: #0e0a0b; }
.event-card .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-card .name { font-family: var(--font-hud); font-weight: 600; font-size: 1.22rem; line-height: 1.15; color: var(--bone); }
.event-card .dates { font-family: var(--font-hud); color: var(--bone-muted); margin-top: 4px; }
.event-card .state { margin-top: 10px; font-family: var(--font-hud); font-size: 1rem; }
.event-card .state.on { color: var(--gold); }
.event-card .hp { margin-top: 6px; }
.event-card .hp-meta { flex-direction: column; gap: 0; font-size: .98rem; }

/* ---------- page head, pagination, search ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 28px; }
.page-head + section { margin-top: 8px; }
.page-head h1 { font-size: clamp(2.1rem, 9vw, var(--step-5)); line-height: 1.2; overflow-wrap: anywhere; }
.page-head p { color: var(--bone-muted); max-width: 62ch; margin: 10px 0 0; font-size: var(--step-1); line-height: 1.4; }
.crumbs { font-family: var(--font-hud); font-size: 1rem; color: var(--bone-muted); margin-bottom: 10px; }
.crumbs a { color: var(--bone-muted); }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.search-v2 { display: flex; gap: 0; max-width: 360px; flex: 1 1 260px; }
.search-v2 input { flex: 1; min-width: 0; background: var(--ink-raised); border: 1px solid var(--ink-line); border-right: 0; color: var(--bone); padding: 9px 12px; border-radius: 4px 0 0 4px; font: inherit; }
.search-v2 button { border: 1px solid var(--ink-line); background: var(--ink-raised); color: var(--bone-muted); padding: 0 14px; border-radius: 0 4px 4px 0; }
.search-v2 button:hover { color: var(--gold); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; margin: 32px 0 0; font-family: var(--font-hud); font-size: 1.1rem; }
.pager a, .pager span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--ink-line); border-radius: 4px; text-decoration: none; }
.pager a:hover { border-color: var(--gold); color: var(--gold); }
.pager [aria-current="page"] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.pager .gap { border: 0; min-width: 20px; padding: 0; color: var(--bone-muted); }
@media (max-width: 600px) {
    .tier-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
    .tier-tabs::-webkit-scrollbar { display: none; }
    .tier-tabs a { white-space: nowrap; }
    .toolbar .tier-tabs { width: calc(100% + 2 * var(--gutter)); }
    .cards { gap: 10px; }
    .card-v2 .name { font-size: 1.05rem; }
}
.empty { padding: 32px; border: 1px dashed var(--ink-line); border-radius: 6px; color: var(--bone-muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--ink-line); padding: 40px 0 28px; color: var(--bone-muted); font-size: .98rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-family: var(--font-hud); font-size: 1.15rem; font-weight: 600; color: var(--bone); margin-bottom: 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--bone-muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink-line); font-size: .9rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.toolbar .tier-tabs { margin-bottom: 0; }

/* ---------- footer extras ---------- */
.site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.8fr; }
.site-footer .social { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .newsletter p { margin: 0 0 10px; }
.site-footer .newsletter .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-footer .newsletter .form-control { background: var(--ink-raised); border: 1px solid var(--ink-line); color: var(--bone); margin-bottom: 8px; }
.site-footer .newsletter .form-control::placeholder { color: var(--bone-muted); }
.site-footer .newsletter .btn-v2 { margin-top: 4px; }
@media (max-width: 1000px) { .site-footer .cols { grid-template-columns: 1fr 1fr 1fr; } .site-footer .about, .site-footer .newsletter { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- account menu ---------- */
.account-menu { background: var(--ink-raised); border: 1px solid var(--ink-line); }
.account-menu .dropdown-item { color: var(--bone); font-family: var(--font-hud); font-size: 1.1rem; padding: 8px 18px; }
.account-menu .dropdown-item:hover { background: var(--ink-line); color: var(--gold); }
.account-menu .dropdown-divider { border-color: var(--ink-line); }

/* ---------- ads ----------
   Placements: .ad-slot blocks from ad_unit()/v2_ad(). Auto Ads may also inject into any container;
   inside our grids they take a full row instead of squeezing into a card-sized cell. */
.ad-slot { margin: 28px 0; min-height: 100px; text-align: center; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .75rem; color: var(--bone-muted); margin-bottom: 4px; }
.cards > :not(li), .event-cards > :not(li), .cards > li.ad-row, .event-cards > li.ad-row { grid-column: 1 / -1; }
.rows > .google-auto-placed, .running > .google-auto-placed { list-style: none; }
.google-auto-placed { margin: 24px auto !important; }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.layout-sidebar > aside { position: sticky; top: 84px; }
@media (max-width: 1000px) { .layout-sidebar { grid-template-columns: 1fr; } .layout-sidebar > aside { position: static; } }

/* ---------- legacy content pages (detail templates still use Bootstrap markup) ---------- */
body .bg-secondary, body .bg-dark, body .bg-c1, body .card { background-color: var(--ink-raised) !important; }
body .bg-c3, body .bg-c4, body .bg-primary { background-color: var(--ink-raised) !important; }
body .text-secondary, body .text-white-50, body .text-muted { color: var(--bone-muted) !important; }
body .text-c1, body .text-c2, body .text-c3, body .text-light, body .text-white { color: var(--bone) !important; }
body .text-c4 { color: var(--gold) !important; }
body .border, body .border-bottom, body .border-top, body .img-thumbnail { border-color: var(--ink-line) !important; }
body .img-thumbnail { background: #0e0a0b; padding: 0; border-radius: 6px; }
body .breadcrumb { background: none !important; padding: 0 !important; margin: 0; font-family: var(--font-hud); font-size: 1rem; }
body .breadcrumb-item, body .breadcrumb-item a, body .breadcrumb-item + .breadcrumb-item::before { color: var(--bone-muted) !important; }
body .breadcrumb-holder { position: static !important; padding-top: 18px; }
body .btn-c4, body .btn-primary { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--ink) !important; font-family: var(--font-hud); font-weight: 600; }
body .form-control, body .form-select, body .input-group-text { background-color: var(--ink-raised); border-color: var(--ink-line); color: var(--bone); }
body .form-control:focus { background-color: var(--ink-raised); color: var(--bone); border-color: var(--gold); box-shadow: none; }
body .modal-content { background: var(--ink-raised); color: var(--bone); border: 1px solid var(--ink-line); }
body .nav-tabs .nav-link { color: var(--bone-muted); }
body .nav-tabs .nav-link.active { background: var(--ink); color: var(--bone); border-color: var(--ink-line); }
body .table-dark { --bs-table-bg: var(--ink-raised); }
body .page-link { background: var(--ink-raised); border-color: var(--ink-line); color: var(--bone); }
body .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: var(--ink); }
body main > .container, body main > section > .container { max-width: var(--max); }
.cards > li > .card-v2, .event-cards > li > .event-card { height: 100%; }
.card-v2 .hp-meta { flex-direction: column; gap: 0; font-size: .98rem; }

/* Auto Ads sometimes size a unit wider than its container; never let it cause sideways scrolling */
html, body { overflow-x: clip; }
ins.adsbygoogle, .google-auto-placed, [id^="aswift_"][id$="_host"] { max-width: 100% !important; }

/* Detail pages (character, equipment, event, tower, blog post) */
body main h1 { font-size: clamp(2rem, 6vw, var(--step-4)); line-height: 1.22; }
body main .col-lg-3 h4, body main .col-lg-4 h4 { font-size: var(--step-2); }
body main .col-lg-3 h4 u, body main .col-lg-4 h4 u { text-decoration: none; }
body main .col-lg-3 h5, body main .col-lg-4 h5, body main .card-title { font-family: var(--font-hud); font-weight: 600; font-size: 1.15rem !important; letter-spacing: 0; line-height: 1.2; color: var(--bone) !important; margin-top: 8px; }
body main h4 { font-size: var(--step-2); }
body main h3 { font-size: var(--step-2); }
body main .col-lg-9 p, body main .col-lg-9 li, body main .col-lg-8 p, body main .col-lg-8 li { max-width: 75ch; }
body main a { color: var(--gold); }
body main a.stretched-link, body main .card a, body main .col-lg-3 a { color: inherit; }
body main h1 .name-main { font-size: inherit; } body main h1 .name-variant { font-size: var(--step-2); }
/* Headings inside written content (CKEditor) sit below the page title */
body main :is(.col-lg-9, .col-lg-8, .col-12) :is(h2, h3, h4, h5):not(.modal-title):not(.card-title) { font-family: var(--font-hud); font-weight: 700; font-size: 1.5rem; letter-spacing: 0; line-height: 1.25; margin: 1.4em 0 .4em; color: var(--bone); }
body main :is(.col-lg-9, .col-lg-8, .col-12) h2 { font-size: 1.75rem; }
body main .col-lg-3 h3 { font-size: var(--step-2); margin: 28px 0 12px; }
body main .col-lg-3 h4:not(:has(u)) { font-family: var(--font-hud); font-weight: 600; font-size: 1.15rem; letter-spacing: 0; line-height: 1.2; text-transform: none; margin: 8px 0; }
body .table img[height] { height: 40px; width: auto; max-width: none; }

/* ---------- ratings (php/rating.php) ---------- */
.stars { --v: 0; position: relative; display: inline-block; font-size: 1.25rem; line-height: 1; letter-spacing: 2px; color: var(--ink-line); white-space: nowrap; vertical-align: middle; }
.stars::before { content: "★★★★★★★★★★"; }
.stars::after { content: "★★★★★★★★★★"; position: absolute; left: 0; top: 0; width: calc(var(--v) * 10%); overflow: hidden; color: var(--gold); }
.stars.small { font-size: .95rem; letter-spacing: 1px; }
.rating-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 14px 0; }
.rating-score { font-family: var(--font-hud); font-size: 1.35rem; color: var(--bone); }
.rating-count { font-family: var(--font-hud); font-size: 1.05rem; color: var(--bone-muted) !important; }
.rate-item-btn { padding: 6px 14px; font-size: 1rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: var(--ink-line); cursor: pointer; padding: 2px; }
.star-input label::before { content: "★"; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked + label, .star-input input:checked + label ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 3px; }
@media (max-width: 420px) { .star-input label { font-size: 1.6rem; padding: 1px; } }
.ratings-block { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--ink-line); }
.reviews { list-style: none; margin: 18px 0 0; padding: 0; }
.review { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ink-line); }
.review img, .review-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: var(--ink-raised); color: var(--bone-muted); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--font-hud); font-size: 1.05rem; }
.review p { margin: 6px 0 0; color: var(--bone); max-width: 70ch; }
/* Old colour classes on buttons are calls to action: gold, not the panel colour */
body .btn.bg-c4, body .btn.bg-c3, body .btn.btn-c42 { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--ink) !important; font-family: var(--font-hud); font-weight: 600; }
body .hr-form-modal span, body .hr-form span { background: var(--ink-raised) !important; color: var(--bone-muted) !important; padding: 0 10px; }
body .modal-footer .btn-danger { background: none; border-color: var(--ink-line); color: var(--bone); }

/* ---------- admin image drop zone (js/modules/upload_images.js) ---------- */
.image-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px 18px; margin-bottom: 12px; border: 2px dashed var(--ink-line); border-radius: 8px; background: rgba(255, 255, 255, .02); text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.image-drop:hover, .image-drop:focus-within { border-color: var(--bone-muted); }
.image-drop.is-over { border-color: var(--gold); background: rgba(226, 179, 60, .08); }
.image-drop > i { font-size: 2rem; color: var(--gold); }
.image-drop strong { font-family: var(--font-hud); font-size: 1.25rem; color: var(--bone); }
.image-drop-hint { color: var(--bone-muted); font-size: .95rem; }
.image-drop-status { color: var(--gold); font-family: var(--font-hud); font-size: 1.05rem; min-height: 1.2em; }
.drop-previews { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.drop-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; border: 1px solid var(--ink-line); }
