/* HIDE DEFAULT GENERATEPRESS & WORDPRESS THEME HEADER & FOOTER */
#masthead,
.site-header,
header.site-header,
.main-navigation,
#site-navigation,
.site-branding,
.header-widget,
#colophon,
.site-footer,
footer.site-footer,
.site-info,
.copyright-bar,
.footer-widgets {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.skip-link,
.screen-reader-text,
a.skip-link,
a.screen-reader-text,
body > a[href="#content"],
body > a[href="#primary"],
body > a[href="#main"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    left: -9999px !important;
}

body, .site-content, #page, .grid-container, .site, #primary, #main, article, .inside-article, .entry-content, .separate-containers .inside-article, .one-container .inside-article {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}

/* SaaS Premium Design Tokens */
#saas-calc-app,
.sim-wrapper-block {
    --saas-bg: #f8fafc;
    --saas-card-bg: rgba(255, 255, 255, 0.95);
    --saas-primary: #4f46e5;
    --saas-primary-hover: #4338ca;
    --saas-purple: #9333ea;
    --saas-text-main: #0f172a;
    --saas-text-muted: #64748b;
    --saas-border: #cbd5e1;
    --saas-border-focus: #6366f1;
    --saas-gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
    --saas-gradient-subtle: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    --saas-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --saas-radius-lg: 24px;
    --saas-radius-md: 14px;
    --saas-radius-sm: 10px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--saas-text-main);
    background-color: var(--saas-bg);
    padding: 20px 24px 30px 24px;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    border-radius: var(--saas-radius-lg);
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#saas-calc-app *,
.sim-wrapper-block * {
    box-sizing: border-box;
}

/* 1. CUSTOM MINOTA BRANDING HEADER */
.minota-custom-header {
    border-bottom: 1px solid var(--saas-border);
    padding-bottom: 20px;
    margin-bottom: 28px;
}

.minota-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.minota-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.tool-logo-img {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
}

.minota-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #6366f1;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
    animation: saasPulse 2s infinite;
}

@keyframes saasPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
}

/* 2. TAB NAVIGATION BAR */
.minota-tabs-nav {
    display: flex;
    gap: 12px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.minota-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: var(--saas-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: var(--saas-radius-sm) var(--saas-radius-sm) 0 0;
}

.minota-tab-btn:hover {
    color: var(--saas-primary);
    background: #f1f5f9;
}

.minota-tab-btn.active {
    color: var(--saas-primary);
    border-bottom-color: var(--saas-primary);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.minota-tab-btn.tab-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* SaaS site chrome — same header/footer on every plugin page */
#saas-calc-app:has(.minota-site-header) {
    padding-top: 12px;
}

.minota-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: visible;
}

.minota-site-header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 18px;
    min-height: 64px;
}

.minota-site-header .minota-brand-logo {
    flex-shrink: 0;
}

.minota-site-header .tool-logo-img {
    max-height: 40px;
}

.minota-site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.minota-site-link,
.minota-site-link-dd {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--saas-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
    background: transparent;
    border: none;
}

.minota-site-link:hover,
.minota-site-link-dd:hover {
    background: #f1f5f9;
    color: var(--saas-primary);
}

.minota-site-link-dd::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.55;
}

.minota-nav-dd {
    position: relative;
}

.minota-nav-dd-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: 12px;
    padding: 8px;
    z-index: 2000;
    /* Invisible hover-bridge so the  panel does not close before the click */
    margin-top: 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.minota-nav-dd-panel::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.minota-nav-dd:hover .minota-nav-dd-panel,
.minota-nav-dd:focus-within .minota-nav-dd-panel,
.minota-tools-check:checked ~ .minota-nav-dd-panel {
    display: block;
}

.minota-nav-dd-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--saas-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.minota-site-link.is-active,
.minota-nav-dd-panel a:hover,
.minota-nav-dd-panel a.is-active,
.minota-site-link-dd.is-active {
    background: #eef2ff;
    color: var(--saas-primary);
}

.minota-header-badge-compact {
    margin-left: 8px;
    flex-shrink: 0;
}

.minota-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border-radius: 10px;
    border: 1px solid var(--saas-border);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.minota-nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--saas-text-main);
}

.minota-site-footer {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--saas-border);
}

.minota-site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.minota-site-footer-col h3 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--saas-text-muted);
}

.minota-site-footer-col a {
    display: block;
    margin: 0 0 8px;
    color: var(--saas-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.minota-site-footer-col a:hover {
    color: var(--saas-primary);
}

@media (max-width: 768px) {
    .minota-nav-toggle {
        display: flex;
    }

    .minota-site-nav,
    .minota-header-badge-compact {
        display: none;
    }

    .minota-nav-check:checked ~ .minota-site-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 68px;
        background: #fff;
        border: 1px solid var(--saas-border);
        border-radius: 12px;
        padding: 10px;
        z-index: 2000;
    }

    .minota-site-header-inner {
        position: relative;
        flex-wrap: wrap;
    }

    .minota-nav-dd-panel {
        position: static;
        min-width: 0;
        border: none;
        padding: 0 0 0 8px;
        display: block;
    }

    .minota-site-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.tab-badge {
    font-size: 11px;
    font-weight: 800;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 4px;
}

/* TAB PANES */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.3s ease-out;
}

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

/* MODE TOGGLE SWITCH (PONDERADO VS SIMPLE) */
.calc-mode-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0 24px 0;
}

.mode-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--saas-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-toggle-group {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 99px;
    gap: 4px;
}

.mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    background: transparent;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: var(--saas-text-main);
}

.mode-btn.active {
    background: #ffffff;
    color: var(--saas-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.simple-weight-pill {
    height: 48px;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    border-radius: var(--saas-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--saas-text-muted);
    font-size: 14px;
}

/* Main Header Component */
.saas-header {
    text-align: center;
    margin-bottom: 40px;
}

.saas-header .saas-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--saas-text-main);
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.saas-header .saas-subtitle {
    font-size: 16px;
    color: var(--saas-text-muted);
    margin: 0 auto;
    max-width: 820px;
    line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid var(--saas-border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.trust-item svg {
    color: #16a34a;
    flex-shrink: 0;
}

/* Layout Split */
.saas-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

/* Glassmorphism Cards */
.saas-card {
    background: var(--saas-card-bg);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: var(--saas-radius-lg);
    padding: 32px;
    box-shadow: var(--saas-shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    width: 100%;
}

.saas-card:hover {
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.12);
}

/* Left Card: Input Builder */
.card-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--saas-border);
}

.card-header-bar h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.card-header-bar p {
    font-size: 13px;
    color: var(--saas-text-muted);
    margin: 0;
}

.builder-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--saas-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 6px;
}

.rows-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.saas-row {
    display: grid;
    grid-template-columns: 1fr 1fr 40px;
    gap: 16px;
    align-items: center;
    animation: saasSlideIn 0.25s ease-out forwards;
    position: relative;
    z-index: 5;
}

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

/* Input Fields */
#saas-calc-app input.input-field {
    width: 100% !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: var(--saas-radius-md) !important;
    padding: 0 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    pointer-events: auto !important;
    cursor: text !important;
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    -webkit-appearance: none !important;
}

#saas-calc-app input.input-field:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    background: #ffffff !important;
}

#saas-calc-app input.input-field.invalid-input {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

#saas-calc-app input.input-field::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.btn-row-delete {
    width: 40px;
    height: 40px;
    border-radius: var(--saas-radius-sm);
    border: 1px solid transparent;
    background: #f1f5f9;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.btn-row-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.builder-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px dashed var(--saas-border);
    gap: 16px;
    flex-wrap: wrap;
}

.weight-badge {
    font-size: 13px;
    color: var(--saas-text-muted);
    background: var(--saas-gradient-subtle);
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 500;
}

.weight-badge.badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.weight-badge strong {
    color: var(--saas-primary);
    font-weight: 700;
}

/* NEM CALCULATOR STYLING */
.nem-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.nem-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nem-field-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--saas-text-main);
}

.nem-info-box {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 18px;
}

.nem-info-box strong {
    font-size: 14px;
    color: var(--saas-text-main);
}

.nem-info-box p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--saas-text-muted);
    line-height: 1.5;
}

/* Right Card: Analytics & SVG Ring */
.analytics-card {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.analytics-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.analytics-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.live-tag {
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

/* SVG Circular Meter */
.circular-meter-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 10px 0 30px 0;
}

.circular-meter {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.meter-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 10;
}

.meter-fill {
    fill: none;
    stroke: url(#gradeGradient);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-center-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.meter-value {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--saas-text-main);
    line-height: 1;
    letter-spacing: -0.04em;
}

.meter-label {
    font-size: 11px;
    color: var(--saas-text-muted);
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Stats Cards Grid */
.stats-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 12px;
    color: var(--saas-text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--saas-text-main);
}

.stat-sub {
    font-size: 12px;
    color: var(--saas-text-muted);
    margin-top: 2px;
}

.stat-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    align-self: flex-start;
}

.status-neutral { background: #f1f5f9; color: var(--saas-text-muted); }
.status-pass { background: #dcfce7; color: #166534; }
.status-fail { background: #fee2e2; color: #991b1b; }
.status-error { background: #fee2e2; color: #991b1b; }

/* Buttons */
.saas-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--saas-radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.btn-gradient {
    background: var(--saas-gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
    background: #ffffff;
    border: 1.5px solid var(--saas-border);
    color: var(--saas-text-main);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-ghost {
    background: transparent;
    color: var(--saas-text-muted);
    padding: 6px 12px;
    font-size: 13px;
}

.btn-ghost:hover {
    color: var(--saas-text-main);
    background: #f1f5f9;
}

.analytics-actions-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* FEATURE STYLING: "¿QUÉ NOTA NECESITO PARA APROBAR?" */
.sim-wrapper-block {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    width: 100% !important;
}

.sim-hero {
    text-align: center;
    max-width: 820px;
    margin: 10px auto 32px;
}

.sim-hero .eyebrow {
    display: inline-block;
    color: #4338ca;
    background: #eeedff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 700;
}

.sim-hero h1,
.sim-hero h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.055em;
    margin: 16px 0;
    font-weight: 800;
    color: #17223b;
}

.sim-hero p {
    color: #667085;
    font-size: 1.08rem;
    line-height: 1.65;
    margin: 0;
}

.sim-grid {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 32px;
    align-items: start;
    width: 100%;
}

.sim-wrapper-block .card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, .045);
    padding: 28px;
    width: 100%;
}

.sim-wrapper-block h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    letter-spacing: -.025em;
    font-weight: 800;
    color: #17223b;
}

.sim-wrapper-block .help {
    color: #667085;
    font-size: .9rem;
    line-height: 1.45;
    margin: 0 0 20px;
}

.sim-wrapper-block .row {
    display: grid;
    grid-template-columns: 1fr 1fr 38px;
    gap: 12px;
    align-items: end;
    margin-bottom: 10px;
}

.sim-wrapper-block label {
    color: #344054;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sim-wrapper-block input.sim-input {
    width: 100% !important;
    border: 1px solid #cfd4dc !important;
    border-radius: 10px !important;
    padding: 11px 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #17223b !important;
    outline: none !important;
    background: #ffffff !important;
    height: auto !important;
    line-height: 1.4 !important;
}

.sim-wrapper-block input.sim-input:focus {
    border-color: #5b4ee5 !important;
    box-shadow: 0 0 0 3px #e8e6ff !important;
}

.sim-wrapper-block button.remove {
    width: 38px;
    height: 42px;
    color: #c2352b;
    background: #fff0ef;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sim-wrapper-block button.remove:hover {
    background: #fde8e8;
}

.sim-wrapper-block button.add {
    padding: 10px 14px;
    color: #4338ca;
    background: #eeedff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.sim-wrapper-block button.add:hover {
    background: #e0e7ff;
}

.sim-wrapper-block .divider {
    height: 1px;
    background: #e4e7ec;
    margin: 24px 0;
}

.sim-wrapper-block .target-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sim-wrapper-block .summary {
    background: linear-gradient(145deg, #5b4ee5, #4338ca);
    color: #ffffff;
    border-radius: 16px;
    padding: 23px;
}

.sim-wrapper-block .summary small {
    opacity: .82;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    display: block;
}

.sim-wrapper-block .grade {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.07em;
    margin: 10px 0 4px;
}

.sim-wrapper-block .summary p {
    margin: 0;
    opacity: .88;
    line-height: 1.45;
    font-size: .92rem;
}

.sim-wrapper-block .status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    background: #e9fbf6;
    color: #08785f;
    font-size: .88rem;
    line-height: 1.4;
    font-weight: 600;
}

.sim-wrapper-block .status.warning {
    background: #fff6e8;
    color: #8a5200;
}

.sim-wrapper-block .status.error {
    background: #fff0ef;
    color: #9f1f17;
}

.sim-wrapper-block .facts {
    margin: 20px 0 0;
    display: grid;
    gap: 9px;
}

.sim-wrapper-block .fact {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e4e7ec;
    font-size: .9rem;
}

.sim-wrapper-block .fact span {
    color: #667085;
}

.sim-wrapper-block .fact strong {
    color: #17223b;
    font-weight: 700;
}

.sim-wrapper-block .scenario {
    margin-top: 20px;
    background: #f7f8fc;
    padding: 15px;
    border-radius: 12px;
}

.sim-wrapper-block .scenario strong {
    font-size: .91rem;
    color: #17223b;
}

.sim-wrapper-block .scenario p {
    margin: 6px 0 0;
    color: #667085;
    font-size: .84rem;
    line-height: 1.45;
}

.sim-wrapper-block .footnote {
    max-width: 820px;
    margin: 22px auto;
    color: #667085;
    text-align: center;
    font-size: .82rem;
    line-height: 1.5;
}

/* Below Calculator: SEO Content Section */
.saas-seo-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.seo-card {
    background: var(--saas-card-bg);
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: var(--saas-radius-lg);
    padding: 28px 32px;
    box-shadow: var(--saas-shadow);
    width: 100%;
}

.seo-card h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--saas-text-main);
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.seo-card p {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 12px 0;
}

.seo-card p:last-child {
    margin-bottom: 0;
}

.formula-box {
    background: #f1f5f9;
    border-left: 4px solid var(--saas-primary);
    padding: 16px 20px;
    border-radius: var(--saas-radius-md);
    margin: 14px 0;
    font-size: 15px;
    color: var(--saas-text-main);
}

.formula-box.math-box {
    background: #e0e7ff;
    border-left-color: #6366f1;
}

.formula-box code {
    font-family: monospace, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #3730a3;
}

.formula-legend {
    margin-top: 14px;
}

.formula-legend ul {
    margin: 6px 0 0 20px;
    padding: 0;
}

.formula-legend li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}

/* Example Table Styling */
.table-responsive {
    overflow-x: auto;
    margin: 14px 0;
}

.seo-example-table {
    width: 100%;
    max-width: 320px;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    overflow: hidden;
}

.seo-example-table th, .seo-example-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--saas-border);
    font-size: 14px;
}

.seo-example-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: var(--saas-text-main);
}

.seo-example-table tr:last-child td {
    border-bottom: none;
}

/* 5. CUSTOM MINOTA FOOTER */
.minota-custom-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--saas-border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.minota-footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.minota-footer-brand {
    max-width: 400px;
}

.footer-logo-img {
    max-height: 44px;
    width: auto;
    margin-bottom: 12px;
}

.minota-footer-brand p {
    font-size: 14px;
    color: var(--saas-text-muted);
    line-height: 1.6;
    margin: 0;
}

.minota-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.minota-footer-links a {
    color: var(--saas-text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.minota-footer-links a:hover {
    color: var(--saas-primary);
}

.minota-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px dashed var(--saas-border);
    font-size: 13px;
    color: var(--saas-text-muted);
}

/* Mobile Responsiveness (Screen widths 768px and below, tested down to 360px, 390px, 430px) */
@media (max-width: 768px) {
    /* 1. Full available mobile width with 16px page padding */
    body, html, #page, .site, .site-content, .grid-container, .content-area, .site-main, #primary, #main, article, .inside-article, .entry-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #saas-calc-app,
    .sim-wrapper-block {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 16px 16px 30px 16px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;
    }

    /* 2. Single column mobile layout */
    .saas-layout,
    .sim-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* 3. Card padding & full width */
    .saas-card,
    .builder-card,
    .analytics-card,
    .seo-card,
    .sim-card-left,
    .sim-card-right {
        padding: 18px 16px !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: static !important;
    }

    /* 4. Grade rows grid layout */
    .builder-table-header,
    .saas-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px !important;
        gap: 10px !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-row-delete {
        width: 52px !important;
        height: 48px !important;
        border-radius: var(--saas-radius-md) !important;
    }

    .simple-weight-pill {
        height: 48px !important;
        font-size: 13px !important;
    }

    /* 5. NEM 4-year grid on mobile */
    .nem-input-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    @media (max-width: 480px) {
        .nem-input-grid {
            grid-template-columns: 1fr !important;
        }
    }

    /* 6. Navigation tabs mobile optimization */
    .minota-tabs-nav {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 4px !important;
        border-radius: 14px !important;
    }

    .minota-tab-btn {
        padding: 10px 4px !important;
        font-size: 12px !important;
        flex-direction: column !important;
        gap: 4px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .minota-tab-btn svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* 7. Header typography & badge */
    .minota-custom-header {
        margin-bottom: 20px !important;
        padding-bottom: 16px !important;
    }

    .minota-nav-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .tool-logo-img {
        max-height: 42px !important;
    }

    .saas-header {
        margin-bottom: 24px !important;
    }

    .saas-header .saas-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }

    .saas-header .saas-subtitle {
        font-size: 14px !important;
    }

    .calc-mode-switch {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .mode-toggle-group {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .mode-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    /* 8. Action buttons & stats stack */
    .analytics-actions-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .builder-footer {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .builder-footer button {
        width: 100% !important;
        justify-content: center !important;
    }

    .weight-badge {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .minota-footer-container {
        flex-direction: column !important;
        gap: 20px !important;
    }
}

/* FAQ Accordion & Internal Links Grid Styles */
.faq-accordion-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.06);
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--saas-text-main);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.faq-answer {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.internal-link-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    text-decoration: none;
    color: var(--saas-text-main);
    transition: all 0.2s ease;
}

.internal-link-card:hover {
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
}

.internal-link-card strong {
    color: #4f46e5;
    font-weight: 700;
    font-size: 15px;
}

.internal-link-card span {
    font-size: 13px;
    color: var(--saas-text-muted);
    line-height: 1.4;
}

.grade-scale-table {
    max-width: 100% !important;
}

.grade-scale-table td, .grade-scale-table th {
    padding: 12px 18px !important;
}

/* ---------------------------------------------------- */
/* DEDICATED BLOG ARCHIVE & SINGLE ARTICLE STYLES       */
/* ---------------------------------------------------- */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 32px;
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--saas-border);
    border-radius: var(--saas-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: var(--saas-text-main);
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    border-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.12);
}

.blog-meta-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.blog-read-more {
    color: #4f46e5;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.blog-breadcrumb a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}

.blog-article-container {
    background: #ffffff;
    border-radius: var(--saas-radius-lg);
    border: 1px solid var(--saas-border);
    padding: 36px 40px;
    margin-bottom: 40px;
    box-shadow: var(--saas-shadow);
}

@media (max-width: 768px) {
    .blog-article-container {
        padding: 20px 18px;
    }
}

.blog-article-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.blog-article-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

@media (max-width: 768px) {
    .blog-article-title {
        font-size: 24px;
    }
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.blog-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.blog-article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 32px 0 16px 0;
}

.blog-article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px 0;
}

.blog-article-body p {
    margin-bottom: 20px;
}

.blog-article-body ul, .blog-article-body ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.blog-article-body li {
    margin-bottom: 8px;
}

.blog-callout-widget {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid #a5b4fc;
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blog-callout-widget h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #3730a3;
}

.blog-callout-widget p {
    margin: 0;
    font-size: 15px;
    color: #312e81;
}

.blog-callout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 10px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease;
}

.blog-callout-btn:hover {
    background: #4338ca;
}

@media print {
    @page {
        margin: 10mm;
        size: landscape;
    }

    html,
    body,
    #saas-export-panel,
    #saas-export-panel * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    html,
    body {
        background: #f8fafc !important;
        overflow: visible !important;
    }

    body * {
        visibility: hidden !important;
    }

    #saas-export-panel,
    #saas-export-panel * {
        visibility: visible !important;
    }

    #saas-export-panel {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 12px !important;
        background: #f8fafc !important;
    }

    #saas-export-panel .saas-layout {
        display: grid !important;
        grid-template-columns: 1.35fr 1fr !important;
        gap: 20px !important;
    }

    #saas-export-panel .saas-card {
        box-shadow: 0 10px 28px rgba(79, 70, 229, 0.08) !important;
        background: #ffffff !important;
        break-inside: avoid;
    }

    #saas-export-panel .analytics-card {
        position: relative !important;
        top: auto !important;
    }

    #saas-export-panel .analytics-actions-grid,
    .minota-site-header,
    .minota-site-footer,
    .saas-seo-footer {
        display: none !important;
        visibility: hidden !important;
    }
}
