/* =========================================
   EDM Layout – SAFE GeneratePress Override
   ========================================= */

:root {
    --ui-card-bg: #ffffff;
    --ui-card-radius: 12px;
    --ui-card-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    --ui-border-soft: #e3e8ef;
}

/* Control ONLY EDM main container */
body.edm-page main.edm-global,
body.edm-page main.edm-brand,
body.edm-page main.edm-device,
body.edm-page main.edm-spoke {
    margin: 0;
    padding: 0;
}

/* Control ONLY EDM main container + remove flex impact */
body.edm-page main.edm-global {
    display: block !important;
    width: 100%;
    margin: 0;
    padding: 0;
    flex: none !important;
}

/* =========================================================
   STANDARD EDM STYLING
   ========================================================= */

/* ---------- PAGE BACKGROUND ---------- */

.edm-spoke {
    background: #f4f6f9;
    padding: 20px 0 60px; /* Adjusted top padding */
}


/* ---------- CONTENT WIDTH (Unified System) ---------- */

body.edm-page .enterprise-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}


/* ---------- BREADCRUMBS (Unified + Aligned) ---------- */

.edm-breadcrumbs {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 8px;
    box-sizing: border-box;
    width: 100%;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 500;
}

.edm-breadcrumbs a {
    color: #1428A0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.edm-breadcrumbs a:hover {
    color: #0F1F7A;
    text-decoration: none;
}

.edm-breadcrumbs span {
    color: #111827;
}


/* ---------- HEADER ---------- */

.edm-header {
    margin-bottom: 32px;
    margin-top: 10px;
}

.edm-header h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #111827;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.edm-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    font-weight: 400;
}

/* ---------- CARD SYSTEM ---------- */

.edm-card {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Section titles */
.edm-card h2 {
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: #111827;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

/* ---------- INTRO ---------- */

.edm-intro {
    background: #eef2ff;     /* Lighter blue */
    border-left: 5px solid #1428A0;
    border: 1px solid #d6e6ff; /* Subtle border match */
    border-left-width: 5px;    /* Keep accent */
}

.edm-intro p {
    color: #1f2937;
    font-size: 1.05rem;
}

.edm-intro p:last-child {
    margin-bottom: 0;
}

/* ---------- META ---------- */

.edm-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Auto grid */
    gap: 16px;
}

.edm-meta li {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: #1f2937;
    background: #f4f6f9;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.edm-meta li strong {
    color: #1f2937;
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.7;
}

/* ---------- FAQ & Details ---------- */

.edm-card details {
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.edm-card details[open] {
    background: #f4f6f9;
    border-color: #cbd5e1;
}

.edm-card summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #1f2937;
    position: relative;
    list-style: none;
}

.edm-card summary::-webkit-details-marker {
    display: none;
}

.edm-card summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    color: #9ca3af;
    line-height: 1;
}

.edm-card details[open] summary::after {
    content: "−";
}

.edm-card details p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.6;
    color: #1f2937;
}

.edm-card p {
    margin-bottom: 0;
}

/* =========================================================
   Security & Checksum Verification Card (Dual Column Terminal)
   ========================================================= */
.edm-security-verify {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box;
}

.edm-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.edm-sec-title-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 340px;
}

.edm-sec-icon {
    background: #fef3c7;
    color: #b45309;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edm-sec-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
}

.edm-sec-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.edm-sec-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.edm-sec-badge {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.edm-hash-container {
    background: #0f172a;
    border: 1px solid #1e293b;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
}

.edm-hash-info {
    flex: 1;
    min-width: 260px;
    overflow: hidden;
}

.edm-hash-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #38bdf8;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 4px;
}

.edm-hash-code {
    font-size: 13.5px;
    word-break: break-all;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    line-height: 1.4;
}

.edm-btn-copy-hash {
    background: #0b5ed7;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(11, 94, 215, 0.35);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edm-btn-copy-hash:hover {
    background: #0948a8;
}

.edm-verify-guide {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    margin-top: 14px !important;
    box-sizing: border-box;
}

.edm-verify-summary {
    font-weight: 700 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    cursor: pointer;
    outline: none;
    user-select: none;
    padding: 0 !important;
}

.edm-verify-summary::after {
    display: none !important;
}

/* 3-Step Micro Guide (Short, Informative, Helpful) */
.edm-verify-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 16px 0;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

@media (min-width: 768px) {
    .edm-verify-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

.edm-verify-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.edm-step-num {
    width: 22px;
    height: 22px;
    background: #0b5ed7;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.edm-step-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edm-step-content strong {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

.edm-step-content p {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.45 !important;
    padding: 0 !important;
}

.edm-steps-list kbd,
.edm-step-content kbd,
.edm-faq-answer kbd,
.edm-card kbd {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    line-height: 1.3;
    color: #1e293b;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #94a3b8;
    border-radius: 5px;
    box-shadow: inset 0 -1px 0 #cbd5e1, 0 1px 2px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    vertical-align: middle;
}

.edm-steps-list code,
.edm-step-content code,
.edm-faq-answer code,
.edm-card code {
    background: #f1f5f9;
    color: #0b5ed7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    border: 1px solid #e2e8f0;
    word-break: break-word;
}

.edm-terminal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 4px;
}

@media (min-width: 768px) {
    .edm-terminal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.edm-terminal-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.edm-terminal-bar {
    background: #0f172a;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #334155;
}

.edm-terminal-dots {
    display: flex;
    gap: 5px;
}

.edm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.edm-dot.red { background: #ef4444; }
.edm-dot.yellow { background: #eab308; }
.edm-dot.green { background: #22c55e; }

.edm-terminal-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.edm-terminal-body {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.edm-terminal-body code {
    font-size: 12.5px !important;
    color: #38bdf8 !important;
    background: transparent !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    word-break: break-all;
    flex: 1 1 auto;
    min-width: 0;
}

.edm-cmd-copy {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 4px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.edm-cmd-copy:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Drag & Drop Helpful Tip */
.edm-verify-tip {
    margin-top: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.45;
}

.edm-verify-tip strong {
    color: #1e3a8a;
}

/* =========================================================
   Frequently Asked Questions (2-Column Responsive Grid)
   ========================================================= */
.edm-faqs {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 26px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box;
}

.edm-faqs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.edm-faqs-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.015em;
}

.edm-faqs-tag {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0b5ed7;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* Full-Width FAQ Stack */
.edm-faqs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.edm-faq-item {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    transition: all 0.25s ease;
    margin-bottom: 0 !important;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.edm-faq-item:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.edm-faq-item[open] {
    background: #f8fafc !important;
    border-color: #93c5fd !important;
    border-left: 4px solid #0b5ed7 !important;
    box-shadow: 0 4px 14px rgba(11, 94, 215, 0.06);
}

/* Question Typography (Prominent 16.5px & High Contrast) */
.edm-faq-question {
    padding: 18px 52px 18px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.45 !important;
    cursor: pointer;
    position: relative;
    list-style: none;
    user-select: none;
}

@media (min-width: 768px) {
    .edm-faq-question {
        font-size: 16.5px !important;
    }
}

.edm-faq-question::-webkit-details-marker {
    display: none;
}

.edm-faq-question::after {
    content: "+" !important;
    position: absolute;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px;
    height: 28px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    line-height: 1 !important;
    transition: all 0.2s ease;
}

.edm-faq-item[open] .edm-faq-question::after {
    content: "−" !important;
    background: #0b5ed7;
    color: #ffffff !important;
}

/* Answer Typography (Refined 15px & Comfortable Line-Height) */
.edm-faq-answer {
    padding: 14px 22px 20px 20px;
    border-top: 1px solid #edf2f7;
}

.edm-faq-answer p {
    padding: 0 !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #334155 !important;
    max-width: 960px;
}

/* =========================================================
   Older Release Notice Banner (High-Contrast Alert Card)
   ========================================================= */
.edm-legacy-notice-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1px solid #fde68a !important;
    border-left: 5px solid #d97706 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08) !important;
    box-sizing: border-box !important;
}

.edm-notice-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.edm-notice-icon-box {
    width: 40px;
    height: 40px;
    background: #fde68a;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.12);
}

.edm-notice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.edm-notice-heading {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #92400e;
}

.edm-notice-desc {
    font-size: 14.5px !important;
    color: #78350f !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.edm-notice-desc strong {
    color: #451a03 !important;
    font-weight: 800 !important;
}

/* Polished High-Contrast Dark Action Button */
.edm-notice-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 11px 22px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25) !important;
    transition: all 0.2s ease !important;
    border: 1px solid #1e293b !important;
}

.edm-notice-btn:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.35) !important;
}

.edm-notice-btn .edm-btn-arrow {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.edm-notice-btn:hover .edm-btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .edm-legacy-notice-banner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 14px 16px !important;
    }
    
    .edm-notice-content {
        align-items: flex-start;
    }
    
    .edm-notice-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Footer note */
.edm-faqs-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.edm-faqs-footer-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.edm-faqs-footer .edm-note {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
}

/* Fix link-back block inside edm-card */
.edm-link-back {
    text-align: center !important;
}

/* Remove extra spacing from paragraph */
.edm-link-back p {
    margin: 0;
}

/* Samsung dark blue link */
.edm-link-back a {
    color: #1428A0;
    font-weight: 600;
    text-decoration: none;
}

/* Hover state */
.edm-link-back a:hover {
    color: #0F1F7A;
    text-decoration: underline;
}

/* Prevent visited color override */
.edm-link-back a:visited {
    color: #1428A0;
}


/* Adsense Ad block (CLS Stabilized) */
.edm-ad-card {
    background: #f8fafc;
    border-radius: var(--ui-card-radius, 12px);
    box-shadow: var(--ui-card-shadow, 0 2px 6px rgba(0, 0, 0, 0.04));
    border: 1px solid var(--ui-border-soft, #e2e8f0);
    margin: 24px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .edm-ad-card {
        min-height: 250px;
        margin: 18px 0;
    }
}

.edm-ad-card ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    min-height: inherit;
}

.edm-ad-card div[id^="aswift"]{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
}

.edm-ad-card iframe{
    width:100% !important;
    max-width:100% !important;
}

/* ---------- DOWNLOAD CTA ---------- */

.edm-download {
    text-align: center;
    background: linear-gradient(to bottom, #ffffff, #f4f6f9);
    border: 1px solid #e3e8ef;
}

.edm-download-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    background: #1428A0;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px -1px rgba(20, 40, 160, 0.25);
}

.edm-download-button:hover {
    background: #0F1F7A;
    transform: translateY(-1px);
}

.edm-download-button:active {
    transform: translateY(0);
}

.edm-download-buttons-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 6px !important;
    width: 100% !important;
}

.edm-firmware-badges-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 14px !important;
    margin-bottom: 2px !important;
}

.edm-firmware-badges-row span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    height: auto !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
}

.edm-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #1f2937;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.edm-brand-action {
    padding-top: 20px;
}

.edm-brand-action a {
    color:white;
}

.edm-btn-global {
    display: inline-block;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #1428A0;
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
    box-shadow: 0 3px 6px rgba(20, 40, 160, 0.25);
}

.edm-btn-global:hover {
    background: #0F1F7A;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.edm-btn-global:active {
    transform: translateY(0);
}

.edm-btn-global:visited {
    color: #ffffff !important;
}

/* =========================================================
   EDM Samsung – Brand Hub Extensions
   ========================================================= */

/* Header Layout */
.edm-brand-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.edm-header-content {
    flex: 1 1 400px;
}

.edm-filter-box {
    flex: 1 1 340px;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edm-filter-box input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.edm-filter-box input:focus {
    border-color: #1428A0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(20,40,160,0.15);
}

.edm-filter-box button {
    height: 44px;
    padding: 0 20px;
    background: #1428A0;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.edm-filter-box button:hover {
    background: #0F1F7A;
}

.edm-filter-box button:active {
    transform: scale(0.98);
}


/* Grid Layout */
.edm-brand-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.edm-brand-card {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box; /* Critical for grid padding */
    width: 100%;
}

.edm-brand-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.edm-brand-card-link {
    text-decoration: none;
    color: inherit;
}

.edm-brand-card a {
    color: #1428A0;
}

.edm-brand-card a:hover {
    color: #0F1F7A;
}

.edm-brand-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: #111827;
}
.edm-arrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1428A0;
}

/* ===== DOWNLOAD PAGE ONLY (FULL WIDTH BRAND CARD) ===== */

.edm-global-downloads .edm-brand-grid {
    display: block !important;
}

.edm-global-downloads .edm-brand-card {
    width: 100%;
}
/* ================================
   EDM Device Hub – Header Styles
   ================================ */

.edm-device-title {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: #111827;
    font-weight: 700;
}

.edm-device-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* ================================
   EDM Device Hub – Recommended Block
   ================================ */

.edm-rec-title {
    border: none;
    margin-bottom: 15px;
    padding-bottom: 0;
    font-size: 1.4rem;
}

.edm-rec-comp {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.edm-rec-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 15px;
}

/* ================================
   EDM Device Hub – OS Group Block
   ================================ */

.edm-os-label {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: 600;
}

/* ================================
   EDM Device Hub – Meta Separator
   ================================ */

.edm-meta-sep {
    border-left: 1px solid #cfd8e3;
    padding-left: 12px;
}

.edm-meta-summary {
    padding-top: 20px;
}

/* =========================================
   COMPONENT TOC – FIXED GRID STYLE
========================================= */

.edm-components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.edm-comp-toc-item {
    display: block;
    background: #f4f6f9;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s ease;
}

.edm-comp-toc-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 4px;
}

.edm-comp-toc-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}

.edm-comp-toc-item:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #1428A0;
}

/* ================================
   EDM Device Hub – Light Meta Separator
   ================================ */

.edm-meta-sep-light {
    border-left: 1px solid #e6ebf2;
    padding-left: 15px;
}

.edm-arch,
.edm-os-req,
.edm-size-sep {
    border-left: 1px solid #cfd8e3;
    padding-left: 12px;
}

.edm-section-icon {
    margin-right: 8px;
}
/* ================================
   EDM Device Hub – FAQ Section
   ================================ */

.edm-faq-question {
    margin-bottom: 6px;
    font-size: 1.1rem;
    color: #111827;
}

.edm-faq-answer {
    margin-bottom: 18px;
    color: #374151;
    line-height: 1.6;
}

.edm-device-overview-content {
    color: #374151;
    line-height: 1.7;
}

/* ================================
   EDM Device Hub – Browse Devices Card
   ================================ */

.edm-browse-devices {
    background: #f4f6f9;
}

.edm-browse-text {
    margin: 0;
    text-align: center;
}

.edm-browse-link {
    color: #1428A0;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.edm-browse-link:hover {
    color: #0F1F7A !important;
}

/* ================================
   EDM Device Hub – Core Layout
   ================================ */

.edm-dashboard {
    width: 100%;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sticky Filter Bar */
.edm-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e6ebf2;
    padding: 12px 24px;
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edm-filter-btn {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    padding: 6px 16px;
    border-radius: 20px;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edm-filter-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.edm-filter-btn.active {
    background: #1428A0;
    color: #ffffff;
    border-color: #1428A0;
    box-shadow: 0 2px 4px rgba(20,40,160,0.25);
}

/* Recommended Grid */
.edm-rec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.edm-rec-tile {
    background: #f8fafc;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.edm-rec-tile:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* =========================================================
   EDM Download Blocks – Global & Desktop Enhancements
   ========================================================= */

/* Restored Card Layout for the outer section */
.edm-section-group {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    box-sizing: border-box;
    max-width: 100%;
    margin-bottom: 24px;
}

/* Added slight bottom margin to description for better spacing before the blocks */
.edm-section-desc {
    color: #4b5563;
    margin: 8px 0 24px; 
    line-height: 1.6;
    font-size: 15px;
}

.edm-comp-block {
    padding: 0;
    margin-bottom: 24px;
    border: none;
    background: transparent;
    box-sizing: border-box;
    max-width: 100%;
}

.edm-os-block {
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e3e8ef;
    background: #f8fafc;
    border-radius: 8px;
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Rows */
.edm-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 10px 0 0 0;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.edm-row-main:hover {
    border-color: #cfd8e3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.edm-row-older {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 8px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

.edm-row-older:last-child {
    margin-bottom: 0;
}

.edm-row-older:hover {
    background: #f4f6f9;
    border-color: #e6ebf2;
}

/* Meta */
.edm-meta-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.edm-version {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
    word-break: break-word;
}

.edm-tag {
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: #e6ebf2;
    color: #4b5563;
    font-weight: 600;
}

.edm-tag.latest {
    background: #e6ecff;
    color: #1428A0;
}

.edm-info {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    min-width: 0;
}

/* Ghost Button */
.edm-btn,
.edm-btn-ghost {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #1428A0;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(20,40,160,0.25);
}

.edm-btn:hover,
.edm-btn-ghost:hover {
    background: #0F1F7A;
    color: #ffffff;
}

/* History Toggle */
.edm-history-btn {
    width: 100%;
    text-align: left;
    background: #f4f6f9;
    border: 1px solid #e6ebf2;
    border-radius: 6px;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.edm-history-btn:hover {
    background: #f3f4f6;
    border-color: #cfd8e3;
    color: #111827;
}

.edm-history-list {
    display: none;
    margin-top: 10px;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

/* =====================================================
   Device Hub – SEO Section Enhancements
===================================================== */

.edm-section-desc {
    color: #4b5563;
    margin: 8px 0 18px;
    line-height: 1.6;
    font-size: 14px;
}

.edm-section-group h2 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edm-comp-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 14px;
}

.edm-spoke{
    min-height:auto;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {

    body.edm-page .enterprise-layout {
        padding-left: 6px;
        padding-right: 6px;
    }

    .edm-breadcrumbs {
        padding-left: 6px;
        padding-right: 6px;
        padding-top: 12px;
        padding-bottom: 6px;
    }

    /* Header stack tightening */
    .edm-brand-header {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 8px;
        align-items: flex-start;
    }

    .edm-header-content {
        margin-bottom: 0;
    }

    .edm-header {
        margin-top: 0;
        margin-bottom: 12px;
    }

    .edm-header h1 {
        font-size: 1.75rem;
    }

    .edm-subtitle {
        margin-bottom: 8px;
    }

    .edm-meta {
        grid-template-columns: 1fr;
    }

    .edm-card {
        padding: 18px 10px;
    }

    .edm-brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Keep the outer card padding tight on mobile */
    .edm-section-group {
        padding: 16px 5px;
    }

    /* =========================
       SEARCH BAR FIX (FINAL)
    ========================== */

    .edm-filter-box {
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .edm-filter-box input {
        flex: 1 1 auto;
        height: 42px;
        padding: 0 14px;
        font-size: 1rem;
        line-height: 42px;
    }

    .edm-filter-box button {
        flex: 0 0 auto;
        height: 42px;
        padding: 0 16px;
        font-size: 0.95rem;
        font-weight: 600;
        background: #1428A0;
        color: #ffffff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    .edm-filter-box button:active {
        transform: scale(0.98);
    }

/* =========================
       DOWNLOAD LIST MOBILE (Anti-Congestion & Overflow Safe)
    ========================== */

    .edm-os-block {
        padding: 12px 8px; 
    }

    .edm-row-main,
    .edm-row-older {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px; 
        gap: 10px;
    }

    .edm-info {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap; 
        margin-top: 4px;
        gap: 6px 10px;
        box-sizing: border-box;
        min-width: 0; 
    }

    .edm-meta-group {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
        min-width: 0;
    }

    .edm-os-label,
    .edm-version,
    .edm-info span {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        display: inline-block; 
    }

    .edm-btn,
    .edm-btn-ghost {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        box-sizing: border-box;
        display: block;
    }

    .edm-sticky-bar {
        padding-left: 6px;
        padding-right: 6px;
        overflow-x: auto;
    }

}

/* =========================================================
   EDM Spoke Download Page Styles (Consolidated)
   ========================================================= */

/* Spoke Header & Main Column */
.edm-spoke-header-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f0f7ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    margin-bottom: 22px;
}

.edm-spoke-main-col {
    width: 100%;
    min-width: 0;
}

/* Device Strip (Mobile-first hardware verification badge - Full Width) */
.edm-spoke-device-strip {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 4px 12px 4px 5px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.edm-spoke-strip-icon {
    width: 26px;
    height: 26px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.08);
}

.edm-spoke-strip-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.edm-spoke-strip-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.edm-spoke-strip-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2.5px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1.35;
    box-sizing: border-box;
}

.edm-spoke-strip-tag-verified {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.edm-spoke-strip-tag-component {
    background: #eef2ff;
    color: #4338ca;
    border-color: #c7d2fe;
}

.edm-spoke-strip-tag-date {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.edm-spoke-strip-code {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 2.5px 7px;
    border-radius: 6px;
    line-height: 1.35;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

.edm-spoke-strip-name {
    display: none !important;
}

/* H1 Title & Subtitle */
.edm-spoke-title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #0f172a;
    letter-spacing: -0.02em;
    width: 100%;
}

.edm-spoke-header-layout .edm-subtitle {
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 14px 0;
}

/* Desktop Showcase Card (Hidden on mobile) */
.edm-spoke-showcase-card {
    display: none;
}

/* Dedicated Hardware Profile Card (Mobile feature) */
.edm-hardware-profile-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 18px;
    margin: 22px 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.edm-hw-card-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
}

.edm-hw-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0b5ed7;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 4px;
}

.edm-hw-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

.edm-hw-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.edm-hw-stage {
    width: 100%;
    max-width: 220px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #ffffff 40%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.edm-hw-stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.14));
}

.edm-hw-details {
    width: 100%;
}

.edm-hw-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.edm-hw-specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    gap: 10px;
}

.edm-hw-spec-label {
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.edm-hw-spec-val {
    color: #1e293b;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.edm-hw-specs-list code.edm-hw-spec-val {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    font-family: inherit;
    font-weight: 700;
}

.edm-hw-spec-status {
    color: #16a34a;
    font-weight: 700;
    font-size: 12px;
}

/* Dual Action Buttons */
.edm-dual-action-bar {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.edm-inline-form {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.edm-btn-action {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.edm-btn-read {
    background-color: #0b5ed7;
    color: #ffffff !important;
}

.edm-btn-read:hover {
    background-color: #0a58ca;
    color: #ffffff !important;
}

.edm-btn-download {
    background-color: #198754;
    color: #ffffff !important;
}

.edm-btn-download:hover {
    background-color: #157347;
    color: #ffffff !important;
}

.edm-btn-icon {
    margin-right: 6px;
    font-size: 16px;
}

/* Manual Topics */
.edm-manual-topics {
    background: #f8fafc;
    border-left: 4px solid #0b5ed7;
}

.edm-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.edm-topic-card {
    background: #ffffff;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.edm-topic-card .edm-topic-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 6px;
}

.edm-topic-card strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.edm-topic-card p {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

/* PDF Viewer Card */
.edm-viewer-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.edm-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    gap: 14px;
    flex-wrap: wrap;
}

.edm-viewer-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.edm-viewer-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edm-viewer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.edm-viewer-btn-fullscreen {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.edm-viewer-btn-fullscreen:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.edm-viewer-btn-download {
    background: #0284c7;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.edm-viewer-btn-download:hover {
    background: #0369a1;
    color: #ffffff !important;
}

.edm-viewer-mobile-tip {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 14px;
    font-size: 12.5px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.edm-pdf-container {
    position: relative;
    width: 100%;
    height: 820px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.edm-pdf-container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: block !important;
    box-sizing: border-box !important;
}





/* Floating Exit Fullscreen Button */
.edm-exit-fs-btn {
    display: none;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease;
}

.edm-exit-fs-btn:hover {
    background: #0f172a;
}

/* Fullscreen Pseudo-classes & Mobile Fullscreen */
body.edm-pdf-fs-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.edm-pdf-container:fullscreen,
.edm-pdf-container:-webkit-full-screen,
.edm-pdf-container:-moz-full-screen,
.edm-pdf-container:-ms-fullscreen,
.edm-pdf-container.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #525659 !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

.edm-pdf-container:fullscreen .edm-exit-fs-btn,
.edm-pdf-container:-webkit-full-screen .edm-exit-fs-btn,
.edm-pdf-container:-moz-full-screen .edm-exit-fs-btn,
.edm-pdf-container:-ms-fullscreen .edm-exit-fs-btn,
.edm-pdf-container.is-fullscreen .edm-exit-fs-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    z-index: 1000 !important;
}

.edm-pdf-container:fullscreen iframe,
.edm-pdf-container:-webkit-full-screen iframe,
.edm-pdf-container:-moz-full-screen iframe,
.edm-pdf-container:-ms-fullscreen iframe,
.edm-pdf-container.is-fullscreen iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
}

/* Markdown Admin Intro Styling */
.edm-admin-intro {
    line-height: 1.65;
    color: #334155;
}

.edm-admin-intro p {
    margin: 0 0 14px 0;
    line-height: 1.65;
    color: #334155;
    font-size: 14.5px;
}

.edm-admin-intro h3, .edm-intro-h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 22px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #f1f5f9;
}

.edm-admin-intro h2, .edm-intro-h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 24px 0 12px 0;
}

.edm-admin-intro ul.edm-feature-list,
.edm-admin-intro ol.edm-steps-list {
    margin: 10px 0 18px 22px;
    padding: 0;
}

.edm-admin-intro ul.edm-feature-list li,
.edm-admin-intro ol.edm-steps-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #334155;
    font-size: 14px;
}

.edm-admin-intro code.edm-code-badge {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

.edm-admin-intro strong {
    color: #0f172a;
    font-weight: 700;
}

/* Mobile Viewport Spoke Enhancements (< 768px) */
@media (max-width: 767px) {
    .edm-spoke-header-layout {
        padding: 22px 14px !important;
        gap: 14px !important;
        border-radius: 14px !important;
        margin-bottom: 22px !important;
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f0f7ff 100%) !important;
    }

    .edm-spoke-device-strip {
        padding: 4px 10px 4px 5px !important;
        margin-bottom: 14px !important;
        gap: 6px !important;
        border-radius: 20px !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .edm-spoke-strip-icon {
        width: 24px !important;
        height: 24px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .edm-spoke-strip-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .edm-spoke-strip-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .edm-spoke-strip-meta {
        display: inline-flex !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        row-gap: 5px !important;
        align-items: center !important;
    }

    .edm-spoke-strip-tag {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        letter-spacing: 0.02em !important;
        line-height: 1.3 !important;
    }

    .edm-spoke-strip-code {
        font-size: 10px !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        line-height: 1.3 !important;
    }

    .edm-spoke-strip-name {
        display: none !important;
    }

    .edm-spoke-title {
        font-size: 19px !important;
        line-height: 1.35 !important;
        margin: 0 0 10px 0 !important;
        letter-spacing: -0.02em !important;
    }

    .edm-spoke-header-layout .edm-subtitle {
        font-size: 12.5px !important;
        line-height: 1.6 !important;
        color: #64748b !important;
        margin: 0 0 16px 0 !important;
    }

    .edm-dual-action-bar {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        margin-top: 14px !important;
        align-items: center !important;
    }

    .edm-btn-action {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        padding: 13px 18px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
        line-height: 1.35 !important;
    }

    /* Full width viewer card on mobile with tight padding */
    .edm-viewer-card {
        padding: 14px 8px !important;
        margin: 18px 0 !important;
        border-radius: 12px !important;
    }

    .edm-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .edm-viewer-header h2 {
        font-size: 16.5px !important;
        width: 100%;
        line-height: 1.35;
    }

    /* Mobile viewer controls: 50/50 Fullscreen & Download side-by-side */
    .edm-viewer-controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .edm-viewer-controls > .edm-viewer-btn,
    .edm-viewer-controls .edm-viewer-btn-fullscreen,
    .edm-viewer-controls .edm-viewer-btn-download {
        width: 100% !important;
        padding: 12px 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Approx full viewport height on mobile */
    .edm-pdf-container:not(.is-fullscreen) {
        height: 85vh !important;
        min-height: 520px !important;
        border-radius: 8px !important;
    }

    .edm-pdf-container iframe {
        height: 100% !important;
        min-height: 100% !important;
    }
}


/* Desktop Breakpoint for Spoke Header */
@media (min-width: 768px) {
    .edm-spoke-header-layout {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 28px 32px;
        gap: 36px;
        border-radius: 18px;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #f0f7ff 100%);
    }

    .edm-spoke-main-col {
        flex: 1;
        min-width: 0;
    }

    .edm-spoke-title {
        font-size: 27px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .edm-spoke-header-layout .edm-subtitle {
        font-size: 13.5px;
        line-height: 1.55;
        color: #475569;
        margin-bottom: 16px;
    }

    .edm-spoke-showcase-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 235px;
        background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 20px 18px;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
        box-sizing: border-box;
    }

    .edm-spoke-showcase-stage {
        height: 205px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .edm-spoke-showcase-stage img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .edm-spoke-showcase-card:hover .edm-spoke-showcase-stage img {
        transform: translateY(-2px) scale(1.02);
    }

    .edm-spoke-showcase-code {
        font-size: 11.5px;
        font-family: Consolas, Monaco, monospace;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: #475569;
        padding: 3px 12px;
        border-radius: 8px;
        font-weight: 700;
        letter-spacing: 0.03em;
    }

    .edm-dual-action-bar {
        display: flex;
        gap: 14px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    /* Desktop Strip inline badge refinement */
    .edm-spoke-device-strip {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        align-items: center;
        gap: 8px;
        padding: 4px 14px 4px 5px;
        margin-bottom: 14px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }

    .edm-spoke-strip-icon {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        box-shadow: none;
    }

    .edm-spoke-strip-icon svg {
        width: 14px;
        height: 14px;
    }

    .edm-spoke-strip-info {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .edm-spoke-strip-meta {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 7px;
    }

    .edm-spoke-strip-name {
        display: none !important;
    }

    /* Hide the dedicated mobile hardware profile card on Desktop (Showcase Card handles Desktop visual) */
    .edm-hardware-profile-card {
        display: none !important;
    }
}

/* ==========================================================================
   Version History Table & Releases Section
   ========================================================================== */
.edm-version-history {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.edm-version-history h2 {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edm-version-history p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Mobile Scroll Hint */
.edm-table-scroll-hint {
    display: none;
    font-size: 12px;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px dashed #bae6fd;
    padding: 7px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

/* Table Wrapper with Smooth Horizontal Scroll */
.edm-version-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.edm-version-table-wrap::-webkit-scrollbar {
    height: 7px;
}

.edm-version-table-wrap::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 0 10px 10px;
}

.edm-version-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.edm-version-table-wrap::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Table Design */
.edm-version-table {
    width: 100%;
    min-width: 620px; /* Guarantees generous horizontal space so text never breaks */
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.edm-version-table thead tr {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.edm-version-table th {
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.edm-version-table th.col-action {
    text-align: right;
}

.edm-version-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.edm-version-table tbody tr:last-child {
    border-bottom: none;
}

.edm-version-table tbody tr:hover {
    background: #f8fafc;
}

.edm-version-table tbody tr.is-current-version {
    background: #f0fdf4;
}

.edm-version-table tbody tr.is-current-version:hover {
    background: #e8faee;
}

.edm-version-table td {
    padding: 13px 16px;
    vertical-align: middle;
    white-space: nowrap; /* Prevents awkward column text breaking */
    color: #334155;
}

.edm-version-table td.col-version {
    font-weight: 700;
    color: #0f172a;
    font-size: 14px;
}

.edm-version-table td.col-size,
.edm-version-table td.col-date {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.edm-version-table td.col-action {
    text-align: right;
}

/* Status Badges */
.edm-v-status-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.edm-badge-latest {
    background: #16a34a;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.edm-badge-legacy {
    background: #64748b;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.edm-badge-now {
    color: #15803d;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* Action Button & Active Page Tag */
.edm-version-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0284c7;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 12.5px;
    padding: 7px 15px;
    border-radius: 7px;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    box-shadow: 0 2px 4px rgba(2, 132, 199, 0.2);
    transition: all 0.2s ease;
}

.edm-version-btn:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(2, 132, 199, 0.28);
    color: #ffffff !important;
}

.edm-version-current-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .edm-version-history {
        padding: 16px 12px !important;
        border-radius: 12px !important;
    }

    .edm-table-scroll-hint {
        display: flex;
    }
}

/* ==========================================================================
   Hardware Repair & Service Center Bridge Block
   ========================================================================== */
.edm-hardware-bridge {
    background: #fff8eb;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.edm-hardware-bridge-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.edm-hardware-bridge-content {
    max-width: 680px;
    flex: 1;
    min-width: 0;
}

.edm-hardware-bridge-tag {
    background: #c2410c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.edm-hardware-bridge-content h2 {
    font-size: 18px;
    font-weight: 800;
    color: #7c2d12;
    margin: 6px 0 6px 0;
    line-height: 1.35;
}

.edm-hardware-bridge-content p {
    font-size: 13.5px;
    color: #9a3412;
    margin: 0;
    line-height: 1.5;
}

.edm-hardware-bridge-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    flex-shrink: 0;
    width: 240px;
}

.edm-btn-hw {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-sizing: border-box;
    text-align: center;
}

.edm-btn-hw-primary {
    background: #ea580c;
    color: #ffffff !important;
    border: 1px solid #ea580c;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.edm-btn-hw-primary:hover {
    background: #c2410c;
    border-color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.3);
    color: #ffffff !important;
}

.edm-btn-hw-secondary {
    background: #ffffff;
    color: #7c2d12 !important;
    border: 1px solid #ea580c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.edm-btn-hw-secondary:hover {
    background: #ffedd5;
    color: #9a3412 !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .edm-hardware-bridge {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }

    .edm-hardware-bridge-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .edm-hardware-bridge-content h2 {
        font-size: 16.5px !important;
    }

    /* Full width buttons on mobile */
    .edm-hardware-bridge-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .edm-btn-hw,
    .edm-btn-hw-primary,
    .edm-btn-hw-secondary {
        width: 100% !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   Authorized Repair Network Service Locator CTA Block
   ========================================================================== */
.sp-service-locator-cta {
    background: #f0f7ff;
    border: 2px solid #002f6c;
    border-radius: 14px;
    padding: 22px 26px;
    margin: 24px 0;
    box-shadow: 0 4px 12px -2px rgba(0, 47, 108, 0.06);
    box-sizing: border-box;
}

.sp-service-locator-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.sp-service-locator-info {
    max-width: 660px;
    flex: 1;
    min-width: 0;
}

.sp-service-tag {
    background: #002f6c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.sp-service-title {
    margin: 6px 0 6px 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.sp-service-desc {
    margin: 0;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
}

.sp-service-locator-action {
    flex-shrink: 0;
}

.sp-main-service-btn {
    background: #002f6c;
    color: #ffffff !important;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 47, 108, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    box-sizing: border-box;
}

.sp-main-service-btn:hover {
    background: #001f47;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 47, 108, 0.3);
    color: #ffffff !important;
}

.sp-geo-service-line {
    margin-top: 14px;
    padding: 10px 14px;
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    font-size: 13px;
    color: #0369a1;
    line-height: 1.5;
}

.sp-geo-service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sp-geo-city-link {
    color: #0284c7 !important;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.sp-geo-city-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.sp-service-cities-bar {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #dbeafe;
    font-size: 13px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.6;
}

.sp-service-cities-label {
    color: #0f172a;
    font-weight: 700;
    margin-right: 2px;
}

.sp-city-link {
    color: #0284c7 !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.15s ease;
    display: inline-block;
    padding: 1px 2px;
}

.sp-city-link:hover {
    color: #0369a1 !important;
    text-decoration: underline !important;
}

.sp-city-sep {
    color: #94a3b8;
    font-size: 10px;
    user-select: none;
}

@media (max-width: 768px) {
    .sp-service-locator-cta {
        padding: 18px 14px !important;
        border-radius: 12px !important;
        margin: 18px 0 !important;
    }

    .sp-service-locator-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .sp-service-title {
        font-size: 16.5px !important;
    }

    /* Full width button on mobile */
    .sp-service-locator-action {
        width: 100% !important;
    }

    .sp-main-service-btn {
        width: 100% !important;
        min-height: 48px !important;
        padding: 13px 16px !important;
        font-size: 14px !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .sp-geo-service-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sp-service-cities-bar {
        font-size: 12.5px;
        gap: 5px;
        line-height: 1.7;
    }
}

/* =========================================================
   SPOKE MOBILE PADDING & SPACING OVERHAUL (INNER BLOCKS OPTIMIZATION)
   Eliminates nested card horizontal squeezing on mobile screens (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {

    /* 1. Page Shell & Universal Card Padding */
    .edm-spoke {
        padding: 12px 0 40px !important;
    }

    body.edm-page .enterprise-layout {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .edm-breadcrumbs {
        padding: 10px 8px 6px !important;
    }

    .edm-card {
        padding: 16px 8px !important;
        margin-bottom: 14px !important;
        border-radius: 12px !important;
    }

    .edm-card h2 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }

    /* 2. Checksum & Security Verification Card (Screenshot 1 Fix) */
    .edm-security-verify {
        padding: 14px 8px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    .edm-sec-header {
        margin-bottom: 10px !important;
        gap: 8px !important;
    }

    .edm-sec-title-group {
        gap: 8px !important;
        flex: 1 1 100% !important;
    }

    .edm-sec-title-group h2,
    .edm-sec-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .edm-sec-desc {
        font-size: 12px !important;
        margin-top: 4px !important;
    }

    .edm-sec-badges {
        gap: 6px !important;
        width: 100% !important;
    }

    .edm-sec-badge {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .edm-hash-container {
        padding: 10px 8px !important;
        gap: 8px !important;
        border-radius: 8px !important;
        margin-bottom: 10px !important;
    }

    .edm-hash-info {
        min-width: 0 !important;
        width: 100% !important;
    }

    .edm-hash-label {
        font-size: 10.5px !important;
        margin-bottom: 3px !important;
    }

    .edm-hash-code {
        font-size: 11px !important;
        word-break: break-all !important;
        line-height: 1.35 !important;
    }

    .edm-btn-copy-hash {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }

    .edm-verify-guide {
        padding: 10px 8px !important;
        margin-top: 10px !important;
        border-radius: 8px !important;
    }

    .edm-verify-summary {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .edm-verify-steps {
        gap: 8px !important;
        margin: 8px 0 10px 0 !important;
        padding-top: 8px !important;
    }

    .edm-verify-step {
        padding: 8px 8px !important;
        gap: 8px !important;
        border-radius: 8px !important;
    }

    .edm-step-num {
        width: 20px !important;
        height: 20px !important;
        font-size: 10.5px !important;
    }

    .edm-step-content strong {
        font-size: 12.5px !important;
    }

    .edm-step-content p {
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }

    .edm-step-content code,
    .edm-step-content kbd {
        font-size: 10.5px !important;
        padding: 1px 4px !important;
    }

    .edm-terminal-grid {
        gap: 8px !important;
        margin-top: 6px !important;
    }

    .edm-terminal-card {
        border-radius: 8px !important;
    }

    .edm-terminal-bar {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .edm-terminal-title {
        font-size: 11px !important;
    }

    .edm-terminal-body {
        padding: 8px 8px !important;
        gap: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    .edm-terminal-body code {
        font-size: 11px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        padding-right: 4px !important;
    }

    .edm-cmd-copy {
        font-size: 10.5px !important;
        padding: 4px 8px !important;
        flex-shrink: 0 !important;
        border-radius: 4px !important;
    }

    .edm-verify-tip {
        padding: 8px 8px !important;
        margin-top: 10px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
        line-height: 1.4 !important;
    }

    /* 3. Frequently Asked Questions Card (Screenshot 2 Fix) */
    .edm-faqs {
        padding: 14px 8px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
    }

    .edm-faqs-header {
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
        gap: 6px !important;
    }

    .edm-faqs-title {
        font-size: 18px !important;
    }

    .edm-faqs-tag {
        font-size: 10.5px !important;
        padding: 2px 8px !important;
    }

    .edm-faqs-grid {
        gap: 8px !important;
    }

    .edm-faq-item {
        border-radius: 8px !important;
        margin-bottom: 0 !important;
    }

    .edm-faq-question {
        padding: 12px 38px 12px 10px !important;
        font-size: 14.5px !important;
        line-height: 1.4 !important;
    }

    .edm-faq-question::after {
        right: 8px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 13px !important;
        line-height: 22px !important;
    }

    .edm-faq-answer {
        padding: 8px 10px 14px 10px !important;
    }

    .edm-faq-answer p {
        font-size: 13.5px !important;
        line-height: 1.6 !important;
    }

    .edm-faqs-footer {
        margin-top: 10px !important;
        gap: 6px !important;
    }

    .edm-faqs-footer .edm-note {
        font-size: 12px !important;
    }

    /* 4. Multi-Server Download Section */
    #edm-download-section,
    .edm-card.edm-download {
        padding: 20px 8px !important;
        margin: 18px 0 !important;
        border-radius: 14px !important;
    }

    #edm-download-section h3 {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    #edm-download-section p {
        font-size: 13px !important;
        margin-bottom: 14px !important;
    }

    .edm-download-buttons-wrapper {
        gap: 8px !important;
    }

    .edm-download-form {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
    }

    .edm-download-form .edm-download-button {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 14px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    /* 5. Editorial Notes & Admin Intro Card */
    .edm-card.edm-intro {
        padding: 14px 8px !important;
        border-radius: 10px !important;
    }

    .edm-admin-intro {
        padding: 0 !important;
    }

    .edm-admin-intro p {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 10px !important;
    }

    .edm-admin-intro ul,
    .edm-admin-intro ol {
        padding-left: 18px !important;
        margin: 8px 0 !important;
    }

    .edm-admin-intro li {
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
    }

    .edm-admin-intro h3 {
        font-size: 15px !important;
        margin: 14px 0 6px !important;
    }

    /* 6. Hardware Profile Card & Technical Details */
    .edm-hardware-profile-card {
        padding: 14px 8px !important;
    }

    .edm-hw-card-header {
        margin-bottom: 10px !important;
    }

    .edm-hw-title {
        font-size: 16px !important;
    }

    .edm-hw-card-inner {
        gap: 10px !important;
    }

    .edm-hw-stage {
        padding: 8px !important;
    }

    .edm-hw-specs-list {
        gap: 6px !important;
    }

    .edm-hw-specs-list li {
        padding: 6px 8px !important;
        font-size: 12.5px !important;
    }

    /* 7. Topics, Methods & Support Grid */
    .edm-topics-grid {
        gap: 8px !important;
    }

    .edm-topic-card {
        padding: 10px 8px !important;
        border-radius: 8px !important;
    }

    .edm-method-box {
        padding: 10px 8px !important;
        border-radius: 8px !important;
    }

    .edm-steps-list {
        padding-left: 18px !important;
        font-size: 13px !important;
    }

    .edm-steps-list li {
        margin-bottom: 6px !important;
    }

    .edm-meta {
        gap: 6px !important;
    }

    .edm-meta li {
        padding: 8px 8px !important;
        font-size: 13px !important;
    }

    .edm-care-support-card {
        padding: 14px 8px !important;
    }

    .edm-care-grid {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .edm-care-grid > div {
        padding: 8px 8px !important;
    }

    /* 8. Version History & Navigation Bridges */
    .edm-version-history {
        padding: 14px 8px !important;
    }

    .edm-version-table th,
    .edm-version-table td {
        padding: 8px 6px !important;
        font-size: 12px !important;
    }

    .edm-hardware-bridge {
        padding: 14px 8px !important;
    }
}

/* ==========================================================================
   Device Hub Header & Specs Grid (Balanced Desktop & Clean Mobile)
   ========================================================================== */
.edm-hero-kicker-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.edm-device-hero-left {
    flex: 1 1 520px;
    min-width: 0;
}

.edm-device-hero-left h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.28;
    margin: 0 0 14px 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.edm-device-hero-left p {
    font-size: 15px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 24px 0;
    max-width: 100%;
}

.edm-device-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 860px) {
    .edm-device-specs-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .edm-device-spec-box {
        padding: 10px 12px;
    }

    .edm-device-spec-box .spec-label {
        margin-bottom: 4px;
    }
}

.edm-device-spec-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
    min-width: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.edm-device-spec-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.edm-device-spec-box .spec-label {
    color: #94a3b8;
    display: block;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edm-device-spec-box .spec-val {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edm-device-hero-right {
    flex: 0 0 250px;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.edm-device-showcase-pedestal {
    width: 100%;
    max-width: 250px;
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.16) 0%, rgba(15, 23, 42, 0.75) 80%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 16px 14px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.edm-device-pedestal-stage {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.edm-device-pedestal-stage img {
    max-height: 175px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.edm-device-pedestal-stage img:hover {
    transform: scale(1.04);
}

.edm-device-pedestal-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* =========================================================
   Device Hub & Brand Hub Content Blocks (Diagnostics & FAQ)
   ========================================================= */

.edm-hub-diagnostics-guide,
.edm-hub-faqs {
    width: 100%;
    box-sizing: border-box;
    transition: padding 0.2s ease;
}

.edm-hub-diagnostics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.edm-hub-diagnostics-grid > div {
    width: 100%;
    box-sizing: border-box;
}

.edm-hub-faqs-list {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edm-hub-faqs-list > details {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Mobile Viewport Optimization (< 768px):
   1. Significantly reduce outer card padding to grant maximum width to inner blocks.
   2. Horizontally center and balance nested blocks with 100% width and zero overflow. */
@media (max-width: 767px) {
    /* Outer block padding reduction for wider inner block clearance */
    .edm-hub-diagnostics-guide,
    .edm-hub-faqs,
    .edm-brand-knowledge-base,
    .edm-device-editorial-overview {
        padding: 16px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Diagnostics Header */
    .edm-hub-diagnostics-header {
        padding-bottom: 12px !important;
        margin-bottom: 14px !important;
    }

    .edm-hub-diagnostics-header h2 {
        font-size: 17.5px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
        letter-spacing: -0.01em !important;
    }

    .edm-hub-diagnostics-header p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* Inner nested diagnostics cards: single column, 100% width, horizontally centered */
    .edm-hub-diagnostics-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        justify-items: center !important;
    }

    .edm-hub-diagnostics-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 14px 12px !important;
        border-radius: 10px !important;
    }

    .edm-hub-diagnostics-grid > div h3 {
        font-size: 14px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
        gap: 6px !important;
    }

    .edm-hub-diagnostics-grid > div p,
    .edm-hub-diagnostics-grid > div ul,
    .edm-hub-diagnostics-grid > div ol {
        font-size: 12.5px !important;
        line-height: 1.55 !important;
    }

    .edm-hub-diagnostics-grid > div ul,
    .edm-hub-diagnostics-grid > div ol {
        padding-left: 18px !important;
    }

    .edm-hub-diagnostics-grid > div li {
        margin-bottom: 6px !important;
    }

    /* FAQ Title */
    .edm-hub-faqs-title,
    .edm-hub-faqs h2 {
        font-size: 17.5px !important;
        line-height: 1.35 !important;
        margin: 0 0 12px 0 !important;
        letter-spacing: -0.01em !important;
    }

    /* FAQ inner list and items: 100% width, horizontally centered */
    .edm-hub-faqs-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        align-items: center !important;
    }

    .edm-hub-faqs-list > details {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }

    .edm-hub-faqs-list > details summary {
        font-size: 13.5px !important;
        line-height: 1.4 !important;
    }

    .edm-hub-faqs-list > details p {
        font-size: 12.5px !important;
        line-height: 1.55 !important;
        margin-top: 8px !important;
    }
}

/* =========================================================
 * COMMUNITY FEEDBACK WIDGET (LIKE & DISLIKE SYSTEM)
 * ========================================================= */
.edm-feedback-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin: 20px 0 24px 0;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
    font-family: inherit;
    transition: all 0.25s ease;
}

.edm-feedback-heading {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em;
}

.edm-feedback-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.edm-vote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    user-select: none;
    outline: none;
    box-sizing: border-box;
}

.edm-vote-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.edm-vote-icon {
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

.edm-vote-label {
    font-size: 14px;
    font-weight: 600;
}

.edm-vote-counter {
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-block;
    transition: all 0.2s ease;
    margin-left: 2px;
}

/* LIKE BUTTON SPECIFICS */
.edm-vote-like {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}
.edm-vote-like .edm-vote-counter {
    background: #dcfce7;
    color: #166534;
}
.edm-vote-like:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
    box-shadow: 0 3px 10px rgba(34, 197, 94, 0.15);
}
.edm-vote-like.is-active {
    background: #bbf7d0 !important;
    border-color: #22c55e !important;
    color: #14532d !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25) !important;
}
.edm-vote-like.is-active .edm-vote-counter {
    background: #166534 !important;
    color: #ffffff !important;
}

/* DISLIKE BUTTON SPECIFICS */
.edm-vote-dislike {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}
.edm-vote-dislike .edm-vote-counter {
    background: #fee2e2;
    color: #991b1b;
}
.edm-vote-dislike:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.15);
}
.edm-vote-dislike.is-active {
    background: #fecdd3 !important;
    border-color: #ef4444 !important;
    color: #7f1d1d !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
}
.edm-vote-dislike.is-active .edm-vote-counter {
    background: #991b1b !important;
    color: #ffffff !important;
}

/* FEEDBACK TOAST / MESSAGE */
.edm-feedback-toast {
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    margin-top: 12px;
    display: inline-block;
    animation: edmFadeIn 0.2s ease-out;
}
.edm-feedback-toast.is-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.edm-feedback-toast.is-notice {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
.edm-feedback-toast.is-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

@keyframes edmFadeIn {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
    .edm-feedback-card {
        padding: 16px 14px;
    }
    .edm-feedback-button-group {
        flex-direction: column;
        width: 100%;
        gap: 9px;
    }
    .edm-vote-btn {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
    }
}



