/* Maule Group HQ. Spec sheet layout: grey page, white sheets, hairline rules. */

@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/assets/fonts/red-hat-display.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text.woff2") format("woff2");
}
@font-face {
  font-family: "Red Hat Text";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/red-hat-text-italic.woff2") format("woff2");
}

:root {
  --page: #ECEEF0;
  --sheet: #FFFFFF;
  --tint: #F5F6F7;
  --rule: #C9CED3;
  --ink: #1E2328;
  --meta: #4A535C;
  --steel: #285A84;
  --steel-deep: #1D4567;
  --on-steel: #FFFFFF;
  --on-steel-2: #DCE6EF;
  --display: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
  --text: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gut: 24px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--steel-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 1.25rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -.015em; max-width: 21ch; }
h2 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); font-weight: 700; letter-spacing: -.005em; }
h3 { font-size: 1.125rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .3em; }
strong { font-weight: 650; }
address { font-style: normal; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Skip link */
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-head { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  display: inline-block; border: 1px solid var(--ink); padding: 1px 6px 0;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5;
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; margin: 0; padding: 0; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--steel); text-decoration: underline; text-underline-offset: 6px; }
.site-nav a[aria-current="page"], .site-nav a.here {
  text-decoration: underline; text-decoration-color: var(--steel);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.menu-btn {
  display: none; min-height: 44px; min-width: 44px; padding: 0 16px;
  font: 600 .95rem var(--display); color: var(--ink); background: var(--sheet);
  border: 1px solid var(--ink); border-radius: 0; cursor: pointer;
}

/* Breadcrumb */
.crumbs ol { list-style: none; margin: 0; padding: 14px 0 12px; display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--meta); }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; padding: 0 .55em; color: var(--meta); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs span { display: inline-flex; align-items: center; min-height: 44px; }

/* Sheets */
main { display: block; padding: 0 0 8px; }
.sheet { background: var(--sheet); border: 1px solid var(--rule); }
.sheet + .sheet, .with-toc + .sheet, .sheet + .with-toc, .gap { margin-top: 20px; }
.first { margin-top: 24px; }
.pad { padding: 36px var(--pad); }
.pad-tight { padding: 24px var(--pad); }
.sheet-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 24px;
  padding: 22px var(--pad); border-bottom: 1px solid var(--rule);
}
.sheet-head h2 { margin: 0; }
.sheet-head p { margin: 0; color: var(--meta); font-size: .94rem; max-width: 52ch; }
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 60ch; }
.meta { color: var(--meta); font-size: .92rem; }
.small { font-size: .92rem; }

/* Home hero: wide text column, tinted fact column */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero-main { padding: 52px var(--pad) 44px; }
.hero-main h1 { max-width: 19ch; margin-bottom: .6em; }
.hero-side { background: var(--tint); padding: 28px 32px 20px; }
.hero-side .side-title { font-family: var(--display); font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.btn:hover { background: var(--steel); border-color: var(--steel); color: #fff; text-decoration: none; }

/* Spec definition lists */
.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: minmax(8.5rem, 12.5rem) minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--rule); padding: 13px 0; }
.spec > div:first-child { border-top: 0; }
.spec dt { font-family: var(--display); font-weight: 600; font-size: .95rem; padding-top: 1px; }
.spec dd { margin: 0; }
.spec dd p:last-child, .spec dd ul:last-child { margin-bottom: 0; }
.spec.compact > div { grid-template-columns: 7.5rem minmax(0, 1fr); padding: 9px 0; font-size: .95rem; }
.spec.ruled > div:first-child { border-top: 1px solid var(--rule); }

/* Spec sheet rows for sector pages */
.sheetrows > section { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 0 40px; padding: 28px var(--pad); border-top: 1px solid var(--rule); }
.sheetrows > section:first-child { border-top: 0; }
.sheetrows h2 { font-size: 1.15rem; line-height: 1.3; margin: 0; }
.sheetrows > section > div > :last-child { margin-bottom: 0; }

.title-block { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.title-block .tb-main { padding: 40px var(--pad) 34px; }
.title-block .tb-side { background: var(--tint); padding: 24px 28px; }
.title-block h1 { max-width: 18ch; }

/* Tables */
.rt { width: 100%; border-collapse: collapse; font-size: .97rem; }
.rt caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.05rem; padding: 0 0 10px; }
.rt th, .rt td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--rule); }
.rt th:last-child, .rt td:last-child { padding-right: 0; }
.rt thead th { font-family: var(--display); font-weight: 600; font-size: .86rem; color: var(--meta); border-bottom: 1px solid var(--ink); padding-top: 4px; padding-bottom: 8px; }
.rt tbody th { font-family: var(--display); font-weight: 600; }
.rt tbody tr:last-child th, .rt tbody tr:last-child td { border-bottom: 0; }
.rt.fixed-first tbody th { width: 26%; }
.rt .num { white-space: nowrap; }
.table-pad { padding: 8px var(--pad) 24px; }

/* Directory list (articles, links with notes) */
.dir { list-style: none; margin: 0; padding: 0; }
.dir > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4px 40px; padding: 20px var(--pad); border-top: 1px solid var(--rule); margin: 0; }
.dir > li:first-child { border-top: 0; }
.dir h2, .dir h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.dir p { margin: 0; }
.dir .meta { margin-top: 6px; }

/* Columns of short items */
.cols { columns: 2; column-gap: 40px; padding-left: 1.1em; }
.cols li { break-inside: avoid; }
.cols-3 { columns: 3; column-gap: 32px; padding-left: 1.1em; }
.cols-3 li { break-inside: avoid; }

/* Two-part section: label column + body */
.part { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 0 48px; padding: 36px var(--pad); border-top: 1px solid var(--rule); }
.part:first-child { border-top: 0; }
.part > :first-child h2 { margin: 0 0 .5em; }
.part > div > :last-child { margin-bottom: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-3 { gap: 0 36px; }
.grid-3 > div { padding: 28px 0; }
.grid-3 h3 { margin-bottom: .4em; }
.grid-3 p:last-child { margin-bottom: 0; }

.band-tint { background: var(--tint); }
.pad-x { padding-left: var(--pad); padding-right: var(--pad); }
.rule-top { border-top: 1px solid var(--rule); }

/* Contents column on long pages */
.with-toc { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: 0 28px; align-items: start; margin-top: 24px; }
.toc { position: sticky; top: 20px; }
.toc-label { font-family: var(--display); font-weight: 700; font-size: .95rem; margin: 6px 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { margin: 0; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .94rem; line-height: 1.3; }
.toc a:hover { color: var(--steel); text-decoration: underline; }
.toc .toc-note { font-size: .9rem; color: var(--meta); margin: 18px 0 4px; }
.toc ul { padding-left: 1.1em; margin: 0; }
.toc ul li { margin-top: 6px; }
.doc { padding: 0 0 12px; }
.doc > header { padding: 40px var(--pad) 28px; border-bottom: 1px solid var(--rule); }
.doc > header h1 { max-width: 24ch; }
.doc > header p:last-child { margin-bottom: 0; }
.doc > section { padding: 30px var(--pad) 8px; scroll-margin-top: 16px; }
.doc > section + section { border-top: 1px solid var(--rule); }
.doc > section h3 { margin-top: 1.2em; }
.doc .rt { margin: 6px 0 22px; }
.doc figure { margin: 8px 0 24px; }

/* Article text */
.prose { font-size: 1.075rem; }
.prose p, .prose li { max-width: 66ch; }
.byline { color: var(--meta); font-size: .95rem; margin-top: 4px; }

/* Figures and diagrams */
figure { margin: 0; }
figcaption { color: var(--meta); font-size: .9rem; margin-top: 10px; max-width: 60ch; }
.diagram svg { width: 100%; max-width: 520px; }
.diagram text { font-family: var(--text); fill: var(--ink); }
.diagram .t-strong { font-family: var(--display); font-weight: 700; }
.diagram .t-meta { fill: var(--meta); }

/* Contact page */
.big-mail { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); line-height: 1.2; word-break: break-word; }
.big-mail a { text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Legal */
.legal ol.clauses { padding-left: 1.3em; }
.legal .updated { color: var(--meta); font-size: .95rem; }

/* Footer: the one steel band */
.site-foot { background: var(--steel); color: var(--on-steel); margin-top: 56px; font-size: .97rem; }
.site-foot a { color: var(--on-steel); }
.site-foot a:hover { color: var(--on-steel); text-decoration-thickness: 2px; }
.site-foot :focus-visible { outline-color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr); gap: 28px 40px; padding-top: 44px; padding-bottom: 36px; }
.foot-brand { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 0 0 8px; }
.foot-id p { color: var(--on-steel-2); max-width: 44ch; }
.foot-id address { color: var(--on-steel); }
.foot-h { font-family: var(--display); font-weight: 700; margin: 0 0 6px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0; }
.site-foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-grid p a { display: inline-flex; align-items: center; min-height: 44px; word-break: break-all; }
.foot-base { padding-top: 14px; padding-bottom: 18px; }
.foot-base p { margin: 0; font-size: .9rem; color: var(--on-steel-2); border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 14px; max-width: none; }

/* 404 */
.missing { padding: 56px var(--pad); }

/* Wide screens: nothing extra. Medium screens */
@media (max-width: 1060px) {
  :root { --pad: 28px; }
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .head-row { flex-wrap: wrap; }
  .site-nav { width: 100%; }
  .site-nav ul { display: block; padding-bottom: 10px; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav a { display: flex; width: 100%; font-size: 1.02rem; }
  .hero { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .with-toc { grid-template-columns: 1fr; }
  .toc { position: static; background: var(--sheet); border: 1px solid var(--rule); padding: 10px 20px 4px; margin-bottom: 20px; }
  .toc ol { border-top: 0; }
  .toc li:last-child { border-bottom: 0; }
  .part { grid-template-columns: 1fr; padding: 28px var(--pad); }
  .part > :first-child { margin-bottom: 12px; }
  .sheetrows > section { grid-template-columns: 1fr; gap: 10px; padding: 22px var(--pad); }
  .dir > li { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 > div { padding: 22px 0 6px; }
  .grid-3 > div + div { border-top: 1px solid var(--rule); }
  .cols-3 { columns: 2; }
}

@media (max-width: 720px) {
  :root { --gut: 16px; --pad: 18px; }
  body { font-size: 1.03rem; }
  .head-row { min-height: 64px; }
  .hero-main { padding: 32px var(--pad) 28px; }
  .hero-side { padding: 20px var(--pad) 12px; }
  .title-block .tb-main { padding: 28px var(--pad) 24px; }
  .title-block .tb-side { padding: 18px var(--pad); }
  .pad { padding: 26px var(--pad); }
  .doc > header { padding: 28px var(--pad) 22px; }
  .doc > section { padding: 24px var(--pad) 6px; }
  .sheet-head { padding: 18px var(--pad); }
  .lead { font-size: 1.1rem; }
  .spec > div, .spec.compact > div { grid-template-columns: 1fr; gap: 2px; }
  .cols, .cols-3 { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }
  .table-pad { padding: 4px var(--pad) 18px; }

  /* Stack rule tables */
  .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rt, .rt tbody, .rt tr, .rt th, .rt td { display: block; width: 100%; }
  .rt tr { border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .rt tbody tr:last-child { border-bottom: 0; }
  .rt th, .rt td { border: 0; padding: 3px 0; }
  .rt.fixed-first tbody th { width: 100%; }
  .rt tbody th { font-size: 1.05rem; }
  .rt td[data-label]::before { content: attr(data-label); display: block; font-family: var(--display); font-size: .82rem; font-weight: 600; color: var(--meta); margin-top: 6px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .toc, .skip { display: none; }
  body { background: #fff; }
  .sheet { border: 0; }
}
.bare { background: transparent; } .bare .sheet-head { padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--ink); } .bare .dir > li { padding-left: 0; padding-right: 0; }
