/* Civlo Web — layout and components.
   Phone first. Everything is sized in rem so the whole app grows with the browser's
   text size, and nothing is pinned to a viewport height that a zoomed page would break.
   Colours come from tokens.css; there are no hex values below. */

/* ---------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--text);
  background: var(--page);
  /* Overscroll at the top of Home shows the council's colour, as on the native app. */
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--council-accent-text); }

/* One focus treatment everywhere: a thick ring in the text colour with a light halo,
   so it is visible on a white card, on a tinted card and on the council's dark header. */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}
.on-brand :focus-visible { outline-color: var(--text-on-brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Keyboard users land here first. */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--safe-top) + 8px);
  z-index: 100;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-raised);
  font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; }

/* ------------------------------------------------------------- shell ------ */

#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--safe-bottom) + 12px);
}

/* A page whose content is centred on a tablet or desktop but full-bleed on a phone. */
.wrap {
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--flush { padding-inline: 0; }

/* --------------------------------------------------------- app header ----- */

/* The council's band. Its colour is the council's own, so text on it is always white. */
.brandbar {
  background: var(--council-primary);
  color: var(--text-on-brand);
  padding-top: calc(var(--safe-top) + 12px);
}

.brandbar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px var(--gutter-wide) 0;
  max-width: 34rem;
  margin-inline: auto;
}

.brandbar__logo {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 12px;
  background: var(--logo-plate);
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 800;
  font-size: var(--step-headline);
  color: var(--council-primary);
  letter-spacing: 0.02em;
}
.brandbar__logo img { width: 100%; height: 100%; object-fit: contain; }

.brandbar__names { min-width: 0; }
.brandbar__short {
  font-size: var(--step-title);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brandbar__full {
  font-size: var(--step-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 2px;
}

.brandbar__greeting {
  max-width: 34rem;
  margin-inline: auto;
  padding: 18px var(--gutter-wide) 26px;
}
.brandbar__hello {
  font-size: var(--step-title);
  font-weight: 700;
  line-height: 1.2;
}
.brandbar__team {
  font-size: var(--step-subhead);
  opacity: 0.9;
  margin-top: 2px;
}

/* The bell, on the right of the band. */
.bell {
  margin-left: auto;
  position: relative;
  width: var(--tap); height: var(--tap);
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: var(--text-on-brand);
  cursor: pointer;
}
.bell:hover { background: rgb(255 255 255 / 0.22); }
.bell__count {
  position: absolute;
  top: 0; right: 0;
  min-width: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--error);
  border: 2px solid var(--council-primary);
  color: #fff;
  font-size: var(--step-caption);
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* The white panel that rides up over the band, as on the native home screen. */
.panel {
  background: var(--page);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  margin-top: -16px;
  padding: 20px var(--gutter) 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34rem;
  margin-inline: auto;
  width: 100%;
}

/* ------------------------------------------------------------ nav bar ----- */

/* Simple back-and-title bar used on every screen that is not Home. */
.navbar {
  background: var(--council-primary);
  color: var(--text-on-brand);
  padding: calc(var(--safe-top) + 8px) var(--gutter) 10px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 34rem;
  margin-inline: auto;
  min-height: var(--tap);
}
.navbar__title {
  font-size: var(--step-headline);
  font-weight: 700;
  flex: 1;
  text-align: center;
  padding-inline: 4px;
}
.navbar__button {
  width: var(--tap); height: var(--tap);
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.14);
  color: var(--text-on-brand);
  cursor: pointer;
}
.navbar__button[aria-pressed="true"] { background: rgb(255 255 255 / 0.3); }
.navbar__spacer { width: var(--tap); flex: none; }

/* -------------------------------------------------------------- cards ----- */

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card__pad { padding: 16px; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-inline: 4px;
}
.section-title h2 {
  font-size: var(--step-headline);
  font-weight: 700;
}
.section-title .link { margin-left: auto; }

.link {
  background: none;
  border: 0;
  padding: 6px 4px;
  color: var(--council-accent-text);
  font-size: var(--step-subhead);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 10px; }

.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: 0;
}

.muted { color: var(--text-secondary); }
.small { font-size: var(--step-footnote); }
.caption { font-size: var(--step-caption); color: var(--text-secondary); }

/* ------------------------------------------------------------ buttons ----- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  border: 1.5px solid transparent;
  font-size: var(--step-body);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--council-button);
  color: #fff;
}
.btn--primary:hover:not([disabled]) { background: var(--council-button-dark); }

.btn--secondary {
  background: var(--surface);
  color: var(--council-accent-text);
  border-color: currentColor;
}

.btn--quiet {
  background: none;
  color: var(--text-secondary);
  border-color: var(--input-border);
  min-height: var(--tap);
}

.btn--block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .btn { flex: 1; }

/* -------------------------------------------------------------- forms ----- */

.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block;
  font-size: var(--step-subhead);
  font-weight: 600;
  color: var(--field-label);
  margin-bottom: 6px;
}
.field__hint {
  display: block;
  font-size: var(--step-footnote);
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field__control {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1.5px solid var(--input-border);
  background: var(--surface);
  color: var(--text);
}
.field__control:focus-visible {
  outline: 3px solid var(--council-accent-text);
  outline-offset: 1px;
  border-color: var(--council-accent-text);
}
.field__control[aria-invalid="true"] { border-color: var(--error); }
.field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: var(--step-footnote);
  font-weight: 600;
  color: var(--error-text);
}
.field__control--code {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: var(--step-heading);
}
select.field__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

/* --------------------------------------------------------------- pills ---- */

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  font-size: var(--step-caption);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--council-button);
}
.badge--urgent { background: var(--danger); }
.badge--update { background: var(--info); }
.badge--reminder { background: var(--purple); }

/* The same badge in a list, where a row of saturated blocks stops being information
   and starts being wallpaper. Tinted, smaller, and sitting on the meta line with the
   time rather than above the headline — which is where the native app puts a tag. */
.badge--quiet {
  padding: 2px 7px;
  color: var(--council-accent-text);
  background: var(--council-tint);
}
.badge--quiet.badge--urgent { color: var(--danger-text); background: var(--danger-tint); }
.badge--quiet.badge--update { color: var(--info-text); background: var(--info-tint); }
.badge--quiet.badge--reminder { color: var(--purple-text); background: var(--purple-tint); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: var(--step-caption);
  font-weight: 600;
}

/* --------------------------------------------------------- home cards ----- */

/* The live alert: a red-orange rail down the left, as on the native app. */
.alert-card {
  display: flex;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
  border-left: 6px solid var(--danger);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 14px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.alert-card__label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger-text);
  font-size: var(--step-footnote);
  font-weight: 700;
}
.alert-card__title {
  font-size: var(--step-headline);
  font-weight: 700;
  margin-top: 6px;
}
.alert-card__body {
  color: var(--text-secondary);
  font-size: var(--step-subhead);
  margin-top: 4px;
}
.alert-card__time { margin-top: 6px; }

/* Must-read card: a council-coloured rail and a list of what is left. */
.mustread {
  background: var(--surface);
  border-left: 4px solid var(--council-button);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mustread__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px 4px;
}
.mustread__head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step-headline);
  font-weight: 700;
  color: var(--council-accent-text);
}
.mustread__left {
  margin-left: auto;
  font-size: var(--step-footnote);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.mustread__blurb {
  padding: 0 16px 10px;
  font-size: var(--step-footnote);
  color: var(--text-secondary);
}

/* A tappable row inside a card. */
.row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: var(--tap);
  padding: 14px 16px;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-sunken); }
.row__icon { flex: none; color: var(--council-accent-text); padding-top: 2px; }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-size: var(--step-headline); font-weight: 600; line-height: 1.35; }
.row__detail { display: block; font-size: var(--step-footnote); color: var(--text-secondary); margin-top: 2px; }
.row__detail--warn { color: var(--danger-text); font-weight: 600; }
.row__chevron { flex: none; color: var(--text-tertiary); align-self: center; }
.row--centre { justify-content: center; color: var(--council-accent-text); font-weight: 600; }

/* A news row's summary. Two lines, cut by the browser on a line break rather than by
   us in the middle of a word. */
.row__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 3px;
  font-size: var(--step-subhead);
  color: var(--text-secondary);
}

/* Everything that is not the headline or the summary, on one line: the badge, when it
   was published, and whether it still needs confirming. */
.row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: var(--step-caption);
  color: var(--text-secondary);
}
.row__meta .badge { flex: none; }
.row__must { color: var(--council-accent-text); font-weight: 700; }

/* The unread dot on a news row. Level with the middle of the first line of the title. */
.row__dot {
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--council-button);
}
.row__dot--read { background: transparent; }

/* All must-reads done. */
.done-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--success-tint);
  color: var(--success-text);
  font-weight: 600;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

/* Turn on notifications prompt. */
.prompt {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.prompt__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--council-button);
  color: #fff;
}
.prompt__title { font-weight: 700; }
.prompt__body { font-size: var(--step-subhead); color: var(--text-secondary); margin-top: 2px; }
.prompt .btn-row { margin-top: 12px; }

/* Empty states. */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 32px 20px;
  color: var(--text-secondary);
}
.empty__icon { color: var(--text-tertiary); }
.empty__title { font-weight: 700; color: var(--text); }

/* ------------------------------------------------------------- article ---- */

/* One white sheet from the badge to the last paragraph. The head, the must-read strip,
   the "In short" panel and the body used to carry their own backgrounds, so an article
   read as three disconnected slabs with the page's grey showing between them. */
.article {
  background: var(--surface);
  overflow: hidden;
}
.article__head {
  background: var(--surface);
  padding: 20px var(--gutter-wide) 16px;
  border-bottom: 1px solid var(--border);
}
.article__head--urgent {
  background: var(--danger);
  color: #fff;
  border-bottom: 0;
}
.article__head--urgent .article__meta { color: #fff; }
.article__head--urgent .badge { background: #fff; color: var(--danger-text); }

.article__title {
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 12px;
}
.article__meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--step-footnote);
  color: var(--text-secondary);
}
.article__meta span { display: flex; align-items: center; gap: 6px; }

.article__body {
  background: var(--surface);
  padding: 4px var(--gutter-wide) 28px;
  font-size: var(--step-body);
  line-height: 1.6;
}
.article__body p { margin-bottom: 14px; }
.article__body p:last-child { margin-bottom: 0; }
.article__body ul,
.article__body ol { margin: 0 0 14px; padding-left: 20px; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 6px; }
.article__body strong, .article__body b { font-weight: 700; }
.article__body h2 { font-size: var(--step-headline); font-weight: 700; margin: 22px 0 8px; }
.article__body h3,
.article__body h4 { font-size: var(--step-body); font-weight: 700; margin: 18px 0 6px; }
.article__body blockquote {
  margin: 0 0 14px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--council-button);
  color: var(--text-secondary);
}
.article__body pre {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  overflow-x: auto;
  font-size: var(--step-subhead);
}
.article__body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.article__body hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* "Must read · overdue" strip near the top of the article. */
.mustread-strip {
  display: flex;
  gap: 12px;
  margin: 16px var(--gutter-wide);
  padding: 14px 16px;
  border-radius: var(--radius-control);
  background: var(--council-tint);
  color: var(--text);
}
.mustread-strip--overdue { background: var(--danger-tint); }
.mustread-strip__icon { flex: none; color: var(--council-accent-text); }
.mustread-strip--overdue .mustread-strip__icon { color: var(--danger-text); }
.mustread-strip__title { font-weight: 700; color: var(--council-accent-text); }
.mustread-strip--overdue .mustread-strip__title { color: var(--danger-text); }
.mustread-strip__body { font-size: var(--step-subhead); margin-top: 2px; }
.mustread-strip__count { font-size: var(--step-footnote); color: var(--text-secondary); margin-top: 4px; }

/* "In short: what this means for you". */
.inshort {
  margin: 16px var(--gutter-wide) 18px;
  padding: 16px;
  border-radius: var(--radius-control);
  background: var(--success-tint);
  color: var(--success-text);
}
.inshort__eyebrow {
  font-size: var(--step-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.inshort__title { font-size: var(--step-headline); font-weight: 700; }
.inshort__body { color: var(--text); margin-top: 6px; }

/* The sticky confirmation bar: the most important control in the product. */
.ackbar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-bar);
  padding: 12px var(--gutter-wide) calc(10px + var(--safe-bottom));
}
.ackbar__caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--step-footnote);
  font-weight: 600;
  color: var(--council-accent-text);
  margin-bottom: 8px;
}
.ackbar__caption--overdue { color: var(--danger-text); }
.ackbar__question {
  font-size: var(--step-subhead);
  font-weight: 700;
  margin-bottom: 8px;
}
.receipt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--success-text);
}
.receipt__icon { flex: none; color: var(--success); }
.receipt__who { font-size: var(--step-subhead); font-weight: 700; }
.receipt__when { font-size: var(--step-footnote); margin-top: 2px; }
.receipt__note { font-size: var(--step-caption); margin-top: 2px; }

/* ------------------------------------------------------------- inbox ------ */

.inbox-item {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.inbox-item:first-child { border-top: 0; }
.inbox-item--unread { background: var(--council-tint); }
.inbox-item__icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--logo-plate);
  color: var(--council-primary);
  display: grid;
  place-items: center;
  font-size: var(--step-caption);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.inbox-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.inbox-item__tag { font-weight: 700; font-size: var(--step-subhead); }
.inbox-item__body { font-size: var(--step-subhead); color: var(--text-secondary); margin-top: 2px; }
.inbox-item__time { font-size: var(--step-caption); color: var(--text-secondary); white-space: nowrap; }

/* -------------------------------------------------------------- join ------ */

.join {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--civlo-teal), var(--civlo-teal-deep));
  color: var(--text-on-brand);
  padding: calc(var(--safe-top) + 20px) var(--gutter) calc(var(--safe-bottom) + 20px);
}
/* Centred in what is left over, so a short step — "notifications are on, carry on" —
   sits in the middle of the screen instead of at the top of a half-empty one. A long
   step is taller than the space and simply scrolls, as it did before. */
.join__inner {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.join__mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  box-shadow: var(--shadow-raised);
}
.join__title {
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 14px;
}
.join__lede {
  font-size: var(--step-subhead);
  margin-top: 6px;
  opacity: 0.92;
}
.join__rule {
  width: 44px; height: 4px;
  border-radius: 2px;
  background: var(--civlo-amber);
  margin: 14px 0;
}
.join__card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-raised);
  padding: 20px;
  margin-top: 4px;
}
/* The heading inside the card is a step in a form, not a second hero. At the same size
   as the one above it, the two competed and pushed the first field off the screen. */
.join__card .join__title { font-size: var(--step-heading); }
.join__steps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.join__step {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
}
.join__step--done { background: var(--council-button); }
.join__foot {
  margin-top: 18px;
  font-size: var(--step-footnote);
  opacity: 0.9;
  text-align: center;
}

/* The demo-data notice. Honest and unmissable, not a footnote. */
.notice {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-control);
  background: var(--surface-sunken);
  color: var(--text);
  font-size: var(--step-footnote);
  line-height: 1.5;
}
.notice__icon { flex: none; color: var(--council-accent-text); }
.notice--warning { background: var(--warning-tint); color: var(--warning-text); }
.notice--warning .notice__icon { color: var(--warning-text); }

/* A short list in plain running text — what a notification will and will not be. */
.bullets {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: var(--step-subhead);
}
.bullets li { margin-bottom: 4px; }

/* The iPhone "Add to Home Screen" instruction. */
.install {
  border-radius: var(--radius-control);
  background: var(--council-tint);
  padding: 16px;
}
.install__title { font-weight: 700; margin-bottom: 8px; }
.install ol { list-style: none; counter-reset: step; }
.install li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: var(--step-subhead);
}
.install li::before {
  content: counter(step);
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--council-button);
  color: #fff;
  font-size: var(--step-caption);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* -------------------------------------------------------------- me -------- */

.me-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
}
.me-avatar {
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--council-button);
  color: #fff;
  font-size: var(--step-title);
  font-weight: 700;
}
.me-name { font-size: var(--step-headline); font-weight: 700; }
.me-team { color: var(--text-secondary); font-size: var(--step-subhead); }

.stat { margin-left: auto; font-weight: 700; color: var(--text-secondary); }
.stat--alert { color: var(--danger-text); }

/* ------------------------------------------------------------ prose ------- */

.prose { padding: 20px var(--gutter-wide) 32px; line-height: 1.6; }
.prose h2 {
  font-size: var(--step-headline);
  font-weight: 700;
  margin: 24px 0 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }

/* ------------------------------------------------------------- toast ------ */

.toast {
  position: fixed;
  left: 50%;
  /* Clear of a sticky bar at the bottom of the screen. */
  bottom: calc(var(--safe-bottom) + 96px);
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-size: var(--step-subhead);
  font-weight: 600;
  box-shadow: var(--shadow-raised);
}

/* ------------------------------------------------------- new-item cue ----- */

/* Polling brings posts in while someone is reading. Rather than redraw the page,
   the new row fades its tint away once. */
@keyframes settle {
  from { background-color: var(--council-tint-strong); }
  to { background-color: transparent; }
}
.is-new { animation: settle 2.4s ease-out 1; }

/* A quiet line telling someone the feed just changed, when they are scrolled down. */
.refresh-pill {
  position: fixed;
  top: calc(var(--safe-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--council-button);
  color: #fff;
  font-size: var(--step-footnote);
  font-weight: 700;
  box-shadow: var(--shadow-raised);
  cursor: pointer;
}

/* --------------------------------------------------------- big screens ---- */

@media (min-width: 40rem) {
  .brandbar__logo { width: 64px; height: 64px; }
  .article__title { font-size: 1.75rem; }
}
