/* EdgeFlyte public technical resources hub */
@import url('support-ticket-form.css');

.technical-page {
    font-family: 'Titillium Web', sans-serif;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.technical-hero {
    background: linear-gradient(135deg, var(--egyptian-blue), var(--pigment-green));
    color: white;
    padding: 1.75rem 1.5rem 3rem;
    text-align: center;
}

.technical-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.technical-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding: 0;
    line-height: 1.1;
}

.technical-hero p {
    font-size: 1.125rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

.technical-subnav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 1400px;
    margin: -2rem auto 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.technical-subnav-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: var(--onyx);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.technical-subnav-card:hover {
    transform: translateY(-2px);
    border-color: var(--pigment-green);
    box-shadow: 0 8px 24px rgba(12, 164, 39, 0.12);
}

.technical-subnav-card.is-active {
    border-color: var(--pigment-green);
    box-shadow: 0 4px 16px rgba(12, 164, 39, 0.15);
}

.technical-subnav-card.is-active strong {
    color: var(--pigment-green-dark);
}

.technical-subnav-card i {
    font-size: 1.25rem;
    color: var(--egyptian-blue);
}

.technical-subnav-card strong {
    font-size: 1rem;
    font-weight: 700;
}

.technical-subnav-card span {
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 1280px) {
    .technical-subnav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .technical-subnav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.technical-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.technical-sidebar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 1rem;
}

.technical-sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 1.25rem;
}

.technical-filter-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.technical-filter-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.technical-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.technical-filter-section select,
.technical-filter-section input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
}

.technical-search-row {
    display: flex;
    gap: 0.5rem;
}

.technical-search-row input {
    flex: 1;
}

.technical-search-btn {
    background: var(--egyptian-blue);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 0.875rem;
    cursor: pointer;
}

.technical-clear-filters {
    display: block;
    text-align: center;
    color: var(--egyptian-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.75rem;
}

.technical-category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.technical-category-list li {
    margin-bottom: 0.375rem;
}

.technical-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--onyx);
    font-size: 0.875rem;
    transition: background 0.15s;
}

.technical-category-link:hover,
.technical-category-link.is-active {
    background: rgba(12, 164, 39, 0.08);
    color: var(--pigment-green-dark);
}

.technical-category-count {
    background: #f1f5f9;
    color: var(--gray);
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.technical-main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.technical-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 0.25rem;
}

.technical-section-desc {
    color: var(--gray);
    margin: 0;
    font-size: 0.9375rem;
}

.technical-results-count {
    font-size: 0.875rem;
    color: var(--gray);
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.technical-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    height: 100%;
}

.technical-card:hover {
    border-color: var(--pigment-green);
    box-shadow: 0 8px 24px rgba(12, 164, 39, 0.1);
    transform: translateY(-2px);
}

.technical-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.technical-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.technical-badge-type {
    background: rgba(30, 58, 138, 0.1);
    color: var(--egyptian-blue);
}

.technical-badge-category {
    background: rgba(12, 164, 39, 0.1);
    color: var(--pigment-green-dark);
}

.technical-badge-difficulty {
    background: #f1f5f9;
    color: var(--gray);
}

.technical-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--onyx);
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.technical-card-desc {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0 0 1rem;
    flex: 1;
}

.technical-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.technical-card-meta i {
    color: var(--egyptian-blue);
    margin-right: 0.25rem;
}

.technical-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pigment-green);
}

.technical-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: white;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    color: var(--gray);
}

.technical-empty i {
    font-size: 2rem;
    color: var(--egyptian-blue);
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

/* Detail page */
.technical-detail-header {
    background: linear-gradient(135deg, var(--egyptian-blue), var(--pigment-green));
    color: white;
    padding: 2.5rem 1.5rem;
}

.technical-detail-header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.technical-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.technical-detail-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.technical-detail-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.technical-detail-subtitle {
    opacity: 0.9;
    font-size: 1.0625rem;
    margin: 0;
    max-width: 720px;
    line-height: 1.5;
}

.technical-detail-shell {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.technical-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2rem;
    align-items: start;
    min-width: 0;
}

.technical-article {
    grid-column: 1;
    grid-row: 1;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    min-width: 0;
    overflow: hidden;
}

.technical-detail-sidebar {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.technical-toc {
    margin-top: 2rem;
}

@media (min-width: 1024px) {
    .technical-detail-shell {
        display: grid;
        grid-template-columns: minmax(1rem, 1fr) 200px minmax(0, 1120px) minmax(1rem, 1fr);
        column-gap: 1.5rem;
        align-items: start;
        padding: 2rem 0 4rem;
    }

    .technical-detail-main {
        grid-column: 3;
        grid-row: 1;
    }

    .technical-toc {
        grid-column: 2;
        grid-row: 1;
        position: sticky;
        top: 1.5rem;
        align-self: start;
        width: 200px;
        max-height: calc(100vh - 3rem);
        overflow-y: auto;
        margin-top: 0;
    }
}

@media (min-width: 1280px) {
    .technical-detail-shell {
        grid-template-columns: minmax(1.5rem, 1fr) 220px minmax(0, 1180px) minmax(1.5rem, 1fr);
        column-gap: 2rem;
    }

    .technical-toc {
        width: 220px;
    }
}

@media (min-width: 1440px) {
    .technical-detail-shell {
        grid-template-columns: minmax(2rem, 1fr) 220px minmax(0, 1240px) minmax(2rem, 1fr);
    }
}

.technical-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin: 0 0 0.75rem;
}

.technical-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #e5e7eb;
}

.technical-toc-list a {
    display: block;
    padding: 0.375rem 0 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--gray);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.technical-toc-list a:hover,
.technical-toc-list a.is-active {
    color: var(--pigment-green);
    border-left-color: var(--pigment-green);
}

.technical-toc-list .toc-h3 {
    padding-left: 1.25rem;
    font-size: 0.75rem;
}

.technical-article .content-body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-wrap: anywhere;
}

.technical-article .content-body > * {
    max-width: 100%;
}

.technical-article h2,
.technical-article h3,
.technical-article h4 {
    color: var(--onyx);
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 1.5rem;
}

.technical-article h2:first-child,
.technical-article h3:first-child {
    margin-top: 0;
}

.technical-article p,
.technical-article li {
    line-height: 1.7;
    color: #374151;
}

.technical-article pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.875rem;
}

.technical-article code {
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.875em;
}

.technical-article pre code {
    background: none;
    padding: 0;
}

.technical-article blockquote {
    border-left: 4px solid var(--pigment-green);
    margin: 1rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    color: var(--gray);
    background: rgba(12, 164, 39, 0.04);
    border-radius: 0 8px 8px 0;
}

.technical-article table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.technical-article table tbody,
.technical-article table thead,
.technical-article table tr {
    display: table;
    width: 100%;
    table-layout: auto;
}

.technical-article th,
.technical-article td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.75rem;
    text-align: left;
}

.technical-article th {
    background: #f8fafc;
    font-weight: 600;
}

.technical-article img {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
    box-sizing: border-box;
    object-fit: contain;
}

.technical-article p:has(> img),
.technical-article div:has(> img),
.technical-article span:has(> img) {
    max-width: 100%;
    overflow: hidden;
}

.technical-article pre.ql-syntax,
.technical-article pre[data-language] {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem 1.125rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre;
}

.technical-article pre code {
    display: block;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    white-space: inherit;
}

.technical-article pre code.hljs {
    background: transparent;
    padding: 0;
    color: inherit;
}

.technical-article .ql-code-block-container select,
.technical-article select {
    display: none !important;
}

.technical-sidebar-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.technical-sidebar-panel h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
    margin: 0 0 0.75rem;
}

.technical-related-catalog {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.technical-related-catalog:hover {
    border-color: #0ca427;
    box-shadow: 0 4px 12px rgba(12, 164, 39, 0.12);
}

.technical-related-catalog-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f8fafc;
}

.technical-related-catalog-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ecfdf5;
    color: #0ca427;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.technical-related-catalog-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.technical-related-catalog-name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--dark);
    line-height: 1.3;
}

.technical-related-catalog-desc {
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.technical-related-catalog-id {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0ca427;
    letter-spacing: 0.02em;
}

.technical-stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.technical-stat-row:last-child {
    border-bottom: none;
}

.technical-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.technical-action-btn-primary {
    background: var(--pigment-green);
    color: white;
}

.technical-action-btn-primary:hover {
    background: var(--pigment-green-light);
}

.technical-action-btn-secondary {
    background: #f1f5f9;
    color: var(--onyx);
}

.technical-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.technical-related-list li {
    margin-bottom: 0.5rem;
}

.technical-related-list a {
    font-size: 0.875rem;
    color: var(--egyptian-blue);
    text-decoration: none;
    line-height: 1.4;
}

.technical-related-list a:hover {
    color: var(--pigment-green);
}

.technical-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.technical-tag {
    background: #f1f5f9;
    color: var(--gray);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.technical-draft-banner {
    background: #fef3c7;
    color: #92400e;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Troubleshooting mixed cards */
.technical-mixed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.technical-mixed-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
}

.technical-mixed-card-type {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--egyptian-blue);
    margin-bottom: 0.5rem;
}

.technical-mixed-card h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    color: var(--onyx);
}

.technical-mixed-card p {
    font-size: 0.875rem;
    color: var(--gray);
    margin: 0 0 1rem;
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .technical-detail-main {
        grid-template-columns: 1fr;
    }

    .technical-article,
    .technical-detail-sidebar {
        grid-column: 1;
    }

    .technical-toc {
        position: static;
        max-height: none;
        overflow: visible;
        width: auto;
    }
}

@media (max-width: 768px) {
    .technical-layout {
        grid-template-columns: 1fr;
    }

    .technical-sidebar {
        position: static;
    }

    .technical-subnav {
        margin-top: 1rem;
        grid-template-columns: 1fr;
    }
}

/* Support ticket forms on technical pages */
.technical-support-cta {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 1.5rem;
}

.technical-support-cta-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(44, 57, 149, 0.08);
    border: 1px solid rgba(44, 57, 149, 0.08);
}

.technical-support-cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--egyptian-blue);
    margin: 0 0 0.75rem;
    font-size: 1.75rem;
}

.technical-support-cta p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.technical-support-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.technical-support-cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--onyx);
    font-size: 0.95rem;
}

.technical-support-cta-list i {
    color: var(--pigment-green);
    margin-top: 0.2rem;
}

.technical-support-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.technical-support-cta-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    border: 1px solid #e2e8f0;
}

.technical-support-cta-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--egyptian-blue);
}

.technical-support-cta-card ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.technical-support-cta-card a {
    color: var(--pigment-green);
}

.technical-support-cta-email {
    margin: 0;
    font-size: 0.875rem;
}

.technical-support-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.technical-support-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.technical-support-page-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    color: var(--egyptian-blue);
    margin: 0 0 0.5rem;
}

.technical-support-page-header p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
}

.technical-support-form-panel {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(44, 57, 149, 0.08);
    border: 1px solid rgba(44, 57, 149, 0.08);
}

.technical-support-context {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #1e3a8a;
}

@media (max-width: 768px) {
    .technical-support-cta-inner {
        grid-template-columns: 1fr;
    }
}
