/* The new look's public pages (Bloom ticket 12): For people, FAQ, the
   directory, a business's page and its 404, and Connect your agent app.
   On top of /bloom/style.css, whose colours, type, buttons, cards, tabs,
   tiles and rows they use. No script, no inline style.

   1. Shell: header, page, footer
   2. Shared: the tell-your-agent line (.tell: Home's .say is another
      thing), chips, numbered steps
   3. For people
   4. FAQ
   5. Directory
   6. A business, and one we don't list
   7. Connect your agent app
   8. Phone */

/* 1. Shell -------------------------------------------------------------- */

.site { display: flex; flex-direction: column; min-height: 100vh; }
.pub-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding: 18px 40px;
          border-bottom: 1px solid var(--line); background: var(--surface); }
.pub-hd .brand { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.pub-hd nav { display: flex; flex-wrap: wrap; gap: 22px; }
.pub-hd nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.pub-hd nav a[aria-current] { font-weight: 600; color: var(--ink); }
.pub-hd .right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.quiet-link { font-size: 14px; color: var(--muted); text-decoration: none; }

main.pub { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 1040px; margin: 0 auto;
           padding: 48px 24px 64px; }
main.pub.mid { max-width: 880px; }
main.pub.narrow { max-width: 820px; }
main.pub h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
main.pub .lead { font-size: 16px; }

.pub-ft { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; margin-top: auto; padding: 24px 40px;
          border-top: 1px solid var(--line); }
.pub-ft .links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.pub-ft .agents { margin-left: auto; }
.pub-ft a, .pub-ft span { font-size: 13px; color: var(--muted); text-decoration: none; }
.pub-ft a:hover { color: var(--ink); }

/* 2. Shared ------------------------------------------------------------- */

.tell { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--line);
       border-radius: 16px; background: var(--surface); }
.tell .label { white-space: nowrap; }
.tell code { flex: 1; min-width: 0; font: 500 15px/1.5 var(--font); color: var(--ink); overflow-wrap: anywhere; }
.chip.soft { background: var(--soft); color: var(--accent); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.plain { border: 1px solid var(--line); color: var(--muted); }
.n { --c: var(--c0); display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px;
     border-radius: 10px; background: color-mix(in srgb, var(--c) var(--tint), transparent); color: var(--c); font-weight: 800; }
.n.c1 { --c: var(--c1); } .n.c2 { --c: var(--c2); } .n.c3 { --c: var(--c3); }
.acts { flex-wrap: wrap; gap: 10px; }

/* 3. For people --------------------------------------------------------- */

.hero { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 720px; }
main.pub .hero h1 { font-size: 52px; }
.hero .lead { max-width: 640px; font-size: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps .card { gap: 10px; padding: 22px; }
.split { display: flex; align-items: baseline; gap: 8px; }
.split h2 { font-size: 20px; }
.split .more { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.biz-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.biz-grid a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px;
              background: var(--surface); color: var(--ink); text-decoration: none; }
.biz-grid .tile { width: 36px; height: 36px; font-size: 15px; }
.biz-grid .c { display: flex; flex-direction: column; min-width: 0; }
.biz-grid b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-grid .d { font-size: 12px; }

/* 4. FAQ ---------------------------------------------------------------- */

.faq { gap: 8px; }
.faq h2 { display: flex; align-items: center; gap: 10px; }
.faq details { width: 100%; border-top: 1px solid var(--line); }
.faq h2 + details { margin-top: 8px; }
.faq summary { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 16px; font-weight: 600; cursor: pointer;
               list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 500; }
.faq details[open] summary { padding-bottom: 8px; }
.faq details[open] summary::after { content: "\2212"; }
.card.faq p { padding-bottom: 18px; font-size: 15px; }

/* 5. Directory ---------------------------------------------------------- */

.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
                background: var(--surface); color: var(--ink); font: 400 15px/1 var(--font); }
.search .btn { min-height: 48px; }
.tabs { flex-wrap: wrap; }
.card.list { align-items: stretch; gap: 0; padding: 8px 24px; }
.list .rows li:first-child { border-top: 0; }
.list .rows .d { font-size: 13px; }
.list .none { padding: 24px 0; }

/* 6. A business --------------------------------------------------------- */

.back { align-self: flex-start; font-size: 14px; color: var(--muted); text-decoration: none; }
.biz-head { display: flex; align-items: center; gap: 18px; }
.tile.big { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.who-is { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
main.pub .who-is h1 { font-size: 36px; overflow-wrap: anywhere; }
.who-is p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.about { max-width: 720px; font-size: 16px; color: var(--muted); }
.biz-grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.biz-grid2 .card.roomy { gap: 14px; }
.listing hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.listing h2 { font-size: 16px; }
.listing a { font-size: 14px; font-weight: 600; text-decoration: none; }
.empty .glyph.ask { background: var(--soft); color: var(--accent); }
main.pub .empty h1 { font-size: 22px; }
.empty p { max-width: 440px; font-size: 15px; }
.empty .acts { justify-content: center; }

/* 7. Connect your agent app --------------------------------------------- */

.tabs.apps a { gap: 8px; }
.tabs.apps .tile { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; }
.tabs.apps a[aria-current] .tile { background: var(--bg); }
.does { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.does li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line);
           border-radius: 999px; font-size: 13px; font-weight: 600; }
.does .n { width: 24px; height: 24px; border-radius: 999px; font-size: 12px; }
.setup .label { margin-top: 4px; }
.message { width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink);
           font: 13px/1.6 var(--mono); resize: vertical; }
.manual { gap: 10px; }
.manual h2 { margin-bottom: 4px; }
.manual h3 { margin: 14px 0 0; font-size: 16px; }
.card.manual p { font-size: 14px; }
.manual .say { display: block; flex: none; gap: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: 13px/1.6 var(--mono); }
.manual p code:not(.say) { font: 13px var(--mono); }
.next { font-size: 14px; color: var(--muted); }

/* 8. Phone -------------------------------------------------------------- */

@media (max-width: 720px) {
  .pub-hd { gap: 10px 16px; padding: 14px 20px; }
  .pub-hd nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; gap: 18px; overflow-x: auto; }
  .pub-hd nav a { white-space: nowrap; }
  .pub-hd .quiet-link { display: none; }
  main.pub { gap: 20px; padding: 28px 20px 48px; }
  main.pub h1, main.pub .hero h1 { font-size: 32px; }
  main.pub .who-is h1 { font-size: 28px; }
  .hero .lead { font-size: 16px; }
  .steps, .biz-grid2 { grid-template-columns: minmax(0, 1fr); }
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tell { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tabs { flex-wrap: nowrap; }
  .list .chip.plain { display: none; }
  .tile.big { width: 52px; height: 52px; font-size: 22px; }
  .pub-ft { padding: 20px; }
  .pub-ft .agents { margin-left: 0; }
}
