/* =========================================================
   SAE Ltd — Stylesheet
   Subdivision and Engineering Ltd
   ========================================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a2332;
  background: #fff;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: #1d5fa8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Colour Variables (CSS custom properties) --- */
:root {
  --navy:    #0f2540;
  --blue:    #1d5fa8;
  --mid:     #3478c5;
  --light:   #e8f1fb;
  --grey-bg: #f4f6f9;
  --border:  #cdd8e8;
  --text:    #1a2332;
  --muted:   #5a6a7e;
  --white:   #ffffff;
  --accent:  #c8880a;   /* amber — used sparingly */
}

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .4rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; color: #2c3e50; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }
strong { color: var(--navy); }

blockquote {
  border-left: 4px solid var(--mid);
  padding: .8rem 1.2rem;
  background: var(--light);
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
  border-radius: 0 4px 4px 0;
}
blockquote cite { display: block; margin-top: .5rem; font-style: normal; font-size: .9rem; color: var(--muted); }

/* --- Layout --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--grey-bg); }

/* --- Navigation --- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.nav-brand .brand-name {
  font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: .02em;
}
.nav-brand .brand-sub {
  font-size: .7rem; color: #9bb8d8; letter-spacing: .08em; text-transform: uppercase;
}
.nav-links { display: flex; gap: .25rem; list-style: none; }
.nav-links a {
  display: block; padding: .5rem .85rem; border-radius: 4px;
  color: #c8d8ed; font-size: .9rem; transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px;
  transition: transform .25s;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: .75rem 1.5rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1); gap: .1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .65rem .5rem; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3d6e 60%, #1d5fa8 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

/* Hero with background photo overlay */
.hero--photo {
  position: relative;
  padding: 6rem 0 5rem;
}
.hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,37,64,.68) 0%, rgba(15,37,64,.60) 50%, rgba(15,37,64,.55) 100%);
  z-index: 0;
}
.hero--photo > .container { position: relative; z-index: 1; }

/* Page-specific hero backgrounds — WebP with JPG fallback */
.hero.hero--home       { background: url('../images/hero-aerial.jpg') center/cover no-repeat; background: url('../images/hero-aerial.webp') center/cover no-repeat; }
.hero.hero--services   { background: url('../images/hero-subdivision.jpg') center/cover no-repeat; background: url('../images/hero-subdivision.webp') center/cover no-repeat; }
.hero.hero--projects   { background: url('../images/hero-framing.jpg') center/cover no-repeat; background: url('../images/hero-framing.webp') center/cover no-repeat; }
.hero.hero--about      { background: url('../images/hero-workers.jpg') center/cover no-repeat; background: url('../images/hero-workers.webp') center/cover no-repeat; }
.hero.hero--contact    { background: url('../images/hero-loader.jpg') center/cover no-repeat; background: url('../images/hero-loader.webp') center/cover no-repeat; }
.hero.hero--inner      { background: url('../images/hero-site.jpg') center 30%/cover no-repeat; background: url('../images/hero-site.webp') center 30%/cover no-repeat; }
.hero h1 { color: #fff; margin-bottom: .75rem; }
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #9ec4e8;
  margin-bottom: 2rem;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.hero .tagline {
  font-size: .85rem; color: #7aacda; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 5px;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
}
.btn-primary:hover { background: #1750a0; border-color: #1750a0; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-white {
  background: #fff; color: var(--navy); border: 2px solid #fff;
}
.btn-white:hover { background: #e8f1fb; text-decoration: none; }

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.75rem; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.card h3 { color: var(--navy); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.card .card-tag { font-size: .75rem; color: var(--mid); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem; }
.card .card-link { font-size: .88rem; font-weight: 600; color: var(--blue); }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.project-card .rating { font-size: 1rem; margin-bottom: .4rem; }
.project-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.project-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.project-card p { font-size: .9rem; color: #3a4a5c; margin-bottom: .75rem; }
.project-card .read-more { font-size: .85rem; font-weight: 600; color: var(--blue); }

/* --- Credential strip --- */
.cred-strip {
  background: var(--navy); color: #9ec4e8; padding: 1.5rem 0; text-align: center;
}
.cred-strip .cred-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem; }
.cred-item strong { color: #fff; display: block; font-size: 1.05rem; }
.cred-item span { font-size: .82rem; }

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), #0d3d6e);
  color: #fff; text-align: center; padding: 3.5rem 1.5rem;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: #9ec4e8; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* --- Services list --- */
.service-section { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.service-section:last-child { border-bottom: none; }
.service-section h3 { font-size: 1.3rem; color: var(--blue); margin-bottom: .5rem; }
.service-meta { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; font-style: italic; }

/* --- Tables --- */
table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
th {
  background: var(--navy); color: #fff; text-align: left; padding: .7rem 1rem;
  font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
}
td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--light); }

/* --- Case study layout --- */
.case-hero {
  background: linear-gradient(135deg, var(--navy), #1a3d6e);
  color: #fff; padding: 3.5rem 0 2.5rem;
}
.case-hero h1 { color: #fff; font-size: clamp(1.4rem, 3.5vw, 2.2rem); margin-bottom: .75rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; }
.case-meta-item { font-size: .85rem; color: #9ec4e8; }
.case-meta-item strong { color: #c8ddf5; }

.case-body { padding: 3rem 0; }
.case-body h2 { font-size: 1.3rem; color: var(--blue); margin: 2rem 0 .6rem; padding-top: .5rem; border-top: 2px solid var(--light); }
.case-body h2:first-child { border-top: none; margin-top: 0; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-box {
  background: var(--light); border-left: 4px solid var(--blue); border-radius: 0 6px 6px 0;
  padding: 1rem 1.25rem;
}
.stat-box .stat-val { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.stat-box .stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* --- About page --- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start; }
.about-photo {
  background: var(--light); border-radius: 8px;
  overflow: hidden; color: var(--muted); font-size: .9rem; border: 1px solid var(--border);
}
.about-photo img { width: 100%; display: block; }
@media (max-width: 700px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 320px; margin: 0 auto; } }

/* --- Contact page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { margin-bottom: .5rem; }
.contact-item { display: flex; gap: .75rem; margin-bottom: 1.25rem; align-items: flex-start; }
.contact-icon { font-size: 1.2rem; margin-top: .1rem; }

/* --- Form (placeholder) --- */
.contact-form { background: var(--grey-bg); padding: 2rem; border-radius: 8px; border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .9rem; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .6rem .85rem; border: 1px solid var(--border); border-radius: 5px;
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--text);
  transition: border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,168,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- Footer --- */
.site-footer {
  background: #0a1d35; color: #b8cce0; padding: 3rem 0 1.5rem;
}
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.footer-brand .brand-name { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.footer-brand p { font-size: .88rem; margin-bottom: .5rem; color: #b8cce0; }
.footer-col h4 { color: #e0eaf4; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: #9ec4e8; font-size: .88rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3655; padding-top: 1.25rem; font-size: .82rem; text-align: center; color: #8aa4be; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--light);
  padding: .55rem 0;
  font-size: .82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { margin: 0 .4rem; color: var(--border); }

/* --- Region tags --- */
.tag { display: inline-block; padding: .2rem .65rem; border-radius: 20px; font-size: .75rem; font-weight: 600; letter-spacing: .03em; }
.tag-blue { background: var(--light); color: var(--blue); }
.tag-navy { background: var(--navy); color: #9ec4e8; }
.tag-grey { background: var(--border); color: var(--muted); }

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.section-label { font-size: .78rem; color: var(--mid); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .88rem; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--blue); }

/* --- Responsive general --- */
@media (max-width: 600px) {
  section { padding: 2.5rem 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero--photo { padding: 4rem 0 3.5rem; }
  table { font-size: .8rem; }
  th, td { padding: .5rem .65rem; }
}

/* =========================================================
   Blog — index and post styles
   ========================================================= */

/* Blog index grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.blog-card .blog-category {
  font-size: .73rem; color: var(--mid); text-transform: uppercase;
  letter-spacing: .07em; margin-bottom: .35rem; font-weight: 600;
}
.blog-card .blog-date { font-size: .82rem; color: var(--muted); margin-bottom: .5rem; }
.blog-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: .5rem; line-height: 1.3; }
.blog-card .blog-excerpt { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.blog-card .read-more { font-size: .85rem; font-weight: 600; color: var(--blue); margin-top: auto; }
.blog-card .blog-meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .78rem; color: var(--muted); margin-bottom: .65rem;
}

/* Blog post hero */
.post-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3d6e 60%, #1d5fa8 100%);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
}
.post-hero h1 {
  color: #fff;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: .85rem;
  color: #9ec4e8;
  margin-top: .75rem;
}
.post-meta span::before { content: ''; }

/* Blog post body */
.post-body { padding: 3rem 0; }
.post-body h2 {
  font-size: 1.3rem; color: var(--blue); margin: 2rem 0 .6rem;
  padding-top: .75rem; border-top: 2px solid var(--light);
}
.post-body h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.post-body h3 { font-size: 1.05rem; color: var(--navy); margin: 1.25rem 0 .4rem; }
.post-body ul, .post-body ol { margin: .5rem 0 1rem 1.4rem; }
.post-body li { margin-bottom: .4rem; color: #2c3e50; }

/* Key point callout (re-use case study style) */
.post-callout {
  background: var(--light);
  border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}
.post-callout strong { display: block; margin-bottom: .4rem; color: var(--navy); }

/* Author bio box */
.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--grey-bg);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 1.5rem;
  border: 1px solid var(--border);
}
.author-avatar { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.author-name { font-weight: 700; color: var(--navy); font-size: 1rem; margin-bottom: .1rem; }
.author-title { font-size: .83rem; color: var(--muted); margin-bottom: .5rem; }
.author-bio { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Share / LinkedIn section */
.post-share {
  border-top: 2px solid var(--light);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.post-share-label { font-size: .88rem; color: var(--muted); font-weight: 600; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem 1rem;
  border-radius: 5px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  border: none;
  cursor: pointer;
}
.share-btn:hover { opacity: .82; text-decoration: none; }
.share-btn-linkedin { background: #0A66C2; color: #fff; }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 2rem; }
.post-tag {
  display: inline-block; padding: .2rem .7rem;
  background: var(--light); color: var(--blue);
  border-radius: 20px; font-size: .78rem; font-weight: 600;
}

/* Related posts strip */
.related-posts {
  background: var(--grey-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.related-posts h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 1rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.related-card {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 1rem 1.15rem;
}
.related-card .blog-category { font-size: .72rem; color: var(--mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; font-weight: 600; }
.related-card h4 { font-size: .93rem; color: var(--navy); margin-bottom: .3rem; line-height: 1.3; }
.related-card a { color: var(--blue); font-size: .83rem; font-weight: 600; }

@media (max-width: 600px) {
  .post-hero { padding: 2.5rem 0 2rem; }
  .author-box { flex-direction: column; gap: .75rem; }
}

/* =========================================================
   Back-to-top button
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 2px solid rgba(255,255,255,.15);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, transform .15s;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }
.back-to-top.visible { opacity: 1; visibility: visible; }

/* =========================================================
   Form validation & success
   ========================================================= */
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: #c44;
}
.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
  border-color: #2a9d5c;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.form-success.show { display: block; }
.form-success h2 { color: #2a9d5c; margin-bottom: .5rem; }
.form-success p { color: var(--muted); }

/* =========================================================
   Print stylesheet
   ========================================================= */
@media print {
  *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; }
  body { font-size: 11pt; line-height: 1.5; }
  .site-header, .nav-toggle, .back-to-top, .cta-band, .cred-strip { display: none !important; }
  .hero { background: none !important; padding: 1rem 0 !important; }
  .hero::before { display: none !important; }
  .hero h1, .hero .subtitle, .hero .tagline { color: #000 !important; }
  .site-footer { border-top: 1px solid #ccc; padding: 1rem 0; }
  .footer-col, .footer-brand p:last-child { display: none; }
  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .nav-links a[href]::after, .footer-col a[href]::after { content: none; }
  .container { max-width: 100%; padding: 0; }
  section { padding: 1.5rem 0; page-break-inside: avoid; }
  table { page-break-inside: avoid; }
  th { background: #eee !important; color: #000 !important; }
  .btn { border: 1px solid #000; padding: .3rem .8rem; }
}
