/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1d1424;
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: #c8102e; text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
table th, table td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
table th { background: #f5f0f7; }

/* ===== Header ===== */
.site-header {
  background: #1d1424;
  border-bottom: 3px solid #c8102e;
  position: relative;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 16px;
}
.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo img {
  height: 48px;
  width: auto;
}
.main-nav {
  flex: 1;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover { color: #ffcc33; text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: #1d1424; text-decoration: none; }
.btn-filled {
  background: #c8102e;
  color: #fff;
}
.btn-filled:hover { background: #ffcc33; color: #1d1424; text-decoration: none; }

/* burger - hidden on desktop */
.menu-toggle { display: none; }
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
}

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  background: #f5f0f7;
  border-bottom: 1px solid #e3d9e8;
}
.breadcrumbs ol {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #999;
}
.breadcrumbs a { color: #5a4a63; }
.breadcrumbs li[aria-current="page"] { color: #1d1424; font-weight: 600; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #1d1424;
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-bg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4% 0 5%;
}
.hero-content h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 0 12px;
  line-height: 1.2;
}
.hero-content p {
  color: #e8e0eb;
  margin: 0 0 20px;
  font-size: 1rem;
}
.hero-cta {
  display: inline-block;
  align-self: flex-start;
  background: #c8102e;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}
.hero-cta:hover { background: #ffcc33; color: #1d1424; text-decoration: none; }

/* ===== TOC accordion ===== */
.toc-accordion {
  border: 1px solid #e3d9e8;
  border-radius: 8px;
  margin: 1.5em 0;
  overflow: hidden;
}
.toc-accordion summary {
  cursor: pointer;
  background: #f5f0f7;
  padding: 12px 16px;
  font-weight: 700;
  list-style: none;
}
.toc-accordion summary::-webkit-details-marker { display: none; }
.toc-accordion summary::before {
  content: "▸ ";
  color: #c8102e;
}
.toc-accordion[open] summary::before { content: "▾ "; }
.toc-accordion ul, .toc-accordion ol {
  margin: 0;
  padding: 14px 16px 14px 36px;
}

/* ===== Article ===== */
article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}
.author-box {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid #e3d9e8;
  font-size: 0.85rem;
  color: #666;
}

/* ===== Footer ===== */
.site-footer {
  background: #1d1424;
  color: #cfc4d4;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.footer-nav a { color: #fff; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid #3a2e42;
  padding-top: 16px;
  font-size: 0.82rem;
  color: #9b8da3;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero-content { width: 60%; padding: 0 4% 0 4%; }
  .hero-content h2 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-cta { padding: 11px 20px; font-size: 0.95rem; }
}

@media (max-width: 700px) {
  .header-inner { padding: 8px 14px; }
  .logo img { height: 36px; }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1d1424;
    border-top: 1px solid #3a2e42;
    display: none;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .main-nav ul li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #2c2233;
  }
  .menu-toggle:checked ~ .main-nav { display: block; }

  .header-actions { gap: 8px; }
  .btn { padding: 7px 12px; font-size: 0.8rem; }
  .burger { display: flex; }

  .hero-content { width: 92%; padding: 16px 5%; height: auto; top: 0; bottom: 0; justify-content: flex-start; padding-top: 24px; }
  .hero-content h2 { font-size: 1.15rem; }
  .hero-content p { font-size: 0.85rem; margin-bottom: 14px; }
  .hero-cta { padding: 10px 18px; font-size: 0.9rem; }

  .footer-nav { gap: 14px; }
}

@media (max-width: 460px) {
  .header-actions { gap: 5px; }
  .btn { padding: 6px 9px; font-size: 0.72rem; }
  .logo img { height: 30px; }
  .hero-content h2 { font-size: 1rem; }
  .hero-content p { display: none; }
}
