/**
 * ==========================================================
 * MSTJapan
 * Public Website Main Stylesheet
 * Phase 18.2
 * Version: 1.0.0
 * ==========================================================
 *
 * PURPOSE:
 *
 * Global public website design system.
 *
 * VISUAL AUTHORITY:
 *
 * Approved MSTJapan Homepage Mockup
 *
 * THEME:
 *
 * Navy / White / Orange
 * ==========================================================
 */


/* ==========================================================
   1. Design Tokens
========================================================== */

:root {

    --mst-navy-950: #071a33;
    --mst-navy-900: #0b2447;
    --mst-navy-800: #12345d;
    --mst-navy-700: #1c4777;

    --mst-orange-600: #e97811;
    --mst-orange-500: #f28a1a;
    --mst-orange-400: #f6a141;

    --mst-white: #ffffff;
    --mst-bg: #f5f7fb;
    --mst-surface: #ffffff;

    --mst-text-900: #17233c;
    --mst-text-700: #42526d;
    --mst-text-500: #718096;
    --mst-text-400: #94a3b8;

    --mst-border: #e3e8ef;
    --mst-border-dark: rgba(255, 255, 255, 0.14);

    --mst-success: #18864b;
    --mst-danger: #c83a3a;

    --mst-radius-sm: 6px;
    --mst-radius-md: 10px;
    --mst-radius-lg: 16px;

    --mst-shadow-sm:
        0 4px 16px rgba(10, 35, 70, 0.07);

    --mst-shadow-md:
        0 12px 32px rgba(10, 35, 70, 0.12);

    --mst-container:
        1420px;

    --mst-transition:
        180ms ease;
}


/* ==========================================================
   2. Reset / Base
========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--mst-bg);
    color: var(--mst-text-900);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.public-mobile-menu-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
}

.public-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-main {
    flex: 1 0 auto;
}

.public-container {
    width: min(
        calc(100% - 36px),
        var(--mst-container)
    );
    margin-inline: auto;
}

.public-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.public-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: var(--mst-radius-sm);
    background: var(--mst-orange-500);
    color: var(--mst-white);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform var(--mst-transition);
}

.public-skip-link:focus {
    transform: translateY(0);
}


/* ==========================================================
   3. Top Information Bar
========================================================== */

.public-topbar {
    position: relative;
    z-index: 120;
    background: var(--mst-navy-950);
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.public-topbar-inner {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.public-topbar-left,
.public-topbar-right {
    display: flex;
    align-items: center;
}

.public-topbar-left {
    gap: 22px;
    min-width: 0;
}

.public-topbar-right {
    align-self: stretch;
    margin-left: auto;
}

.public-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

a.public-topbar-item {
    transition:
        color var(--mst-transition),
        opacity var(--mst-transition);
}

a.public-topbar-item:hover {
    color: var(--mst-orange-400);
}

.public-topbar-item strong {
    color: var(--mst-white);
    font-weight: 700;
}

.public-topbar-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--mst-orange-400);
    font-size: 13px;
}

.public-stock-count-item strong {
    color: var(--mst-orange-400);
}

.public-topbar-control {
    min-width: 96px;
    height: 35px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.11);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    transition:
        background var(--mst-transition),
        color var(--mst-transition);
}

.public-topbar-control:hover,
.public-topbar-control:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--mst-white);
}

.public-control-caret {
    font-size: 10px;
    opacity: 0.75;
}


/* ==========================================================
   4. Main Header
========================================================== */

.public-header {
    position: relative;
    z-index: 100;
    background: var(--mst-white);
    border-bottom: 1px solid var(--mst-border);
    box-shadow: 0 1px 0 rgba(10, 35, 70, 0.02);
}

.public-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.public-brand {
    flex: 0 0 auto;
    min-width: 185px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.public-brand-main {
    display: flex;
    align-items: baseline;
    letter-spacing: -1.8px;
    font-size: 27px;
    font-weight: 900;
}

.public-brand-mst {
    color: var(--mst-navy-950);
}

.public-brand-japan {
    color: var(--mst-orange-600);
}

.public-brand-tagline {
    margin-top: 5px;
    max-width: 190px;
    color: var(--mst-text-500);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}


/* ==========================================================
   5. Desktop Navigation
========================================================== */

.public-navigation {
    min-width: 0;
    flex: 1 1 auto;
}

.public-nav-list {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    list-style: none;
}

.public-nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.public-nav-link {
    position: relative;
    min-height: 72px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--mst-text-900);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition:
        color var(--mst-transition),
        background var(--mst-transition);
}

.public-nav-link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--mst-orange-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--mst-transition);
}

.public-nav-link:hover,
.public-nav-link:focus-visible,
.public-nav-link.is-active {
    color: var(--mst-orange-600);
}

.public-nav-link:hover::after,
.public-nav-link:focus-visible::after,
.public-nav-link.is-active::after {
    transform: scaleX(1);
}

.public-dropdown-toggle {
    appearance: none;
}

.public-nav-caret {
    margin-left: 5px;
    color: var(--mst-text-500);
    font-size: 9px;
}

.public-dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 160;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--mst-border);
    border-radius: 0 0 var(--mst-radius-md) var(--mst-radius-md);
    background: var(--mst-white);
    box-shadow: var(--mst-shadow-md);
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity var(--mst-transition),
        transform var(--mst-transition),
        visibility var(--mst-transition);
}

.public-nav-dropdown:hover > .public-dropdown-menu,
.public-nav-dropdown:focus-within > .public-dropdown-menu,
.public-nav-dropdown.is-open > .public-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.public-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--mst-text-700);
    font-size: 13px;
    font-weight: 600;
    transition:
        color var(--mst-transition),
        background var(--mst-transition);
}

.public-dropdown-menu a:hover,
.public-dropdown-menu a:focus-visible {
    background: #f7f9fc;
    color: var(--mst-orange-600);
}


/* ==========================================================
   6. Header Actions
========================================================== */

.public-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
}

.public-account-link,
.public-register-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mst-text-700);
    font-size: 12px;
    font-weight: 700;
    transition: color var(--mst-transition);
}

.public-account-link:hover,
.public-register-link:hover {
    color: var(--mst-orange-600);
}

.public-register-link {
    padding-left: 9px;
    border-left: 1px solid var(--mst-border);
}

.public-quote-button {
    min-height: 39px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mst-orange-600);
    border-radius: var(--mst-radius-sm);
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(233, 120, 17, 0.18);
    transition:
        background var(--mst-transition),
        border-color var(--mst-transition),
        transform var(--mst-transition),
        box-shadow var(--mst-transition);
}

.public-quote-button:hover {
    background: #cf6608;
    border-color: #cf6608;
    box-shadow: 0 7px 18px rgba(233, 120, 17, 0.24);
    transform: translateY(-1px);
}

.public-mobile-toggle {
    display: none;
    width: 42px;
    height: 40px;
    padding: 9px;
    border: 1px solid var(--mst-border);
    border-radius: var(--mst-radius-sm);
    background: var(--mst-white);
}

.public-mobile-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 5px;
    background: var(--mst-navy-950);
}


/* ==========================================================
   7. Mobile Navigation Base
========================================================== */

.public-mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 500;
    width: min(390px, calc(100vw - 34px));
    height: 100vh;
    height: 100dvh;
    background: var(--mst-white);
    box-shadow: -18px 0 45px rgba(6, 25, 50, 0.2);
    transform: translateX(105%);
    transition: transform 240ms ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.public-mobile-navigation.is-open {
    transform: translateX(0);
}

.public-mobile-navigation-inner {
    min-height: 100%;
    padding: 20px;
}

.public-mobile-navigation-header {
    padding-bottom: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--mst-border);
}

.public-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.public-mobile-brand span {
    color: var(--mst-navy-950);
}

.public-mobile-brand strong {
    color: var(--mst-orange-600);
}

.public-mobile-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mst-border);
    border-radius: 50%;
    background: var(--mst-white);
    color: var(--mst-navy-950);
    font-size: 26px;
    line-height: 1;
}

.public-mobile-menu {
    padding: 14px 0;
}

.public-mobile-menu > a,
.public-mobile-submenu-toggle {
    width: 100%;
    min-height: 47px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-bottom: 1px solid #eef1f5;
    background: transparent;
    color: var(--mst-text-900);
    text-align: left;
    font-size: 14px;
    font-weight: 700;
}

.public-mobile-menu > a.is-active {
    color: var(--mst-orange-600);
}

.public-mobile-submenu {
    display: none;
    padding: 5px 0 8px 13px;
    border-bottom: 1px solid #eef1f5;
}

.public-mobile-menu-group.is-open .public-mobile-submenu {
    display: block;
}

.public-mobile-submenu a {
    display: block;
    padding: 9px 7px;
    color: var(--mst-text-700);
    font-size: 13px;
    font-weight: 600;
}

.public-mobile-actions {
    display: grid;
    gap: 9px;
    padding-top: 12px;
}

.public-mobile-account,
.public-mobile-register,
.public-mobile-quote {
    min-height: 44px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mst-radius-sm);
    font-size: 13px;
    font-weight: 800;
}

.public-mobile-account {
    border: 1px solid var(--mst-border);
    background: var(--mst-white);
    color: var(--mst-navy-950);
}

.public-mobile-register {
    border: 1px solid var(--mst-navy-900);
    color: var(--mst-navy-900);
}

.public-mobile-quote {
    border: 1px solid var(--mst-orange-600);
    background: var(--mst-orange-600);
    color: var(--mst-white);
}

.public-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 480;
    background: rgba(5, 20, 40, 0.58);
}


/* ==========================================================
   8. Temporary Homepage Foundation Shell
========================================================== */

.homepage-development-shell {
    padding: 34px 0 42px;
}

.homepage-development-card {
    min-height: 230px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid var(--mst-border);
    border-radius: var(--mst-radius-lg);
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f9fc 100%
        );
    box-shadow: var(--mst-shadow-sm);
}

.homepage-development-eyebrow {
    margin-bottom: 10px;
    color: var(--mst-orange-600);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.homepage-development-card h1 {
    max-width: 780px;
    margin: 0 0 12px;
    color: var(--mst-navy-950);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.7px;
}

.homepage-development-card p {
    max-width: 650px;
    margin: 0;
    color: var(--mst-text-700);
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   9. Footer
========================================================== */

.public-footer {
    margin-top: auto;
    background: var(--mst-navy-950);
    color: rgba(255, 255, 255, 0.78);
}

.public-footer-grid {
    padding: 48px 0 38px;
    display: grid;
    grid-template-columns:
        minmax(220px, 1.45fr)
        repeat(4, minmax(130px, 0.85fr))
        minmax(210px, 1.25fr);
    gap: 34px;
}

.public-footer-brand-column {
    padding-right: 12px;
}

.public-footer-brand {
    display: inline-flex;
    flex-direction: column;
    margin-bottom: 17px;
}

.public-footer-brand-main {
    display: inline-flex;
    align-items: baseline;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1.8px;
}

.public-footer-brand-main span {
    color: var(--mst-white);
}

.public-footer-brand-main strong {
    color: var(--mst-orange-500);
}

.public-footer-brand small {
    margin-top: 5px;
    max-width: 210px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.public-footer-description {
    max-width: 270px;
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.75;
}

.public-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.public-footer-socials a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 5px;
    color: var(--mst-white);
    font-size: 12px;
    font-weight: 800;
    transition:
        background var(--mst-transition),
        border-color var(--mst-transition),
        transform var(--mst-transition);
}

.public-footer-socials a:hover {
    border-color: var(--mst-orange-500);
    background: var(--mst-orange-600);
    transform: translateY(-2px);
}

.public-footer-column h3 {
    position: relative;
    margin: 0 0 17px;
    padding-bottom: 9px;
    color: var(--mst-white);
    font-size: 14px;
    font-weight: 800;
}

.public-footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--mst-orange-500);
}

.public-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-footer-column li + li {
    margin-top: 9px;
}

.public-footer-column li a {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    transition:
        color var(--mst-transition),
        padding-left var(--mst-transition);
}

.public-footer-column li a:hover {
    padding-left: 3px;
    color: var(--mst-orange-400);
}

.public-footer-contact p {
    margin: 0 0 11px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    line-height: 1.6;
}

.public-footer-contact p > span:first-child {
    flex: 0 0 auto;
    color: var(--mst-orange-400);
}

.public-footer-contact a:hover {
    color: var(--mst-orange-400);
}

.public-footer-newsletter p {
    margin: 0 0 13px;
    font-size: 12px;
    line-height: 1.65;
}

.public-newsletter-form {
    display: flex;
    align-items: stretch;
}

.public-newsletter-form input {
    min-width: 0;
    width: 100%;
    height: 39px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-right: 0;
    border-radius: var(--mst-radius-sm) 0 0 var(--mst-radius-sm);
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--mst-white);
    font-size: 11px;
}

.public-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.public-newsletter-form button {
    height: 39px;
    padding: 0 11px;
    border: 1px solid var(--mst-orange-600);
    border-radius: 0 var(--mst-radius-sm) var(--mst-radius-sm) 0;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 11px;
    font-weight: 800;
}

.public-newsletter-form input:disabled,
.public-newsletter-form button:disabled {
    opacity: 0.72;
}

.public-footer-bottom {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.public-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.public-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 17px;
}

.public-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}

.public-footer-bottom-links a:hover {
    color: var(--mst-orange-400);
}


/* ==========================================================
   10. Keyboard Focus
========================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(242, 138, 26, 0.4);
    outline-offset: 2px;
}


/* ==========================================================
   11. Utility States
========================================================== */

[hidden] {
    display: none !important;
}

/* ==========================================================
   12. Homepage Three-Column Marketplace
   Phase 18.3
========================================================== */

.public-home-intro {
    padding: 22px 0 28px;
}

.public-home-marketplace {
    display: grid;
    grid-template-columns:
        minmax(210px, 0.78fr)
        minmax(0, 2.65fr)
        minmax(230px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.public-home-column {
    min-width: 0;
}

.public-home-column-left,
.public-home-column-right {
    position: relative;
}


/* ==========================================================
   13. Homepage Sidebar Base
========================================================== */

.public-home-sidebar {
    display: grid;
    gap: 14px;
}

.public-sidebar-card {
    border: 1px solid var(--mst-border);
    border-radius: var(--mst-radius-md);
    background: var(--mst-white);
    box-shadow: var(--mst-shadow-sm);
    overflow: hidden;
}

.public-sidebar-heading {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--mst-border);
    background: #f8fafc;
}

.public-sidebar-heading h2 {
    margin: 0;
    color: var(--mst-navy-950);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.public-sidebar-heading a {
    color: var(--mst-orange-600);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.public-sidebar-heading a:hover {
    text-decoration: underline;
}


/* ==========================================================
   14. Browse Lists
========================================================== */

.public-sidebar-list {
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

.public-sidebar-list li {
    margin: 0;
    padding: 0;
}

.public-sidebar-list a {
    min-height: 34px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--mst-text-700);
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #f0f3f7;
    transition:
        background var(--mst-transition),
        color var(--mst-transition),
        padding-left var(--mst-transition);
}

.public-sidebar-list li:last-child a {
    border-bottom: 0;
}

.public-sidebar-list a:hover {
    padding-left: 16px;
    background: #f8fafc;
    color: var(--mst-orange-600);
}

.public-sidebar-list strong {
    min-width: 28px;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--mst-text-500);
    font-size: 9px;
    text-align: center;
}

.public-sidebar-list a:hover strong {
    background: #fff1e5;
    color: var(--mst-orange-600);
}

.public-sidebar-empty {
    padding: 16px 14px;
    color: var(--mst-text-500);
    font-size: 11px;
    line-height: 1.6;
}


/* ==========================================================
   15. Browse By Year
========================================================== */

.public-sidebar-year-grid {
    padding: 11px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.public-sidebar-year-grid a {
    min-height: 42px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mst-border);
    border-radius: 6px;
    background: #fbfcfe;
    transition:
        border-color var(--mst-transition),
        background var(--mst-transition),
        transform var(--mst-transition);
}

.public-sidebar-year-grid a:hover {
    border-color: #f2b97f;
    background: #fff8f1;
    transform: translateY(-1px);
}

.public-sidebar-year-grid span {
    color: var(--mst-navy-950);
    font-size: 11px;
    font-weight: 800;
}

.public-sidebar-year-grid small {
    margin-top: 1px;
    color: var(--mst-text-500);
    font-size: 8px;
}


/* ==========================================================
   16. Sidebar Quick Search
========================================================== */

.public-sidebar-search-card {
    overflow: visible;
}

.public-sidebar-search-form {
    padding: 13px;
}

.public-sidebar-field {
    min-width: 0;
}

.public-sidebar-field + .public-sidebar-field,
.public-sidebar-field-row + .public-sidebar-field-row,
.public-sidebar-field-row + .public-sidebar-field {
    margin-top: 10px;
}

.public-sidebar-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.public-sidebar-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--mst-text-700);
    font-size: 9px;
    font-weight: 800;
}

.public-sidebar-field select,
.public-sidebar-field input {
    width: 100%;
    height: 36px;
    padding: 0 9px;
    border: 1px solid var(--mst-border);
    border-radius: 6px;
    outline: none;
    background: var(--mst-white);
    color: var(--mst-text-900);
    font-size: 10px;
    transition:
        border-color var(--mst-transition),
        box-shadow var(--mst-transition);
}

.public-sidebar-field select:focus,
.public-sidebar-field input:focus {
    border-color: #f2a65c;
    box-shadow: 0 0 0 3px rgba(242, 138, 26, 0.1);
}

.public-sidebar-field input::placeholder {
    color: var(--mst-text-400);
}

.public-sidebar-search-button {
    width: 100%;
    min-height: 38px;
    margin-top: 12px;
    border: 1px solid var(--mst-orange-600);
    border-radius: 6px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 11px;
    font-weight: 800;
    transition:
        background var(--mst-transition),
        border-color var(--mst-transition),
        transform var(--mst-transition);
}

.public-sidebar-search-button:not(:disabled):hover {
    background: #cf6608;
    border-color: #cf6608;
    transform: translateY(-1px);
}

.public-sidebar-search-button:disabled {
    opacity: 0.65;
}

.public-sidebar-search-note {
    display: block;
    margin-top: 8px;
    color: var(--mst-text-500);
    font-size: 9px;
    line-height: 1.5;
}


/* ==========================================================
   17. Export Support Card
========================================================== */

.public-sidebar-support-card {
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border-radius: var(--mst-radius-md);
    background:
        linear-gradient(
            145deg,
            var(--mst-navy-950),
            var(--mst-navy-800)
        );
    color: var(--mst-white);
    box-shadow: var(--mst-shadow-sm);
}

.public-sidebar-support-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--mst-orange-400);
    font-size: 16px;
}

.public-sidebar-support-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--mst-white);
    font-size: 11px;
    font-weight: 800;
}

.public-sidebar-support-card p {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    line-height: 1.55;
}

.public-sidebar-support-card a {
    color: var(--mst-orange-400);
    font-size: 9px;
    font-weight: 800;
}

.public-sidebar-support-card a:hover {
    text-decoration: underline;
}


/* ==========================================================
   18. Sidebar Promotional Banners
========================================================== */

.public-sidebar-banner {
    position: relative;
    min-height: 150px;
    display: block;
    overflow: hidden;
    border-radius: var(--mst-radius-md);
    background: var(--mst-navy-900);
    box-shadow: var(--mst-shadow-sm);
}

.public-sidebar-banner img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
    transition: transform 300ms ease;
}

.public-sidebar-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(4, 18, 38, 0.86) 0%,
            rgba(4, 18, 38, 0.22) 62%,
            rgba(4, 18, 38, 0.04) 100%
        );
}

.public-sidebar-banner:hover img {
    transform: scale(1.04);
}

.public-sidebar-banner-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 13px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.public-sidebar-banner-overlay strong {
    color: var(--mst-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.public-sidebar-banner-overlay small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    line-height: 1.45;
}

.public-sidebar-banner-cta {
    margin-top: 8px;
    padding: 5px 8px;
    border-radius: 5px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 8px;
    font-weight: 800;
}


/* ==========================================================
   19. Center Promotional Stage
   Phase 18.4-ready
========================================================== */

.public-home-promo-stage {
    min-height: 100%;
}

.public-home-promo-placeholder {
    min-height: 390px;
    position: relative;
    overflow: hidden;
    border-radius: var(--mst-radius-md);
    border: 1px solid var(--mst-border);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(242, 138, 26, 0.22),
            transparent 27%
        ),
        linear-gradient(
            120deg,
            var(--mst-navy-950) 0%,
            var(--mst-navy-800) 58%,
            #214f7f 100%
        );
    box-shadow: var(--mst-shadow-sm);
}

.public-home-promo-placeholder::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -35px;
    width: 280px;
    height: 280px;
    border: 44px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.public-home-promo-placeholder::after {
    content: "";
    position: absolute;
    right: 10%;
    bottom: -75px;
    width: 260px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.025);
}

.public-home-promo-placeholder-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    min-height: 390px;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.public-home-promo-eyebrow {
    margin-bottom: 12px;
    padding: 5px 8px;
    border-radius: 5px;
    background: rgba(242, 138, 26, 0.15);
    color: var(--mst-orange-400);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.public-home-promo-placeholder h1 {
    max-width: 560px;
    margin: 0 0 14px;
    color: var(--mst-white);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.public-home-promo-placeholder p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.7;
}

.public-home-promo-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.public-home-primary-action,
.public-home-secondary-action {
    min-height: 39px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    transition:
        transform var(--mst-transition),
        background var(--mst-transition),
        border-color var(--mst-transition);
}

.public-home-primary-action {
    border: 1px solid var(--mst-orange-600);
    background: var(--mst-orange-600);
    color: var(--mst-white);
}

.public-home-primary-action:hover {
    background: #cf6608;
    border-color: #cf6608;
    transform: translateY(-1px);
}

.public-home-secondary-action {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: var(--mst-white);
}

.public-home-secondary-action:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}


/* ==========================================================
   20. Future Homepage Section Hooks
========================================================== */

.public-home-section-hook {
    scroll-margin-top: 95px;
}

/* ==========================================================
   21. Phase 18.4 — Desktop CMS Multi-Banner Hero
========================================================== */

.public-desktop-banner-grid {
    width: 100%;
    min-height: 390px;
    display: grid;
    grid-template-columns:
        repeat(
            12,
            minmax(0, 1fr)
        );
    grid-auto-rows: 185px;
    gap: 10px;
}


/* ==========================================================
   22. Desktop Banner Card
========================================================== */

.public-desktop-banner {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: block;
    overflow: hidden;
    border-radius: var(--mst-radius-md);
    background: var(--mst-navy-900);
    box-shadow: var(--mst-shadow-sm);
    isolation: isolate;
}

.public-desktop-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 420ms ease,
        filter 420ms ease;
}

.public-desktop-banner:hover img {
    transform: scale(1.035);
}

.public-desktop-banner-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3, 17, 36, 0.78) 0%,
            rgba(3, 17, 36, 0.48) 42%,
            rgba(3, 17, 36, 0.08) 78%
        );
    pointer-events: none;
}

.public-desktop-banner:not(.is-primary)
.public-desktop-banner-shade {
    background:
        linear-gradient(
            to top,
            rgba(3, 17, 36, 0.83) 0%,
            rgba(3, 17, 36, 0.32) 54%,
            rgba(3, 17, 36, 0.05) 100%
        );
}

.public-desktop-banner-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.public-desktop-banner.is-primary
.public-desktop-banner-content {
    inset: 0 auto 0 0;
    width: min(
        68%,
        520px
    );
    padding: 25px;
    justify-content: center;
}

.public-desktop-banner-content strong {
    display: block;
    max-width: 95%;
    color: var(--mst-white);
    font-size: 16px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.35px;
    text-shadow:
        0 2px 12px
        rgba(0, 0, 0, 0.2);
}

.public-desktop-banner.is-primary
.public-desktop-banner-content strong {
    font-size: clamp(
        24px,
        2.2vw,
        37px
    );
    line-height: 1.04;
    letter-spacing: -1px;
}

.public-desktop-banner-content small {
    display: block;
    max-width: 92%;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 10px;
    line-height: 1.45;
}

.public-desktop-banner.is-primary
.public-desktop-banner-content small {
    max-width: 440px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
}

.public-desktop-banner-cta {
    margin-top: 11px;
    min-height: 29px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 9px;
    font-weight: 900;
    box-shadow:
        0 5px 13px
        rgba(233, 120, 17, 0.18);
}

.public-desktop-banner.is-primary
.public-desktop-banner-cta {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 10px;
}


/* ==========================================================
   23. Adaptive Desktop Banner Layout
========================================================== */

/*
 * 1 banner:
 *
 * Full large banner.
 */

.public-desktop-banner-grid[data-banner-count="1"] {
    grid-auto-rows: 390px;
}

.public-desktop-banner-grid[data-banner-count="1"]
.public-desktop-banner {
    grid-column: 1 / -1;
    grid-row: 1;
}


/*
 * 2 banners:
 *
 * Large primary + secondary.
 */

.public-desktop-banner-grid[data-banner-count="2"] {
    grid-auto-rows: 390px;
}

.public-desktop-banner-grid[data-banner-count="2"]
.public-desktop-banner-position-1 {
    grid-column: span 8;
}

.public-desktop-banner-grid[data-banner-count="2"]
.public-desktop-banner-position-2 {
    grid-column: span 4;
}


/*
 * 3 banners:
 *
 * Primary takes left.
 * Two stacked cards right.
 */

.public-desktop-banner-grid[data-banner-count="3"]
.public-desktop-banner-position-1 {
    grid-column: span 8;
    grid-row: span 2;
}

.public-desktop-banner-grid[data-banner-count="3"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="3"]
.public-desktop-banner-position-3 {
    grid-column: span 4;
}


/*
 * 4 banners:
 *
 * Primary large left.
 * Top right card.
 * Two lower right cards.
 */

.public-desktop-banner-grid[data-banner-count="4"]
.public-desktop-banner-position-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.public-desktop-banner-grid[data-banner-count="4"]
.public-desktop-banner-position-2 {
    grid-column: span 5;
}

.public-desktop-banner-grid[data-banner-count="4"]
.public-desktop-banner-position-3,
.public-desktop-banner-grid[data-banner-count="4"]
.public-desktop-banner-position-4 {
    grid-column: span 5;
}


/*
 * 5 banners:
 *
 * Approved compact marketplace direction.
 */

.public-desktop-banner-grid[data-banner-count="5"]
.public-desktop-banner-position-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.public-desktop-banner-grid[data-banner-count="5"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="5"]
.public-desktop-banner-position-3 {
    grid-column: span 5;
}

.public-desktop-banner-grid[data-banner-count="5"]
.public-desktop-banner-position-4 {
    grid-column: span 6;
}

.public-desktop-banner-grid[data-banner-count="5"]
.public-desktop-banner-position-5 {
    grid-column: span 6;
}


/*
 * 6+ banners:
 *
 * First banner gets strong emphasis.
 * Remaining banners form compact rows.
 */

.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-1,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-1,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-1,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-3,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-3,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-3,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-2,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-3 {
    grid-column: span 5;
}

.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-4,
.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-5,
.public-desktop-banner-grid[data-banner-count="6"]
.public-desktop-banner-position-6,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-4,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-5,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-6,
.public-desktop-banner-grid[data-banner-count="7"]
.public-desktop-banner-position-7,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-4,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-5,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-6,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-7,
.public-desktop-banner-grid[data-banner-count="8"]
.public-desktop-banner-position-8,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-4,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-5,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-6,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-7,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-8,
.public-desktop-banner-grid[data-banner-count="9"]
.public-desktop-banner-position-9 {
    grid-column: span 4;
}


/*
 * General fallback for banner quantities above 9.
 */

.public-desktop-banner-grid
.public-desktop-banner:nth-child(n + 4) {
    min-height: 170px;
}


/* ==========================================================
   24. Banner Accessibility / Disabled Destination
========================================================== */

.public-desktop-banner[aria-disabled="true"],
.public-mobile-promo-card[aria-disabled="true"] {
    cursor: default;
}

.public-desktop-banner[aria-disabled="true"]:focus-visible,
.public-mobile-promo-card[aria-disabled="true"]:focus-visible {
    outline-color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================
   25. Mobile / Tablet Promo Carousel Base
========================================================== */

.public-mobile-promo-carousel,
.public-mobile-promo-fallback {
    display: none;
}

.public-mobile-promo-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.public-mobile-promo-viewport {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--mst-radius-md);
}

.public-mobile-promo-track {
    display: flex;
    width: 100%;
    min-width: 0;
    will-change: transform;
    transition:
        transform 320ms
        cubic-bezier(
            0.22,
            0.61,
            0.36,
            1
        );
}

.public-mobile-promo-track.is-dragging {
    transition: none;
}

.public-mobile-promo-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.public-mobile-promo-card {
    position: relative;
    min-height: 280px;
    display: block;
    overflow: hidden;
    background: var(--mst-navy-900);
}

.public-mobile-promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.public-mobile-promo-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(3, 17, 36, 0.79) 0%,
            rgba(3, 17, 36, 0.42) 55%,
            rgba(3, 17, 36, 0.09) 100%
        );
    pointer-events: none;
}

.public-mobile-promo-content {
    position: relative;
    z-index: 2;
    min-height: 280px;
    width: min(
        72%,
        560px
    );
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}

.public-mobile-promo-content strong {
    max-width: 100%;
    color: var(--mst-white);
    font-size: clamp(
        23px,
        5vw,
        36px
    );
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.8px;
}

.public-mobile-promo-content small {
    display: block;
    max-width: 450px;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
    line-height: 1.5;
}

.public-mobile-promo-cta {
    min-height: 34px;
    margin-top: 13px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 9px;
    font-weight: 900;
}


/* ==========================================================
   26. Mobile Carousel Arrows
========================================================== */

.public-mobile-promo-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    background: rgba(3, 17, 36, 0.58);
    color: var(--mst-white);
    font-size: 25px;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: none;
    transition:
        background var(--mst-transition),
        border-color var(--mst-transition),
        transform var(--mst-transition);
}

.public-mobile-promo-arrow:hover {
    border-color: var(--mst-orange-500);
    background: var(--mst-orange-600);
}

.public-mobile-promo-prev {
    left: 10px;
}

.public-mobile-promo-next {
    right: 10px;
}


/* ==========================================================
   27. Mobile Carousel Dots
========================================================== */

.public-mobile-promo-dots {
    position: absolute;
    left: 50%;
    bottom: 11px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transform: translateX(-50%);
}

.public-mobile-promo-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition:
        width var(--mst-transition),
        background var(--mst-transition),
        transform var(--mst-transition);
}

.public-mobile-promo-dot:hover {
    background: var(--mst-white);
}

.public-mobile-promo-dot.is-active {
    width: 20px;
    background: var(--mst-orange-500);
}


/* ==========================================================
   28. Mobile Empty Banner Fallback
========================================================== */

.public-mobile-promo-fallback {
    min-height: 190px;
    padding: 24px;
    border-radius: var(--mst-radius-md);
    background:
        linear-gradient(
            135deg,
            var(--mst-navy-950),
            var(--mst-navy-800)
        );
    color: var(--mst-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.public-mobile-promo-fallback span {
    color: var(--mst-orange-400);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.public-mobile-promo-fallback strong {
    margin-top: 5px;
    font-size: 24px;
    line-height: 1.05;
}

.public-mobile-promo-fallback a {
    min-height: 34px;
    margin-top: 14px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 9px;
    font-weight: 900;
}


/* ==========================================================
   29. Future Mobile Browse / Search Toolbar Hooks
   Phase 18.5
========================================================== */

.public-mobile-market-tools {
    display: none;
}

/* ==========================================================
   30. Phase 18.4 — Approved Desktop Banner Proportions
   Compact Mockup Correction
========================================================== */

@media (min-width: 1051px) {

    /*
     * LOCKED DESIGN PRINCIPLE:
     *
     * Desktop hero must remain compact.
     * It must NOT behave like a giant traditional hero.
     */

    .public-desktop-banner-grid {
        min-height: 0;
        height: 320px;

        grid-template-columns:
            repeat(
                12,
                minmax(0, 1fr)
            );

        grid-template-rows:
            repeat(
                2,
                minmax(0, 1fr)
            );

        grid-auto-rows:
            minmax(
                140px,
                1fr
            );

        gap: 10px;
    }


    /* ======================================================
       1 Banner
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="1"] {
        grid-template-rows: 320px;
    }

    .public-desktop-banner-grid[data-banner-count="1"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / -1;
        grid-row: 1;
    }


    /* ======================================================
       2 Banners
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="2"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / span 8;
        grid-row: 1 / 3;
    }

    .public-desktop-banner-grid[data-banner-count="2"]
    .public-desktop-banner-position-2 {
        grid-column: 9 / -1;
        grid-row: 1 / 3;
    }


    /* ======================================================
       3 Banners
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="3"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / span 7;
        grid-row: 1 / 3;
    }

    .public-desktop-banner-grid[data-banner-count="3"]
    .public-desktop-banner-position-2 {
        grid-column: 8 / -1;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="3"]
    .public-desktop-banner-position-3 {
        grid-column: 8 / -1;
        grid-row: 2;
    }


    /* ======================================================
       4 Banners
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="4"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / span 6;
        grid-row: 1 / 3;
    }

    .public-desktop-banner-grid[data-banner-count="4"]
    .public-desktop-banner-position-2 {
        grid-column: 7 / -1;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="4"]
    .public-desktop-banner-position-3 {
        grid-column: 7 / span 3;
        grid-row: 2;
    }

    .public-desktop-banner-grid[data-banner-count="4"]
    .public-desktop-banner-position-4 {
        grid-column: 10 / -1;
        grid-row: 2;
    }


    /* ======================================================
       5 Banners
       CURRENT LIVE STATE
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="5"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / span 6;
        grid-row: 1 / 3;
    }

    .public-desktop-banner-grid[data-banner-count="5"]
    .public-desktop-banner-position-2 {
        grid-column: 7 / span 3;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="5"]
    .public-desktop-banner-position-3 {
        grid-column: 10 / -1;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="5"]
    .public-desktop-banner-position-4 {
        grid-column: 7 / span 3;
        grid-row: 2;
    }

    .public-desktop-banner-grid[data-banner-count="5"]
    .public-desktop-banner-position-5 {
        grid-column: 10 / -1;
        grid-row: 2;
    }


    /* ======================================================
       6 Banners
       Closest to approved mockup composition
    ====================================================== */

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-1 {
        grid-column: 1 / span 6;
        grid-row: 1 / 3;
    }

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-2 {
        grid-column: 7 / span 3;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-3 {
        grid-column: 10 / -1;
        grid-row: 1;
    }

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-4 {
        grid-column: 7 / span 2;
        grid-row: 2;
    }

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-5 {
        grid-column: 9 / span 2;
        grid-row: 2;
    }

    .public-desktop-banner-grid[data-banner-count="6"]
    .public-desktop-banner-position-6 {
        grid-column: 11 / -1;
        grid-row: 2;
    }


    /* ======================================================
       Card Height Protection
    ====================================================== */

    .public-desktop-banner-grid
    .public-desktop-banner {
        min-height: 0;
        height: 100%;
    }

    .public-desktop-banner-grid
    .public-desktop-banner:nth-child(n + 4) {
        min-height: 0;
    }


    /* ======================================================
       Compact Primary Typography
    ====================================================== */

    .public-desktop-banner.is-primary
    .public-desktop-banner-content {
        width: min(
            74%,
            390px
        );

        padding: 22px;
    }

    .public-desktop-banner.is-primary
    .public-desktop-banner-content strong {
        font-size: clamp(
            22px,
            2vw,
            31px
        );

        line-height: 1.04;
    }

    .public-desktop-banner.is-primary
    .public-desktop-banner-content small {
        margin-top: 7px;
        font-size: 10px;
        line-height: 1.45;
    }

    .public-desktop-banner.is-primary
    .public-desktop-banner-cta {
        min-height: 32px;
        margin-top: 9px;
        padding-inline: 11px;
        font-size: 9px;
    }


    /* ======================================================
       Compact Secondary Banner Text
    ====================================================== */

    .public-desktop-banner:not(.is-primary)
    .public-desktop-banner-content {
        padding: 11px;
    }

    .public-desktop-banner:not(.is-primary)
    .public-desktop-banner-content strong {
        max-width: 100%;
        font-size: 12px;
        line-height: 1.08;
    }

    .public-desktop-banner:not(.is-primary)
    .public-desktop-banner-content small {
        margin-top: 3px;
        font-size: 8px;
        line-height: 1.3;
    }

    .public-desktop-banner:not(.is-primary)
    .public-desktop-banner-cta {
        min-height: 25px;
        margin-top: 6px;
        padding-inline: 8px;
        font-size: 7px;
    }


    /* ======================================================
       Sidebar Promotional Banner Height
       Match compact mockup side advertisements
    ====================================================== */

    .public-sidebar-banner {
        min-height: 0;
        height: 160px;
    }

    .public-sidebar-banner img {
        min-height: 0;
        height: 100%;
        object-fit: cover;
    }

    .public-sidebar-banner-overlay {
        padding: 10px;
    }

    .public-sidebar-banner-overlay strong {
        font-size: 10px;
    }

    .public-sidebar-banner-overlay small {
        font-size: 8px;
    }

    .public-sidebar-banner-cta {
        margin-top: 6px;
        padding: 4px 7px;
        font-size: 7px;
    }

}

/* ==========================================================
   31. Phase 18.5 — Public Vehicle Search
========================================================== */

.public-vehicle-search {
    width: 100%;
    padding: 0 0 18px;
}

.public-search-desktop {
    border: 1px solid var(--mst-border);
    border-radius: 10px;
    background: var(--mst-white);
    box-shadow: var(--mst-shadow-sm);
    overflow: hidden;
}

.public-search-mobile {
    display: none;
}


/* ==========================================================
   32. Search Tabs
========================================================== */

.public-search-tabs {
    min-height: 42px;
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--mst-border);
    background: #fbfcfe;
}

.public-search-tab {
    position: relative;
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-right: 1px solid var(--mst-border);
    background: transparent;
    color: var(--mst-text-600);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.public-search-tab::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: transparent;
}

.public-search-tab.is-active {
    color: var(--mst-orange-600);
    background: var(--mst-white);
}

.public-search-tab.is-active::after {
    background: var(--mst-orange-600);
}


/* ==========================================================
   33. Search Panels
========================================================== */

.public-search-panel {
    padding: 14px;
}

.public-search-panel[hidden] {
    display: none;
}

.public-search-panel.is-active {
    display: block;
}


/* ==========================================================
   34. Desktop Search Form
========================================================== */

.public-search-form {
    display: grid;
    gap: 10px;
    align-items: end;
}

.public-search-form-quick {
    grid-template-columns:
        1.15fr
        1.15fr
        0.8fr
        0.8fr
        0.9fr
        0.9fr
        auto;
}

.public-search-form-advanced {
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
}

.public-search-field {
    min-width: 0;
}

.public-search-field label {
    display: block;
    margin-bottom: 5px;
    color: var(--mst-text-700);
    font-size: 8px;
    font-weight: 800;
}

.public-search-field select,
.public-search-field input {
    width: 100%;
    height: 37px;
    padding: 0 10px;
    border: 1px solid var(--mst-border);
    border-radius: 5px;
    outline: none;
    background: var(--mst-white);
    color: var(--mst-text-900);
    font-size: 10px;
    transition:
        border-color var(--mst-transition),
        box-shadow var(--mst-transition);
}

.public-search-field select:focus,
.public-search-field input:focus {
    border-color: #f2a65c;
    box-shadow: 0 0 0 3px rgba(242, 138, 26, 0.10);
}

.public-search-field input::placeholder {
    color: var(--mst-text-400);
}


/* ==========================================================
   35. Search Submit
========================================================== */

.public-search-submit-wrap {
    display: flex;
    align-items: end;
}

.public-search-submit {
    min-width: 128px;
    height: 37px;
    padding: 0 16px;
    border: 1px solid var(--mst-orange-600);
    border-radius: 5px;
    background: var(--mst-orange-600);
    color: var(--mst-white);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background var(--mst-transition),
        border-color var(--mst-transition),
        transform var(--mst-transition);
}

.public-search-submit:not(:disabled):hover {
    background: #cf6608;
    border-color: #cf6608;
    transform: translateY(-1px);
}

.public-search-submit:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}


/* ==========================================================
   36. Search Phase Note
========================================================== */

.public-search-phase-note {
    padding: 0 14px 12px;
    color: var(--mst-text-500);
    font-size: 8px;
    line-height: 1.5;
}


/* ==========================================================
   37. Advanced Search Layout
========================================================== */

.public-search-form-advanced
.public-search-submit-wrap {
    grid-column: span 1;
}

.public-search-form-advanced
.public-search-submit {
    width: 100%;
}


/* ==========================================================
   38. Mobile Search Base
========================================================== */

.public-mobile-search-panel {
    border: 1px solid var(--mst-border);
    border-radius: 8px;
    background: var(--mst-white);
    overflow: hidden;
}

.public-mobile-search-panel + .public-mobile-search-panel {
    margin-top: 9px;
}

.public-mobile-search-toggle {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 0;
    background: var(--mst-white);
    color: var(--mst-navy-950);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.public-mobile-search-toggle.is-open {
    color: var(--mst-orange-600);
    background: #fffaf5;
}

.public-mobile-search-content {
    padding: 13px;
    border-top: 1px solid var(--mst-border);
}

.public-mobile-search-content[hidden] {
    display: none;
}

.public-mobile-search-form {
    display: grid;
    gap: 10px;
}

.public-mobile-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}


/* ==========================================================
   39. Mobile Browse Vehicles
========================================================== */

.public-mobile-browse-block + .public-mobile-browse-block {
    margin-top: 16px;
}

.public-mobile-browse-block h3 {
    margin: 0 0 8px;
    color: var(--mst-navy-950);
    font-size: 10px;
    font-weight: 900;
}

.public-mobile-browse-links {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 7px;
}

.public-mobile-browse-links a {
    min-height: 38px;
    padding: 7px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid var(--mst-border);
    border-radius: 5px;
    background: #fbfcfe;
    color: var(--mst-text-700);
    font-size: 9px;
    font-weight: 700;
}

.public-mobile-browse-links small {
    min-width: 23px;
    padding: 2px 5px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--mst-text-500);
    font-size: 8px;
    text-align: center;
}

.public-mobile-year-links {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 7px;
}

.public-mobile-year-links a {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--mst-border);
    border-radius: 5px;
    background: #fbfcfe;
    color: var(--mst-text-700);
    font-size: 9px;
    font-weight: 800;
}

/* ==========================================================
   40. Phase 18.5 — Search Placement Correction
========================================================== */

.public-home-center-search {
    width: 100%;
    margin-top: 12px;
}

.public-home-center-search
.public-vehicle-search {
    padding-bottom: 0;
}

.public-home-mobile-search {
    display: none;
}

/* ==========================================================
   41. Phase 18.6 — Compact Trust / Business Statistics
========================================================== */

.public-home-center-statistics {
    width: 100%;
    margin-top: 10px;
}

.public-home-mobile-statistics {
    display: none;
}

.public-business-statistics {
    width: 100%;
}

.public-business-statistics-bar {
    width: 100%;
    min-width: 0;
    padding: 9px 8px;
    display: grid;
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(
            135deg,
            var(--mst-navy-950),
            var(--mst-navy-900)
        );
    box-shadow: var(--mst-shadow-sm);
}


/* ==========================================================
   42. Individual Trust Statistic
========================================================== */

.public-business-statistic {
    position: relative;
    min-width: 0;
    min-height: 52px;
    padding: 5px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.public-business-statistic + .public-business-statistic {
    border-left:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );
}

.public-business-statistic-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mst-orange-500);
    border-radius: 50%;
    color: var(--mst-orange-400);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.public-business-statistic-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.public-business-statistic-copy strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--mst-white);
    font-size: 14px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.25px;
}

.public-business-statistic-copy small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 6.5px;
    line-height: 1.25;
    font-weight: 700;
}


/* ==========================================================
   43. Statistic Count Protection
========================================================== */

.public-business-statistics-bar[data-stat-count="1"] {
    grid-template-columns: 1fr;
}

.public-business-statistics-bar[data-stat-count="2"] {
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
}

.public-business-statistics-bar[data-stat-count="3"] {
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
}

.public-business-statistics-bar[data-stat-count="4"] {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
}

.public-business-statistics-bar[data-stat-count="5"] {
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
}
/* ==========================================================
   44. Phase 18.7 — Featured Vehicles
========================================================== */

.public-home-center-featured {
    width: 100%;
    margin-top: 14px;
}

.public-home-mobile-featured {
    display: none;
}

.public-featured-vehicles {
    width: 100%;
    min-width: 0;
}

.public-featured-heading {
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.public-featured-heading h2 {
    margin: 0;
    color: var(--mst-navy-950);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.public-featured-view-all {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--mst-orange-600);
    font-size: 7px;
    font-weight: 900;
}

.public-featured-view-all:hover {
    color: #cf6608;
}


/* ==========================================================
   45. Featured Vehicle Grid
========================================================== */

.public-featured-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 9px;
}


/* ==========================================================
   46. Featured Vehicle Card
========================================================== */

.public-featured-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mst-border);
    border-radius: 7px;
    background: var(--mst-white);
    box-shadow:
        0 2px 8px
        rgba(
            10,
            35,
            70,
            0.07
        );
    transition:
        transform var(--mst-transition),
        border-color var(--mst-transition),
        box-shadow var(--mst-transition);
}

.public-featured-card:hover {
    border-color: #e8b989;
    box-shadow:
        0 5px 15px
        rgba(
            10,
            35,
            70,
            0.10
        );
    transform: translateY(-2px);
}


/* ==========================================================
   47. Featured Vehicle Image
========================================================== */

.public-featured-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #eef2f7,
            #f8fafc
        );
}

.public-featured-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 260ms ease;
}

.public-featured-card:hover
.public-featured-card-media img {
    transform: scale(1.025);
}

.public-featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--mst-text-400);
}

.public-featured-image-placeholder > span {
    font-size: 22px;
    line-height: 1;
}

.public-featured-image-placeholder small {
    font-size: 7px;
    font-weight: 800;
}


/* ==========================================================
   48. Featured Vehicle Badges
========================================================== */

.public-featured-card-badges {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.public-featured-year,
.public-featured-status {
    min-height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 6px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    box-shadow:
        0 2px 6px
        rgba(
            3,
            17,
            36,
            0.12
        );
}

.public-featured-year {
    background:
        rgba(
            7,
            26,
            51,
            0.90
        );
    color: var(--mst-white);
}

.public-featured-status {
    background: var(--mst-white);
    color: var(--mst-text-700);
    text-transform: uppercase;
}

.public-featured-status-available {
    background: #30b959;
    color: #ffffff;
}

.public-featured-status-reserved {
    background: #ff8b24;
    color: #ffffff;
}

.public-featured-status-coming-soon {
    background: #358bd0;
    color: #ffffff;
}


/* ==========================================================
   49. Featured Vehicle Card Body
========================================================== */

.public-featured-card-body {
    padding: 8px;
}

.public-featured-card-body h3 {
    min-height: 25px;
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: var(--mst-navy-950);
    font-size: 9px;
    line-height: 1.35;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ==========================================================
   50. Featured Vehicle Specs
   Phase 18.15A Readability Polish
========================================================== */

.public-featured-card-specs {
    min-height: 25px;
    margin-top: 5px;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 8px;
    border-bottom: 1px solid #edf1f5;
    color: var(--mst-text-500);
}

.public-featured-card-spec {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--mst-text-500);
    font-size: 8px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.public-featured-spec-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mst-text-500);
    font-size: 7.5px;
    line-height: 1;
}


/* ==========================================================
   51. Featured Vehicle Price
========================================================== */

.public-featured-card-price {
    margin-top: 6px;
}

.public-featured-card-price small {
    display: block;
    color: var(--mst-text-400);
    font-size: 5.5px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.public-featured-card-price strong {
    display: block;
    margin-top: 2px;
    overflow-wrap: anywhere;
    color: var(--mst-orange-600);
    font-size: 10px;
    line-height: 1.15;
    font-weight: 900;
}


/* ==========================================================
   52. Featured Vehicle Action
========================================================== */

.public-featured-card-link {
    min-height: 25px;
    margin-top: 7px;
    padding: 0 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border-radius: 4px;
    background: var(--mst-navy-950);
    color: var(--mst-white);
    font-size: 6.5px;
    font-weight: 900;
}

.public-featured-card-link[aria-disabled="true"] {
    cursor: default;
}

.public-featured-card-link:hover {
    background: var(--mst-navy-800);
}


/* ==========================================================
   53. Featured Empty State
========================================================== */

.public-featured-empty {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px dashed var(--mst-border);
    border-radius: 7px;
    background: #fbfcfe;
}

.public-featured-empty strong {
    color: var(--mst-navy-950);
    font-size: 10px;
}

.public-featured-empty span {
    margin-top: 4px;
    color: var(--mst-text-500);
    font-size: 8px;
    line-height: 1.5;
}

/* ==========================================================
   Phase 18.7A
   Commercial Vehicles
   Desktop / Mobile Visibility Foundation
   ========================================================== */

/*
 * Desktop is the default homepage experience.
 * The dedicated mobile commercial block must not render
 * alongside the desktop commercial block.
 */
.public-home-mobile-commercial {
    display: none;
}


/*
 * Commercial section intentionally inherits the locked
 * Featured Vehicles visual system.
 *
 * These selectors are kept as dedicated hooks for later
 * Commercial-specific polish without changing Featured.
 */
.public-home-center-commercial,
.public-home-mobile-commercial {
    width: 100%;
}

.public-commercial-vehicles {
    width: 100%;
}

.public-commercial-heading {
    width: 100%;
}

/* ==========================================================
   Phase 18.9
   Browse Stock By Country
   Approved Mockup Base
========================================================== */

.public-home-center-countries {
    width: 100%;
    margin-top: 14px;
}

.public-home-mobile-countries {
    display: none;
}

.public-home-country-browser {
    width: 100%;
    min-width: 0;
}

.public-home-country-browser
.public-featured-heading {
    margin-bottom: 8px;
}

.public-country-view-all {
    cursor: default;
}

.public-home-country-grid {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    display: grid;
    grid-template-columns:
        repeat(
            6,
            minmax(0, 1fr)
        );
    gap: 6px;
    border: 1px solid var(--mst-border);
    border-radius: 7px;
    background: var(--mst-white);
    box-shadow:
        0 2px 8px
        rgba(
            10,
            35,
            70,
            0.06
        );
}

.public-home-country-card {
    min-width: 0;
    padding: 4px 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 5px;
    transition:
        background var(--mst-transition),
        transform var(--mst-transition);
}

.public-home-country-card:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.public-home-country-flag-wrap {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--mst-border);
    border-radius: 50%;
    background: #f8fafc;
    box-shadow:
        0 1px 4px
        rgba(
            10,
            35,
            70,
            0.08
        );
}

.public-home-country-flag-symbol {
    display: block;
    font-size: 20px;
    line-height: 1;
}

.public-home-country-code {
    display: block;
    color: var(--mst-navy-950);
    font-size: 7px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.public-home-country-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.public-home-country-copy strong {
    display: block;
    overflow: hidden;
    color: var(--mst-navy-950);
    font-size: 7.5px;
    line-height: 1.2;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-home-country-copy small {
    display: block;
    margin-top: 2px;
    color: var(--mst-text-500);
    font-size: 5.8px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

.public-home-country-flag-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Phase 18.11
   Customer Reviews
   Compact Homepage Carousel Panel
   ========================================================================== */

.public-home-center-reviews {
    width: 100%;
    margin-top: 12px;
}

.public-home-reviews {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}


/* ==========================================================================
   Heading + Controls
   ========================================================================== */

.public-home-reviews .public-home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 520px;
    margin: 0 0 10px;
}
.public-home-reviews-grid {
    max-width: 520px;
}
.public-home-reviews .public-home-section-kicker {
    display: none;
}

.public-home-reviews .public-home-section-heading h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    color: #102a43;
}

.public-home-review-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.public-home-review-control {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    background: #ffffff;
    color: #102a43;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.public-home-review-control:hover {
    border-color: #102a43;
    background: #f8fafc;
}

.public-home-review-control:disabled {
    opacity: 0.4;
    cursor: default;
}


/* ==========================================================================
   Horizontal Reviews Track
   ========================================================================== */

.public-home-reviews-grid {
    display: flex;
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}


/* ==========================================================================
   Single Review Slide
   ========================================================================== */

.public-home-review-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
        "avatar stars"
        "avatar title"
        "avatar text"
        "avatar customer";

    column-gap: 12px;
    row-gap: 3px;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}


/* ==========================================================================
   Stars
   ========================================================================== */

.public-home-review-stars {
    grid-area: stars;
    display: flex;
    align-items: center;
    gap: 1px;
    margin: 0;
    font-size: 12px;
    line-height: 1;
    color: #f59e0b;
}


/* ==========================================================================
   Review Title
   ========================================================================== */

.public-home-review-title {
    grid-area: title;
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #102a43;
}


/* ==========================================================================
   Review Text
   ========================================================================== */

.public-home-review-text {
    grid-area: text;
    margin: 2px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #52606d;
    overflow-wrap: anywhere;
}


/* ==========================================================================
   Customer Area
   ========================================================================== */

.public-home-review-customer {
    display: contents;
}

.public-home-review-avatar {
    grid-area: avatar;
    align-self: start;

    width: 40px;
    height: 40px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #eef2f6;

    color: #102a43;
    font-size: 14px;
    font-weight: 700;
}

.public-home-review-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================================
   Customer Details
   ========================================================================== */

.public-home-review-customer-details {
    grid-area: customer;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 4px 8px;

    min-width: 0;
    margin-top: 2px;
}

.public-home-review-customer-details strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #102a43;
}

.public-home-review-customer-details span {
    font-size: 10px;
    line-height: 1.35;
    color: #667085;
}

.public-home-review-customer-details small {
    font-size: 10px;
    line-height: 1.35;
    color: #98a2b3;
}

/* ==========================================================================
   Phase 18.12
   Latest News Desktop / Mobile Visibility
   ========================================================================== */

.public-home-lower-content-news {
    display: block;
}

.public-home-mobile-news {
    display: none;
}

/* ==========================================================================
   Phase 18.12
   Reviews + Latest News
   Desktop Lower Content Row
   ========================================================================== */

.public-home-lower-content {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(0, 42%)
        minmax(0, 58%);
    gap: 12px;
    align-items: stretch;
    margin-top: 12px;
}


/* ==========================================================================
   Reviews Left Panel
   ========================================================================== */

.public-home-lower-content-reviews {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.public-home-lower-content-reviews
.public-home-reviews {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.public-home-lower-content-reviews
.public-home-reviews
.public-home-section-heading {
    width: 100%;
    max-width: none;
}

.public-home-lower-content-reviews
.public-home-reviews-grid {
    width: 100%;
    max-width: none;
}


/* ==========================================================================
   Latest News Right Panel
   ========================================================================== */

.public-home-lower-content-news {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.public-home-news {
    width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;

    box-shadow:
        0 2px 8px
        rgba(
            15,
            23,
            42,
            0.05
        );
}

.public-home-news
.public-home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    margin: 0 0 10px;
}

.public-home-news
.public-home-section-kicker {
    display: none;
}

.public-home-news
.public-home-section-heading h2 {
    margin: 0;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;

    color: #102a43;
}


/* ==========================================================================
   Latest News Controls
   ========================================================================== */

.public-home-news-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.public-home-news-control {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #d7dee8;
    border-radius: 6px;

    background: #ffffff;
    color: #102a43;

    font-size: 17px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.public-home-news-control:hover {
    border-color: #102a43;
    background: #f8fafc;
}

.public-home-news-control:disabled {
    opacity: 0.4;
    cursor: default;
}


/* ==========================================================================
   Latest News Carousel
   ========================================================================== */

.public-home-news-grid {
    display: flex;

    width: 100%;
    min-width: 0;

    overflow: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.public-home-news-card {
    flex: 0 0 100%;

    width: 100%;
    min-width: 100%;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        166px
        minmax(0, 1fr);

    gap: 14px;
    align-items: center;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    box-shadow: none;

    scroll-snap-align: start;
    scroll-snap-stop: always;
}


/* ==========================================================================
   Latest News Image
   ========================================================================== */

.public-home-news-image {
    width: 166px;
    height: 110px;

    overflow: hidden;

    background: #eef2f7;
    border-radius: 6px;
}

.public-home-news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.public-home-news-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;
    box-sizing: border-box;

    font-size: 11px;
    font-weight: 700;
    text-align: center;

    color: #64748b;
    background: #eef2f7;
}


/* ==========================================================================
   Latest News Content
   ========================================================================== */

.public-home-news-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.public-home-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;

    margin: 0 0 4px;

    font-size: 10px;
    line-height: 1.3;

    color: #64748b;
}

.public-home-news-category {
    font-weight: 700;
    color: #315b7d;
}

.public-home-news-date {
    color: #64748b;
}

.public-home-news-title {
    margin: 0 0 4px;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;

    color: #102a43;
}

.public-home-news-description {
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    font-size: 11px;
    line-height: 1.5;

    color: #52606d;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* ==========================================================
   Phase 18.16A — Public Payment Pages
   Bank Details / PayPal / How to Buy
   ========================================================== */

.public-payment-page {
    width: 100%;
    min-height: 100vh;
    background: #f5f7fa;
    color: #172033;
}

.public-payment-page *,
.public-payment-page *::before,
.public-payment-page *::after {
    box-sizing: border-box;
}


/* ==========================================================
   Shared Container
   ========================================================== */

.public-payment-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* ==========================================================
   Payment Hero
   ========================================================== */

.public-payment-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 38px;
    background:
        linear-gradient(
            135deg,
            rgba(12, 28, 48, 0.98),
            rgba(21, 46, 74, 0.94)
        );
    color: #ffffff;
}

.public-payment-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 102, 0, 0.18),
            transparent 32%
        );
}

.public-payment-hero .public-payment-container {
    position: relative;
    z-index: 1;
}


/* ==========================================================
   Breadcrumb
   ========================================================== */

.public-payment-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.public-payment-breadcrumb a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.public-payment-breadcrumb a:hover,
.public-payment-breadcrumb a:focus-visible {
    color: #ff6a00;
}

.public-payment-breadcrumb span[aria-current="page"] {
    color: #ffffff;
    font-weight: 600;
}


/* ==========================================================
   Hero Typography
   ========================================================== */

.public-payment-hero h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.public-payment-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}


/* ==========================================================
   Main Content Area
   ========================================================== */

.public-payment-content {
    padding: 46px 0 64px;
}


/* ==========================================================
   Main Payment Card
   ========================================================== */

.public-payment-card {
    width: 100%;
    padding: 34px;
    border: 1px solid #e2e7ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow:
        0 12px 35px rgba(18, 38, 63, 0.07);
}


/* ==========================================================
   Card Heading
   ========================================================== */

.public-payment-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 26px;
}

.public-payment-icon {
    display: inline-flex;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff3ea;
    color: #ff6200;
    font-size: 27px;
    line-height: 1;
}

.public-payment-card-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.public-payment-card-heading p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #687386;
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   Information Notice
   ========================================================== */

.public-payment-notice {
    margin-bottom: 26px;
    padding: 18px 20px;
    border: 1px solid #dce8f4;
    border-left: 4px solid #2b77c5;
    border-radius: 10px;
    background: #f5f9fd;
}

.public-payment-notice strong {
    display: block;
    color: #1d456c;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
}

.public-payment-notice p {
    margin: 7px 0 0;
    color: #60758a;
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================================
   Bank Details Table
   ========================================================== */

.public-payment-table-wrap {
    width: 100%;
    margin-bottom: 26px;
    overflow-x: auto;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #ffffff;
}

.public-payment-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    border-spacing: 0;
}

.public-payment-table th,
.public-payment-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e9edf2;
    vertical-align: top;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
}

.public-payment-table th {
    width: 30%;
    background: #f8fafc;
    color: #253247;
    font-weight: 700;
}

.public-payment-table td {
    color: #536174;
    background: #ffffff;
}

.public-payment-table tr:last-child th,
.public-payment-table tr:last-child td {
    border-bottom: 0;
}


/* ==========================================================
   Important Warning
   ========================================================== */

.public-payment-warning {
    margin-bottom: 28px;
    padding: 20px 22px;
    border: 1px solid #f7d8be;
    border-radius: 12px;
    background: #fff7f0;
}

.public-payment-warning strong {
    position: relative;
    display: block;
    margin-bottom: 8px;
    padding-left: 28px;
    color: #b64a00;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
}

.public-payment-warning strong::before {
    content: "!";
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff6200;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.public-payment-warning p {
    margin: 5px 0 0;
    color: #725947;
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================================
   Action Area
   ========================================================== */

.public-payment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.public-payment-primary-button,
.public-payment-secondary-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 21px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.public-payment-primary-button {
    border: 1px solid #ff6200;
    background: #ff6200;
    color: #ffffff;
    box-shadow:
        0 7px 18px rgba(255, 98, 0, 0.2);
}

.public-payment-primary-button:hover,
.public-payment-primary-button:focus-visible {
    background: #e95700;
    border-color: #e95700;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        0 9px 22px rgba(255, 98, 0, 0.24);
}

.public-payment-secondary-button {
    border: 1px solid #cfd7e2;
    background: #ffffff;
    color: #253247;
}

.public-payment-secondary-button:hover,
.public-payment-secondary-button:focus-visible {
    border-color: #ff6200;
    color: #d95000;
}


/* ==========================================================
   Shared Future Payment Utilities
   Used later by PayPal + How To Buy
   ========================================================== */

.public-payment-section {
    margin-top: 28px;
}

.public-payment-section:first-child {
    margin-top: 0;
}

.public-payment-section-title {
    margin: 0 0 14px;
    color: #172033;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 800;
}

.public-payment-section-text {
    margin: 0;
    color: #657184;
    font-size: 14px;
    line-height: 1.75;
}

.public-payment-highlight-box {
    padding: 20px;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    background: #f8fafc;
}

.public-payment-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.public-payment-info-box {
    padding: 20px;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    background: #ffffff;
}

.public-payment-info-box h3 {
    margin: 0 0 8px;
    color: #1f2b3d;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 750;
}

.public-payment-info-box p {
    margin: 0;
    color: #687386;
    font-size: 13px;
    line-height: 1.7;
}


/* ==========================================================
   How To Buy — Future Shared Steps
   ========================================================== */

.public-payment-steps {
    position: relative;
    display: grid;
    gap: 0;
    margin-top: 22px;
}

.public-payment-step {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    min-height: 92px;
}

.public-payment-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 44px;
    bottom: 0;
    left: 23px;
    width: 2px;
    background: #e1e6ed;
}

.public-payment-step-number {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ff6200;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.public-payment-step-content {
    padding: 3px 0 25px;
}

.public-payment-step-content h3 {
    margin: 0 0 5px;
    color: #202c3e;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 750;
}

.public-payment-step-content p {
    margin: 0;
    color: #6a7586;
    font-size: 13px;
    line-height: 1.65;
}


/* ==========================================================
   Accessibility
   ========================================================== */

.public-payment-page a:focus-visible,
.public-payment-page button:focus-visible {
    outline: 3px solid rgba(255, 98, 0, 0.28);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .public-payment-page *,
    .public-payment-page *::before,
    .public-payment-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================
   Phase 18.16A — Payment Navbar Button Reset
   ========================================================== */

.public-nav-dropdown > .public-nav-dropdown-toggle {
    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;
    box-shadow: none;

    color: inherit;
    font: inherit;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

/* ==========================================================
   Phase 18.16A — Payment Dropdown Arrow
   ========================================================== */

.public-nav-dropdown > .public-nav-dropdown-toggle::after {
    content: "▾";

    display: inline-block;

    margin-left: 5px;

    font-size: 9px;
    line-height: 1;

    vertical-align: middle;
}