/* Shared components for team hub and schedule pages.
   Set the team color once on <main>, e.g. class="page team-page team-ravens".
   Uses the variables already defined in /styles.css. */

.team-page { --tp-accent: var(--text-primary); --tp-home: var(--border-med); padding-top: 24px; padding-bottom: 72px; max-width: 1100px; }
.team-ravens { --tp-accent: var(--ravens-gold, #c49a2a); --tp-home: #9b7fd0; }
.team-orioles { --tp-accent: var(--orioles-orange, #df4601); --tp-home: var(--orioles-orange, #df4601); }
.team-navy { --tp-accent: #c5a84e; --tp-home: #003087; }

/* Breadcrumbs */
.tp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: var(--text-muted); }
.tp-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.tp-crumbs a { color: var(--text-secondary); text-decoration: none; }
.tp-crumbs a:hover, .tp-crumbs a:focus-visible { color: var(--tp-accent); text-decoration: underline; }

/* Page head */
.tp-head { margin-bottom: 20px; }
.tp-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-accent); margin: 0 0 8px; }
.tp-head h1 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(32px, 5vw, 44px); font-weight: 900; text-transform: uppercase; line-height: 1.02; color: var(--text-primary); margin: 0 0 12px; }
.tp-dek { font-size: 16px; line-height: 1.6; color: var(--text-secondary); max-width: 68ch; margin: 0; }
.tp-dek strong { color: var(--text-primary); white-space: nowrap; }

/* Team sub-navigation: real links, so crawlers follow them */
.tp-subnav { display: flex; flex-wrap: wrap; gap: 4px 20px; border-bottom: 1px solid var(--border); margin: 0 0 28px; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; }
.tp-subnav a { color: var(--text-muted); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tp-subnav a:hover, .tp-subnav a:focus-visible { color: var(--text-primary); }
.tp-subnav a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--tp-accent); }

/* Next game */
.tp-next { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--tp-accent); padding: 18px 20px; margin-bottom: 28px; }
.tp-next img { grid-row: span 3; width: 56px; height: 56px; }
.tp-next h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 900; text-transform: uppercase; line-height: 1.1; color: var(--text-primary); margin: 0; }
.tp-next-label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-accent); margin: 0; }
.tp-next-meta { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.tp-next-meta a { color: var(--tp-accent); }
.tp-next-weather { grid-column: 2; font-size: 14px; color: var(--text-secondary); margin: 0; }
.tp-next-weather:empty { display: none; }

/* Schedule */
.tp-legend { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.tp-block { margin-bottom: 40px; }
.tp-block > h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 900; text-transform: uppercase; color: var(--text-primary); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--tp-accent); }
.tp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tp-table { width: 100%; border-collapse: collapse; font-family: 'Barlow Condensed', sans-serif; }
.tp-table th { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tp-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); font-size: 15px; }
.tp-table tr.is-home td:first-child { box-shadow: inset 3px 0 0 var(--tp-home); }
.tp-table tr.is-next td { background: color-mix(in srgb, var(--tp-accent) 8%, transparent); }
.tp-table tr.is-bye td { color: var(--text-muted); font-style: italic; }
.tp-wk { width: 44px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }
.tp-date { white-space: nowrap; width: 120px; }
.tp-opp-in { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tp-loc { color: var(--text-muted); font-size: 13px; min-width: 18px; }
.tp-opp-in img { width: 28px; height: 28px; flex: none; }
.tp-opp-name { font-size: 17px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
a.tp-opp-name:hover, a.tp-opp-name:focus-visible { color: var(--tp-accent); text-decoration: underline; }
.tp-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-accent); border: 1px solid currentColor; padding: 1px 5px; border-radius: 2px; }
.tp-note { flex-basis: 100%; font-family: 'Barlow', sans-serif; font-size: 13px; line-height: 1.45; color: var(--text-muted); margin: 2px 0 0 26px; max-width: 60ch; }
.tp-result { white-space: nowrap; }
.tp-res { display: inline-block; min-width: 18px; font-weight: 900; }
.tp-w { color: #4caf50; }
.tp-l { color: #e05252; }
.tp-t { color: var(--text-muted); }
.tp-live { color: #e05252; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin-right: 4px; }
.tp-links { display: flex; gap: 12px; margin-top: 3px; font-size: 13px; font-weight: 700; }
.tp-links a { color: var(--tp-accent); text-decoration: none; }
.tp-links a:hover, .tp-links a:focus-visible { text-decoration: underline; }
.tp-tv { white-space: nowrap; font-weight: 700; color: var(--text-primary); }

/* How to watch + FAQ */
.tp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; background: var(--bg-card); border: 1px solid var(--border); padding: 20px 24px; margin: 0; }
.tp-info dt { font-family: 'Barlow Condensed', sans-serif; font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tp-info dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.tp-faq h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 22px 0 6px; }
.tp-faq p { font-size: 15px; line-height: 1.65; color: var(--text-secondary); max-width: 70ch; margin: 0; }
.tp-faq a { color: var(--tp-accent); }

.tp-updated { font-size: 13px; color: var(--text-muted); margin: 32px 0 0; }

@media (max-width: 640px) {
  .tp-wk, .tp-table th.tp-wk { display: none; }
  .tp-table td { padding: 10px 6px; font-size: 14px; }
  .tp-date { width: auto; white-space: normal; }
  .tp-dow { display: none; }
  .tp-opp-in { display: block; }
  .tp-opp-in img { display: none; }
  .tp-loc { margin-right: 4px; }
  .tp-loc { min-width: 0; }
  .tp-links { flex-direction: column; gap: 2px; }
  .tp-tv { white-space: normal; font-size: 13px; }
  .tp-opp-name { font-size: 15px; }
  .tp-note { margin-left: 0; }
  .tp-next { grid-template-columns: 1fr; }
  .tp-next img { display: none; }
  .tp-next-weather { grid-column: 1; }
}
