/* Scoped block details only. Global colours/fonts/spacing belong to the Site Editor. */
:where(a, button, summary):focus-visible { outline: 3px solid var(--wp--preset--color--muted-gold); outline-offset: 4px; }
.huamao-kicker { letter-spacing: .16em; }
.huamao-ribbon { position: relative; overflow: hidden; padding-bottom: 2.25rem; }
.huamao-ribbon::after { content: ""; position: absolute; right: -7%; bottom: -1.8rem; width: 114%; height: 3.7rem; border-top: .65rem solid var(--wp--preset--color--muted-gold); border-radius: 50%; background: var(--wp--preset--color--huamao-red); transform: rotate(-2deg); pointer-events: none; }
/* The selected banner style overrides core's inline source-metadata ratio. */
.wp-block-video.is-style-huamao-banner video { display: block; width: 100%; height: clamp(240px, 26vw, 390px) !important; aspect-ratio: auto !important; object-fit: cover; object-position: center 58%; }
.wp-block-video.is-style-huamao-full video { display: block; width: 100%; height: auto; object-fit: contain; }
/* Approved preview ribbons/caption, applied only by progressive enhancement. */
.huamao-campus-film.huamao-film-enhanced { position: relative; overflow: hidden; background: var(--wp--preset--color--cream, #e9e2cf); }
.huamao-film-enhanced.is-style-huamao-banner::before { content: ""; position: absolute; width: 110%; height: 100%; left: -15%; top: 76%; border-radius: 50%; background: #cf2925ed; background: color-mix(in srgb, var(--wp--preset--color--huamao-red, #cf2925) 93%, transparent); transform: rotate(-6deg); z-index: 1; pointer-events: none; }
.huamao-film-enhanced.is-style-huamao-banner::after { content: ""; position: absolute; box-sizing: border-box; width: 135%; height: 145%; left: -20%; top: -67%; border-radius: 50%; border: 19px solid #b5a269e6; border-color: color-mix(in srgb, var(--wp--preset--color--muted-gold, #b5a269) 90%, transparent); transform: rotate(-7deg); z-index: 1; pointer-events: none; }
.huamao-film-controls { position: absolute; top: 20px; left: max(20px, calc((100% - 1320px) / 2)); right: 20px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 3; }
.huamao-film-controls[hidden] { display: none; }
.huamao-film-controls button { box-sizing: border-box; min-height: 44px; padding: 10px 14px; border: 1px solid #ffffff80; border-radius: 3px; color: #fff; background: #25211edb; font-family: inherit; font-size: 12px; line-height: 1.4; cursor: pointer; touch-action: manipulation; }
.huamao-film-controls button:hover { background: #14110f; }
.huamao-film-controls button:focus-visible { outline: 3px solid var(--wp--preset--color--muted-gold, #b5a269); outline-offset: 3px; }
.huamao-film-caption { position: absolute; inset: auto 0 27px; width: min(1320px, calc(100% - 112px)); margin-inline: auto; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; text-shadow: 0 1px 10px #0003; pointer-events: none; }
.huamao-film-caption > span:first-child { font: italic 20px var(--wp--preset--font-family--serif, Georgia, "Songti SC", "STSong", serif); }
.huamao-film-caption > span:last-child { font-size: 10px; letter-spacing: .35em; }
.huamao-film-enhanced.is-style-huamao-banner > figcaption { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.huamao-film-enhanced.is-style-huamao-full { background: #171514; }
.huamao-film-enhanced.is-style-huamao-full .huamao-film-controls { position: relative; inset: auto; padding: 12px 20px; }
.huamao-film-enhanced.is-style-huamao-full .huamao-film-caption { display: none; }
.huamao-film-enhanced.is-style-huamao-full video { max-height: 80vh; }
.huamao-film-enhanced.is-style-huamao-full > figcaption { color: #fff; padding: 0 20px 12px; }
.huamao-campus-film video:fullscreen { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: contain; }
.huamao-campus-film video:-webkit-full-screen { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: contain; }
.huamao-profile-card { min-width: 0; }
.huamao-profile-card :where(h2, h3, p, li) { overflow-wrap: anywhere; }
.huamao-profile-card details > summary { cursor: pointer; }
.profile-portrait-frame { overflow: hidden; }
.huamao-profile-portrait img { object-position: top; }
@media (max-width: 680px) {
  .wp-block-video.is-style-huamao-banner video { height: 245px !important; }
  .huamao-film-controls { top: 12px; right: 12px; left: 12px; gap: 6px; }
  .huamao-film-controls button { padding: 8px 10px; font-size: 11px; }
  .huamao-film-caption { width: calc(100% - 40px); bottom: 20px; }
  .huamao-film-caption > span:first-child { font-size: 16px; max-width: 210px; }
  .huamao-film-caption > span:last-child { font-size: 8px; letter-spacing: .2em; }
  .huamao-film-enhanced.is-style-huamao-full .huamao-film-controls { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
