/*
 * Site component utilities and small shared presentation primitives.
 *
 * HTML owns structure and state. CSS owns presentation. Prefer these named
 * classes over inline style attributes so light, dark, and print behavior can
 * be audited from stylesheets.
 */

.is-hidden {
  display: none;
}

.se-gym-toggle.is-hidden {
  display: none !important;
}

.progress-fill-zero {
  width: 0%;
}

.u-full-height {
  height: 100%;
}

.u-flex-spacer {
  flex: 1;
}

.u-no-top-margin {
  margin-top: 0;
}

.u-section-gap-top {
  margin-top: 10px;
}

.u-bottomless {
  margin-bottom: 0;
}

.u-centered-page-note {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
  text-align: center;
}

.home-intro-row {
  margin: 2em 0;
  max-width: 100%;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
}

.home-avatar-col {
  flex: 0 0 auto;
}

.home-avatar {
  border-radius: 50%;
  width: 160px;
  height: 160px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html.dark-mode .home-avatar {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.home-copy-col {
  flex: 1 1 260px;
}

.home-copy-col h1 {
  margin-top: 0;
}

.blog-index-header-row {
  margin-top: 30px;
  margin-bottom: 40px;
}

.blog-featured-badge {
  font-weight: 700;
  color: #000;
  background-color: #FFD100;
  margin-left: 10px;
}

html.dark-mode .blog-featured-badge,
html.dark-mode .blog-featured-badge:visited {
  color: #000 !important;
  background-color: #FFD100;
}

.blog-entry-rule {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid #ddd;
}

html.dark-mode .blog-entry-rule {
  border-top-color: #444;
}

.blog-empty-alert {
  margin-top: 30px;
}

.writing-guide-left {
  text-align: left;
}

.contact-switch-cell {
  display: flex;
  align-items: center;
  padding-top: 7px;
}

.contact-switch {
  margin: 0;
}

.footer-social-link,
.footer-social-link:visited {
  margin: 0 6px;
  font-size: 1.4em;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
}

.footer-copy {
  margin: 8px 0;
}

.carousel-list {
  width: 100%;
}

.carousel-slide {
  width: 100%;
}

.carousel-slide.is-stacked {
  position: absolute;
}

.carousel-inline {
  display: inline;
}

.carousel-image {
  width: 100%;
  height: 100%;
}

.carousel-pause {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 20;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.rosinfer-embed-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.rosinfer-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.teaching-term-list {
  display: flex;
  flex-wrap: wrap;
}

.teaching-term-item {
  display: flex;
  margin-bottom: 20px;
}

.teaching-term-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.ai-workout-figure {
  text-align: center;
  position: relative;
  margin: 20px auto;
  max-width: 750px;
}

.ai-workout-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.ai-workout-caption {
  position: absolute;
  inset: 0 0 auto;
  background: #111;
  color: #fff;
  padding: 4px;
  border-radius: 12px 12px 0 0;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 1.2;
}
