/* Phone layout for stormcast.screen.html. Every rule is scoped to html.sc-phone (set in <head> by screen or
   window size, toggled on resize), so tablets and PCs keep main.css untouched. Panels are built by js/phone.js
   and stay in the page when a window widens, hidden by the first rule. */

#scpChart, #scPhone { display: none; }
html.sc-phone #scpChart, html.sc-phone #scPhone { display: block; }

html.sc-phone body {
  margin: 0; background: #eef1f5; color: #1a1f36; font: 15px/1.4 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* iOS Safari still needs the prefixed form */
  /* stylelint-disable-next-line property-no-vendor-prefix */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Desktop chrome that phone.js replaces */
html.sc-phone .pageCenter,
html.sc-phone .navTable,
html.sc-phone .modelBar,
html.sc-phone #leftColum,
html.sc-phone .chartQuicklinks,
html.sc-phone #pageLoadTime,
html.sc-phone .megamenu,
html.sc-phone #introductionMessage,
html.sc-phone #footerMessage,
html.sc-phone body > br { display: none !important; }

html.sc-phone #bschWrapper,
html.sc-phone #mainPageWrapper,
html.sc-phone #rightColum { width: auto !important; float: none; margin: 0; padding: 0; border: 0; background: transparent; }
html.sc-phone #rightColum { padding: 8px; }

html.sc-phone #chartImage { display: block; width: 100% !important; height: auto !important; max-width: 100%; box-sizing: border-box; background: #fff; border: 6px solid #fff; border-radius: 10px 10px 0 0; }
html.sc-phone #ledgend { background: #fff; padding: 0 6px 4px; border-radius: 0 0 10px 10px; }
html.sc-phone #legendTable { color: #1a1f36; table-layout: fixed; }
html.sc-phone #legendTable td { font-size: 10px !important; }
html.sc-phone .swapMessage { border-radius: 8px; margin-bottom: 6px; }

/* Accordion panels */
html.sc-phone .scp-panel { background: #fff; border-radius: 10px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.07); }
html.sc-phone .scp-panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; }
html.sc-phone .scp-panel summary::-webkit-details-marker { display: none; }
html.sc-phone .scp-panel summary span { color: #d0021b; font-weight: 600; text-align: right; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.sc-phone .scp-panel summary:after { content: '\25BE'; color: #8792a2; }
html.sc-phone .scp-panel[open] summary:after { content: '\25B4'; }
html.sc-phone .scp-body { padding: 0 14px 12px; }
html.sc-phone .scp-body h5 { margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; color: #8792a2; letter-spacing: .5px; }

html.sc-phone .scp-g { display: flex; flex-wrap: wrap; gap: 6px; }
html.sc-phone .scp-g a, html.sc-phone .scp-g span { padding: 7px 11px; border-radius: 7px; background: #f1f3f7; color: #1a1f36; text-decoration: none; font-size: 14px; font-weight: 400; }
html.sc-phone .scp-g a.on { background: #d0021b; color: #fff; }
html.sc-phone .scp-g span.off { opacity: .35; }
html.sc-phone .scp-hours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
html.sc-phone .scp-hours a, html.sc-phone .scp-hours span { text-align: center; padding: 7px 0; }
html.sc-phone .scp-lv { padding: 2px 0 8px; border-bottom: 1px solid #eef0f3; }
html.sc-phone .scp-lv a, html.sc-phone .scp-lv span { padding: 5px 9px; font-size: 13px; }
html.sc-phone .scp-sub { display: block; font-size: 13px; padding-top: 6px; margin-bottom: 4px; }
html.sc-phone .scp-list a, html.sc-phone .scp-list span { display: block; padding: 10px 2px; border-bottom: 1px solid #eef0f3; color: #1a1f36; text-decoration: none; font-size: 14px; }
html.sc-phone .scp-list a.on { color: #d0021b; font-weight: 600; }

/* Caption bar under the chart: previous / label / next */
html.sc-phone .scp-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px; margin: 6px 0; font-size: 13px; color: #4f566b; text-align: center; }
html.sc-phone .scp-step { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 36px; border: 1px solid #d5d9e0; border-radius: 7px; background: #fff; color: #1a1f36; font-size: 22px; text-decoration: none; }
html.sc-phone .scp-step.off { opacity: .3; }

/* Extras below the panels */
html.sc-phone .scp-more { font-size: 12px; color: #6b7280; padding: 4px 4px 16px; }
html.sc-phone .scp-more > div { width: auto !important; margin: 0 0 10px; padding: 0; border: 0; background: transparent; color: #6b7280; text-align: left; font-weight: 400; }
html.sc-phone .scp-more a { color: #1d4ed8; }
html.sc-phone .scp-more .navTableText { color: #1a1f36; font-weight: 600; }
