/* Houston Wire Buyers — "reel-tag datasheet" design system */
:root {
  --ink: #0F1B2D; --ink-2: #1B2A42; --copper: #B8622B; --copper-btn: #A3531E; --copper-text: #9A4F20; --copper-lt: #D9874E;
  --paper: #F5F2EC; --paper-2: #EDE8DF; --white: #FFFFFF; --steel: #5B6675; --line: #D9D3C7; --tag: #F2C230;
  --f-head: "Archivo", "Arial Narrow", Arial, sans-serif; --f-body: "Source Sans 3", "Segoe UI", Arial, sans-serif; --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1200px; --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.65 var(--f-body); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--copper-text); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--ink); text-decoration-color: var(--copper); }
:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--tag); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.idx { font: 700 .72rem/1 var(--f-mono); color: var(--copper-text); letter-spacing: .08em; display: inline-block; border: 1px solid var(--copper); border-radius: 3px; padding: 4px 6px; margin-right: 12px; vertical-align: .35em; }

/* Top bar + header */
.topbar { background: var(--ink); color: #C9D1DC; font: 500 .8rem/1 var(--f-mono); }
.topbar__in { display: flex; justify-content: space-between; gap: 12px; padding: 9px 24px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--copper-lt); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__word { display: flex; flex-direction: column; font-family: var(--f-head); line-height: .95; }
.brand__top { font-weight: 800; font-size: 1.28rem; letter-spacing: .06em; }
.brand__bot { font-weight: 700; font-size: .86rem; letter-spacing: .2em; color: var(--copper-text); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a { display: block; padding: 8px 10px; font: 600 .95rem/1.2 var(--f-body); color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--copper); color: var(--ink); }
.nav__menu { display: none; }
.nav__menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu summary span { display: block; height: 2px; background: var(--ink); }
.nav__cta { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius); font: 700 1rem/1.1 var(--f-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 14px 22px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; margin-top: 10px; }
.btn--copper { background: var(--copper-btn); color: var(--white); }
.btn--copper:hover { background: #87441A; color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

/* Breadcrumbs */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.crumbs ol { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 4px; font: 500 .8rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.crumbs li { display: inline-flex; align-items: center; color: var(--steel); }
.crumbs li + li::before { content: "/"; color: var(--copper); margin: 0 8px 0 4px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--copper-text); text-decoration: underline; }

/* Hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 44px; align-items: center; }
.hero__text { animation: rise .4s ease-out both; }
.eyebrow { font: 700 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--copper-text); margin-bottom: 14px; }
.lede { font-size: 1.15rem; color: #26344A; max-width: 64ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero--slim { padding: 56px 0; }
.media { margin: 0; position: relative; }
.media img { width: 100%; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(15,27,45,.55); object-fit: cover; }
.hero__media img { aspect-ratio: 4 / 3.4; }
.media figcaption { font: 500 .75rem/1.3 var(--f-mono); color: var(--steel); margin-top: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Layout: article + rail */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-top: 44px; padding-bottom: 56px; align-items: start; }
.article { max-width: 760px; }
.prose-sec { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.prose-sec:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.prose-sec h2 { position: relative; }
.prose-sec ul, .prose-sec ol, .faq ul, .faq ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose-sec li { margin: .3em 0; }
.prose-sec li::marker { color: var(--copper); }
.rail { position: sticky; top: 96px; display: grid; gap: 18px; }
.tag { position: relative; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--copper); border-radius: var(--radius); padding: 20px 20px 14px; box-shadow: 0 10px 28px -22px rgba(15,27,45,.6); }
.tag__hole { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.tag__title { font: 700 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--steel); margin-bottom: 12px; }
.tag__spec { margin: 0 0 12px; border-top: 1px dashed var(--line); }
.tag__row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font: 500 .82rem/1.35 var(--f-mono); }
.tag__row dt { color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.tag__row dd { margin: 0; text-align: right; font-weight: 700; }
.tag__facts { list-style: none; margin: 0; padding: 0; font-size: .95rem; line-height: 1.45; }
.tag__facts li { padding: 7px 0 7px 18px; position: relative; }
.tag__facts li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 2px var(--ink); }
.rail-card { background: var(--ink); color: #DCE2EA; border-radius: var(--radius); padding: 20px; }
.rail-card__title { font: 800 1.15rem/1.2 var(--f-head); color: var(--white); margin-bottom: 6px; }
.rail-card__small { font: 500 .75rem/1.4 var(--f-mono); color: #9AA6B6; margin: 12px 0 0; }
.rail-card .btn--ink { background: transparent; border-color: rgba(255,255,255,.55); }
.rail-card .btn--ink:hover { background: var(--white); color: var(--ink); }

/* Datasheets and tables */
.datasheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 32px; }
.datasheet + .prose-sec { border-top: 0; margin-top: 0; padding-top: 0; }
.datasheet__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.datasheet__fig { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.datasheet__fig--wide { margin-bottom: 18px; }
.diagram { width: 100%; height: auto; }
.map a:hover text { text-decoration: underline; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec caption { text-align: left; font: 700 .75rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); padding-bottom: 8px; }
.spec th, .spec td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec thead th { font: 700 .75rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; background: var(--ink); color: var(--white); border-bottom: 0; }
.spec tbody th { font-weight: 700; color: var(--ink); }
.spec td { font-family: var(--f-mono); font-size: .86rem; }
.spec--list td { font-family: var(--f-body); font-size: .95rem; }
.spec tbody tr:hover { background: #FBF6EE; }
.spec--chart tbody th a { font-family: var(--f-mono); font-weight: 700; }
.spec code { font-family: var(--f-mono); font-size: .8rem; background: var(--paper); padding: 2px 5px; border-radius: 3px; word-break: break-word; }
.note { font-size: .88rem; color: var(--steel); }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font: 700 .85rem/1.3 var(--f-mono); }
.pager a { text-decoration: none; }

/* Chips */
.chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .15s, background .15s; }
.chips a:hover { border-color: var(--copper); background: #FBF1E8; }
.chips--mono a { font-family: var(--f-mono); font-size: .82rem; font-weight: 700; }
.chips--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.chips--grid a { display: block; text-align: center; border-radius: var(--radius); }

/* FAQ */
.faq { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font: 700 1.05rem/1.35 var(--f-head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font: 700 1.4rem/1 var(--f-mono); color: var(--copper); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 8px; }

/* Keep going */
.keep { background: var(--white); border-top: 1px solid var(--line); padding: 40px 0; }
.keep__title { font-size: 1.4rem; }
.keep__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 28px; }
.keep__list a { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.keep__list a:hover .keep__name { color: var(--copper-text); text-decoration: underline; }
.keep__kind { font: 700 .7rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--steel); }
.keep__name { font-weight: 700; }

/* CTA band with conductor stripe */
.cta-band { background: var(--ink); color: var(--white); position: relative; }
.conductor { height: 14px; background: linear-gradient(180deg, var(--ink-2) 0 3px, var(--copper) 3px 11px, var(--ink-2) 11px 14px); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding-top: 40px; padding-bottom: 44px; }
.cta-band__lead { font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.2 var(--f-head); max-width: 30ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Home */
.strip { background: var(--ink); color: var(--white); }
.strip__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.strip__in > div { padding: 18px 16px; border-left: 1px solid rgba(255,255,255,.12); }
.strip__in > div:first-child { border-left: 0; }
.strip__k { display: block; font: 700 .7rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--copper-lt); margin-bottom: 6px; }
.strip__v { font: 700 1.05rem/1.25 var(--f-head); }
.home-grid { padding: 44px 0 8px; }
.home-h2 { margin-top: 30px; }
.fams { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 28px; }
.fam { border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 18px; }
.fam h3 { margin: 0 0 6px; font-size: 1.05rem; }
.fam ul { list-style: none; margin: 0; padding: 0; }
.fam a { display: block; padding: 4px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.fam a:hover { color: var(--copper-text); text-decoration: underline; }
.home-map { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.home-map > svg { border: 1px solid var(--line); border-radius: var(--radius); }

/* Index lists + sitemap */
.index-list { list-style: none; margin: 0; padding: 0; }
.index-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.index-list a { font: 700 1.1rem/1.3 var(--f-head); text-decoration: none; }
.index-list a:hover { text-decoration: underline; }
.index-list p { margin: 4px 0 0; color: var(--steel); font-size: .95rem; }
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 36px; padding-top: 36px; padding-bottom: 36px; }
.sitemap h2 { font-size: 1.2rem; border-bottom: 3px solid var(--ink); padding-bottom: 6px; }
.sitemap ul { list-style: none; margin: 0 0 18px; padding: 0; }
.sitemap li a { display: block; padding: 4px 0; text-decoration: none; }
.sitemap li a:hover { text-decoration: underline; }
.sitemap__img { margin-bottom: 40px; }

/* Offer form */
.offer { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--copper); border-radius: var(--radius); padding: 24px; margin: 0 0 32px; scroll-margin-top: 100px; }
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 12px; border: 1px solid #BDB5A6; border-radius: var(--radius); font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--paper); }
.form input:focus, .form textarea:focus { outline: 3px solid var(--tag); border-color: var(--ink); background: var(--white); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form__hint { font-size: .9rem; color: var(--steel); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.offer__err { background: #FCEDEA; border: 1px solid #E3A99B; color: #7A2312; padding: 10px 14px; border-radius: var(--radius); }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Footer */
.site-footer { background: #0A1320; color: #BAC4D2; padding: 48px 0 110px; font-size: .95rem; }
.site-footer a { color: #E6EBF1; text-decoration: none; }
.site-footer a:hover { color: var(--copper-lt); text-decoration: underline; }
.site-footer h2 { font: 700 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--copper-lt); margin: 0 0 14px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1.4fr 1fr; gap: 32px; }
.footer-top ul { list-style: none; margin: 0 0 10px; padding: 0; }
.footer-top li { padding: 3px 0; line-height: 1.35; }
.cols-2 { columns: 2; column-gap: 16px; }
.brand--footer { color: var(--white); margin-bottom: 14px; }
.brand--footer .brand__bot { color: var(--copper-lt); }
.footer-nap address { font-style: normal; line-height: 1.6; }
.footer-note { font-size: .85rem; color: #8F9BAD; margin-top: 12px; }
.footer-sizes { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 22px; }
.footer-sizes p a { display: inline-block; margin: 0 12px 6px 0; font: 600 .82rem/1.4 var(--f-mono); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: .82rem; color: #8F9BAD; }

/* Floating call button */
.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; background: var(--copper-btn); color: var(--white); border-radius: 999px; text-decoration: none; box-shadow: 0 10px 26px -8px rgba(15,27,45,.65), 0 0 0 3px rgba(255,255,255,.9); transition: transform .15s, background .15s; }
.call-fab:hover { background: #87441A; color: var(--white); transform: translateY(-2px); }
.call-fab svg { width: 26px; height: 26px; flex: none; animation: ring 3.2s ease-in-out infinite; }
.call-fab__label { display: flex; flex-direction: column; line-height: 1.1; }
.call-fab__small { font: 700 .66rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.call-fab__num { font: 800 1.05rem/1.2 var(--f-head); }
@keyframes ring { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 94% { transform: rotate(14deg); } 97% { transform: rotate(-8deg); } }

/* Responsive */
@media (max-width: 1080px) {
  .nav__list--desk { display: none; }
  .nav__menu { display: block; position: relative; }
  .nav__menu .nav__list { display: none; }
  .nav__menu[open] .nav__list { display: flex; flex-direction: column; position: absolute; right: 0; top: 54px; width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 18px 40px -20px rgba(15,27,45,.6); }
  .nav__menu .nav__cta { display: block; padding: 6px; }
  .nav__menu .nav__cta a { border: 0; color: var(--white); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero { padding: 30px 0; }
  .hero__in, .layout, .datasheet__grid, .home-map { grid-template-columns: 1fr; }
  .hero__in { gap: 24px; }
  .layout { gap: 30px; padding-top: 30px; }
  .rail { position: static; }
  .strip__in { grid-template-columns: 1fr 1fr; }
  .strip__in > div:nth-child(3) { border-left: 0; }
  .topbar__in span { display: none; }
  .topbar__in { justify-content: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav__offer { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .datasheet, .offer { padding: 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .call-fab { right: 12px; bottom: 12px; padding: 12px 16px 12px 12px; }
  .call-fab__small { display: none; }
  .call-fab__num { font-size: 1rem; }
  .brand__top { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .call-fab, .site-header, .topbar, .cta-band, .rail-card { display: none; } }

/* Datasheets inside the reading column: figure full width above its table */
.article .datasheet__grid { grid-template-columns: 1fr; }
.article .datasheet__fig { max-width: 640px; }
