/* Layout pass from Laura's Nov 10 review of deploy-preview-4, plus Ben's Nov 10 list.
   Linked after brand.css on every page.

   The system, in one place:
   - One grid. A label column on the left and one content column (.9fr / 2.1fr, the same
     split the prose sections already used). Section labels sit in the left column; text,
     tables, photos and captions all start on the content column's left edge.
   - One section spacing value (--sec).
   - Two small-label sizes: 13px labels and 18px item titles.
   - One primary button style: Copper Vein.
   - Neue Haas Grotesk Text for body copy, Display only for headlines. */

:root {
  --sec: clamp(48px, 6vw, 88px);
  --gap: clamp(16px, 4vw, 56px);
  --lab: 13px;
  --item: 18px;
}

/* ---------- One grid ---------- */

/* .cols: the .split grid for sections with no label. Every child goes in the content column. */
.cols { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); align-items: start; }
.cols > * { grid-column: 2; }
@media (width <= 900px) {
  .cols { grid-template-columns: 1fr; }
  .cols > * { grid-column: 1; }
}

/* Hero: the three tags become one eyebrow line above the headline, all in the content column */
.hero > .wrap { align-items: start; row-gap: 0; }
.hero .kick, .hero h1 { grid-column: 2; }
.hero .kick { margin-bottom: 18px; }
.hero .kick span { color: var(--gray-strata); }
@media (width <= 900px) {
  .hero .kick, .hero h1 { grid-column: 1; }
  .hero .kick { margin-bottom: 12px; }
}
/* Headline about a third smaller, so both buttons sit above the fold at 1440x900 */
h1.mega { font-size: clamp(38px, 6.2vw, 86px); }

/* Video caption on the content edge */
.reel figcaption.wrap { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); }
.reel figcaption.wrap > span { grid-column: 2; }
@media (width <= 900px) {
  .reel figcaption.wrap { grid-template-columns: 1fr; }
  .reel figcaption.wrap > span { grid-column: 1; }
}

/* Product photo inside the content column */
.shot.in-grid > .wrap { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); }
.shot.in-grid picture, .shot.in-grid figcaption { grid-column: 2; max-width: 520px; }
@media (width <= 900px) {
  .shot.in-grid > .wrap { grid-template-columns: 1fr; }
  .shot.in-grid picture, .shot.in-grid figcaption { grid-column: 1; }
}

/* Diagram plates: the tinted panel goes on the drawing, so the caption lines up with the text */
figure.plate { background: none; padding: 0; }
figure.plate > svg { background: var(--paper-2); padding: clamp(14px, 2vw, 26px); }

/* Cycle time: text gets the full column, photo below it */
.cycle-photo { margin: 30px 0 26px; }

/* ---------- One section spacing value ---------- */

section > .wrap,
.hero > .wrap,
section.tight > .wrap,
.shot > .wrap,
.field > .wrap,
.approvals > .wrap,
.plate-data > .wrap,
.footer-sub .wrap { padding-block: var(--sec); }

/* ---------- Type: two label sizes ---------- */

.kick, .label, caption, thead th, dl.spec dt, .contact dt, .crumbs,
figcaption, .shot figcaption, .reel figcaption, dl .row dt, dl .row .cue { font-size: var(--lab); }
h3, dl.notes dt, dl.qa dt, dl.contents dt, tbody th { font-size: var(--item); }

/* Body text in the Text cut. The dark-band paragraph was picking up Display from `.field p`. */
.field .sub { font-family: var(--f); letter-spacing: 0; word-spacing: normal; }

/* Dark band: "No seals. No wear." on its own line, and a bigger paragraph */
.field p span { display: block; }
.field .sub { font-size: clamp(17px, 1.45vw, 20px); max-width: 56ch; }

/* ---------- One primary button style ---------- */

.acts a.p,
.sub-form button[type="submit"] {
  background: var(--copper-vein);
  color: #fff;
  border: 0;
  border-radius: 2px;
  padding: 12px 20px;
  font: 600 14px/1.55 var(--f);
  cursor: pointer;
}
.acts a.p:hover,
.sub-form button[type="submit"]:hover { background: var(--blue); text-decoration: none; }

/* Signup form: the dropdown matches the email field */
.sub-form input[type="email"],
.sub-form select {
  font: 400 15px/1.55 var(--f);
  padding: 12px 14px;
  height: auto;
  background-color: var(--paper);
}
.sub-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231C2C37' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 10px 6px;
}

/* Signup band on the grid: label left, form in the content column */
.footer-sub .sub-form { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); align-items: start; }
.footer-sub .sub-form > .label { grid-column: 1; padding-top: 1px; }
.footer-sub .sub-form > form { grid-column: 2; margin-top: 0; }
@media (width <= 900px) {
  .footer-sub .sub-form { grid-template-columns: 1fr; }
  .footer-sub .sub-form > .label, .footer-sub .sub-form > form { grid-column: 1; }
  .footer-sub .sub-form > form { margin-top: 14px; }
}

/* ---------- Home page sections ---------- */

/* Stats: final numbers, no count-up, "+" the same size as the number */
.stats .figs .n { font-size: clamp(40px, 4.4vw, 64px); }

/* Certification and registration: two columns of three */
.certs ul.plain { columns: auto; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 40px; }
.certs ul.plain li { font-size: 15px; }
@media (width <= 560px) { .certs ul.plain { display: block; } }

/* Closing call to action */
.cta .lede { color: var(--ink-2); }
.cta .acts { margin-top: 22px; align-items: center; }
.acts a.tel { color: var(--blue-current); font-size: 14px; font-weight: 600; padding: 12px 4px; white-space: nowrap; }
.acts a.tel:hover { color: var(--copper-vein); }

/* The range: rows become cards on phones, so Bus and Drive are never cut off */
@media (width <= 700px) {
  .tablewrap:has(table.range) { overflow: visible; }
  table.range { min-width: 0; }
  table.range thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.range, table.range tbody, table.range tr, table.range th, table.range td { display: block; }
  table.range tr { border: 1px solid rgba(169, 179, 186, .35); border-radius: 2px; padding: 14px 16px 6px; }
  table.range tr + tr { margin-top: 12px; }
  table.range tbody th { white-space: normal; padding: 0 0 8px; border: 0; }
  table.range td { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 9px 0; border: 0; border-top: 1px solid rgba(169, 179, 186, .2); }
  table.range td::before { content: attr(data-label); color: var(--on-granite-2); font-size: var(--lab); font-weight: 600; }
  table.range tbody tr:last-child td { border-top: 1px solid rgba(169, 179, 186, .2); }
}

/* ---------- Header: one-row header with a menu button on phones ---------- */

.menu-btn { display: none; }
@media (width <= 820px) {
  .masthead { padding-block: 16px; }
  .masthead .wrap { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
  .masthead.has-menu .menu-btn {
    display: inline-flex; align-items: center; gap: 9px; margin-left: auto;
    font: 600 14px/1 var(--f); color: var(--blue-current);
    background: none; border: 0; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--gray-strata);
    padding: 10px 14px; cursor: pointer;
  }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after {
    display: block; width: 16px; height: 1.6px; background: currentColor; position: relative;
  }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn .bars::before { top: -5px; }
  .menu-btn .bars::after { top: 5px; }
  .masthead.open .menu-btn .bars { background: transparent; }
  .masthead.open .menu-btn .bars::before { top: 0; transform: rotate(45deg); }
  .masthead.open .menu-btn .bars::after { top: 0; transform: rotate(-45deg); }
  .masthead.has-menu nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin: 14px 0 0; }
  .masthead.has-menu.open nav { display: flex; }
  .masthead.has-menu nav a { font-size: 16px; padding: 13px 0; border-top: 1px solid var(--rule); }
}

/* ---------- Footer, after Aslan's ---------- */

footer.site-foot { background: var(--blue-current); color: var(--on-granite); border-top: 0; }
footer.site-foot .foot-main {
  display: grid; grid-template-columns: .9fr 2.1fr; gap: 36px var(--gap); padding-block: var(--sec);
}
.foot-logo { display: inline-block; }
.foot-logo img { height: 28px; width: auto; display: block; }
.foot-logo:hover { text-decoration: none; }
footer.site-foot .foot-brand p { color: var(--on-granite-2); font-size: 14px; line-height: 1.6; margin-top: 18px; }
footer.site-foot .social { margin-top: 18px; }
footer.site-foot a.icon { width: auto; height: auto; box-shadow: none; color: var(--on-granite); background: none; }
footer.site-foot a.icon svg { width: 20px; height: 20px; }
footer.site-foot a.icon:hover { color: #fff; background: none; box-shadow: none; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px var(--gap); }
footer.site-foot .label { color: var(--on-granite); margin: 0 0 4px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { color: var(--on-granite-2); font-size: 14px; line-height: 1.5; margin-top: 10px; }
.foot-cols a { color: var(--on-granite); }
.foot-cols a:hover { color: #fff; }
.foot-cols .nowrap { white-space: nowrap; }
footer.site-foot .foot-base { border-top: 1px solid rgba(169, 179, 186, .22); }
footer.site-foot .foot-base .wrap { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-block: 20px; }
footer.site-foot .foot-base p { color: var(--on-granite-2); font-size: var(--lab); line-height: 1.6; }
footer.site-foot .foot-base a { color: var(--on-granite-2); text-decoration: underline; text-underline-offset: 3px; }
footer.site-foot .foot-base a:hover { color: #fff; }
footer.site-foot :focus-visible { outline-color: var(--on-granite); }
@media (width <= 900px) {
  footer.site-foot .foot-main { grid-template-columns: 1fr; }
}
@media (width <= 620px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > div:last-child { grid-column: 1 / -1; }
}
@media print { footer.site-foot { display: none !important; } }

/* The range table in the content column: a little less padding so values don't break mid-unit */
table.range th, table.range td { padding-right: 18px; }

/* Signup button the same height as the fields beside it */
.sub-form button[type="submit"] { align-self: end; min-height: 47.25px; }

/* Phones: the eyebrow breaks cleanly before "Patent pending" instead of leaving a dot hanging,
   and the dark-band heading doesn't leave one word on its own line */
@media (width <= 480px) {
  .hero .kick span:last-of-type { display: block; height: 0; overflow: hidden; }
}
.field p { text-wrap: balance; }
.field .sub { text-wrap: pretty; }

/* ---------- Pumps, Technology, Applications (Nov 11 pass) ---------- */

/* In-page signup ("Get the performance data"): title in the label column, text and form in the content column */
.sub-form.block { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); align-items: start; }
.sub-form.block > h2 { grid-column: 1; grid-row: 1 / span 2; }
.sub-form.block > .lede, .sub-form.block > form { grid-column: 2; }
.sub-form.block > .lede { margin-top: 0 !important; }
.sub-form.block .row { max-width: 640px; }
@media (width <= 900px) {
  .sub-form.block { grid-template-columns: 1fr; }
  .sub-form.block > h2, .sub-form.block > .lede, .sub-form.block > form { grid-column: 1; grid-row: auto; }
  .sub-form.block > .lede { margin-top: 12px !important; }
}

/* Two photos side by side in the content column */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0 26px; align-items: start; }
.photo-pair figure { margin: 0; }
@media (width <= 600px) { .photo-pair { grid-template-columns: 1fr; } }

/* A section intro that's a label plus a kicker */
.split > div > .kick + h2 { margin-top: 10px; }
.photo-pair img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.prose + dl.notes { margin-top: 28px; }

/* ---------- Product pages: Rack CDU, Row & Facility, OEM Custom (Nov 12 pass) ---------- */

/* Other lines: the list sits in the content column, with room for each name on one line */
.split dl.contents div { grid-template-columns: minmax(200px, 34%) 1fr; }
@media (width <= 560px) { .split dl.contents div { grid-template-columns: 1fr; } }
dl.contents dd .small { white-space: nowrap; }

/* Bigger tap area for breadcrumbs and pump-line links, without moving anything */
.crumbs a, dl.contents dt a, dl.notes dt a, table.range th a { display: inline-block; padding-block: 5px; margin-block: -5px; }

/* ---------- News (Nov 16) ---------- */

/* Index: one row per post on the grid. Date in the label column, the rest in the content column */
.news-list { list-style: none; margin: 40px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.news-list > li { display: grid; grid-template-columns: .9fr 2.1fr; column-gap: var(--gap); padding-block: 28px; border-top: 1px solid var(--rule); }
.news-list > li > .label { color: var(--ink-3); padding-top: 1px; }
.news-list .kick { color: var(--gray-strata); }
.news-list h2 { margin-top: 8px; font-size: clamp(21px, 2vw, 28px); line-height: 1.15; max-width: 34ch; }
.news-list h2 a { color: inherit; }
.news-list h2 a:hover { color: var(--copper-vein); text-decoration: none; }
.news-list .summary { color: var(--ink-2); max-width: var(--text); margin-top: 10px; }
.news-list .more { margin-top: 12px; font-size: 14px; font-weight: 600; }
.news-foot { margin-top: 26px; }
.nowrap { white-space: nowrap; }
@media (width <= 900px) {
  .news-list > li { grid-template-columns: 1fr; row-gap: 6px; }
}

/* Post: everything in the content column, like the product pages */
.post h1 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; max-width: 24ch; text-wrap: balance; }
.post .kick { color: var(--gray-strata); }
.post .post-photo { margin: 30px 0 28px; max-width: 520px; }
.post .post-h2 { margin-top: 38px; }
.post h2 + dl.contents { margin-top: 10px; }
.post .quote { margin: 34px 0 0; padding-left: 22px; border-left: 2px solid var(--copper-vein); max-width: var(--text); }
.post .quote blockquote { margin: 0; }
.post .quote blockquote p { font-family: "neue-haas-grotesk-display", var(--f); font-size: clamp(20px, 2vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; color: var(--blue-current); text-wrap: balance; }
.post .quote figcaption { padding-top: 10px; }
.post .media strong { color: var(--ink); font-weight: 600; }
