/**
 * Estilos das calculadoras de /ferramentas/.
 * Reusa tokens base de tools.css (--tools-primary etc.) e adiciona
 * classes específicas .calc-*.
 */

/* ===== Ícones Lucide (renderizados via toolIcon() PHP / F.icon() JS) ===== */
.tools-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* ===== Modal de 1ª visita — disclaimer legal ===== */
.disclaimer-modal[hidden] { display: none; }
.disclaimer-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.75);
    z-index: 1000;
}
.disclaimer-modal-content {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 32px 28px 28px;
    border-radius: 14px;
    max-width: 480px;
    width: calc(100% - 32px);
    z-index: 1001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}
.disclaimer-modal-content .disclaimer-icon {
    text-align: center;
    color: var(--lp-primary, #00349A);
    margin-bottom: 12px;
}
.disclaimer-modal-content .disclaimer-icon .tools-icon {
    width: 40px; height: 40px;
}
.disclaimer-modal-content h2 {
    margin: 0 0 16px;
    font-size: 22px;
    text-align: center;
    color: #0F172A;
}
.disclaimer-modal-content p {
    line-height: 1.55;
    margin: 10px 0;
    color: #334155;
    font-size: 14.5px;
}
.disclaimer-modal-content .lp-btn {
    width: 100%;
    margin-top: 20px;
    justify-content: center;
}

/* ===== Lead capture modal — variante com formulário ===== */
.lead-capture-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.lead-capture-field { display: flex; flex-direction: column; gap: 4px; }
.lead-capture-field span {
    font-size: 13px; font-weight: 600; color: #334155;
}
.lead-capture-field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #0F172A;
    box-sizing: border-box;
}
.lead-capture-field input:focus {
    outline: none;
    border-color: var(--lp-primary, #00349A);
    box-shadow: 0 0 0 3px rgba(0, 52, 154, 0.15);
}
.lead-capture-error {
    margin: 4px 0 0;
    color: #B91C1C;
    font-size: 13px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    padding: 8px 12px;
    border-radius: 6px;
}
.lead-capture-disclaimer {
    font-size: 12px;
    color: #64748B;
    text-align: center;
    margin: 8px 0 0;
}

/* Em botões, dá respiro entre ícone e label. */
.lp-btn .tools-icon,
.calc-btn-label .tools-icon { margin-right: 6px; }

/* ===== Hero / header da página =====*/
.calc-page { background: #F8FAFC; }

.calc-hero {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    padding: 28px 0 32px;
}
.calc-breadcrumb {
    font-size: 13px;
    color: #64748B;
    margin-bottom: 12px;
}
.calc-breadcrumb a { color: #64748B; text-decoration: none; }
.calc-breadcrumb a:hover { color: #1E293B; text-decoration: underline; }
.calc-breadcrumb span { margin: 0 4px; color: #CBD5E1; }

.calc-page h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.calc-lead {
    font-size: 17px;
    color: #475569;
    line-height: 1.55;
    max-width: 760px;
    margin: 0 0 16px;
}
.calc-badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #1E293B;
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid #E2E8F0;
}

/* ===== Tabs dentro do shell (DVR e futuras ferramentas com modos) ===== */
.calc-tabs {
    display: flex;
    gap: 2px;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 4px;
    margin: 0 0 20px;
    max-width: 680px;
}
.calc-tab {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.calc-tab:hover { color: #1E293B; }
.calc-tab.is-active {
    background: #fff;
    color: #1E293B;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.calc-tab:focus-visible {
    outline: 2px solid var(--tools-primary, #00349A);
    outline-offset: 2px;
}

.calc-cross-link-inline {
    margin-top: 4px;
    background: transparent;
    border: none;
    color: var(--tools-primary, #00349A);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    padding: 6px 0;
    text-align: left;
}
.calc-cross-link-inline:hover { text-decoration: underline; }

/* ===== Integração com o shell (.demo-content) =====
 * Seções que originalmente eram fullwidth em LP (com fundo próprio e
 * padding vertical grande) passam a ser "cards" empilhados dentro do
 * container do mockup ERP.
 */
.demo-content .calc-layout {
    padding: 0;
    margin: 0 0 28px;
}
.demo-content .hub-category {
    padding: 20px 0 32px;
    border-bottom: 1px solid #E2E8F0;
}
.demo-content .hub-category:last-of-type {
    border-bottom: none;
}

/* Variantes "inline section" (usadas dentro do shell) — removem background
 * fullwidth, viram card/section simples dentro do demo-content. */
.calc-inline-section,
.hub-inline-section {
    margin: 28px 0;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
}
.calc-inline-section h2,
.hub-inline-section h2 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1E293B;
    letter-spacing: -0.01em;
}
.calc-inline-section p,
.hub-inline-section p {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14.5px;
    line-height: 1.6;
}
.calc-inline-section .calc-cross-link-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 14px 16px;
}
.hub-inline-section.hub-pitch { text-align: center; }
.hub-inline-section.hub-pitch .hub-pitch-inner { max-width: 560px; margin: 0 auto; }

/* Attribution discreto no rodapé do conteúdo (substitui .lp-footer dentro
 * do shell — o chrome do ERP já tem trial-card na sidebar). */
.demo-content-attribution {
    margin: 24px 0 0;
    padding: 18px 0 4px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.55;
}
.demo-content-attribution p { margin: 0; }
.demo-content-attribution strong { color: #64748B; font-weight: 600; }

/* Novo item de sidebar "available" (ferramentas disponíveis no modo demo)
 * — cor normal, sem cadeado, hover sutil. */
.demo-sidebar-item--available { opacity: 1; }
.demo-sidebar-item--available:hover { background: rgba(0,52,154,0.08); }

/* ===== Hub — hero ===== */
.hub-hero {
    padding: 48px 0 32px;
    background: #F8FAFC;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}
.hub-hero-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hub-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin: 14px 0 14px;
    letter-spacing: -0.01em;
}
.hub-hero .calc-lead { max-width: 640px; margin: 0 auto; color: #475569; font-size: 16px; }
.hub-hero-badge {
    display: inline-block;
    background: #EFF6FF;
    color: #00349A;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
}

/* ===== Hub — categorias ===== */
.hub-category {
    padding: 40px 0;
    border-bottom: 1px solid #E2E8F0;
}
.hub-category:last-of-type { border-bottom: none; }
.hub-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.hub-category-icon { font-size: 22px; line-height: 1; color: var(--lp-primary, #00349A); }
.hub-category-icon .tools-icon { width: 24px; height: 24px; vertical-align: -0.15em; }
.hub-category-title {
    font-size: 22px;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
}

/* ===== Hub — cards ===== */
.hub-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) { .hub-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .hub-cards { grid-template-columns: repeat(3, 1fr); } }

.hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hub-card-active { cursor: pointer; }
.hub-card-active:hover {
    transform: translateY(-3px);
    border-color: var(--tools-primary, #00349A);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.hub-card-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.hub-card-disabled:hover { transform: none; box-shadow: none; border-color: #E2E8F0; }
.hub-card-icon { color: #1E293B; }
.hub-card h3 { font-size: 16px; margin: 0; color: #1E293B; font-weight: 700; }
.hub-card p { color: #475569; font-size: 14px; line-height: 1.55; margin: 0; }
.hub-card-footer { margin-top: auto; padding-top: 6px; }

.hub-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hub-badge-disponivel { background: #DCFCE7; color: #166534; }
.hub-badge-mais-usada { background: #DBEAFE; color: #1D4ED8; }
.hub-badge-nova       { background: #DBEAFE; color: #1D4ED8; }
.hub-badge-em-breve   { background: #F1F5F9; color: #64748B; }

/* ===== Hub — "Por que grátis?" ===== */
.hub-why {
    background: #F1F5F9;
    padding: 56px 0;
}
.hub-why-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hub-why h2 {
    font-size: clamp(22px, 3vw, 28px);
    color: #1E293B;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}
.hub-why p {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.7;
    margin: 0 0 16px;
}
.hub-why-link {
    display: inline-block;
    margin-top: 6px;
    color: var(--tools-primary, #00349A);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}
.hub-why-link:hover { text-decoration: underline; }

/* ===== Hub — pitch soft do ERP ===== */
.hub-pitch {
    background: #fff;
    padding: 52px 0;
    border-top: 1px solid #E2E8F0;
}
.hub-pitch-inner {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.hub-pitch-eyebrow {
    font-size: 11px;
    color: var(--tools-primary, #00349A);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.hub-pitch h2 {
    font-size: clamp(20px, 3vw, 26px);
    margin: 0 0 22px;
    color: #1E293B;
    letter-spacing: -0.01em;
}
.hub-pitch-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 10px;
    text-align: left;
}
.hub-pitch-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #334155;
    line-height: 1.55;
}
.hub-pitch-bullets svg {
    flex: 0 0 auto;
    color: #059669;
    margin-top: 2px;
}

/* ===== Layout form + result ===== */
.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
}
@media (min-width: 1024px) {
    .calc-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
}

.calc-form {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px 22px 24px;
}
.calc-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1E293B;
    margin: 22px 0 10px;
    letter-spacing: 0.01em;
}
.calc-section-title:first-child { margin-top: 0; }

.calc-field-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
}
@media (min-width: 640px) {
    .calc-field-grid { grid-template-columns: 1fr 1fr; }
}
.tools-field--wide { grid-column: 1 / -1; }

.calc-form .tools-field > label {
    display: block;
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    margin-bottom: 6px;
}
.calc-form .tools-field input[type=number],
.calc-form .tools-field input[type=text],
.calc-form .tools-field select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    font-size: 14.5px;
    font-family: inherit;
    line-height: 1.4;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #0F172A;
    transition: border-color .1s, box-shadow .1s;
    box-sizing: border-box;
}
/* Select precisa de appearance:none + seta customizada pra não
 * herdar estilo nativo (que adiciona padding inferior inconsistente
 * e altura variável entre browsers). */
.calc-form .tools-field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.calc-form .tools-field input:focus,
.calc-form .tools-field select:focus {
    outline: none;
    border-color: var(--tools-primary, #00349A);
    box-shadow: 0 0 0 3px rgba(0, 52, 154, 0.15);
}

.calc-segment {
    display: flex;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.calc-segment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.calc-segment-option input { position: absolute; opacity: 0; pointer-events: none; }
.calc-segment-option:hover { color: #1E293B; }
.calc-segment-option:has(input:checked) {
    background: #fff;
    color: #1E293B;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.calc-advanced {
    margin: 16px 0 8px;
    padding: 12px 14px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}
.calc-advanced > summary {
    cursor: pointer;
    font-size: 13.5px;
    color: #475569;
    font-weight: 600;
    user-select: none;
    list-style: none;
}
.calc-advanced > summary::before {
    content: "▸ ";
    color: #94A3B8;
}
.calc-advanced[open] > summary::before { content: "▾ "; }
.calc-advanced[open] { padding-bottom: 14px; }
.calc-advanced .calc-field-grid { margin-top: 12px; }

.calc-field-hint {
    display: block;
    font-size: 12px;
    color: #64748B;
    margin-top: 4px;
    line-height: 1.4;
    font-style: italic;
}
.calc-field-hint:empty { display: none; }

.calc-inline-link {
    margin-left: 8px;
    font-size: 12.5px;
    color: var(--tools-primary, #00349A);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
}

.calc-submit-row { margin-top: 22px; }
.calc-submit-btn { width: 100%; position: relative; }
.calc-submit-btn[disabled] { opacity: 0.65; cursor: wait; }
.calc-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: calc-spin 0.8s linear infinite;
    vertical-align: -2px;
}
/* Fix: `display: inline-block` acima sobrescreve o default do atributo
 * [hidden] (UA stylesheet é `display: none` mas autor vence). Sem este
 * override, o spinner aparecia SEMPRE, mesmo sem o JS ativar setBusy. */
.calc-btn-spinner[hidden] { display: none; }
@keyframes calc-spin { to { transform: rotate(360deg); } }

.calc-form-error {
    margin-top: 10px;
    padding: 10px 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    border-radius: 8px;
    font-size: 13.5px;
}

/* ===== Card de resultado ===== */
.calc-result {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 20px;
}
@media (min-width: 1024px) {
    .calc-result { position: sticky; top: 20px; }
}
.calc-result-empty { text-align: center; padding: 18px 4px; }
.calc-result-empty-icon { color: #CBD5E1; margin-bottom: 10px; }
.calc-result-empty h3 { color: #1E293B; font-size: 16px; margin: 0 0 6px; }
.calc-result-empty p { color: #64748B; font-size: 14px; line-height: 1.55; margin: 0; }

.calc-result-box {
    border: 2px solid #1E293B;
    background: #F8FAFC;
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
    margin-bottom: 16px;
}
.calc-result-box.is-ok {
    border-color: #059669;
    background: #ECFDF5;
}
.calc-result-box.is-bad {
    border-color: #DC2626;
    background: #FEF2F2;
}
.calc-result-label {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748B;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}
.calc-result-value {
    font-size: 40px;
    font-weight: 800;
    color: #1E293B;
    line-height: 1;
    display: block;
}
.calc-result-sub {
    color: #475569;
    font-size: 13.5px;
    margin-top: 6px;
    font-weight: 500;
}
.calc-result-determinant {
    margin-top: 10px;
    color: #059669;
    font-weight: 600;
    font-size: 13px;
}
.calc-result-determinant::before { content: "● "; }

.calc-criteria {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 14px;
}
.calc-criteria th, .calc-criteria td {
    padding: 7px 9px;
    text-align: left;
    border-bottom: 1px solid #F1F5F9;
}
.calc-criteria th { color: #64748B; font-weight: 600; font-size: 12px; background: #F8FAFC; }
.calc-criteria .calc-criteria-det { background: #ECFDF5; font-weight: 700; }
.calc-criteria-check { color: #059669; }
.calc-criteria-det .calc-criteria-check { color: #047857; }

.calc-values-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 13px;
    color: #475569;
}
.calc-values-list li {
    padding: 4px 0;
    border-bottom: 1px dashed #F1F5F9;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.calc-values-list strong { color: #0F172A; font-weight: 600; }

.calc-warnings {
    padding: 10px 12px;
    background: #FEF3C7;
    border-left: 3px solid #D97706;
    color: #78350F;
    font-size: 13px;
    margin-bottom: 14px;
    border-radius: 0 6px 6px 0;
}
.calc-warnings ul { margin: 4px 0 0; padding-left: 18px; }

/* Warning forte — corrente>200A, comprimento>200m, coordenação falha. */
.calc-warnings--danger {
    background: #FEE2E2;
    border-left-color: #DC2626;
    color: #7F1D1D;
    font-weight: 500;
}

.calc-actions { display: flex; flex-direction: column; gap: 8px; }
.calc-actions .lp-btn { width: 100%; justify-content: center; }
.calc-action-secondary {
    background: #F1F5F9 !important;
    color: #1E293B !important;
    border: 1px solid #E2E8F0;
}
.calc-action-secondary:hover { background: #E2E8F0 !important; }

/* Barra visual de queda */
.calc-drop-bar {
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    position: relative;
    margin: 8px 0 14px;
    overflow: hidden;
}
.calc-drop-bar-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: #059669;
    transition: width .3s ease;
}
.calc-drop-bar.is-bad .calc-drop-bar-fill { background: #DC2626; }
.calc-drop-bar-limit {
    position: absolute;
    top: -3px; bottom: -3px;
    width: 2px;
    background: #1E293B;
}

/* ===== Modal ===== */
.calc-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.calc-modal[hidden] { display: none; }
.calc-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.calc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    max-width: 620px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 22px 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.calc-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748B;
    cursor: pointer;
}
.calc-modal-close:hover { color: #0F172A; }
.calc-modal-content h3 { font-size: 20px; margin: 0 0 10px; color: #1E293B; }
.calc-modal-lead { color: #475569; font-size: 14.5px; margin: 0 0 16px; line-height: 1.5; }

.calc-method-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid #F1F5F9;
    align-items: start;
}
.calc-method-item:first-of-type { border-top: none; padding-top: 4px; }
.calc-method-icon {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-method-icon svg { width: 100%; max-height: 56px; }
.calc-method-item h4 { font-size: 14.5px; margin: 0 0 4px; color: #1E293B; }
.calc-method-item p { font-size: 13.5px; color: #475569; margin: 0; line-height: 1.5; }

/* ===== Cross-link + footer CTA ===== */
.calc-cross-link { background: #F1F5F9; padding: 30px 0; margin: 22px 0 0; }
.calc-cross-link h2 { font-size: 18px; margin: 0 0 12px; color: #1E293B; }
.calc-cross-link-card {
    display: block;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s, transform .15s;
}
.calc-cross-link-card:hover {
    border-color: var(--tools-primary, #00349A);
    transform: translateX(2px);
}
.calc-cross-link-card strong { color: var(--tools-primary, #00349A); display: block; margin-bottom: 4px; font-size: 15.5px; }
.calc-cross-link-card span { color: #475569; font-size: 14px; }

.calc-seo { padding: 32px 0; max-width: 780px; }
.calc-seo h2 { font-size: 22px; color: #1E293B; margin-bottom: 10px; }
.calc-seo p { color: #475569; font-size: 15px; line-height: 1.65; }

.calc-cta-footer {
    background: #1E293B;
    color: #fff;
    padding: 42px 0;
    text-align: center;
}
.calc-cta-footer h2 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.calc-cta-footer p { color: #CBD5E1; margin: 0 auto 18px; max-width: 640px; font-size: 15px; }

/* ===== Box de coordenação cabo × disjuntor (OK / Falha) ===== */
.calc-coord-box {
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid;
    margin: 10px 0;
    font-size: 13.5px;
    line-height: 1.5;
}
.calc-coord-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.calc-coord-box p { margin: 4px 0; }
.calc-coord-ok {
    background: #ECFDF5;
    border-color: #059669;
    color: #064E3B;
}
.calc-coord-fail {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #7F1D1D;
}

/* ===== Bloco "Relacionado" no rodapé do resultado (tripé de ferramentas) ===== */
.calc-related {
    margin-top: 18px;
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 13px;
}
.calc-related strong {
    display: block;
    color: #64748B;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.calc-related a {
    display: block;
    color: var(--tools-primary, #00349A);
    text-decoration: none;
    padding: 4px 0;
    font-weight: 500;
    font-size: 13.5px;
}
.calc-related a:hover { text-decoration: underline; }

/* ===== Ângulo de câmera — níveis de qualidade + diagrama ===== */
.fov-levels-info {
    margin-top: 20px;
    padding: 14px 16px;
    background: #F1F5F9;
    border-radius: 8px;
    font-size: 12.5px;
    color: #475569;
    line-height: 1.6;
}
.fov-levels-info strong {
    display: block;
    color: #1E293B;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.fov-levels-info ul { list-style: none; padding: 0; margin: 0; }
.fov-levels-info li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.fov-lvl-dot {
    display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
    flex: 0 0 auto;
}
.fov-lvl-det { background: #DC2626; }
.fov-lvl-obs { background: #CA8A04; }
.fov-lvl-rec { background: #0891B2; }
.fov-lvl-id  { background: #059669; }

.fov-diagram {
    margin: 12px 0;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    justify-content: center;
}
.fov-diagram svg { max-width: 100%; height: auto; }

.fov-id-box {
    border: 2px solid;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 14px 0;
    background: #F8FAFC;
}
.fov-id-label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.fov-id-pxm {
    font-size: 13px;
    color: #475569;
    margin-top: 4px;
}
.fov-id-desc {
    font-size: 12.5px;
    color: #64748B;
    margin-top: 2px;
}
