/* ==========================================================================
   Bwabt Al Ajyal Contracting LLC — ajyalcontracting.com
   One stylesheet, five pages. Built from the Claude Design export.
   Palette per build brief §4; #3A404A carried over from the design export
   as the secondary body ink (see the build note).
   ========================================================================== */

/* ---- Fonts: self-hosted, latin subset, no runtime third-party request ---- */
@font-face {
  font-family: 'Overpass';
  src: url('../fonts/overpass-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Overpass Mono';
  src: url('../fonts/overpass-mono-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --deep:  #1E3A6E;   /* headings, rules, footer          */
  --brand: #2E5EA8;   /* links and active states ONLY     */
  --mill:  #16191F;   /* body text                        */
  --galv:  #6B737D;   /* secondary text, captions         */
  --zinc:  #C9CFD7;   /* hairlines, table borders         */
  --wash:  #F3F5F8;   /* panel backgrounds, image mats    */
  --tint:  #E8EEF8;   /* filled surface                   */
  --white: #FFFFFF;   /* page ground                      */
  --ink2:  #3A404A;   /* secondary body ink (design export) */

  --sans: 'Overpass', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: 20px;
  --maxw: 1280px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--mill);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, dl, dd, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--deep); text-decoration: underline; }

/* Measured quantities only — spans, tonnages, dimensions, years, capacities.
   Never blue: figures keep their inherited ink even inside a link. */
.q {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.94em;
  color: inherit;
}

/* ---- Focus: visible on every interactive element ---- */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---- Motion: none in this design beyond hover colour ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--deep);
  padding: 12px 16px; font-weight: 600; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ==========================================================================
   Header and navigation
   ========================================================================== */
.site-header { border-bottom: 1px solid var(--zinc); }
/* Menu open: 1px Deep Blue under the bar, 2px Deep Blue below the whole menu */
.site-header.is-open { border-bottom: 2px solid var(--deep); }

.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; column-gap: 16px; row-gap: 0;
  padding-block: 14px; min-height: 56px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--mill); }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span {
  font-size: 13px; font-weight: 600; line-height: 1.2; color: var(--deep);
}

/* Text toggle, no icon. Hidden unless JS is running — without JS the nav
   below is simply always visible, so the menu degrades to a plain list. */
.nav-toggle {
  display: none;
  font: inherit; font-size: 16px; font-weight: 500;
  color: var(--deep); background: none; border: 0;
  padding: 10px 0 10px 12px; cursor: pointer;
}
.js .nav-toggle { display: block; }

.nav-panel {
  flex: 0 0 auto;
  width: calc(100% + (var(--gutter) * 2));
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 8px;
  border-top: 1px solid var(--deep);
}
.js .nav-panel { display: none; }
.js .nav-panel.is-open { display: block; }

.nav-list { display: flex; flex-direction: column; font-size: 19px; font-weight: 500; }
.nav-list a {
  padding: 16px 0; border-bottom: 1px solid var(--zinc); color: var(--mill);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.nav-list a:hover { color: var(--brand); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--deep); }
.nav-list a[aria-current="page"] .current { font-size: 14px; font-weight: 400; color: var(--galv); }

.nav-contact {
  padding: 20px 0 8px; display: flex; flex-direction: column; gap: 6px;
  font-size: 15px; line-height: 1.5; color: var(--ink2);
}

/* ==========================================================================
   Home
   ========================================================================== */
.hero { padding: 28px 0 24px; border-bottom: 1px solid var(--zinc); }
.hero-grid { display: flex; flex-direction: column; gap: 18px; }
/* Mobile order per the design artboard: heading, figure, intro, links.
   display:contents lifts the copy block's children into the same flex flow. */
.hero-copy { display: contents; }
.hero h1 { order: 1; }
.hero figure { order: 2; }
.hero-copy p { order: 3; }
.hero-links { order: 4; }
.hero h1 {
  font-size: 26px; line-height: 1.25; font-weight: 600; color: var(--deep);
  letter-spacing: -0.01em; text-wrap: pretty;
}
.hero p { font-size: 16px; line-height: 1.55; text-wrap: pretty; }
.hero-links { display: flex; flex-direction: column; gap: 4px; }
.hero-links a { font-size: 15px; font-weight: 500; padding: 6px 0; }

/* Figures sit on a Whitewash mat with the caption in the text face */
figure { display: flex; flex-direction: column; gap: 6px; }
.mat { background: var(--wash); padding: 8px; }
.mat img { width: 100%; }
figcaption { font-size: 13px; line-height: 1.45; color: var(--galv); }

/* Section head: 2px Deep Blue rule at section starts */
.sec { padding: 24px 0 28px; }
.sec-head {
  display: flex; flex-direction: column; gap: 2px;
  border-bottom: 2px solid var(--deep); padding-bottom: 8px; margin-bottom: 6px;
}
.sec-head h2 { font-size: 20px; font-weight: 600; line-height: 1.3; color: var(--deep); }
.sec-head a { font-size: 14px; font-weight: 500; }

/* Capability index — 1px Zinc between rows */
.caps { display: flex; flex-direction: column; }
.caps a {
  display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px;
  padding: 14px 0; border-bottom: 1px solid var(--zinc);
  color: var(--mill);
}
.caps a:hover { text-decoration: none; }
.caps a:hover .cap-title { color: var(--brand); }
.cap-n { font-size: 14px; line-height: 1.4; color: var(--galv); }
.cap-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.cap-text {
  grid-column: 2; font-size: 15px; line-height: 1.45;
  color: var(--ink2); text-wrap: pretty;
}

/* Featured projects */
.featured { display: flex; flex-direction: column; gap: 18px; }
.feat-lead { display: flex; flex-direction: column; gap: 12px; color: var(--mill); }
.feat-lead:hover { text-decoration: none; }
.feat-body { display: flex; flex-direction: column; gap: 4px; }
.feat-lead h3 { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--deep); }
.feat-meta { font-size: 14px; line-height: 1.45; color: var(--galv); }
.feat-desc { font-size: 15px; line-height: 1.5; text-wrap: pretty; }

.feat-side { display: flex; flex-direction: column; }
.feat-thumb {
  display: grid; grid-template-columns: 104px 1fr; gap: 14px;
  padding-top: 18px; border-top: 1px solid var(--zinc); color: var(--mill);
}
.feat-thumb:hover, .feat-lead:hover { text-decoration: none; }
.feat-thumb:hover h3, .feat-lead:hover h3 { color: var(--brand); }
.feat-thumb .mat { padding: 5px; align-self: start; }
.feat-thumb h3 { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--deep); }

/* ==========================================================================
   Projects — page intro, register table, entry variants
   ========================================================================== */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page-intro { padding: 26px 0 8px; }
.intro-grid { display: flex; flex-direction: column; gap: 8px; }
.intro-grid h1 {
  font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--deep);
  letter-spacing: -0.01em; text-wrap: pretty;
}
.intro-grid p { font-size: 15px; line-height: 1.5; color: var(--ink2); text-wrap: pretty; }

/* Register. Semantic <table> per brief §6; below 1000px the rows restyle to the
   design's two-column list without a second copy of the markup. */
.register { width: 100%; margin: 14px 0 28px; font-size: 15px; line-height: 1.4; }
.register a { color: var(--mill); font-weight: 500; }

@media (max-width: 999px) {
  .register, .register thead, .register tbody, .register tr,
  .register th, .register td { display: block; }
  .register thead tr {
    display: grid; grid-template-columns: 72px 1fr; column-gap: 12px;
    padding-bottom: 8px; border-bottom: 2px solid var(--deep);
    font-size: 13px; color: var(--galv); text-align: left;
  }
  .register thead th { padding: 0; font-weight: 400; }
  .register thead th:nth-child(n+3) { display: none; }
  .register tbody tr {
    position: relative; min-height: 44px; padding: 12px 0 13px 84px;
    border-bottom: 1px solid var(--zinc);
  }
  .register .c-year { position: absolute; left: 0; top: 12px; padding: 0; font-size: 15px; }
  .register .c-name { padding: 0; font-size: 16px; line-height: 1.35; font-weight: 500; text-wrap: pretty; }
  .register .c-loc, .register .c-scope {
    display: inline; padding: 0; font-size: 14px; line-height: 1.4; color: var(--galv);
  }
  .register .c-loc::after { content: ". "; }
  .register .c-scope::after { content: "."; }
  .register .c-contract { display: none; }
}

/* Entry. 1px Deep Blue rule at each entry, full width. */
.proj { border-top: 1px solid var(--deep); }
.proj-grid { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 30px; }
.proj-text, .proj-fig { display: contents; }
.proj h2 {
  order: 1; font-size: 21px; line-height: 1.25; font-weight: 600;
  color: var(--deep); text-wrap: pretty;
}
.proj-meta { order: 2; font-size: 14px; color: var(--galv); }
.proj-fig > * { order: 3; }
.proj-body { order: 4; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.proj-facts { order: 5; }
.proj-extra { order: 6; }   /* text-only entry: after the body, not in the figure slot */

.proj-facts, .proj-extra {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  font-size: 14px; line-height: 1.4;
  border-top: 1px solid var(--zinc); padding-top: 12px;
}
.proj-facts dt, .proj-extra dt { color: var(--galv); }
.fig-half { width: 62%; }

/* ==========================================================================
   Interior template — About, Capabilities, Contact
   ========================================================================== */
.interior { padding-block: 26px 8px; }

.ix h1 {
  font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--deep);
  letter-spacing: -0.01em;
}
.ix-nav {
  display: flex; flex-direction: column;
  margin-top: 14px; border-top: 2px solid var(--deep);
  font-size: 15px; line-height: 1.35;
}
.ix-nav a {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--zinc); color: var(--mill);
}
.ix-nav a:hover { color: var(--brand); text-decoration: none; }
.ix-n { color: var(--galv); }
.ix-note {
  padding-top: 16px; font-size: 14px; line-height: 1.5;
  color: var(--galv); text-wrap: pretty;
}

.isec-list { display: flex; flex-direction: column; gap: 30px; padding: 22px 0 32px; }
.isec { display: flex; flex-direction: column; gap: 14px; }
.isec h2 {
  font-size: 21px; line-height: 1.25; font-weight: 600; color: var(--deep);
  padding-bottom: 8px; border-bottom: 2px solid var(--deep); text-wrap: pretty;
}
.isec p { font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.sec-split { display: flex; flex-direction: column; gap: 14px; }
.sec-copy { display: flex; flex-direction: column; gap: 14px; }

/* Plant list — brief §6 requires a table; below 1000px rows stack label over value */
.plant { width: 100%; font-size: 15px; line-height: 1.45; }
.plant thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.plant tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--zinc); }
.plant tr:first-child { border-top: 1px solid var(--deep); }
.plant th, .plant td { display: block; text-align: left; padding: 0; }
.plant th { font-size: 15px; font-weight: 500; line-height: 1.4; }
.plant td { font-size: 14px; line-height: 1.45; color: var(--ink2); }

.consultants {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px;
  font-size: 15px; line-height: 1.4;
}
.consultants li { padding: 9px 0; border-bottom: 1px solid var(--zinc); }
.notfound-nav { margin-top: 0; }
.notfound-nav a { grid-template-columns: 28px 1fr; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 2px solid var(--deep); font-size: 15px; line-height: 1.45; }
.foot-cell { padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.foot-label { font-size: 13px; color: var(--galv); }
.foot-name { font-weight: 600; color: var(--deep); }
.foot-cell p { color: var(--ink2); }
.foot-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--zinc); }
.foot-split .foot-cell + .foot-cell { border-left: 1px solid var(--zinc); padding-left: 20px; }
.foot-docs { border-top: 1px solid var(--zinc); }
.foot-base {
  border-top: 1px solid var(--zinc); padding: 14px 0;
  font-size: 13px; color: var(--galv);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-nav a { color: var(--ink2); }

/* ==========================================================================
   ≥720px — two columns return, gutters open up
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .hero { padding: 40px 0 36px; }
  .hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
  .hero-copy { display: flex; flex-direction: column; gap: 20px; }
  .hero h1, .hero figure, .hero-copy p, .hero-links { order: 0; }
  .hero h1 { font-size: 32px; line-height: 1.2; }
  .hero p { font-size: 17px; }
  .hero-links { flex-direction: row; gap: 28px; }

  .sec-head { flex-direction: row; justify-content: space-between; align-items: baseline; padding-bottom: 10px; }
  .sec-head h2 { font-size: 22px; }
  .sec-head a { font-size: 15px; }

  .caps a { grid-template-columns: 48px 260px 1fr; gap: 0 20px; align-items: baseline; padding: 16px 0; }
  .cap-n { font-size: 15px; }
  .cap-title { font-size: 18px; }
  .cap-text { grid-column: auto; font-size: 16px; line-height: 1.5; }

  .featured { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .feat-side { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .feat-lead h3 { font-size: 20px; }
  .feat-meta { font-size: 15px; }
  .feat-desc { font-size: 16px; }
  .feat-thumb { grid-template-columns: 150px 1fr; gap: 20px; padding-top: 22px; }
  .feat-thumb h3 { font-size: 18px; }
  .feat-thumb .mat { padding: 6px; }

  .interior { padding-block: 34px 12px; }
  .ix h1 { font-size: 30px; }
  .isec h2 { font-size: 22px; }
  .isec p { font-size: 16px; }
  .consultants { grid-template-columns: repeat(3, 1fr); }

  .page-intro { padding: 36px 0 12px; }
  .intro-grid h1 { font-size: 30px; }
  .intro-grid p { font-size: 16px; }
  .proj-grid { padding-block: 32px 40px; gap: 14px; }
  .proj h2 { font-size: 23px; }
  .proj-body { font-size: 16px; }

  .site-footer { font-size: 15px; }
  .foot-grid { display: grid; grid-template-columns: 1fr 1fr; }
  .foot-grid .foot-cell { padding: 22px 24px; border-left: 1px solid var(--zinc); }
  .foot-grid .foot-first { padding-left: 0; border-left: 0; }
  .foot-split { display: contents; }
  .foot-docs { border-top: 0; }
  .foot-base { font-size: 14px; }
}

/* ==========================================================================
   ≥1000px — the 1280 artboard
   ========================================================================== */
@media (min-width: 1000px) {
  :root { --gutter: 56px; }

  .header-bar { padding-block: 20px; }
  .brand { gap: 14px; }
  .brand img { height: 38px; }
  .brand span { font-size: 15px; }

  .nav-toggle { display: none !important; }
  .js .nav-panel, .nav-panel {
    display: block; flex: 0 0 auto; width: auto;
    margin-inline: 0; padding: 0; border-top: 0;
  }
  .nav-list { flex-direction: row; gap: 32px; font-size: 16px; font-weight: 500; }
  .nav-list a { padding: 0 0 2px; border-bottom: 2px solid transparent; display: inline; }
  .nav-list a[aria-current="page"] { color: var(--deep); border-bottom-color: var(--deep); }
  .nav-list a .current { display: none; }
  .nav-contact { display: none; }

  .hero { padding: 48px 0 44px; }
  .hero-grid { gap: 56px; }
  .hero-copy { gap: 22px; }
  .hero h1 { font-size: 36px; }
  .hero p { max-width: 640px; }
  .mat { padding: 10px; }

  .sec { padding: 40px 0 44px; }
  .caps a { grid-template-columns: 56px 300px 1fr; gap: 0 24px; }
  .featured { grid-template-columns: 7fr 5fr; gap: 56px; }
  .feat-side { display: flex; flex-direction: column; gap: 0; }
  .feat-thumb:first-child { padding-top: 0; border-top: 0; padding-bottom: 22px; border-bottom: 1px solid var(--zinc); }
  .feat-thumb + .feat-thumb { padding-top: 22px; }
  .sec-featured { padding-top: 8px; padding-bottom: 56px; }
  .featured-head { margin-bottom: 24px; }

  /* Interior: sticky section index left, content right */
  .interior { display: grid; grid-template-columns: 3fr 9fr; gap: 56px; padding-block: 44px 56px; }
  .ix { position: sticky; top: 24px; align-self: start; }
  .ix h1 {
    font-size: 34px; line-height: 1.2; padding-bottom: 16px;
    border-bottom: 2px solid var(--deep);
  }
  .ix-nav { margin-top: 0; border-top: 0; }
  .ix-nav a { grid-template-columns: 1fr; padding: 11px 0; }
  .ix-nav .ix-n { display: none; }

  .isec-list { gap: 44px; padding: 0; }
  .isec { gap: 16px; }
  .isec h2 { font-size: 24px; line-height: 1.25; padding-bottom: 10px; }
  .isec p { font-size: 16px; line-height: 1.55; max-width: 760px; }
  .sec-split { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
  .sec-split .sec-copy p { max-width: none; }
  .sec-split figcaption { max-width: none; }

  .plant { border-top: 1px solid var(--deep); }
  .plant thead {
    position: static; width: auto; height: auto; clip: auto;
    color: var(--galv); font-size: 13px;
  }
  .plant thead tr { display: table-row; border: 0; padding: 0; }
  .plant thead th { display: table-cell; padding: 8px 0 6px; font-weight: 500; }
  .plant thead th:first-child { width: 34%; }
  .plant tbody tr { display: table-row; border-bottom: 0; border-top: 1px solid var(--zinc); padding: 0; }
  .plant tbody tr:first-child { border-top: 1px solid var(--zinc); }
  .plant tbody th, .plant tbody td { display: table-cell; vertical-align: top; }
  .plant tbody th { padding: 9px 24px 9px 0; }
  .plant tbody td { padding: 9px 0; font-size: 15px; }

  .page-intro { padding: 44px 0 40px; }
  .intro-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; align-items: end; }
  .intro-grid h1 { font-size: 34px; line-height: 1.2; }
  .intro-grid p { font-size: 17px; }

  .register { margin: 22px 0 0; border-top: 2px solid var(--deep); }
  .register thead tr { color: var(--galv); font-size: 13px; text-align: left; }
  .register th { padding: 10px 0 8px; font-weight: 500; }
  .register th:nth-child(1) { width: 88px; }
  .register th:nth-child(2) { width: 38%; }
  .register th:nth-child(3) { width: 17%; }
  .register th:nth-child(5) { width: 14%; }
  .register tbody tr { border-top: 1px solid var(--zinc); }
  .register td { padding: 11px 16px 11px 0; vertical-align: top; color: var(--ink2); }
  .register .c-year { padding-right: 12px; font-size: 14px; }
  .register .c-name { color: var(--mill); }
  .register .c-contract { padding-right: 0; }

  .proj-grid {
    display: grid; grid-template-columns: 4fr 8fr; gap: 56px;
    padding-block: 40px 48px; align-items: start;
  }
  .proj-text { display: flex; flex-direction: column; gap: 14px; }
  .proj-fig { display: block; }
  .proj h2, .proj-meta, .proj-body, .proj-facts, .proj-fig > * { order: 0; }
  .proj h2 { font-size: 24px; line-height: 1.25; }
  .proj-meta { font-size: 15px; }
  .proj-body { font-size: 16px; line-height: 1.55; }
  .proj-facts { gap: 7px 20px; font-size: 15px; padding-top: 14px; margin-top: 4px; }
  .proj-extra { gap: 9px 20px; font-size: 15px; padding-top: 14px; width: calc((100% - 32px) / 2); }
  .fig-half { width: calc((100% - 32px) * 5 / 9); }

  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
  .foot-grid .foot-cell:nth-child(2) { border-left: 1px solid var(--zinc); }
  .foot-base { padding: 14px 0; }
}

/* ==========================================================================
   Print — reviewers save Projects and Capabilities to PDF
   ========================================================================== */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff; color: #000; font-size: 10.5pt; }
  .skip, .nav-toggle, .site-header nav, .nav-panel, .nav-contact, .foot-nav { display: none !important; }
  .site-header { border-bottom: 1pt solid #000; }
  .header-bar { padding-block: 0 8pt; }
  a { color: #000; text-decoration: none; }
  /* Print URLs after links, but not for in-page or mail-to-self noise */
  main a[href^="http"]::after,
  main a[href*=".html"]::after { content: " (" attr(href) ")"; font-size: 8.5pt; color: #444; }
  /* in-page anchors and the section index are useless on paper */
  main a[href^="#"]::after { content: ""; }
  .ix-nav a::after { content: "" !important; }
  main a[href^="mailto:"]::after, main a[href^="tel:"]::after { content: ""; }
  img { max-width: 100% !important; }
  figure, tr, .caps a, article { break-inside: avoid; page-break-inside: avoid; }
  thead { display: table-header-group; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  .site-footer { border-top: 1pt solid #000; }
}
