.yd-page-head {
    padding-block: 0;
    border: 0;
    background: #fff;
}
.yd-page-head > .yd-wrap {
    padding-block: clamp(15px,2.25vw,34px) clamp(18px,2.6vw,38px);
    border-bottom: 1px solid var(--yd-line);
    background: linear-gradient(90deg,var(--yd-blue),#86a7cc) left bottom / 44px 2px no-repeat;
}
.yd-page-head .breadcrumbs {
    margin-bottom: 9px;
    color: var(--yd-text);
}
.yd-title-row {
    display: grid;
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 10px clamp(26px,5vw,76px);
    align-items: end;
}
.yd-page-head .yd-title-row h1 {
    margin: 0;
    font-size: clamp(2rem,3.4vw,3.2rem);
    line-height: 1.17;
    text-wrap: wrap;
}
.yd-page-head .yd-title-row p {
    max-width: 37em;
    margin: 0;
    padding: 2px 0 2px 17px;
    border-inline-start: 2px solid #9bb9e0;
    font-size: 1rem;
    line-height: 1.7;
    text-wrap: pretty;
}
.yd-catalog-caption { display: flex; align-items: center; gap: clamp(10px,1.3vw,20px); min-width: 0; }
.yd-catalog-caption img { width: clamp(76px,10vw,132px); flex: none; aspect-ratio: 1.61; object-fit: cover; border-radius: var(--yd-radius-sm); }
.yd-page-head + .yd-section {
    padding-top: clamp(24px,3vw,44px);
}

/* Product categories and search sit directly above their results. */
.yd-view-catalog {
    --yd-catalog-columns: minmax(0,1fr) minmax(240px,.49fr);
    --yd-catalog-gutter: clamp(22px,3vw,44px);
}
.yd-view-catalog .yd-catalog {
    padding-top: 0;
}
.yd-catalog-tools {
    display: grid;
    grid-template-columns: var(--yd-catalog-columns);
    gap: 12px var(--yd-catalog-gutter);
    align-items: center;
    margin-bottom: clamp(18px,2.1vw,29px);
    padding: 11px 0;
    border-bottom: 1px solid var(--yd-line);
}
.yd-catalog-tools .yd-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 4px 7px;
    margin: 0;
}
.yd-catalog-tools .yd-filters a {
    min-height: 42px;
    justify-content: space-between;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid transparent;
    background: transparent;
    line-height: 1.4;
    color: var(--yd-ink);
}
.yd-catalog-tools .yd-filters a[aria-current="page"] {
    border-color: #bacfe9;
    background: #e9f2fd;
    color: var(--yd-blue-deep);
}
.yd-catalog-tools .yd-filters a:not([aria-current]):hover {
    border-color: var(--yd-line);
    background: var(--yd-paper);
    color: var(--yd-blue);
}
.yd-catalog-tools .yd-filters small {
    min-width: 2ch;
    color: var(--yd-text);
    text-align: right;
    font-size: .8rem;
}
.yd-catalog-tools .yd-search {
    display: block;
    max-width: none;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.yd-catalog-tools .yd-search > div { gap: 0; }
.yd-catalog-tools .yd-search input {
    border-radius: var(--yd-radius-sm) 0 0 var(--yd-radius-sm);
    background: var(--yd-paper);
}
.yd-catalog-tools .yd-search .yd-button {
    min-height: 45px;
    padding-inline: 16px;
    border-radius: 0 var(--yd-radius-sm) var(--yd-radius-sm) 0;
}
.yd-catalog-tools .yd-search :focus-visible {
    position: relative;
    z-index: 1;
}
.yd-view-catalog .yd-product-card a > div {
    display: flex;
    flex-direction: column;
}
.yd-view-catalog .yd-product-card:not(.yd-product-card-no-media) a > div {
    border-top: 1px solid #e5ebf3;
    background: linear-gradient(#fff,#f8fafd);
    border-radius: 0 0 var(--yd-radius) var(--yd-radius);
}
.yd-view-catalog .yd-product-card h2 { margin-top: 0; }
.yd-view-catalog .yd-product-card .yd-product-category {
    margin-top: auto;
    padding-top: 10px;
}

/* Article and data sheet titles read in sequence with their content. */
.yd-view-article .yd-editorial-page-head { padding: 0; }
.yd-view-article .yd-editorial-page-head > .yd-wrap { max-width: 940px; }
.yd-view-article .yd-editorial-page-head .yd-title-row {
    grid-template-columns: minmax(0,1fr);
    align-items: start;
}
.yd-view-article .yd-editorial-page-head .yd-title-row h1 {
    max-width: 24em;
    font-size: clamp(1.86rem,3.12vw,2.92rem);
    text-wrap: balance;
}
.yd-view-article .yd-editorial-page-head .yd-title-row p {
    max-width: 46em;
    padding: 0;
    border: 0;
}
.yd-view-article .yd-article-byline { margin-top: 12px; }
.yd-view-article .yd-guide-related {
    border: 1px solid #d9e3ef;
    border-top: 2px solid var(--yd-blue);
    border-radius: var(--yd-radius-sm);
    background: linear-gradient(145deg,#f3f7fd,#fff);
}
.yd-view-product .yd-subpage-strip {
    padding: 12px 0 0;
    border: 0;
    background: #fff;
}
.yd-view-product .yd-datasheet { padding-top: clamp(10px,1.6vw,22px); }
.yd-view-product .yd-sheet-title {
    border-bottom: 1px solid var(--yd-line);
}
.yd-view-product .yd-sheet-title h1 {
    font-size: clamp(1.95rem,3.4vw,3.2rem);
    text-wrap: pretty;
}
.yd-view-product .yd-sheet-title p { text-wrap: pretty; }
.yd-view-product .yd-sheet-body .yd-detail-media { border: 1px solid var(--yd-line); border-radius: var(--yd-radius-sm); }
.yd-view-product .yd-sheet-body .yd-detail-copy {
    padding: clamp(15px,2vw,27px);
    border: 1px solid #d9e3ef;
    border-top: 2px solid #8ca9cf;
    border-radius: var(--yd-radius-sm);
    background: linear-gradient(145deg,#f2f6fc,#fcfdff);
}
.yd-view-product .yd-sheet-body .yd-detail-copy .yd-actions:first-child { margin-top: 0; }
.yd-view-contact .yd-contact-grid { padding-top: clamp(24px,4vw,57px); }
.yd-view-contact .yd-sales-card h1 {
    font-size: clamp(1.95rem,3.4vw,3.2rem);
    line-height: 1.17;
}
.yd-view-contact .yd-contact-grid .yd-sales-card h2 { border-top-color: #c3d2e5; }
.yd-view-contact .yd-inquiry { border-radius: var(--yd-radius); box-shadow: 0 14px 29px -22px #123a7357; }
.yd-view-contact .yd-inquiry h2 { padding-bottom: 12px; border-bottom: 1px solid var(--yd-line); }

@media (min-width: 981px) {
    .yd-catalog-head .yd-title-row {
        grid-template-columns: var(--yd-catalog-columns);
        column-gap: var(--yd-catalog-gutter);
        align-items: center;
    }
}
@media (max-width: 980px) {
    .yd-catalog-tools { grid-template-columns: minmax(0,1fr); }
    .yd-catalog-tools .yd-filters a { flex: 1 0 auto; }
}

@media (max-width: 680px) {
    .yd-title-row { grid-template-columns: minmax(0,1fr); }
    .yd-page-head .yd-title-row p {
        padding: 0;
        border: 0;
    }
    .yd-catalog-tools { padding-block: 10px; }
    .yd-catalog-tools .yd-filters {
        display: grid;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .yd-catalog-tools .yd-filters a { border-color: var(--yd-line); }
    .yd-view-product .yd-sheet-body { grid-template-columns: minmax(0,1fr); }
}
