* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #212529;
  background-color: #fff;
  font-family: "Times New Roman", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 15px;
  padding-left: 15px;
}

.narrow {
  max-width: 940px;
}

.hero {
  margin-bottom: 2rem;
  padding: 4rem 2rem;
  background-color: #e9ecef;
  border-radius: 0.3rem;
  text-align: center;
}

.hero-inner {
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #5a6268;
  font-size: 1.25rem;
  font-weight: 500;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.authors {
  margin-bottom: 0.5rem;
  line-height: 26px;
}

.affiliation {
  margin-bottom: 1.5rem;
  color: #212529;
}

.hero-rule {
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1rem;
}

.button,
.case-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #f8f9fa;
  border-radius: 0.25rem;
  background-color: #f8f9fa;
  color: #212529;
  font: inherit;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.button {
  padding: 0.375rem 0.75rem;
}

.button:hover,
.case-buttons button:hover,
.case-buttons button:focus-visible,
.case-buttons button.active {
  border-color: #dae0e5;
  background-color: #e2e6ea;
  color: #212529;
  text-decoration: none;
}

.button.disabled {
  opacity: 0.65;
  cursor: default;
}

.section {
  padding: 1.5rem 0 2rem;
}

.section hr,
.rule {
  margin-top: 0;
  margin-bottom: 1rem;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.section p {
  margin-bottom: 1rem;
  color: #212529;
}

.narrow p {
  text-align: justify;
}

.abstract-text p {
  font-size: 1.18rem;
  line-height: 1.65;
}

.image-panel {
  width: 90%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.image-panel img {
  width: 100%;
  height: auto;
}

.schema-section {
  padding-top: 0.5rem;
}

.triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 90%;
  margin: 1.5rem auto 0;
}

.triad article,
.result-block {
  border: 1px solid #d2d2d2;
  background: #f7f7f7;
}

.triad article {
  padding: 18px;
}

.triad p,
.result-header p {
  margin-bottom: 0;
  color: #333;
}

.result-block {
  width: 95%;
  margin: 0 auto;
  padding: 18px;
}

.table-wrap {
  width: 95%;
  margin: 0 auto 1.5rem;
  overflow-x: auto;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.benchmark-table th,
.benchmark-table td {
  border: 1px solid #bbb;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.benchmark-table th:first-child,
.benchmark-table td:first-child {
  text-align: left;
}

.benchmark-table thead th {
  background: #eeeeee;
}

.benchmark-table .highlight {
  background: #eeeeee;
}

.result-block + .result-block {
  margin-top: 1.5rem;
}

.result-header {
  margin-bottom: 1rem;
  text-align: center;
}

.result-header h3 {
  margin-bottom: 0.25rem;
}

.case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 1rem;
}

.case-buttons button {
  padding: 0.375rem 0.75rem;
}

.video-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 300px;
  border: 1px solid #d2d2d2;
  background: #f7f7f7;
  aspect-ratio: 16 / 9;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #333;
  font-size: 1rem;
  text-align: center;
}

.video-shell.loaded .video-placeholder {
  display: none;
}

.gallery-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 15%;
  min-width: 58px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  opacity: 0.5;
  text-align: center;
  cursor: pointer;
}

.gallery-control:hover,
.gallery-control:focus-visible {
  opacity: 0.9;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: no-repeat 50% / 100% 100%;
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.footer {
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #212529;
  text-align: center;
}

@media (max-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .triad {
    grid-template-columns: 1fr;
    width: 95%;
  }

  .image-panel,
  .result-block {
    width: 100%;
  }

  .video-shell {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .case-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-buttons button {
    width: 100%;
  }
}
