.calc-breadcrumb-current {
    color: #b01f26;
}

.calc-intro-text {
    color: #444;
}

.calc-intro-meta {
    font-size: 13px;
    color: #444;
}

.calc-icon-label {
    color: #1a3a6b;
}

.calc-ipc-note {
    margin-left: 4px;
}

.calc-diagram-image {
    width: 200px;
    height: auto;
}

.calc-diagram-label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.calc-diagram-gap {
    width: 60px;
    flex-shrink: 0;
}

.calc-icon-badge {
    width: 22px;
    height: 22px;
    background: #1a3a6b;
    font-size: 12px;
}

.calc-enter-params {
    color: #2a4a8a;
    margin-left: 4px;
}

.calc-form-note {
    font-size: 13px;
    color: #666;
}

.calc-explore-title {
    font-size: 17px;
}

.calc-explore-copy {
    font-size: 13px;
}

.calc-view-all-btn {
    background: #b01f26;
    border: 1px solid #b01f26;
    color: #fff;
    font-size: 14px;
    padding: 8px 24px;
}
.calc-view-all-btn:hover,
.calc-view-all-btn:focus {
    
    color: #fff;
}


/* Additional classes extracted from inline styles in PcbTraceWidthCalculator.vue */
.calc-label {
    font-size: 13px;
    color: #333;
}

.calc-select-small {
    min-width: 90px;
    max-width: 110px;
    font-size: 13px;
}

.calc-select-full {
    height: 32.9px;
    padding: 0 10px;
    background-color: #fff;
}
.calc-select-rf {
    width: 220px;
    font-size: 13px;
    flex-shrink: 0;
}

.calc-rf-spinner {
    color: #b01f26;
    font-size: 13px;
}

.calc-rf-note-indent {
    margin-left: 25px;
}

.calc-help-note {
    font-size: 11px;
    color: #888;
}

.calc-hr {
    border: 0;
    border-top: 1px solid #d0d0d0;
    margin: 12px 0 16px;
}

.calc-btn-primary {
    background: #b01f26;
    border-color: #b01f26;
    color: #fff;
    font-size: 15px;
    padding: 8px 20px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.calc-btn-primary:hover,
.calc-btn-primary:focus {
    color: #fff;
}

.calc-reset-btn {
    color: #b01f26;
    font-size: 13px;
}

.calc-reset-icon {
    font-size: 15px;
}

.calc-results-intro {
    font-size: 13px;
    color: #666;
}

.calc-result-label {
    font-size: 13px;
    color: #555;
}

.calc-result-number {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    line-height: 1.1;
}

.calc-result-unit {
    font-size: 14px;
    font-weight: 400;
    color: #28a745;
    margin-left: 4px;
}

.calc-result-placeholder {
    font-size: 20px;
    color: #bbb;
    letter-spacing: 2px;
}

.calc-advanced-table-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow-x: auto;
    overflow-y: hidden;
}

.calc-advanced-table {
    font-size: 12px;
    border-collapse: collapse;
    height: 100%;
}

.calc-table-th {
    background: #fafafa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 14px;
}

.calc-table-th-accent {
    color: #28a745;
    border-right: 1px solid #e0e0e0;
}

.calc-table-td {
    padding: 12px 14px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    color: #444;
}

.calc-table-row {
    height: 48px;
}

.calc-table-empty {
    color: #bbb;
    letter-spacing: 2px;
}

.result-card.calc-result-card--active {
    border-color: #16812d !important;
    background: #f0fff4;
}

.calc-cta {
    background: #fdf4f4;
    border: 1px solid #f0d8d8;
    gap: 16px;
}

.calc-cta-heading {
    font-size: 14px;
}

.calc-how-toggle {
    font-size: 14px;
    text-decoration: none;
}

.calc-how-toggle-icon {
    font-size: 11px;
    color: #b01f26;
    transition: transform 0.2s;
    display: inline-block;
}

.calc-how-body {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    padding-top: 16px;
}

/* Moved from PcbTraceWidthCalculator.vue scoped styles */
.btn-link:hover {
    text-decoration: underline;
    color: #b01f26 !important;
}

.blue-cont{
    background:#f0f2f5;
    box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -webkit-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -moz-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    color: #333;
    font-size: 12px;
    font-weight: 600;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #d9d9d9;
}

.section-divider::before {
    margin-right: 15px;
}

.section-divider::after {
    margin-left: 15px;
}

.result-card{
    border:1px solid #16812d !important;
    background:#f0fff4;
    min-height:200px;
    border-radius: 10px;
}

/* Calculator catalog cards (moved from CalculatorCard.vue scoped styles so the
   server-rendered Blade cards on /calculators pick them up). */
/* Equal-height card grid: stretch each column so every .calc-cont matches the
   tallest card in the row. */
.calc-card-grid {
    display: flex;
    flex-wrap: wrap;
}

.calc-card-grid > [class*="col-"] {
    display: flex;
}

.calc-card-grid .calc-cont {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Vertically center the icon against the text within a card. */
.calc-cont > .row {
    align-items: center;
}

.calc-cont {
    border: 1px solid #dadada;
    display: block;
    padding: 30px 15px;
    border-radius: 5px;
    line-height: 17px;
    background: #fafafa;
}

.calc-cont:hover {
    border-color: #b01f26 !important;
    background: #fff !important;
}

/* "Coming soon" cards are not links — keep them visually inert. */
.calc-cont--soon {
    opacity: 0.6;
    cursor: default;
}

.calc-cont--soon:hover {
    border-color: #dadada !important;
    background: #fafafa !important;
}

.calc-name {
    font-size: 13px;
    font-weight: bold;
    color: #4d4d4d;
    margin: 0;
}

.calc-icon {
    flex-shrink: 0;
    margin-right: 5px;
    background: #fff;
    padding: 10px;
    border-radius: 100%;
    width: 80px;
    height: 80px;
}

.calc-desc {
    font-size: 13px;
    color: #666;
}

.calc-soon-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    color: #b01f26;
    border: 1px solid #f0d8d8;
    background: #fdf4f4;
    padding: 1px 8px;
    border-radius: 10px;
}

/* Inline submit error inside the widget (replaces the SPA's modal dialog). */
.calc-submit-error {
    color: #b01f26;
    font-size: 13px;
}

/* Native <details> "How is this calculated?" toggle. */
.calc-how > summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
}

.calc-how > summary::-webkit-details-marker {
    display: none;
}

.calc-how > summary::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
    color: #b01f26;
    transition: transform 0.2s;
}

.calc-how[open] > summary::before {
    transform: rotate(90deg);
}

/* Static SEO sub-headings inside the What/Why copy blocks (e.g. Crosstalk's
   "Microstrip Vs Stripline" / "Key factors affecting Crosstalk"). */
.calc-how-subheading {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.calc-how-subheading-accent {
    font-size: 14px;
    font-weight: 600;
    color: #b01f26;
}

/* Crosstalk Calculator — transmission line type selector */
.calc-tt-panel {
    background-color: #f0f2f5;
    box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -webkit-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -moz-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
}

.calc-tt-panel-title {
    color: #1a3a6b;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.calc-tt-panel > div:first-child {
    margin-bottom: 0px !important;
}

.calc-tt-panel .calc-form-note {
    margin-bottom: 28px !important;
}

.calc-tt-card {
    background: #fff;
    cursor: pointer;
    padding: 0px 25px !important;
    border-radius: 5px !important;
}

.calc-tt-card--active {
    border-color: #b01f26 !important;
}

.calc-tt-radio-on {
    color: #b01f26;
    margin-right: 8px;
    font-size: 20px;
}

.calc-tt-radio-off {
    color: #aaa;
    margin-right: 8px;
    font-size: 20px;
}

.calc-tt-label {
    font-size: 16px;
    color: #333;
}

.calc-tt-thumb {
    width: 195px;
    height: 110px;
    object-fit: contain;
    transform: translateX(15%);
}

.calc-diagram-image--lg {
    width: 250px;
}

.calc-tip-callout {
    background-color: #fffdf2;
    border: 1px solid #ffecb3;
}

.calc-disclaimer {
    border-bottom: 1px solid #e5e5e5;
    font-size: 12px;
    color: #000000;
    line-height: 1.6;
}

.calc-tip-icon {
    color: #ffc107;
    font-size: 16px;
}

.calc-tip-text {
    font-size: 12px;
    color: #555;
    line-height: 2.5;
}

.calc-how-subheading {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.calc-how-subheading-accent {
    font-size: 14px;
    font-weight: 600;
    color: #b01f26;
}

.calc-form-spinner {
    color: #b01f26;
    font-size: 13px;
}

/* Trace-type selector grid (Select Trace Type). */
.calc-tt-panel {
    background-color: #f0f2f5;
    box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -webkit-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
    -moz-box-shadow: 1px 1px 12px -1px rgba(0,0,0,0.16);
}

.calc-tt-panel-title {
    color: #1a3a6b;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.calc-tt-card {
    background: #fff;
    cursor: pointer;
    border-radius: 5px !important;
    /* Bootstrap's flex-wrap row stretch only equalizes height within a
       row of 3 — a fixed min-height keeps all 9 cards the same height
       even if a label wraps to two lines on a narrower viewport. */
    min-height: 77px;
}

.calc-tt-card--active {
    border-color: #b01f26 !important;
}

.calc-tt-radio-on {
    color: #b01f26;
    margin-right: 8px;
    font-size: 18px;
}

.calc-tt-radio-off {
    color: #aaa;
    margin-right: 8px;
    font-size: 18px;
}

.calc-tt-label {
    font-size: 12.6px;
    color: #333;
}

.calc-tt-thumb {
    width: 195px;
    height: 110px;
    object-fit: contain;
}

/* The impedance structure thumbnails are flat ~1.81:1 cross-sections
   (644x356 source art) rather than the wider Crosstalk trace-shape
   renders, so they need a smaller, correctly-proportioned box to sit
   comfortably inside a 3-column (vs. 2-column) card grid without
   letterboxing. */
.calc-tt-thumb--impedance {
    width: 103px;
    height: 57px;
}

.calc-diagram-image--impedance {
    width: 340px;
}
/****for mobile screens****/
@media (max-width: 768px) {
    .calc-diagram-image {
        width: 100%;       
        max-width: 200px;  
    }
    .calc-select-small {
        min-width: 60px; 
        max-width: 80px; 
        padding: 0 4px;  
    }

    .input-group {
        width: 100%;
        max-width: 100%;
        flex-wrap: nowrap;
    }

    .input-group > .form-control {
        width: 100%;
        min-width: 0;
    }

    .blue-cont input[type="number"] {
        max-width: 75%;
        height: 30px;
        padding: 0 8px;
        font-size: 10px;
    }

    .calc-tt-card {
        flex-wrap: wrap;
        justify-content: center;
        padding: 12px 15px !important;
        min-height: 0;
    }

    .calc-select-rf {
        width: auto;
        min-width: 90px;
        max-width: 120px;
        flex-shrink: 1;
    }

    .blue-cont .d-flex.gap-2:has(> .calc-select-rf) input[type="number"] {
        max-width: 60%;
    }

    .calc-tt-thumb,
    .calc-tt-thumb--impedance {
        width: 130px;
        height: 74px;
        transform: none;
    }

    .calc-tt-label {
        font-size: 14px;
    }

    .calc-diagram-image--lg,
    .calc-diagram-image--impedance {
        width: 100%;
        max-width: 200px;
    }

    .calc-card-grid .row {
        text-align: center;
    }

    .calc-card-grid .calc-icon {
        margin: 0 0 12px;
    }

    .calc-card-grid .col-md-8 {
        padding-left: 15px;
    }

    .d-flex.align-items-center.gap-2 {
        justify-content: center;
    }

    .calc-tt-card > .flex-grow-1 {
        flex: 0 0 100% !important;
        margin-top: 8px;
        justify-content: center !important;
    }

    .calc-form-note,
    .calc-results-intro,
    .calc-intro-text {
        text-align: center;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .calc-diagram-gap {
        display: none;
    }

    .blue-cont form {
        text-align: center;
    }

    .calc-cta {
        justify-content: center !important;
        text-align: center;
    }

    .breadcrumb {
        justify-content: center;
    }

    .calc-explore-title,
    .calc-explore-copy,
    .calc-how-toggle {
        text-align: center;
    }

    .calc-advanced-table-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    .calc-table-th,
    .calc-table-td {
        padding: 8px 10px;
        font-size: 11px;
    }

    .calc-tt-panel .row.g-3 > .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px !important;
    }

    .calc-tt-panel .col-md-4 .calc-tt-card {
        flex-direction: column;
        padding: 8px 4px !important;
        text-align: center;
        min-height: 90px;
    }

    .calc-tt-panel .col-md-4 .calc-tt-radio-on,
    .calc-tt-panel .col-md-4 .calc-tt-radio-off {
        display: none;
    }

    .calc-tt-panel .col-md-4 .calc-tt-label {
        order: 2;
        font-size: 9px;
        line-height: 1.2;
        margin-top: 4px;
    }

    .calc-tt-panel .col-md-4 .flex-grow-1 {
        order: 1;
        flex: 0 0 auto !important;
        margin-top: 0;
        justify-content: center !important;
    }

    .calc-tt-panel .col-md-4 .calc-tt-thumb--impedance {
        width: 48px;
        height: 27px;
    }

    .calc-results-intro + p {
        text-align: center;
    }
}