/* ── Material Single (single-material.php) ────────────────── */

/* Breathing room between the hero and the Gutenberg content —
   matches the project archive spacing so sections feel consistent. */
.mat-single .page-content {
    padding-top: 4rem;
}

/* ── Hero — two-column, white bg ─────────────────────────── */
.mat-hero {
    background: #fff;
    padding: 3.5rem 0 3rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.mat-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Left: breadcrumbs, badge, H1, quick answer ───────────── */
.mat-hero__left {
    padding-bottom: 3.5rem;
}

/* Breadcrumbs */
.mat-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .375rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: 1rem;
    font-weight: 600;
}
.mat-breadcrumbs li {
    display: flex;
    align-items: center;
    color: #9ca3af;
}
.mat-breadcrumbs li + li::before {
    content: '/';
    margin-right: .375rem;
    opacity: .4;
}
.mat-breadcrumbs a {
    color: var(--wp--preset--color--secondary, #0B2169);
    text-decoration: none;
    transition: color .15s;
}
.mat-breadcrumbs a:hover { color: var(--wp--preset--color--primary, #B00000); }
.mat-breadcrumbs [aria-current="page"] {
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Category badge */
.mat-hero__badge {
    display: inline-block;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .3rem .625rem;
    border-radius: 4px;
    margin-bottom: .875rem;
}

/* H1 */
.mat-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 1.5rem;
}

.mat-hero__title-main {
    color: var(--wp--preset--color--secondary, #0B2169);
}

.mat-hero__title-accent {
    color: var(--wp--preset--color--primary, #B00000);
}

/* Quick Answer box */
.mat-quick-answer {
    background: #fff;
    border: 1px solid rgba(0,0,0,.1);
    border-left: 4px solid var(--wp--preset--color--primary, #B00000);
    border-radius: 8px;
    padding: 1.25rem 1.375rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.mat-quick-answer__label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #B00000);
    margin-bottom: .625rem;
}

.mat-quick-answer__dot { font-size: .9rem; }

.mat-quick-answer__text {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    margin: 0;
}

/* ── Right: image + stat badges ───────────────────────────── */
.mat-hero__right {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: stretch;
}

.mat-hero__img-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #e5e7eb;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.mat-hero__img {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
}

.mat-hero__img-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        rgba(11,33,105,.04),
        rgba(11,33,105,.04) 10px,
        rgba(11,33,105,.08) 10px,
        rgba(11,33,105,.08) 20px
    );
    color: #9ca3af;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 2rem;
}

/* Stat badges at bottom of image */
.mat-hero__badges {
    display: flex;
    background: #fff;
    border: 1px solid rgba(11,33,105,.12);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.mat-hero__badge-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .875rem .75rem;
    gap: .2rem;
    border-right: 1px solid rgba(11,33,105,.1);
}
.mat-hero__badge-item:last-child { border-right: none; }

.mat-hero__badge-value {
    font-size: 1.375rem;
    font-weight: 900;
    color: var(--wp--preset--color--secondary, #0B2169);
    letter-spacing: -.02em;
    line-height: 1;
}

.mat-hero__badge-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: center;
}

/* ── Quick Specs bar — dark navy ──────────────────────────── */
.mat-specs-bar {
    background: var(--wp--preset--color--secondary, #0B2169);
    padding: 2.25rem 0;
    margin-bottom: 2.5rem;
}

.mat-specs-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mat-specs-bar__heading {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.mat-specs-bar__items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem 2rem;
}

.mat-specs-bar__item {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.mat-specs-bar__label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
}

.mat-specs-bar__value {
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
    line-height: 1.1;
}

/* ── Content layout ───────────────────────────────────────── */
.mat-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    padding: 3.5rem 0 5rem;
}

/* ── Content sections ─────────────────────────────────────── */
.mat-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mat-section {
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.mat-section:first-child { padding-top: 0; }
.mat-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Section eyebrow */
.mat-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #B00000);
    margin-bottom: .625rem;
}

.mat-section__eyebrow-line {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

/* Section heading */
.mat-section__heading {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--wp--preset--color--secondary, #0B2169);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

/* Body text */
.mat-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}
.mat-body p { margin: 0 0 1rem; }
.mat-body p:last-child { margin-bottom: 0; }
.mat-body strong { font-weight: 700; color: var(--wp--preset--color--secondary, #0B2169); }
.mat-body a { color: var(--wp--preset--color--primary, #B00000); text-decoration: underline; text-underline-offset: 2px; }
.mat-body h3 { font-size: 1.125rem; font-weight: 700; color: var(--wp--preset--color--secondary, #0B2169); margin: 1.5rem 0 .5rem; }
.mat-body ul, .mat-body ol { margin: 0 0 1rem; padding-left: 1.375rem; }
.mat-body li { margin-bottom: .375rem; }

/* ── Pros & Cons ──────────────────────────────────────────── */
.mat-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.mat-pros-cons__col {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.09);
}

.mat-pros-cons__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1.25rem;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mat-pros-cons__col--pros .mat-pros-cons__header {
    background: rgba(34,197,94,.08);
    color: #15803d;
    border-bottom: 1px solid rgba(34,197,94,.15);
}

.mat-pros-cons__col--cons .mat-pros-cons__header {
    background: rgba(239,68,68,.07);
    color: #b91c1c;
    border-bottom: 1px solid rgba(239,68,68,.12);
}

.mat-pros-cons__list {
    list-style: none;
    margin: 0;
    padding: .875rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mat-pros-cons__item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: 1rem;
}

.mat-pros-cons__item strong {
    display: block;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
    line-height: 1.3;
    margin-bottom: .2rem;
}

.mat-pros-cons__item p {
    margin: 0;
    font-size: .875rem;
    color: #6b7280;
    line-height: 1.5;
}

.mat-pros-cons__item-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.mat-pros-cons__item-icon--pro {
    background: rgba(34,197,94,.12);
    color: #15803d;
}

.mat-pros-cons__item-icon--con {
    background: rgba(239,68,68,.1);
    color: #b91c1c;
}

/* ── FAQ accordion ────────────────────────────────────────── */
.mat-faq {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.09);
}

.mat-faq__item {
    border-bottom: 1px solid rgba(0,0,0,.09);
}
.mat-faq__item:last-child { border-bottom: none; }

.mat-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.375rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
    cursor: pointer;
    list-style: none;
    transition: background .15s;
    user-select: none;
}
.mat-faq__question::-webkit-details-marker { display: none; }
.mat-faq__question:hover { background: rgba(11,33,105,.03); }

.mat-faq__item[open] .mat-faq__question {
    background: rgba(11,33,105,.04);
    color: var(--wp--preset--color--primary, #B00000);
}

.mat-faq__chevron {
    flex-shrink: 0;
    transition: transform .25s;
}
.mat-faq__item[open] .mat-faq__chevron {
    transform: rotate(180deg);
}

.mat-faq__answer {
    padding: 0 1.375rem 1.125rem;
}
.mat-faq__answer p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin: 0;
}

/* ── Comparison table ─────────────────────────────────────── */
.mat-compare-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,.09);
}

.mat-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.mat-compare-table thead {
    background: var(--wp--preset--color--secondary, #0B2169);
    color: #fff;
}

.mat-compare-table thead th {
    padding: .875rem 1.125rem;
    text-align: left;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.mat-compare-table tbody tr {
    border-bottom: 1px solid rgba(0,0,0,.07);
    transition: background .15s;
}
.mat-compare-table tbody tr:last-child { border-bottom: none; }
.mat-compare-table tbody tr:hover { background: rgba(11,33,105,.03); }

.mat-compare-table tbody td {
    padding: .875rem 1.125rem;
    color: #374151;
    line-height: 1.4;
}

.mat-compare-table__name {
    font-weight: 700;
    color: var(--wp--preset--color--secondary, #0B2169);
}

.mat-compare-table__name a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}
.mat-compare-table__name a:hover { color: var(--wp--preset--color--primary, #B00000); }

.mat-compare-table__row--current {
    background: rgba(176,0,0,.04) !important;
}
.mat-compare-table__row--current .mat-compare-table__name {
    color: var(--wp--preset--color--primary, #B00000);
}

.mat-compare-table__current-badge {
    display: inline-block;
    margin-left: .5rem;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--wp--preset--color--primary, #B00000);
    color: #fff;
    padding: .15rem .45rem;
    border-radius: 3px;
    vertical-align: middle;
}

/* ── Related materials grid (reuses mat-card from archive) ── */
.mat-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* mat-card styles shared via material-archive.css */

/* ── Final CTA ────────────────────────────────────────────── */
.mat-final-cta {
    background: var(--wp--preset--color--secondary, #0B2169);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.mat-final-cta__heading {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .5rem;
    letter-spacing: -.02em;
}

.mat-final-cta__text {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    margin: 0;
    line-height: 1.6;
}

.mat-final-cta__actions {
    display: flex;
    flex-direction: column;
    gap: .875rem;
    flex-shrink: 0;
    align-items: stretch;
    min-width: 200px;
}

.mat-final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .875rem 1.75rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    transition: filter .2s, transform .2s;
}
.mat-final-cta__btn:hover {
    filter: brightness(.88);
    transform: translateY(-1px);
}

.mat-final-cta__phone {
    text-align: center;
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .02em;
    transition: color .15s;
}
.mat-final-cta__phone:hover { color: #fff; }

/* ── Sidebar ──────────────────────────────────────────────── */
.mat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: calc( var(--site-header-height, 70px) + 1.5rem );
}

.mat-widget {
    background: #fff;
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 10px;
    padding: 1.375rem;
}

.mat-widget__title {
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary, #0B2169);
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* TOC */
.mat-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.mat-toc__item {}

.mat-toc__link {
    display: flex;
    align-items: baseline;
    gap: .625rem;
    padding: .375rem 0;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    transition: color .15s;
}
.mat-toc__link:hover { color: var(--wp--preset--color--primary, #B00000); }
.mat-toc__link.is-active { color: var(--wp--preset--color--primary, #B00000); font-weight: 700; }

.mat-toc__num {
    font-size: .7rem;
    font-weight: 700;
    color: #9ca3af;
    flex-shrink: 0;
}

.mat-toc__text {
    font-size: .875rem;
    line-height: 1.4;
}

/* Sidebar CTA */
.mat-sidebar-cta {
    border: none !important;
}

.mat-sidebar-cta__blurb {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    margin: 0 0 1.125rem;
}

.mat-sidebar-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .8rem 1.25rem;
    border-radius: 6px;
    font-size: .8125rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-align: center;
    transition: filter .2s;
    margin-bottom: .875rem;
}
.mat-sidebar-cta__btn:hover { filter: brightness(.88); }

.mat-sidebar-cta__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    font-size: 1rem;
    font-weight: 800;
    color: rgba(255,255,255,.9);
    text-decoration: none;
    transition: color .15s;
}
.mat-sidebar-cta__phone:hover { color: #fff; }

/* Browse sidebar */
.mat-sidebar-browse__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.mat-sidebar-browse__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem .625rem;
    border-radius: 6px;
    font-size: .875rem;
    color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.mat-sidebar-browse__link:hover {
    background: rgba(11,33,105,.05);
    color: var(--wp--preset--color--secondary, #0B2169);
}
.mat-sidebar-browse__link.is-active {
    background: rgba(176,0,0,.07);
    color: var(--wp--preset--color--primary, #B00000);
    font-weight: 700;
}

.mat-sidebar-browse__count {
    font-size: .75rem;
    color: #9ca3af;
    background: rgba(0,0,0,.05);
    padding: .15rem .5rem;
    border-radius: 999px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .mat-layout { grid-template-columns: 1fr 270px; gap: 2.5rem; }
    .mat-sidebar { position: static; }
}

@media (max-width: 900px) {
    .mat-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .mat-hero__left { padding-bottom: 0; }
    .mat-hero__right { order: -1; }
    .mat-hero__img-wrap { border-radius: 12px; min-height: 260px; }
    .mat-hero__badges { border-radius: 0 0 12px 12px; }
    .mat-layout { grid-template-columns: 1fr; }
    .mat-sidebar { display: none; }
    .mat-pros-cons { grid-template-columns: 1fr; }
    .mat-specs-bar__items { grid-template-columns: repeat(2, 1fr); }
    .mat-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .mat-hero { padding-top: 2.5rem; }
    .mat-specs-bar__items { grid-template-columns: 1fr; gap: 1rem; }
    .mat-related__grid { grid-template-columns: 1fr; }
    .mat-final-cta { flex-direction: column; align-items: stretch; }
    .mat-final-cta__actions { min-width: unset; }
    .mat-hero__badges { flex-wrap: wrap; }
    .mat-hero__badge-item { flex: 0 0 50%; border-bottom: 1px solid rgba(11,33,105,.1); }
}
