.bfye {
    --bfye-ink: #173646;
    --bfye-muted: #425d6d;
    --bfye-panel: #f1f6f7;
    --bfye-border: #cfdde2;
    --bfye-accent: #b93914;
    --bfye-highlight: #d54a1b;
    --bfye-white: #fff;
    margin-block: 1.75rem 3rem;
    color: var(--bfye-ink);
    line-height: 1.55;
}

.bfye *, .bfye *::before, .bfye *::after { box-sizing: border-box; }
.bfye [hidden] { display: none !important; }
.bfye a { color: #19596e; }
.bfye :focus-visible { outline: 3px solid #24697c; outline-offset: 3px; }
.bfye h2, .bfye h3 { color: var(--bfye-ink); line-height: 1.2; margin: 0 0 .65rem; }
.bfye h2 { font-size: clamp(1.45rem, 2.5vw, 2.2rem); }
.bfye h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.bfye-material-page.wp-theme-astra #primary { margin-block: clamp(1.2rem, 3vw, 3.1rem); }
.bfye-material-page.wp-theme-astra #primary .ast-article-single {
    padding: clamp(.55rem, 2vw, 1.75rem);
    background: #fff;
}
.bfye-material-page.wp-theme-astra #primary .entry-header { margin-bottom: clamp(.75rem, 2vw, 1.4rem); }
.bfye-material-page.wp-theme-astra #primary .entry-header .entry-title {
    color: #173646;
    font-weight: 700;
    font-size: clamp(1.95rem, 3.8vw, 3.25rem);
    line-height: 1.14;
}
.bfye-material-page.wp-theme-astra #primary .entry-content > .bfye { margin-top: 0; }
.bfye p { margin: .6rem 0 1rem; }
.bfye label { display: grid; gap: .32rem; align-content: start; font-weight: 600; min-width: 0; }
.bfye .bfye-kicker { color: var(--bfye-accent); font-weight: 700; }
.bfye .bfye-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, .5fr);
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.1rem, 3vw, 2.2rem);
    background: var(--bfye-panel);
    border: 1px solid var(--bfye-border);
    border-radius: .7rem;
    margin-bottom: 1.4rem;
}
.bfye .bfye-hero > :only-child { grid-column: 1 / -1; }
.bfye .bfye-profile-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bfye .bfye-profile-hero figure, .bfye .bfye-visuals figure { margin: 0; min-width: 0; }
.bfye .bfye-profile-hero img, .bfye .bfye-visuals img { display: block; height: auto; width: 100%; border-radius: .45rem; }
.bfye .bfye-profile-hero figcaption, .bfye .bfye-visuals figcaption { color: var(--bfye-muted); font-size: .9rem; margin-top: .45rem; }
.bfye .bfye-visuals { display: grid; grid-template-columns: minmax(0, 36rem); gap: 1rem; margin-block: 1rem 1.75rem; }
.bfye .bfye-visuals-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bfye .bfye-diagram { width: min(100%, 260px); max-height: 160px; justify-self: center; color: #478294; }
.bfye .bfye-dimension { stroke: var(--bfye-highlight); }
.bfye .bfye-cards { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfye .bfye-card, .bfye .bfye-form, .bfye .bfye-results, .bfye .bfye-method, .bfye-selection {
    padding: clamp(.9rem, 2vw, 1.45rem);
    border: 1px solid var(--bfye-border);
    border-radius: .65rem;
    background: var(--bfye-white);
    min-width: 0;
}
.bfye .bfye-card p { color: var(--bfye-muted); }
.bfye .bfye-card h3 a { text-underline-offset: .18em; }
.bfye .bfye-abbr { display: inline-block; padding: .1rem .52rem; margin-bottom: .5rem; background: var(--bfye-panel); color: #285667; font-weight: 700; }
.bfye .bfye-filters, .bfye .bfye-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.bfye .bfye-fields {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 0;
}
.bfye .bfye-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bfye .bfye-filters, .bfye .bfye-search { margin-block: 1rem; }
.bfye .bfye-search { max-width: 26rem; }
.bfye input:not([type=checkbox]), .bfye select {
    width: 100%;
    height: auto;
    min-height: 2.85rem;
    padding: .55rem .65rem;
    border-radius: .38rem;
    border: 1px solid #96adb8;
    color: var(--bfye-ink);
    background: var(--bfye-white);
    font: inherit;
    font-weight: 400;
}
.bfye [aria-invalid=true] { border: 2px solid var(--bfye-accent) !important; }
.bfye .bfye-input-note { color: var(--bfye-muted); font-size: .9rem; }
.bfye .bfye-workbench { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.bfye .bfye-results { background: var(--bfye-panel); }
.bfye .bfye-values { margin: .75rem 0; }
.bfye .bfye-values dt { color: var(--bfye-muted); font-size: .9rem; }
.bfye .bfye-values dd { margin: 0 0 .4rem; padding-bottom: .42rem; border-bottom: 1px solid var(--bfye-border); font-weight: 700; overflow-wrap: anywhere; }
.bfye .bfye-actions, .bfye .bfye-related { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; margin-block: 1rem; }
.bfye button, .bfye .bfye-primary {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .45rem .75rem;
    text-decoration: none;
    border: 1px solid #94adba;
    border-radius: .38rem;
    background: var(--bfye-white);
    color: var(--bfye-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}
.bfye button:hover { background: #e1edf0; color: var(--bfye-ink); }
.bfye .bfye-primary, .bfye .bfye-primary:visited { background: var(--bfye-accent); color: white; border-color: var(--bfye-accent); }
.bfye .bfye-primary:hover, .bfye .bfye-primary:focus-visible { background: #922a0b; color: white; border-color: #922a0b; }
.bfye .bfye-method { margin-top: 1.35rem; }
.bfye-material-profile h2 { margin-top: 1.15rem; }
.bfye .bfye-details { border: 1px solid var(--bfye-border); padding: .7rem 1rem; border-radius: .35rem; }
.bfye .bfye-details summary { cursor: pointer; font-weight: 650; }
.bfye .bfye-formula { background: var(--bfye-panel); padding: .8rem; font-weight: 650; }
.bfye .bfye-selection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.bfye .bfye-selection label { display: flex; align-items: center; font-weight: 500; }
.bfye .bfye-selection input { flex: 0 0 auto; accent-color: #285667; margin-inline: 0 .3rem; }
.bfye .bfye-scroll { overflow-x: auto; max-width: 100%; border-radius: .4rem; }
.bfye table { border-collapse: collapse; display: table; width: 100%; margin: 0; }
.bfye th, .bfye td {
    padding: .65rem;
    min-width: 6.7rem;
    border: 1px solid var(--bfye-border);
    background: var(--bfye-white);
    color: var(--bfye-ink);
    text-align: start;
    vertical-align: top;
    font-size: .92rem;
}
.bfye th { background: var(--bfye-panel); }
.bfye .bfye-chart { margin-top: .8rem; padding: .55rem; font-size: .88rem; }
.bfye .bfye-chart-row { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.bfye .bfye-bar { display: block; height: .55rem; width: var(--bfye-bar-width); max-width: 100%; background: #407d90; }
.bfye .bfye-range { position: relative; height: .65rem; margin-block: 1rem; background: #9dc6d2; border-radius: 1rem; }
.bfye .bfye-range::after { content: ""; position: absolute; top: -.25rem; left: var(--bfye-nominal-position); width: .18rem; height: 1.15rem; background: var(--bfye-accent); }

@media (max-width: 900px) {
    .bfye .bfye-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfye .bfye-workbench { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 530px) {
    .bfye .bfye-hero, .bfye .bfye-profile-hero, .bfye .bfye-visuals-pair, .bfye .bfye-cards, .bfye .bfye-filters, .bfye .bfye-fields, .bfye .bfye-selection {
        grid-template-columns: minmax(0, 1fr);
    }
    .bfye .bfye-diagram { max-height: 106px; }
}
@media print {
    .bfye .bfye-actions, .bfye .bfye-primary, .bfye .bfye-form { display: none; }
    .bfye .bfye-workbench { display: block; }
    .bfye .bfye-scroll { overflow: visible; }
}

.bfye.bfye-editorial { margin-block: 0 2.6rem; color: #173646; }
.bfye .bfye-crumb { display: flex; gap: .45rem; flex-wrap: wrap; margin: 0 0 1.4rem; font-size: .84rem; color: #425d6d; }
.bfye .bfye-editorial-hero, .bfye .bfye-editorial-design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 5vw, 4rem); }
.bfye .bfye-editorial-hero { padding-block: .35rem 1.5rem; }
.bfye .bfye-editorial-hero h1 { font-size: clamp(1.95rem, 4.1vw, 3.4rem); font-weight: 700; line-height: 1.12; color: #173646; margin: 0 0 .8rem; }
.bfye .bfye-editorial-intro p { max-width: 57ch; color: var(--bfye-muted); font-size: clamp(1rem, 1.6vw, 1.12rem); }
.bfye .bfye-editorial-hero figure, .bfye .bfye-editorial-design figure, .bfye .bfye-editorial-extra figure { margin: 0; }
.bfye .bfye-editorial-hero img, .bfye .bfye-editorial-design img, .bfye .bfye-editorial-extra img { display: block; width: 100%; height: auto; border-radius: .42rem; }
.bfye .bfye-editorial-hero figcaption, .bfye .bfye-editorial-design figcaption, .bfye .bfye-editorial-extra figcaption { font-size: .86rem; margin-top: .4rem; color: var(--bfye-muted); }
.bfye .bfye-editorial-extra { width: min(100%, 37rem); margin-block: 1.15rem; }
.bfye .bfye-detail-jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; border-block: 1px solid var(--bfye-border); padding-block: .75rem; font-weight: 600; font-size: .92rem; }
.bfye .bfye-editorial-section { padding: clamp(1.65rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--bfye-border); scroll-margin-block-start: 7rem; }
.bfye .bfye-editorial-soft { background: var(--bfye-panel); padding-inline: clamp(.85rem, 3.2vw, 2.2rem); }
.bfye .bfye-grade-notes { margin: .9rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.45rem; }
.bfye .bfye-grade-notes div { border-top: 1px solid #9bb0bc; padding-top: .75rem; }
.bfye .bfye-grade-notes dt { font-weight: 700; margin-bottom: .2rem; }
.bfye .bfye-grade-notes dd { margin: 0; color: var(--bfye-muted); }
.bfye .bfye-application-notes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.bfye .bfye-editorial-design figure { grid-column: 1; grid-row: 1; }
.bfye .bfye-editorial-design div { grid-column: 2; grid-row: 1; }
.bfye .bfye-editorial-design li { margin-block: .4rem; }
.bfye .bfye-editorial-table { margin-block: 1rem 1.35rem; }
.bfye .bfye-editorial-table :is(th,td) { white-space: normal; border-width: 0 0 1px; min-width: 0; overflow-wrap: anywhere; }
.bfye .bfye-editorial-table th { hyphens: auto; }
.bfye .bfye-editorial-table th[scope="row"] { width: 30%; font-weight: 650; background: #fff; }
.bfye .bfye-editorial-faq { border-top: 1px solid var(--bfye-border); padding: .9rem 0; }
.bfye .bfye-editorial-faq summary { cursor: pointer; font-weight: 650; }
.bfye .bfye-final-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1rem, 3vw, 2rem); margin-top: 1.4rem; background: #173646; color: #fff; border-radius: .42rem; }
.bfye .bfye-final-cta h2 { color: #fff; }
.bfye .bfye-final-cta p { margin-bottom: 0; color: #e0edf1; max-width: 65ch; }
.bfye .bfye-final-cta .bfye-primary { flex: none; }

.bfye.bfye-catalog { margin-block: 1.6rem 2.55rem; padding: 0; scroll-margin-block-start: 8rem; }
.bfye .bfye-catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.35rem; }
.bfye .bfye-catalog-heading p { margin: 0; color: var(--bfye-muted); }
.bfye .bfye-compare-entry { flex: none; font-weight: 700; }
.bfye .bfye-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1.2rem; }
.bfye .bfye-material-tile { min-width: 0; }
.bfye .bfye-material-tile h3 { font-size: clamp(1rem, 1.7vw, 1.24rem); text-align: start; margin: .6rem 0 .25rem; overflow-wrap: anywhere; }
.bfye .bfye-material-tile p { font-size: .92rem; color: #425d6d; margin: 0; }
.bfye .bfye-material-photo { display: grid; aspect-ratio: 3/2; background: #eef3f5; border-radius: .35rem; overflow: hidden; }
.bfye .bfye-material-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bfye .bfye-material-tile a, .bfye .bfye-compare-entry a, .bfye a[target="_blank"] { color: #19596e; text-decoration: underline; text-underline-offset: .16em; }
.bfye .bfye-external { font-size: .86em; display: inline-block; }
.bfye .bfye-material-tile a:hover, .bfye .bfye-compare-entry a:hover { color: #a53110; }
.bfye .screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.bfye.bfye-compare-v2 .bfye-selection { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bfye.bfye-compare-v2 .bfye-selection label { padding: .5rem; border: 1px solid var(--bfye-border); border-radius: .35rem; min-width: 0; overflow-wrap: anywhere; }
.bfye.bfye-compare-v2 .bfye-selection label:has(input:checked) { background: var(--bfye-panel); border-color: #285667; }
@media (max-width: 850px) {
    .bfye .bfye-catalog-grid, .bfye.bfye-compare-v2 .bfye-selection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bfye .bfye-editorial-hero, .bfye .bfye-editorial-design { grid-template-columns: minmax(0, 1fr); }
    .bfye .bfye-editorial-design :is(div,figure) { grid-column: auto; grid-row: auto; }
    .bfye .bfye-catalog-heading, .bfye .bfye-final-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 500px) {
    .bfye .bfye-grade-notes { grid-template-columns: minmax(0, 1fr); }
    .bfye .bfye-catalog-grid { gap: 1rem .68rem; }
}
