/* ================================================================
   FourFoxes Design System — theme.css
   Amber & Deep Navy Palette  |  v2.0  |  2026-04-03
   ================================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────────────── */

:root {
    /* Primary (Amber) */
    --ff-primary:          #E89F2B;
    --ff-primary-hover:    #CC8A1E;
    --ff-primary-light:    #F8D48A;
    --ff-primary-subtle:   #FFFAED;

    /* Secondary (Deep Navy) */
    --ff-secondary:        #1E3A5F;
    --ff-secondary-light:  #3A6090;
    --ff-secondary-subtle: #E8EFF6;

    /* Dark Backgrounds (navy-tinted) */
    --ff-dark:             #0F1820;
    --ff-dark-muted:       #1A2633;

    /* Neutrals (cool undertone) */
    --ff-neutral-900:      #1A2530;
    --ff-neutral-700:      #3D4A56;
    --ff-neutral-500:      #6B7785;
    --ff-neutral-300:      #CDD4D8;
    --ff-neutral-100:      #F2F5F7;
    --ff-white:            #FFFFFF;

    /* Semantic */
    --ff-success:          #2D9D5B;
    --ff-success-light:    #E6F4EC;
    --ff-warning:          #E89F2B;
    --ff-warning-light:    #FFFAED;
    --ff-danger:           #D94444;
    --ff-danger-light:     #FCEBEB;
    --ff-info:             #3A6090;
    --ff-info-light:       #E8EFF6;

    /* Typography */
    --ff-font-display:     'Funnel Display', sans-serif;
    --ff-font-body:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── TOKEN ALIASES (home.html short names) ─────────────────────── */

:root {
    --ff:           'Funnel Display', sans-serif;
    --body:         'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --black:        var(--ff-dark);
    --white:        var(--ff-white);
    --amber:        var(--ff-primary);
    --amber-hover:  var(--ff-primary-hover);
    --amber-light:  var(--ff-primary-light);
    --amber-subtle: var(--ff-primary-subtle);
    --secondary:    var(--ff-secondary);
    --muted:        var(--ff-neutral-500);
    --neutral-900:  var(--ff-neutral-900);
    --border:       var(--ff-neutral-300);
    --bg-subtle:    var(--ff-neutral-100);
    --success:      var(--ff-success);
    --danger:       var(--ff-danger);
    --px:           clamp(20px, 5vw, 80px);
}

/* ── CSS RESET ──────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── GLOBAL BASE ────────────────────────────────────────────────── */

body {
    font-family: var(--ff-font-body);
    color: var(--ff-neutral-700);
    background: var(--ff-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-font-display);
    color: var(--ff-neutral-900);
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--px);
    padding-right: var(--px);
}

/* ── NAVBAR ─────────────────────────────────────────────────────── */

.navbar {
    --bs-navbar-brand-font-size: 0.9rem;
    --bs-navbar-color:           var(--ff-neutral-700);
    --bs-navbar-hover-color:     var(--ff-primary);
    --bs-navbar-active-color:    var(--ff-primary);
    font-family: var(--ff-font-body);
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--ff-neutral-300);
}

.navbar-brand {
    font-family: var(--ff-font-body) !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: black !important;
    letter-spacing: -0.01em;
}

.navbar-brand img {
    border-radius: 6px;
}

.nav-link {
    font-family: var(--ff-font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--ff-neutral-700) !important;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    transition: color 0.2s ease;
}

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

.navbar-toggler {
    border: 1.5px solid var(--ff-neutral-300);
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ff-neutral-100);
}

.navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E89F2B' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--ff-primary-subtle);
}

/* Dropdown menus */
.dropdown-menu {
    --bs-dropdown-border-color:        var(--ff-neutral-300);
    --bs-dropdown-border-radius:       8px;
    --bs-dropdown-link-color:          var(--ff-neutral-700);
    --bs-dropdown-link-hover-bg:       var(--ff-primary-subtle);
    --bs-dropdown-link-hover-color:    var(--ff-primary-hover);
    --bs-dropdown-link-active-bg:      var(--ff-primary);
    --bs-dropdown-link-active-color:   var(--ff-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    border-width: 1px;
    z-index: 1050;
}

.dropdown-item {
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.45rem 1rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-divider {
    border-color: var(--ff-neutral-300);
    opacity: 1;
}

/* ── BUTTONS (shared) ───────────────────────────────────────────── */

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 13px 26px;
    background: var(--black);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.btn-dark svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn-dark:hover { background: var(--amber); color: var(--white); gap: 12px; }
.btn-dark:hover svg { transform: translateX(2px); }

.btn-amber {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 13px 26px;
    background: var(--amber);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, gap 0.2s ease;
    box-shadow: 0 2px 8px rgba(240,168,46,0.3);
}
.btn-amber svg { width: 14px; height: 14px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn-amber:hover { background: var(--amber-hover); color: var(--white); gap: 12px; }
.btn-amber:hover svg { transform: translateX(2px); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 13px 26px;
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.btn-ghost:hover { background: var(--bg-subtle, #FAFBFC); border-color: var(--amber); gap: 12px; }

.btn-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 13px 26px;
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-light:hover { background: var(--bg-subtle, #FAFBFC); border-color: var(--amber); gap: 12px; }

/* ── BUTTONS ────────────────────────────────────────────────────── */

.btn {
    font-family: var(--ff-font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.2s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    --bs-btn-bg:                 var(--ff-primary);
    --bs-btn-border-color:       var(--ff-primary);
    --bs-btn-hover-bg:           var(--ff-primary-hover);
    --bs-btn-hover-border-color: var(--ff-primary-hover);
    --bs-btn-active-bg:          var(--ff-primary-hover);
    --bs-btn-active-border-color:var(--ff-primary-hover);
    --bs-btn-disabled-bg:        var(--ff-neutral-300);
    --bs-btn-disabled-border-color: var(--ff-neutral-300);
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
    --bs-btn-active-color:       var(--ff-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    --bs-btn-bg:                 var(--ff-secondary);
    --bs-btn-border-color:       var(--ff-secondary);
    --bs-btn-hover-bg:           var(--ff-secondary-light);
    --bs-btn-hover-border-color: var(--ff-secondary-light);
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-outline-primary {
    --bs-btn-color:              var(--ff-primary);
    --bs-btn-border-color:       var(--ff-primary);
    --bs-btn-hover-bg:           var(--ff-primary-subtle);
    --bs-btn-hover-color:        var(--ff-primary-hover);
    --bs-btn-hover-border-color: var(--ff-primary);
    --bs-btn-active-bg:          var(--ff-primary-subtle);
    --bs-btn-active-color:       var(--ff-primary-hover);
}

.btn-outline-secondary {
    --bs-btn-color:              var(--ff-secondary);
    --bs-btn-border-color:       var(--ff-secondary);
    --bs-btn-hover-bg:           var(--ff-secondary-subtle);
    --bs-btn-hover-color:        var(--ff-secondary);
    --bs-btn-hover-border-color: var(--ff-secondary);
}

.btn-danger {
    --bs-btn-bg:                 var(--ff-danger);
    --bs-btn-border-color:       var(--ff-danger);
    --bs-btn-hover-bg:           #b93636;
    --bs-btn-hover-border-color: #b93636;
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
}

.btn-warning {
    --bs-btn-bg:                 var(--ff-primary);
    --bs-btn-border-color:       var(--ff-primary);
    --bs-btn-hover-bg:           var(--ff-primary-hover);
    --bs-btn-hover-border-color: var(--ff-primary-hover);
    --bs-btn-active-bg:          var(--ff-primary-hover);
    --bs-btn-active-border-color:var(--ff-primary-hover);
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
    --bs-btn-active-color:       var(--ff-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-outline-warning {
    --bs-btn-color:              var(--ff-primary);
    --bs-btn-border-color:       var(--ff-primary);
    --bs-btn-hover-bg:           var(--ff-primary-subtle);
    --bs-btn-hover-color:        var(--ff-primary-hover);
    --bs-btn-hover-border-color: var(--ff-primary);
    --bs-btn-active-bg:          var(--ff-primary-subtle);
    --bs-btn-active-color:       var(--ff-primary-hover);
}

.btn-info {
    --bs-btn-bg:                 var(--ff-secondary);
    --bs-btn-border-color:       var(--ff-secondary);
    --bs-btn-hover-bg:           var(--ff-secondary-light);
    --bs-btn-hover-border-color: var(--ff-secondary-light);
    --bs-btn-active-bg:          var(--ff-secondary-light);
    --bs-btn-active-border-color:var(--ff-secondary-light);
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
    --bs-btn-active-color:       var(--ff-white);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-outline-info {
    --bs-btn-color:              var(--ff-secondary);
    --bs-btn-border-color:       var(--ff-secondary);
    --bs-btn-hover-bg:           var(--ff-secondary-subtle);
    --bs-btn-hover-color:        var(--ff-secondary);
    --bs-btn-hover-border-color: var(--ff-secondary);
    --bs-btn-active-bg:          var(--ff-secondary-subtle);
    --bs-btn-active-color:       var(--ff-secondary);
}

.btn-success {
    --bs-btn-bg:                 var(--ff-success);
    --bs-btn-border-color:       var(--ff-success);
    --bs-btn-hover-bg:           #26895b;
    --bs-btn-hover-border-color: #26895b;
    --bs-btn-color:              var(--ff-white);
    --bs-btn-hover-color:        var(--ff-white);
}

/* ── FORMS ──────────────────────────────────────────────────────── */

.form-control,
.form-select {
    font-family: var(--ff-font-body);
    font-size: 0.9rem;
    border: 1.5px solid var(--ff-neutral-300);
    border-radius: 8px;
    color: var(--ff-neutral-900);
    background-color: var(--ff-white);
    min-height: 48px;
    padding: 10px 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 3px var(--ff-primary-subtle);
    outline: none;
    color: var(--ff-neutral-900);
}

.form-control::placeholder {
    color: var(--ff-neutral-500);
}

.form-label {
    font-family: var(--ff-font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ff-neutral-900);
    margin-bottom: 0.4rem;
}

.form-text {
    font-size: 0.78rem;
    color: var(--ff-neutral-500);
}

.form-check-input:checked {
    background-color: var(--ff-primary);
    border-color: var(--ff-primary);
}

.form-check-input:focus {
    border-color: var(--ff-primary);
    box-shadow: 0 0 0 3px var(--ff-primary-subtle);
}

/* ── CARDS ──────────────────────────────────────────────────────── */

.card {
    border: 1px solid var(--ff-neutral-300);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    background: var(--ff-white);
}

.card-header {
    background: var(--ff-neutral-100);
    border-bottom: 1px solid var(--ff-neutral-300);
    font-family: var(--ff-font-display);
    font-weight: 600;
    color: var(--ff-neutral-900);
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-title {
    font-family: var(--ff-font-display);
    color: var(--ff-neutral-900);
}

.card-body {
    padding: 1.25rem;
}

/* ── TABLES ─────────────────────────────────────────────────────── */

.table {
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    color: var(--ff-neutral-700);
}

.table thead th {
    background: var(--ff-neutral-100);
    font-family: var(--ff-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ff-neutral-500);
    border-bottom: 2px solid var(--ff-neutral-300);
    vertical-align: middle;
    padding: 0.75rem 1rem;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-color: var(--ff-neutral-100);
}

.table-hover > tbody > tr:hover > * {
    background-color: var(--ff-primary-subtle);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: rgba(242, 245, 247, 0.5);
}

/* DataTables overrides */
table.dataTable thead th {
    background: var(--ff-neutral-100);
    font-family: var(--ff-font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ff-neutral-500);
}

table.dataTable.no-footer {
    border-bottom-color: var(--ff-neutral-300);
}

/* ── BADGES ─────────────────────────────────────────────────────── */

.badge {
    font-family: var(--ff-font-body);
    font-weight: 600;
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 0.35em 0.75em;
    letter-spacing: 0.01em;
}

.bg-success { background-color: var(--ff-success) !important; }
.bg-danger  { background-color: var(--ff-danger) !important; }
.bg-warning { background-color: var(--ff-warning) !important; color: var(--ff-white) !important; }
.bg-info    { background-color: var(--ff-info) !important; }
.bg-primary { background-color: var(--ff-primary) !important; color: var(--ff-white) !important; }

.text-success { color: var(--ff-success) !important; }
.text-danger  { color: var(--ff-danger) !important; }
.text-warning { color: var(--ff-warning) !important; }
.text-info    { color: var(--ff-secondary) !important; }
.text-primary { color: var(--ff-primary) !important; }
.text-muted   { color: var(--ff-neutral-500) !important; }

/* ── PROGRESS BARS ──────────────────────────────────────────────── */

.progress {
    border-radius: 999px;
    background: var(--ff-neutral-100);
    height: 8px;
}

.progress-bar {
    background-color: var(--ff-primary) !important;
    border-radius: 999px;
}

/* ── LINKS ──────────────────────────────────────────────────────── */

a {
    color: var(--ff-secondary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ff-primary-hover);
}

/* ── ALERTS ─────────────────────────────────────────────────────── */

.alert {
    border-radius: 8px;
    font-family: var(--ff-font-body);
    font-size: 0.88rem;
    border-width: 1px;
}

.alert-success {
    background: #e8f7ef;
    color: #1a6e3f;
    border-color: #b5dfc7;
}

.alert-danger {
    background: #fdeaea;
    color: #922222;
    border-color: #f5b8b8;
}

.alert-warning {
    background: var(--ff-primary-subtle);
    color: var(--ff-neutral-900);
    border-color: var(--ff-primary-light);
}

.alert-info {
    background: var(--ff-secondary-subtle);
    color: var(--ff-secondary);
    border-color: #b0c9dc;
}

/* ── PAGINATION ─────────────────────────────────────────────────── */

.pagination {
    font-family: var(--ff-font-body);
    font-size: 0.85rem;
    gap: 4px;
}

.page-link {
    color: var(--ff-neutral-700);
    border-color: var(--ff-neutral-300);
    border-radius: 6px !important;
    transition: all 0.15s ease;
}

.page-link:hover {
    background: var(--ff-primary-subtle);
    color: var(--ff-primary-hover);
    border-color: var(--ff-primary);
}

.page-item.active .page-link {
    background: var(--ff-primary);
    border-color: var(--ff-primary);
    color: var(--ff-white);
}

.page-item.disabled .page-link {
    color: var(--ff-neutral-300);
    pointer-events: none;
    cursor: not-allowed;
}

/* ── MODALS ─────────────────────────────────────────────────────── */

.modal-header {
    border-bottom-color: var(--ff-neutral-300);
    font-family: var(--ff-font-display);
}

.modal-title {
    font-family: var(--ff-font-display);
    color: var(--ff-neutral-900);
}

.modal-footer {
    border-top-color: var(--ff-neutral-300);
}

.modal-content {
    border-radius: 12px;
    border-color: var(--ff-neutral-300);
}

/* ── ONBOARDING ─────────────────────────────────────────────────── */

.onboarding-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ff-primary);
    margin-left: 5px;
    vertical-align: middle;
    animation: ff-pulse 1.5s ease-in-out infinite;
}

@keyframes ff-pulse {
    0%, 100% { transform: scale(1);   opacity: 1;   }
    50%       { transform: scale(1.4); opacity: 0.6; }
}

.dropdown-item.onboarding-highlight {
    background-color: var(--ff-primary-subtle);
    color: var(--ff-primary-hover);
    font-weight: 600;
    position: relative;
}

.dropdown-item.onboarding-highlight::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--ff-primary);
    border-radius: 50%;
    margin-right: 7px;
    animation: ff-pulse 1.5s ease-in-out infinite;
}

/* Onboarding checklist */
.onboarding-step-active {
    background: var(--ff-primary-subtle) !important;
    border-left: 3px solid var(--ff-primary) !important;
}

.onboarding-step-active .form-check-label {
    font-weight: 600;
    color: var(--ff-neutral-900);
}

.onboarding-step-complete .form-check-input {
    background-color: var(--ff-success);
    border-color: var(--ff-success);
}

.onboarding-step-complete .form-check-label {
    text-decoration: line-through;
    color: var(--ff-neutral-500);
}

.onboarding-step-future .form-check-label {
    color: var(--ff-neutral-500);
}

/* ── FOCUS / ACCESSIBILITY ──────────────────────────────────────── */

:focus-visible {
    outline: 3px solid var(--ff-primary);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--ff-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── LIST GROUPS ────────────────────────────────────────────────── */

.list-group-item {
    font-family: var(--ff-font-body);
    border-color: var(--ff-neutral-300);
    font-size: 0.88rem;
    padding: 0.75rem 1rem;
}

.list-group-item.active {
    background-color: var(--ff-primary);
    border-color: var(--ff-primary);
}

/* ── NAV TABS ───────────────────────────────────────────────────── */

.nav-tabs {
    border-bottom-color: var(--ff-neutral-300);
}

.nav-tabs .nav-link {
    color: var(--ff-neutral-500) !important;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.625rem 1rem;
    font-size: 0.85rem;
}

.nav-tabs .nav-link:hover {
    color: var(--ff-neutral-900) !important;
    border-bottom-color: var(--ff-neutral-300);
}

.nav-tabs .nav-link.active {
    color: var(--ff-primary-hover) !important;
    border-bottom: 2px solid var(--ff-primary);
    background: none;
}

/* ── INVENTORY DASHBOARD ────────────────────────────────────────── */

.inventory-dashboard-page {
    padding-bottom: 2.5rem;
}

.inventory-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.inventory-dashboard-heading {
    max-width: 72ch;
}

.inventory-dashboard-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ff-neutral-500);
}

.inventory-dashboard-title {
    margin: 0.25rem 0 0;
    font-family: var(--ff-font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
    color: var(--ff-neutral-900);
}

.inventory-dashboard-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ff-neutral-700);
}

.inventory-dashboard-status {
    min-width: 16rem;
    border: 1px solid var(--ff-neutral-300);
    border-radius: 12px;
    background: var(--ff-neutral-100);
    padding: 0.875rem 1rem;
}

.inventory-dashboard-status-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ff-neutral-500);
}

.inventory-dashboard-status-time {
    margin: 0;
    font-size: 0.9rem;
    color: var(--ff-neutral-900);
    font-weight: 600;
}

.inventory-risk-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-risk-card {
    border-width: 1px;
    height: 100%;
}

.inventory-risk-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.inventory-risk-card-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ff-neutral-500);
}

.inventory-risk-card-value {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--ff-neutral-900);
}

.inventory-risk-card-help {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ff-neutral-700);
    flex: 1 1 auto;
}

.inventory-risk-card--stable {
    background: var(--ff-white);
    border-color: var(--ff-neutral-300);
}

.inventory-risk-card--warning {
    background: var(--ff-warning-light);
    border-color: var(--ff-primary-light);
}

.inventory-risk-card--danger {
    background: var(--ff-danger-light);
    border-color: #f0b9b9;
}

.inventory-risk-card--info {
    background: var(--ff-info-light);
    border-color: #b8d0e0;
}

.inventory-focus-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inventory-focus-item {
    display: flex;
    gap: 0.875rem;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid var(--ff-neutral-300);
    border-radius: 10px;
    padding: 0.85rem;
    background: var(--ff-white);
}

.inventory-focus-item--danger {
    background: var(--ff-danger-light);
    border-color: #f0b9b9;
}

.inventory-focus-item--warning {
    background: var(--ff-warning-light);
    border-color: var(--ff-primary-light);
}

.inventory-focus-item--info {
    background: var(--ff-info-light);
    border-color: #b8d0e0;
}

.inventory-focus-item--success {
    background: var(--ff-success-light);
    border-color: #b7dfc5;
}

.inventory-focus-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.inventory-focus-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ff-neutral-900);
}

.inventory-focus-text {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ff-neutral-700);
}

.inventory-activity-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.inventory-activity-metric {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ff-neutral-700);
}

.inventory-purchases-table td.actions-cell .table-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.inventory-purchases-table td.actions-cell .btn {
    white-space: nowrap;
}

.inventory-empty-state {
    border: 1px dashed var(--ff-neutral-300);
    border-radius: 10px;
    background: var(--ff-neutral-100);
    padding: 1rem;
}

.inventory-readiness-item {
    height: 100%;
    border: 1px solid var(--ff-neutral-300);
    border-radius: 10px;
    background: var(--ff-neutral-100);
    padding: 0.9rem;
}

.inventory-readiness-value {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 700;
    color: var(--ff-neutral-900);
}

.inventory-readiness-label {
    margin: 0.4rem 0;
    font-size: 0.8rem;
    color: var(--ff-neutral-700);
}

.inventory-readiness-link {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.inventory-actions .btn-group-scroll {
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    .inventory-risk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .inventory-dashboard-status {
        width: 100%;
        min-width: 0;
    }

    .inventory-risk-grid {
        grid-template-columns: 1fr;
    }

    .inventory-focus-item {
        flex-direction: column;
        align-items: stretch;
    }

    .inventory-focus-item .btn {
        width: 100%;
    }

    .inventory-purchases-table td.actions-cell {
        padding-left: 0.875rem;
    }

    .inventory-purchases-table td.actions-cell::before {
        content: none;
    }

    .inventory-purchases-table td.actions-cell .btn {
        width: 100%;
    }
}

/* ── MOBILE-FIRST ENHANCEMENTS ──────────────────────────────────── */

/* Ensure minimum tap target on mobile */
@media (max-width: 767px) {
    .btn {
        min-height: 48px;
        font-size: 0.9rem;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }

    /* Inline buttons (edit/delete) should not go full width */
    .btn-sm,
    td .btn,
    .btn-inline {
        width: auto;
        min-height: 40px;
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .card-header {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }

    .card-body {
        padding: 1rem;
    }
}

/* ── REDUCED MOTION ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── PHASE 22 — SHARED NAV + FOOTER (extracted from home.html) ─── */
/* Per CONTEXT D-10: home.html is the visual source of truth.       */
/* Values are byte-equivalent to the source; only the missing        */
/* closing } on .f-brand (CSS bug in source) was fixed here.        */

/* NAVIGATION */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 8px 0;
}
.nav-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--black);
    text-decoration: none;
}
.nav-brand img { width: 64px; height: 64px; border-radius: 4px; }
.nav-brand-wordmark { display: block; margin: 0; line-height: 1; font-size: calc(1rem + 1vw); font-weight: 600; font-family: var(--ff); color: var(--black); letter-spacing: -0.01em; }
.nav-login {
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    background: transparent;
    color: var(--black);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-login:hover { border-color: var(--amber); color: var(--amber-hover); }
.nav-get-started {
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    background: var(--amber);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    box-shadow: 0 1px 3px rgba(240,168,46,0.25);
}
.nav-get-started:hover { background: var(--amber-hover); color: var(--white); }
.nav-cta-group { display: flex; align-items: center; gap: 10px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-left: 24px;
}
.nav-links a {
    font-family: var(--body);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--black); background: var(--bg-subtle); }

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}
.nav-hamburger:hover { background: var(--bg-subtle); }
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    padding-bottom: 16px;
}
.nav-mobile-menu.is-open { display: flex; }
.nav-mobile-menu a {
    font-family: var(--body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 13px var(--px);
    color: var(--black);
    text-decoration: none;
    transition: background 0.15s ease;
}
.nav-mobile-menu a:hover { background: var(--bg-subtle); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 8px var(--px); }
.nav-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px var(--px) 0;
}
.nav-mobile-cta .nav-login,
.nav-mobile-cta .nav-get-started { display: block; text-align: center; }

@media (max-width: 767px) {
    .nav-cta-group .nav-get-started { display: none; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

/* FOOTER */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 64px 0 32px;
}
.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.f-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    font-family: var(--body);
}
.f-brand img { width: 22px; height: 22px; border-radius: 3px; opacity: 0.8; }
.f-tagline {
    font-family: var(--body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
    line-height: 1.65;
    max-width: 220px;
}
.f-col-h {
    font-family: var(--body);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 14px;
}
.f-links { list-style: none; }
.f-links li { margin-bottom: 9px; }
.f-links a {
    font-family: var(--body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.2s ease;
}
.f-links a:hover { color: var(--amber-light); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.f-copy {
    font-family: var(--body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.18);
}
.f-consent {
    font-family: var(--body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.18);
    text-decoration: none;
    transition: color 0.2s ease;
}
.f-consent:hover { color: rgba(255,255,255,0.45); }

@media (max-width: 1023px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* ── PHASE 23 — MARKETING + ERROR + FORM COMPONENTS ─────────────
   Per CONTEXT D-04: theme.css is the single canonical CSS source.
   All values are byte-equivalent to 23-UI-SPEC.md.
   ─────────────────────────────────────────────────────────────── */

/* ─ PAGE SHELL (shared by all marketing pages) ─ */
.ff-page-shell { padding: 80px 0 96px; }
@media (max-width: 768px) { .ff-page-shell { padding: 56px 0 72px; } }
.ff-page-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ff-page-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ff-neutral-700);
}

/* ─ PRICING ─ */
.ff-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 980px) { .ff-pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 640px) { .ff-pricing-grid { grid-template-columns: 1fr; gap: 20px; } }

.ff-pricing-card {
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ff-pricing-card:not(.featured):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ff-pricing-card.featured { border: 2px solid var(--amber); padding: 35px 31px 31px; }

.ff-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(240,168,46,0.35);
    white-space: nowrap;
}

.ff-pricing-name  { font-family: var(--ff); font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.ff-pricing-desc  { font-size: 0.85rem; line-height: 1.55; color: var(--ff-neutral-700); margin: 0 0 16px; }
.ff-pricing-price { font-family: var(--ff); font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 400; line-height: 1; margin: 0 0 20px; }

.ff-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.ff-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ff-neutral-700);
    line-height: 1.6;
}
.ff-pricing-features li i { color: var(--amber); font-size: 1rem; line-height: 1.6; }

.ff-pricing-cta     { margin-top: auto; }
.ff-pricing-footnote {
    max-width: 720px;
    margin: 56px auto 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ─ FEATURE GRID + CARD (replaces .ff-feature-card per CONTEXT D-05) ─ */
.ff-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 980px) { .ff-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ff-feature-grid { grid-template-columns: 1fr; } }

.ff-feature {
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.ff-feature:hover { background: var(--bg-subtle, #FAFBFC); border-color: var(--amber); }
.ff-feature-icon  { font-size: 1.6rem; color: var(--amber); margin-bottom: 12px; display: block; }
.ff-feature-title { font-family: var(--ff); font-size: 1.05rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.ff-feature-desc  { font-size: 0.9rem; line-height: 1.6; color: var(--ff-neutral-700); margin: 0; }

/* ─ CTA BAND ─ */
.ff-cta-band { padding: 80px 0; }
.ff-cta-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.ff-cta-heading { font-family: var(--ff); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 400; line-height: 1.15; margin: 0 0 16px; }
.ff-cta-sub     { font-size: 1.05rem; line-height: 1.65; color: var(--ff-neutral-700); margin: 0 0 28px; }

/* ─ HERO BLOCK ─ */
.ff-hero { position: relative; overflow: hidden; padding: 100px var(--px) 96px; }
.ff-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.22;
    pointer-events: none;
}
.ff-hero-block-inner {
    position: relative;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}
.ff-hero-block-sub { font-size: 1.05rem; line-height: 1.65; color: var(--ff-neutral-700); margin: 0; }

/* ─ KICKER ─ */
.ff-kicker {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(30, 58, 95, 0.08);
    color: var(--ff-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─ FEATURE LIST SECTION ─ */
.ff-feature-list-section { padding: 80px 0; }

/* ─ CONTACT FORM ─ */
.ff-form-shell { max-width: 560px; margin: 0 auto; }
.ff-form-row   { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.ff-form-row.has-error .ff-form-input,
.ff-form-row.has-error .ff-form-textarea { border-color: var(--danger); }
.ff-form-label    { font-size: 0.82rem; font-weight: 600; color: var(--black); }
.ff-form-required { color: var(--danger); margin-left: 4px; }

.ff-form-input,
.ff-form-textarea {
    min-height: 48px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: var(--body);
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.ff-form-textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.ff-form-input:focus,
.ff-form-textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(240,168,46,0.15);
}

.ff-form-checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.ff-form-checkbox     { width: 18px; height: 18px; accent-color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.ff-form-checkbox-label { font-size: 0.9rem; line-height: 1.5; }

.ff-form-error  { color: var(--danger); font-size: 0.78rem; margin-top: 6px; }
.ff-form-help   { color: var(--muted);  font-size: 0.78rem; margin-top: 6px; }

.ff-form-success {
    background: var(--ff-success-light);
    border-left: 4px solid var(--success);
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ff-form-success i { color: var(--success); font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }

.ff-form-submit { min-width: 200px; width: auto; }
@media (max-width: 480px) { .ff-form-submit { width: 100%; } }
.ff-form-return { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; }

/* ─ TEXT PAGE ─ */
.ff-text-shell { max-width: 720px; margin: 0 auto; }
.ff-text-meta  { font-size: 0.78rem; font-weight: 500; color: var(--muted); margin: 8px 0 32px; }

/* ─ RICHTEXT SHELL ─ */
.ff-richtext-shell { max-width: 720px; }
.ff-richtext-shell p,
.ff-richtext p,
.ff-richtext li { line-height: 1.75; margin-bottom: 1.25em; }
.ff-richtext ul,
.ff-richtext ol { margin: 0 0 1.25em 1.5em; }
.ff-richtext li { margin-bottom: 0.4em; }
.ff-richtext h2 { margin: 2em 0 0.6em; }
.ff-richtext h3 { margin: 1.5em 0 0.5em; }

/* ─ ERROR PAGES ─ */
.ff-error-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--px);
    gap: 16px;
}
@media (max-width: 640px) {
    .ff-error-hero { padding: 80px var(--px); min-height: 50vh; }
}

.ff-error-numeral {
    font-family: var(--ff);
    font-style: italic;
    font-weight: 300;
    color: var(--amber);
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin: 0;
}
.ff-error-title { font-family: var(--ff); font-weight: 400; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; margin: 0; color: var(--black); }
.ff-error-body  { font-size: 1rem; line-height: 1.75; color: var(--muted); max-width: 480px; margin: 0; }
.ff-error-cta   { margin-top: 8px; }
.ff-error-helper-intro { font-size: 0.85rem; color: var(--muted); margin: 24px 0 0; }
.ff-error-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    font-size: 0.85rem;
    margin-top: 8px;
}
.ff-error-links a { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Phase 24 — Rich-text extensions (shared) per UI-SPEC §6, §7 + D-09
   ========================================================================== */

.ff-richtext pre {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}

.ff-richtext code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
    background: var(--bg-subtle);
    border-radius: 4px;
    padding: 0.1em 0.35em;
}

.ff-richtext pre code {
    background: transparent;
    padding: 0;
}

.ff-richtext blockquote {
    margin: 1.75rem 0;
    padding: 0.5rem 1.25rem;
    border-left: 4px solid var(--amber);
    color: var(--muted);
    font-style: italic;
}

.ff-richtext figure {
    margin: 1.75rem 0;
}

.ff-richtext figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.ff-richtext figcaption {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
    text-align: center;
}

/* Always include per D-09 — TableBlock CSS even if block not yet wired */
.ff-richtext table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.ff-richtext th,
.ff-richtext td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.ff-richtext th {
    background: var(--bg-subtle);
    font-weight: 600;
}

/* ==========================================================================
   Phase 24 — Pagination component (shared) per UI-SPEC §9 + D-03
   ========================================================================== */

.ff-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ff-pagination li {
    display: inline-flex;
}

.ff-pagination a,
.ff-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ff-neutral-700);
    text-decoration: none;
    font-weight: 500;
    background: var(--ff-white);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ff-pagination a:hover,
.ff-pagination a:focus {
    background: var(--bg-subtle);
    border-color: var(--ff-secondary);
}

.ff-pagination .is-current {
    background: var(--ff-secondary);
    border-color: var(--ff-secondary);
    color: var(--ff-white);
    font-weight: 600;
}

.ff-pagination .is-disabled {
    color: var(--muted);
    background: transparent;
    border-color: var(--border);
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .ff-pagination a,
    .ff-pagination span {
        min-width: 36px;
        min-height: 36px;
        padding: 6px 10px;
        font-size: 0.92rem;
    }
}
