/* Card and set pages at /tcg (rendered by the API Worker, src/browse.js).
   Loaded after site.css; mobile first, wider layouts in the media queries.
   The Worker links it as browse.css?v=<BROWSE_CSS_VERSION>; bump that with a change. */

.browse { padding-bottom: 8px; }
.browse h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin: 32px 0 14px; }
.browse a { text-decoration-color: rgba(78, 205, 196, 0.5); text-underline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b-dim { color: var(--dim); font-weight: 400; }

/* ---------- Breadcrumbs ---------- */
.b-crumbs { padding: 12px 0 2px; font-size: 13px; color: var(--muted); }
.b-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.b-crumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.b-crumbs li + li::before { content: '/'; color: var(--dim); }
.b-crumbs a { color: var(--muted); text-decoration: none; }
.b-crumbs a:hover { color: var(--teal); }
.b-crumbs [aria-current] { color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- Page heads ---------- */
.b-hero { padding: 40px 0 28px; }
.b-head { padding: 22px 0 8px; }
.b-head h1 { font-size: clamp(28px, 6vw, 46px); font-weight: 900; line-height: 1.08; letter-spacing: -1px; margin-bottom: 10px; }
.b-head .lede { font-size: 15.5px; }
.b-gamelogo { max-height: 70px; width: auto; margin-bottom: 16px; }
.b-sethead { display: flex; flex-direction: column; gap: 14px; }
.b-setlogo-lg { max-height: 80px; width: auto; max-width: 240px; object-fit: contain; }
.b-msg { padding: 64px 0 24px; text-align: center; }
.b-msg .lede { margin: 0 auto 26px; }
.b-msg .btn { margin-top: 8px; }

/* ---------- /tcg: the games ---------- */
.b-games { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.b-game { text-decoration: none; color: inherit; }
.b-game h2 { margin: 0 0 6px; }

/* ---------- /tcg/<game>: sets by era ---------- */
.b-era { margin-top: 30px; }
.b-era h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.b-era h2 small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.b-sets { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.b-sets a {
  display: grid; grid-template-columns: 88px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s;
}
.b-sets a:hover { border-color: var(--line-strong); background: rgba(78, 205, 196, 0.045); }
.b-setlogo { grid-row: 1 / 3; height: 44px; display: grid; place-items: center; }
.b-setlogo img { max-height: 44px; width: auto; max-width: 88px; object-fit: contain; }
.b-code {
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; color: var(--teal);
  background: rgba(78, 205, 196, 0.09); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 8px;
  max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.b-setname { font-size: 15px; font-weight: 700; line-height: 1.3; align-self: end; }
.b-setmeta { font-size: 12.5px; color: var(--muted); align-self: start; margin-top: 2px; }

/* ---------- Toolbar: sort and currency ---------- */
.b-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.b-sort { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.b-sort a, .b-sort .b-on {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600;
  text-decoration: none; color: var(--body); background: var(--surface);
}
.b-sort a:hover { border-color: var(--line-strong); color: var(--text); }
.b-sort .b-on { color: #04140f; background: var(--grad); border-color: transparent; }
.b-cur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.b-cur select, .b-search select, .b-search input {
  font-family: inherit; font-size: 14px; color: var(--text); background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; min-width: 0;
}
.b-cur select { max-width: min(210px, 60vw); }
.b-cur select:focus, .b-search select:focus, .b-search input:focus { border-color: var(--teal); }
.b-cur option, .b-search option { background: var(--bg-2); color: var(--text); }
.b-cur .btn { padding: 8px 14px; font-size: 13px; }
.b-note { font-size: 12.5px; color: var(--dim); line-height: 1.6; margin: 8px 0 14px; }

/* ---------- Card grids ---------- */
.b-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.b-tile a {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 8px 8px 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.b-tile a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.b-img { width: 100%; height: auto; aspect-ratio: 250 / 349; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, 0.03); margin-bottom: 6px; }
.b-noimg {
  display: grid; place-items: center; padding: 14px; text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.14); color: var(--muted); font-size: 12.5px; line-height: 1.45;
}
.b-tname { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.b-tset, .b-tmeta { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.b-tprice { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 800; color: var(--green); }
.b-tprice .b-dim { font-size: 12.5px; }
.b-empty { margin: 26px 0; color: var(--muted); }

.b-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 8px; font-size: 14px; color: var(--muted); }
.b-pager a {
  padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight: 600; text-decoration: none;
}
.b-pager a:hover { border-color: var(--line-strong); }

/* ---------- Card page ---------- */
.b-card { display: grid; grid-template-columns: 1fr; gap: 22px; padding-top: 14px; }
/* Grid items default to min-width: auto, so a wide table would widen the page instead of scrolling. */
.b-card > * { min-width: 0; }
.b-cardimg { max-width: 320px; width: 100%; margin: 0 auto; }
.b-cardimg .b-img { border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); margin: 0; }
.b-cardinfo h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 900; line-height: 1.08; letter-spacing: -1px; margin-bottom: 14px; }
.b-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin-bottom: 20px; }
.b-facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.b-facts dd { font-size: 15px; color: var(--body); }
.b-facts a { color: var(--teal); }

.b-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.b-noprice p { color: var(--body); line-height: 1.6; }
.b-noprice p + p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.b-pricehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.b-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.b-big {
  display: block; font-size: clamp(34px, 8vw, 46px); font-weight: 900; letter-spacing: -1.2px; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.b-chgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.b-chg {
  font-size: 13px; color: var(--muted); padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.b-chg b { color: var(--body); }
.b-chg.up b { color: var(--green); }
.b-chg.down b { color: #ff7b7b; }
.b-fig { margin: 12px 0 4px; }
.b-chart { display: block; width: 100%; height: 200px; }
.b-fig figcaption { font-size: 12px; color: var(--dim); margin-top: 4px; }
.b-table .table { min-width: 0; }
.b-table .table td:not(:first-child) { font-weight: 600; color: var(--text); white-space: nowrap; }
/* The held first column: row headers, readable at a phone's width without taking it all. */
.b-table .table tbody th { font-weight: 600; font-size: 13.5px; color: var(--body); }
.b-table .table th:first-child, .b-table .table td:first-child { min-width: 104px; max-width: 168px; white-space: normal; overflow-wrap: anywhere; }
.b-narrow { max-width: 560px; }

/* ---------- Card page: the app's sections ---------- */
.b-native { font-size: 15px; color: var(--muted); margin: -8px 0 8px; }
.b-setline { display: inline-block; font-size: 15px; color: var(--teal); margin-bottom: 4px; }
.b-ident { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.b-logo { display: inline-block; width: auto; height: 20px; vertical-align: -4px; margin-right: 8px; border-radius: 4px; }
.b-srclogo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }
.b-pq {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 800;
  color: var(--body); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.b-sec { margin-top: 30px; }
.b-sechead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.browse .b-sechead h2 { margin: 0; display: flex; align-items: center; }
.b-switch { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.b-sechead .b-switch { margin-bottom: 0; }
.b-switch a, .b-switch .b-on {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); color: var(--body); text-decoration: none; background: var(--surface);
}
.b-switch .b-logo { height: 14px; margin-right: 6px; vertical-align: 0; }
.b-switch a:hover { border-color: var(--line-strong); color: var(--text); }
.b-switch .b-on { color: var(--teal); border-color: var(--teal); background: rgba(78, 205, 196, 0.12); font-weight: 700; }
/* A tint, never a background: the held column must stay opaque (site.css Tables). */
.b-table tr.b-active > * { --tint: rgba(78, 205, 196, 0.07); }
.b-table td.b-cell-on, .b-table td.b-cell-on a { color: var(--teal); }
.b-table td.b-cell-on { --tint: rgba(78, 205, 196, 0.12); }
.b-table abbr { text-decoration: none; }
.b-asof { font-size: 11px; line-height: 1; white-space: nowrap; }
.b-range { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.b-range span, .b-range a {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line); color: var(--muted);
}
.b-range .b-on { color: #04140f; background: var(--grad); border-color: transparent; }
.b-range a:hover { color: var(--text); border-color: var(--line-strong); }
.b-co { display: inline-flex; align-items: center; gap: 6px; color: var(--co, var(--body)); font-weight: 800; }
.b-colog { height: 16px; width: auto; border-radius: 3px; background: #fff; padding: 1px; }
.b-graded .table th:not(:first-child), .b-graded .table td:not(:first-child) { text-align: right; }
.b-graded .table td a { color: var(--text); text-decoration: none; }
.b-graded .table td a:hover { color: var(--teal); text-decoration: underline; }
.b-sales { margin-top: 6px; }

/* ---------- Card page: info, charts, versions, eBay ---------- */
.b-edition {
  display: inline-block; margin: 0 0 6px 10px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700;
  color: var(--teal); border: 1px solid var(--line-strong); background: rgba(78, 205, 196, 0.08); vertical-align: 2px;
}
.b-zoom { display: block; border-radius: 14px; }
.b-zoom:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.b-share { padding: 8px 14px; font-size: 13px; }
.b-facts { margin: 6px 0 0; }
.b-facts > div { min-width: 0; }
.b-facts dd { overflow-wrap: anywhere; }
.b-inline { color: var(--teal); white-space: nowrap; }
.b-subhead { font-size: 15px; font-weight: 800; margin: 18px 0 10px; color: var(--text); }
.b-subhead small { font-size: 12px; font-weight: 500; }
.b-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.b-pills a, .b-pills .b-on {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--body); background: var(--surface);
}
.b-pills a:hover { border-color: var(--line-strong); color: var(--text); }
.b-pills .b-on { color: var(--co, var(--teal)); border-color: var(--co, var(--teal)); background: rgba(255, 255, 255, 0.06); font-weight: 800; }
.b-range .b-pro { color: var(--dim); }
.b-info { margin: 10px 0 4px; font-size: 13.5px; color: var(--muted); }
.b-info summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.b-info p { margin: 8px 0 0; line-height: 1.6; }
.b-gradeit a { color: var(--teal); }

/* A row of small cards that scrolls sideways on a phone. */
.b-vlist, .b-eblist {
  list-style: none; display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.b-vlist li, .b-eblist li { flex: 0 0 auto; scroll-snap-align: start; }
.b-vlist li { width: 132px; }
.b-eblist li { width: 196px; }
.b-vlist a, .b-vlist .b-vtile, .b-eblist a {
  display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit;
}
.b-vlist a:hover, .b-eblist a:hover { border-color: var(--line-strong); }
.b-vlist .b-von { border: 2px solid var(--teal); padding: 7px; background: rgba(78, 205, 196, 0.08); }
/* Past the first few: "All N" opens the rest in place, as a wrapping grid. */
.b-vgroup:not(:target):not(.b-vopen) .b-vmore { display: none; }
.b-vgroup:target .b-vall, .b-vgroup.b-vopen .b-vall { display: none; }
.b-vgroup:target .b-vlist, .b-vgroup.b-vopen .b-vlist { flex-wrap: wrap; overflow-x: visible; }
.b-vlist .b-vall a { align-items: center; justify-content: center; min-height: 160px; font-size: 15px; font-weight: 800; color: var(--teal); }
.b-vname { font-size: 12px; font-weight: 700; line-height: 1.3; }
.b-vmeta { font-size: 11px; color: var(--muted); }
.b-vprice { margin-top: auto; font-size: 13px; font-weight: 800; color: var(--green); }
.b-eblist img, .b-ebnoimg { width: 100%; height: 132px; object-fit: contain; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.b-ebnoimg { display: block; }
.b-ebtitle { font-size: 12px; line-height: 1.3; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-ebcond { font-size: 11px; color: var(--dim); }
.b-ebprice { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 800; color: var(--teal); }
.b-eblinks { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.b-eblinks .btn { padding: 10px 16px; font-size: 14px; }
.b-apponly { margin-top: 34px; }
.browse .b-apponly h2 { margin: 0 0 10px; font-size: 18px; }
.b-apponly ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 14px; line-height: 1.7; }
.b-apponly a, .b-report a { color: var(--teal); }
.b-report { margin-top: 18px; }
.b-setpanel { margin: 14px 0 4px; }
.b-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.b-value b { font-size: 26px; font-weight: 900; color: var(--teal); }
.b-setpanel .b-note { margin: 8px 0 0; }

/* ---------- Search ---------- */
.b-search { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 26px 0 8px; max-width: 720px; }
.b-search input, .b-search select { padding: 12px 14px; font-size: 15px; width: 100%; }
.b-search .btn { width: 100%; }

/* ---------- App call to action ---------- */
.b-cta {
  margin-top: 48px; text-align: center; padding: 40px 18px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(78, 205, 196, 0.14), transparent 70%), var(--bg-2);
}
.browse .b-cta h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin: 0 0 10px; }
.b-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; line-height: 1.6; }

@media (min-width: 560px) {
  .b-grid { grid-template-columns: repeat(3, 1fr); }
  .b-sets { grid-template-columns: repeat(2, 1fr); }
  .b-search { grid-template-columns: 1fr auto auto; }
  .b-search .btn { width: auto; }
  .b-search select { width: auto; }
  .b-sethead { flex-direction: row; align-items: center; gap: 22px; }
  .b-panel { padding: 22px 24px; }
}

@media (min-width: 900px) {
  .b-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
  .b-sets { grid-template-columns: repeat(3, 1fr); }
  .b-facts { grid-template-columns: repeat(4, auto); justify-content: start; }
  .b-cta { padding: 56px 24px; }
}

/* ---------- Card page: the first screen ----------
   The name across the top, then the image beside one panel that starts and
   ends on the image's lines: the prices along its top, each opening its
   source, and the chart under them, its drawing taking whatever height the
   switches leave. A phone sets the prices beside the image (the panel's box
   gives way, .b-side) and the chart under both. Everything else scrolls. */
.browse [hidden] { display: none !important; }
.b-top {
  display: grid; gap: 10px 14px; padding-top: 6px; align-items: stretch;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-areas: "head head" "img prices" "chart chart";
}
.b-top .b-cardimg { grid-area: img; max-width: none; margin: 0; align-self: start; }
.b-top .b-cardimg .b-img { border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.b-side { display: contents; }
.b-prices {
  grid-area: prices; display: flex; flex-direction: column; justify-content: space-evenly; gap: 6px;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.b-prices .b-note { margin: 0; }
.b-pl {
  display: grid; grid-template-columns: 22px auto minmax(0, 1fr); grid-template-areas: "logo price go" "logo cap cap";
  align-items: center; column-gap: 8px; min-width: 0; padding: 4px 6px; margin: 0 -6px; border-radius: 10px;
  color: inherit; text-decoration: none;
}
a.b-pl:hover { background: rgba(255, 255, 255, 0.04); }
a.b-pl:hover .b-plgo { color: var(--teal); border-color: var(--teal); }
.b-pl .b-srclogo, .b-pl .b-pq { grid-area: logo; width: 22px; height: 22px; border-radius: 5px; font-size: 9px; }
.b-plprice { grid-area: price; font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--green); white-space: nowrap; }
.b-pl.b-lead .b-plprice { color: var(--teal); }
.b-plprice.b-none { color: var(--dim); }
.b-plcap { grid-area: cap; font-size: 11.5px; color: var(--muted); line-height: 1.3; min-width: 0; }
.b-plgo {
  grid-area: go; justify-self: end; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 11px; font-weight: 700; color: var(--body); white-space: nowrap;
}
.b-cardhead { grid-area: head; }
.b-cardhead h1 { font-size: 21px; font-weight: 900; line-height: 1.15; letter-spacing: -0.4px; margin: 0 0 3px; }
.b-cardhead .b-native { margin: 0 0 2px; font-size: 13px; }
.b-setp { margin: 0; font-size: 13px; line-height: 1.4; }
.b-setp .b-setline { font-size: 13px; margin: 0; }
.b-setp .b-edition { margin: 0 0 0 6px; vertical-align: 1px; }
.b-cardhead .b-ident { font-size: 12px; margin: 2px 0 0; }
.b-chartpanel {
  grid-area: chart; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.b-charthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.browse .b-charthead h2 { margin: 0; font-size: 15px; font-weight: 800; }
.b-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.b-tabs a {
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); color: var(--body); background: var(--surface);
}
.b-tabs a:hover { border-color: var(--line-strong); color: var(--text); }
.b-tabs a.b-on { color: var(--teal); border-color: var(--teal); background: rgba(78, 205, 196, 0.12); font-weight: 700; }
.b-chartpanel .b-pills { gap: 4px; margin-bottom: 4px; }
.b-chartpanel .b-pills a { padding: 3px 10px; font-size: 11.5px; }
.b-chartpanel .b-fig { margin: 2px 0 0; }
.b-chartpanel .b-chartlabel { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0; }
.b-chartpanel .b-chart { height: 170px; }
.b-chartpanel .b-empty { margin: 14px 0; }
.b-chartmeta { font-size: 11px; color: var(--dim); margin: 0; }
.b-chartpanel .b-chgs { margin: 6px 0 2px; gap: 6px; }
.b-chartpanel .b-chg { font-size: 12px; padding: 3px 9px; }
.b-chartpanel .b-range { margin-top: 6px; gap: 4px; }
.b-chartpanel .b-range a { padding: 4px 10px; font-size: 11.5px; }
.b-range a.b-on { color: #04140f; background: var(--grad); border-color: transparent; }
.b-graded .table td a.b-on { color: var(--teal); text-decoration: underline; }
.b-graded .table td:has(> a.b-on) { --tint: rgba(78, 205, 196, 0.12); }
.b-cardmeta { margin-top: 18px; }
.b-cardmeta .b-bar { margin-top: 0; }
/* A phone gets one Pro pill for the longer ranges and no repeat of the page's own name in the trail. */
.b-chartpanel .b-pro-one { display: none; }
@media (max-width: 699px) {
  .b-crumbs li[aria-current] { display: none; }
}
@media (max-width: 379px) {
  .b-chartpanel .b-chart { height: 150px; }
}
@media (min-width: 700px) {
  .b-chartpanel .b-pro-one { display: inline-block; }
  .b-chartpanel .b-pro-all { display: none; }
}

@media (min-width: 700px) {
  .b-top {
    gap: 12px 22px; padding-top: 10px;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas: "head head" "img side";
  }
  .b-cardhead h1 { font-size: 28px; }
  .b-side {
    grid-area: side; display: flex; flex-direction: column; min-width: 0; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  }
  .b-prices {
    flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 20px;
    padding: 0 0 10px; margin-bottom: 10px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .b-pl .b-srclogo, .b-pl .b-pq { width: 24px; height: 24px; }
  .b-plprice { font-size: 17px; }
  .b-pl.b-lead .b-plprice { font-size: 19px; }
  .b-plcap { font-size: 12px; white-space: nowrap; }
  /* The chart fills the image's height: the drawing takes what the prices and switches leave. */
  .b-chartpanel { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; }
  .b-chartpanel .b-fig { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .b-chartpanel .b-chartbox { position: relative; flex: 1 1 auto; min-height: 90px; }
  .b-chartpanel .b-chartbox > .b-chart { position: absolute; inset: 0; height: 100%; }
}

@media (min-width: 1000px) {
  .b-top { gap: 14px 24px; grid-template-columns: 280px minmax(0, 1fr); }
  .b-cardhead h1 { font-size: 32px; }
  /* Wide enough for each price on one line: logo, price, what it prices, the link. */
  .b-pl { grid-template-columns: 24px auto auto auto; grid-template-areas: "logo price cap go"; column-gap: 8px; }
  .b-plprice { font-size: 19px; }
  .b-pl.b-lead .b-plprice { font-size: 22px; }
}

@media (min-width: 1280px) {
  .b-top { grid-template-columns: 300px minmax(0, 1fr); }
}
