

:root {
    
    --navy: #144b70;
    --navy-700: #0f3a57;   
    --navy-900: #0b2c43;   
    --navy-tint: #eaf0f5;  
    --link: #146193;       

    --gold: #e8b007;        
    --gold-bright: #ffd700; 
    --gold-soft: #efd469;   

    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;

    --radius-sm: 3px;
    --radius: 5px;
    --radius-lg: 8px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .10);
    --shadow: 0 4px 14px rgba(15, 23, 42, .08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

    --transition: .2s ease;
}

body,
html {
    width: auto !important;
    overflow-x: hidden !important;
}

body {
    font-family: 'Figtree', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { background-color: var(--navy-900); }

.rmta-link { color: var(--navy); text-decoration: none; transition: color var(--transition); }
.rmta-link:hover, .rmta-link:focus { color: var(--navy-700); text-decoration: underline; }

.rmta-link-on-dark { color: rgba(255,255,255,.85); text-decoration: underline; }
.rmta-link-on-dark:hover, .rmta-link-on-dark:focus { color: var(--gold-bright); }

.custom-svg-size {
    width: 40px;
    height: 40px;
    color: #fff !important;
}

.custom-ig-size {
    width: 40px;
    height: 40px;
    color: #fff !important;
}

.acc-by-s { font-size: 14px; }

.navbar-brand {
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.btn {
    box-shadow: var(--shadow-sm);
    border-color: var(--navy) !important;
    border-radius: var(--radius-sm);
    transition: box-shadow var(--transition), transform var(--transition),
        background-color var(--transition);
}

.rmta-btn-primary {
    background-color: var(--navy); color: #fff; border: 2px solid var(--navy) !important;
    font-weight: 600;
}
.rmta-btn-primary:hover, .rmta-btn-primary:active, .rmta-btn-primary:focus-visible {
    background-color: var(--navy-700) !important; border-color: var(--navy-700) !important; color: #fff !important; box-shadow: none !important;
}
.rmta-btn-gold {
    background-color: var(--gold); color: var(--navy-900); border: 2px solid var(--gold) !important;
    font-weight: 700;
}
.rmta-btn-gold:hover, .rmta-btn-gold:active, .rmta-btn-gold:focus-visible {
    background-color: var(--gold-bright) !important; border-color: var(--gold-bright) !important; color: var(--navy-900) !important; box-shadow: none !important;
}

.btn:focus:not(:focus-visible),
a:focus:not(:focus-visible),
.dropdown-item:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    box-shadow: none !important; outline: none !important;
}

.rmta-hx-result { transition: opacity .12s ease; scroll-margin-top: 72px; }
.rmta-hx-result.htmx-request { opacity: .5; }

.material-symbols-rounded { font-variation-settings: 'FILL' 1; }

.rmta-captcha-sm { height: 68px; overflow: hidden; }
.rmta-captcha-sm__inner { transform: scale(0.85); transform-origin: 0 0; }

.rmta-btn-danger {
    background-color: #dc2626; color: #fff; border: 2px solid #dc2626 !important; font-weight: 600;
}
.rmta-btn-danger:hover, .rmta-btn-danger:focus { background-color: #b91c1c; border-color: #b91c1c !important; color: #fff; }
.rmta-btn-danger-outline {
    background-color: #fff; color: #dc2626; border: 2px solid #fecaca !important; font-weight: 600;
}
.rmta-btn-danger-outline:hover, .rmta-btn-danger-outline:focus { background-color: #fef2f2; border-color: #dc2626 !important; color: #b91c1c; }
.rmta-btn-ghost {
    background-color: #fff; color: var(--text); border: 2px solid var(--border) !important; font-weight: 600;
}
.rmta-btn-ghost:hover, .rmta-btn-ghost:focus { background-color: var(--bg); border-color: var(--muted) !important; color: var(--navy); }

.form-control,
.form-select {
    border: 2px solid #d3d3d3;
}

.form-control:focus {
    border: 2px solid var(--gold);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.form-select:focus {
    border: 2px solid var(--gold);
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* Checkboxes: bigger, blue (navy), thicker border. Covers every .form-check-input checkbox (Django
   form fields + hand-written) but NOT the invoice generator's tax/disc boxes (they don't use this class). */
.form-check-input[type=checkbox] {
    width: 1.3em;
    height: 1.3em;
    margin-top: .15em;
    background-color: #fff;
    border: 2px solid var(--navy);
}
.form-check-input[type=checkbox]:checked {
    background-color: var(--navy);
    border-color: var(--navy);
}
/* Toggle switches use the same class -- keep them as wider pills (recolored blue), not squares. */
.form-switch .form-check-input { width: 2.5em; border-radius: 2em; }
.form-check-input:focus {
    border-color: var(--navy);
    box-shadow: none;
    -webkit-box-shadow: none;
}

.bl,
.bottom-links {
    text-decoration: none !important;
}

.bl:hover,
.bottom-links:hover {
    text-decoration: underline !important;
}

.arra:hover {
    text-decoration: underline;
}

.nla {
    position: relative;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.nla:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width .3s;
    position: absolute;
    left: 0;
    bottom: 0;
}

.nla:hover:after {
    width: 100%;
}

.nlb {
    align-items: center;
    justify-content: center;
    padding-top: .3rem;
    padding-bottom: .12rem;
    color: var(--navy) !important;
    background-color: var(--gold-soft) !important;
    border-color: var(--gold-soft) !important;
    font-size: 18px;
}

.nav-link:active,
.nav-link:hover,
.nlb:active,
.nlb:hover {
    color: var(--navy) !important;
}

@media (max-width: 991px) {
    .nav-link {
        margin-bottom: 7px;
        padding-right: 4px !important;
        padding-left: 4px !important;
        padding-top: 7px !important;
        padding-bottom: 3px !important;
        width: 100%;
        color: var(--navy) !important;
    }

    .f-b {
        margin-top: 20px !important;
    }
}

.rmta-stars { position: relative; display: inline-flex; align-items: center; line-height: 1; white-space: nowrap; vertical-align: middle; }
.rmta-stars-base, .rmta-stars-fill { display: inline-flex; line-height: 1; }
.rmta-stars-base { color: #cbd5e1; }
.rmta-stars-fill {
    position: absolute; inset: 0 auto 0 0; overflow: hidden;
    width: var(--rmta-fill, 0%);
    color: var(--gold-bright);
}
.rmta-stars .material-symbols-rounded { font-size: 1.35rem; font-variation-settings: 'FILL' 1; }

.star-full, .star-half { color: var(--gold-bright); }
.star-empty { color: #cbd5e1; }

.rmta-star-input { display: inline-flex; gap: 4px; }
.rmta-star-input-star {
    background: none; border: 0; padding: 2px; margin: 0; cursor: pointer; line-height: 1;
    color: #cbd5e1; transition: color var(--transition), transform .08s ease;
}
.rmta-star-input-star .material-symbols-rounded { font-size: 2.2rem; font-variation-settings: 'FILL' 1; display: block; }
.rmta-star-input-star:hover { transform: scale(1.08); }
.rmta-star-input-star.is-on { color: var(--gold-bright); }
.rmta-star-input-star:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.rmta-fullbleed { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.rmta-section { padding: 60px 0; }
.rmta-section-title { text-align: center; color: var(--navy); font-weight: 700; font-size: 1.9rem; letter-spacing: -.01em; margin-bottom: 6px; }
.rmta-section-kicker { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 36px; }
.rmta-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.modal-content { border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 16px 22px; }
.modal-title { color: var(--navy); font-weight: 800; font-size: 1.15rem; }
.modal-body { padding: 22px; color: var(--text); }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 22px; gap: 8px; }
.modal-footer > * { margin: 0; }   
.modal .btn-close:focus { box-shadow: none; outline: none; }

.rmta-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; line-height: 1;
    padding: 9px 16px; border-radius: 999px;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
    color: #fff; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase;
    margin-bottom: 24px;
}
.rmta-eyebrow .material-symbols-rounded { font-size: 1.05rem; color: var(--gold-bright); line-height: 1; font-variation-settings: 'FILL' 1; }
.rmta-eyebrow-label { line-height: 1; display: inline-block; }

.rmta-clear-link { color: var(--muted); font-size: .95rem; text-decoration: none; }
.rmta-clear-link:hover, .rmta-clear-link:focus { color: var(--navy); text-decoration: underline; }
.rmta-page-hero .rmta-clear-link { color: rgba(255,255,255,.8); }
.rmta-page-hero .rmta-clear-link:hover, .rmta-page-hero .rmta-clear-link:focus { color: var(--gold-bright); }
@media (max-width: 575.98px) { .rmta-section { padding: 44px 0; } }

.rmta-page-hero {
    
    margin-top: -3rem;
    background-color: var(--navy-900);
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.7px);
    background-size: 24px 24px;
    color: #fff; padding: 82px 0 10px;
}
.rmta-page-hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.rmta-page-hero-sub { color: rgba(255,255,255,.75); font-size: 1.04rem; margin-top: 8px; }
.rmta-tool-card { transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.rmta-tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--navy); }
.rmta-usmap { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; max-width: 760px; margin: 0 auto; }
.rmta-usmap-tile { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; line-height: 1; padding: 2px; transition: transform .1s ease; overflow: hidden; }
.rmta-usmap-tile:hover { transform: scale(1.1); outline: 2px solid var(--gold); z-index: 2; position: relative; }
.rmta-usmap-tile .ab { font-weight: 800; font-size: .72rem; }
.rmta-usmap-tile .ct { font-size: .6rem; opacity: .85; margin-top: 1px; }
.rmta-heat-0, .rmta-heat-0:hover, .rmta-heat-0:focus, .rmta-heat-0:active { background: #eef2f6; color: #94a3b8; }
.rmta-heat-1, .rmta-heat-1:hover, .rmta-heat-1:focus, .rmta-heat-1:active { background: #cfe0ec; color: var(--navy); }
.rmta-heat-2, .rmta-heat-2:hover, .rmta-heat-2:focus, .rmta-heat-2:active { background: #8fb4d0; color: var(--navy-900); }
.rmta-heat-3, .rmta-heat-3:hover, .rmta-heat-3:focus, .rmta-heat-3:active { background: #3f7aa6; color: #fff; }
.rmta-heat-4, .rmta-heat-4:hover, .rmta-heat-4:focus, .rmta-heat-4:active { background: var(--navy); color: #fff; }
@media (max-width: 600px) { .rmta-usmap { gap: 2px; } .rmta-usmap-tile .ab { font-size: .58rem; } .rmta-usmap-tile .ct { display: none; } }
.rmta-statecols { columns: 1; column-gap: 28px; }
.rmta-statecols > div { break-inside: avoid; }
@media (min-width: 576px) { .rmta-statecols { columns: 2; } }
@media (min-width: 992px) { .rmta-statecols { columns: 3; } }
.rmta-credbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rmta-credbar-label { width: 54px; font-weight: 700; color: var(--navy); font-size: .85rem; flex: 0 0 auto; }
.rmta-credbar-track { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; height: 18px; overflow: hidden; }
.rmta-credbar-fill { height: 100%; background: var(--navy); border-radius: 999px; }
.rmta-credbar-val { width: 78px; text-align: right; font-size: .85rem; color: var(--muted); flex: 0 0 auto; }
.rmta-credtable-wrap { overflow-x: auto; }
.rmta-credtable { width: 100%; border-collapse: collapse; font-size: .85rem; min-width: 560px; }
.rmta-credtable th, .rmta-credtable td { padding: 6px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rmta-credtable thead th { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--border); }
.rmta-cred-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--muted); }
.rmta-cred-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.rmta-cred-badge { background: var(--navy-tint); color: var(--navy); font-weight: 700; border-radius: var(--radius-sm); padding: 1px 7px; font-size: .76rem; }

.rmta-donut-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.rmta-donut { width: 190px; height: 190px; flex: 0 0 auto; max-width: 60vw; }
.rmta-donut path { stroke: #fff; stroke-width: 1.5; transition: opacity .12s ease; cursor: pointer; }
.rmta-donut path:hover { opacity: .82; }
.rmta-donut-tip { position: fixed; z-index: 9999; background: var(--navy-900); color: #fff; padding: 6px 11px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.rmta-donut-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 220px; min-width: 200px; }
.rmta-donut-legend li { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .88rem; border-bottom: 1px solid var(--border); }
.rmta-donut-legend li:last-child { border-bottom: 0; }
.rmta-donut-sw { width: 13px; height: 13px; border-radius: 3px; flex: 0 0 auto; }
.rmta-donut-lname { flex: 1; color: var(--text); min-width: 0; }
.rmta-donut-lval { font-weight: 700; color: var(--navy); white-space: nowrap; }
.rmta-donut-lpct { color: var(--muted); font-weight: 600; font-size: .8rem; }
@media (max-width: 480px) { .rmta-donut-wrap { justify-content: center; } .rmta-donut { max-width: 78vw; width: 220px; height: 220px; } }

.rmta-locstat-tiles { display: flex; gap: 12px; flex-wrap: wrap; }
.rmta-locstat-tile { flex: 1 1 0; min-width: 130px; background: var(--navy-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.rmta-locstat-tile .num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rmta-locstat-tile .lbl { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; line-height: 1.3; }
a.rmta-locstat-tile { text-decoration: none; transition: background var(--transition), border-color var(--transition); }
a.rmta-locstat-tile:hover { background: #fff; border-color: var(--navy); }
.rmta-locstat-see { display: block; font-size: .75rem; font-weight: 700; color: var(--gold); margin-top: 8px; }
.rmta-locstat-see .bi { vertical-align: -2px; font-size: .95rem; }
.rmta-locstat-creds { margin-top: 18px; }
.rmta-locstat-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin: 0 0 9px; }
.rmta-locstat-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.rmta-locstat-bar-row .abbr { flex: 0 0 46px; font-size: .8rem; font-weight: 700; color: var(--navy); }
.rmta-locstat-bar-row .track { flex: 1 1 auto; height: 8px; background: var(--navy-tint); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.rmta-locstat-bar-row .fill { display: block; height: 100%; background: var(--gold); }
.rmta-locstat-bar-row .cnt { flex: 0 0 auto; font-size: .8rem; color: var(--muted); min-width: 40px; text-align: right; }

.rmta-result-stats { padding: 24px 26px; }
.rmta-result-stats-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0 0 16px; }
.rmta-result-stats-title .bi { color: var(--gold); font-size: 1.25rem; }
.rmta-result-stats-note { margin: 14px 0 0; font-size: .92rem; color: var(--text); }
.rmta-result-stats-foot { margin: 16px 0 0; font-size: .88rem; }

.rmta-breadcrumb { font-size: .84rem; color: rgba(255,255,255,.65); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.rmta-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.rmta-breadcrumb a:hover, .rmta-breadcrumb a:focus { color: var(--gold-bright); text-decoration: underline; }
.rmta-breadcrumb .sep { opacity: .45; }
.rmta-breadcrumb .current { color: rgba(255,255,255,.55); }

.rmta-pcard-note { color: var(--muted); font-size: .85rem; margin: .1rem 0 .9rem; line-height: 1.45; }
.rmta-pcard-note .bi { color: var(--muted); margin-right: 6px; }
.rmta-linklist { columns: 2; column-gap: 30px; }
.rmta-linklist a { display: block; padding: 5px 0; color: var(--navy); text-decoration: none; font-size: .93rem; break-inside: avoid; }
.rmta-linklist a:hover { color: var(--gold); text-decoration: underline; }
@media (max-width: 480px) { .rmta-linklist { columns: 1; } }

.rmta-localfaq { border-bottom: 1px solid var(--border); padding: 12px 0; }
.rmta-localfaq:last-child { border-bottom: 0; }
.rmta-localfaq > summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; padding-right: 24px; position: relative; }
.rmta-localfaq > summary::-webkit-details-marker { display: none; }
.rmta-localfaq > summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-size: 1.3rem; line-height: 1; color: var(--gold); }
.rmta-localfaq[open] > summary::after { content: '\2212'; }
.rmta-localfaq > summary::after { transition: transform .2s ease; }
.rmta-localfaq[open] > p, .rmta-localfaq[open] > div { animation: rmta-faq-reveal .24s ease; }
@keyframes rmta-faq-reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rmta-localfaq > p { margin: 10px 0 2px; color: var(--text); line-height: 1.65; }

.rmta-namegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.rmta-namegrid a {
    display: block; padding: 12px 16px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--navy); text-decoration: none; font-size: .95rem; font-weight: 500;
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.rmta-namegrid a:hover { border-color: var(--gold); color: var(--gold); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.rmta-namegrid .count { color: var(--muted); font-weight: 400; font-size: .85rem; }
.rmta-subhead { color: var(--navy); font-weight: 700; font-size: 1.15rem; margin: 0 0 16px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.3; }
.rmta-subhead .material-symbols-rounded { font-size: 1.3rem; color: var(--gold); flex-shrink: 0; line-height: 1.3; }

.rmta-searchbox { position: relative; }
.rmta-searchbox .form-control { padding-right: 2.4rem; }
.rmta-searchbox-clear {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    background: none; border: 0; padding: 0 6px; line-height: 1; cursor: pointer;
    font-size: 1.5rem; color: var(--muted); display: none;
}
.rmta-searchbox-clear:hover, .rmta-searchbox-clear:focus { color: var(--navy); }

.rmta-page-hero--center { text-align: center; }

.rmta-finder-form { max-width: 680px; margin: 22px auto 0; }
.rmta-finder-row { display: flex; gap: 8px; align-items: stretch; }
.rmta-finder-form .input-group { flex-wrap: nowrap; }
.rmta-finder-row .rmta-ac { flex: 1 1 auto; min-width: 0; }
.rmta-finder-radius { flex: 0 0 200px; }
.rmta-finder-radius .form-select { width: 100%; }
@media (max-width: 520px) { .rmta-finder-radius { flex: 1 1 auto; } }
.rmta-finder-form .input-group-text { background: var(--bg); border: 1px solid var(--border); border-right: 0; color: var(--navy); border-radius: var(--radius) 0 0 var(--radius); }
.rmta-finder-form .input-group-text .material-symbols-rounded { color: var(--navy); font-size: 1.3rem; }
.rmta-finder-form .form-control, .rmta-finder-form .form-select { border: 1px solid var(--border); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; height: 52px; box-shadow: none; }
.rmta-finder-form .form-control:focus, .rmta-finder-form .form-select:focus { border-color: var(--gold); }
.rmta-finder-form .btn-load { height: 52px; width: 100%; margin-top: 8px; }
.rmta-finder-clear { margin-top: 14px; }
@media (max-width: 520px) { .rmta-finder-row { flex-direction: column; } }

.rmta-ac { position: relative; flex: 1 1 240px; }
.rmta-ac > .form-control { width: 100%; }
.rmta-ac .input-group { width: 100%; }
.rmta-ac-menu {
    list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; z-index: 1000;
    top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto;
    overscroll-behavior: none;
    display: none; text-align: left;
}
.rmta-ac-menu.show { display: block; }

.rmta-ac-menu--up { top: auto; bottom: 100%; margin: 0 0 4px; }
.rmta-ac-item { padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); cursor: pointer; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmta-ac-item:hover, .rmta-ac-item.active { background: var(--navy-tint); color: var(--navy); }
.rmta-results-count { text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 28px; }
.rmta-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.rmta-page-info { color: var(--muted); font-size: .95rem; }

.btn-load { position: relative; }
.btn-load.loading { color: transparent !important; pointer-events: none; }
.btn-load.loading .material-symbols-rounded { visibility: hidden; }
.btn-load.loading::after {
    content: ""; position: absolute; top: 50%; left: 50%; width: 1.2em; height: 1.2em;
    margin: -.6em 0 0 -.6em; border: 3px solid rgba(255,255,255,.45); border-top-color: #fff;
    border-radius: 50%; animation: rmta-spin .6s linear infinite;
}
@keyframes rmta-spin { to { transform: rotate(360deg); } }

.rmta-cta-band {
    background-color: var(--navy-900);
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.7px);
    background-size: 24px 24px;
    color: #fff; text-align: center; padding: 56px 0;
}
.rmta-cta-band h2 { color: #fff; font-weight: 800; font-size: clamp(1.5rem,3vw,2rem); margin: 12px 0 10px; letter-spacing: -.01em; }
.rmta-cta-band p { color: rgba(255,255,255,.82); max-width: 60ch; margin: 0 auto 22px; line-height: 1.6; }

.rmta-finder-info { max-width: 760px; margin: 0 auto; }
.rmta-finder-info h2.rmta-subhead { margin-top: 28px; }
.rmta-finder-info p { color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.rmta-finder-info ul { color: var(--text); line-height: 1.8; padding-left: 20px; margin: 0 0 8px; }
.rmta-noresults { text-align: center; max-width: 560px; margin: 0 auto 44px; }
.rmta-noresults .material-symbols-rounded { font-size: 3rem; color: var(--muted); }
.rmta-noresults h2 { color: var(--navy); font-weight: 700; font-size: 1.4rem; margin: 10px 0 8px; }
.rmta-noresults p { color: var(--muted); line-height: 1.6; }

.rmta-acc-card { display: flex; flex-direction: column; height: 100%; padding: 26px; text-align: center; transition: transform var(--transition), box-shadow var(--transition); position: relative; }
.rmta-acc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rmta-acc-verified { position: absolute; top: 14px; right: 14px; color: var(--gold-bright); }
.rmta-acc-verified .material-symbols-rounded { font-size: 1.5rem; font-variation-settings: 'FILL' 1; }
.rmta-acc-name { color: var(--navy); font-weight: 700; font-size: 1.3rem; margin: 14px 0 6px; }
.rmta-acc-loc { color: var(--muted); font-size: 1rem; margin-bottom: 12px; }
.rmta-acc-loc .bi-geo-alt-fill { color: #dc3545; }
.rmta-creds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.rmta-cred { font-size: .8rem; color: var(--navy); background: var(--navy-tint); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.rmta-rating { margin-bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rmta-rating .rmta-stars .material-symbols-rounded { font-size: 1.4rem; }
.rmta-rating-num { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.rmta-rating-count { color: var(--muted); font-size: .9rem; }
.rmta-acc-card .btn { margin-top: auto; }
.rmta-view-btn { background: var(--navy); border-color: var(--navy) !important; color: #fff; width: 100%; font-weight: 600; font-size: 1.05rem; padding: 11px; }
.rmta-view-btn:hover { background: var(--navy-700); color: #fff; }

.form-floating > label { color: var(--muted); }
.form-floating > textarea.form-control { min-height: 120px; }
.rmta-field-error { color: #b42318; font-size: .85rem; margin-top: 4px; }

.rmta-auth {
    
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; margin-top: -3rem;
    min-height: calc(100vh - 56px);
    display: flex; align-items: center; justify-content: center; padding: 96px 16px 72px;
    background-color: var(--navy-900);
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 1.7px);
    background-size: 24px 24px;
}
.rmta-auth-card { width: 100%; max-width: 440px; padding: 34px 30px; }
.rmta-auth-title { text-align: center; color: var(--navy); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; margin: 0 0 6px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rmta-auth-title .material-symbols-rounded { color: var(--gold); font-size: 1.6rem; }
.rmta-auth-sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.rmta-auth-foot { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 18px; }
.rmta-auth-note { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.rmta-dash { width: 100%; }
.rmta-dash-title { text-align: center; color: var(--navy); font-weight: 800; font-size: 1.5rem; margin: 0 0 4px; }
.rmta-dash-tabs {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
    border-bottom: 1px solid var(--border); margin-bottom: 30px;
}
.rmta-dash-tab {
    color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1rem;
    padding: 12px 18px; border-bottom: 3px solid transparent; margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}
.rmta-dash-tab:hover { color: var(--navy); }
.rmta-dash-tab.active { color: var(--navy); border-bottom-color: var(--gold); }

.rmta-kv-label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-bottom: 3px; }
.rmta-kv-value { color: var(--text); margin: 0 0 16px; word-break: break-word; }
.rmta-kv-value.empty { color: var(--muted); font-style: italic; }

.rmta-dash-social { list-style: none; margin: 0; padding: 0; }
.rmta-dash-social li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text); font-size: .9rem; word-break: break-all; }
.rmta-dash-social li:last-child { border-bottom: 0; }
.rmta-dash-social .bi { font-size: 1.25rem; color: var(--navy); flex-shrink: 0; width: 1.4rem; text-align: center; }
.rmta-dash-social .empty { color: var(--muted); }

.rmta-cred-pill { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--navy); background: var(--navy-tint); border-radius: 999px; padding: 4px 11px; margin: 2px; }

.rmta-verified-inline {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
    color: var(--gold-bright); font-weight: 700; font-size: .92rem;
    padding: 4px 13px 4px 9px; border-radius: 999px; white-space: nowrap;
}
.rmta-verified-inline .material-symbols-rounded { font-size: 1.45rem; font-variation-settings: 'FILL' 1; }

.rmta-verified-inline--light { background: var(--navy-tint); border-color: var(--gold); color: var(--navy); }
.rmta-verified-inline--light .material-symbols-rounded { color: var(--gold); }

.rmta-toprated { display: inline-flex; align-items: center; gap: 5px; background: var(--gold); color: var(--navy-900); font-weight: 800; font-size: .82rem; padding: 4px 12px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.rmta-toprated .bi { font-size: .9rem; }
.rmta-toprated--sm { font-size: .72rem; padding: 2px 9px; }
.rmta-toggle-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.rmta-toggle-on { background: #dcfce7; color: #166534; }
.rmta-toggle-off { background: #fee2e2; color: #991b1b; }
.rmta-dash-avatar { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; border: 4px solid var(--navy-tint); }
.rmta-dash-avatar-fallback { font-size: 130px; line-height: 1; color: var(--navy); }

.rmta-backlink { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; font-size: .9rem; }
.rmta-backlink .material-symbols-rounded { font-size: 1.1rem; }
.rmta-backlink .rmta-backlink-txt { text-decoration: none; }
.rmta-backlink:hover { color: var(--navy); }
.rmta-backlink:hover .rmta-backlink-txt { text-decoration: underline; }

.rmta-av { position: relative; display: inline-block; border-radius: 50%; overflow: hidden; line-height: 1; background: var(--navy); vertical-align: middle; border: 3px solid var(--gold); box-sizing: border-box; }
.rmta-av-fb { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; color: #fff; font-weight: 700; overflow: hidden; }
.rmta-av-fb .bi { font-size: .82em; transform: translateY(8%); }
.rmta-av-img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.rmta-av-wrap { position: relative; display: inline-block; }
.rmta-av-edit { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: var(--shadow-sm); text-decoration: none; transition: background var(--transition), transform var(--transition); z-index: 2; }
.rmta-av-edit:hover { background: var(--navy-700); transform: scale(1.06); }
.rmta-av-edit .bi { font-size: .95rem; }
.rmta-av-edit--sm { width: 26px; height: 26px; border-width: 2px; }
.rmta-av-edit--sm .bi { font-size: .72rem; }

.rmta-av-edit--gold { background: var(--gold); color: var(--navy-900) !important; }
.rmta-av-edit--gold:hover { background: var(--gold-bright); }
.rmta-side-since { color: var(--muted); font-size: .78rem; margin-top: 7px; }

.rmta-dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 168px; padding: 22px; border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer; text-align: center; transition: border-color var(--transition), background var(--transition); }
.rmta-dropzone:hover, .rmta-dropzone.dragover { border-color: var(--navy); background: var(--navy-tint); }
.rmta-dropzone-icon { font-size: 2.1rem; color: var(--navy); line-height: 1; }
.rmta-dropzone-text { color: var(--text); font-size: .95rem; }
.rmta-dropzone-hint { color: var(--muted); font-size: .8rem; }
.rmta-dropzone-preview { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }

:root { --rmta-navh: 57px; --rmta-sidew: 256px; }
main.rmta-app { width: 100%; max-width: none; margin: 0; padding: 0; padding-top: var(--rmta-navh); }
.rmta-app-side {
    position: fixed; top: var(--rmta-navh); left: 0; bottom: 0; width: var(--rmta-sidew);
    background: #fff; border-right: 1px solid var(--border); overflow-y: auto; z-index: 90;
    display: flex; flex-direction: column;
}
.rmta-app-body {
    margin-left: var(--rmta-sidew); min-height: calc(100vh - var(--rmta-navh));
    padding: 30px 34px 56px; background: var(--bg);
}
@media (max-width: 991.98px) {
    .rmta-app-side { position: static; width: 100%; bottom: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .rmta-app-body { margin-left: 0; padding: 22px 16px 40px; min-height: 0; }
}
.rmta-side-user { text-align: center; padding: 22px 16px 18px; border-bottom: 1px solid var(--border); }
.rmta-side-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--navy-tint); }
.rmta-side-avatar-fb { width: 72px; height: 72px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: #fff; font-size: 1.6rem; font-weight: 700; }
.rmta-side-name { font-weight: 700; color: var(--navy); margin-top: 10px; line-height: 1.25; }
.rmta-side-role { color: var(--muted); font-size: .82rem; margin-top: 2px; }

.rmta-side-user .rmta-verified-badge, .rmta-side-user .rmta-member-badge { margin-top: 8px; }
.rmta-side-nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.rmta-side-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem; transition: background var(--transition), color var(--transition); }
.rmta-side-nav a .material-symbols-rounded { font-size: 1.3rem; color: var(--muted); transition: color var(--transition); }
.rmta-side-nav a:hover { background: var(--bg); color: var(--navy); }
.rmta-side-nav a.active { background: var(--navy-tint); color: var(--navy); font-weight: 700; }
.rmta-side-nav a.active .material-symbols-rounded { color: var(--gold); }
.rmta-side-divider { border-top: 1px solid var(--border); margin: 8px 4px; }
@media (max-width: 991.98px) {
    .rmta-dash-shell { flex-direction: column; }
    .rmta-side { position: static; width: 100%; flex-basis: auto; }
    .rmta-side-user { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
    .rmta-side-user .rmta-side-avatar, .rmta-side-user .rmta-side-avatar-fb { width: 52px; height: 52px; font-size: 1.2rem; }
    .rmta-side-name { margin-top: 0; }
    .rmta-side-nav { flex-direction: row; flex-wrap: wrap; }
    .rmta-side-nav a { flex: 0 0 auto; }
    .rmta-side-divider { display: none; }
}

.rmta-ov-head { margin-bottom: 22px; }
.rmta-ov-title { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin: 0; }
.rmta-ov-sub { color: var(--muted); margin: 4px 0 0; }
.rmta-ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 22px; }
.rmta-ov-stat { padding: 18px 20px; display: flex; align-items: center; gap: 14px; }
.rmta-ov-stat .material-symbols-rounded { font-size: 1.8rem; color: var(--gold); }
.rmta-ov-stat .n { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.rmta-ov-stat .l { color: var(--muted); font-size: .85rem; }
.rmta-progress { height: 9px; background: var(--navy-tint); border-radius: 999px; overflow: hidden; }
.rmta-progress-bar { height: 100%; background: var(--gold); border-radius: 999px; }
.rmta-ov-action { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color var(--transition), background var(--transition); }
.rmta-ov-action:hover { border-color: var(--navy); background: var(--bg); color: var(--navy); }
.rmta-ov-action .material-symbols-rounded { color: var(--navy); }

.rmta-toggle-field { padding: 11px 0; border-bottom: 1px solid var(--border); }
.rmta-toggle-field:last-of-type { border-bottom: 0; }
.rmta-toggle-field .lbl { font-weight: 600; color: var(--text); font-size: .92rem; line-height: 1.25; }
.rmta-toggle-field .hint { color: var(--muted); font-size: .76rem; line-height: 1.3; margin-top: 1px; }

.rmta-ifield { margin-bottom: 4px; padding: 7px 10px; border-radius: var(--radius); border: 1px solid transparent; transition: background var(--transition), border-color var(--transition); }
.rmta-ifield:hover { background: var(--bg); }
.rmta-ifield.is-editing { background: var(--navy-tint); border-color: var(--border); }

.rmta-ifield-row { display: flex; align-items: center; gap: 6px; min-height: 34px; }

.rmta-loc-grid { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 34px; }
.rmta-loc-grid > .rmta-loc-city { flex: 1 1 130px; min-width: 0; }
.rmta-loc-grid > .rmta-loc-state { flex: 0 0 64px; width: 64px; min-width: 0; }
.rmta-loc-grid > .rmta-loc-zip { flex: 0 0 82px; width: 82px; min-width: 0; }
.rmta-ifield-val { color: var(--text); word-break: break-word; flex: 0 1 auto; }   
.rmta-ifield-val.empty { color: var(--muted); font-style: italic; }
.rmta-ifield-input { flex: 1 1 auto; min-width: 0; height: 34px; padding: 2px 10px; font-size: .94rem; }
textarea.rmta-ifield-input { height: auto; padding: 6px 10px; }

.rmta-ifield-edit, .rmta-ifield-btn { flex-shrink: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.rmta-ifield-edit { background: none; color: var(--muted); opacity: .4; font-size: .9rem; transition: opacity var(--transition), color var(--transition), background var(--transition); }
.rmta-ifield:hover .rmta-ifield-edit, .rmta-ifield-edit:focus-visible { opacity: 1; }
.rmta-ifield-edit:hover { color: var(--navy); background: #fff; }
.rmta-ifield-save { background: #16a34a; color: #fff; }
.rmta-ifield-save:hover { background: #15803d; }
.rmta-ifield-cancel { background: #fff; color: var(--muted); border-color: var(--border); }
.rmta-ifield-cancel:hover { background: #fee2e2; color: #b42318; border-color: #fecaca; }
.rmta-ifield.htmx-request { opacity: .55; }
.rmta-locked { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; vertical-align: middle; }

.rmta-share { position: relative; }
.rmta-share-menu { position: absolute; right: 0; left: 0; top: calc(100% + 6px); z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; }
.rmta-share-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); font-size: .92rem; cursor: pointer; text-align: left; }
.rmta-share-item:hover { background: var(--bg); color: var(--navy); }
.rmta-share-item .bi { font-size: 1.05rem; color: var(--navy); width: 1.2rem; text-align: center; }

.rmta-qa-title { font-weight: 600; color: var(--navy); text-decoration: none; line-height: 1.3; }
.rmta-qa-title:hover { text-decoration: underline; }
.rmta-qa-meta { color: var(--muted); font-size: .79rem; margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; }
.rmta-qa-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rmta-qa-meta .bi { font-size: .9rem; }
.rmta-qa-snippet { color: var(--text); font-size: .88rem; margin: 6px 0 0; line-height: 1.45; }
.rmta-qa-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }

.rmta-qa-item { display: block; text-decoration: none; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color var(--transition), box-shadow var(--transition); }
.rmta-qa-item + .rmta-qa-item { margin-top: 12px; }
.rmta-qa-item:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.rmta-qa-item .rmta-qa-title, .rmta-qa-item .rmta-qa-eyebrow { display: block; }
.rmta-qa-item:hover .rmta-qa-title { color: var(--navy-700); text-decoration: none; }

.pagination { gap: 4px; justify-content: center; }
.pagination .page-link { color: var(--navy); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .45rem .75rem; }
.pagination .page-link:hover { background: var(--navy-tint); color: var(--navy); border-color: var(--border); }
.pagination .page-link:focus { box-shadow: none; }
.pagination .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .page-item.disabled .page-link { color: var(--muted); background: #fff; }

.rmta-avatar {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    background: var(--navy-tint); border: 3px solid var(--gold); box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.rmta-avatar--sm { width: 64px; height: 64px; }
.rmta-avatar-fallback {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 2rem; font-weight: 700;
    border: 3px solid #fff; box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.rmta-avatar-fallback--sm { width: 64px; height: 64px; font-size: 1.4rem; }

.material-symbols-rounded, .material-icons-round { line-height: 1; }

.rmta-icon-text { display: inline-flex; align-items: center; gap: 8px; }

.rmta-navbar {
    background: var(--navy-900);
    box-shadow: 0 2px 16px rgba(8, 30, 46, .35);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    padding-top: .55rem;
    padding-bottom: .55rem;
}
.rmta-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff !important; text-decoration: none !important; }
.rmta-brand img { height: 30px; width: auto; }
.rmta-navbar .navbar-nav { gap: .15rem; }   
.rmta-navbar .rmta-navlink {
    color: rgba(255, 255, 255, .85) !important; font-weight: 500; font-size: 1rem;
    padding: .5rem .9rem !important; border-radius: var(--radius-sm); background: transparent;
    transition: color var(--transition), background var(--transition);
}
.rmta-navbar .rmta-navlink:hover, .rmta-navbar .rmta-navlink:focus-visible, .rmta-navbar .rmta-navlink[aria-expanded="true"] { color: #fff !important; background: rgba(255, 255, 255, .10); }

.rmta-signout .bi { font-size: 1.1rem; vertical-align: -2px; }
@media (min-width: 992px) { .rmta-signout-txt { display: none; } }
@media (max-width: 991.98px) { .rmta-signout .bi { margin-right: 8px; } }

.rmta-navbar .rmta-notif-bell, .rmta-navbar .rmta-signout { padding-left: .6rem !important; padding-right: .6rem !important; }
.rmta-navbar .rmta-notif { margin-left: .6rem; }
.rmta-navbar .rmta-navcta {
    color: var(--navy) !important; background: var(--gold-bright); font-weight: 700; font-size: 1rem;
    padding: .5rem 1.15rem !important; border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
}
.rmta-navbar .rmta-navcta:hover, .rmta-navbar .rmta-navcta:focus { background: var(--gold); color: var(--navy) !important; transform: translateY(-1px); }
.rmta-toggler { border: 0 !important; box-shadow: none !important; outline: 0 !important; padding: .45rem .35rem; }
.rmta-burger { display: block; width: 26px; height: 18px; position: relative; }
.rmta-burger span {
    position: absolute; left: 0; height: 2.5px; width: 100%; background: #fff; border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease, top .3s ease;
}
.rmta-burger span:nth-child(1) { top: 0; }
.rmta-burger span:nth-child(2) { top: 7.75px; }
.rmta-burger span:nth-child(3) { top: 15.5px; }
.rmta-toggler[aria-expanded="true"] .rmta-burger span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
.rmta-toggler[aria-expanded="true"] .rmta-burger span:nth-child(2) { opacity: 0; }
.rmta-toggler[aria-expanded="true"] .rmta-burger span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }
@media (max-width: 991.98px) {
    
    .rmta-navbar .navbar-collapse {
        position: absolute; top: 100%; left: 12px; right: 12px;
        background: var(--navy-700); border: 1px solid rgba(255, 255, 255, .12);
        border-radius: var(--radius); padding: .4rem .6rem; box-shadow: var(--shadow);
        /* Cap to the viewport and scroll: the Tools dropdown renders inline (static) when the navbar is
           collapsed, so a long tools list used to push the menu below the screen with no way to reach it. */
        max-height: calc(100vh - 78px);
        max-height: calc(100dvh - 78px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .rmta-navbar .navbar-collapse.collapsing {
        
        transition: height .25s linear;
    }
    .rmta-navbar .rmta-navlink, .rmta-navbar .rmta-navcta {
        display: block; width: 100%; text-align: center; margin: .15rem 0 !important;
    }
}

.rmta-footer {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .75);
    padding: 56px 0 28px;
    margin-top: auto;
    border-top: 3px solid var(--gold-bright);
}
.rmta-footer-brand { display: inline-flex; align-items: center; gap: 9px; color: #fff !important; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.rmta-footer-brand img { height: 28px; width: auto; }
.rmta-footer-tagline { color: rgba(255, 255, 255, .62); margin-top: 14px; max-width: 40ch; line-height: 1.6; }
.rmta-footer-tagline .hl { position: relative; white-space: nowrap; color: #fff; font-weight: 600; }
.rmta-footer-tagline .hl::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 3px; background: var(--gold-bright); border-radius: 999px; }
.rmta-footer-h { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 14px; }
.rmta-footer-links { list-style: none; padding: 0; margin: 0; }
.rmta-footer-links li { margin-bottom: 9px; }
.rmta-footer-links a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color var(--transition); }
.rmta-footer-links a:hover { color: var(--gold-bright); }
.rmta-footer-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-bright); font-weight: 600; text-decoration: none; }
.rmta-footer-cta:hover { color: #fff; }
.rmta-footer-social { display: flex; gap: 14px; margin-top: 18px; }
.rmta-footer-social a { color: rgba(255, 255, 255, .8); font-size: 1.4rem; transition: color var(--transition), transform var(--transition); }
.rmta-footer-social a:hover { color: var(--gold-bright); transform: translateY(-2px); }
.rmta-footer-states { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .10); }
.rmta-footer-states .acc-by-s { color: rgba(255, 255, 255, .72) !important; text-decoration: none; font-size: 14px; display: inline-block; padding: 3px 0; transition: color var(--transition); }
.rmta-footer-states .acc-by-s:hover { color: var(--gold-bright) !important; text-decoration: underline; }
.rmta-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .10); text-align: center; color: rgba(255, 255, 255, .55); font-size: .9rem; }

.rmta-linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--navy); transition: color var(--transition); }
.rmta-linkbtn:hover, .rmta-linkbtn:focus { color: var(--navy-700); text-decoration: underline; }

.rmta-art-badge { display: inline-block; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.rmta-art-badge.is-pub { background: var(--navy-tint); color: var(--navy); }
.rmta-art-badge.is-draft { background: #fff4d6; color: #8a6100; }

.rmta-draft-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1080; display: flex; align-items: center; gap: 10px; max-width: 92vw; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.rmta-draft-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-bright); flex: 0 0 auto; }
.rmta-draft-bar-text { color: rgba(255, 255, 255, .92); }
.rmta-draft-bar-text strong { color: var(--gold-bright); }
.rmta-draft-bar-link { color: #fff; font-weight: 700; text-decoration: underline; margin-left: 4px; white-space: nowrap; }
.rmta-draft-bar-link:hover { color: var(--gold-bright); }
@media (max-width: 575px) { .rmta-draft-bar { font-size: .82rem; padding: 8px 12px; } }

.rmta-toasts {
    position: fixed; top: 80px; right: 24px; z-index: 1090;
    display: flex; flex-direction: column; gap: 12px; max-width: min(92vw, 400px);
}
.rmta-toast-item {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    background: var(--surface); color: var(--text); border: 1px solid var(--border);
    border-left: 4px solid var(--toast-accent, var(--muted)); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease;
}
.rmta-toast-item.show { opacity: 1; transform: translateY(0); }
.rmta-toast-icon { font-size: 1.4rem; flex-shrink: 0; color: var(--toast-accent, var(--muted)); }
.rmta-toast-msg { flex: 1; line-height: 1.4; font-size: .98rem; padding-bottom: 2px; }
.rmta-toast-close { background: none; border: 0; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.rmta-toast-close:hover { color: var(--text); }
.rmta-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--toast-accent, var(--muted)); opacity: .55; }
.rmta-toast-error { --toast-accent: #dc3545; }
.rmta-toast-success { --toast-accent: #16a34a; }
.rmta-toast-warning { --toast-accent: #d97706; }
.rmta-toast-info { --toast-accent: var(--navy); }
@media (max-width: 575px) { .rmta-toasts { left: 16px; right: 16px; top: 72px; max-width: none; } }

.rmta-comments { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.rmta-comments-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.rmta-comment-form { margin-bottom: 24px; }
.rmta-comment-form textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.rmta-comment-form-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.rmta-comments-signin { color: var(--muted); margin-bottom: 24px; }
.rmta-comments-empty { color: var(--muted); }
.rmta-comment-list { display: flex; flex-direction: column; gap: 18px; }
.rmta-comment { display: flex; gap: 12px; }
.rmta-comment-avatar { width: 38px; height: 38px; font-size: .95rem; flex: 0 0 auto; margin: 0; }
.rmta-comment-main { flex: 1 1 auto; min-width: 0; }
.rmta-comment-meta { font-size: .85rem; color: var(--muted); margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.rmta-comment-author { font-weight: 700; color: var(--navy); text-decoration: none; }
a.rmta-comment-author { cursor: pointer; }
a.rmta-comment-author:hover { color: var(--gold); }
.rmta-comment-badge { font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); background: var(--navy-tint); padding: 1px 7px; border-radius: 999px; }
.rmta-comment-verified { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--navy-900); background: var(--gold); padding: 1px 7px; border-radius: 999px; }
.rmta-comment-verified .material-symbols-rounded { font-size: .85rem; font-variation-settings: 'FILL' 1; }

.rmta-verified-badge, .rmta-member-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.rmta-verified-badge { color: var(--navy-900); background: var(--gold); }
.rmta-member-badge { color: #fff; background: var(--navy); }
.rmta-verified-badge .material-symbols-rounded, .rmta-member-badge .material-symbols-rounded { font-size: .85rem; font-variation-settings: 'FILL' 1; }
.rmta-comment-id { color: var(--muted); font-size: .78rem; font-weight: 700; }

.rmta-vote { display: inline-flex; align-items: center; gap: 4px; }
.rmta-vote-btn { background: none; border: none; padding: 0 2px; line-height: 1; color: var(--muted); cursor: pointer; display: inline-flex; transition: color var(--transition), transform var(--transition); }
.rmta-vote-btn .bi { font-size: 1.05rem; }
.rmta-vote-btn:hover { color: var(--navy); transform: scale(1.15); }
.rmta-vote-btn.is-up { color: #16a34a; }      
.rmta-vote-btn.is-down { color: #dc3545; }    
.rmta-vote-score { font-size: .85rem; font-weight: 800; color: var(--muted); min-width: 18px; text-align: center; }
.rmta-vote-score.pos { color: #16a34a; }
.rmta-vote-score.neg { color: #dc3545; }

.rmta-clap { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0; }
.rmta-clap-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 700; color: var(--navy); transition: border-color var(--transition), transform var(--transition), background var(--transition); }
.rmta-clap-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.rmta-clap-btn:active { transform: scale(.94); }
.rmta-clap-btn.clapped { background: var(--navy); border-color: var(--navy); color: #fff; }
.rmta-clap-icon { font-size: 1.25rem; line-height: 1; }
.rmta-clap-count { font-size: .95rem; font-variant-numeric: tabular-nums; }
.rmta-clap-label { color: var(--muted); font-size: .85rem; }

.rmta-reg { font-size: .5em; vertical-align: baseline; position: relative; top: -0.75em; line-height: 0; margin-left: 1px; }

.rmta-s-subscribe .bi-bell-fill { color: var(--gold); margin-right: 6px; }
.rmta-sub-lead { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.rmta-sub-form { display: flex; gap: 8px; flex-wrap: wrap; }
.rmta-sub-form input { flex: 1 1 160px; }
.rmta-sub-on { display: flex; flex-direction: column; gap: 10px; }
.rmta-sub-on-txt { color: var(--navy); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.rmta-sub-on-txt .bi { color: var(--gold); }
.rmta-sub-done { color: var(--navy); font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.rmta-sub-done .material-symbols-rounded { color: var(--gold); font-variation-settings: 'FILL' 1; }

.rmta-notif-bell { position: relative; color: rgba(255,255,255,.9) !important; background: none; border: none; cursor: pointer; }
.rmta-notif-bell:hover, .rmta-notif-bell[aria-expanded="true"] { color: var(--gold-bright) !important; }
.rmta-notif-bell .bi-bell-fill { font-size: 1.15rem; }
.rmta-notif-badge { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: .65rem; font-weight: 800; line-height: 16px; text-align: center; }
.rmta-notif-menu { width: 320px; max-height: 420px; overflow-y: auto; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.rmta-notif-panel { position: fixed; top: calc(var(--rmta-navh, 57px) + 4px); right: 12px; width: 340px; max-width: calc(100vw - 24px); max-height: 75vh; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 1080; }
.rmta-notif-panel[hidden] { display: none; }
.rmta-notif-more { display: block; width: 100%; text-align: center; padding: 10px; background: var(--bg); border: none; border-top: 1px solid var(--border); color: var(--navy); font-weight: 600; font-size: .85rem; cursor: pointer; }
.rmta-notif-more:hover { background: var(--navy-tint); }

.dropdown-item:hover, .dropdown-item:focus-visible, .dropdown-item:active {
    background-color: var(--navy-tint) !important; color: var(--navy) !important;
}

.rmta-navbar .dropdown-toggle:focus, .rmta-navbar .dropdown-toggle:focus-visible { box-shadow: none !important; outline: none !important; }

.rmta-tools-toggle::after { display: none !important; }
.rmta-dd-caret { font-size: .68rem; margin-left: 3px; vertical-align: middle; display: inline-block; transition: transform .2s ease; }
.rmta-tools-toggle[aria-expanded="true"] .rmta-dd-caret { transform: rotate(180deg); }
.rmta-tools-menu { border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px; min-width: 0; width: max-content; max-width: 92vw; transform-origin: top; }
.rmta-tools-menu .dropdown-item { white-space: nowrap; }
@media (max-width: 991.98px) { .rmta-tools-menu { width: 100%; max-width: 100%; } }
.rmta-tools-menu.show { animation: rmta-dd-in .15s ease-out; }
@keyframes rmta-dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.rmta-tools-menu .dropdown-item { padding: 8px 14px; color: var(--text); font-size: .9rem; border-radius: var(--radius-sm); }
.rmta-tools-menu .dropdown-item:hover, .rmta-tools-menu .dropdown-item:focus-visible, .rmta-tools-menu .dropdown-item:active { background-color: var(--navy-tint) !important; color: var(--navy) !important; }
.rmta-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; font-weight: 800; color: var(--navy); border-bottom: 1px solid var(--border); font-size: .9rem; }
.rmta-notif-headactions { display: flex; gap: 12px; }
.rmta-notif-action { background: none; border: none; padding: 0; cursor: pointer; color: var(--navy); font-weight: 600; font-size: .76rem; }
.rmta-notif-action:hover { color: var(--gold); text-decoration: underline; }
.rmta-notif-action--danger:hover { color: #dc3545; }
.rmta-notif-row { position: relative; display: flex; align-items: stretch; border-bottom: 1px solid var(--border); transition: background var(--transition); }
.rmta-notif-row:hover { background: var(--bg); }
.rmta-notif-row.unread { background: var(--navy-tint); }
.rmta-notif-row.unread:hover { background: var(--navy-tint); }
.rmta-notif-row.unread .rmta-notif-text { font-weight: 600; }
.rmta-notif-item { position: relative; flex: 1 1 auto; min-width: 0; display: block; padding: 11px 6px 11px 30px; text-decoration: none; color: var(--text); }
.rmta-notif-item:hover { color: var(--text); }
.rmta-notif-dot { position: absolute; left: 14px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.rmta-notif-text { display: block; font-size: .88rem; line-height: 1.4; }
.rmta-notif-time { display: block; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.rmta-notif-tools { display: flex; align-items: center; padding-right: 8px; flex: 0 0 auto; }
.rmta-notif-trash, .rmta-notif-yes, .rmta-notif-no { background: none; border: none; cursor: pointer; padding: 6px; font-size: .85rem; line-height: 1; border-radius: var(--radius-sm); color: var(--muted); }
.rmta-notif-trash:hover { color: #dc3545; }
.rmta-notif-confirm { display: inline-flex; gap: 2px; align-items: center; }
.rmta-notif-yes { color: #198754; }
.rmta-notif-yes:hover { background: #e8f5ee; }
.rmta-notif-no { color: #dc3545; }
.rmta-notif-no:hover { background: #fbe9eb; }
.rmta-notif-delwrap { display: inline-flex; align-items: center; }

.rmta-notif-delwrap .rmta-notif-yes, .rmta-notif-delwrap .rmta-notif-no { padding: 2px 5px; }
.rmta-notif-empty { padding: 22px 16px; text-align: center; color: var(--muted); font-size: .88rem; }

.rmta-gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.rmta-gallery-item { position: relative; width: 92px; height: 92px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: block; }
.rmta-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rmta-gallery-del { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(11,44,67,.85); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: .68rem; }
.rmta-gallery-del:hover { background: #dc3545; }
.rmta-gallery-add { margin: 0; }
.rmta-gallery-drop { width: 92px; height: 92px; border: 2px dashed var(--border); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--muted); font-size: .72rem; text-align: center; transition: border-color var(--transition), color var(--transition); }
.rmta-gallery-drop:hover { border-color: var(--gold); color: var(--navy); }
.rmta-gallery-drop.dragover { border-color: var(--navy); color: var(--navy); background: var(--navy-tint); }
.rmta-gallery-drop .bi { font-size: 1.1rem; }
.rmta-gallery-hint { color: var(--muted); font-size: .8rem; margin: 10px 0 0; }
.rmta-s-gallery .bi-images { color: var(--gold); margin-right: 6px; }
.rmta-gallery-public .rmta-gallery-item { width: 120px; height: 120px; }

button.rmta-gallery-item { padding: 0; background: none; cursor: pointer; }
button.rmta-gallery-item:hover img { transform: scale(1.04); }
button.rmta-gallery-item img { transition: transform var(--transition); }
@media (max-width: 575px) { .rmta-gallery-item, .rmta-gallery-drop, .rmta-gallery-public .rmta-gallery-item { width: 80px; height: 80px; } }

.rmta-lightbox { position: fixed; inset: 0; z-index: 1080; background: rgba(11,44,67,.92); display: flex; align-items: center; justify-content: center; }
.rmta-lightbox[hidden] { display: none; }
.rmta-lb-figure { margin: 0; max-width: 88vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rmta-lb-img { max-width: 88vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.4); }
.rmta-lb-cap { color: #fff; font-size: .9rem; text-align: center; max-width: 88vw; }
.rmta-lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background var(--transition); }
.rmta-lb-btn:hover { background: rgba(255,255,255,.28); }
.rmta-lb-close { top: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1; }
.rmta-lb-prev, .rmta-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.rmta-lb-prev { left: 18px; }
.rmta-lb-next { right: 18px; }
@media (max-width: 575px) { .rmta-lb-prev, .rmta-lb-next { width: 42px; height: 42px; font-size: 1.6rem; } .rmta-lb-prev { left: 6px; } .rmta-lb-next { right: 6px; } }

.rmta-consult-note { text-align: left; color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.rmta-consult-note a { color: var(--navy); font-weight: 600; }
.rmta-consult-note a:hover { color: var(--navy-700); }

.rmta-acct-preview-name { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 12px 0 4px; }
.rmta-acct-preview-dba { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.rmta-acct-preview-dba .material-symbols-rounded { font-size: 1rem; }
.rmta-acct-preview-loc { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.rmta-rev-preview-sub { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.rmta-rev-preview-stats { display: flex; justify-content: center; gap: 26px; padding: 12px 0 6px; margin-bottom: 4px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.rmta-rev-preview-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rmta-rev-preview-num { font-size: 1.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.rmta-rev-preview-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rmta-rev-preview-section { text-align: left; margin-top: 16px; }
.rmta-rev-preview-head { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rmta-rev-preview-item { display: block; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; text-decoration: none; transition: border-color var(--transition); }
.rmta-rev-preview-item:hover { border-color: var(--gold); }
.rmta-rev-preview-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.rmta-rev-preview-for { color: var(--navy); font-weight: 600; font-size: .85rem; }
.rmta-rev-preview-snip { display: block; color: var(--text); font-size: .85rem; line-height: 1.45; }
.rmta-comment-date { color: var(--muted); }
.rmta-comment-body { color: var(--text); line-height: 1.6; word-wrap: break-word; }
.rmta-comment-actions { margin-top: 7px; }

.rmta-quizgrid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .rmta-quizgrid { grid-template-columns: 1fr 1fr; } }
.rmta-quizcard { display: flex; flex-direction: column; padding: 20px 22px; text-decoration: none; transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.rmta-quizcard:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.rmta-quizcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; min-height: 22px; }
.rmta-quizcard-topic { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); background: var(--navy-tint); border-radius: var(--radius-sm); padding: 2px 9px; }
.rmta-quizcard-best { font-size: .72rem; font-weight: 800; color: var(--navy); background: var(--gold-soft); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.rmta-note { display: flex; gap: 10px; align-items: flex-start; background: var(--navy-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 15px; font-size: .85rem; color: var(--text); line-height: 1.5; margin: 4px 0 18px; }
.rmta-note > .bi, .rmta-note > .material-symbols-rounded { color: var(--gold); flex: 0 0 auto; margin-top: 1px; }
.rmta-quizcard-title { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.rmta-quizcard-sum { font-size: .9rem; color: var(--muted); margin: 0 0 16px; flex: 1; line-height: 1.5; }
.rmta-quizcard-foot { display: flex; justify-content: space-between; align-items: center; }
.rmta-quizcard-count { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.rmta-quizcard-go { font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; }
.rmta-quizcard:hover .rmta-quizcard-go { color: var(--gold); }

.rmta-quiz-intro { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-tint); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; }
.rmta-quiz-intro > .bi { color: var(--navy); font-size: 1.4rem; flex: 0 0 auto; line-height: 1; margin-top: 1px; }
.rmta-quiz-intro-body { flex: 1; min-width: 0; }
.rmta-quiz-intro-body p { margin: 0; color: var(--text); line-height: 1.55; }
.rmta-quiz-intro-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rmta-quiz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #fff; color: var(--navy); border: 1px solid var(--border); }
.rmta-quiz-chip.best { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.rmta-quiz-chip.first { background: #fff; color: var(--muted); }
.rmta-callout { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-tint); border: 1px solid var(--border); border-left: 4px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 26px; }
.rmta-callout > .bi, .rmta-callout > .material-symbols-rounded { color: var(--navy); font-size: 1.4rem; flex: 0 0 auto; line-height: 1; margin-top: 1px; }
.rmta-callout-body { flex: 1; min-width: 0; }
.rmta-callout-body p { margin: 0; color: var(--text); line-height: 1.55; font-size: .95rem; }
.rmta-callout-body p + p { margin-top: 8px; }
.rmta-callout.center { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Legal/policy pages (privacy, terms, profile-claim) share one style so they never drift. */
.rmta-legal { max-width: 820px; width: 100%; line-height: 1.7; padding: 36px 40px; }
.rmta-legal p, .rmta-legal li { color: var(--text); }
.rmta-legal ul { margin: 8px 0; padding-left: 22px; }
.rmta-legal ol { padding-left: 22px; }
.rmta-legal ol > li { margin-bottom: 10px; }
.rmta-legal h2 { color: var(--navy); font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 .4em; }
.rmta-legal h3 { color: var(--navy); font-size: 1rem; font-weight: 700; margin: 1em 0 .3em; }
.rmta-legal a { color: var(--navy); text-decoration: underline; }
.rmta-legal-title { text-align: center; color: var(--navy); font-weight: 800; font-size: 1.6rem; margin: 0 0 4px; }
.rmta-legal-sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.rmta-legal-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
@media (max-width: 575px) { .rmta-legal { padding: 26px 22px; } }
.rmta-quizq { padding: 20px 22px; margin-bottom: 16px; }
.rmta-quizq-num { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.rmta-quizq-text { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 14px; line-height: 1.5; }
.rmta-quizq-choices { display: flex; flex-direction: column; gap: 9px; }
.rmta-quizq-choice { display: flex; align-items: flex-start; gap: 11px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.rmta-quizq-choice:hover { border-color: var(--navy); background: var(--navy-tint); }
.rmta-quizq-choice input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--navy); }
.rmta-quizq-choicetext { font-size: .95rem; color: var(--text); }
.rmta-quiz-submit { padding: 13px 40px; font-size: 1.02rem; }

.rmta-quizscore { display: flex; align-items: center; gap: 22px; padding: 22px 26px; }
.rmta-quizscore-pct { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; flex: 0 0 auto; }
.rmta-quizscore-line { font-size: 1.02rem; color: var(--text); margin: 0 0 2px; }
.rmta-quizscore-best { font-size: .86rem; color: var(--muted); margin: 0; }

.rmta-quizr { padding: 18px 22px; margin-bottom: 14px; border-left: 4px solid var(--border); }
.rmta-quizr.is-right { border-left-color: #2a9d4a; }
.rmta-quizr.is-wrong { border-left-color: #c0392b; }
.rmta-quizr-head { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; display: inline-flex; align-items: center; gap: 6px; }
.rmta-quizr.is-right .rmta-quizr-head { color: #2a9d4a; }
.rmta-quizr.is-wrong .rmta-quizr-head { color: #c0392b; }
.rmta-quizr-text { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 12px; line-height: 1.5; }
.rmta-quizr-choices { list-style: none; margin: 0 0 12px; padding: 0; }
.rmta-quizr-choices li { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: .93rem; color: var(--muted); }
.rmta-quizr-choices li.correct { background: rgba(42,157,74,.1); color: #1e7e34; font-weight: 600; }
.rmta-quizr-choices li.chosen-wrong { background: rgba(192,57,43,.08); color: #b33; }
.rmta-quizr-tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 1px 8px; background: rgba(192,57,43,.14); color: #b33; margin-left: auto; white-space: nowrap; }
.rmta-quizr-tag.tag-correct { background: rgba(42,157,74,.16); color: #1e7e34; }
.rmta-quizr-exp { font-size: .9rem; color: var(--text); background: var(--bg); border-radius: var(--radius); padding: 10px 13px; margin: 0 0 10px; line-height: 1.55; }
.rmta-quizr-src { font-size: .84rem; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.rmta-quizr-src a { color: var(--navy); }

.rmta-quizq.rmta-quizq-missing { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
