/* The rebuilt paste pages (src/fp/rb/look/): /look, its errors, the not-in page, /about, the 404, and the server-error
   page. Over assets/rb.css; every rule is under .rb-look. STEP3-LOOK-PLAN.md: cards as Home's (one hairline, 12px, no
   shadow), the price in the dot face, the chart's line grey end to end, one primary per page, errors never red, About
   a reading column. Owned by the paste pages' rebuild chat. */
.rb-look main { padding-top: 12px; }
/* a control reached by Tab is scrolled clear of the fixed dock */
html:has(.rb-look) { scroll-padding-bottom: 120px; }
.rb-look h1 { margin: 0; font: 700 1.375rem/1.2 var(--head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.rb-look h2, .rb-look h3 { margin: 0; }
.rb-look p { margin: 0; }
.rb-look ol, .rb-look ul { margin: 0; padding: 0; list-style: none; }
/* a 44px target for every button and standalone link on these pages */
.rb-look .rb-btn { min-height: 44px; text-align: center; }
.rb-look main .rb-link { display: inline-flex; align-items: center; min-height: 44px; }

.rb-lk-cols { display: grid; gap: 20px; min-width: 0; }
.rb-lk-cols > * { min-width: 0; }
.rb-lk-main { display: grid; gap: 14px; align-content: start; }

/* the market's name */
.rb-lk-title { display: flex; gap: 12px; align-items: flex-start; }
.rb-lk-title .rb-pic { width: 40px; height: 40px; border-radius: 10px; margin-top: 2px; }
.rb-lk-title > div { min-width: 0; display: grid; gap: 4px; }
.rb-lk-oc { font-size: .875rem; color: var(--muted); }
.rb-lk-oc b { color: var(--fg); font-weight: 600; }

/* cards and panels */
.rb-lk-card, .rb-lk-panel, .rb-lk-err, .rb-lk-msg, .rb-lk-paste { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.rb-lk-label { font: 700 .625rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rb-lk-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 14px; }
.rb-lk-price b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; white-space: pre-wrap; }
.rb-lk-side { font: 700 1.375rem/1.15 var(--head); letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.rb-lk-price .px { font-size: 2rem; }
.rb-look main .rb-lk-foot .rb-link { display: flex; width: fit-content; }
.rb-lk-price > span { font-size: .875rem; color: var(--muted); }
.rb-lk-chart { height: 150px; margin-top: 14px; }
.rb-lk-chart .rbc-line { stroke: var(--muted); }
.rb-lk-axis { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; margin-top: 8px; font-size: .71875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.rb-lk-panel, .rb-lk-err, .rb-lk-msg { display: grid; gap: 10px; justify-items: start; }
.rb-lk-pt { font: 700 1.0625rem/1.25 var(--head); letter-spacing: -.01em; }
.rb-lk-pb { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.rb-lk-act { width: 100%; }
.rb-lk-act .rb-btn { width: 100%; white-space: normal; padding: 8px 14px; line-height: 1.25; }
.rb-lk-act .rb-btn[aria-busy="true"] { opacity: .6; }
.rb-lk-help, .rb-lk-fine { font-size: .78125rem; line-height: 1.45; color: var(--muted); }
.rb-lk-fine a, .rb-lk-legal a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.rb-lk-fine a:hover, .rb-lk-legal a:hover { color: var(--fg); }
.rb-lk-answer { width: 100%; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.rb-lk-swap { justify-content: flex-start; text-align: left; }
.rb-lk-swap span { font-weight: 400; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.rb-lk-foot { font-size: .8125rem; color: var(--muted); line-height: 1.5; }

/* an error: the mark is faint, never red */
.rb-lk-err h1 { display: flex; gap: 10px; align-items: flex-start; font-size: 1.1875rem; }
.rb-lk-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--faint); color: var(--muted); display: grid; place-items: center; font: 700 .8125rem/1 var(--body); margin-top: 1px; }

/* the paste box */
.rb-lk-paste { display: grid; gap: 10px; align-content: start; }
.rb-lk-cap { font: 600 .875rem/1.3 var(--body); }
.rb-lk-field { display: flex; gap: 8px; align-items: center; min-width: 0; }
.rb-lk-field svg { position: absolute; margin-left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.rb-lk-field input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surf2); color: var(--fg); font: 400 1rem var(--body); }
.rb-lk-field input::placeholder { color: var(--muted); }
.rb-lk-field .rb-btn { flex: none; }
.rb-lk-field { position: relative; }

/* the markets Sweat follows */
.rb-lk-list { display: grid; gap: 4px; }
.rb-lk-list .rb-hd { justify-content: space-between; }
.rb-lk-list .rb-hd > span { font-variant-numeric: tabular-nums; }
.rb-lk-row { display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.rb-lk-row .rb-pic { width: 36px; height: 36px; }
.rb-lk-nm { flex: 1 1 120px; min-width: 0; display: grid; gap: 2px; }
.rb-lk-nm b { font-weight: 600; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.rb-lk-nm small { font-size: .78125rem; color: var(--muted); }
.rb-lk-chev { flex: none; color: var(--faint); font-size: 1.125rem; }
.rb-lk-row:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* KHA-138: a pasted event's outcomes, each with both sides to pick from */
.rb-lk-choose { border-top: 1px solid var(--line); }
.rb-lk-pick { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.rb-lk-chips { flex: none; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.rb-lk-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 74px; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surf); color: var(--muted); font: 500 .9375rem/1 var(--body); }
.rb-lk-chip .px { color: var(--fg); font-size: 1rem; }
.rb-lk-chip:hover { border-color: var(--faint); color: var(--fg); }
.rb-lk-pick-done .rb-lk-nm b { color: var(--muted); }
/* KHA-147: the first five outcomes, "Show all N" for the rest, and a search for a long list */
.rb-lk-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 10px 0; font: 600 .9375rem/1.25 var(--body); color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.rb-lk-more > summary::-webkit-details-marker { display: none; }
.rb-lk-more > summary:hover { text-decoration-color: var(--fg); }
.rb-lk-more .rb-lk-more-less, .rb-lk-more[open] .rb-lk-more-n { display: none; }
.rb-lk-more[open] .rb-lk-more-less { display: inline; }
.rb-lk-more[data-searching] > summary { display: none; }
.rb-lk-find { display: grid; gap: 8px; }
.rb-lk-find[hidden], .rb-lk-find [hidden], .rb-lk-pick[hidden] { display: none; }
.rb-lk-find input { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surf2); color: var(--fg); font: 400 1rem var(--body); }
.rb-lk-find input::placeholder { color: var(--muted); }
:where(.rb-look) summary:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }

/* the 404 and the server error */
.rb-lk-lost { margin: 8vh auto 0; max-width: 520px; padding: 24px 20px; }
/* the 404 as board 11 `eD` draws it: no box, everything centred, the numeral large in the dot face and quiet */
.rb-lk-msg.rb-lk-lost { background: none; border: 0; justify-items: center; text-align: center; gap: 14px; }
.rb-lk-404 { font-size: 4.5rem; letter-spacing: .04em; color: var(--surf2); }
.rb-lk-lost h1 { font-size: 1.625rem; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.rb-lk-lost .rb-lk-acts { justify-content: center; }
.rb-lk-acts { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: 4px; }

/* /about: a reading column */
.rb-lk-about { max-width: 600px; margin: 0 auto; display: grid; gap: 18px; padding: 8px 0 24px; }
.rb-lk-about h1 { font-size: 1.75rem; }
.rb-lk-lede { font-size: 1.0625rem; line-height: 1.55; }
.rb-lk-about section { display: grid; gap: 6px; }
.rb-lk-about h2 { font: 700 1.0625rem/1.3 var(--head); letter-spacing: -.01em; }
.rb-lk-about section p, .rb-lk-about li { font-size: 1rem; line-height: 1.6; color: #cfc9c2; }
.rb-lk-about ul { display: grid; gap: 8px; }
.rb-lk-about li b { color: var(--fg); font-weight: 600; }
.rb-lk-legal { font-size: .8125rem; color: var(--muted); }
.rb-lk-legal a { display: inline-flex; align-items: center; min-height: 44px; }

:where(.rb-look) a:focus-visible, :where(.rb-look) button:focus-visible, :where(.rb-look) input:focus-visible { outline: 2px solid var(--sig); outline-offset: 2px; }

@media (min-width: 900px) {
  .rb-look main { padding-top: 20px; }
  .rb-look h1 { font-size: 1.75rem; }
  .rb-lk-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 40px; align-items: start; max-width: 1040px; margin: 0 auto; }
  .rb-lk-main { grid-column: 1; }
  .rb-lk-aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 20px; }
  .rb-lk-after { grid-column: 1; }
  .rb-lk-price .px { font-size: 2.75rem; }
  .rb-lk-side { font-size: 1.75rem; }
  .rb-lk-chart { height: 200px; }
  .rb-lk-act .rb-btn { width: auto; min-width: 240px; }
  .rb-lk-err h1 { font-size: 1.375rem; }
  .rb-lk-lost { margin-top: 12vh; padding: 32px; }
  .rb-lk-404 { font-size: 6rem; }
  .rb-lk-lost h1 { font-size: 2rem; }
}
