/* BestProps v2 x WordPress: HUBS workstream (views hub-market, hub-compare, hub-comparison, hub-topic, hub-tool,
   hub-approved). Builds on the mockup's l2.css compare-sheet classes (cs-*, bx-pair*) and v2-wp.css (bpw-paper). */

.bph { --bph-gap: clamp(28px, 4vw, 56px); }
/* the site-wide organizational byline (injected after the H1 by a mu-plugin) */
.bph-hero .bp-organizational-byline { margin: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.bph-hero .bp-organizational-byline a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--draft-2); }
.bph-hero { max-width: 1040px; }
.bph-hero .breadcrumb { margin: 0; }
.bph-title { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.02; overflow-wrap: anywhere; }
.bph-meta { list-style: none; margin: 0; padding: 0; }
.bph-meta li { display: inline-flex; align-items: center; gap: 8px; }
.bph-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--draft-2); }
.bph-byline__s { color: var(--ink-3); }
.bph-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bph-kicker { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-ink); }
.bph-hero-note { display: grid; gap: 4px; max-width: 760px; padding: 14px 18px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bph-hero-note strong { color: var(--ink); font-weight: 600; }

/* sections */
.bph-sec { margin-top: var(--bph-gap); scroll-margin-top: calc(var(--header-h, 72px) + 20px); }
.bph-sec__top { margin-bottom: 18px; }
.bph-sec .cs-sub { max-width: 76ch; }
.bph [id] { scroll-margin-top: calc(var(--header-h, 72px) + 20px); }

/* start strip */
.bph-start { margin-top: clamp(8px, 1.5vw, 16px); }
.bph-start__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bph-start__c { position: relative; padding: 16px 18px 18px; border-radius: 12px; min-width: 0; }
.bph-start__n { font-family: var(--font-mono); font-size: 10.5px; color: var(--indigo-ink); }
.bph-start__t { margin: 6px 0 4px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.bph-start__c p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bph-start__c a, .bph-card a:not(.bp-btn), .bph-faq a, .bph-research a, .bph-note a { color: var(--indigo-ink); }

/* goal cards (futures) */
.bph-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bph-goal { position: relative; display: grid; gap: 6px; align-content: start; min-height: 150px; padding: 20px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.bph-goal__ref { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--indigo-ink); }
.bph-goal strong { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.bph-goal span:not(.bph-goal__ref) { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bph-goal em { margin-top: auto; padding-top: 10px; font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo-ink); }

/* generic cards */
.bph-cards { display: grid; gap: 12px; }
.bph-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bph-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bph-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bph-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border-radius: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.bph-card[hidden], .bph-firm[hidden], .bph-pair[hidden] { display: none !important; }
.bph-card h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.bph-card p { margin: 0; }
.bph-card__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--draft); font-family: var(--font-mono); font-size: 11px; color: var(--indigo-ink); }
.bph-card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto !important; padding-top: 6px; font-size: 13.5px; }
.bph-ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bph-ticks li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.bph-ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 1px; background: var(--indigo); }
.bph-ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; margin-top: 16px; }
.bph-badge { align-self: flex-start; margin: 0 !important; padding: 3px 8px; border: 1px solid var(--draft-2); border-radius: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo-ink); }
.bph-example__id { display: flex; align-items: center; gap: 12px; }
.bph-example__id h3 { flex: 1; min-width: 0; }
.bph-example__id .bp-gauge { --bp-g: 56px; flex: none; }
.bph-note { max-width: 820px; margin: 16px 0 0; padding: 14px 16px; border-left: 2px solid var(--indigo); background: color-mix(in srgb, var(--indigo-deep) 10%, transparent); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.bph-note strong { color: var(--ink); }
.bph-logo { overflow: hidden; background: #fff; padding: 0; }
.bph-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }

/* forex picks */
.bph-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.bph-filters strong { margin-right: 4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.bph-chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-edge); font-size: 13px; color: var(--ink-2); }
.bph-chip:hover { color: var(--ink); border-color: var(--indigo); }
.bph-chip[aria-pressed="true"] { color: var(--ink); border-color: var(--indigo); background: color-mix(in srgb, var(--indigo-deep) 26%, transparent); }
.bph-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bph-count { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.bph-pick__rank { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bph-pick__rank strong { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--indigo); color: var(--indigo-ink); font-weight: 500; letter-spacing: 0; }
.bph-pick__label { font-weight: 600; color: var(--indigo-ink); }
.bph-firms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bph-firm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; }
.bph-firm h3 { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.bph-firm p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.bph-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: bphc; }
.bph-checks li { position: relative; padding: 16px 16px 16px 52px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); counter-increment: bphc; }
.bph-checks li::before { content: counter(bphc, decimal-leading-zero); position: absolute; left: 16px; top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--indigo-ink); }

/* faq */
.bph-faq { display: grid; gap: 10px; max-width: 900px; }
.bph-faq__i { border-radius: 12px; padding: 0; }
.bph-faq__i summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; padding: 16px 18px; font-size: 16px; font-weight: 600; color: var(--ink); }
.bph-faq__i summary::-webkit-details-marker { display: none; }
.bph-faq__i summary::after { content: "+"; font-family: var(--font-mono); color: var(--indigo-ink); }
.bph-faq__i[open] summary::after { content: "\2212"; }
.bph-faq__a { padding: 0 18px 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; }

/* research + author */
.bph-research { margin-top: var(--bph-gap); padding: clamp(20px, 2.6vw, 32px); border-radius: 14px; }
.bph-research .cs-h { margin-bottom: 18px; }
.bph-research > p:not(.bph-kicker):not(.bph-sources):not(.bph-policy) { margin: 0; max-width: 78ch; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.bph-research__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; }
.bph-research__dl dt { margin: 0 0 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bph-research__dl dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.bph-sources { margin: 20px 0 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.bph-sources strong { color: var(--ink); }
.bph-policy { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--draft-2); font-size: 13.5px; color: var(--ink-3); }
.bph-author { margin-top: var(--bph-gap); }
.bph-author .bph-kicker { margin-bottom: 4px; }
.bph-author h2 a { color: inherit; text-decoration: none; }
.bph-verify { margin-top: var(--bph-gap); }
.bph-boundary { margin-top: var(--bph-gap); padding: clamp(20px, 2.6vw, 32px); border-radius: 14px; }
.bph-boundary .bp-approved-research { display: grid; gap: 10px; }
.bph-boundary .bp-approved-eyebrow { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-ink); }
.bph-boundary h2 { margin: 0; font-size: clamp(20px, 1.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.bph-boundary p { margin: 0; max-width: 80ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bph-boundary .bp-approved-research-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.bph-boundary .bp-approved-research-links a { color: var(--indigo-ink); font-size: 14px; }

/* tabs / switchers + stats */
.bph-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: clamp(4px, 1vw, 12px); }
.bph-tabs strong { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.bph-tabs ul { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--glass-edge); border-radius: 10px; }
.bph-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 7px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bph-tabs a:hover { color: var(--ink); }
.bph-tabs a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--indigo-deep) 30%, transparent); box-shadow: inset 0 0 0 1px var(--indigo); }
.bph-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.bph-stats > div { padding: 14px 16px; border-radius: 12px; }
.bph-stats dd { margin: 0; display: grid; gap: 2px; }
.bph-stats strong { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.bph-stats span { font-size: 13px; color: var(--ink-3); }

/* comparison cards / index */
.bph-pairs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.bph-pair { position: relative; }
.bph-pair .bx-pair__go { margin-top: auto; }
.bph-pair__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bph-group + .bph-group { margin-top: 26px; }
.bph-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.bph-group__head h3 { margin: 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.bph-group__n { font-family: var(--font-mono); font-size: 11px; color: var(--indigo-ink); }
.bph-group__head .bp-link { margin-left: auto; font-size: 13px; }
.bph-guide-controls { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(200px, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 14px; padding: 14px 16px; border-radius: 12px; }
.bph-guide-controls .bph-count { grid-column: 1 / -1; margin: 0; }
.bph-field { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.bph-field input, .bph-field select { height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--glass-edge); background: color-mix(in srgb, var(--ground, #0b0d16) 55%, transparent); color: var(--ink); font: 500 14px/1 var(--font-sans); letter-spacing: 0; text-transform: none; }
.bph-field select option { background: var(--glass-solid); color: var(--ink); }

/* comparison verdict lanes */
.bph-verdict { margin-top: 4px; }
.bph-lanes { grid-template-rows: auto; }
.bph-lane { display: grid; grid-template-rows: auto; gap: 12px; align-content: start; }
.bph-lane__h { margin: 0; font-size: inherit; font-weight: inherit; }
.bph-lane .cs-lane__head .bp-gauge { --bp-g: 64px; }
.bph-lane__fit { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bph-lane__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 13px; }
.bph-verdict__note { margin-top: 14px; }

/* stored HTML: rail + light paper */
.bph-layout { display: grid; gap: clamp(20px, 3vw, 40px); margin-top: var(--bph-gap); align-items: start; }
@media (min-width: 1080px) { .bph-layout:not(.bph-layout--solo) { grid-template-columns: 250px minmax(0, 1fr); } }
.bph-rail { min-width: 0; }
.bph-rail .lg-toc ol { list-style: none; margin: 0; padding: 0; }
.bph-rail .lg-toc li { margin: 0; }
@media (min-width: 1080px) { .bph-rail .lg-toc { max-height: calc(100vh - var(--header-h, 72px) - 48px); overflow-y: auto; scrollbar-width: thin; } }
.bph-solo-note { margin-top: 14px; }
.bph-paper { min-width: 0; }
.bph-paper--wide .bpw-prose, .bph-layout--solo .bph-paper .bpw-prose { max-width: none; }
.bph-paper .bpw-prose > .bpw-sec--intro:empty { display: none; }
/* stored /compare/ finder: undo the v2 .bp-tool card (flex column) that shares the class name */
.bph-paper .bp-tool { display: block; color: inherit; }
.bph-paper .bp-compare-page > .bp-tool:first-of-type { margin-top: 0; }
/* the finder's stored stat tiles are shown in the hero stats band instead (as in the old template) */
.bph-paper #bp-prop-firm-finder > .bp-stats { display: none; }
/* the calculator's own kicker + intro line are replaced by the hero (as in the old template) */
.bph-paper--tool #bp-daily-loss-kicker, .bph-paper--tool #bp-daily-loss-kicker + p { display: none; }

/* market directory list */
.bph-dirlist .bpd { margin-top: 4px; }
.bph-more { margin: 14px 0 0; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bph-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bph-goals, .bph-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bph-start__grid, .bph-goals, .bph-cards--2, .bph-cards--3, .bph-cards--4, .bph-firms, .bph-research__dl, .bph-ticks--2, .bph-guide-controls { grid-template-columns: minmax(0, 1fr); }
  .bph-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bph-firm { grid-template-columns: auto minmax(0, 1fr); }
  .bph-firm > .bp-link { grid-column: 2; }
  .bph-lanes, .bph-lanes:has(.cs-vs) { grid-template-columns: minmax(0, 1fr) !important; }
  .bph-lanes .cs-vs { display: none; }
  .bph-lanes .cs-lane + .cs-vs + .cs-lane, .bph-lanes .cs-lane + .cs-lane { border-left: 0; border-top: 1px solid var(--draft-2); }
  .bph-tabs ul { width: 100%; }
  .bph-tabs li { flex: 1 1 auto; }
  .bph-tabs a { justify-content: center; width: 100%; padding: 0 10px; }
  .bph-group__head .bp-link { margin-left: 0; }
}

/* paper: no double gap above the first heading / tool section */
.bph-paper .bpw-prose > .bpw-sec:first-child > h2:first-child { margin-top: 0; }
.bph-paper--tool .bp-tool-page { margin-top: 0 !important; padding-top: 0 !important; }
.bph-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; margin: 18px 0 8px; }
.bph-toolbar .bph-field { min-width: min(100%, 300px); color: #64748b; }
.bph-toolbar .bph-field input { background: #fff; color: #0b1220; border-color: #cbd5e1; }
.bph-paper .bph-chip { border-color: #cbd5e1; color: #334155; }
.bph-paper .bph-chip[aria-pressed="true"] { color: #fff; background: #4f48ff; border-color: #4f48ff; }
.bph-paper .bph-count { color: #64748b; }
.bph-paper tr[hidden] { display: none; }
/* the mockup hides lane gauges on small screens (three-lane sheets); with two firms keep the rating visible */
@media (max-width: 900px) {
  .bph-lane .cs-lane__head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .bph-lane .cs-lane__head .bp-gauge { display: inline-grid; --bp-g: 64px; }
}

/* comparison: theme research panel + author card lifted out of the paper */
.bph-lifted .bp-comparison-research { display: block; }
.bph-lifted .bp-comparison-research-label { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-ink); }
.bph-lifted h2 { margin: 0 0 18px; font-size: clamp(20px, 1.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.bph-lifted h2 a { color: inherit; text-decoration: none; }
.bph-lifted dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; margin: 0; }
.bph-lifted dt { margin: 0 0 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.bph-lifted dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.bph-lifted .bp-comparison-research-links { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--draft-2); font-size: 13.5px; color: var(--ink-3); }
.bph-lifted a { color: var(--indigo-ink); }
.bph-lifted--author { margin-top: 18px; }
.bph-lifted--author .bp-pilot-author-card { display: block; }
.bph-lifted--author .bp-pilot-author-card-mark { display: none; }
.bph-lifted--author .bp-pilot-author-card-label { margin: 0 0 4px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo-ink); }
.bph-lifted--author h2 { margin-bottom: 8px; }
.bph-lifted--author p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 80ch; }
.bph-paper .bp-comparison-commercial-note { display: block; margin: 0 0 24px; padding: 12px 16px; border-left: 3px solid #4f48ff; background: #f5f6ff; border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.55; color: #1e293b; }
@media (max-width: 720px) { .bph-lifted dl { grid-template-columns: minmax(0, 1fr); } }

/* /compare/ root index: compact cards (60+ comparisons) */
.bph-index .bph-pairs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 8px; }
.bph-index .bx-pair { padding: 12px 14px; gap: 6px; border-radius: 10px; }
.bph-index .bx-pair__t { font-size: 15.5px; line-height: 1.3; }
.bph-index .bx-pair__go { display: none; }
.bph-index .bx-pair__tiles .bp-tile { --t: 30px; }

/* /graveyard/ "Find a Firm" filter row (stored body). The stored style aligns the row on flex-end while Mercury's
   `.space-page-content input/select { margin-bottom: 10px }` lifts every field 10px above its label, and the input,
   selects and Reset button all had different heights. Level them at one height on one centre line. One row when the
   panel is wide enough; otherwise a label | field grid so a label never wraps away from its field. Below 761px the
   stored rule stacks everything full width. */
.bph-paper .bp-graveyard-page [data-gy-app] { container-type: inline-size; }
@media (min-width: 761px) {
  .bph-paper .bp-graveyard-page [data-gy-app] p:has(#gy-search) { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 10px 14px; }
  .bph-paper .bp-graveyard-page [data-gy-app] label { margin: 0; line-height: 1.25; }
  .bph-paper .bp-graveyard-page [data-gy-app] input,
  .bph-paper .bp-graveyard-page [data-gy-app] select,
  .bph-paper .bp-graveyard-page [data-gy-app] [data-gy-reset] { box-sizing: border-box; height: 44px; min-height: 44px; margin: 0; padding-top: 0; padding-bottom: 0; line-height: normal; vertical-align: middle; }
  .bph-paper .bp-graveyard-page [data-gy-app] input { width: 100%; min-width: 0; }
  .bph-paper .bp-graveyard-page [data-gy-app] p:has(#gy-search) select { width: 100%; max-width: 420px; }
  .bph-paper .bp-graveyard-page [data-gy-app] [data-gy-reset] { grid-column: 2; justify-self: start; padding-left: 14px; padding-right: 14px; }
}
@container (min-width: 1150px) {
  .bph-paper .bp-graveyard-page [data-gy-app] p:has(#gy-search) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .bph-paper .bp-graveyard-page [data-gy-app] p:has(#gy-search) input { flex: 1 1 220px; width: auto; min-width: 200px; }
  .bph-paper .bp-graveyard-page [data-gy-app] p:has(#gy-search) select { width: auto; max-width: none; }
}
@media (max-width: 760px) {
  .bph-paper .bp-graveyard-page [data-gy-app] input { width: 100%; box-sizing: border-box; }
}

/* Josh's head-to-head spec sheet (bp-v2-josh parts, l2.css) on phones, 2026-10-30. Grid/flex items kept their
   min-content width (long plan names in the selects, long verdict lines), so the sheet was 444 px wide on a 375 px
   phone and the whole page panned sideways. Let every item shrink and long words wrap. Specificity beats l2.css,
   which prints after this bundle. */
html body .bpj-cmp, html body .bpj-cmp * { min-width: 0; }
html body .bpj-cmp :is(.cs-region, .cs-prog, .cs-verdict__list) { grid-template-columns: minmax(0, 1fr); }
html body .bpj-cmp .cs-prog select { max-width: 100%; text-overflow: ellipsis; }
html body .bpj-cmp :is(li, dd, p, td, th) { overflow-wrap: anywhere; }
