/* Steeloid site CSS: the tokens, the self-hosted face and the page rules every page shares.
   Moved out of index.html's <style> blocks; linked from every page after the kit's stylesheets. */

/* Archivo, self-hosted (SIL OFL, fonts/OFL-archivo.txt) */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------------------------------------------------------------- tokens (start.mjs brand output) */
:root {
  --p-bg: #f5f6f5; --p-surface: #e6e9e8; --p-ink: #151817; --p-muted: #59615f;
  --p-accent: #155e63; --p-accent-ink: #f5f6f5; --p-action: #155e63; --p-action-ink: #f5f6f5;
  --p-inv-bg: #151817; --p-inv-surface: #222523; --p-inv-ink: #f5f6f5; --p-inv-muted: #979998;
  --p-inv-accent: #f5f6f5; --p-inv-accent-ink: #151817; --p-inv-action: #f5f6f5; --p-inv-action-ink: #151817;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-text: "Archivo", system-ui, sans-serif;
  --display-weight: 400;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.035em;
  --display-stretch: 110%;
  --ly-scale: 0.9;
  --gold: #fcb933;
}

/* ---------------------------------------------------------------- shared (header, footer, buttons) */
::selection { background: #155e63; color: #f5f6f5; }
.nav__logo img { height: 40px; width: auto; display: block; }
.closing .nav__logo img { height: 40px; }
.btn .wa-icon { width: 1.15em; height: 1.15em; margin-right: .5em; flex: none; fill: currentColor; vertical-align: -.2em; }
.menu-card .panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18%; }
.menu-card .panel--cover { padding: 0; overflow: hidden; }
.menu-card .panel--cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* About and Guides: in the bar from 1280, in the phone sheet under 1024, in the footer always */
@media (min-width: 1024px) and (max-width: 1279px) { .nav__item--wide { display: none; } }
/* the footer's row of links to every page */
.footer__nav { margin-top: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- home page */
#products .frame, #visit .frame, #brands .frame { padding: 0; }
#products .rows > li { padding-block: 13px; }
#products .rows__name small { margin-left: 12px; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--muted); }
#products .frame { background: #fff; }
#products .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: linear-gradient(var(--edge-top, #fff) 50%, var(--edge-bottom, #fff) 50%); }
#visit .frame img, #brands .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hose .crimp-mark { height: 56px; width: auto; display: block; }
#hose .frame { --p-h: 520px; min-height: 520px; padding: 0; }
.hero__stage > img.is-cutout { padding: 2% 0 1%; }
.gold, #hose { --bg: #fcb933; --surface: #f0aa1f; --ink: #151817; --muted: #3d3a2e; --line: rgba(21,24,23,.18); --line-strong: rgba(21,24,23,.32); background: var(--bg); color: var(--ink); }
#hose .frame { background: #f7c45a; border-color: rgba(21,24,23,.14); }
#hose .frame.crimp-frame { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
#hose .crimp-chat { flex: none; width: min(340px, 100%); align-self: flex-start; }
@media (max-width: 359px) { #hose .crimp-chat { display: none; } }
#hose .crimp-chat .ui-chat { width: 100%; }
#hose .crimp-van { flex: 1 1 0; min-height: 96px; width: 100%; height: auto; object-fit: contain; object-position: right bottom; }
#hose .crimp-plate { display: inline-block; background: #ffffff; padding: 10px 14px; }
#hose .crimp-plate--frame { position: absolute; top: 32px; right: 32px; z-index: 2; }
.doc-stand { display: flex; align-items: flex-start; justify-content: center; }
.doc-stand > img { width: auto; height: min(560px, 62vh); max-width: 100%; }
.doc-stand--lift > img, #catalogue .doc-stand > img { box-shadow: 0 1px 2px rgba(21,24,23,.12), 0 12px 32px -12px rgba(21,24,23,.28); }
.cover { position: relative; inset: auto; margin: 0; width: min(100%, 420px); height: auto; max-width: none; aspect-ratio: 3 / 4; }
.cover__top { padding: 24px 24px 0; }
.cover__top img { height: 30px; width: auto; display: block; }
.cover__art { flex: 1; display: grid; place-items: center; padding: 8px 24px; }
.cover__art img { width: 74%; height: auto; display: block; }
.cover__title { padding: 0 24px 18px; font: 400 28px/1.05 var(--font-display); letter-spacing: -0.02em; font-stretch: 110%; }
.cover__title span { display: block; margin-top: 8px; font: 400 14px/1.4 var(--font-text); color: #59615f; letter-spacing: 0; }
.cover__foot { display: flex; justify-content: space-between; padding: 10px 24px; background: #fcb933; font: 500 13px/1.4 var(--font-text); color: #151817; }
@media (min-width: 640px) and (max-width: 1023px) { #products { --h: 2 } }
@media (min-width: 640px) and (max-width: 1023px) { #hose .frame { min-height: 360px; } .doc-stand > img { height: 380px; } .cover { width: 300px; } }
@media (max-width: 639px) {
  .hero h1 { font-stretch: 96%; }
  .nav__logo { flex: 0 1 auto; min-width: 0; }
  .nav__logo img { height: 28px; max-width: 120px; }
  #visit .rows > li, .closing .rows > li, #hose .rows > li { grid-template-columns: minmax(0, 1fr); }
  #visit .rows__value, .closing .rows__value, #hose .rows__value { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
  .doc-stand > img { height: 340px; }
  .cover { width: 260px; }
  .footer__address { overflow-wrap: anywhere; }
  #hose .frame { min-height: 340px; }
  #hose .crimp-mark { height: 40px; }
  #hose .frame.crimp-frame { padding: 20px; }
  #hose .crimp-van { object-position: center; }
}

/* ---------------------------------------------------------------- inner pages */
/* breadcrumb: above the h1, small, the current page in plain ink */
.crumbs { font-size: var(--t-small); color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--muted); }
.crumbs a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }
.crumbs [aria-current] { color: var(--muted); display: inline-flex; min-height: 44px; align-items: center; }

/* a hero split: words on 1-6, the picture on 7-12 */
.hero--page .hero-copy > .crumbs { margin-bottom: calc(-1 * var(--s-3)); }
.hero--page .hero-copy > .crumbs + h1 { margin-top: var(--s-3); }
.hero--page .hero-visual { display: flex; align-items: center; }
.hero--page .hero-visual > .frame { width: 100%; }
.hero--page .hero-visual > .frame--fill { height: 100%; }
.hero--text .hero-copy { max-width: 760px; }

/* a product photograph in a frame: contained, its own ground carried to the frame's edges */
.frame--product { padding: 0; background: #fff; --ratio: 74%; max-width: 640px; }
.frame--product img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; background: linear-gradient(var(--edge-top, #fff) 50%, var(--edge-bottom, #fff) 50%); }
.frame--map { padding: 0; }
.frame--map img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.split { align-items: center; }
.split > .frame--product { align-self: center; justify-self: end; width: 100%; }

/* rows that lead somewhere: a name that links, its line under it */
.rows--links > li { grid-template-columns: minmax(0, 1fr); }
.rows--links .rows__name a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.rows--links .rows__name a:hover { text-decoration-color: currentColor; }
.rows--links .rows__name small, .rows__line { display: block; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--muted); }
.rows--links > li { padding-block: var(--s-3); }
/* the products overview's list keeps the home page's look, with a link in each name */
#ranges .rows > li { padding-block: 13px; }
#ranges .rows__name a { min-height: 0; }
#ranges .rows__name small { display: inline; margin-left: 12px; }
#ranges .frame { padding: 0; background: #fff; }
#ranges .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: linear-gradient(var(--edge-top, #fff) 50%, var(--edge-bottom, #fff) 50%); }

/* the quote list: what to send, one item a line, hairlines between */
.send-list { display: grid; margin: 0; padding: 0; list-style: none; font-size: var(--t-lead); line-height: 1.4; }
.send-list > li { padding-block: var(--s-3); border-bottom: 1px solid var(--line); }
.send-list > li:first-child { padding-top: 0; }
/* the numbered call-out steps (a real sequence) */
.steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--t-lead); line-height: 1.45; }
.steps > li:first-child { padding-top: 0; }
.steps > li::before { content: counter(step); font: 500 var(--t-body)/1.8 var(--font-text); font-variant-numeric: tabular-nums; color: var(--muted); }

/* two plain columns (industries) */
.cols-2 { columns: 2; column-gap: var(--gutter); margin: 0; padding: 0; list-style: none; font-size: var(--t-lead); }
.cols-2 > li { break-inside: avoid; padding-block: var(--s-3); border-bottom: 1px solid var(--line); }

/* a large statement in the word-highlight moment's type, without the moment (About's mission) */
.statement-text { font: var(--display-weight) clamp(32px, 2.5vw + 22px, 56px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); font-stretch: var(--display-stretch); max-width: 22ch; text-wrap: balance; }
.statement-text strong { font-weight: inherit; color: var(--accent); }

/* the gold band (the hydraulic page's Mr. Crimp band, the Mr. Crimp hero) */
.gold .btn--secondary { background: transparent; }
.gold .link { color: var(--ink); }
.crimp-logo { height: 56px; width: auto; display: block; }
.crimp-logo-plate { display: inline-block; background: #fff; padding: 10px 14px; line-height: 0; }
.hero--crimp .hero-visual img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

/* brand rows: the logo on a white tile at a fixed 160x64, then the name, then what we supply, then the link */
.brand-rows > li { grid-template-columns: 192px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-5); padding-block: var(--s-3); }
.brand-rows > li:first-child { padding-top: 0; }
.brand-tile { display: grid; place-items: center; width: 192px; height: 80px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.brand-tile img { width: 160px; height: 64px; object-fit: contain; }
.brand-rows .rows__value { grid-column: 3; }

/* blog */
.post-list > li { grid-template-columns: minmax(0, 1fr) auto; }
.post-list .rows__name a { font-size: var(--t-lead); }
.post-list .rows__value { color: var(--muted); font-weight: 400; }
.article { width: min(100%, 680px); }
.article > * + * { margin-top: var(--s-5); }
.article p, .article li { font-size: 18px; line-height: 1.6; }
.article h2 { margin-top: var(--s-8); font-size: clamp(26px, 1vw + 20px, 34px); line-height: 1.2; }
.article ul { padding-left: 1.2em; list-style: disc; display: grid; gap: var(--s-2); }
.article__meta { color: var(--muted); font-size: var(--t-small); }
.article__end { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--line); display: grid; gap: var(--s-5); }
.article__end .btn-row { margin-top: 0; }
/* a reading page is one long column: its sections take their own height */
main > .section.section--flow { height: auto; min-height: 0; }

/* legal text */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); font-size: clamp(24px, .8vw + 20px, 30px); }
.prose p, .prose li { font-size: 18px; line-height: 1.6; }
.prose ul { padding-left: 1.2em; list-style: disc; display: grid; gap: var(--s-2); }

/* tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--page .hero-visual { justify-content: flex-start; }
  .hero--page .hero-visual > .frame--product { max-width: 560px; }
  .split > .frame--product { justify-self: start; max-width: 560px; }
}
/* phone */
@media (max-width: 1023px) {
  .hero--page .hero-visual > .frame--fill { height: auto; flex: 1 1 auto; }
}
@media (max-width: 639px) {
  .frame--product { --ratio: 75%; }
  .frame--map { --ratio: 75%; }
  .hero--page .hero-visual { flex: none; }
  .hero--page .hero-visual > .frame--fill { flex: none; }
  .rows--stack > li { grid-template-columns: minmax(0, 1fr); }
  .rows--stack .rows__value { grid-column: 1; grid-row: auto; text-align: left; max-width: none; white-space: normal; }
  .brand-rows > li { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); padding-block: var(--s-5); }
  .brand-rows .rows__value { grid-column: 1; grid-row: auto; text-align: left; }
  .post-list > li { grid-template-columns: minmax(0, 1fr); }
  .post-list .rows__value { grid-column: 1; grid-row: auto; text-align: left; max-width: none; }
  .cols-2 { columns: 1; }
  .send-list, .steps > li, .cols-2 { font-size: 18px; }
  .crimp-logo { height: 40px; }
  .catalogue-cover { width: 70%; margin-inline: auto; }
  .catalogue-cover > img { width: 100%; height: auto; }
}

/* ---------------------------------------------------------------- inner pages, part 2 */
/* home and overview: a range's name links to its page, quietly */
#products .rows__name a, #ranges .rows__name a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
#products .rows__name a:hover, #ranges .rows__name a:hover { text-decoration-color: currentColor; }

/* a text-only hero: the h1 in the middle of the screen, the lead and the actions on a hairline at its foot */
.hero--text h1 { font-size: var(--ly-h1); line-height: 1.02; max-width: 20ch; padding-block: var(--s-6); }
.hero--text .hero__in > .crumbs { margin-bottom: auto; }
.hero--text .hero__foot > .btn-row { justify-content: flex-end; align-self: end; }
@media (max-width: 1023px) { .hero--text .hero__foot > .btn-row { justify-content: flex-start; } }
@media (max-width: 639px) { .hero--text h1 { font-size: clamp(36px, 9vw, 44px); } }

/* a product type: the picture beside the words, centred in its half */
.type-pic { display: flex; align-items: center; justify-content: flex-end; }
.type-pic > .frame { width: 100%; }
@media (max-width: 1023px) { .type-pic { justify-content: flex-start; } }

/* rows in two columns from 1024 (other ranges, what's inside) */
@media (min-width: 1024px) {
  .rows--2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; }
  .rows--2col > li:nth-child(2) { padding-top: 0; }
}

/* what to send: heading and button left, the list right; a phone reads heading, list, then the button */
.quote-grid { align-content: start; }
@media (min-width: 1024px) {
  .quote-grid > .quote-grid__head { grid-row: 1; }
  .quote-grid > .quote-grid__foot { grid-row: 2; align-self: end; }
  .quote-grid > .quote-grid__list { grid-row: 1 / span 2; }
}

/* the hydraulic page's Mr. Crimp band: the logo on its white plate, right */
.crimp-side { display: flex; align-items: center; justify-content: center; }
.crimp-logo-plate--lg { padding: 24px 32px; }
.crimp-logo-plate--lg img { width: min(420px, 100%); height: auto; display: block; }
@media (max-width: 1023px) { .crimp-side { justify-content: flex-start; } .crimp-logo-plate--lg img { width: min(280px, 100%); } }

/* the Mr. Crimp hero: gold, the van right */
.hero--crimp .crimp-logo-plate { align-self: flex-start; }
.hero--crimp .hero-copy > .crimp-logo-plate + h1 { margin-top: var(--s-5); }
.hero--crimp .hero-visual { justify-content: center; }
.hero--crimp .crimp-hero-van { width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.hero--crimp .btn--secondary { background: transparent; }
@media (max-width: 1023px) { .hero--crimp .hero-visual { min-height: 0; } }

/* the call-out chat, on the frame's surface */
.chat-frame { padding: clamp(20px, 3vw, 40px); align-self: stretch; min-height: 420px; }
.chat-frame .ui-chat { width: min(400px, 100%); }
.ui-msg__text .pin { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 639px) { .chat-frame { min-height: 0; } }

/* catalogue hero: the form needs the room, the cover sits top */
.hero--catalogue .hero-visual { align-items: flex-start; }
.hero--catalogue .hero-copy > .form { margin-top: var(--s-6); }
.form__privacy { color: var(--muted); }
.form__privacy a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* the overview's list stays one phone screen: the frame waits for a tablet */
@media (max-width: 639px) { #ranges .frame { display: none; } }

/* post ends */
.article__related { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); padding: 0; list-style: none; }
.article__related li { font-size: var(--t-body); }
.article .crumbs { margin-bottom: calc(-1 * var(--s-3)); }
.article h1 { font-size: clamp(36px, 2vw + 28px, 56px); line-height: 1.08; }
.post-range { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* the footer carries a links row to every page, so it takes the height it needs (at least one screen) */
footer.closing { height: auto; min-height: 100vh; min-height: 100svh; }
footer.closing > .wrap { height: auto; min-height: 100%; }

/* under 1280 a section may grow past its screens rather than let its last rows run under the next one */
@media (max-width: 1279px) {
  main > .section > .wrap > .fill { flex: 1 0 auto; }
}
.form__privacy { font-size: var(--t-body); }
/* a phone: the links row as two columns of tap-sized links */
@media (max-width: 639px) {
  .footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
  .footer__nav a { min-height: 44px; }
}

/* a text-only hero (no picture) is a compact page head, not a whole empty screen: the h1, then the lead and the
   actions on a hairline, and the page's first section follows straight after */
main > .hero.hero--text { height: auto; min-height: 0; padding-bottom: var(--s-8); }
main > .hero.hero--text > .wrap { height: auto; }
.hero--text h1 { padding-block: var(--s-4) var(--s-7); }
.hero--text .hero__in > .crumbs { margin-bottom: 0; }
main > .hero--text + .section { padding-top: var(--s-8); }
@media (max-width: 639px) {
  main > .hero.hero--text { min-height: 0; display: block; padding-bottom: var(--s-7); }
  main > .hero--text + .section { padding-top: var(--s-7); }
}
.hero--catalogue .hero-visual > .doc-stand { width: 100%; }
