/* Web-only adjustments on top of the desktop styles (styles.css is shared with the desktop app, unchanged). */

/* warm accent: the coral of the logo (#FF6B3D) in the seven steps of the Windows accent palette that every
   button, chip, highlight and chart reads. Contrast: black on light2 10.2:1 (dark theme buttons), white on
   dark1 5.0:1 (light theme buttons). The desktop app keeps following the Windows accent colour. */
:root {
  --a-light3: #FFD3C2; --a-light2: #FF9B78; --a-light1: #FF7A50; --a-base: #F25C3A;
  --a-dark1: #C8401F; --a-dark2: #A3321A; --a-dark3: #7A2412;
}

.nav-footer .byline { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-2);
  padding: 8px 10px 2px; letter-spacing: 0.1px; }

/* no window frame in a browser: hide the caption buttons, keep the title bar as the page's top bar */
.caption { display: none !important; }
.titlebar { padding-right: 10px; border-bottom: 1px solid transparent; }
.tb-link { font-family: var(--font-small); font-size: 12px; color: var(--text-2); height: 28px; padding: 0 12px;
  border-radius: 6px; flex: none; transition: background var(--fast), color var(--fast); }
.tb-link:hover { background: var(--subtle-hover); color: var(--text-1); }
.tb-link:active { background: var(--subtle-pressed); }
.set-card a, .credits a { color: var(--accent-text); text-decoration: none; }
.set-card a:hover, .credits a:hover { text-decoration: underline; }
.about .credits { margin-top: 6px; line-height: 1.5; }
.sidebar-scrim { display: none; }

/* phones and narrow windows: the sidebar floats over the page */
@media (max-width: 760px) {
  :root { --titlebar-h: 48px; }
  .app, .app.sidebar-closed { grid-template-columns: 0px minmax(0, 1fr); }
  .sidebar { position: fixed; top: var(--titlebar-h); bottom: 0; left: 0; width: min(var(--sidebar-w), 86vw); z-index: 40;
    background: var(--solid-base); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    transform: none; transition: transform var(--slower) var(--ease); }
  .sidebar-inner { width: 100%; }
  .app.sidebar-closed .sidebar { transform: translateX(-105%); box-shadow: none; }
  .sidebar-scrim { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: var(--titlebar-h); z-index: 39;
    background: rgba(0, 0, 0, 0.38); transition: opacity var(--slower) var(--ease); }
  .app.sidebar-closed .sidebar-scrim { opacity: 0; pointer-events: none; }
  .tb-session, .tb-sep { display: none !important; }

  .hero { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 32px; line-height: 42px; text-align: center; }
  .hero .lead { font-size: 15px; line-height: 22px; }
  .ex-grid { grid-template-columns: 1fr; }
  .feed { padding: 18px 12px 0; }
  .dock { padding: 0 8px 8px; }
  .cmp-bar { flex-wrap: wrap; row-gap: 6px; }
  .cmp-bar .sep { display: none; }
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: 1fr; }
  .stage-wrap canvas.stage { height: 220px; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .player .time { width: auto; }
  .toasts { left: 12px; right: 12px; align-items: stretch; }

  /* the docked composer stays small so the song keeps the screen: words only while typing, chips on one row */
  .dock .composer:not(:focus-within) .cmp-lyrics-row { display: none; }
  .dock .composer .cmp-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .dock .composer .cmp-bar::-webkit-scrollbar { display: none; }
  .dock .composer .cmp-bar > * { flex: none; }
  .dock .composer .words-btn, .dock .composer .cmp-bar .grow { display: none; }
  .dock .composer .cmp-bar { padding-right: 0; }
  .dock .composer .sing-btn { position: sticky; right: 0; z-index: 1; margin-right: 0;
    box-shadow: -18px 0 12px -2px var(--solid-4), 10px 0 0 0 var(--solid-4); }
  .dock .composer .clip-chip canvas { display: none; }
  .dock-note { display: none; }
  .chip .chip-text { max-width: 8.5em; }
  .cmp-empty { flex-wrap: wrap; }
  .cmp-empty .msg { flex-basis: calc(100% - 80px); }
  .cmp-empty > .btn { margin-left: auto; }

  .result-top { flex-wrap: wrap; }
  .result-top .grow { flex-basis: 100%; }
}
