/* ===================================================================
   LORA HUB — Editorial Design System
   Distinct from the PrimeConnect corporate aesthetic.
   Inspired by editorial/magazine layouts: off-white paper, monospace
   labels, serif headlines, dotted section dividers, asymmetric grids,
   and vibrant orange accent for radio/signal elements.
   =================================================================== */

/* --- Scoped Variables --- */
.lora-editorial {
    --le-bg: #eaebe6;
    --le-bg-warm: #e1e3dc;
    --le-text: #231f20;
    --le-text-mid: #4a4745;
    --le-text-muted: #8a8784;
    --le-accent: #7c3aed;
    --le-accent-dim: rgba(124, 58, 237, 0.08);
    --le-blue: #1400ff;
    --le-border: #2d2d2c;
    --le-border-light: #c4c6c2;
    --le-serif: 'Young Serif', Georgia, 'Times New Roman', serif;
    --le-mono: 'Azeret Mono', 'Courier New', Courier, monospace;
    --le-page-mx: clamp(20px, 5vw, 72px);
    --le-gap: clamp(40px, 6vw, 96px);

    /* Full-bleed: break out of any parent padding */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;

    background-color: var(--le-bg);
    color: var(--le-text);
    font-family: var(--le-mono);
    font-size: 13px;
    line-height: 1.75;
    letter-spacing: 0.025em;
    overflow-x: hidden;
}

/* --- Grain Overlay (paper texture) --- */
.lora-editorial::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
}

/* All children above the grain */
.lora-editorial > * {
    position: relative;
    z-index: 1;
}

/* ===================================================================
   ANIMATIONS
   =================================================================== */

@keyframes le-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes le-fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes le-slideRight {
    from { width: 0; }
    to   { width: 100%; }
}

@keyframes le-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@keyframes le-radiate {
    0%   { opacity: 0; transform: translate(-50%, -50%) scaleX(0.3) scaleY(0.5); }
    15%  { opacity: 0.65; }
    100% { opacity: 0; transform: translate(-50%, -50%) scaleX(1.5) scaleY(1.1); }
}

/* ===================================================================
   HERO
   =================================================================== */

.le-hero {
    padding: var(--le-gap) var(--le-page-mx);
    padding-top: clamp(28px, 4vw, 56px);
    padding-bottom: clamp(20px, 2.5vw, 40px);
}

/* Side-by-side hero layout: title left, tagline+auth right on large screens */
.le-hero-content {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 4vw, 64px);
    align-items: flex-start;
}

.le-hero-left {
    flex: 1 1 55%;
    min-width: 320px;
}

.le-hero-right {
    flex: 1 1 35%;
    min-width: 260px;
    padding-top: clamp(8px, 1.5vw, 24px);
}

/* --- Label with pulsing dot --- */
.le-hero-label {
    font-family: var(--le-mono);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--le-accent);
    margin-bottom: clamp(12px, 1.5vw, 24px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: le-fadeIn 0.6s ease-out;
}

.le-hero-label::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--le-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: le-pulse 2.5s ease-in-out infinite;
}

/* --- Main headline --- */
.le-hero-title {
    font-family: var(--le-serif);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--le-text);
    margin: 0 0 0;
    max-width: 620px;
    animation: le-fadeUp 0.7s ease-out 0.1s both;
}

.le-hero-title em {
    font-style: italic;
    color: var(--le-accent);
}

/* --- Dotted divider --- */
.le-divider {
    border: none;
    border-top: 2px dotted var(--le-border);
    margin: clamp(14px, 1.5vw, 24px) 0;
    overflow: hidden;
}

.le-divider::after {
    content: '';
    display: block;
    border-top: 2px dotted var(--le-border);
    margin-top: -2px;
    animation: le-slideRight 0.8s ease-out 0.3s both;
}

.le-divider--light {
    border-top-color: var(--le-border-light);
}

.le-divider--light::after {
    border-top-color: var(--le-border-light);
}

/* --- Tagline --- */
.le-hero-tagline {
    font-family: var(--le-mono);
    font-size: clamp(22px, 2.4vw, 26px);
    color: var(--le-text-muted);
    max-width: 520px;
    line-height: 1.85;
    margin: 0;
    animation: le-fadeUp 0.7s ease-out 0.25s both;
}

/* --- Auth area --- */
.le-hero-auth {
    margin-top: clamp(12px, 1.5vw, 20px);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: le-fadeUp 0.7s ease-out 0.35s both;
}

/* ===================================================================
   BUTTONS
   =================================================================== */

.le-btn {
    font-family: var(--le-mono);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 13px 28px;
    border: 2px solid var(--le-text);
    background: transparent;
    color: var(--le-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    align-self: flex-start;
}

.le-btn:hover {
    background: var(--le-text);
    color: var(--le-bg);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.le-btn--accent {
    border-color: var(--le-accent);
    background: var(--le-accent);
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.le-btn--accent:hover {
    background: transparent;
    color: var(--le-accent);
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.le-btn--ghost {
    border-color: var(--le-border-light);
    color: var(--le-text-mid);
    font-size: 14px;
}

.le-btn--ghost:hover {
    border-color: var(--le-text);
    color: var(--le-text);
    background: transparent;
    transform: translateY(-1px);
}

/* ===================================================================
   WELCOME BACK (authenticated state)
   =================================================================== */

.le-welcome {
    font-family: var(--le-mono);
    font-size: 24px;
    color: var(--le-text-muted);
    line-height: 1.6;
}

.le-welcome strong {
    color: var(--le-text);
    font-weight: 600;
}

.le-badge {
    display: inline-block;
    font-family: var(--le-mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--le-border-light);
    color: var(--le-text-mid);
    margin-left: 8px;
    vertical-align: middle;
}

/* ===================================================================
   FEATURES GRID
   =================================================================== */

.le-features {
    padding: 0 var(--le-page-mx);
    padding-bottom: clamp(20px, 3vw, 48px);
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
}

/* ===================================================================
   FEATURE ITEM — base
   =================================================================== */

.le-feature {
    padding: clamp(16px, 1.8vw, 26px) clamp(14px, 1.5vw, 24px);
    border-top: 2px dotted var(--le-border);
    position: relative;
    transition: background-color 0.4s ease;
    cursor: default;

    /* staggered entrance animation */
    animation: le-fadeUp 0.5s ease-out both;
}

.le-feature:nth-child(1) { animation-delay: 0.15s; }
.le-feature:nth-child(2) { animation-delay: 0.22s; }
.le-feature:nth-child(3) { animation-delay: 0.29s; }
.le-feature:nth-child(4) { animation-delay: 0.34s; }
.le-feature:nth-child(5) { animation-delay: 0.39s; }
.le-feature:nth-child(6) { animation-delay: 0.44s; }

.le-feature:hover {
    background-color: var(--le-accent-dim);
}

/* --- Span classes --- */
.le-span-7  { grid-column: span 7; }
.le-span-5  { grid-column: span 5; }
.le-span-6  { grid-column: span 6; }
.le-span-4  { grid-column: span 4; }
.le-span-12 { grid-column: 1 / -1; }

/* --- Vertical separator on left-column items --- */
.le-border-r {
    border-right: 2px dotted var(--le-border);
}

/* ===================================================================
   FEATURE — Number
   =================================================================== */

.le-feature-num {
    font-family: var(--le-serif);
    font-size: clamp(40px, 4vw, 60px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--le-border-light);
    display: block;
    margin-bottom: clamp(6px, 0.8vw, 12px);
    transition: color 0.35s ease;
}

.le-feature:hover .le-feature-num {
    color: var(--le-accent);
}

/* ===================================================================
   FEATURE — Content
   =================================================================== */

.le-feature-title {
    font-family: var(--le-serif);
    font-size: clamp(30px, 2.8vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--le-text);
    margin: 0 0 clamp(4px, 0.5vw, 8px);
}

.le-feature-desc {
    font-family: var(--le-mono);
    font-size: clamp(22px, 2.2vw, 26px);
    color: var(--le-text-muted);
    line-height: 1.85;
    margin: 0 0 clamp(8px, 1vw, 14px);
    max-width: 380px;
}

/* ===================================================================
   FEATURE — Link
   =================================================================== */

.le-feature-link {
    font-family: var(--le-mono);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--le-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.le-feature-link span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.le-feature-link:hover {
    color: var(--le-accent);
    border-bottom-color: var(--le-accent);
    text-decoration: none;
}

.le-feature-link:hover span {
    transform: translateX(4px);
}

/* Disabled link for coming soon */
.le-feature-link--disabled {
    color: var(--le-border-light);
    cursor: default;
    pointer-events: none;
}

/* ===================================================================
   FEATURE — Clickable (whole card navigates)
   =================================================================== */

.le-feature--clickable {
    cursor: pointer;
}

.le-feature--clickable:hover .le-feature-link {
    color: var(--le-accent);
}

.le-feature--clickable:hover .le-feature-link span {
    transform: translateX(6px);
}

/* ===================================================================
   FEATURE — Muted (Coming Soon)
   =================================================================== */

.le-feature--muted {
    opacity: 0.4;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}

.le-feature--muted:hover {
    opacity: 0.6;
    background-color: transparent;
}

.le-feature--muted .le-feature-num {
    transition: none;
}

.le-feature--muted:hover .le-feature-num {
    color: var(--le-border-light);
}

/* ===================================================================
   FEATURE — Wide (hero feature, used for Device Catalog)
   Uses inner flex layout: number | content | action
   =================================================================== */

.le-feature--wide {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.5vw, 24px);
}

.le-feature--wide .le-feature-num {
    font-size: clamp(52px, 5.6vw, 76px);
    margin-bottom: 0;
    flex-shrink: 0;
}

.le-feature--wide .le-feature-body {
    flex: 1;
}

.le-feature--wide .le-feature-action {
    flex-shrink: 0;
    align-self: center;
}

/* ===================================================================
   SIGNAL DECORATION — Vertical antenna with plane-view radiation
   A thin mast with a tip dot and ground plane, plus horizontal
   arc waves emanating outward like a radiation pattern diagram.
   =================================================================== */

.le-signal {
    position: fixed;
    bottom: 24px;
    right: 28px;
    width: 80px;
    height: 90px;
    pointer-events: none;
    z-index: 2;
}

/* Antenna mast — thin vertical line */
.le-signal-mast {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    height: 68px;
    background: var(--le-accent);
    transform: translateX(-50%);
    opacity: 0.6;
}

/* Tip dot at top of antenna */
.le-signal-mast::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--le-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: le-pulse 2.5s ease-in-out infinite;
}

/* Ground plane — short horizontal bar at base */
.le-signal-mast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 18px;
    height: 1.5px;
    background: var(--le-accent);
    transform: translateX(-50%);
    opacity: 0.4;
}

/* Radiation waves — horizontal arcs (left + right borders only,
   with border-radius to curve them into parenthesis shapes) */
.le-signal-wave {
    position: absolute;
    top: 25%;
    left: 50%;
    width: 48px;
    height: 28px;
    border-left: 1.5px solid var(--le-accent);
    border-right: 1.5px solid var(--le-accent);
    border-top: none;
    border-bottom: none;
    border-radius: 50%;
    opacity: 0;
}

.le-signal-wave:nth-child(2) {
    animation: le-radiate 3.2s ease-out 0s infinite;
}

.le-signal-wave:nth-child(3) {
    animation: le-radiate 3.2s ease-out 0.7s infinite;
}

.le-signal-wave:nth-child(4) {
    animation: le-radiate 3.2s ease-out 1.4s infinite;
}

/* ===================================================================
   FOOTER
   =================================================================== */

.le-footer {
    padding: clamp(24px, 3vw, 40px) var(--le-page-mx);
    border-top: 2px dotted var(--le-border-light);
    margin: 0 var(--le-page-mx);
    font-family: var(--le-mono);
    font-size: 20px;
    color: var(--le-border-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.le-footer a {
    color: var(--le-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.le-footer a:hover {
    color: var(--le-accent);
}

/* ===================================================================
   CATEGORY TAGS (on feature items)
   =================================================================== */

.le-tag {
    display: inline-block;
    font-family: var(--le-mono);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--le-text-muted);
    border: 1px solid var(--le-border-light);
    padding: 3px 8px;
    margin-bottom: 12px;
}

/* ===================================================================
   BOOTSTRAP OVERRIDES (within .lora-editorial)
   These restyle standard Bootstrap components to match the editorial
   theme on all LoRa sub-pages (devices, part swap, builder, etc.).
   =================================================================== */

/* --- Typography --- */
.lora-editorial h1,
.lora-editorial h2,
.lora-editorial h3 {
    font-family: var(--le-serif);
    letter-spacing: -0.02em;
    color: var(--le-text);
}

.lora-editorial h4,
.lora-editorial h5,
.lora-editorial h6 {
    font-family: var(--le-mono);
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--le-text);
}

.lora-editorial .text-muted {
    color: var(--le-text-muted) !important;
}

.lora-editorial .text-primary {
    color: var(--le-accent) !important;
}

.lora-editorial .text-success {
    color: #2d6a4f !important;
}

.lora-editorial .text-danger {
    color: #c1121f !important;
}

.lora-editorial .text-info {
    color: var(--le-blue) !important;
}

.lora-editorial a {
    color: var(--le-accent);
    transition: color 0.2s ease;
}

.lora-editorial a:hover {
    color: var(--le-text);
}

/* Prevent the global `a` color rule from clobbering button text */
.lora-editorial .le-btn,
.lora-editorial .le-btn:link,
.lora-editorial .le-btn:visited {
    color: var(--le-text) !important;
}

.lora-editorial .le-btn:hover {
    color: var(--le-bg) !important;
}

.lora-editorial .le-btn--accent,
.lora-editorial .le-btn--accent:link,
.lora-editorial .le-btn--accent:visited {
    color: #fff !important;
}

.lora-editorial .le-btn--accent:hover {
    color: var(--le-accent) !important;
}

.lora-editorial .le-btn--ghost,
.lora-editorial .le-btn--ghost:link,
.lora-editorial .le-btn--ghost:visited {
    color: var(--le-text-mid) !important;
}

.lora-editorial .le-btn--ghost:hover {
    color: var(--le-text) !important;
}

.lora-editorial hr {
    border-top: 1.5px dotted var(--le-border-light);
    opacity: 1;
}

.lora-editorial .display-6,
.lora-editorial .display-5 {
    font-family: var(--le-serif);
    color: var(--le-accent);
    letter-spacing: -0.02em;
}

/* --- Container --- */
.lora-editorial .container {
    max-width: 1100px;
}

/* ===================================================================
   SUB-NAVIGATION BAR
   Horizontal section tabs shared across all LoRa sub-pages.
   Positioned above .le-page-header / page content within .container.
   =================================================================== */

.le-subnav {
    border-bottom: 2px dotted var(--le-border-light);
    margin-bottom: clamp(20px, 3vw, 36px);
    padding-bottom: 0;
}

.le-subnav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--le-page-mx);
}

.le-subnav-link {
    font-family: var(--le-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--le-text-muted);
    text-decoration: none;
    padding: 10px 16px 10px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;      /* overlap the nav border-bottom */
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.le-subnav-link:hover {
    color: var(--le-text);
    text-decoration: none;
}

.le-subnav-link--active {
    color: var(--le-accent);
    border-bottom-color: var(--le-accent);
}

.le-subnav-link--active:hover {
    color: var(--le-accent);
}

/* When subnav is inside a .container, remove the inner padding/max-width
   since the container already constrains the layout */
.container .le-subnav-inner {
    padding: 0;
    max-width: none;
}

@media (max-width: 600px) {
    .le-subnav-link {
        padding: 8px 10px;
        font-size: 9px;
    }
}

/* --- Page header pattern (used on sub-pages) --- */
.lora-editorial .le-page-header {
    padding-bottom: clamp(16px, 2vw, 28px);
    margin-bottom: clamp(20px, 3vw, 36px);
    border-bottom: 2px dotted var(--le-border);
}

.lora-editorial .le-page-header h2 {
    font-family: var(--le-serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

/* --- Cards --- */
.lora-editorial .card {
    background: transparent;
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text);
    transition: border-color 0.3s ease;
}

.lora-editorial .card-header {
    background: var(--le-bg-warm);
    border-bottom: 1.5px solid var(--le-border-light);
    font-family: var(--le-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--le-text-mid);
    padding: 12px 16px;
}

.lora-editorial .card-body {
    padding: 20px;
}

.lora-editorial .card-title {
    font-family: var(--le-serif);
    color: var(--le-text);
}

.lora-editorial .card-text {
    font-family: var(--le-mono);
    font-size: 12px;
}

/* --- Forms --- */
.lora-editorial .form-control,
.lora-editorial .form-select {
    background: #fff;
    color: var(--le-text);
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    font-family: var(--le-mono);
    font-size: 12px;
    padding: 10px 14px;
}

.lora-editorial .form-control::placeholder {
    color: var(--le-text-muted);
}

.lora-editorial .form-control:focus,
.lora-editorial .form-select:focus {
    background: #fff;
    color: var(--le-text);
    border-color: var(--le-accent);
    box-shadow: none;
}

.lora-editorial .form-control:disabled {
    background: var(--le-bg-warm);
    color: var(--le-text-muted);
    opacity: 0.7;
}

.lora-editorial .form-label {
    font-family: var(--le-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--le-text-mid);
    margin-bottom: 6px;
}

.lora-editorial .form-check-label {
    font-family: var(--le-mono);
    font-size: 12px;
    color: var(--le-text-mid);
}

.lora-editorial .form-check-input:checked {
    background-color: var(--le-accent);
    border-color: var(--le-accent);
}

.lora-editorial .input-group-text {
    background: var(--le-bg-warm);
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text-muted);
    font-size: 12px;
}

/* --- Tables --- */
.lora-editorial .table {
    color: var(--le-text);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--le-accent-dim);
    border-color: var(--le-border-light);
}

.lora-editorial .table th {
    font-family: var(--le-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--le-text-muted);
    border-color: var(--le-border);
    padding: 12px 16px;
}

.lora-editorial .table td {
    font-family: var(--le-mono);
    font-size: 12px;
    border-color: var(--le-border-light);
    padding: 12px 16px;
}

.lora-editorial .table tfoot td {
    border-color: var(--le-border);
    font-size: 13px;
}

/* --- Badges --- */
.lora-editorial .badge {
    font-family: var(--le-mono);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 0;
    padding: 4px 8px;
}

.lora-editorial .badge.bg-primary {
    background: transparent !important;
    color: var(--le-accent);
    border: 1px solid var(--le-accent);
}

.lora-editorial .badge.bg-secondary {
    background: var(--le-bg-warm) !important;
    color: var(--le-text-mid);
    border: 1px solid var(--le-border-light);
}

.lora-editorial .badge.bg-info {
    background: transparent !important;
    color: var(--le-blue);
    border: 1px solid var(--le-blue);
}

.lora-editorial .badge.bg-success {
    background: transparent !important;
    color: #2d6a4f;
    border: 1px solid #2d6a4f;
}

.lora-editorial .badge.bg-warning {
    background: transparent !important;
    color: #b45309;
    border: 1px solid #b45309;
}

.lora-editorial .badge.bg-danger {
    background: transparent !important;
    color: #c1121f;
    border: 1px solid #c1121f;
}

/* --- Bootstrap Buttons --- */
.lora-editorial .btn {
    font-family: var(--le-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
}

.lora-editorial .btn-primary {
    background: var(--le-accent);
    border-color: var(--le-accent);
    color: #fff;
    padding: 10px 22px;
}

.lora-editorial .btn-primary:hover,
.lora-editorial .btn-primary:focus {
    background: #e04400;
    border-color: #e04400;
    box-shadow: none;
}

.lora-editorial .btn-primary:disabled {
    background: var(--le-border-light);
    border-color: var(--le-border-light);
    color: var(--le-text-muted);
}

.lora-editorial .btn-outline-primary {
    color: var(--le-accent);
    border-color: var(--le-accent);
    padding: 10px 22px;
}

.lora-editorial .btn-outline-primary:hover {
    background: var(--le-accent);
    border-color: var(--le-accent);
    color: #fff;
}

.lora-editorial .btn-outline-light {
    color: var(--le-text-mid);
    border-color: var(--le-border-light);
    padding: 8px 18px;
}

.lora-editorial .btn-outline-light:hover {
    background: var(--le-text);
    border-color: var(--le-text);
    color: var(--le-bg);
}

.lora-editorial .btn-outline-secondary {
    color: var(--le-text-muted);
    border-color: var(--le-border-light);
}

.lora-editorial .btn-outline-secondary:hover {
    background: var(--le-bg-warm);
    border-color: var(--le-border);
    color: var(--le-text);
}

.lora-editorial .btn-outline-danger {
    color: #c1121f;
    border-color: #c1121f;
}

.lora-editorial .btn-outline-danger:hover {
    background: #c1121f;
    border-color: #c1121f;
    color: #fff;
}

.lora-editorial .btn-success {
    background: #2d6a4f;
    border-color: #2d6a4f;
    color: #fff;
}

.lora-editorial .btn-success:hover {
    background: #1b4332;
    border-color: #1b4332;
}

.lora-editorial .btn-info {
    background: var(--le-blue);
    border-color: var(--le-blue);
    color: #fff;
}

.lora-editorial .btn-sm {
    padding: 7px 14px;
    font-size: 9px;
}

/* Button groups (category filters) */
.lora-editorial .btn-group .btn {
    border-radius: 0;
}

/* --- Alerts --- */
.lora-editorial .alert {
    border-radius: 0;
    font-family: var(--le-mono);
    font-size: 12px;
    border-width: 1.5px;
}

.lora-editorial .alert-danger {
    background: rgba(193, 18, 31, 0.05);
    border-color: #c1121f;
    color: #c1121f;
}

.lora-editorial .alert-info {
    background: rgba(20, 0, 255, 0.04);
    border-color: var(--le-blue);
    color: var(--le-text);
}

.lora-editorial .alert-success {
    background: rgba(45, 106, 79, 0.05);
    border-color: #2d6a4f;
    color: #2d6a4f;
}

.lora-editorial .alert-link {
    color: var(--le-accent);
}

.lora-editorial .btn-close {
    filter: none;
    opacity: 0.5;
}

/* --- Spinners --- */
.lora-editorial .spinner-border {
    color: var(--le-accent);
}

.lora-editorial .spinner-border.text-primary {
    color: var(--le-accent) !important;
}

/* --- List groups --- */
.lora-editorial .list-group-item {
    background: transparent;
    color: var(--le-text);
    border-color: var(--le-border-light);
    font-family: var(--le-mono);
    font-size: 12px;
}

/* ===================================================================
   CUSTOM LORA COMPONENT OVERRIDES
   =================================================================== */

/* Device cards */
.lora-editorial .lora-device-card {
    background: transparent;
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lora-editorial .lora-device-card:hover {
    border-color: var(--le-accent);
    background-color: var(--le-accent-dim);
    transform: none;
}

/* Listing cards */
.lora-editorial .lora-listing-card {
    background: transparent;
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lora-editorial .lora-listing-card:hover {
    border-color: var(--le-accent);
    background-color: var(--le-accent-dim);
}

/* Q&A question cards */
.lora-editorial .qa-question-card {
    background: transparent;
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lora-editorial .qa-question-card:hover {
    border-color: var(--le-accent);
    background-color: var(--le-accent-dim);
}

/* Q&A vote buttons */
.lora-editorial .qa-vote-btn {
    background: none;
    border: 1px solid var(--le-border-light);
    color: var(--le-text-muted);
    border-radius: 0;
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lora-editorial .qa-vote-btn:hover {
    border-color: var(--le-accent);
    color: var(--le-accent);
}

/* Neighborhood cards */
.lora-editorial .neighborhood-card {
    background: transparent;
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    color: var(--le-text);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.lora-editorial .neighborhood-card:hover {
    border-color: var(--le-accent);
    background-color: var(--le-accent-dim);
}

/* Builder bag */
.lora-editorial .builder-bag {
    background: var(--le-bg-warm);
    border: 1.5px solid var(--le-border-light);
    border-radius: 0;
    padding: 20px;
    color: var(--le-text);
}

.lora-editorial .builder-bag hr {
    border-color: var(--le-border-light);
    opacity: 1;
}

/* Builder step cards (build type selection) */
.lora-editorial .builder-step {
    border-left: 3px solid var(--le-border-light);
}

.lora-editorial .builder-step.active {
    border-left-color: var(--le-accent);
    background: var(--le-accent-dim);
}

/* --- Card images (device cards, listing cards) --- */
.lora-editorial .le-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 1.5px solid var(--le-border-light);
}

.lora-editorial .le-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.08);        /* subtle desaturation for editorial tone */
    transition: filter 0.3s ease;
}

.lora-editorial .lora-device-card:hover .le-card-image img,
.lora-editorial .lora-listing-card:hover .le-card-image img {
    filter: grayscale(0);           /* full color on hover */
}

/* --- Detail page images (device detail, listing detail) --- */
.lora-editorial .le-detail-image {
    width: 100%;
    border: 1.5px solid var(--le-border-light);
    overflow: hidden;
}

.lora-editorial .le-detail-image img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;            /* contain on detail — show full product */
    display: block;
    background: var(--le-bg-warm);  /* warm background behind contained images */
}

/* --- Login / Register page overrides --- */
.lora-editorial .login-page {
    background: var(--le-bg);
    min-height: 80vh;
}

.lora-editorial .login-card {
    background: transparent;
    border: 2px dotted var(--le-border);
    border-radius: 0;
    padding: clamp(28px, 4vw, 48px);
    box-shadow: none;
}

.lora-editorial .login-logo {
    color: var(--le-accent);
    font-size: 2.5rem;
}

.lora-editorial .login-title {
    font-family: var(--le-serif);
    color: var(--le-text);
    letter-spacing: -0.02em;
}

.lora-editorial .login-btn {
    border-radius: 0;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1024px) {
    .le-span-7,
    .le-span-5 {
        grid-column: span 6;
    }

    .le-feature--wide {
        flex-direction: column;
    }

    .le-feature--wide .le-feature-action {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    .le-span-7,
    .le-span-5,
    .le-span-6,
    .le-span-4 {
        grid-column: 1 / -1;
    }

    .le-border-r {
        border-right: none;
    }

    .le-hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .le-feature--wide {
        flex-direction: column;
        gap: 10px;
    }

    .le-signal {
        display: none;
    }
}

@media (max-width: 480px) {
    .le-hero {
        padding-top: 24px;
    }

    .le-hero-auth {
        flex-direction: column;
        align-items: flex-start;
    }

    .le-btn {
        width: 100%;
        text-align: center;
    }

    /* Stack hero columns on mobile */
    .le-hero-right {
        padding-top: 0;
    }
}

/* --- Auth Hint (shown next to disabled buttons for unauthenticated users) --- */
.le-auth-hint {
    font-family: var(--le-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--le-text-muted);
    display: inline-block;
    margin-left: 8px;
}

.le-auth-hint a {
    color: var(--le-accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--le-accent);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.le-auth-hint a:hover {
    color: var(--le-text);
    border-color: var(--le-text);
}

/* Pending approval banner */
.le-pending-banner {
    font-family: var(--le-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    background: var(--le-accent-dim);
    border: 1px dashed var(--le-accent);
    color: var(--le-text-mid);
    padding: 10px 16px;
    margin-bottom: 16px;
}

/* Admin page styles */
.le-admin-card {
    border: 1px solid var(--le-border-light);
    background: var(--le-bg-warm);
    padding: 16px;
    margin-bottom: 12px;
}

.le-admin-card .le-admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
