/* ============================================================================
   theme.css — "Scrap Metal" design system v1 (2026-07-14, Claude Design handoff).

   ONE visual language for every page: near-black canvas (#0E0E10), dark
   surfaces with hairline borders, sharp 2px corners, NO shadows, a single
   rust-red accent (#CD412B) used with intent, and a strict typography split —
   Anton for DISPLAY HEADINGS ONLY (uppercase, line-height .95), Oswald 500/600
   for labels / card titles / buttons / stat numerals, Roboto for body copy.
   Texture: 3% SVG fractal noise on heroes + feature panels, a diagonal hazard
   stripe used once or twice per page max. Motion: mechanical, 150–250ms,
   ease-out only.

   Loaded from base.html right after header_style.css, BEFORE each page's own
   CSS: this file owns the shared vocabulary (tokens, nav, footer, buttons,
   chips, tiles, stat panels, forms, pagination); page CSS keeps only
   page-specific layout.

   ⚠ Don't reintroduce per-page copies of these classes. Tokens first; change
   them here, not downstream. Red is reserved for: primary CTAs, active states,
   hover underlines, the logo. Never body text, backgrounds, or decoration.
   ========================================================================= */

:root {
    --rb-bg: #0E0E10;             /* page background */
    --rb-bg-deep: #0A0A0C;        /* hero scrims, deepest layer */
    --rb-bg-bar: #121215;         /* filter/sort bars, tag strips */
    --rb-panel: #17171A;          /* surface: cards, panels (old .light_background) */
    --rb-card: #1F1F23;           /* raised surface: dropdown sheets, hover rows */
    --rb-card-hover: #1F1F23;     /* hover is carried by borders, not bg shifts */
    --rb-line: rgba(255, 255, 255, .08);        /* hairline borders / dividers */
    --rb-line-mid: rgba(255, 255, 255, .18);    /* chip + input borders */
    --rb-line-strong: rgba(255, 255, 255, .25); /* ghost button borders */
    --rb-text: #EDEAE4;           /* headings + primary text */
    --rb-text-bright: #FFFFFF;
    --rb-body: #C9C4BB;           /* secondary body (comment text, card meta) */
    --rb-muted: #9B968E;          /* body / muted */
    --rb-faint: #6B665E;          /* timestamps, ellipses, fine print */
    --rb-accent: #CD412B;         /* THE rust red — the only accent */
    --rb-accent-hover: #E04C34;
    --rb-accent-deep: #B8351F;
    --rb-gold: #E5A33D;           /* star ratings ONLY */
    --rb-good: #4fae6d;
    --rb-radius: 2px;             /* sharp corners everywhere (0–2px) */
    --rb-radius-sm: 2px;
    --rb-font-display: "Anton", "Arial Narrow", sans-serif;
    --rb-font-head: "Oswald", "Arial Narrow", sans-serif;
    --rb-font-ui: "Roboto", system-ui, -apple-system, sans-serif;
    --rb-focus-ring: 0 0 0 3px rgba(205, 65, 43, .28);
    /* 3% fractal noise — kills the flat look on heroes and feature panels */
    --rb-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ---- page canvas ---------------------------------------------------------- */
body {
    background-color: var(--rb-bg);
    color: var(--rb-text);
    font-family: var(--rb-font-ui);
    /* Unclassed links (404 page, flashes, form hints) follow the accent instead
       of Bootstrap's stock blue; classed links keep their own colors. */
    --bs-link-color: var(--rb-accent);
    --bs-link-hover-color: var(--rb-accent-hover);
    --bs-link-color-rgb: 205, 65, 43;
    --bs-link-hover-color-rgb: 224, 76, 52;
    --bs-body-bg: var(--rb-bg);
    --bs-body-color: var(--rb-text);
}
::selection { background: rgba(205, 65, 43, .5); color: #fff; }
hr { border-color: var(--rb-line); opacity: 1; }

/* Layout container: content column used by every rebuilt page. */
.rb-container { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 700px) {
    .rb-container { padding-left: 16px; padding-right: 16px; }
}

/* The two legacy surface classes older pages are built from — re-tokened. */
.dark_background { background-color: var(--rb-bg) !important; color: var(--rb-text); }
.light_background {
    background-color: var(--rb-panel) !important;
    color: var(--rb-text);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
}

/* ---- typography ----------------------------------------------------------- */
/* Display: Anton, uppercase, extreme scale, line-height .95. */
.rb-display {
    font-family: var(--rb-font-display);
    font-weight: 400;
    line-height: .95;
    text-transform: uppercase;
    color: var(--rb-text);
    margin: 0;
}
h1.rb-display { font-size: clamp(3rem, 6vw, 6rem); }
.rb-h2 {
    font-family: var(--rb-font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1;
    text-transform: uppercase;
    color: var(--rb-text);
    margin: 0;
}
/* Card / panel titles: Oswald 600 caps. */
.rb-h3 {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--rb-text);
    margin: 0;
}
/* Eyebrow: the small red uppercase label above section headings. */
.rb-eyebrow {
    display: block;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--rb-accent);
    margin: 0 0 8px;
}
/* Muted panel-header label (grey variant of the eyebrow). */
.rb-label {
    display: block;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rb-muted);
    margin-bottom: 8px;
}
/* Legacy classes used across un-rebuilt pages — mapped onto the new voice. */
.title {
    color: var(--rb-text);
    font-family: var(--rb-font-display);
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s ease-out;
}
.bread_text {
    color: var(--rb-text);
    font-family: var(--rb-font-ui);
    text-decoration: none;
}
.bread_text:hover { color: var(--rb-text); text-decoration: none; }

/* ---- buttons ---------------------------------------------------------------- */
/* Primary — one per view. */
.rb-btn {
    display: inline-block;
    background: var(--rb-accent);
    color: #fff;
    border: 1px solid var(--rb-accent);
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    padding: 14px 28px;
    border-radius: var(--rb-radius);
    cursor: pointer;
    transition: background .15s ease-out, border-color .15s ease-out;
}
.rb-btn:hover, .rb-btn:focus { background: var(--rb-accent-hover); border-color: var(--rb-accent-hover); color: #fff; }
/* Ghost / secondary. */
.rb-btn--ghost {
    background: transparent;
    border-color: var(--rb-line-strong);
    color: var(--rb-text);
}
.rb-btn--ghost:hover, .rb-btn--ghost:focus { background: transparent; border-color: var(--rb-accent); color: var(--rb-text); }
/* Compact (nav CTA, inline actions). */
.rb-btn--sm { font-size: 13px; padding: 9px 18px; }
/* Text link with the red underline that slides in. */
.rb-link-slide {
    display: inline-block;
    color: var(--rb-text);
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    padding-bottom: 4px;
    background-image: linear-gradient(var(--rb-accent), var(--rb-accent));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size .2s ease-out;
}
.rb-link-slide:hover, .rb-link-slide:focus { background-size: 100% 2px; color: var(--rb-text); }

/* Legacy button classes (un-rebuilt pages) → primary / ghost equivalents. */
.submit-button {
    background-color: var(--rb-accent);
    border: 1px solid var(--rb-accent);
    border-radius: var(--rb-radius);
    color: #fff;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 22px;
    transition: background-color .15s ease-out, border-color .15s ease-out;
}
.submit-button:hover, .submit-button:focus {
    background-color: var(--rb-accent-hover);
    border-color: var(--rb-accent-hover);
    color: #fff;
}
.next_previous {
    background-color: transparent !important;
    border: 1px solid var(--rb-line-strong) !important;
    border-radius: var(--rb-radius) !important;
    padding: 9px 20px !important;
    color: var(--rb-text) !important;
    font-family: var(--rb-font-head) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    transition: border-color .15s ease-out, color .15s ease-out !important;
    margin-left: 8px !important;
}
.next_previous:hover { border-color: var(--rb-accent) !important; color: var(--rb-text) !important; }
.advanced_features_button {
    background-color: transparent !important;
    border: 1px solid var(--rb-line-mid) !important;
    border-radius: var(--rb-radius) !important;
    color: var(--rb-muted) !important;
    font-family: var(--rb-font-head) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    padding: 7px 16px !important;
    transition: border-color .15s ease-out, color .15s ease-out !important;
}
.advanced_features_button:hover, .advanced_features_button:focus {
    border-color: var(--rb-accent) !important;
    color: var(--rb-text) !important;
}

/* ---- filter chips ------------------------------------------------------------
   Outlined; the active one is filled red. Used in filter bars + tag strips. */
.rb-chip {
    display: inline-block;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rb-muted);
    background: transparent;
    border: 1px solid var(--rb-line-mid);
    padding: 7px 16px;
    border-radius: var(--rb-radius);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color .15s ease-out, color .15s ease-out;
}
.rb-chip:hover, .rb-chip:focus { border-color: var(--rb-accent); color: var(--rb-text); }
.rb-chip.is-active {
    color: #fff;
    background: var(--rb-accent);
    border-color: var(--rb-accent);
}
/* Smaller variant for feature tags on detail pages. */
.rb-chip--tag { font-size: 12px; padding: 5px 12px; cursor: default; }
.rb-chip--tag:hover { border-color: var(--rb-line-mid); color: var(--rb-muted); }

/* ---- catalog tile --------------------------------------------------------------
   The screenshot IS the card: image fills a 16/9 tile (YouTube thumbnails are
   1280x720 — same ratio, so nothing gets cropped), meta sits on a bottom
   gradient. Hover: red hairline border. Markup:
   <a class="rb-tile" href…>
     <img class="rb-tile__img" src… width=… height=… alt…>
     <span class="rb-tile__tag">Trio</span>
     <div class="rb-tile__info">
       <p class="rb-tile__title">Name</p>
       <div class="rb-tile__meta"> by … · ★ … · resource spans </div>
     </div>
   </a> */
.rb-tile {
    display: block;
    position: relative;
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--rb-panel);
    text-decoration: none;
    transition: border-color .2s ease-out;
}
.rb-tile:hover, .rb-tile:focus-visible { border-color: var(--rb-accent); }
.rb-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Legibility gradient over the lower part of the screenshot. */
.rb-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(10, 10, 12, .94) 100%);
    pointer-events: none;
}
.rb-tile__tag {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(14, 14, 16, .85);
    padding: 3px 9px;
    border-radius: var(--rb-radius);
}
.rb-tile__info {
    position: absolute;
    z-index: 2;
    left: 0; right: 0; bottom: 0;
    padding: 14px 16px;
}
.rb-tile__title {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--rb-text);
    margin: 0;
}
.rb-tile__meta {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--rb-muted);
}
.rb-tile__meta .rb-stars { color: var(--rb-gold); font-size: 13px; }
/* Inline resource figure (icon + Oswald numeral) — tiles, strips, stat rows. */
.rb-res {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--rb-font-head);
    font-weight: 500;
    font-size: 14px;
    color: var(--rb-body);
    white-space: nowrap;
}
.rb-res img { width: 16px; height: 16px; }
/* Responsive tile grid used by homepage / category / related sections. */
.rb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1000px) { .rb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rb-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---- panels & stat cards ------------------------------------------------------ */
.rb-panel {
    background: var(--rb-panel);
    border: 1px solid var(--rb-line);
    border-radius: var(--rb-radius);
}
.rb-panel__head {
    padding: 12px 20px;
    border-bottom: 1px solid var(--rb-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
/* 3-up cost grid (stone / frags / HQM) with 1px gutters. */
.rb-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rb-line);
}
.rb-stat { background: var(--rb-panel); padding: 16px 12px; text-align: center; }
.rb-stat img { width: 30px; height: 30px; display: block; margin: 0 auto 8px; }
.rb-stat__num {
    font-family: var(--rb-font-head);
    font-weight: 500;
    font-size: 24px;
    color: var(--rb-text);
    margin: 0;
}
.rb-stat__label {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rb-muted);
    margin: 2px 0 0;
}

/* ---- breadcrumbs ---------------------------------------------------------------- */
.rb-crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rb-crumbs a { color: var(--rb-muted); text-decoration: none; transition: color .15s ease-out; }
.rb-crumbs a:hover { color: var(--rb-text); }
.rb-crumbs .rb-crumbs__sep { color: var(--rb-faint); }
.rb-crumbs .rb-crumbs__here { color: var(--rb-accent); }

/* ---- pagination ------------------------------------------------------------------ */
.rb-pages { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.rb-page {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 14px;
    color: var(--rb-muted);
    border: 1px solid rgba(255, 255, 255, .14);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rb-radius);
    text-decoration: none;
    transition: border-color .15s ease-out, color .15s ease-out;
}
.rb-page:hover { border-color: var(--rb-accent); color: var(--rb-text); }
.rb-page.is-current { color: #fff; background: var(--rb-accent); border-color: var(--rb-accent); }
.rb-page--word { width: auto; padding: 0 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--rb-text); border-color: var(--rb-line-strong); }
@media (max-width: 700px) { .rb-page { width: 44px; height: 44px; } }

/* ---- texture & motifs -------------------------------------------------------------- */
.rb-noise { background-image: var(--rb-noise); }
/* Diagonal hazard stripe: top edge of "submit" CTAs. Once or twice per page, max. */
.rb-hazard { position: relative; overflow: hidden; }
.rb-hazard::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: repeating-linear-gradient(45deg, var(--rb-accent) 0 10px, transparent 10px 20px);
}

/* ---- header / navigation -------------------------------------------------------------
   Sticky slab: wordmark, Oswald caps links (red underline slides in), ghost
   sign-in + red Submit CTA. Markup keeps the Bootstrap collapse skeleton
   (#hamburger / #navbarSupportedContent) so the existing toggle JS works. */
#header.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(14, 14, 16, .94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rb-line);
    padding: 0;
    min-height: 64px;
}
#header .container-fluid { padding-left: 40px; padding-right: 40px; }
#website_name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--rb-font-display);
    font-weight: 400;
    font-size: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rb-text) !important;
    margin: 0;
    padding: 14px 0;
}
#website_name img { width: 26px; height: 29px; }
#website_name em { font-style: normal; color: var(--rb-accent); }
.navbar { --bs-navbar-color: var(--rb-muted); --bs-navbar-hover-color: var(--rb-text); --bs-navbar-padding-y: 0; }
#header .nav-item { margin: 0; }
#header .nav-link {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rb-muted) !important;
    padding: 8px 0;
    margin: 0 14px;
    border-radius: 0;
    background-image: linear-gradient(var(--rb-accent), var(--rb-accent));
    background-repeat: no-repeat;
    background-size: 0% 2px;
    background-position: left bottom;
    transition: background-size .2s ease-out, color .15s ease-out;
}
#header .nav-link:hover, #header .nav-link:focus-visible {
    color: var(--rb-text) !important;
    background-color: transparent;
    background-size: 100% 2px;
}
#header .nav-link.is-active {
    color: var(--rb-text) !important;
    background-size: 100% 2px;
}
/* Auth + CTA cluster. */
.rb-nav-actions { display: flex; align-items: center; gap: 6px; }
/* Dropdowns: dark raised sheet, sharp corners. */
.dropdown-menu {
    background-color: var(--rb-card);
    border: 1px solid var(--rb-line-mid);
    border-radius: var(--rb-radius);
    padding: 4px;
    box-shadow: none;
    min-width: 210px;
}
.dropdown-item {
    color: var(--rb-text);
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: var(--rb-radius);
    padding: 10px 14px;
}
.dropdown-item:hover, .dropdown-item:focus {
    background-color: rgba(205, 65, 43, .16) !important;
    color: var(--rb-text) !important;
}
/* Desktop: Tools/Guides open on hover, no click needed (Bootstrap's click toggle
   still works — and is the only path on touch, where :hover doesn't apply).
   margin-top:0 keeps the sheet flush with the link so the hover never drops
   crossing from trigger to menu. */
@media (min-width: 992px) {
    #header .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
/* Custom 3-bar burger (44px touch target). The id selector outweighs Bootstrap's
   .navbar-expand-lg toggler hide, so hide it explicitly on desktop. */
@media (min-width: 992px) { #hamburger { display: none !important; } }
#hamburger {
    background: transparent;
    border: none;
    border-radius: var(--rb-radius);
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    box-shadow: none !important;
}
#hamburger .rb-burger-bar { display: block; height: 2px; background: var(--rb-text); width: 22px; transition: width .15s ease-out; }
#hamburger .rb-burger-bar:nth-child(2) { width: 16px; }
#hamburger:hover .rb-burger-bar { width: 22px; }
/* Legacy auth button classes (still referenced by a few pages). */
.sign_in, .register {
    font-family: var(--rb-font-head) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: var(--rb-radius) !important;
    padding: 9px 18px !important;
    transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out !important;
}
.sign_in {
    background-color: transparent !important;
    border: 1px solid transparent !important;
    color: var(--rb-muted) !important;
}
.sign_in:hover { color: var(--rb-text) !important; }
.register {
    background-color: var(--rb-accent) !important;
    border: 1px solid var(--rb-accent) !important;
    color: #fff !important;
}
.register:hover { background-color: var(--rb-accent-hover) !important; border-color: var(--rb-accent-hover) !important; }
@media (max-width: 991px) {
    #header .container-fluid { padding-left: 16px; padding-right: 16px; }
    #header.navbar { min-height: 56px; }
    #header .nav-link { margin: 0; padding: 12px 0; }
    #website_name { font-size: 17px; padding: 12px 0; }
    #website_name img { width: 22px; height: 25px; }
    .rb-nav-actions { margin: 12px 0 16px; }
}

/* ---- footer ---------------------------------------------------------------------- */
.rb-footer {
    background: var(--rb-bg);
    border-top: 1px solid var(--rb-line);
    padding: 48px 0 24px;
    font-family: var(--rb-font-ui);
}
.rb-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--rb-line);
}
.rb-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--rb-font-display);
    font-weight: 400;
    font-size: 17px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rb-text);
    text-decoration: none;
}
.rb-footer__brand img { width: 22px; height: 25px; }
.rb-footer__brand em { font-style: normal; color: var(--rb-accent); }
.rb-footer__blurb { font-size: 14px; color: var(--rb-muted); line-height: 1.6; max-width: 300px; margin: 0; }
.rb-footer__head {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--rb-text);
    margin: 0 0 12px;
}
.rb-footer__col { display: flex; flex-direction: column; gap: 8px; }
.rb-footer__col a { font-size: 14px; color: var(--rb-muted); text-decoration: none; transition: color .15s ease-out; }
.rb-footer__col a:hover { color: var(--rb-text); }
.rb-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
}
.rb-footer__bottom p { font-size: 13px; color: var(--rb-muted); margin: 0; }
.rb-footer__bottom-links { display: flex; gap: 20px; }
.rb-footer__bottom-links a { font-size: 13px; color: var(--rb-muted); text-decoration: none; }
.rb-footer__bottom-links a:hover { color: var(--rb-text); }
@media (max-width: 900px) {
    .rb-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .rb-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .rb-footer__bottom { justify-content: center; text-align: center; }
}

/* ---- form controls -----------------------------------------------------------------
   One input look everywhere: dark inset field on a surface panel, hairline
   border, red focus. Covers the legacy homepage classes AND Bootstrap-Flask's
   .form-control/.form-select used by auth/contact/add-base. */
.drop_down, .advanced_search_input_styling,
.form-control, .form-select, textarea.rb-input, input.rb-input, select.rb-input {
    background-color: var(--rb-panel);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--rb-radius);
    color: var(--rb-text);
    font-family: var(--rb-font-ui);
    font-size: 15px;
    padding: 13px 14px;
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}
.form-control::placeholder, .rb-input::placeholder { color: var(--rb-faint); }
.drop_down:focus, .advanced_search_input_styling:focus,
.form-control:focus, .form-select:focus, .rb-input:focus {
    background-color: var(--rb-panel);
    border-color: var(--rb-accent);
    box-shadow: var(--rb-focus-ring);
    color: var(--rb-text);
    outline: none;
}
/* Inputs that sit ON a surface panel invert to the page-dark inset (the Base
   Detail mockup's comment box: #0E0E10 field on a #17171A panel). */
.rb-panel .form-control, .rb-panel .rb-input, .rb-panel textarea,
.light_background .form-control, .light_background .drop_down,
.light_background .advanced_search_input_styling {
    background-color: var(--rb-bg);
}
.rb-panel .form-control:focus, .rb-panel .rb-input:focus, .rb-panel textarea:focus,
.light_background .form-control:focus, .light_background .drop_down:focus,
.light_background .advanced_search_input_styling:focus {
    background-color: var(--rb-bg);
}
.form-select, select.drop_down, select.rb-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239B968E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
/* Form field labels (WTForms renders <label> next to inputs). */
form label {
    font-family: var(--rb-font-head);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rb-muted);
}

/* ---- badges / tags -------------------------------------------------------------------
   Feature badges (External TC, Bunker…) = quiet hairline chips, sharp corners. */
.badge.text-bg-secondary {
    background-color: transparent !important;
    border: 1px solid var(--rb-line-mid);
    color: var(--rb-muted) !important;
    font-family: var(--rb-font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--rb-radius);
    padding: 4px 10px;
    margin: 2px 2px 2px 0;
}

/* ---- tables (shared look; page CSS adds layout) -------------------------------------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--rb-text);
    border-color: var(--rb-line);
}
.table thead th, .table thead a {
    font-family: var(--rb-font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rb-muted);
}

/* ---- stars ----------------------------------------------------------------------------- */
.star { color: var(--rb-gold); }
.star.half:after { color: var(--rb-gold); }
.rb-stars { color: var(--rb-gold); }

/* ---- misc ------------------------------------------------------------------------------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--rb-accent); outline-offset: 2px; }
/* Dark, slim scrollbars to match the shell (WebKit + Firefox). */
* { scrollbar-color: #3A3A40 #101013; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #101013; }
::-webkit-scrollbar-thumb { background: #3A3A40; border-radius: 6px; border: 3px solid #101013; }
::-webkit-scrollbar-thumb:hover { background: #4A4A52; }
