/* bestmarketintelligenceapp.com: an analyst's ring binder.
   Pressboard blue cover, a paper sheet, manila index tabs, black bars where a price is withheld. */
@font-face { font-family: "Roboto Slab"; src: url("/fonts/roboto-slab-latin-wght-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --board: #24364b;
  --on-board: #efe9da;
  --on-board-2: #bcc5cf;
  --paper: #faf8f2;
  --paper-2: #f0ede3;
  --manila: #ecd9a4;
  --manila-2: #f6edcf;
  --manila-edge: #c7ae69;
  --ink: #16202b;
  --ink-2: #434e5a;
  --ink-3: #5a6470;
  --line: rgba(22, 32, 43, 0.13);
  --line-2: rgba(22, 32, 43, 0.3);
  --blue: #1d4690;
  --slab: "Roboto Slab", Rockwell, Georgia, serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --text-w: 680px;
}

* { box-sizing: border-box; }
html { background: var(--board); color-scheme: light; -webkit-text-size-adjust: 100%; scrollbar-color: #7888a0 var(--board); }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--board); font-variant-numeric: tabular-nums; caret-color: var(--blue); accent-color: var(--blue); }
::selection { background: var(--manila); color: var(--ink); }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 140ms var(--ease), background-color 140ms var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.cover :focus-visible, .docfoot :focus-visible, .rail :focus-visible { outline-color: var(--manila); }
h1, h2, h3, p, ul, table, fieldset, legend, figure { margin: 0; padding: 0; }
h1, h2 { font-family: var(--slab); font-weight: 500; line-height: 1.16; text-wrap: balance; }
h3 { font-weight: 600; line-height: 1.3; }
ul { list-style: none; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 12px; }
.skip:focus { left: 16px; top: 8px; z-index: 3; }

/* The binder: cover, sheet, footer on the board */
.binder { max-width: 1400px; margin: 0 auto; padding: 0 8px; }
.cover { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.plate { align-self: flex-start; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; outline: 3px solid var(--paper); outline-offset: 0; margin: 3px; }
.sitename { font: 600 18px/1.25 var(--slab); color: var(--ink); text-decoration: none; }
.sitename:hover { color: var(--blue); }
.by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.by:hover { color: var(--ink); }
.by .ulsa-mark { display: block; }
.tabs { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 10px 7px; background: var(--manila); color: var(--ink); border-radius: 7px 7px 0 0; font-size: 13px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.tabs a:hover { background: var(--manila-2); }
.tabs a[aria-current="page"] { background: var(--paper); padding-top: 12px; }

.sheet { min-height: calc(100vh - 190px); position: relative; background: var(--paper); padding: 16px 16px 40px; border-radius: 0 0 2px 2px; box-shadow: 0 10px 28px rgba(8, 14, 22, 0.32); }
.holes { display: none; }

/* Section tabs: a strip on small screens, divider tabs off the sheet edge on wide ones */
.rail ul { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 12px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.rail a { display: block; padding: 6px 10px; background: var(--manila-2); border: 1px solid var(--manila-edge); border-radius: 5px; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; text-decoration: none; }
.rail a:hover { background: var(--manila); }

.docfoot { padding: 20px 8px 40px; font-size: 14px; color: var(--on-board-2); }
.docfoot p + p { margin-top: 4px; }
.docfoot a { color: var(--on-board); }
.docfoot a:hover { color: #fff; }

/* Top of page */
.top { padding: 28px 0 8px; }
h1 { font-size: 30px; letter-spacing: -0.01em; }
.answer { margin-top: 16px; font-size: 18px; line-height: 1.5; max-width: 36em; }
.answer-more { margin-top: 12px; color: var(--ink-2); max-width: var(--text-w); }
.note { margin-top: 20px; padding: 12px 14px; background: var(--manila-2); border: 1px solid var(--manila-edge); border-radius: 4px; font-size: 15px; line-height: 1.5; max-width: var(--text-w); }
.jump { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--ink-2); }
.jump a { font-weight: 600; }
.meta { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* Signature: the price figure */
.prices { margin-top: 32px; border-top: 3px solid var(--ink); padding-top: 12px; }
.prices figcaption { font: 500 19px/1.25 var(--slab); }
.pgroup { margin-top: 14px; }
.pg { display: inline-block; padding: 3px 8px; font-size: 13px; font-weight: 600; line-height: 1.4; border-radius: 3px 3px 0 0; }
.pg-ent { background: var(--board); color: var(--on-board); }
.pg-per { background: var(--manila); color: var(--ink); }
.prices ul { border-top: 1px solid var(--ink); }
.pr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.pr.own { background: var(--manila-2); margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.pn { font-weight: 600; }
.pown { display: block; font-size: 12px; font-weight: 400; color: var(--ink-2); }
.pv { text-align: right; color: var(--ink-2); white-space: nowrap; }
.ptrack { grid-column: 1 / -1; grid-row: 2; height: 10px; background: var(--paper-2); border-left: 1px solid var(--ink); }
.own .ptrack { background: rgba(22, 32, 43, 0.08); }
.pbar { display: block; height: 100%; min-width: 2px; background: var(--blue); transform-origin: 0 50%; }
.pred { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; height: 18px; background: var(--ink); color: var(--paper); }
.pred span { padding: 0 8px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.paxis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.pnote { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-3); max-width: 36rem; }

/* Section openers */
h2 { font-size: 24px; max-width: 26em; }
.lede { margin-top: 8px; color: var(--ink-2); max-width: var(--text-w); }
.split, .vendors, .tail, .rules, .quiz { margin-top: 56px; border-top: 3px solid var(--ink); padding-top: 16px; }
.split h2, .vendors h2, .faq h2, .quiz h2, .rules h2, #notes-h, #lim-h { scroll-margin-top: 20px; }
.top { scroll-margin-top: 20px; }

/* The split: two columns, one centre rule */
.cols { display: none; }
.row { margin-top: 24px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.row h3 { font: 500 18px/1.3 var(--slab); }
.cell { padding: 12px 0 16px; }
.cell + .cell { border-top: 1px solid var(--line); }
.cell p + p { margin-top: 8px; }
.side { display: inline-block; padding: 2px 8px; margin-bottom: 8px; border-radius: 3px; font-weight: 600; font-size: 13px; line-height: 1.5; background: var(--board); color: var(--on-board); }
.cell-per .side { background: var(--manila); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

/* Price tags: a withheld price is a black bar, a printed one is boxed */
.tag { display: inline-block; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 3px; font-size: 14px; line-height: 1.5; font-weight: 600; white-space: nowrap; background: var(--paper); color: var(--ink); }
.tag-sales, .tag-unknown { background: var(--ink); color: var(--paper); }

/* Tables: stacked records on small screens */
.scroll { overflow-x: auto; margin-top: 20px; scrollbar-color: var(--manila-edge) var(--paper-2); scrollbar-width: thin; }
.vt, .rt { width: 100%; border-collapse: collapse; text-align: left; }
.rt { margin-top: 20px; }
.vt thead, .rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.vt tr, .rt tr { display: block; border-top: 1px solid var(--line-2); padding: 16px 0; }
.vt th, .vt td, .rt th, .rt td { display: block; font-weight: 400; vertical-align: top; }
.vt td, .rt td { margin-top: 12px; }
.vt td::before, .rt td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.vname { display: block; font: 500 19px/1.3 var(--slab); }
.vt q { display: block; margin-top: 4px; color: var(--ink-2); }
.sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.nv { color: var(--ink-3); }
.rt th[scope="row"] { font-weight: 600; }
.vendors { scroll-margin-top: 20px; }
.vendors .after { margin-top: 24px; padding: 16px 0 0; border-top: 1px solid var(--line-2); }
.vendors .after h3 { font: 500 18px/1.3 var(--slab); }
.pt .own { background: var(--manila-2); padding-left: 12px; padding-right: 12px; border-top: 3px solid var(--ink); }
.more { margin-top: 12px; font-size: 15px; }
.rt td:first-child { margin-top: 0; }

.picks li + li { margin-top: 8px; }
.picks a { font-weight: 600; }
.picks span { display: block; font-size: 15px; color: var(--ink-2); }

/* Text after the tables */
.after { max-width: var(--text-w); }
.after p, .memo section p, .opinion p { margin-top: 12px; }
.faq { margin-top: 48px; }
.faq h3 { font-size: 17px; margin-top: 24px; }
.faq h3 + p { margin-top: 8px; }
.opinion { margin-top: 48px; padding: 20px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 4px; max-width: var(--text-w); }
.opinion h2 { font-size: 21px; }
.oplabel { display: inline-block; padding: 1px 8px; border: 1px solid var(--ink); border-radius: 3px; font-size: 13px; font-weight: 600; }

/* About and 404 */
.memo section { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line-2); scroll-margin-top: 12px; }
.memo section:first-of-type { border-top: 3px solid var(--ink); }
.memo h2 { font-size: 20px; }
.memo section > div, .memo .top { max-width: var(--text-w); }
.memo .top > p { margin-top: 12px; }

/* Ulsa block: a manila card */
.ulsa { margin-top: 56px; padding: 20px; background: var(--manila-2); border: 1px solid var(--manila-edge); border-radius: 4px; scroll-margin-top: 16px; }
.ulsa h2 { font-size: 22px; }
.ulsa p { margin-top: 12px; max-width: var(--text-w); }
.ulsa ul { margin-top: 16px; font-size: 15px; border-bottom: 1px solid var(--manila-edge); }
.ulsa li { padding: 8px 0; border-top: 1px solid var(--manila-edge); }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--board); color: var(--on-board); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--ink); color: #fff; }

/* Questionnaire */
fieldset { border: 0; border-top: 1px solid var(--line-2); padding: 16px 0 20px; min-width: 0; }
#quiz { margin-top: 20px; }
legend { float: left; width: 100%; font-weight: 600; font-size: 17px; line-height: 1.4; }
.help { clear: both; padding-top: 4px; font-size: 15px; color: var(--ink-2); }
.yn { display: flex; gap: 8px; margin-top: 12px; }
.yn label { display: inline-flex; align-items: center; gap: 8px; min-width: 96px; min-height: 44px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); cursor: pointer; transition: border-color 140ms var(--ease), background-color 140ms var(--ease); }
.yn label:hover { border-color: var(--ink); }
.yn label:has(input:checked) { border-color: var(--ink); background: var(--manila); font-weight: 600; }
.yn label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.yn input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.formend { border-top: 1px solid var(--line-2); padding-top: 16px; }
button[type="reset"] { font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 12px; min-height: 40px; cursor: pointer; transition: border-color 140ms var(--ease); }
button[type="reset"]:hover { border-color: var(--ink); }
.result { margin-top: 24px; padding: 20px; background: var(--manila-2); border: 1px solid var(--manila-edge); border-radius: 4px; }
.result h2 { font: 600 13px/1.4 var(--sans); color: var(--ink-2); }
.result h3 { margin-top: 4px; font: 500 22px/1.25 var(--slab); }
.result p { margin-top: 12px; }
.result .picks { margin-top: 16px; border-top: 1px solid var(--manila-edge); padding-top: 16px; }
.result .small { font-size: 14px; color: var(--ink-2); }
.again { margin-top: 56px; border-top: 3px solid var(--ink); padding-top: 16px; scroll-margin-top: 20px; }

@media (min-width: 760px) {
  .binder { padding: 0 24px; }
  .cover { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 20px; }
  .plate { margin-bottom: 14px; padding: 10px 16px; }
  .sitename { font-size: 20px; }
  .tabs a { padding: 10px 16px 8px; font-size: 14px; }
  .tabs a[aria-current="page"] { padding-top: 14px; }
  .sheet { padding: 20px 40px 56px; }
  .rail ul { margin: 0 -40px; padding: 0 40px 12px; }
  .docfoot { padding-left: 40px; }
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .answer { font-size: 20px; }
  .top { padding-top: 36px; }

  .pr { grid-template-columns: 132px minmax(0, 1fr) 146px; padding: 5px 0; min-height: 30px; }
  .ptrack, .pred { grid-row: auto; }
  .ptrack { grid-column: 2; }
  .pred { grid-column: 2 / -1; }
  .paxis { margin: 4px 158px 0 144px; }

  .cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; position: sticky; top: 0; z-index: 1; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .cols p { padding: 10px 16px; font: 500 18px/1.3 var(--slab); }
  .cols p:first-child { background: var(--board); color: var(--on-board); }
  .cols p + p { padding-left: 32px; background: var(--manila); }
  .row { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; margin-top: 0; padding-top: 0; border-top: 0; border-bottom: 1px solid var(--line); position: relative; }
  .row h3 { grid-column: 1; grid-row: 1; padding: 20px 0 0 16px; font-size: 17px; }
  .pair { display: contents; }
  .cell-ent { grid-column: 1; grid-row: 2; padding: 8px 32px 24px 16px; }
  .cell.cell-per { grid-column: 2; grid-row: 1 / span 2; border-top: 0; border-left: 1px solid var(--line-2); padding: 50px 16px 24px 32px; }
  .side { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  .rt thead { position: static; width: auto; height: auto; clip-path: none; }
  .rt { display: table; }
  .rt tr { display: table-row; padding: 0; }
  .rt th, .rt td { display: table-cell; padding: 16px 24px 16px 12px; margin: 0; border-top: 1px solid var(--line); }
  .rt thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); padding-top: 8px; padding-bottom: 8px; }
  .rt td::before { content: none; }
  .rt td:first-child, .rt tbody th:first-child { width: 30%; }
  .rt.two tbody th:first-child { width: 42%; font-weight: 400; }

  .ulsa { padding: 28px 32px; }
}

@media (min-width: 1000px) {
  .vt thead { position: static; width: auto; height: auto; clip-path: none; }
  .vt tr { display: table-row; padding: 0; }
  .vt th, .vt td { display: table-cell; padding: 14px 20px 14px 0; margin: 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
  .vt thead th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); padding-top: 8px; padding-bottom: 8px; }
  .vt td::before { content: none; }
  .vt th:first-child { padding-left: 12px; }
  .vt th:last-child, .vt td:last-child { padding-right: 12px; }
  .vt tbody th { width: 22%; }
  .vt td:nth-child(2) { width: 17%; }
  .vt td:nth-child(3) { width: 24%; }
  .vt td:nth-child(4) { width: 12%; }
  .vt td:nth-child(5) { width: 13%; }
  .vname { font-size: 17px; }
  .vt q, .sub { font-size: 14px; }

  /* Personal tracker table, turned on its side: attributes down, products across */
  .vt.pt { display: grid; grid-auto-flow: column; grid-template-rows: repeat(11, auto); grid-template-columns: 136px minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); }
  .vt.pt thead, .vt.pt tbody, .vt.pt tr { display: contents; }
  .vt.pt th, .vt.pt td { display: block; width: auto; padding: 12px 16px 12px 12px; border-top: 0; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
  .vt.pt thead th { background: var(--paper-2); border-top: 0; border-bottom: 1px solid var(--line); padding-left: 12px; }
  .vt.pt thead th:first-child, .vt.pt tbody th { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); background: var(--paper-2); padding-left: 12px; }
  .vt.pt .own > th, .vt.pt .own > td { background: var(--manila-2); }
  .vt.pt .own > th { background: var(--manila); border-top-width: 5px; margin-top: -3px; }
  .vt.pt q { display: inline; margin: 0; color: var(--ink); font-size: 15px; }

  .ulsa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 56px; align-items: start; }
  .ulsa > * { grid-column: 1; }
  .ulsa > ul { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
  .ulsa > p:last-child { grid-column: 2; grid-row: 3; }

  .memo section { display: grid; grid-template-columns: 240px minmax(0, var(--text-w)); column-gap: 40px; }
  .memo section > div > p:first-child { margin-top: 2px; }
}

@media (min-width: 1100px) {
  .sheet { padding: 24px 56px 72px 88px; }
  .rail ul { margin: 0 -56px 0 -88px; padding: 0 56px 12px 88px; }
  .docfoot { padding-left: 88px; }
  .holes { display: block; }
  .holes i { position: absolute; left: 30px; width: 22px; height: 22px; border-radius: 50%; background: var(--board); box-shadow: inset 0 2px 3px rgba(4, 8, 14, 0.5); }
  .holes i:nth-child(1) { top: 110px; }
  .holes i:nth-child(2) { top: 470px; }
  .holes i:nth-child(3) { top: 830px; }

  h1 { font-size: 44px; line-height: 1.1; }
  .split-top h1 { grid-column: 1 / -1; max-width: 22em; margin-bottom: 12px; }
  .split-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 56px; align-items: start; }
  .prices { margin-top: 20px; }
  .tail { display: grid; grid-template-columns: minmax(0, var(--text-w)) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  .opinion { margin-top: 8px; position: sticky; top: 24px; }
  .quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 56px; align-items: start; }
  .result { position: sticky; top: 24px; margin-top: 20px; }
}

/* Divider tabs leave the sheet edge once there is board to hold them */
@media (min-width: 1280px) {
  .has-rail { padding-right: 172px; }
  .rail { position: absolute; left: 100%; top: 0; bottom: 0; width: 160px; }
  .rail ul { position: sticky; top: 16px; display: block; margin: 0; padding: 40px 0 0; border: 0; overflow: visible; }
  .rail li + li { margin-top: 4px; }
  .rail a { width: 140px; padding: 9px 12px; background: var(--manila); border: 0; border-radius: 0 7px 7px 0; white-space: normal; transition: width 160ms var(--ease), background-color 140ms var(--ease); }
  .rail a:hover { background: var(--manila-2); }
  .rail a.on { width: 156px; background: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
