/* ============================================================================
   site.css : components added for the five-page concept, on top of hwi.css.
   Agents append their own fenced blocks at the END of this file and never edit
   another agent's block. Paths are root-relative. Tokens come from hwi.css :root.
   ============================================================================ */

/* ---- [SHELL] masthead with primary nav (manager) ---- */
.site-masthead { position: relative; }
.site-masthead__inner { display: flex; align-items: center; gap: var(--s2); min-height: 64px; }
.site-wordmark { text-decoration: none; flex: 0 0 auto; }
.site-nav { display: none; flex: 1 1 auto; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.site-nav__list a {
  display: inline-block; padding: 10px 14px; border-radius: var(--radius);
  color: var(--hwi-navy); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
}
.site-nav__list a:hover { background: rgba(255,255,255,.55); }
.site-nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hwi-navy); }
.site-masthead__cta { margin-left: auto; }
.site-nav__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  background: var(--hwi-navy-button); color: var(--hwi-white); border: 0; border-radius: var(--radius);
  padding: 10px 12px; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;
}
.site-nav__toggle:focus-visible { outline: 3px solid var(--hwi-navy); outline-offset: 2px; }
.site-nav__ico-close { display: none; }
.site-masthead--open .site-nav__ico-close { display: block; }
.site-masthead--open .site-nav__ico-open { display: none; }
.site-masthead--open .site-nav {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--hwi-white); border-top: 1px solid var(--hwi-hair); border-bottom: 1px solid var(--hwi-hair);
  box-shadow: var(--shadow-md); padding: var(--s1) var(--s2) var(--s2); z-index: 50;
}
.site-masthead--open .site-nav__list { flex-direction: column; gap: 0; }
.site-masthead--open .site-nav__list a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--hwi-hair); font-size: 17px; }
.site-masthead--open .site-nav__list li:last-child a { border-bottom: 0; }
@media (max-width: 479px) {
  .site-masthead .masthead__cta { display: none; }
}
@media (min-width: 480px) and (max-width: 979px) {
  .site-masthead__cta .masthead__label { display: none; }
  .site-masthead__cta { margin-left: auto; margin-right: 4px; }
  .site-nav__toggle { margin-left: 0; }
}
@media (min-width: 980px) {
  .site-nav { display: block; }
  .site-nav__toggle { display: none; }
  .site-masthead__cta { margin-left: 0; }
  .site-masthead__inner { min-height: 78px; gap: var(--s3); }
}

/* ---- [SHELL] breadcrumb + byline + footer extras (manager) ---- */
.crumbs { font-size: 14px; color: var(--hwi-faint); margin: 0 0 var(--s2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--hwi-hair); }
.crumbs a { color: var(--hwi-faint); }
.crumbs [aria-current] { color: var(--hwi-muted); font-weight: 700; }
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 14px; color: var(--hwi-muted); margin: var(--s2) 0 0; padding: 12px 0;
  border-top: 1px solid var(--hwi-hair); border-bottom: 1px solid var(--hwi-hair);
}
.byline__ck { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--hwi-navy); }
.byline a { color: var(--hwi-navy); }
.footer__small { font-size: 14px; color: rgba(255,255,255,.8); margin-top: var(--s1); }
.footer__hours { font-size: 14px; color: rgba(255,255,255,.8); }

/* ---- [SHELL] concept-only card links (manager) ---- */
[data-concept-link] { position: relative; cursor: default; }
[data-concept-link] .concept-tip {
  position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  background: var(--hwi-navy); color: var(--hwi-white); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: var(--radius);
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5;
}
[data-concept-link]:hover .concept-tip, [data-concept-link]:focus-visible .concept-tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { [data-concept-link] .concept-tip { transition: none; } }

/* ---- [C] locations + hours table ---- */
.split--locs { gap: var(--s3); }
@media (min-width: 700px) {
  .split--locs { grid-template-columns: 1fr 1fr; }
}
.hours-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; color: var(--hwi-muted); }
.hours-table th, .hours-table td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--hwi-hair); }
.hours-table th { font-weight: 700; color: var(--hwi-navy); width: 60%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.loc__access {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--hwi-muted); margin-top: 10px;
}
.loc__access svg { flex: 0 0 auto; margin-top: 2px; color: var(--hwi-navy); }
.loc__note { font-size: 14px; color: var(--hwi-muted); margin-top: 10px; }
.loc__directions { display: inline-block; margin-top: var(--s2); font-weight: 700; color: var(--hwi-navy); }

/* ---- [B] condition + bio ---- */
/* Light page header used instead of the dark hero on interior content pages. */
.pagehead { padding-top: var(--s3); padding-bottom: var(--s3); }
.pagehead h1 { margin-bottom: 12px; }
.pagehead__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s3); }
.pagehead__micro { font-size: 15px; color: var(--hwi-faint); margin: 12px 0 0; }

/* On this page: a plain anchor list, no sticky behaviour. */
.jump { margin-top: var(--s3); padding: 14px 16px; background: var(--hwi-tint); border-radius: var(--radius); border: 1px solid var(--hwi-hair); }
.jump__h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--hwi-faint); margin: 0 0 6px; }
.jump__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.jump__list a { display: inline-block; padding: 10px 12px; min-height: 44px; line-height: 24px; font-weight: 700; color: var(--hwi-navy); border-radius: var(--radius); }
.jump__list a:hover { background: var(--hwi-white); }

/* Copy beside a supporting photograph. One column on phones. */
.mediasplit { display: grid; grid-template-columns: 1fr; gap: var(--s3); align-items: start; }
.mediasplit__fig { margin: 0; }
.mediasplit__fig img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.mediasplit__fig figcaption { font-size: 14px; color: var(--hwi-faint); margin-top: var(--s1); }

/* Bio header: photograph held small, never a hero. */
.biohead { display: grid; grid-template-columns: 1fr; gap: var(--s2); align-items: start; }
.biohead__photo { width: 128px; height: auto; border-radius: var(--radius); display: block; box-shadow: var(--shadow-sm); }
.biohead__copy .byline { margin-top: var(--s2); }

/* Related and treated-condition links as a wrapping row of pills. */
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related li { max-width: 100%; }
.related a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; max-width: 100%;
  background: var(--hwi-white); border: 1px solid var(--hwi-hair); border-radius: var(--radius);
  color: var(--hwi-navy); font-weight: 700; text-decoration: none;
}
.related a:hover { background: var(--hwi-tint); border-color: var(--hwi-navy); }
.related__foot { margin-top: var(--s3); color: var(--hwi-muted); }

@media (min-width: 560px) {
  .biohead { grid-template-columns: 160px 1fr; gap: var(--s3); }
  .biohead__photo { width: 160px; }
}
@media (min-width: 700px) {
  .mediasplit { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s4); }
  .biohead { grid-template-columns: 240px 1fr; }
  .biohead__photo { width: 240px; }
  .pagehead { padding-top: var(--s5); padding-bottom: var(--s5); }
}

/* ---- [A] index + contact ---- */
/* The registered mark on the "Where does it hurt?" sub-brand, set once, small and raised. */
.reg-mark { font-size: .42em; vertical-align: super; font-weight: 400; margin-left: 2px; }

/* Condition cards are whole-card links. The card is the tap target, so it gets the affordance,
   the hover lift and a focus ring, and the inner text keeps the card's own colours. */
.card--link {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  min-height: 44px; transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card--link h3 { color: var(--hwi-navy); }
.card--link:hover { border-color: var(--hwi-navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--link:focus-visible { outline: 3px solid var(--hwi-navy); outline-offset: 2px; }
.card__go {
  display: inline-block; margin-top: auto; padding-top: 12px;
  font-size: 15px; font-weight: 700; color: var(--hwi-navy);
}
.card__go::after { content: " \203A"; }
/* Concept placeholders read as unbuilt, not as broken links. */
[data-concept-link].card--link { border-style: dashed; }
[data-concept-link].card--link .card__go { color: var(--hwi-faint); font-weight: 400; }
[data-concept-link].card--link:hover { transform: none; }

/* 12 condition cards: one column, two from 480, three from 700 (hwi.css), four from 980. */
@media (min-width: 400px) { .cards--cond { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards--cond { grid-template-columns: repeat(4, 1fr); } }

/* Location card extras: the on-site X-ray line and the action row. */
.loc__feat { font-size: 15px; font-weight: 700; color: var(--hwi-navy); margin: 8px 0 0; }
.loc__feat::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--hwi-blue); vertical-align: middle;
}
.loc__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--s2);
  margin: var(--s2) 0 0; max-width: none;
}
.loc__links .btn { flex: 0 0 auto; }
.loc-foot { margin-top: var(--s3); }

/* The medical-review statement in the credentials block reads as a note, not a credential. */
.creds__review {
  margin-top: var(--s2); padding-top: var(--s2);
  border-top: 1px solid var(--hwi-hair); font-size: 15px; line-height: 1.55;
}

/* Contact: three ways to book, one column, three abreast from 700 via hwi.css .cards. */
.cards--ways .card { display: flex; flex-direction: column; }
.cards--ways .card .btn { margin-top: auto; }
.cards--ways .card p { margin-bottom: var(--s2); }

/* Contact page head sits directly under the masthead, so it needs a little less top room. */
#top.section--tint { padding-top: var(--s3); }
@media (min-width: 700px) { #top.section--tint { padding-top: var(--s5); } }

/* ---- [D] harvested assets ---- */
/* Everything below styles material taken from the practice's own live site: their media logos,
   their board badge, their pro-athlete photograph and their own YouTube thumbnails. The rule is
   restraint. Logos sit as a quiet greyscale strip, not a trophy wall; the badge is a small mark
   beside the credentials, not a hero; video thumbnails are static images that link out, so the
   page still makes zero third-party requests on load. */

/* Media strip. One row that wraps, marks held at a common optical height rather than a common
   box, which is why the height is capped and the width left to follow. */
.mediastrip__h {
  font-size: 14px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--hwi-faint); margin: 0 0 var(--s2); font-weight: 700;
}
.mediastrip__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s2) var(--s3); max-width: none;
}
.mediastrip__list img {
  display: block; width: auto; height: 26px;
  opacity: .58; filter: grayscale(1);
}
@media (min-width: 700px) { .mediastrip__list img { height: 30px; } }
/* Two marks are wordmarks set on a long baseline, so a common height leaves them oversized
   next to the round ones. They get their own cap. */
.mediastrip__list .mediastrip__wide img { height: 15px; }
@media (min-width: 700px) { .mediastrip__list .mediastrip__wide img { height: 17px; } }
.mediastrip__src { font-size: 14px; color: var(--hwi-faint); margin: var(--s2) 0 0; }

/* Board badge beside the credentials. Small, quiet, never the loudest thing in the block. */
.creds__badge, .biohead__badge {
  display: block; width: 160px; height: auto; margin-top: var(--s2);
  opacity: .78;
}
.creds__badgewrap, .biohead__badgewrap { margin: 0; }
.creds__badgewrap figcaption, .biohead__badgewrap figcaption {
  font-size: 13px; color: var(--hwi-faint); margin-top: 6px; max-width: 34ch;
}

/* Video row. Static thumbnails that link out. The 16:9 crop is enforced so a missing or slow
   image can never change the row's height. */
.videos { display: grid; grid-template-columns: 1fr; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .videos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .videos { grid-template-columns: repeat(4, 1fr); } }
.videos li { max-width: none; }
.video-card {
  display: block; text-decoration: none; color: var(--hwi-ink);
  border: 1px solid var(--hwi-hair); border-radius: var(--radius); overflow: hidden;
  background: var(--hwi-white); height: 100%;
}
.video-card:hover { border-color: var(--hwi-navy); box-shadow: var(--shadow-md); }
.video-card:focus-visible { outline: 3px solid var(--hwi-navy); outline-offset: 2px; }
.video-card__shot { position: relative; display: block; background: var(--hwi-tint); }
.video-card__shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* Play glyph drawn in CSS so the row costs no extra request. */
.video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(13, 65, 109, .88);
  display: grid; place-items: center;
}
.video-card__play::after {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.video-card__title {
  display: block; padding: 12px 14px 14px; font-size: 15px; line-height: 1.45;
  font-weight: 700; color: var(--hwi-navy);
}
.video-card__out { display: block; font-size: 13px; font-weight: 400; color: var(--hwi-faint); margin-top: 4px; }
.videos__note { font-size: 14px; color: var(--hwi-faint); margin: var(--s2) 0 0; }

/* Single "watch this" figure on a condition page. Same card, one column, capped so it reads as a
   figure inside the copy rather than a second hero. */
.watchfig { margin: var(--s3) 0 0; max-width: 460px; }
.watchfig figcaption { font-size: 14px; color: var(--hwi-faint); margin-top: var(--s1); }

/* Pro-athlete block on the bio. Photo left, the practice's own caption right. */
.athletes { display: grid; grid-template-columns: 1fr; gap: var(--s2); align-items: start; }
@media (min-width: 700px) { .athletes { grid-template-columns: 285px 1fr; gap: var(--s3); } }
.athletes__fig { margin: 0; }
.athletes__fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.athletes__fig figcaption { font-size: 13px; color: var(--hwi-faint); margin-top: 6px; }

/* Awards and media lists on the bio. Plain, dated, no ornament. */
.awards { list-style: none; margin: 0; padding: 0; }
.awards li { padding: 10px 0; border-bottom: 1px solid var(--hwi-hair); max-width: none; }
.awards li:last-child { border-bottom: 0; }
.awards__when { display: block; font-size: 14px; color: var(--hwi-faint); margin-top: 2px; }
