* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2f2f2f;
  background: #f5f5dc;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

table.main-layout {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #556b2f;
}

.header-cell {
  background: #556b2f;
  color: #f5f5dc;
  padding: 20px;
  border-bottom: 3px solid #8b4513;
  position: relative;
}

.header-cell::before,
.header-cell::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid #8b4513;
}

.header-cell::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.header-cell::after {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

h1 {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #8b4513;
  display: inline-block;
}

.content-row {
  vertical-align: top;
}

.main-content {
  padding: 30px;
  width: 70%;
}

.sidebar-cell {
  padding: 20px;
  width: 30%;
  background: #faf8f0;
  border-left: 2px solid #556b2f;
  position: relative;
}

.sidebar-cell::before,
.sidebar-cell::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #8b4513;
}

.sidebar-cell::before {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.sidebar-cell::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

.infobox {
  background: #ffffff;
  border: 2px solid #556b2f;
  padding: 15px;
  margin-bottom: 20px;
  position: relative;
}

.infobox::before,
.infobox::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #8b4513;
}

.infobox::before {
  top: 5px;
  left: 5px;
  border-right: none;
  border-bottom: none;
}

.infobox::after {
  bottom: 5px;
  right: 5px;
  border-left: none;
  border-top: none;
}

.infobox-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #8b4513;
  text-align: center;
}

.toc {
  background: #ffffff;
  border: 1px solid #556b2f;
  padding: 15px;
  margin-bottom: 25px;
  position: relative;
}

.toc::before,
.toc::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #8b4513;
}

.toc::before {
  top: 5px;
  left: 5px;
  border-right: none;
  border-bottom: none;
}

.toc::after {
  top: 5px;
  right: 5px;
  border-left: none;
  border-bottom: none;
}

.toc-title {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li {
  margin: 5px 0;
  padding-left: 15px;
  position: relative;
}

.toc li::before {
  content: '\25A0';
  position: absolute;
  left: 0;
  color: #8b4513;
  font-size: 0.7rem;
}

.toc a {
  color: #556b2f;
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  color: #8b4513;
}

h2 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 30px 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #556b2f;
  color: #2f2f2f;
}

p {
  margin-bottom: 15px;
  text-align: justify;
}

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

a {
  color: #556b2f;
  text-decoration: underline;
}

a:hover {
  color: #8b4513;
}

.footer-cell {
  background: #faf8f0;
  padding: 15px 30px;
  border-top: 2px solid #556b2f;
  font-size: 0.85rem;
  text-align: center;
  color: #2f2f2f;
}

.cta-card {
  background: #ffffff;
  border: 2px solid #8b4513;
  padding: 20px;
  margin-top: 15px;
  position: relative;
}

.cta-card::before,
.cta-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #556b2f;
}

.cta-card::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.cta-card::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.cta-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.cta-card a {
  color: #8b4513;
  font-weight: bold;
}

@media (max-width: 768px) {
  .content-row {
    display: block;
  }

  .main-content,
  .sidebar-cell {
    display: block;
    width: 100%;
    padding: 15px;
  }

  .sidebar-cell {
    border-left: none;
    border-top: 2px solid #556b2f;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}
