:root {
    --blue: #071cff;
    --navy: #31506b;
    --text: #303030;
    --muted: #707070;
    --line: #ddd;
    --soft: #f6f7f8
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    font-size: 12px
}

a {
    text-decoration: none;
    color: inherit
}

.page {
    max-width: 1200px;
    margin: auto
}

.detail-breadcrumb {
    font-size: 14px;
    color: #9b9b9b;
    padding: 28px 28px 9px;
    text-transform: uppercase
}

.detail-breadcrumb a {
    color: #888
}

.product-hero {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 410px;
    padding: 0 28px 22px;
    align-items: center
}

.product-copy {
    padding-right: 30px
}

.product-family {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px
}

.product-copy h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--blue);
    margin: 0 0 14px
}

.product-copy .lead {
    font-size: 13px;
    line-height: 1.7;
    color: #555;
    margin: 0 0 18px
}

.product-copy .sublead {
    font-size: 15px;
    color: #888;
    line-height: 1.55;
    margin-bottom: 20px
}

.cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.btn {
    border: 1px solid #d2d2d2;
    background: #fff;
    padding: 9px 14px;
    font-size: 11px;
    color: #444;
    cursor: pointer
}

.btn.primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff
}

.product-image-wrap {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center
}

.product-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    cursor: zoom-in
}

.quick-specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.quick-spec {
    padding: 17px 10px;
    text-align: center;
    border-right: 1px solid var(--line)
}

.quick-spec:last-child {
    border-right: 0
}

.quick-spec small {
    display: block;
    font-size: 15px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 7px
}

.quick-spec strong {
    font-size: 13px;
    font-weight: 400;
    color: var(--navy)
}

.detail-tabs {
    display: flex;
    gap: 27px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    overflow: auto;
    white-space: nowrap
}

.detail-tab {
    font-size: 14px;
    color: #555;
    padding: 13px 0;
    border: 0;
    background: none;
    border-bottom: 2px solid transparent;
    cursor: pointer
}

.detail-tab.active {
    color: #1478b8;
    border-bottom-color: #1478b8
}

.tab-panel {
    display: none
}

.tab-panel.active {
    display: block
}

.section {
    padding: 40px 28px
}

.section-title {
    text-align: center;
    color: var(--navy);
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 28px
}

.overview {
    display: grid;
    grid-template-columns: 23% 77%;
    gap: 42px
}

.overview h2 {
    font-size: 21px;
    color: var(--navy);
    font-weight: 400;
    margin: 0
}

.overview p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin: 0 0 12px
}

.overview ul {
    padding-left: 18px;
    margin: 12px 0
}

.overview li {
    font-size: 16px;
    color: #555;
    line-height: 1.8
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 26px
}

.feature-card {
    border: 1px solid #ddd;
    padding: 16px;
    display: flex;
    gap: 13px;
    background: #fff
}

.feature-number {
    font-size: 15px;
    color: #1478b8
}

.feature-card h3 {
    font-size: 18px;
    color: var(--navy);
    font-weight: 500;
    margin: 0 0 7px
}

.feature-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    margin: 0
}

.technical-section {
    background: var(--soft)
}

.tech-layout {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 25px
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

.tech-table td {
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px
}

.tech-table td:first-child {
    width: 38%;
    color: #777;
    background: #fafafa
}

.dimension-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 18px;
    text-align: center
}

.dimension-box h3 {
    font-size: 15px;
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 12px
}

.dimension-box img {
    width: 100%;
    height: 220px;
    object-fit: contain
}

.download-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px
}

.application-card {
    border: 1px solid #ddd;
    background: #fff
}

.application-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    display: block
}

.application-card div {
    padding: 11px
}

.application-card h3 {
    font-size: 14px;
    font-weight: 400;
    color: #444;
    margin: 0 0 6px
}

.application-card p {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin: 0
}

.video-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.video-card {
    border: 1px solid #ddd;
    min-height: 180px;
    padding: 25px;
    background: linear-gradient(135deg, #f7f8fa, #fff);
    text-align: center
}

.video-icon {
    font-size: 30px;
    color: var(--blue);
    margin-bottom: 12px
}

.video-card h3 {
    font-size: 12px;
    color: var(--navy);
    font-weight: 400
}

.video-card p {
    font-size: 10px;
    color: #777;
    line-height: 1.6
}

.faq {
    max-width: 900px;
    margin: auto
}

.faq-item {
    border-bottom: 1px solid #ddd
}

.faq-question {
    width: 100%;
    text-align: left;
    background: #fff;
    border: 0;
    padding: 15px 0;
    font-size: 11px;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between
}

.faq-answer {
    display: none;
    font-size: 10px;
    line-height: 1.7;
    color: #666;
    padding: 0 0 15px
}

.faq-item.open .faq-answer {
    display: block
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 9px
}

.related-product {
    border: 1px solid #ddd;
    background: #fff;
    text-align: center;
    min-height: 135px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between
}

.related-product img {
    height: 85px;
    width: 100%;
    object-fit: contain
}

.related-product span {
    font-size: 8px;
    color: #1478b8;
    line-height: 1.3
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px
}

.article-card {
    border: 1px solid #ddd;
    padding: 16px
}

.article-card span {
    font-size: 14px;
    color: #999
}

.article-card h3 {
    font-size: 16px;
    font-weight: 400;
    color: var(--navy);
    margin: 8px 0
}

.article-card p {
    font-size: 12px;
    color: #777;
    line-height: 1.6
}

.article-card a {
    font-size: 12px;
    color: #1478b8
}

.other-nav {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 20px auto 0
}

.other-nav a {
    font-size: 10px;
    color: #1478b8
}

.inquiry-band {
    background: #f3f4f6;
    text-align: center;
    padding: 34px 20px
}

.inquiry-band h2 {
    font-size: 18px;
    color: var(--navy);
    font-weight: 400;
    margin: 0 0 8px
}

.inquiry-band p {
    font-size: 10px;
    color: #777;
    margin: 0 0 16px
}

@media(max-width:900px) {
    .product-hero {
        grid-template-columns: 1fr
    }
    .product-copy {
        padding: 15px 0
    }
    .product-image-wrap {
        height: 280px
    }
    .product-image {
        height: 270px
    }
    .quick-specs {
        grid-template-columns: repeat(3, 1fr)
    }
    .quick-spec:nth-child(3) {
        border-right: 0
    }
    .overview,
    .tech-layout {
        grid-template-columns: 1fr
    }
    .application-grid {
        grid-template-columns: repeat(2, 1fr)
    }
    .related-grid {
        grid-template-columns: repeat(4, 1fr)
    }
    .article-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:600px) {
    .detail-breadcrumb {
        padding: 20px 15px 8px
    }
    .product-hero {
        padding: 0 15px 20px
    }
    .product-copy h1 {
        font-size: 45px
    }
    .product-copy .lead {
        font-size: 19px
    }
    .product-image-wrap {
        height: 230px
    }
    .product-image {
        height: 220px
    }
    .quick-specs {
        grid-template-columns: repeat(2, 1fr)
    }
    .detail-tabs {
        padding: 0 15px;
        gap: 18px
    }
    .section {
        padding: 28px 15px
    }
    .feature-grid,
    .application-grid,
    .video-panel,
    .article-grid {
        grid-template-columns: 1fr
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* Drawing selector in Document Downloads (shown when a product has several drawings) */
.doc-picker { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 18px; }
.doc-picker-label { font-size:12px; color:var(--muted); margin-right:4px; }
.doc-chip { font:inherit; font-size:12px; padding:7px 14px; border:1px solid var(--line); background:#fff; color:var(--text); cursor:pointer; }
.doc-chip:hover { border-color:var(--navy); }
.doc-chip.active { background:var(--navy); border-color:var(--navy); color:#fff; }
.doc-chip:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

/* Drawing-details pop-up: opens over the four cards when a stroke is selected */
#panel-downloads .feature-grid { position: relative; }
.doc-popup {
    position: absolute; top: 0; left: 0; right: 0; z-index: 5;
    background: #fff; border: 1px solid var(--navy);
    box-shadow: 0 18px 44px rgba(20, 40, 60, .22);
    padding: 18px 20px 20px; transform-origin: 50% 0;
}
.doc-popup[hidden] { display: none; }
.doc-popup.pop { animation: docPop .42s cubic-bezier(.2, .9, .3, 1.15) both; }
.doc-popup.closing { animation: docPopOut .2s ease-in both; }
@keyframes docPop {
    0%   { opacity: 0; transform: translateY(22px) scale(.93); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.012); }
    100% { opacity: 1; transform: none; }
}
@keyframes docPopOut {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateY(10px) scale(.97); }
}
.doc-popup-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.doc-popup-kicker { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.doc-popup-head h3 { margin: 0; font-size: 20px; font-weight: 500; color: var(--navy); }
.doc-popup-nav { display: flex; align-items: center; gap: 6px; flex: none; }
.doc-popup-count { font-size: 12px; color: var(--muted); min-width: 44px; text-align: center; }
.doc-popup-icon { font: inherit; font-size: 20px; line-height: 1; width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; }
.doc-popup-icon:hover:not(:disabled) { border-color: var(--navy); background: var(--navy); color: #fff; }
.doc-popup-icon:disabled { opacity: .35; cursor: default; }
.doc-popup-close { margin-left: 8px; font-size: 22px; }
.doc-popup-icon:focus-visible, .doc-popup-btn:focus-visible, .doc-popup-preview:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.doc-popup-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.doc-popup-preview { position: relative; display: block; border: 1px solid var(--line); background: #fff; overflow: hidden; aspect-ratio: 760 / 538; }
.doc-popup-preview img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.doc-popup-preview span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: rgba(49, 80, 107, .9); transform: translateY(100%); transition: transform .25s ease; }
.doc-popup-preview:hover img { transform: scale(1.03); }
.doc-popup-preview:hover span, .doc-popup-preview:focus-visible span { transform: none; }
.doc-popup-list { margin: 0; }
.doc-popup-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.doc-popup-row dt { color: var(--muted); }
.doc-popup-row dd { margin: 0; color: var(--text); font-weight: 500; text-align: right; }
.doc-popup.pop .doc-popup-row { animation: docRow .35s ease both; animation-delay: calc(.12s + var(--n) * 45ms); }
@keyframes docRow { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.doc-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.doc-popup-btn { font: inherit; font-size: 13px; padding: 9px 16px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; display: inline-block; }
.doc-popup-btn:hover { background: #eef3f7; }
.doc-popup-btn.primary { background: var(--navy); color: #fff; }
.doc-popup-btn.primary:hover { background: #274259; }
@media (max-width: 760px) {
    .doc-popup { padding: 14px; }
    .doc-popup-head { flex-direction: column; }
    .doc-popup-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .doc-popup.pop, .doc-popup.closing, .doc-popup.pop .doc-popup-row { animation: none; }
    .doc-popup-preview img, .doc-popup-preview span { transition: none; }
}
