/* The notice for Chrome's "Desktop site" switch (increment S;
 * desktop-site-note.js).
 *
 * It is on the page only when a phone is showing the page laid out about
 * 980 px wide — when a 16 px sentence is 6 px on the glass. So everything
 * here is multiplied by --site-note-scale (the layout's width over the
 * screen's, set on <html> by the module): the notice reads at its normal
 * size while the page under it is small. Sizes stay in rem; the fallback of
 * 2.5 is the middle of what a phone gives (2.04 to 3.06).
 *
 * The first thing on the page, in the page's flow (nothing fixed), across the
 * whole layout: body's own padding is given back by the margins — the
 * phone's (views.css), since a 980 px layout is under the desk's 1100.
 * Tokens only: the amber of things that need the owner (--tint-warn), with
 * --ink on it — 15.2:1 light, 10.8:1 dark.
 */

.site-note {
  --s: var(--site-note-scale, 2.5);
  display: flex;
  align-items: center;
  gap: calc(var(--space-3) * var(--s));
  margin: calc(-1 * var(--space-2)) calc(-1 * var(--space-4)) var(--space-4);
  padding: calc(var(--space-3) * var(--s)) calc(var(--space-4) * var(--s));
  background: var(--tint-warn);
  border-bottom: calc(1px * var(--s)) solid var(--emphasis-edge);
  color: var(--ink);
  font-size: calc(1rem * var(--s));
  line-height: 1.4;
}

.site-note__words {
  flex: 1 1 auto;
  min-width: 0;
}

.site-note__line {
  margin: 0;
}

/* What is wrong, then — lighter — how to put it right. */
.site-note__line--what {
  font-weight: 700;
}

.site-note__line + .site-note__line {
  margin-top: calc(var(--space-1) * var(--s));
}

/* .btn's box (app.css), drawn at the notice's scale: 48 px on the glass. */
.site-note__dismiss {
  flex: none;
  min-height: calc(var(--touch-lg) * var(--s));
  padding: 0 calc(var(--space-4) * var(--s));
  border-width: calc(1px * var(--s));
  border-radius: calc(var(--radius-sm) * var(--s));
  font-size: inherit;
}

.site-note__dismiss:focus-visible {
  outline-width: calc(2px * var(--s));
  outline-offset: calc(2px * var(--s));
}
