/* ============================================================
   JettaPrint Tools — Chrome padrão (header + footer)
   Injetado por _assets/jetta-chrome.js em todas as ferramentas.
   CSS puro, escopado por ID para não colidir com o CSS da página.
   ============================================================ */

#jt-header,
#jt-footer {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#jt-header *,
#jt-footer * {
    box-sizing: border-box;
}

/* ---------- Header (claro) ---------- */
#jt-header {
    display: block;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    margin: 0;
    padding: 0;
}
#jt-header .jt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
}
#jt-header .jt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
#jt-header .jt-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
#jt-header .jt-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
#jt-header .jt-logo {
    height: 44px;
    width: auto;
    display: block;
}
#jt-header .jt-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
}
#jt-header .jt-tagline {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    text-align: right;
    flex-shrink: 1;
}
#jt-header .jt-breadcrumb {
    font-size: 12px;
    color: #6b7280;
}
#jt-header .jt-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#jt-header .jt-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}
#jt-header .jt-breadcrumb a:hover {
    color: #dc2626;
}
#jt-header .jt-breadcrumb [aria-current] {
    color: #374151;
    font-weight: 500;
}

/* ---------- Header (escuro) ---------- */
#jt-header.jt-dark {
    background: #161616;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: none;
}
#jt-header.jt-dark .jt-title {
    color: #f0f0f0;
}
#jt-header.jt-dark .jt-tagline {
    color: #9ca3af;
}
#jt-header.jt-dark .jt-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}
#jt-header.jt-dark .jt-breadcrumb a {
    color: #6b7280;
}
#jt-header.jt-dark .jt-breadcrumb a:hover {
    color: #f87171;
}
#jt-header.jt-dark .jt-breadcrumb [aria-current] {
    color: #d1d5db;
}

/* ---------- Footer (sempre escuro) ---------- */
#jt-footer {
    display: block;
    background: #1f2937;
    color: #ffffff;
    margin-top: 48px;
    margin-bottom: 0;
    padding: 0;
    flex-shrink: 0;
}
#jt-footer .jt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 16px;
}
#jt-footer .jt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}
#jt-footer h3 {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px;
}
#jt-footer p {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
    line-height: 1.5;
}
#jt-footer ul {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#jt-footer a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
}
#jt-footer a:hover {
    color: #f87171;
}
#jt-footer .jt-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
}
#jt-footer .jt-copy {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
}
#jt-footer .jt-copy a {
    color: #ef4444;
    font-size: 14px;
}
#jt-footer .jt-copy a:hover {
    color: #f87171;
}
#jt-footer .jt-tag {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

/* ---------- Footer compacto (apps de ecrã inteiro) ---------- */
#jt-footer.jt-compact {
    margin-top: 0;
}
#jt-footer.jt-compact .jt-container {
    padding: 10px 16px;
}
#jt-footer.jt-compact .jt-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
#jt-footer.jt-compact .jt-bar a {
    font-size: 12px;
    color: #d1d5db;
}
#jt-footer.jt-compact .jt-bar a:hover {
    color: #f87171;
}
#jt-footer.jt-compact .jt-bar .jt-dot {
    color: #4b5563;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    #jt-header .jt-tagline {
        display: none;
    }
    #jt-header .jt-title {
        font-size: 18px;
    }
    #jt-header .jt-logo {
        height: 36px;
    }
    #jt-footer .jt-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
