/* One language for the whole app (18 November 2026, the owner: "haz todo" on the list of what would make BiteSized easier to
   understand and use). Loaded last. */

/* 1. One language of buttons. On every screen one primary action, always the ink pill, as New post and Continue are; second
   ways with a hairline; the rest as words. Soft lilac is kept for what is chosen or on (a tab, a filter, a switch, Following),
   never for an action. Here the actions that had become soft lilac pills take the ink. */
html :is(.cx-head .cx-btn, .cx .cx-go, .cx .cx-send, .cl .cl-go, .lb-empty .dx-btn.sv-go) {
  border: 1px solid var(--cl-ink) !important; background: var(--cl-ink) !important; color: var(--cl-surface) !important;
  font-weight: 400 !important; box-shadow: 0 6px 16px -8px rgba(26,26,26,.45) !important; filter: none !important;
}
html :is(.cx-head .cx-btn, .cx .cx-go, .cx .cx-send) > i, html .cl .cl-go .cl-go__ic, html .sv-go__sign {
  background: color-mix(in srgb, var(--cl-surface) 18%, transparent) !important; color: var(--cl-surface) !important;
}
html .cl .cl-go .cl-go__ic i { color: var(--cl-surface) !important; }
@media (hover: hover) {
  html :is(.cx-head .cx-btn, .cx .cx-go, .cx .cx-send, .cl .cl-go, .lb-empty .dx-btn.sv-go):hover {
    background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)) !important; border-color: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)) !important;
    box-shadow: 0 10px 22px -10px rgba(26,26,26,.55) !important; translate: none !important;
  }
}
/* a send that waits for words stays grey, as Continue does */
html .cx .cx-send:disabled, html .cx .cx-send[aria-disabled="true"] { border-color: var(--cl-surface-2) !important; background: var(--cl-surface-2) !important; color: var(--cl-ink-4) !important; box-shadow: none !important; }
html .cx .cx-send:disabled > i, html .cx .cx-send[aria-disabled="true"] > i { background: transparent !important; color: var(--cl-ink-4) !important; }
/* second ways: a hairline pill (Mark resolved; Follow in Discover until it is on) */
html .cx .cx-pill--soft, html .cx .cx-soft { border: 1px solid var(--cl-line-2) !important; background: var(--cl-surface) !important; color: var(--cl-ink-2) !important; }
html .cx .cx-pill--soft > i, html .cx .cx-soft > i { color: var(--cl-ink-3) !important; }
@media (hover: hover) { html .cx .cx-pill--soft:hover, html .cx .cx-soft:hover { border-color: var(--cl-line-3) !important; background: var(--cl-surface) !important; color: var(--cl-ink) !important; } }
html #discoverRoot .dx-voice .follow-btn:not(.is-following) { border-color: var(--cl-line-2); background: var(--cl-surface); color: var(--cl-ink-2); }
html #discoverRoot .dx-voice .follow-btn:not(.is-following) .fb-ic { background: var(--cl-surface-2); color: var(--cl-ink-2); }
@media (hover: hover) { html #discoverRoot .dx-voice .follow-btn:not(.is-following):hover { border-color: var(--cl-line-3); color: var(--cl-ink); filter: none; } }

/* 6. Small print that reads. What a doctor must read is 13.5 px or more and a grey that holds on white; only marks and counts
   stay smaller. */
html .hd-n { font-size: 14px; }
html .nm-cap { font-size: 13px; color: var(--cl-ink-3); }
html .nm-who small, html .nm-me__go { font-size: 13.5px; }
html .cl-foot__w small { font-size: 14px; }
html .cl-foot__base { font-size: 13.5px; color: var(--cl-ink-3); }
html .cl-foot__links button { font-size: 14px; }
html .cf-ask[data-cf-count]::before { font-size: 13px; }
html .cf-sheet .cr-ch__sub, html .cf-sheet #crSourceNote, html .cf-sheet [data-cf-step="why"] #crSourceNote { font-size: 14px; color: var(--cl-ink-3); }
html .cf-sheet .cr-starts__w, html .cf-sheet .cr-cat__h, html .cf-sheet .cr-cat__autow { font-size: 13.5px; color: var(--cl-ink-3); }
html .cf-sheet [data-cf-step="why"] .cr-about__cap { font-size: 13px; color: var(--cl-ink-3); }
html .pz-menu__head small, html .pz-menu .pz-item small { font-size: 13.5px; }
html .et-d { font-size: 14px; }
html .dp-w, html .dp-n { font-size: 12.5px; }
html .fc-cm__when { font-size: 13.5px; color: var(--cl-ink-3); }
html #discoverRoot .dx-item__why .dx-tag { font-size: 13.5px; }
html .cx-page .cx-q::before { font-size: 13px; }
html .cx-page .cx-card .cx-ctx dt { font-size: 13.5px; color: var(--cl-ink-3); }
html .cx-page .cx-card .cx-priv { font-size: 13.5px; }
html .cl-foot__base span:last-child { color: var(--cl-ink-3); }

/* 7. Nothing on top of the phone's bar. On a phone Back to top is a small round button with its arrow, above the bar at the
   right, and it leaves when the bar would cover it; its name is still its label for a screen reader. */
@media (max-width: 1023.98px) {
  html #backTop { width: 44px; height: 44px; padding: 0; grid-auto-flow: row; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  html #backTop .backtop__w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html #backTop i { font-size: 18px !important; }
  /* an inner page keeps its top bar on a phone (it holds Back): once the page moves under it, the bar is frosted paper with a
     hairline, so the words of the page never show through Back and Search (clean-pages.css makes the phone bar
     clear with !important, so this says it the same way) */
  html.bs-inner.is-scrolled body #appTopbar { background: color-mix(in srgb, var(--cl-surface) 90%, transparent) !important; -webkit-backdrop-filter: blur(16px) saturate(1.3) !important; backdrop-filter: blur(16px) saturate(1.3) !important; box-shadow: 0 1px 0 var(--cl-line) !important; transition: background-color .25s var(--cl-out), box-shadow .25s var(--cl-out); }
  /* that frosted bar has its own clean edge, so its soft fade below is not drawn: on a person's page the fade veiled the row of
     parts stuck under it (the owner, 18 November 2026) */
  html.bs-inner.is-scrolled body #appTopbar::before { opacity: 0 !important; }
}

/* 3. Home's top, lighter: Cards and List live on the Filters screen, under the format; a phone has no list view */
@media (max-width: 1023.98px) { html .filt-sec.filt-view, html .fl-row:has(#filtView) { display: none !important; } }
html #filtView .view-pick { display: inline-grid !important; }
/* a switch that is on wears the lilac everywhere, as Important for all on Home does */
html :is(#filtersScreen, #modalFilter) .fl-switch[aria-checked="true"] .fl-switch__sw { background: color-mix(in srgb, var(--cl-lilac) 72%, var(--cl-ink)); }
