:root{
  --page-w: 467.717pt;
  --page-h: 651.969pt;
  --theme-color: #00b3c4;
  --hf-font: "Overpass", Arial, sans-serif;
  --body-font: "Overpass", Arial, sans-serif;

  --header-h: 52pt;
  --content-pad-x: 28pt;
  --content-pad-top: 18pt;
  --content-pad-bottom: 54pt;
  --footer-pad-y: 18pt;

  --text-color: #111;
  --muted-color: #555;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  padding: 0;
  background: #f5f5f5;
}

.page{
  width: var(--page-w);
  min-height: var(--page-h);
  margin: 0 auto;
  position: relative;
  background: #fff;
  color: var(--text-color);
  box-shadow: 0 0 0 0.25pt rgba(0,0,0,0.1);
  overflow: hidden;
}

.page__header{
  height: var(--header-h);
  background: var(--theme-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hf-font);
}

.page__header-inner{
  width: 100%;
  text-align: center;
  padding: 0 14pt;
}

.page__theme{
  font-size: 15pt;
  font-weight: 700;
  letter-spacing: 0.1pt;
  line-height: 1.15;
}

.page__content{
  padding: var(--content-pad-top) var(--content-pad-x) var(--content-pad-bottom) var(--content-pad-x);
  font-family: var(--body-font);
  font-size: 12pt;
  line-height: 1.35;
  color: var(--text-color);
}

.page__footer{
  position: absolute;
  left: var(--content-pad-x);
  bottom: var(--footer-pad-y);
  font-family: var(--hf-font);
}

.page__pageno{
  color: var(--theme-color);
  font-weight: 700;
  font-size: 14pt;
  font-family: Arial, "Overpass", sans-serif;
}

/* Typography */
h1,h2,h3{ margin: 0 0 10pt 0; line-height: 1.15; font-weight: 700; }
h1{ font-size: 18pt; }
h2{ font-size: 16pt; }
h3{ font-size: 14pt; }
p{ margin: 0 0 8pt 0; line-height: 1.35; font-size: 12pt; }
.lead{ font-size: 13pt; }
.muted{ color: var(--muted-color); }

/* Lists */
ul,ol{ margin: 0 0 10pt 18pt; padding: 0; }
li{ margin: 0 0 6pt 0; line-height: 1.35; }
.list--custom{ list-style: none; margin-left: 0; }
.list--custom li{ position: relative; padding-left: 14pt; }
.list--custom li::before{
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--theme-color);
  font-size: 10pt;
  line-height: 1.35;
  font-family: Arial, "Overpass", sans-serif;
  font-weight: 700;
}

/* Layout helpers */
.block{ margin: 0 0 12pt 0; }
.grid{ display: grid; gap: 10pt; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }

/* Horizontal image row (for side-by-side images) */
.img-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8pt;
  align-items: flex-start;
  margin: 8pt 0;
}
.img-row > img {
  flex: 1 1 auto;
  max-width: 48%;
  height: auto;
  object-fit: contain;
}
.img-row.items-3 > img {
  max-width: 31%;
}
.img-row.items-4 > img {
  max-width: 23%;
}

.card{
  border: 1pt solid rgba(0,0,0,0.12);
  border-radius: 6pt;
  padding: 10pt;
}

/* Media */
figure{ margin: 0 0 12pt 0; }
figure img, img{
  max-width: 100%;
  height: auto;
  display: block;
}
figure figcaption{
  font-size: 10.5pt;
  color: #444;
  margin-top: 4pt;
}
svg{
  max-width: 100%;
  height: auto;
  display: block;
}


/* Badges/labels */
.badge{
  display: inline-flex;
  gap: 8pt;
  align-items: center;
  padding: 6pt 10pt;
  border-radius: 8pt;
  border: 1pt solid color-mix(in srgb, var(--theme-color) 70%, #0000);
  background: color-mix(in srgb, var(--theme-color) 18%, #fff);
  font-weight: 600;
}

/* Optional: header without color bar */
.page--text-header .page__header{
  background: transparent;
  color: var(--text-color);
  justify-content: flex-start;
}
.page--text-header .page__theme{
  color: var(--theme-color);
}

/* ========================================
   Traffic Signs
   All SVGs normalized to viewBox height = 100
   CSS height controls display size, width auto-scales
   ======================================== */

img.sign-svg {
  height: 55px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Multiple signs in one cell - horizontal row */
.multi-sign-container {
  display: flex;
  flex-direction: row;
  gap: 8px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
}

.multi-sign-container img.sign-svg {
  margin: 0;
  height: 50px;
}

/* Sign code labels */
.sign-code {
  font-weight: 700;
  color: var(--theme-color);
}

/* ========================================
   Tables Layout
   ======================================== */

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

td, th {
  border: 1pt solid rgba(0,0,0,0.15);
  padding: 6pt 8pt;
  vertical-align: middle;
}

th {
  background: color-mix(in srgb, var(--theme-color) 18%, #fff);
  font-weight: 700;
}
