/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: #232323;
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: #c8102e; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: #17130f; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ Header ============ */
.site-header {
  background: #14100f;
  border-bottom: 3px solid #c8102e;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  order: 1;
}
.logo picture { display: block; }
.logo img {
  height: 46px;
  width: auto;
  border-radius: 6px;
}

/* burger checkbox hack */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 20;
  order: 4;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  order: 2;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #f2f2f2;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.nav-links a:hover { color: #ff4d5e; text-decoration: none; }

.nav-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  order: 3;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  border: 2px solid #c8102e;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn-outline {
  color: #ffffff;
  background: transparent;
}
.btn-solid {
  color: #ffffff;
  background: #c8102e;
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  background: #f5f2ee;
  border-bottom: 1px solid #e6e0d8;
}
.breadcrumbs-inner {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 20px;
  font-size: 13px;
  color: #6a6a6a;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #a89f92;
}
.breadcrumbs a { color: #7a1120; }
.breadcrumbs span[aria-current] { color: #6a6a6a; }

/* ============ Hero ============ */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
}
.hero-media { width: 100%; }
.hero-media picture { display: block; }
.hero-media img {
  width: 100%;
  height: auto;
}
.hero-content {
  padding: 24px 20px;
  text-align: center;
  background: #14100f;
}
.hero-heading {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}
.hero-content p {
  margin: 0 0 18px;
  color: #d8d4cf;
}
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #c8102e;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 8px;
}
.cta-btn:hover { text-decoration: none; background: #a80d26; }

/* ============ Main content ============ */
main { padding: 30px 0 10px; }
main > .container { max-width: 900px; }
article h1 { font-size: 26px; }
article h2 { font-size: 21px; margin-top: 36px; }
section { margin-bottom: 6px; }
aside {
  max-width: 900px;
  margin: 30px auto 0;
  padding: 18px 20px;
  background: #f5f2ee;
  border-left: 4px solid #c8102e;
  border-radius: 4px;
  font-size: 14px;
  color: #444;
}

/* ============ TOC accordion ============ */
details.toc {
  max-width: 900px;
  margin: 0 auto 24px;
  border: 1px solid #e6e0d8;
  border-radius: 8px;
  background: #f9f7f4;
  padding: 0;
}
details.toc summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  color: #17130f;
  position: relative;
}
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #c8102e;
}
details.toc[open] summary::after { content: "\2212"; }
details.toc .toc-body { padding: 0 18px 16px; }
details.toc ul, details.toc ol { margin: 0; padding-left: 20px; }
details.toc li { margin-bottom: 6px; }

/* ============ Tables ============ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}
caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
th, td {
  border: 1px solid #e0dcd4;
  padding: 10px 12px;
  text-align: left;
}
thead th {
  background: #14100f;
  color: #fff;
}
tbody tr:nth-child(even) { background: #f8f6f3; }

/* ============ Footer ============ */
.site-footer {
  background: #14100f;
  color: #cfcfcf;
  margin-top: 40px;
  padding: 30px 0 20px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.footer-nav a { color: #f2f2f2; font-weight: 600; }
.footer-nav a:hover { color: #ff4d5e; }
.footer-note {
  width: 100%;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #322c28;
  color: #8f8a84;
  font-size: 12.5px;
}

/* ============ Desktop layout (hero overlay) ============ */
@media (min-width: 761px) {
  .hero-media { position: relative; }
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 46%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 4% 0 5%;
    background: none;
  }
  .hero-heading {
    font-size: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  }
  .hero-content p {
    color: #f0ede8;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  }
}

/* ============ Mobile layout ============ */
@media (max-width: 760px) {
  .header-inner { padding: 8px 14px; gap: 8px; }
  .burger { display: flex; order: 4; }

  .logo img { height: 34px; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #14100f;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 16px;
    border-top: 1px solid #2b2521;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 15;
  }
  .menu-toggle:checked ~ .site-nav { display: flex; }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-links li { border-bottom: 1px solid #2b2521; }
  .nav-links a { display: block; padding: 12px 0; }

  /* buttons always visible in the header row, never inside the burger menu */
  .nav-buttons {
    order: 3;
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-buttons .btn {
    padding: 7px 10px;
    font-size: 12px;
    border-width: 1.5px;
    border-radius: 5px;
  }

  /* responsive tables -> stacked cards */
  table.responsive-table thead { display: none; }
  table.responsive-table, table.responsive-table tbody, table.responsive-table tr, table.responsive-table td {
    display: block;
    width: 100%;
  }
  table.responsive-table { border: none; }
  table.responsive-table tr {
    margin-bottom: 14px;
    border: 1px solid #e0dcd4;
    border-radius: 6px;
    overflow: hidden;
  }
  table.responsive-table td {
    border: none;
    border-bottom: 1px solid #eee5db;
    padding: 10px 12px 10px 46%;
    position: relative;
    text-align: right;
    min-height: 20px;
  }
  table.responsive-table td:last-child { border-bottom: none; }
  table.responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 40%;
    text-align: left;
    font-weight: 700;
    color: #17130f;
    white-space: normal;
  }
}
