/* MyQuotaBag Data: public data pages.
   Quiet on purpose: these pages are read by busy humans and by crawlers.
   No gold glow here; it stays reserved for buttons and iPhone mockups.
   Colors come from the site tokens, so the cream theme applies with no
   redefinition. */

.mqbd-breadcrumb {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 20px 0;
  font-size: 0.9rem;
}
.mqbd-breadcrumb a { color: var(--color-gold); text-decoration: none; }
.mqbd-breadcrumb a:hover { text-decoration: underline; }

.mqbd-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 8px;
}
.mqbd-breadcrumb + .mqbd-header { padding-top: 12px; }
.mqbd-header:first-child { padding-top: 96px; }

.mqbd-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 12px;
}

.mqbd-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.12;
  color: var(--color-text-primary);
  margin: 0 0 20px;
  text-wrap: balance;
}

.mqbd-answer {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--color-text-primary);
  margin: 0 0 16px;
}

.mqbd-status,
.mqbd-meta {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
}

.mqbd-affiliation {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  border-left: 2px solid var(--color-gold);
  padding-left: 14px;
  margin: 20px 0 0;
}

.mqbd-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 0;
}
.mqbd-section:last-of-type { padding-bottom: 72px; }

.mqbd-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin: 0 0 16px;
}

.mqbd-section p { line-height: 1.65; color: var(--color-text-secondary); margin: 0 0 14px; }
.mqbd-section p strong { color: var(--color-text-primary); }
.mqbd-lead { font-size: 1rem; }

/* "This figure is reported, not measured" is the most important line on
   the page. It reads as body text, not as pale gray at the bottom of a
   box. */
.mqbd-note {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-gold);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 0;
}
.mqbd-section .mqbd-note { color: var(--color-text-primary); }

.mqbd-empty { font-style: italic; color: var(--color-text-muted); }

.mqbd-list { list-style: none; margin: 0; padding: 0; }
.mqbd-list > li {
  border-top: 1px solid var(--color-border);
  padding: 16px 0;
}
.mqbd-list > li:first-child { border-top: 0; padding-top: 0; }
.mqbd-list > li p { margin: 0 0 6px; }
.mqbd-list > li p:last-child { margin: 0; }
.mqbd-list--tight > li { padding: 10px 0; color: var(--color-text-secondary); line-height: 1.6; }
.mqbd-caveat { color: var(--color-text-muted); }

.mqbd-steps { margin: 0; padding-left: 1.2em; }
.mqbd-steps li { line-height: 1.65; color: var(--color-text-secondary); margin-bottom: 10px; }
.mqbd-steps li strong { color: var(--color-text-primary); }

/* Large figures use Manrope: Cormorant renders old-style figures that
   read poorly at large sizes. */
.mqbd-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 20px;
}
.mqbd-figures > div { background: var(--color-bg-card); padding: 18px 16px; }
.mqbd-figures dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.mqbd-figures dd {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
}
.mqbd-figures--plain { grid-template-columns: minmax(0, 1fr); }
.mqbd-figures--plain dd { font-size: 1rem; font-weight: 500; line-height: 1.5; }

.mqbd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 8px;
}
.mqbd-table caption {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: 10px;
}
.mqbd-table th,
.mqbd-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-weight: 400;
}
.mqbd-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.mqbd-table tbody th { color: var(--color-text-primary); }
.mqbd-table td {
  font-family: 'Manrope', system-ui, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}

.mqbd-conflict {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  background: var(--color-bg-card);
}
.mqbd-conflict-side { margin: 0 0 12px; }
.mqbd-conflict-side span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}
.mqbd-conflict .mqbd-note { background: transparent; border: 0; padding: 0; margin: 0; }

.mqbd-sources { list-style: none; margin: 0; padding: 0; }
.mqbd-sources li { padding: 12px 0; border-top: 1px solid var(--color-border); line-height: 1.55; }
.mqbd-sources li:first-child { border-top: 0; }
.mqbd-sources a { color: var(--color-gold); text-decoration: none; }
.mqbd-sources a:hover { text-decoration: underline; }
.mqbd-src-meta { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 3px; }

.mqbd-link { color: var(--color-gold); text-decoration: none; border-bottom: 1px solid currentColor; }
.mqbd-link:hover { opacity: 0.75; }

.mqbd-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mqbd-card a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 22px 20px;
  background: var(--color-bg-card);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mqbd-card a:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.mqbd-card h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}
.mqbd-card p { color: var(--color-text-secondary); line-height: 1.55; margin: 0 0 8px; }
.mqbd-card .mqbd-meta { margin: 0; }

@media (min-width: 700px) {
  .mqbd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mqbd-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mqbd-figures--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* A wide table overflows on phones: it gets its own horizontal scroll
   instead of letting the page slide. */
.mqbd-table--wide { display: block; overflow-x: auto; white-space: nowrap; }
.mqbd-table--wide th, .mqbd-table--wide td { white-space: normal; min-width: 90px; }
.mqbd-table--wide th[scope="row"] { min-width: 180px; }
/* On phones a count column fits in 70px: 90px pushed the header out of
   frame and made it unreadable. */
.mqbd-table--wide td { min-width: 70px; }

@media (prefers-reduced-motion: reduce) {
  .mqbd-card a { transition: none; }
  .mqbd-card a:hover { transform: none; }
}

/* Internal links. Discreet, but readable enough that a human wants to
   follow them, not only a crawler. */
.mqbd-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mqbd-related a {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.mqbd-related a:hover { border-color: var(--color-gold); }
.mqbd-related span {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 5px;
}
.mqbd-related em {
  display: block;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
}

@media (min-width: 700px) {
  .mqbd-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .mqbd-related a { transition: none; }
}

/* The "Explore the data behind this page" block on consumer pages is
   styled in custom.css under .mqbd-bridge: this stylesheet only loads on
   data pages. */

/* A boutique is indented under its city: it is an address, not a city. */
.mqbd-row-shop th[scope="row"] { padding-left: 26px; }
.mqbd-shop { color: var(--color-text-muted); }

/* "Where this data comes from", at the top of the hub.
   A hairline, not a box: the separation between the user's private space
   and the public research corpus reads as a methodology note, never as a
   legal warning. */
.mqbd-origin {
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  margin-top: 28px;
}
.mqbd-origin .mqbd-h2 { font-size: clamp(1.2rem, 2.6vw, 1.45rem); margin-bottom: 12px; }
.mqbd-origin p { font-size: 0.92rem; }
.mqbd-origin p:last-child { margin-bottom: 0; }

/* Provenance note at the bottom of each data page.
   Says where a figure comes from without opening the methodology, and never
   suggests these observations come from app users' data. Quiet: a
   clarification, not another warning. When present it closes the page, so
   the last section gives back its bottom spacing. */
.mqbd-section:last-of-type:not(:last-child) { padding-bottom: 0; }
.mqbd-provenance {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 72px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* App card under the answer: three formats, main.js picks one per page read in the visit.
   Without JavaScript the large card (A) shows. The phones are read from the app panorama. */
.mqb-app { margin: 30px 0 10px; }
.mqb-app[hidden], .mqb-card[hidden] { display: none; }
.mqb-card {
  position: relative; overflow: hidden; display: block; padding: 18px; border-radius: 18px;
  text-decoration: none; color: inherit;
  background: linear-gradient(135deg, #FBF6EA 0%, #F3E7CB 55%, #EAD9B0 100%);
  border: 1px solid rgba(var(--color-gold-rgb), .55);
  box-shadow: 0 10px 28px rgba(60, 42, 18, .12), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.mqb-card::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .75) 50%, rgba(255, 255, 255, 0) 80%, transparent 100%);
  transform: skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) { .mqb-card::after { animation: mqbSheen 5.5s ease-in-out 1s infinite; } }
@keyframes mqbSheen { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.mqb-card > span, .mqb-card span span { display: block; }
.mqb-card__id { display: flex !important; align-items: center; gap: 12px; margin-bottom: 16px; }
.mqb-card__icon { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 2px 6px rgba(60, 42, 18, .18); }
.mqb-card__name { font-family: 'Cormorant Garamond', Cormorant, serif; font-size: 1.5rem; font-weight: 600; line-height: 1.05; color: #1A1714; }
.mqb-card__sub, .mqb-card__free { font-family: Manrope, system-ui, sans-serif; font-size: .75rem; color: var(--color-text-muted-light); }
.mqb-card__free { margin-top: 6px; }
.mqb-card__row { display: grid !important; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.mqb-card__phone {
  width: 108px; height: 227px; background: url(/assets/images/panorama/app-panorama-3000.webp) no-repeat;
  background-size: 1080px auto; background-position: calc(var(--x) * -0.36px) -78px;
  filter: drop-shadow(0 8px 14px rgba(60, 42, 18, .2));
}
.mqb-card__title { margin: 0 0 6px; font-family: 'Cormorant Garamond', Cormorant, serif; font-size: 1.3rem; line-height: 1.2; font-weight: 600; color: #1A1714; }
.mqb-card__body { margin: 0 0 12px; font-family: Manrope, system-ui, sans-serif; font-size: .9rem; line-height: 1.5; color: #2B2620; }
.mqb-card__badge { display: block; width: 120px; height: 40px; }
/* Small formats (B, C): a smaller phone beside the name, a line from the panorama and the badge. */
.mqb-card--small { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px 18px; }
.mqb-card--small .mqb-card__phone { width: 64px; height: 134px; background-size: 640px auto; background-position: calc(var(--x) * -0.2133px) -46px; }
.mqb-card--small .mqb-card__name { font-size: 1.15rem; margin-bottom: 2px; }
.mqb-card--small .mqb-card__title { font-size: 1.1rem; margin-bottom: 2px; }
.mqb-card--small .mqb-card__body { font-size: .85rem; margin-bottom: 10px; }
.mqb-card--small .mqb-card__badge { width: 108px; height: 36px; }
@media (min-width: 720px) {
  .mqb-card { padding: 28px; }
  .mqb-card__row { gap: 28px; }
  .mqb-card--a .mqb-card__phone { width: 150px; height: 315px; background-size: 1500px auto; background-position: calc(var(--x) * -0.5px) -109px; }
  .mqb-card--small { padding: 16px 24px; }
}
/* One App Store badge at a time: the corner one steps aside while a card is on the page. */
body:has(.mqb-app:not([hidden])) a.appstore-sticky.appstore-official.appstore-official { display: none; }

/* A wide table scrolls inside its own box on a phone, never the page. */
.mqbd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.mqbd-table--prices th, .mqbd-table--prices td { white-space: nowrap; padding: 10px 8px; }

/* From the founder: a signed personal note, set apart from the data. */
.mqbd-founder { margin: 36px 0; padding: 22px 24px; border-left: 3px solid rgba(var(--color-gold-rgb), .7); background: rgba(var(--color-gold-rgb), .06); border-radius: 0 14px 14px 0; }
.mqbd-founder .mqbd-h2 { margin-top: 0; }
.mqbd-founder__label { font-family: Manrope, system-ui, sans-serif; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted-light); margin: -4px 0 10px; }
.mqbd-founder__sign { font-family: 'Cormorant Garamond', Cormorant, serif; font-size: 1.1rem; font-style: italic; margin: 12px 0 0; }
.mqbd-founder__sign a { color: inherit; }

/* Collector Guide: the detail of each answer folds behind a chevron, one open at a time.
   The text stays in the HTML, so search engines and AI crawlers read it. */
.mqbd-more { margin: 4px 0 8px; border-top: 1px solid var(--color-border); }
.mqbd-more > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 10px 0; font-size: 0.9rem; font-weight: 500; color: var(--color-gold-dark, #A88326);
}
.mqbd-more > summary::-webkit-details-marker { display: none; }
.mqbd-more > summary::after {
  content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.mqbd-more[open] > summary::after { transform: rotate(-135deg); }
.mqbd-more > summary:focus-visible { outline: 2px solid var(--color-gold, #C9A84C); outline-offset: 2px; }
.mqbd-more[open] { padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .mqbd-more > summary::after { transition: none; } }

/* Watercolor illustration of a data page, shown whole, never cropped. */
.mqbd-illustration { display: block; width: 100%; max-width: 520px; height: auto; margin: 8px auto 28px; }
