/* DCUBE Ai Patents - Document page style */
body.dcube-patent-standalone {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #e5e7eb;
    color: #1f2937;
    position: relative;
}

.dcube-patent-standalone .main-content {
    margin-left: 0;
}

.dcube-patent-standalone .patent-page {
    background: transparent;
}

.dcube-patent-standalone .dcube-main-wrap {
    flex: 1;
    padding: 2rem 3rem 2.5rem;
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    position: relative;
    z-index: 0;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 60vh;
}

/* Page Header */
.dcube-patent-standalone .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.dcube-logo-link {
    flex-shrink: 0;
    margin-left: 1rem;
    transition: opacity 0.2s;
}

.dcube-logo-link:hover {
    opacity: 0.9;
}

.dcube-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.dcube-patent-standalone .dashboard-header h2 {
    color: #111827;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.dcube-patent-standalone .dashboard-header .header-bold {
    font-weight: 700;
}

.dcube-patent-standalone .dashboard-header .header-normal {
    font-weight: 400;
    color: #6b7280;
}

.dcube-patent-standalone .dashboard-header .subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Content - no enclosing card */
.dcube-patent-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero row - image + title/meta */
.dcube-hero {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 2rem;
    align-items: start;
}

.dcube-hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.dcube-hero-image .patent-image {
    max-height: 340px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
}

.patent-view-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.patent-view-doc-btn:hover {
    background: #1d4ed8;
}

.dcube-hero-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dcube-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem 0;
    line-height: 1.35;
    letter-spacing: -0.02em;
    padding-left: 1rem;
    border-left: 4px solid #2563eb;
}

.dcube-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e40af;
    border: 1px solid #93c5fd;
    margin-bottom: 1rem;
}

.dcube-meta-sep {
    color: #cbd5e1;
    font-weight: 700;
}

.status-badge.success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.18rem 0.35rem;
    min-width: auto;
    width: fit-content;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #059669;
    color: white;
    border: none;
}

.dcube-holder {
    margin: 0;
    padding: 0.75rem 1rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 400;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.dcube-inventor {
    margin: 0.5rem 0 0.5rem;
    padding: 0.75rem 1rem;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 400;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

.dcube-inventor + .status-badge {
    margin-top: 0.25rem;
}

/* Sections - no boxes, just headings */
.dcube-section {
    padding-top: 0;
}

.dcube-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e40af;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dcube-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1em;
    background: #2563eb;
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.dcube-abstract-text p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 0.75rem 0;
    text-align: justify;
}

.dcube-abstract-text p:last-child {
    margin-bottom: 0;
}

/* Features - each item in its own box */
.dcube-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.25rem;
}

.dcube-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.88rem;
    line-height: 1.5;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.dcube-features-list li::before {
    content: '';
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    background: #2563eb;
    border-radius: 50%;
    margin-top: 0.5em;
}

/* Footer - at end of page content */
.dcube-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.dcube-footer p {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.dcube-footer strong {
    color: #111827;
}

.dcube-footer .dcube-footer-links {
    margin-top: 0.5rem;
}

.dcube-footer-links a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.dcube-footer-links a:hover {
    color: #1d4ed8;
}

.dcube-footer-sep {
    margin: 0 0.75rem;
    color: #9ca3af;
}

.patent-doc-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.patent-doc-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.patent-doc-modal-content {
    width: 90%;
    max-width: 1100px;
    height: 90vh;
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.patent-doc-modal-header {
    padding: 14px 20px;
    background: #f5f7fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.patent-doc-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.patent-doc-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}


/* Responsive */
@media (max-width: 900px) {
    .dcube-hero {
        grid-template-columns: 1fr;
    }

    .dcube-features-list {
        grid-template-columns: 1fr;
    }

    .dcube-patent-standalone .dcube-main-wrap {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .dcube-features-list {
        grid-template-columns: 1fr;
    }
}
