/*
==============================================================================
ICE COMPONENTS — FUNDAMENTALS PAGE STYLES - CLEANUP 20260916
==============================================================================

Purpose:
Styles used only by ICE Components Fundamentals pages.

Pages:
- Gate Drive Transformer Fundamentals — 3921
- Power Inductor Fundamentals — 4016
- Current Sense Transformer Fundamentals — 4020
- Current Sensor Fundamentals — 4023

Includes:
- Fundamentals page layout
- Desktop and mobile TOC
- Sticky sidebar
- Resources and references
- Fundamentals typography
- Equations and equation legends
- Comparison tables and charts
- Fundamentals notes
- Fundamentals-specific content components
- Responsive Fundamentals behavior
- TOC accordion

==============================================================================
*/
/* === FUNDAMENTALS — CORE LAYOUT, TYPOGRAPHY & TOC === */
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .cmn-gap {
    padding-bottom: 10px !important;
    padding-top: 0 !important;
}

.fundamentals-layout {
    width: 100%;
    max-width: 1280px;
    margin: 20px auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px;
    grid-template-areas: "content sidebar";
    gap: 40px;
    align-items: start !important;
    overflow: visible !important;
}

@media (min-width: 992px) {
    :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .fundamentals-layout {
        grid-template-columns: minmax(0, 1fr) 320px !important;
    }

    :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .fundamentals-sidebar {
        width: 320px !important;
        max-width: 320px !important;
    }
}

.fundamentals-content {
    grid-area: content;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.fundamentals-sidebar {
    grid-area: sidebar;
    width: 100%;
    min-width: 0;
}

.fundamentals-sidebar-section h4 {
    margin: 0 0 12px;
    font-size: 18px;
    text-align: left;
    font-weight: 500;
}

.mobile-toc {
    display: none;
}

@media (min-width: 992px) {
    .fundamentals-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 40px;
        align-items: start !important;
        overflow: visible !important;
    }

    .fundamentals-sidebar {
        position: sticky !important;
        top: 110px;
        align-self: start !important;
        max-height: calc(100vh - 130px);
        overflow: visible !important;
    }
}

@media (max-width: 991px) {
    .fundamentals-layout {
        display: flex !important;
        flex-direction: column;
        margin: 40px auto;
    }

    .mobile-toc {
        display: block;
        max-width: 1280px;
        margin: 30px auto;
        margin-bottom: 30px;
    }

    .desktop-toc {
        display: none;
    }

    .fundamentals-toc {
        order: 1;
        margin-bottom: 30px;
    }

    .fundamentals-content {
        order: 2;
    }

    .fundamentals-sidebar {
        order: 2;
        position: static !important;
        max-height: none;
        overflow: visible !important;
    }

    .fundamentals-sidebar-links {
        order: 3;
    }
}

.fundamentals-sidebar-section.fundamentals-toc {
    background-color: #edf3fb;
}

.fundamentals-sidebar-section {
    border: 1px solid #E5E5E5 !important;
}

.fundamentals-sidebar-section ul,
.fundamentals-content ul {
    list-style: disc;
    margin: 1em 0;
}

.fundamentals-sidebar-section li,
.fundamentals-content li {
    margin-bottom: 8px;
}

.fundamentals-content ul {
    padding-left: 30px !important;
    margin-top: 0 !important;
    text-align: left !important;
}

.fundamentals-content li {
    display: list-item !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 0.5em !important;
    color: #000;
}

.fundamentals-content li::marker {
    color: inherit !important;
}

.fundamentals-sidebar ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

.fundamentals-sidebar li {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 8px;
}

.fundamentals-sidebar li a {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) h1,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .hOne {
    font-size: 44px !important;
    font-weight: 700;
}

:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .banner-sec.inner-banner.inner-banner2 {
    padding-top: 10px !important;
    padding-bottom: 20px !important;
}

:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .inner-banner-col-right .inner-banner-img.inner-banner-img2 {
    max-width: 420px;
}

.fundamentals-content h2,
.fundamentals-page h2,
.fundamentals-page .hTwo {
    font-weight: 700;
    font-size: 32px !important;
    text-align: left !important;
    padding-top: 35px;
    color: #022642;
}

.fundamentals-content h3,
.fundamentals-page h3,
.fundamentals-page .hTwo {
    font-weight: 600;
    font-size: 22px !important;
    text-align: left !important;
    padding-top: 10px;
}

.fundamentals-page .fundamentals-content p:not(.fundamentals-equation),
.fundamentals-page .entry-content p:not(.fundamentals-equation) {
    font-size: 15px !important;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    color: #000;
}

.fundamentals-content a,
.fundamentals-page .entry-content a {
    color: #1f4d8f;
    text-decoration: none;
}

.fundamentals-content a:hover,
.fundamentals-page .entry-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) h1,
      :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .hOne,
      :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .banner-sec h1,
      :is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .banner-sec .hOne {
        font-size: 38px !important;
        line-height: 1.2 !important;
    }

    .fundamentals-content h2,
      .fundamentals-page h2,
      .fundamentals-page .hTwo {
        font-size: 26px !important;
        line-height: 1.3;
        padding-top: 15px;
        text-align: left !important;
    }
}

:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .entry-content,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .wp-block-post-content,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .wp-site-blocks,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .wp-block-group,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .fundamentals-page,
:is(.page-id-3921, .page-id-4016, .page-id-4020, .page-id-4023) .fundamentals-layout {
    overflow: visible !important;
}

.mobile-toc ul {
    list-style: disc;
    list-style-position: outside;
    margin: 0;
    padding-left: 20px;
}

.mobile-toc li {
    display: list-item;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    text-align: left !important;
}

.mobile-toc li::before {
    display: none !important;
    content: none !important;
}

.mobile-toc li::marker {
    font-size: 1em;
    color: #1f4d8f;
}

.mobile-toc a {
    display: inline;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: #1f4d8f !important;
    text-decoration: none;
    text-align: left !important;
}

.mobile-toc a:hover {
    text-decoration: underline;
}

.mobile-toc h4 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 18px;
    font-weight: 500;
    color: #000;
    text-align: left;
}

/* === FUNDAMENTALS — REFERENCES & COMPARISON CHART === */
.fundamentals-sidebar-section {
    margin-bottom: 8px;
    padding: 22px;
    background: #fafbfc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.fundamentals-content h2,
.fundamentals-content h3,
.fundamentals-content h4,
.fundamentals-references h2 {
    scroll-margin-top: 80px;
}

.fundamentals-references {
    margin-top: 40px;
    padding: 24px;
    background: #f5f5f5;
    border: 0px solid #d9d9d9;
    border-radius: 0px;
}

.fundamentals-references h2 {
    margin: 0 0 15px !important;
    padding: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.fundamentals-references ol {
    margin: 0 !important;
    padding-left: 24px !important;
}

.fundamentals-references li {
    color: #000 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-align: left !important;
    margin-bottom: 12px !important;
}

.fundamentals-references em {
    font-style: italic;
    font-weight: 400;
}

@media (max-width: 991px) {
    .fundamentals-sidebar-links {
        margin-top: 0px;
    }
}

@media (max-width: 991px) {
    .fundamentals-sidebar {
        margin-top: 0px;
    }
}

.fundamentals-page p:empty {
    display: none;
}

@media (max-width: 575px) {
    .fundamentals-content p {
        margin-bottom: 10px !important;
    }

    .fundamentals-page #primary .entry-content h2,
      .fundamentals-page #primary .entry-content h3 {
        margin: 0 0 5px !important;
    }
}

.fundamentals-references ol li a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
}

.fundamentals-comparison-chart {
    width: 100%;
    margin: 24px auto;
    padding: 18px 24px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
}

.fundamentals-comparison-chart__header,
.fundamentals-comparison-chart__row {
    display: grid;
    grid-template-columns: 16% 44% 40%;
    gap: 20px;
    align-items: center;
}

.fundamentals-comparison-chart__header {
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #d9d9d9;
}

.fundamentals-comparison-chart__header div {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.fundamentals-comparison-chart__row {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
}

.fundamentals-comparison-chart__row:last-child {
    border-bottom: none;
}

.fundamentals-comparison-chart__label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.fundamentals-comparison-chart__metric {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.fundamentals-comparison-chart__bar {
    display: block;
    height: 20px;
    background: #093678;
    line-height: 0;
    font-size: 0;
}

.fundamentals-comparison-chart__value {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
}

.fundamentals-comparison-chart__numeric {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .fundamentals-comparison-chart {
        width: 100%;
        padding: 15px;
    }

    .fundamentals-comparison-chart__header,
      .fundamentals-comparison-chart__row {
        grid-template-columns: 20% 45% 35%;
        gap: 12px;
    }

    .fundamentals-comparison-chart__header div,
      .fundamentals-comparison-chart__label,
      .fundamentals-comparison-chart__value,
      .fundamentals-comparison-chart__numeric {
        font-size: 12px;
    }

    .fundamentals-comparison-chart__bar {
        height: 20px;
    }
}

.fundamentals-comparison-chart__title {
    margin: 22px 0 0 0 !important;
    font-size: 16px !important;
    font-style: italic;
    font-weight: 500;
    text-align: left !important;
    color: #666;
}

/* === FUNDAMENTALS — COMPARISON TABLE === */
.fundamentals-comparison-table {
    width: 100%;
    min-width: 700px;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.3;
}

.fundamentals-comparison-table th,
.fundamentals-comparison-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}

.fundamentals-comparison-table th {
    background: #edf3fb;
    font-weight: 700;
    color: #000;
}

.fundamentals-comparison-table td {
    color: #000;
}

.fundamentals-comparison-table td {
    font-weight: 400 !important;
}

.fundamentals-comparison-table td:first-child strong {
    font-weight: 600 !important;
}

.fundamentals-comparison-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.fundamentals-comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* === FUNDAMENTALS — CAPTIONS & NOTES === */
.fundamentals-content .fundamentals-comparison-table__caption,
.fundamentals-content .fundamentals-comparison-figure__caption {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 10px 0 20px !important;
    font-style: italic !important;
}

.fundamentals-content .fundamentals-comparison-table__caption {
    text-align: left !important;
}

.fundamentals-content .fundamentals-comparison-figure__caption {
    text-align: center !important;
}

.fundamentals-content .fundamentals-comparison-table__caption strong,
.fundamentals-content .fundamentals-comparison-figure__caption strong {
    color: #333 !important;
    font-weight: 400 !important;
}

.fundamentals-note {
    background: #edf3fb;
    border-left: 4px solid #0b4ea2;
    padding: 18px 22px;
    margin: 25px 0;
    color: #444;
    line-height: 1.7;
    font-size: 14px;
    border-radius: 4px;
}

.fundamentals-note strong {
    color: #0b4ea2;
}

.fundamentals-note em {
    font-style: normal;
    font-weight: 400;
}

/* ======= FUNDAMENTALS — EQUATIONS & EQUATION LEGENDS ========= */
.fundamentals-page .fundamentals-equation,
.fundamentals-page p.fundamentals-equation {
    display: block !important;
    width: 100% !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #000000 !important;
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.fundamentals-content .fundamentals-equation-legend {
    margin: 0 0 25px 0 !important;
    text-align: left !important;
    font-style: italic !important;
}

.fundamentals-content .fundamentals-equation-legend strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
}

.fundamentals-content .fundamentals-equation-legend ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 4px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fundamentals-content .fundamentals-equation-legend li {
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #444 !important;
    margin-left: 20px !important;
    font-weight: 400 !important;
}

.fundamentals-content .fundamentals-equation-legend em {
    display: inline-block !important;
    width: auto !important;
    font-style: italic !important;
    font-weight: 600 !important;
    color: #000000 !important;
}

.fundamentals-page
.fundamentals-equation
.equation-inline {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.fundamentals-page
.fundamentals-equation
.equation-symbol {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin: 0 0.35em !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.fundamentals-page
.fundamentals-equation
.equation-fraction {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.fundamentals-page
.fundamentals-equation
.equation-numerator,
.fundamentals-page
.fundamentals-equation
.equation-denominator {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.fundamentals-page
.fundamentals-equation
.equation-numerator,
.fundamentals-page
.fundamentals-equation
.equation-fraction > span:first-child {
    padding: 0 0.25em 3px !important;
    border-bottom: 2px solid currentColor !important;
}

.fundamentals-page
.fundamentals-equation
.equation-denominator,
.fundamentals-page
.fundamentals-equation
.equation-fraction > span:last-child {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 3px 0.25em 0 !important;
    border: 0 !important;
    line-height: 1 !important;
    transform: none !important;
}

.fundamentals-page
.fundamentals-equation
.equation-term {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.fundamentals-page
.fundamentals-equation
.equation-term + .equation-term {
    margin-left: 0.15em !important;
}

.fundamentals-page
.fundamentals-equation
.equation-operator {
    display: inline-block !important;
    margin: 0 0.22em !important;
    padding: 0 !important;
    line-height: inherit !important;
}

.fundamentals-page
.fundamentals-equation
.equation-multiply {
    display: inline-block !important;
    margin: 0 0.12em !important;
    padding: 0 !important;
}

.fundamentals-page
.fundamentals-equation i {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    line-height: inherit !important;
}

.fundamentals-page
.fundamentals-equation sub,
.fundamentals-page
.fundamentals-equation sup {
    display: inline !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 65% !important;
    line-height: 0 !important;
    vertical-align: baseline !important;
}

.fundamentals-page
.fundamentals-equation sub {
    bottom: -0.25em !important;
}

.fundamentals-page
.fundamentals-equation sup {
    top: -0.45em !important;
}

.fundamentals-page
.fundamentals-equation
.equation-fraction > br {
    display: none !important;
}

.fundamentals-page
.fundamentals-content h4 {
    font-size: 19px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    text-align: left !important;
}

@media (max-width: 480px) {
    .fundamentals-page .fundamentals-equation,
      .fundamentals-page p.fundamentals-equation {
        font-size: 18px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* ======= FUNDAMENTALS — POWER INDUCTOR TYPE CARDS ======== */
.fundamentals-page .inductor-type-card {
    width: 100%;
    margin: 24px 0;
}

.fundamentals-page .inductor-type-card h4 {
    margin: 0 0 12px;
}

.fundamentals-page .inductor-type-grid {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    grid-template-areas: "image description"
        "details details";
    width: 100%;
    overflow: hidden;
    border: 0px solid #d9dee5;
    border-radius: 4px;
    background-color: #ffffff;
}

.fundamentals-page .inductor-type-image {
    grid-area: image;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-right: 0px solid #d9dee5;
}

.fundamentals-page .inductor-type-image img {
    display: block;
    width: 150px;
    height: 150px;
    max-width: none;
    object-fit: contain;
}

.fundamentals-page .inductor-type-description {
    grid-area: description;
    padding: 16px 20px;
}

.fundamentals-page .inductor-type-details {
    grid-area: details;
    padding: 14px 20px;
    border-top: 0px solid #d9dee5;
    background-color: #f6f8fa;
}

.fundamentals-page .inductor-type-description p,
.fundamentals-page .inductor-type-details p {
    margin: 0 0 0 !important;
}

.fundamentals-page .inductor-type-description p:last-child,
.fundamentals-page .inductor-type-details p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .fundamentals-page .inductor-type-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "image"
              "description"
              "details";
    }

    .fundamentals-page .inductor-type-image {
        padding: 20px;
        border-right: 0;
        border-bottom: 1px solid #d9dee5;
    }

    .fundamentals-page .inductor-type-description,
      .fundamentals-page .inductor-type-details {
        padding: 16px;
    }

    .fundamentals-page .inductor-type-image img {
        width: 150px;
        height: 150px;
        max-width: 80%;
    }
}

/* ======= FUNDAMENTALS — RESPONSIVE TWO-COLUMN LISTS - Wide screens: balanced two-column layout - Tablet/mobile: single column ======= */
.fundamentals-2col-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Wide desktop/tablet landscape */
@media only screen and (min-width: 992px) {

    .fundamentals-2col-list {
        columns: 2;
        column-gap: 40px;
    }

    .fundamentals-2col-list > li {
        break-inside: avoid;
        margin-bottom: 8px;
    }
}

/* Tablet and mobile */
@media only screen and (max-width: 991px) {

    .fundamentals-2col-list {
        columns: 1;
    }
}

.fundamentals-note {
    text-align: left !important;
}

.fundamentals-equation-legend {
    padding: 5px 18px 18px 18px;
    border-radius: 4px;
}

/* ======= FUNDAMENTALS TOC ACCORDION ======= */
.fundamentals-toc > h4 {
    margin-bottom: 0;
}

/* Toggle button */
.fundamentals-toc .fundamentals-toc-toggle {
    position: relative;
    display: block;
    width: 100%;
    padding: 0 30px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
}

/* Chevron - CLOSED state */
.fundamentals-toc .fundamentals-toc-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;

    width: 8px;
    height: 8px;

    border-right: 2px solid #093678;
    border-bottom: 2px solid #093678;

    transform: translateY(-65%) rotate(45deg);

    transition: transform 0.35s ease;
}

/* Chevron - OPEN state */
.fundamentals-toc
.fundamentals-toc-toggle[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(-135deg);
}

/* TOC list */
.fundamentals-toc > ul {
    overflow: hidden;
    opacity: 1;
    margin-top: 18px;

    transition:
        max-height 0.45s ease,
        opacity 0.3s ease,
        margin-top 0.45s ease;
}

/* Collapsed TOC */
.fundamentals-toc.is-collapsed > ul {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}