
/* Base html/body */
html, body {
  margin: 30px 0px 0px 0px;
  padding: 0;
}

/* Body: no extra width or padding; @page handles margins */
body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  line-height: 1.7;
}

/* All elements use border-box to avoid overflow */
* {
  box-sizing: border-box;
}

/* Card now IS the main content container (everything is inside it) */
.card {
  margin: 30px 60px 0px 60px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Header INSIDE card */
.card .header {
  text-align: center;
  margin: 0 0 30px 0;
}

.card .header img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

/* Single h1 rule for the main title inside card */
.card h1 {
  font-size: 1.9em;
  font-weight: 400;
  color: #222;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #17a2b8;
  padding-bottom: 10px;
}

/* Subheadings in the card */
.card h2 {
  font-size: 1.6em;
  color: #333;
  margin: 1.8em 0 0.8em;
  font-weight: 400;
}

.card h3 {
  font-size: 1.4em;
  color: #444;
  font-weight: 400;
}

/* Section content */
.section-content {
  margin: 1.2em 0;
}

.section-content * {
  line-height: 1.6;
}

.section-content p {
  margin: 12px 0;
}

.section-content p:first-child {
  margin-top: 0;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.section-content ul,
.section-content ol {
  padding-left: 2em;
  margin: 1em 0;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  margin: 1.5em 0;
}

table th {
  background-color: #17a2b8;
  color: #fff;
  padding: 12px 15px;
  text-align: left;
  font-weight: 600;
}

table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

table tbody tr:hover {
  background-color: #e9ecef;
}

/* Zero spacing between tables */
table + table {
    margin-top: 0 !important;
}

table {
    margin-bottom: 1em !important; /* Controlled spacing only after last table */
}

/* Remove any inherited spacing */
.section-content table {
    margin: 1em 0;
}

/* Footer & timestamp */
.footer {
  text-align: center;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

.timestamp {
  text-align: center;
  margin-top: 30px;
  color: #666;
  font-size: 14px;
}
