/* Mechanics page specific styles – minimal and complementary to base.css */
.mechanics-hero {
  position: relative;
  color: var(--color-text, #e6f0e6);
}
.mechanics-hero .hero-media {
  position: relative;
  overflow: hidden;
  max-height: 52vh;
}
.mechanics-hero .hero-media img {
  width: 100%;
  height: 52vh;
  object-fit: cover;
  filter: brightness(0.55) contrast(1.05);
}
.mechanics-hero .hero-content {
  position: relative;
  margin-top: -8rem;
  padding: 1rem 1.25rem 0;
}
.mechanics-hero h1 {
  font-size: clamp(1.8rem, 2.2vw + 1rem, 3rem);
  margin-bottom: 0.25rem;
}
.mechanics-hero .subtitle {
  opacity: 0.9;
  max-width: 60ch;
}

.toc {
  margin: 1.5rem auto 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(12,30,20,0.6), rgba(12,30,20,0.2));
  border: 1px solid rgba(140, 190, 150, 0.18);
  border-radius: 10px;
}
.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  color: var(--color-accent, #9fd3a9);
  background: rgba(20, 40, 30, 0.35);
  transition: background .2s ease, color .2s ease;
}
.toc a:hover,
.toc a:focus {
  background: rgba(50, 100, 70, 0.35);
  color: #dff6e3;
  outline: none;
}
.toc a.is-active {
  background: rgba(70, 130, 90, 0.5);
  color: #ffffff;
}

.section {
  padding: clamp(1.25rem, 3vw, 2.5rem) 1rem;
}
.section .section-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.section .section-grid.reverse {
  grid-template-columns: 1fr 1.4fr;
}
.section-media img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.section-media figcaption {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.4rem;
}

/* Tips area */
#tips details {
  background: rgba(18, 40, 28, 0.35);
  border: 1px solid rgba(140, 190, 150, 0.18);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
#tips summary {
  cursor: pointer;
  font-weight: 600;
}
#tips details[open] summary {
  color: var(--color-accent, #9fd3a9);
}

/* CTA buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cta-button {
  display: inline-block;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #2b4a39, #1f3a2d);
  color: #e9ffef;
  border: 1px solid rgba(140, 190, 150, 0.25);
}
.cta-button.secondary {
  background: transparent;
  color: #ccefd6;
}
.cta-button:focus-visible {
  outline: 2px solid #9fd3a9;
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 980px) {
  .section .section-grid,
  .section .section-grid.reverse {
    grid-template-columns: 1fr;
  }
  .mechanics-hero .hero-content {
    margin-top: -5rem;
  }
}
