.highlighted-lead {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 6px solid #c89b2b;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e6 0%, #f6edd4 100%);
  box-shadow: 0 10px 24px rgba(84, 66, 23, 0.08);
  font-size: 1.08rem;
  line-height: 1.7;
  color: #3d3116;
}

.cover-carousel {
  position: relative;
  width: 100%;
  margin: 0 0 1.6rem;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  background: #f5f5f5;
}

.cover-carousel-track {
  display: flex;
  width: 200%;
  animation: cover-carousel-slide 10s ease-in-out infinite;
}

.cover-carousel-slide {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #f5f5f5;
}

.cover-carousel img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.cover-carousel-slide:first-child img {
  width: 100%;
  max-width: none;
}

.cover-carousel-slide:last-child img {
  width: auto;
  max-width: 86%;
}

@keyframes cover-carousel-slide {
  0%, 38% {
    transform: translateX(0);
  }
  50%, 88% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.highlighted-lead p:last-child {
  margin-bottom: 0;
}

.highlighted-lead a {
  color: #8c5f00;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.rule-tip {
  position: relative;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 0.14em;
}

.rule-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.45rem);
  width: max-content;
  max-width: min(28rem, 80vw);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: rgba(45, 45, 45, 0.96);
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.3;
  white-space: normal;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
  z-index: 20;
  pointer-events: none;
}

.rule-tip:hover::after,
.rule-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lightbox-trigger {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  cursor: zoom-in;
}

#image-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 10, 12, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 2000;
}

#image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

#image-lightbox img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.table-block-gray-title {
  margin: 1.75rem 0 0;
  padding: 0.4rem 0.9rem;
  color: #fff;
  background: #6f6f6f;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  text-align: center;
}

.table-block-gray-table {
  margin: 0.45rem 0 2rem;
  width: 100%;
  background: #fff;
  border: 1.25rem solid #f1f1f1;
  border-top: 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  font-size: 0.88rem;
}

.table-block-gray-table thead th {
  background: #8a8a8a;
  color: #fff;
  font-weight: 600;
}

.table-block-gray-table thead th:first-child {
  border-top-left-radius: 10px;
}

.table-block-gray-table thead th:last-child {
  border-top-right-radius: 10px;
}

.table-block-gray-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.table-block-gray-table th,
.table-block-gray-table td {
  border: 1px solid #777;
  padding: 0.16rem 0.42rem;
  vertical-align: middle;
  line-height: 1.15;
}

.table-block-gray-table th:nth-child(2),
.table-block-gray-table td:nth-child(2) {
  vertical-align: middle !important;
}

.citation-box {
  margin: 1rem 0 2rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid #b8b8b8;
  border-left: 6px solid #6f6f6f;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6f6f6 0%, #efefef 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  color: #303030;
}

.citation-box p:last-child {
  margin-bottom: 0;
}

.citation-box strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #4b4b4b;
  letter-spacing: 0.01em;
}

.citation-box pre {
  margin: 0.75rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
  background: #fcfcfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
