/* ==========================================================================
   weblix jo — Calm Enterprise Tools Stylesheet
   Matches main.css palette (#070c19, #f8fafc, #ffffff, #0062b8, #e2e8f0)
   Zero neon colors, zero gradient headings, zero cluttered boxes
   ========================================================================== */

.tools-page {
    background-color: var(--color-bg-soft, #f8fafc);
    color: var(--color-text-dark, #1e293b);
    overflow-x: clip;
}

/* ── Hero Section (Matches blog.css clean navy hero) ── */
.tools-hero {
    position: relative;
    background-color: var(--color-bg-dark, #070c19);
    color: #ffffff;
    padding: 136px 0 84px;
    text-align: center;
    overflow: hidden;
}

.tools-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 98, 184, 0.14), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.tools-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 740px;
    margin: 0 auto;
}

.tools-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.86rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.tools-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tools-breadcrumbs a:hover {
    color: #ffffff;
}

.tools-breadcrumbs-sep {
    opacity: 0.45;
}

.tools-hero-title {
    font-size: clamp(1.85rem, 3.8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.28;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    margin-bottom: 0.9rem;
    letter-spacing: -0.015em;
}

.tools-hero-desc {
    font-size: clamp(0.98rem, 1.8vw, 1.12rem);
    color: #94a3b8;
    line-height: 1.8;
    max-width: 620px;
    margin: 0 auto;
}

/* ── Main Light Workspace ── */
.tools-workspace {
    position: relative;
    z-index: 3;
    background-color: var(--color-bg-soft, #f8fafc);
    padding: 0 0 4.5rem;
}

.tools-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin: -36px auto 3rem;
    max-width: 1040px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 14px 36px rgba(15, 23, 42, 0.06);
}

/* ── Tools Hub Grid (/tools/) ── */
.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: -36px auto 3rem;
    max-width: 1040px;
    position: relative;
    z-index: 4;
}

.tools-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    text-decoration: none;
    color: inherit;
}

.tools-hub-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.tools-hub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.tools-hub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f0f7ff;
    color: #0062b8;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tools-hub-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.tools-hub-title {
    font-size: 1.32rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.tools-hub-desc {
    font-size: 0.96rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    flex: 1;
}

.tools-hub-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 1.1rem;
    border-top: 1px solid #f1f5f9;
}

.tools-hub-specs {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
}

.tools-hub-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0062b8;
}

.tools-hub-card:hover .tools-hub-cta {
    color: #004685;
}

/* ── Minimal 3-Column Strip (/tools/) ── */
.tools-pillars-strip {
    max-width: 1040px;
    margin: 0 auto 3.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-pillar-item {
    padding: 1.5rem 1.65rem;
    border-inline-end: 1px solid #f1f5f9;
}

.tools-pillar-item:last-child {
    border-inline-end: none;
}

.tools-pillar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.tools-pillar-head svg {
    color: #0062b8;
    flex-shrink: 0;
}

.tools-pillar-head h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.tools-pillar-item p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* ── Shared Form Controls & Quiet Buttons ── */
.tool-btn {
    min-height: 40px;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tool-btn-primary {
    background-color: #0062b8;
    color: #ffffff;
}

.tool-btn-primary:hover {
    background-color: #004685;
}

.tool-btn-outline {
    background-color: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

.tool-btn-outline:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.tool-btn-ghost {
    background-color: transparent;
    color: #64748b;
    padding: 0.4rem 0.75rem;
    min-height: 34px;
    font-size: 0.84rem;
}

.tool-btn-ghost:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

.quiet-chip {
    min-height: 32px;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.quiet-chip:hover {
    border-color: #0062b8;
    color: #0062b8;
    background: #f0f7ff;
}

/* ── Binary Workbench (DeepL / Translate Style) ── */
.workbench-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.seg-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.seg-tab {
    min-height: 38px;
    padding: 0.45rem 1.05rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.seg-tab:hover {
    color: #0f172a;
}

.seg-tab.active {
    background: #ffffff;
    color: #0062b8;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.workbench-samples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.samples-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    margin-inline-end: 2px;
}

.binary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.binary-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.55rem;
}

.pane-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.pane-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.tool-textarea {
    width: 100%;
    min-height: 225px;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.98rem;
    line-height: 1.75;
    resize: vertical;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tool-textarea.rtl-text {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

.tool-textarea:focus {
    outline: none;
    border-color: #0062b8;
    box-shadow: 0 0 0 3px rgba(0, 98, 184, 0.12);
}

.tool-textarea.output-surface {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.binary-swap-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1.5rem;
}

.swap-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
}

.swap-circle-btn:hover {
    border-color: #0062b8;
    color: #0062b8;
    background: #f0f7ff;
}

.pane-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 0.75rem;
}

/* ── WhatsApp Link Studio (Linear / Stripe Style) ── */
.wa-studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.25rem;
    align-items: start;
}

.wa-form-col,
.wa-preview-col {
    min-width: 0;
}

.wa-field-group {
    margin-bottom: 1.35rem;
}

.wa-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

/* Unified joined phone group */
.wa-phone-group {
    display: flex;
    align-items: stretch;
    direction: ltr;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.wa-phone-group:focus-within {
    border-color: #0062b8;
    box-shadow: 0 0 0 3px rgba(0, 98, 184, 0.12);
}

.country-select {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0.55rem 0.9rem;
    background: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    color: #0f172a;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    direction: rtl;
    text-align: right;
    text-align-last: right;
    cursor: pointer;
    outline: none;
}

.phone-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 46px;
    padding: 0.55rem 0.95rem;
    background: #ffffff;
    border: none;
    color: #0f172a;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 600;
    direction: ltr;
    text-align: left;
    outline: none;
}

.wa-helper-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.45rem;
}

.wa-templates-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.6rem;
}

.msg-input {
    width: 100%;
    min-height: 108px;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    color: #0f172a;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    direction: rtl;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.msg-input:focus {
    border-color: #0062b8;
    box-shadow: 0 0 0 3px rgba(0, 98, 184, 0.12);
}

/* Always-visible calm result panel */
.wa-output-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.wa-output-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.45rem;
}

.wa-output-url {
    word-break: break-all;
    direction: ltr;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 0.85rem;
}

.wa-output-url.is-placeholder {
    color: #94a3b8;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    font-weight: 500;
}

.wa-output-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wa-output-actions .tool-btn {
    flex: 1 1 150px;
}

.wa-output-actions .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* Clean neutral phone preview */
.wa-preview-shell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px;
    max-width: 340px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.wa-preview-screen {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.wa-preview-header {
    background: #0f172a;
    color: #ffffff;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
}

.wa-preview-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-preview-meta {
    min-width: 0;
    text-align: left;
}

.wa-preview-phone {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-preview-status {
    font-size: 0.72rem;
    color: #94a3b8;
}

.wa-preview-body {
    flex: 1;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

.wa-preview-note {
    align-self: center;
    font-size: 0.72rem;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.wa-bubble-preview {
    align-self: flex-start;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    color: #0f172a;
    padding: 0.7rem 0.9rem;
    border-radius: 12px 12px 12px 3px;
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 90%;
    word-break: break-word;
}

.wa-preview-composer {
    background: #ffffff;
    padding: 0.65rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
}

.wa-composer-pill {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-send-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0062b8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Editorial Guide, Light Table & Minimal FAQ ── */
.tools-guide {
    max-width: 840px;
    margin: 0 auto;
    color: #334155;
    line-height: 1.85;
}

.tools-guide h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
}

.tools-guide h2:first-child {
    margin-top: 0;
}

.tools-guide h3 {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    margin: 1.6rem 0 0.6rem;
}

.tools-guide p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #334155;
}

.tools-guide ul {
    margin: 0.65rem 0 1.25rem;
    padding-inline-start: 1.35rem;
}

.tools-guide li {
    margin-bottom: 0.5rem;
}

.tools-guide code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    direction: ltr;
    display: inline-block;
}

.tools-table-wrap {
    width: 100%;
    margin: 1.35rem 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    overflow: hidden;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.tools-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tools-table th {
    color: #0f172a;
    font-weight: 800;
}

.tools-table th,
.tools-table td {
    padding: 0.8rem 1rem;
    text-align: right;
    border-bottom: 1px solid #f1f5f9;
}

.tools-table tbody tr:last-child td {
    border-bottom: none;
}

.tools-cross-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.tools-cross-link strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.tools-cross-link span {
    display: block;
    font-size: 0.88rem;
    color: #64748b;
}

.tools-faq-list {
    margin: 0.75rem 0 0;
    border-top: 1px solid #e2e8f0;
}

.tools-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.tools-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tools-faq-item summary::-webkit-details-marker {
    display: none;
}

.tools-faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.tools-faq-item[open] summary::after {
    content: '−';
    color: #0062b8;
}

.tools-faq-item p {
    margin: 0.65rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ── Responsive Breakpoints (360px -> 1440px) ── */
@media (max-width: 900px) {
    .wa-studio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .wa-preview-shell {
        max-width: 100%;
    }
}

@media (max-width: 860px) {
    .binary-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .binary-swap-col {
        padding-top: 0.25rem;
    }

    .swap-circle-btn {
        transform: rotate(90deg);
    }

    .tools-pillars-strip {
        grid-template-columns: minmax(0, 1fr);
    }

    .tools-pillar-item {
        border-inline-end: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .tools-pillar-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .tools-hero {
        padding: 108px 0 64px;
    }

    .tools-hub-grid {
        grid-template-columns: minmax(0, 1fr);
        margin-top: -26px;
    }

    .tools-card {
        margin-top: -26px;
        padding: 1.35rem;
        border-radius: 14px;
    }

    .tools-hub-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .tools-table {
        font-size: 0.82rem;
    }

    .tools-table th,
    .tools-table td {
        padding: 0.6rem 0.55rem;
    }

    .tools-table td code {
        font-size: 0.75rem;
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 520px) {
    .wa-phone-group {
        flex-direction: column;
    }

    .country-select {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }

    .phone-input {
        width: 100%;
    }

    .wa-output-actions .tool-btn {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Flat Architectural Financial & Editorial System (.fin-page / .fin-* / .hub-*)
   Human-crafted Stripe / Wise / FT editorial layout: zero nested card slop,
   tabular figures, 1px hairline divisions, crisp typography, full RTL + LTR.
   ========================================================================== */

body.fin-page {
    background-color: #ffffff;
    color: #1e293b;
}

[dir="ltr"] body.fin-page {
    font-family: 'Plus Jakarta Sans', 'Cairo', system-ui, -apple-system, sans-serif;
}

.fin-container {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ── Compact Start-Aligned Topbar (No Hero Overlap / No Gradient Orbs) ── */
.fin-topbar {
    background-color: #070c19;
    color: #ffffff;
    padding: 108px 0 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: start;
}

.fin-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.fin-crumb a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.fin-crumb a:hover {
    color: #ffffff;
}

.fin-crumb-sep {
    color: #64748b;
}

.fin-title {
    font-size: clamp(1.6rem, 2.75vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.fin-deck {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #cbd5e1;
    max-width: 66ch;
    margin: 0;
}

.fin-topbar-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    color: #94a3b8;
}

.fin-topbar-meta span {
    font-variant-numeric: tabular-nums;
}

/* ── Primary Pure-White Calculator Workspace ── */
.fin-workspace {
    background-color: #ffffff;
    padding: 40px 0 52px;
    border-bottom: 1px solid #e2e8f0;
}

.fin-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
    align-items: start;
}

.fin-inputs {
    padding-inline-end: 44px;
    border-inline-end: 1px solid #e2e8f0;
    min-width: 0;
}

.fin-receipt {
    padding-inline-start: 44px;
    min-width: 0;
}

.fin-section-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 18px;
}

[dir="rtl"] .fin-section-kicker {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.85rem;
}

/* ── Editorial Form Controls ── */
.fin-field {
    margin-bottom: 22px;
}

.fin-field:last-child {
    margin-bottom: 0;
}

.fin-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.fin-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.fin-label-row .fin-label {
    margin-bottom: 0;
}

.fin-label-hint {
    font-size: 0.8rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.fin-money-box {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    padding: 4px 14px;
    transition: border-color 0.15s ease;
}

.fin-money-box:focus-within {
    border-color: #0062b8;
    box-shadow: 0 0 0 2px rgba(0, 98, 184, 0.12);
}

.fin-money-input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 0;
    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    direction: ltr;
    text-align: left;
    font-variant-numeric: tabular-nums;
    outline: none;
}

.fin-money-input::-webkit-outer-spin-button,
.fin-money-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fin-money-input[type="number"] {
    -moz-appearance: textfield;
}

.fin-currency-tag {
    font-size: 0.92rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Inline Minimalist Preset Links (No Pill Chips) */
.fin-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: 9px;
    font-size: 0.82rem;
    color: #94a3b8;
}

.fin-preset-btn {
    border: none;
    background: none;
    padding: 2px 3px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.fin-preset-btn:hover {
    color: #0f172a;
}

.fin-preset-btn.is-active {
    color: #0062b8;
    font-weight: 700;
    border-bottom-color: #0062b8;
}

/* Flat Segmented Switch */
.fin-seg {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

.fin-seg-btn {
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 10px;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.fin-seg-btn:hover {
    color: #0f172a;
}

.fin-seg-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    border-color: #cbd5e1;
}

/* Full-Width Crisp Select & Number Input */
.fin-select,
.fin-text-input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.15s ease;
}

.fin-select:focus,
.fin-text-input:focus {
    border-color: #0062b8;
    box-shadow: 0 0 0 2px rgba(0, 98, 184, 0.12);
}

.fin-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* Minimal Hairline Checkbox */
.fin-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0 4px;
    border-top: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
}

.fin-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #0062b8;
    cursor: pointer;
    flex-shrink: 0;
}

/* Subtle Editorial Callout (Only shown when boundary rules trigger) */
.fin-callout {
    margin-top: 16px;
    padding: 10px 14px;
    border-inline-start: 3px solid #0062b8;
    background: #f8fafc;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1.65;
}

.fin-callout.is-hidden {
    display: none;
}

/* ── Receipt / Financial Ledger Output Column ── */
.fin-hero-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: #475569;
    margin: 0 0 6px;
}

.fin-hero-num {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: clamp(2rem, 3.4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin: 0;
}

.fin-hero-num span.fin-hero-unit {
    font-size: 0.44em;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0;
}

.fin-hero-sub {
    margin: 8px 0 20px;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
    font-variant-numeric: tabular-nums;
}

/* Thin 6px Proportional Split Bar */
.fin-bar-block {
    margin: 0 0 24px;
}

.fin-bar-track {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background: #e2e8f0;
}

.fin-bar-seg {
    height: 100%;
    transition: width 0.2s ease;
}

.fin-bar-seg--net {
    background: #0062b8;
}

.fin-bar-seg--tax {
    background: #0f172a;
}

.fin-bar-seg--fee {
    background: #94a3b8;
}

.fin-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 9px;
    font-size: 0.78rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.fin-bar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fin-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex-shrink: 0;
}

.fin-dot--net { background: #0062b8; }
.fin-dot--tax { background: #0f172a; }
.fin-dot--fee { background: #94a3b8; }

/* Ledger Breakdown Rows (No Inner Boxes) */
.fin-ledger {
    border-top: 1px solid #e2e8f0;
}

.fin-ledger-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.92rem;
    color: #475569;
}

.fin-ledger-row strong {
    color: #0f172a;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fin-ledger-row.is-total {
    border-top: 1.5px solid #0f172a;
    border-bottom: none;
    padding-top: 14px;
    margin-top: 2px;
    color: #0f172a;
    font-weight: 800;
}

.fin-ledger-row.is-total strong {
    font-size: 1rem;
    font-weight: 800;
    color: #0062b8;
}

.fin-ledger-group {
    padding: 10px 0 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #f1f5f9;
}

.fin-receipt-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.fin-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fin-copy-btn:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.fin-copy-status {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0062b8;
}

/* ── Editorial Bands Below Workspace ── */
.fin-band {
    background: #ffffff;
    padding: 48px 0;
}

.fin-band--muted {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.fin-band-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.fin-h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -0.015em;
}

.fin-band-head .fin-h2 {
    margin-bottom: 0;
}

.fin-band-sub {
    font-size: 0.86rem;
    color: #64748b;
    margin: 0;
}

/* Flat Editorial Data Table */
.fin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1.5px solid #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.fin-table {
    width: 100%;
    min-width: 580px;
    border-collapse: collapse;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.fin-table thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 12px 14px;
    text-align: start;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.fin-table tbody td {
    padding: 12px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    text-align: start;
}

.fin-table tbody tr:last-child td {
    border-bottom: none;
}

.fin-table tbody tr.is-best {
    background: #f8fafc;
}

.fin-table tbody tr.is-best td {
    color: #0f172a;
    font-weight: 700;
}

.fin-tag-best {
    display: inline-block;
    margin-inline-start: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #0062b8;
}

/* Reading-Width Guide & Hairline FAQ */
.fin-prose {
    max-width: 760px;
    color: #334155;
    line-height: 1.85;
}

.fin-prose h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 38px 0 12px;
    padding-top: 26px;
    border-top: 1px solid #e2e8f0;
}

.fin-prose h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.fin-prose h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
    margin: 24px 0 8px;
}

.fin-prose p {
    font-size: 0.98rem;
    margin: 0 0 14px;
    color: #334155;
}

.fin-prose ul {
    margin: 10px 0 18px;
    padding-inline-start: 20px;
}

.fin-prose li {
    margin-bottom: 8px;
    font-size: 0.96rem;
}

.fin-prose code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    direction: ltr;
    display: inline-block;
}

.fin-faq {
    border-top: 1px solid #e2e8f0;
    margin-top: 14px;
}

.fin-faq details {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.fin-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    color: #0f172a;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.fin-faq summary::-webkit-details-marker {
    display: none;
}

.fin-faq summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.fin-faq details[open] summary::after {
    content: '−';
    color: #0062b8;
}

.fin-faq details p {
    margin: 10px 0 0;
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.75;
}

/* Understated Bottom CTA Strip */
.fin-cta-strip {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 36px 0;
}

.fin-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fin-cta-copy h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.fin-cta-copy p {
    font-size: 0.94rem;
    color: #475569;
    margin: 0 0 10px;
    max-width: 58ch;
}

.fin-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.86rem;
}

.fin-cta-links a {
    color: #0062b8;
    font-weight: 700;
    text-decoration: none;
}

.fin-cta-links a:hover {
    text-decoration: underline;
}

.fin-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    background: #0062b8;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.fin-cta-btn:hover {
    background: #004e94;
}

/* ── Architectural Hub Directory (/tools/ & /en/tools/) ── */
.hub-list {
    border-top: 1.5px solid #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.hub-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 24px;
    padding: 24px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
}

.hub-row:last-child {
    border-bottom: none;
}

.hub-row:hover {
    background: #f8fafc;
}

.hub-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.hub-body {
    min-width: 0;
}

.hub-row-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    transition: color 0.15s ease;
}

.hub-row:hover .hub-row-title {
    color: #0062b8;
}

.hub-row-desc {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 6px;
    max-width: 68ch;
}

.hub-row-meta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.hub-row-action {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0062b8;
    white-space: nowrap;
}

.hub-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

.hub-note a {
    color: #0062b8;
    font-weight: 700;
    text-decoration: none;
}

.hub-note a:hover {
    text-decoration: underline;
}

/* ── Responsive Breakpoints (390px -> 1440px) ── */
@media (max-width: 900px) {
    .fin-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .fin-inputs {
        padding-inline-end: 0;
        border-inline-end: none;
        padding-bottom: 28px;
        margin-bottom: 28px;
        border-bottom: 1px solid #e2e8f0;
    }

    .fin-receipt {
        padding-inline-start: 0;
    }
}

@media (max-width: 640px) {
    .fin-container {
        padding-inline: 18px;
    }

    .fin-topbar {
        padding: 96px 0 28px;
    }

    .fin-workspace {
        padding: 28px 0 36px;
    }

    .fin-money-input {
        font-size: 1.5rem;
    }

    .fin-hero-num {
        font-size: 1.85rem;
    }

    .fin-two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .hub-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 20px 6px;
    }

    .fin-cta-btn {
        width: 100%;
    }

    .fin-topbar-meta span[aria-hidden],
    .fin-topbar-meta span:nth-child(even) {
        display: none;
    }
}
