.tfh-page,
.tfh-tool {
  color: #17212b;
  font-family: inherit;
}

body.page .entry-content > h1.wp-block-heading:first-child {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.14;
  margin-bottom: 12px;
  max-width: 980px;
}

body.page .entry-content > h1.wp-block-heading:first-child + p {
  color: #52616f;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 980px;
}

body .site-content .content-area {
  width: 100%;
}

body .site-content .is-right-sidebar,
body .site-content .is-left-sidebar,
body .site-content .widget-area {
  display: none;
}

.tfh-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 16px 56px;
}

.tfh-hero {
  border-bottom: 1px solid #d7e1df;
  margin-bottom: 24px;
  padding-bottom: 20px;
}

.tfh-hero h1,
.tfh-exercise__header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.tfh-hero p {
  color: #52616f;
  font-size: 1.05rem;
  margin: 0;
}

.tfh-tool {
  background: #f8fbfa;
  border: 1px solid #d7e1df;
  border-radius: 8px;
  margin: 24px 0;
  padding: 18px;
}

.tfh-tool__header h2 {
  font-size: 1.45rem;
  margin: 0 0 14px;
}

.tfh-search {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.tfh-search label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tfh-search span {
  color: #52616f;
  font-size: 0.88rem;
}

.tfh-search input,
.tfh-search select,
.tfh-search button,
.tfh-load-more {
  border: 1px solid #b7c6c1;
  border-radius: 6px;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
}

.tfh-search button,
.tfh-load-more {
  align-self: end;
  background: #0d6b5d;
  border-color: #0d6b5d;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.tfh-search button:hover,
.tfh-load-more:hover {
  background: #0a5a4e;
  border-color: #0a5a4e;
}

.tfh-results {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.tfh-card {
  background: #fff;
  border: 1px solid #d7e1df;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 33, 43, 0.05);
  overflow: hidden;
}

.tfh-card a {
  color: inherit;
  display: grid;
  grid-template-rows: 180px 1fr;
  height: 100%;
  text-decoration: none;
}

.tfh-card img,
.tfh-card__placeholder {
  background: linear-gradient(135deg, #f0f6f5, #dce9e4);
  display: block;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.tfh-card__body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.tfh-card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin: 0;
}

.tfh-card p {
  color: #52616f;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

.tfh-card__meta,
.tfh-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tfh-card__meta span,
.tfh-badges span {
  background: #e5f2ee;
  border-radius: 999px;
  color: #0e574c;
  font-size: 0.82rem;
  padding: 4px 8px;
}

.tfh-badges .tfh-badge--warn {
  background: #fff0d6;
  color: #8a4b00;
}

.tfh-load-more {
  margin-top: 16px;
}

.tfh-plan {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.tfh-plan li {
  background: #fff;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 12px 14px;
}

.tfh-plan a {
  color: #145349;
  font-weight: 700;
  text-decoration: none;
}

.tfh-plan span {
  color: #52616f;
  font-size: 0.9rem;
}

.tfh-exercise {
  display: grid;
  gap: 18px;
}

.tfh-exercise__aka {
  color: #60707d;
  font-size: 0.98rem;
  margin: -2px 0 12px;
}

.tfh-breadcrumb {
  margin-bottom: 10px;
}

.tfh-media img,
.tfh-media video {
  border-radius: 8px;
  max-height: 560px;
  object-fit: cover;
  width: 100%;
}

.tfh-media figcaption {
  color: #60707d;
  font-size: 0.86rem;
  margin-top: 8px;
}

.tfh-panel,
.tfh-disclaimer {
  background: #fff;
  border: 1px solid #d7e1df;
  border-radius: 8px;
  padding: 18px;
}

.tfh-panel h2 {
  font-size: 1.28rem;
  margin: 0 0 12px;
}

.tfh-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.tfh-facts div {
  background: #f8fbfa;
  border-radius: 8px;
  padding: 12px;
}

.tfh-facts dt {
  color: #52616f;
  font-size: 0.85rem;
}

.tfh-facts dd {
  font-weight: 700;
  margin: 4px 0 0;
}

.tfh-steps {
  margin-bottom: 0;
}

.tfh-steps li {
  margin-bottom: 8px;
}

.tfh-disclaimer,
.tfh-state {
  color: #52616f;
}

.tfh-body-part-hub {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tfh-body-part-hub a {
  border: 1px solid #d7e1df;
  border-radius: 8px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  text-decoration: none;
}

.tfh-start-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.tfh-start-grid a {
  background: #fff;
  border: 1px solid #d7e1df;
  border-radius: 8px;
  color: #17212b;
  display: grid;
  gap: 4px;
  padding: 14px;
  text-decoration: none;
}

.tfh-start-grid strong {
  color: #0d6b5d;
}

.tfh-start-grid span {
  color: #60707d;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .tfh-search,
  .tfh-results,
  .tfh-facts,
  .tfh-body-part-hub,
  .tfh-start-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.page .entry-content > h1.wp-block-heading:first-child {
    font-size: 2rem;
    line-height: 1.18;
  }

  .tfh-page {
    padding: 24px 12px 42px;
  }

  .tfh-search,
  .tfh-results,
  .tfh-facts,
  .tfh-body-part-hub,
  .tfh-start-grid {
    grid-template-columns: 1fr;
  }

  .tfh-card a {
    grid-template-rows: 150px 1fr;
  }

  .tfh-card img,
  .tfh-card__placeholder {
    height: 150px;
  }
}
