.mobile-sports-tabs,
.mobile-appearance-menu,
.mobile-game-details-toggle {
  display: none;
}

@media (max-width: 700px) {
  html:has(.newspaper-app),
  body:has(.newspaper-app) {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: clip;
  }

  .newspaper-app,
  .newspaper-app.style-modern,
  .newspaper-app.style-fenway,
  .newspaper-app.style-camden,
  .newspaper-app.style-wrigley,
  .newspaper-app.style-bronx,
  .newspaper-app.style-queens,
  .newspaper-app.style-parchment {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow-x: clip;
  }

  .newspaper-app .newspaper,
  .newspaper-app.style-modern .newspaper,
  .newspaper-app.style-fenway .newspaper,
  .newspaper-app.style-camden .newspaper,
  .newspaper-app.style-wrigley .newspaper,
  .newspaper-app.style-bronx .newspaper,
  .newspaper-app.style-queens .newspaper,
  .newspaper-app.style-parchment .newspaper {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: max(14px, env(safe-area-inset-top)) 12px max(28px, env(safe-area-inset-bottom));
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    overflow-x: clip;
  }

  .newspaper-app .site-header {
    order: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin-bottom: 8px;
    padding-bottom: 10px;
  }

  .newspaper-app .brand {
    min-width: 0;
  }

  .newspaper-app .brand-title {
    font-size: 18px;
    line-height: 1;
  }

  .newspaper-app.style-newspaper .brand-title {
    font-size: 20px;
  }

  .newspaper-app .brand-subtitle {
    font-size: 9px;
  }

  .newspaper-app .header-cta {
    display: flex;
    width: auto;
    min-width: 0;
    gap: 6px;
  }

  .newspaper-app .header-cta > .style-mode-switcher,
  .newspaper-app .header-cta > .pill-btn,
  .newspaper-app .header-cta > .updated-tag {
    display: none !important;
  }

  .newspaper-app .site-return-link {
    display: none;
  }

  .mobile-appearance-menu {
    display: block;
    position: relative;
  }

  .mobile-appearance-menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 11px;
    list-style: none;
    color: var(--text-main);
    background: var(--table-stripe);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-appearance-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-appearance-sheet {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(292px, calc(100vw - 24px));
    padding: 8px;
    gap: 6px;
    color: var(--text-main);
    background: var(--paper-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.24);
  }

  .mobile-appearance-sheet button,
  .mobile-appearance-sheet a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 7px;
    color: var(--text-main);
    background: var(--table-stripe);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
  }

  .newspaper-app .dateline {
    order: 2;
    margin: 0 0 8px;
    padding: 4px 0 10px;
  }

  .newspaper-app .dateline-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
  }

  .newspaper-app .date-nav {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 7px;
  }

  .newspaper-app .nav-arrow {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .newspaper-app .nav-arrow:first-child::after {
    content: "‹";
    font-size: 24px;
  }

  .newspaper-app .nav-arrow:nth-of-type(2)::after {
    content: "›";
    font-size: 24px;
  }

  .newspaper-app .dateline-text {
    min-width: 0;
    font-size: 16px;
    line-height: 1.15;
    text-align: center;
  }

  .newspaper-app .date-picker-input {
    display: none;
  }

  .newspaper-app .filter-controls,
  .newspaper-app .team-filter-input {
    box-sizing: border-box;
    width: 100%;
  }

  .newspaper-app .team-filter-input {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 16px;
  }

  .mobile-sports-tabs {
    order: 3;
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 -4px 14px;
    padding: 5px;
    gap: 3px;
    background: color-mix(in srgb, var(--paper-bg) 94%, transparent);
    border: 1px solid var(--border-color);
    border-radius: 9px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(8px);
  }

  .mobile-sports-tab {
    min-width: 0;
    min-height: 44px;
    padding: 5px 2px;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-sports-tab.is-active {
    color: var(--accent);
    background: var(--paper-bg);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  }

  .newspaper-app .games-section {
    order: 4;
    margin-bottom: 22px;
    scroll-margin-top: 66px;
  }

  .newspaper-app .games-section + .games-section {
    order: 5;
  }

  .newspaper-app .standings-side-by-side-section {
    order: 6;
    min-width: 0;
    margin-bottom: 24px;
    scroll-margin-top: 66px;
  }

  .newspaper-app .boxscores-section {
    order: 7;
    min-width: 0;
    scroll-margin-top: 66px;
  }

  .newspaper-app .leaders-bottom-section {
    order: 8;
    min-width: 0;
    margin-top: 26px;
    scroll-margin-top: 66px;
  }

  .newspaper-app .site-footer {
    order: 9;
  }

  .newspaper-app .standings-dual-grid,
  .newspaper-app .league-standings-col,
  .newspaper-app .division-block,
  .newspaper-app .standings-wrap,
  .newspaper-app .leaders-dual-grid,
  .newspaper-app .league-leaders-col,
  .newspaper-app .leaders-category-grid,
  .newspaper-app .boxscores-container,
  .newspaper-app .game-container,
  .newspaper-app .boxscore-tables-grid,
  .newspaper-app .table-half {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .newspaper-app .standings-wrap {
    overflow-x: hidden;
  }

  .newspaper-app .standings-table {
    width: 100%;
    table-layout: fixed;
    font-size: 11.5px;
  }

  .newspaper-app .standings-table th,
  .newspaper-app .standings-table td {
    padding: 5px 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .newspaper-app .standings-table th:nth-child(4),
  .newspaper-app .standings-table td:nth-child(4),
  .newspaper-app .standings-table th:nth-child(6),
  .newspaper-app .standings-table td:nth-child(6),
  .newspaper-app .standings-table th:nth-child(7),
  .newspaper-app .standings-table td:nth-child(7),
  .newspaper-app .standings-table th:nth-child(8),
  .newspaper-app .standings-table td:nth-child(8),
  .newspaper-app .standings-table th:nth-child(10),
  .newspaper-app .standings-table td:nth-child(10) {
    display: none;
  }

  .newspaper-app .standings-table th:first-child,
  .newspaper-app .standings-table td:first-child {
    width: 38%;
  }

  .newspaper-app .games-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .newspaper-app .game-score-line,
  .newspaper-app .game-upcoming {
    box-sizing: border-box;
    min-height: 48px;
  }

  .newspaper-app .game-score-line {
    align-items: center;
    padding: 8px 9px;
  }

  .newspaper-app .game-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    font-size: 15px;
  }

  .newspaper-app .game-header .pill-btn {
    min-height: 44px;
    padding: 7px 10px !important;
  }

  .mobile-game-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 8px 11px;
    color: var(--accent);
    background: var(--table-stripe);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .newspaper-app .game-container.mobile-collapsible:not(.is-expanded) > *:not(.game-header):not(.mobile-game-details-toggle) {
    display: none !important;
  }

  .newspaper-app .game-container.mobile-collapsible.is-expanded .table-half {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .newspaper-app .game-container.mobile-collapsible.is-expanded .batting-table,
  .newspaper-app .game-container.mobile-collapsible.is-expanded .pitching-table {
    min-width: 520px;
  }

  .newspaper-app .section-main-title,
  .newspaper-app .boxscores-title,
  .newspaper-app .games-section-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
}
