/* ReviewQR - calm, mobile first, one brand accent and amber stars.
 *
 * Colour lives in two layers. The semantic tokens below say what a colour is
 * FOR (--surface, --text-muted, --brand), and the dark block further down
 * redefines only those. Everything after this point refers to tokens and never
 * to a raw hex, which is what makes one dark block enough - and what makes
 * rebranding a matter of editing the brand tokens and nothing else.
 *
 * The --ink / --paper / --teal names are kept as aliases so the rest of the
 * file reads as it always did. */

:root {
  color-scheme: light dark;

  /* surfaces */
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-2: var(--surface-2);
  --header-bg: #101418;
  --header-tag: var(--header-tag);

  /* text */
  --text: #101418;
  --text-soft: #2b333a;
  --text-muted: #55606a;
  --placeholder: var(--placeholder);

  /* lines */
  --border: #dfe4e3;
  --border-strong: var(--border-strong);

  /* brand - the three values to change when rebranding */
  --brand: #0f7a6c;
  --brand-strong: #0a5a4f;
  --brand-wash: #e7f2f0;
  --brand-edge: var(--brand-edge);
  --on-brand: #ffffff;
  --link: var(--brand-strong);

  /* stars */
  --star: #b07708;
  --star-off: var(--star-off);
  --bar-track: var(--bar-track);

  /* feedback */
  --danger: #a32316;
  --danger-wash: var(--danger-wash);
  --danger-edge: var(--danger-edge);
  --danger-text: var(--danger-text);
  --ok-text: var(--ok-text);

  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 20, 24, 0.06);
  --shadow-lift: 0 4px 16px rgba(16, 20, 24, 0.1);
  --heading: 'Bricolage Grotesque', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* legacy aliases, so the rest of the file is unchanged */
  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --mist: var(--bg);
  --paper: var(--surface);
  --line: var(--border);
  --muted: var(--text-muted);
  --teal: var(--brand);
  --teal-dark: var(--brand-strong);
  --teal-wash: var(--brand-wash);
  --amber: var(--star);
}

/* Dark mode. Follows the system unless the page carries data-theme, which the
 * header toggle sets. Teal is lifted and desaturated: the light teal is only
 * 2.1:1 against a dark surface, which fails at any text size. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0e1214;
    --surface: #161b1e;
    --surface-2: #1e2529;
    --header-bg: #0a0d0f;
    --header-tag: #8a9794;

    --text: #e8edec;
    --text-soft: #c3ccca;
    --text-muted: #9aa6a4;
    --placeholder: #7d8a88;

    --border: #2a3338;
    --border-strong: #3a454a;

    --brand: #2bbfa8;
    --brand-strong: #4fd6c0;
    --brand-wash: #10302c;
    --brand-edge: #1d4a43;
    --on-brand: #06231f;
    --link: var(--brand-strong);

    --star: #e0a93a;
    --star-off: #4a5357;
    --bar-track: #262e32;

    --danger: #ff9385;
    --danger-wash: #2a1512;
    --danger-edge: #5a2a22;
    --danger-text: #ffb3a7;
    --ok-text: #7fe0cd;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme='dark'] {
  --bg: #0e1214;
  --surface: #161b1e;
  --surface-2: #1e2529;
  --header-bg: #0a0d0f;
  --header-tag: #8a9794;

  --text: #e8edec;
  --text-soft: #c3ccca;
  --text-muted: #9aa6a4;
  --placeholder: #7d8a88;

  --border: #2a3338;
  --border-strong: #3a454a;

  --brand: #2bbfa8;
  --brand-strong: #4fd6c0;
  --brand-wash: #10302c;
  --brand-edge: #1d4a43;
  --on-brand: #06231f;
  --link: var(--brand-strong);

  --star: #e0a93a;
  --star-off: #4a5357;
  --bar-track: #262e32;

  --danger: #ff9385;
  --danger-wash: #2a1512;
  --danger-edge: #5a2a22;
  --danger-text: #ffb3a7;
  --ok-text: #7fe0cd;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 4px 16px rgba(0, 0, 0, 0.5);
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.15rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.75rem;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Visible focus everywhere, never removed. */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header {
  background: var(--header-bg);
  color: var(--paper);
  padding: 0.85rem 1rem;
}

.site-header a {
  color: var(--paper);
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header .tag {
  color: var(--header-tag);
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

main {
  margin: 0 auto;
  max-width: 420px;
  padding: 1rem 1rem 3rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: 1rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
}

.hidden {
  display: none !important;
}

.sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ------------------------------------------------------------ rating summary */

.summary {
  align-items: baseline;
  display: flex;
  gap: 0.6rem;
}

.summary .average {
  font-family: var(--heading);
  font-size: 2.1rem;
  font-weight: 600;
}

.stars {
  color: var(--amber);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.stars .off {
  color: var(--star-off);
}

.breakdown {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.85rem;
}

.breakdown-row {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 2.4rem 1fr 1.8rem;
}

.breakdown-row .label {
  color: var(--muted);
  font-size: 0.85rem;
}

.bar {
  background: var(--bar-track);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.bar span {
  background: var(--amber);
  display: block;
  height: 100%;
  width: 0;
}

.breakdown-row .count {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

/* -------------------------------------------------------------------- reviews */

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Dividers rather than a card per review. */
.review-list li {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.review-list li:first-child {
  border-top: 0;
  padding-top: 0.35rem;
}

.review-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
}

.review-head .who {
  font-weight: 600;
}

.review-head .when {
  color: var(--muted);
  font-size: 0.85rem;
}

.review-body {
  margin: 0.35rem 0 0;
}

.mine {
  background: var(--brand-wash);
  border: 1px solid var(--brand-edge);
  border-radius: var(--radius);
  padding: 0.85rem;
}

/* The business's answer, set in under the review it belongs to. */
.reply {
  border-left: 3px solid var(--line);
  margin: 0.55rem 0 0;
  padding: 0.1rem 0 0.1rem 0.7rem;
}

.reply .who {
  color: var(--teal-dark);
}

.reply-form {
  margin-top: 0.6rem;
}

.badge {
  background: var(--brand);
  border-radius: 999px;
  color: var(--on-brand);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 0.1rem 0.5rem;
}

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

fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0;
}

legend,
.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding: 0;
}

label {
  display: block;
}

input[type='text'],
input[type='email'],
input[type='password'],
textarea {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  margin-bottom: 0.75rem;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

textarea {
  line-height: 1.5;
  min-height: 140px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.5rem 0 0.75rem;
}

button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 10px;
  color: var(--on-brand);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  width: 100%;
}

button:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

button.secondary {
  background: var(--paper);
  border-color: var(--border-strong);
  color: var(--ink);
}

button.secondary:hover {
  background: var(--surface-2);
}

button.danger {
  background: var(--paper);
  border-color: var(--danger-edge);
  color: var(--danger);
}

button.danger:hover {
  background: var(--danger-wash);
}

.row {
  display: flex;
  gap: 0.5rem;
}

.row button {
  flex: 1;
}

/* Star rating as an accessible radio group. */
.rating-group {
  display: flex;
  gap: 0.25rem;
}

.rating-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rating-group label {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--star-off);
  cursor: pointer;
  display: flex;
  font-size: 1.75rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.rating-group label:hover {
  color: var(--amber);
}

.rating-group input:checked + label,
.rating-group.filled label.on {
  color: var(--amber);
}

.rating-group input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.rating-caption {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.35rem 0 0;
  min-height: 1.4rem;
}

/* Topic chips. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chips label {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  min-height: 44px;
  padding: 0.4rem 0.95rem;
}

.chips input:checked + label {
  background: var(--teal-wash);
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 600;
}

.chips input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Draft suggestion cards. */
.drafts {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.draft input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.draft label {
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  display: block;
  padding: 0.75rem;
}

.draft input:checked + label {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal);
}

.draft input:focus-visible + label {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.draft .shape {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.counter {
  color: var(--muted);
  font-size: 0.85rem;
  margin: -0.5rem 0 0.75rem;
  text-align: right;
}

.counter.over {
  color: var(--danger);
  font-weight: 600;
}

/* --------------------------------------------------------- status and states */

.status {
  border-radius: 10px;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
}

.status:empty {
  display: none;
}

.status.error {
  background: var(--danger-wash);
  border: 1px solid var(--danger-edge);
  color: var(--danger-text);
}

.status.ok {
  background: var(--teal-wash);
  border: 1px solid var(--brand-edge);
  color: var(--ok-text);
}

.status.working {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.empty {
  color: var(--muted);
  padding: 0.5rem 0;
}

.spinner {
  animation: spin 0.9s linear infinite;
  border: 2px solid var(--brand-edge);
  border-radius: 50%;
  border-top-color: var(--teal);
  display: inline-block;
  height: 14px;
  margin-right: 0.45rem;
  vertical-align: -2px;
  width: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .spinner {
    animation: none;
    border-top-color: var(--brand-edge);
  }
}

.footnote {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.site-footer {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 auto;
  max-width: 420px;
  padding: 0 1rem 2rem;
}

/* ------------------------------------------------------------------- landing */

.hero {
  padding: 0.5rem 0 1rem;
}

.hero h1 {
  font-size: 1.9rem;
}

.steps {
  margin: 0;
  padding-left: 1.2rem;
}

.steps li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------- admin */

.admin-wide {
  max-width: 760px;
}

.qr-thumb {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 92px;
  width: 92px;
}

.biz {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
}

.biz:first-of-type {
  border-top: 0;
}

.biz-main {
  flex: 1;
  min-width: 0;
}

.biz h3 {
  overflow-wrap: anywhere;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.inline-actions button,
.inline-actions a.button-link {
  font-size: 0.88rem;
  padding: 0.35rem 0.7rem;
  width: auto;
}

a.button-link {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

a.button-link:hover {
  background: var(--surface-2);
}

.mod-row {
  border-top: 1px solid var(--line);
  padding: 0.75rem 0;
}

.mod-row:first-of-type {
  border-top: 0;
}

.mod-row .who {
  overflow-wrap: anywhere;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tabs button {
  width: auto;
}

.tabs button[aria-selected='true'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

@media (min-width: 560px) {
  main {
    max-width: 480px;
  }

  .row {
    gap: 0.75rem;
  }
}

/* A minor control inline in a footnote: smaller, but still a 44px target. */
.footnote button {
  font-size: 0.85rem;
  margin-left: 0.35rem;
  padding: 0.3rem 0.7rem;
  width: auto;
}

/* A checkbox with its label on one line, still a 44px target. */
.check {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  min-height: 44px;
}

.check input {
  height: 20px;
  margin: 0;
  width: 20px;
}

.check label {
  font-weight: 400;
  margin: 0;
}

/* ------------------------------------------------------------- theme toggle */

.site-header {
  align-items: center;
  display: flex;
  gap: 0.6rem;
}

.site-header .brand-mark {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
}

.site-header .spacer {
  flex: 1;
}

/* A quiet control in a dark bar: readable, but never competing with the name. */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--paper);
  flex: 0 0 auto;
  font-size: 0.8rem;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.25rem 0.7rem;
  width: auto;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
}

.theme-toggle .icon {
  font-size: 0.95rem;
  line-height: 1;
}

/* ------------------------------------------------------------------- toasts */

/* Bottom on phones so it never covers the thing just tapped; a corner on
 * desktop. aria-live is on the container, so a toast is announced too. */
.toasts {
  bottom: 0;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  left: 0;
  padding: 1rem;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 50;
}

.toast {
  align-items: flex-start;
  animation: toast-in 0.22s ease-out;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  box-shadow: var(--shadow-lift);
  color: var(--text);
  display: flex;
  font-size: 0.92rem;
  gap: 0.5rem;
  max-width: 420px;
  padding: 0.7rem 0.85rem;
  pointer-events: auto;
  width: 100%;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.leaving {
  animation: toast-out 0.18s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------------------------------------------------------------- skeletons */

/* Shown while the first fetch is in flight, sized like the content it stands
 * in for so the page does not jump when the real thing arrives. */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
  height: 0.9rem;
  margin-bottom: 0.5rem;
}

.skeleton.title {
  height: 1.6rem;
  width: 60%;
}

.skeleton.line-short {
  width: 40%;
}

@keyframes shimmer {
  to {
    background-position: -400% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }

  .toast {
    animation: none;
  }
}

/* -------------------------------------------------------------- wider screens */

/* The customer flow stays a single readable column - it is a form, and a wide
 * form is a worse form. Desktop gets breathing room, not more columns. */
@media (min-width: 900px) {
  main {
    max-width: 560px;
    padding-top: 2rem;
  }

  .card {
    padding: 1.25rem;
  }

  .toasts {
    bottom: auto;
    justify-items: end;
    left: auto;
    right: 0;
    top: 0;
  }
}

/* The admin console is the opposite case: it is a list of things to scan, and
 * it genuinely benefits from width. */
@media (min-width: 1000px) {
  main.admin-wide {
    max-width: 1080px;
  }

  .admin-wide .biz {
    align-items: flex-start;
    gap: 1.25rem;
  }

  .admin-wide .qr-thumb {
    height: 120px;
    width: 120px;
  }

  .admin-wide .inline-actions {
    margin-top: 0.75rem;
  }
}

/* The landing page is a marketing page, so it lays out as one. */
@media (min-width: 820px) {
  main.landing {
    max-width: 960px;
  }

  .landing .hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
  }

  .landing .hero h1 {
    font-size: 2.8rem;
    margin: 0 auto 0.5rem;
    max-width: 18ch;
  }

  .landing .hero p {
    margin: 0 auto;
    max-width: 56ch;
  }

  .landing .card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .landing .card-grid .card {
    margin-bottom: 0;
  }
}

/* A card that is a link to somewhere: lifts slightly, so it reads as one. */
.card.interactive {
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card.interactive:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* ------------------------------------------------- admin list: find and page */

.list-controls {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.list-controls input[type='search'],
.list-controls select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  margin: 0;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
  width: 100%;
}

#business-count:empty {
  display: none;
}

.pager {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.pager button {
  width: auto;
}

@media (min-width: 640px) {
  .list-controls {
    grid-template-columns: 1fr 15rem;
  }
}

/* -------------------------------------------------------------- QR poster */

.poster-page {
  max-width: 560px;
}

/* The poster itself is always light, in both themes. It is going on paper:
   printing a dark background wastes ink and, more to the point, an inverted
   QR code is one many phone cameras will not read. */
.poster {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #101418;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.poster.a4 {
  aspect-ratio: 1 / 1.414;
}

.poster.a5 {
  aspect-ratio: 1 / 1.414;
  max-width: 380px;
}

.poster.square {
  aspect-ratio: 1 / 1;
  max-width: 420px;
}

.poster-eyebrow {
  color: #55606a;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.poster-name {
  font-family: var(--heading);
  font-size: 1.8rem;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  overflow-wrap: anywhere;
}

.poster-qr {
  background: #ffffff;
  display: block;
  height: auto;
  max-width: 72%;
  width: 320px;
}

.poster-cta {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 1.25rem 0 0.2rem;
}

.poster-url {
  color: #55606a;
  font-size: 0.9rem;
  margin: 0;
  overflow-wrap: anywhere;
}

@media print {
  /* Only the poster reaches the paper. */
  .no-print,
  .site-header,
  .site-footer,
  #controls {
    display: none !important;
  }

  html,
  body {
    background: #ffffff;
    margin: 0;
    padding: 0;
  }

  main,
  .poster-page {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  .poster {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100vh;
    max-width: none;
    page-break-after: avoid;
    width: 100%;
  }

  /* Browsers drop background colours when printing unless asked; the code
     needs its white field to scan. */
  .poster,
  .poster-qr {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* ------------------------------------------------------------ account facts */

.account-facts {
  display: grid;
  gap: 0.15rem 1rem;
  grid-template-columns: auto 1fr;
  margin: 0;
}

.account-facts dt {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* The auth card is a form you read top to bottom, not a dashboard. */
#auth main,
#auth {
  margin: 0 auto;
  max-width: 420px;
}

#auth .footnote a {
  font-weight: 600;
}

/* The NFC panel under a business: a link to copy, and the buttons that write
 * it to a tag. The field is readonly, so it reads as something to copy rather
 * than something to fill in. */
.nfc-panel h3 {
  margin: 0 0 0.35rem;
}

.nfc-url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.2rem;
}

.nfc-url input {
  flex: 1 1 14rem;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.85rem;
  margin: 0;
  min-width: 0;
}

.nfc-url button {
  flex: 0 0 auto;
  width: auto;
}
