.recap-filters, .recap-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.recap-filters { margin: 20px 0; }
.recap-actions button { padding: 10px 16px; border-radius: 7px; font: inherit; font-weight: 700; cursor: pointer; }
.recap-actions .secondary-action-link { border: 1px solid #bbc7d6; background: #fff; color: #172b46; }
.recap-actions .secondary-action-link:hover { background: #edf4fc; }
.recap-filters label, .recap-editor label { display: block; font-weight: 700; margin-bottom: 6px; }
.recap-filters select { padding: 9px 12px; border: 1px solid #bbc7d6; border-radius: 6px; background: white; color: #172b46; }
.recap-workspace { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.recap-game-list { display: grid; gap: 8px; }
.recap-game-link { display: grid; gap: 7px; padding: 16px; border: 1px solid #d5deea; border-radius: 10px; background: #fff; text-decoration: none; color: #172b46; }
.recap-game-link.is-selected { border-color: #255e9b; background: #edf4fc; box-shadow: inset 3px 0 #255e9b; }
.recap-status, .recap-help, .recap-count { font-size: .85rem; color: #52647b; }
.recap-editor { min-width: 0; }
.recap-editor textarea { box-sizing: border-box; width: 100%; padding: 14px; border: 1px solid #bbc7d6; border-radius: 10px; font: inherit; line-height: 1.65; resize: vertical; }
.recap-count.is-valid { color: #21623d; }
.recap-errors { padding: 12px; margin-bottom: 12px; background: #fff0ef; color: #912b25; border-radius: 8px; }
.recap-empty { padding: 24px; }
.recap-preview-heading { margin-top: 28px; font-size: 1rem; }
.game-recap-card { min-width: 0; }
.game-recap-card + .game-recap-card { border-top: 1px solid #e5e7eb; margin-top: 24px; padding-top: 24px; }
.game-recap-header { margin-bottom: 10px; }
.game-recap-scoreboard { display: inline-grid; grid-template-columns: 32px minmax(0, max-content) max-content; column-gap: 10px; row-gap: 6px; max-width: 100%; box-sizing: border-box; margin: 0; padding: 0 12px 0 0; color: #172b46; line-height: 1.2; }
.game-recap-team { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; font-size: 1.5rem; }
.game-recap-logo, .game-recap-logo img { display: block; width: 32px; height: 32px; }
.game-recap-logo img { object-fit: contain; }
.game-recap-team-name { color: #334155; font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.game-recap-team-details { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 6px; row-gap: 2px; }
.game-recap-record { color: #64748b; font-size: 0.85rem; font-weight: 400; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.game-recap-points { margin-left: 12px; min-width: 2.5ch; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.025em; }
.game-recap-team--winner .game-recap-team-name,
.game-recap-team--winner .game-recap-points { color: #030712; font-weight: 1000; }
.game-recap-team--loser .game-recap-team-name,
.game-recap-team--loser .game-recap-points { color: #334155; font-weight: 600; }
.game-recap-team--tied .game-recap-team-name,
.game-recap-team--tied .game-recap-points { color: #111827; font-weight: 800; }
.game-recap-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-game-recaps { margin-bottom: 24px; }
@media (max-width: 700px) {
  .recap-workspace { grid-template-columns: minmax(0, 1fr); }
  .recap-game-list { max-height: 260px; overflow-y: auto; }
}

.recap-batch-actions { position: sticky; top: 70px; z-index: 5; padding: 14px; margin-bottom: 20px; background: #f8fafc; border: 1px solid #d5deea; border-radius: 10px; }
.recap-batch-actions .recap-help { margin: 8px 0 0; }
.recap-week-editors { display: grid; gap: 28px; }
.recap-batch-game { padding-top: 20px; border-top: 1px solid #d5deea; scroll-margin-top: 180px; }
.recap-batch-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.recap-batch-heading h2 { margin: 0; font-size: 1.1rem; }
.recap-batch-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.recap-batch-columns .recap-preview-heading { margin-top: 0; }
@media (max-width: 700px) {
  .recap-batch-columns { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .recap-batch-actions { position: static; }
}

.recap-import { padding: 16px; margin-bottom: 20px; }
.recap-import summary { cursor: pointer; font-weight: 700; }
.recap-import label { display: block; font-weight: 700; margin-bottom: 6px; }
.recap-import textarea { box-sizing: border-box; width: 100%; padding: 12px; margin-bottom: 12px; border: 1px solid #bbc7d6; border-radius: 8px; font: inherit; resize: vertical; }
.recap-import pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.weekly-recap-editor { margin: 24px 0; padding: 20px 0; border-top: 1px solid #d5deea; }
.weekly-recap-editor h2 { font-size: 1.1rem; }
.weekly-recap-editor input[type="text"] { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #bbc7d6; border-radius: 8px; margin-bottom: 14px; font: inherit; }
.weekly-recap-editor input[type="file"] { max-width: 100%; }
.weekly-recap-editor .weekly-recap-remove { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.weekly-recap-image { margin: 0 0 20px; }
.weekly-recap-image[hidden], .weekly-recap-introduction[hidden] { display: none; }
.weekly-recap-image img { display: block; width: 100%; max-height: 440px; object-fit: contain; border-radius: 6px; }
.weekly-recap-image figcaption { margin-top: 8px; font-size: .8rem; color: #64748b; }
.weekly-recap-introduction { margin: 0 0 24px; white-space: pre-wrap; overflow-wrap: anywhere; }

.weekly-recap-lookahead { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d5deea; }
.weekly-recap-lookahead[hidden] { display: none; }
.weekly-recap-lookahead-body { white-space: pre-wrap; overflow-wrap: anywhere; }

.recap-article-dialog { box-sizing: border-box; width: min(940px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0 24px 24px; border: 1px solid #d5deea; border-radius: 14px; background: #f1f5f9; color: #172b46; }
.recap-article-dialog::backdrop { background: rgb(15 23 42 / 65%); }
.recap-article-dialog-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0; background: #f1f5f9; }
.recap-article-dialog-toolbar h2 { margin: 0; font-size: 1.1rem; }
.recap-article-dialog-toolbar p { margin: 5px 0 0; font-size: .85rem; color: #52647b; }
.recap-article-dialog .home-game-recaps { margin: 0; }
@media (max-width: 700px) {
  .recap-article-dialog { padding: 0 12px 12px; }
}
.recap-import .secondary-action-link, .recap-article-dialog .secondary-action-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #bbc7d6; border-radius: 7px; background: #fff; color: #172b46; font: inherit; font-weight: 700; cursor: pointer; }
.recap-import .secondary-action-link:hover, .recap-article-dialog .secondary-action-link:hover { background: #edf4fc; }

/* Shared article design from tlfl-lookahead-design.html. */
.home-game-recaps.article-detail {
  box-sizing: border-box; width: 100%; max-width: 790px; margin: 0 auto 24px;
  padding: 30px 34px; background: #fff; color: #172b46;
  border: 1px solid #e1e5eb; border-top: 4px solid #2458ad; border-radius: 8px;
  box-shadow: 0 8px 24px #182d4610; font-family: Georgia, "Times New Roman", serif;
}
.home-game-recaps.article-detail * { box-sizing: border-box; }
.home-game-recaps.article-detail p { font-family: inherit; font-size: 16px; line-height: 1.65; margin: 0; }
.home-game-recaps.article-detail .article-detail-header { border: 0; padding: 0 0 22px; margin: 0 0 8px; border-bottom: 1px solid #e2e7ee; }
.home-game-recaps.article-detail .article-detail-header h1 { font-family: inherit; font-size: 44px; font-weight: 700; line-height: normal; color: #080e19; letter-spacing: -1px; margin: 9px 0 14px; padding: 0; text-wrap: wrap; }
.home-game-recaps.article-detail .article-detail-header h1::after { display: none; }
.home-game-recaps.article-detail .draft-preview-kicker,
.home-game-recaps.article-detail .weekly-recap-lookahead-kicker { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #2458ad; font-weight: 700; margin: 0 0 7px; }
.home-game-recaps.article-detail .article-byline { font-size: 13px; font-weight: 400; color: #52647b; }
.home-game-recaps.article-detail .article-byline span { display: inline; border-left: 1px solid #cbd5e1; margin-left: 10px; padding-left: 10px; }
.home-game-recaps.article-detail .article-byline span::before { display: none; }
.home-game-recaps.article-detail .weekly-recap-introduction { margin: 20px 0 4px; }
.home-game-recaps.article-detail .game-recap-card { padding: 23px 0; margin: 0; }
.home-game-recaps.article-detail .game-recap-card + .game-recap-card { border-top: 1px solid #e2e7ee; }
.home-game-recaps.article-detail .game-recap-card:last-child { padding-bottom: 2px; }
.home-game-recaps.article-detail .game-recap-header { margin: 0 0 14px; }
.home-game-recaps.article-detail .game-recap-scoreboard { padding: 0; margin: 0; line-height: normal; letter-spacing: normal; }
.home-game-recaps.article-detail .game-recap-team-name { font-size: 16px; font-weight: 700; line-height: normal; }
.home-game-recaps.article-detail .game-recap-record { font-size: 14px; line-height: normal; }
.home-game-recaps.article-detail .game-recap-points { font-size: 24px; font-weight: 800; letter-spacing: normal; }
.home-game-recaps.article-detail .game-recap-team--winner .game-recap-team-name,
.home-game-recaps.article-detail .game-recap-team--winner .game-recap-points { color: #030712; }
.home-game-recaps.article-detail .game-recap-team--loser .game-recap-team-name,
.home-game-recaps.article-detail .game-recap-team--loser .game-recap-points { color: #334155; }
.home-game-recaps.article-detail .weekly-recap-lookahead { margin-top: 14px; padding: 0; border: 0; }
.home-game-recaps.article-detail .weekly-recap-lookahead-header { border-top: 3px solid #2458ad; padding-top: 22px; }
.home-game-recaps.article-detail .weekly-recap-lookahead h2 { font-family: inherit; font-size: 30px; font-weight: 700; line-height: normal; letter-spacing: -.6px; margin: 0; color: #080e19; }
.home-game-recaps.article-detail .weekly-recap-lookahead-game { padding: 23px 0; }
.home-game-recaps.article-detail .weekly-recap-lookahead-game + .weekly-recap-lookahead-game { border-top: 1px solid #e2e7ee; }
.home-game-recaps.article-detail .weekly-recap-lookahead-game:last-child { padding-bottom: 2px; }
.home-game-recaps.article-detail .weekly-recap-lookahead-game h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-family: inherit; font-size: 19px; font-weight: 700; line-height: normal; margin: 0 0 12px; color: #102039; }
.weekly-recap-lookahead-team { display: inline-flex; align-items: center; gap: 9px; }
.weekly-recap-lookahead-team img { width: 30px; height: 30px; object-fit: contain; }
.home-game-recaps.article-detail .weekly-recap-at { font-size: 15px; font-weight: 400; color: #718095; margin: 0 3px; }
.recap-article-dialog { width: min(840px, calc(100% - 24px)); }
@media (max-width: 520px) {
  .home-game-recaps.article-detail { padding: 23px 20px; }
  .home-game-recaps.article-detail p { font-size: 15px; }
  .home-game-recaps.article-detail .article-detail-header h1 { font-size: 34px; }
  .home-game-recaps.article-detail .draft-preview-kicker,
  .home-game-recaps.article-detail .weekly-recap-lookahead-kicker { font-size: 12px; }
  .home-game-recaps.article-detail .article-byline { font-size: 13px; }
  .home-game-recaps.article-detail .game-recap-record { font-size: 13px; }
  .home-game-recaps.article-detail .game-recap-points { font-size: 23px; }
  .home-game-recaps.article-detail .weekly-recap-lookahead h2 { font-size: 26px; }
  .home-game-recaps.article-detail .weekly-recap-lookahead-game h3 { font-size: 17px; gap: 7px; }
  .weekly-recap-lookahead-team { gap: 7px; }
  .weekly-recap-lookahead-team img { width: 25px; height: 25px; }
}

.home-game-recaps.article-detail .weekly-recap-lookahead-record { font-size: 14px; font-weight: 400; color: #64748b; white-space: nowrap; }
@media (max-width: 520px) {
  .home-game-recaps.article-detail .weekly-recap-lookahead-record { font-size: 13px; }
}
