/* Shared icon and crest styling. Mobile sections use normal document flow. */
html { scroll-padding-top: 72px; }
body { -webkit-text-size-adjust: 100%; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; }
.brand img { object-fit: contain; border-radius: 50%; background: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand .footer-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.footer-brand > span { min-width: 0; }
.menu-toggle { align-items: center; justify-content: center; }
.menu-toggle .icon { width: 24px; height: 24px; }
.quick-icon .icon { width: 27px; height: 27px; }
.slider-tools button { display: inline-flex; align-items: center; justify-content: center; }
.hero-v2 .hero-panels { overflow: hidden; }
.text-link .icon, .discover-bottom .icon, .team-row > .icon { color: var(--red); }
.btn .icon { color: inherit; }
.footer-bottom > a .icon { transform: rotate(90deg); }
a, button, summary, input { touch-action: manipulation; }

@media (min-width: 721px) {
  .hero-v2 { height: auto; min-height: 640px; max-height: none; }
  .hero-v2 .hero-panels { position: relative; inset: auto; display: grid; min-height: 640px; }
  .hero-v2 .hero-panel { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
}

@media (max-width: 720px) {
  :root { --muted: #3d5047; }
  body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 17px; color: #172f27; }
  .topline { min-height: 28px; padding: 5px 16px; font-size: 11px; line-height: 18px; letter-spacing: .03em; color: #f1f6ef; }
  .topline span:last-child { display: none; }
  .nav-wrap { height: 76px; padding: 0 16px; gap: 12px; }
  .brand { gap: 10px; font-size: 18px; }
  .brand img { width: 46px; height: 46px; }
  .brand small { font-size: 10px; color: #3d5047; }
  .menu-toggle { display: inline-flex; width: 48px; height: 48px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); }
  #navigation { top: 100%; padding: 10px 20px max(20px, env(safe-area-inset-bottom)); }
  #navigation > a { min-height: 48px; display: flex; align-items: center; font-size: 16px; }

  /* All slides share a grid cell. Their content determines the card height;
     the controls and tabs then follow below instead of covering the text. */
  .hero-v2 { height: auto; min-height: 0; max-height: none; width: calc(100% - 24px); margin-top: 4px; border-radius: 20px; }
  .hero-v2 .hero-panels { position: relative; inset: auto; display: grid; }
  .hero-v2 .hero-panel { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
  .hero-v2 .hero-panel-content { width: 100%; max-width: none; padding: 80px 24px 24px; color: #fff; }
  .hero-v2 .hero-panel-content h1 { font-size: clamp(36px, 10vw, 48px); line-height: 1.1; letter-spacing: -.035em; max-width: none; margin: 0 0 18px; overflow-wrap: normal; }
  .hero-v2 .hero-panel-content .eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: .04em; color: #f2f7ee; margin-bottom: 14px; gap: 8px; }
  .hero-v2 .red-line { width: 24px; flex: 0 0 24px; }
  .hero-v2 .hero-description { max-width: 38ch; font-size: 17px; line-height: 1.65; color: #f0f5ed; margin-bottom: 22px; }
  .hero-v2 .hero-panel-content .btn { min-height: 48px; max-width: 100%; font-size: 15px; padding: 13px 18px; gap: 14px; text-align: left; }
  .hero-v2 .hero-meta { font-size: 12px; line-height: 1.6; letter-spacing: .03em; color: #e1ece2; margin: 18px 0 0; }
  .hero-v2 .hero-location { left: 24px; top: 25px; color: #fff; font-size: 11px; letter-spacing: .03em; }
  .hero-v2 .hero-image { object-fit: cover; }
  .hero-v2 .hero-shade { background: linear-gradient(90deg, #12251fec, #12251f90), linear-gradient(0deg, #192b29, transparent 70%); }
  .hero-v2 .slider-tools { position: relative; inset: auto; padding: 0 20px 16px; justify-content: flex-end; gap: 8px; }
  .hero-v2 .slider-tools button, .hero-v2 .slider-tools #pause { width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; }
  .hero-v2 .slider-tools > span { display: block; font-size: 12px; padding: 0 4px; }
  .hero-v2 .hero-pagination { position: relative; inset: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 16px 16px; margin: 0; gap: 6px; }
  .hero-v2 .highlight-tab { width: 100%; min-width: 0; min-height: 72px; padding: 12px 10px; gap: 4px; border-radius: 10px; flex-direction: column; align-items: flex-start; color: #f0f5ed; }
  .hero-v2 .highlight-number { font-size: 12px; margin: 0; color: #dbe8dd; }
  .hero-v2 .highlight-label { font-size: 14px; line-height: 1.4; letter-spacing: 0; }
  .hero-v2 .highlight-name-short { font-size: 14px; }
  .hero-v2 .highlight-label small { display: none; }

  .section { padding: 40px 20px; }
  .section-head h1, .section-head h2, .discover-hub h2 { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.1; }
  .section p, .team-overview p, .info-panel p { font-size: 17px; line-height: 1.7; }
  .section .eyebrow, .section-head .eyebrow { font-size: 12px; letter-spacing: .04em; }
  .section .section-intro { margin-top: 16px; }
  .discover-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .discover-card { min-height: 300px; display: flex; align-items: flex-end; }
  .discover-card > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
  .discover-card > div { position: relative; inset: auto; width: 100%; padding: 26px 24px; }
  .discover-card h3 { font-size: 30px; max-width: none; }
  .discover-card:after { background: linear-gradient(0deg, #102c26f5, #102c26bc 55%, #102c2640); }
  .discover-card p { font-size: 17px; line-height: 1.6; color: #f2f7ee; }
  .discover-bottom { font-size: 15px; gap: 12px; }
  .start-card { display: flex; padding: 26px 24px; }
  .start-card > * { min-width: 0; max-width: 100%; }
  .start-card > h3 br { display: initial; }
  .start-card > p:not(.eyebrow) { font-size: 17px; line-height: 1.7; }
  .start-card > .btn { width: auto; min-height: 48px; font-size: 15px; }
  .start-card .start-contact { margin-top: 22px; font-size: 13px; }
  .start-contact a { font-size: 15px; gap: 10px; }
  .start-contact small { font-size: 12px; color: #3d5047; }
  .start-contact > span { font-size: 14px; color: #3d5047; }
  .home-current, .football-current-grid { grid-template-columns: minmax(0, 1fr); }
  .home-current .news-grid, .football-current-grid .news-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .news-card .news-image { aspect-ratio: 1.6; }
  .news-card h3 { font-size: 25px; }
  .news-card .text-link, .text-link { min-height: 44px; font-size: 15px; }
  .news-meta { font-size: 12px; color: #3d5047; font-weight: 600; }
  .calendar-card { padding: 24px; }
  .calendar-event p, .office-mini p { font-size: 16px; }
  .calendar-event .text-link, .office-mini .text-link { font-size: 15px; }
  .about-band h2 { font-size: 30px; }
  .about-band .eyebrow { font-size: 12px; }
  .about-band p:not(.eyebrow) { font-size: 17px; color: #f0f5ed; }

  .jump-nav { justify-content: flex-start; gap: 8px; padding: 6px 16px; scrollbar-width: thin; }
  .jump-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 13px; }
  .team-tools { display: block; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
  .filter-list button { flex: 0 0 auto; min-height: 44px; font-size: 13px; }
  .search-label input { width: 100%; min-height: 48px; font-size: 16px; }
  .team-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; min-height: 72px; gap: 12px; }
  .team-row strong { font-size: 16px; }
  .team-row small { font-size: 13px; line-height: 1.4; }
  .team-row > span { min-width: 0; }
  .team-title-row h1 { font-size: clamp(32px, 9vw, 46px); overflow-wrap: anywhere; hyphens: auto; }
  .team-title-row > div { min-width: 0; flex: 1; }
  .team-title-row p { overflow-wrap: anywhere; font-size: 16px; }
  .team-image-card p:not(.eyebrow) { font-size: 17px; line-height: 1.7; }
  .team-top-stamp { display: none; }
  .training-times { font-size: 15px; line-height: 1.7; }
  .small-note { font-size: 13px; }
  .team-contact-box .text-link { max-width: 100%; overflow-wrap: anywhere; }
  .team-contact-box .btn { min-height: 48px; font-size: 14px; gap: 12px; }
  .sport-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sport-card { min-height: 180px; padding: 22px 22px 54px; }
  .sport-card h3 { font-size: 26px; }
  .sport-card > p { font-size: 17px; max-width: none; }
  .sport-detail-hub { grid-template-columns: minmax(0, 1fr); }
  .sport-detail-main, .sport-detail-aside { min-width: 0; }
  .sport-info-block summary { min-height: 48px; font-size: 15px; }
  .sport-info-block > div { font-size: 16px; overflow-wrap: anywhere; }
  .sport-detail-aside .training-box > p:last-child { font-size: 16px; }
  .games-heading { flex-wrap: wrap; }
  .match-list strong { overflow-wrap: anywhere; line-height: 1.45; }
  .footer-main { padding: 36px 20px 25px; }
  .footer-brand { font-size: 25px; max-width: 100%; }
  .footer-main p, .footer-main a:not(.footer-brand) { font-size: 16px; overflow-wrap: anywhere; }
  .footer-main .eyebrow { font-size: 12px; }
  .footer-main > div:first-child > p { font-size: 15px; }
  .footer-bottom { padding: 20px 20px max(20px, env(safe-area-inset-bottom)); font-size: 12px; }
  #article-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  #article-body { padding: 24px 20px; }
}

@media (max-width: 360px) {
  .brand { font-size: 16px; }
  .brand img { width: 42px; height: 42px; }
  .hero-v2 .hero-panel-content { padding-inline: 20px; }
  .hero-v2 .hero-panel-content h1 { font-size: 34px; }
  .hero-v2 .hero-location { left: 20px; }
  .hero-v2 .hero-panel-content .btn { font-size: 14px; gap: 10px; padding-inline: 14px; }
  .team-top-stamp { display: none; }
  .footer-brand { font-size: 22px; }
}
