/* Desktop brand page (above 900px; modules/brand_page.php + plan_picker.php): breadcrumb, the brand's coloured hero,
   plans in two columns and how delivery works on the start side; the order summary (plan, price, balance before /
   after, Order now) and the support line sticky on the far side. Phones keep brand.css + plans.css. */
@media (min-width: 901px) {
  .brand-page .bp { grid-template-columns: minmax(0, 1fr) 400px; gap: 0 24px; align-items: start; }
  .bp-crumbs { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; color: var(--w-faint); font-size: 13.5px; font-weight: 600; }
  .bp-crumbs a:hover { color: var(--text); }
  .bp-crumbs span { color: var(--text); }
  .brand-page .bp-hero { grid-column: 1; position: relative; top: auto; min-height: 0; height: 240px; padding: 32px 36px; border-radius: 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .25); }
  .brand-page .bp-hero > .ba-mark { top: -70px; inset-inline-end: -40px; width: 340px; height: 340px; opacity: .88; transform: rotate(-12deg); }
  .brand-page .bp-hero > .ba-tile { top: 30px; inset-inline-end: 40px; width: 150px; height: 150px; border-radius: 40px; transform: rotate(-8deg); }
  .bp-back { display: none; }
  .brand-page .bp-title { display: flex; flex-direction: column; align-items: flex-start; height: 100%; gap: 0; }
  .brand-page .bp-chips { order: -1; gap: 6px; }
  .brand-page .bp-chips li { height: 30px; padding: 0 12px; background: rgb(0 0 0 / .12); }
  .brand-page .bp-title h1 { margin-top: auto; font: 600 60px/1 var(--font); letter-spacing: -.035em; }
  .bp-sub { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; opacity: .72; }

  .brand-page .bp-body, .brand-page .bp-body > .pk { display: contents; }
  .brand-page .pk-list { grid-column: 1; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
  .brand-page .pk-label { display: block; grid-column: 1 / -1; float: none; margin-bottom: 2px; color: var(--text); font-size: 20px; font-weight: 600; }
  .brand-page .pk-row { min-height: 84px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--w-card); box-shadow: inset 0 0 0 1px transparent; transition: background-color .2s, box-shadow .2s; }
  .brand-page .pk-row:hover { background: var(--w-card-2); }
  .brand-page .pk-row:has(input:checked) { background: color-mix(in srgb, var(--accent) 7%, var(--w-card)); box-shadow: inset 0 0 0 1.5px var(--accent); }
  .brand-page .pk { --pick: var(--accent); --pick-ink: var(--accent-ink); }
  .brand-page .pk-dot { width: 22px; height: 22px; }
  .brand-page .pk-dot::after { width: 8px; height: 8px; }
  .brand-page .pk-main strong { font-size: 16px; }
  .brand-page .pk-main small { color: var(--w-faint); font-size: 12.5px; }
  .brand-page .pk-price .mn b { font: 600 20px var(--font); }
  .brand-page .pk-price s { color: var(--w-faint2); font: 500 13px var(--font); }
  .brand-page .pk-note, .brand-page .pk-perks, .brand-page .pk-details { display: none; }
  .brand-page .bp-body > .empty { grid-column: 1; margin-top: 30px; }

  .pk-how { grid-column: 1; display: block; }
  .pk-how h2 { margin: 30px 0 14px; font-size: 20px; font-weight: 600; }
  .pk-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .pk-how li { display: flex; gap: 12px; padding: 18px; border-radius: 12px; background: var(--w-card); }
  .pk-how li > span { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--w-card-3); color: var(--accent); font: 600 15px var(--font); }
  .pk-how li div { display: grid; line-height: 1.45; }
  .pk-how strong { font-size: 15px; }
  .pk-how small { color: var(--w-faint); font-size: 12.5px; font-weight: 600; }

  /* Order summary */
  .brand-page .pk-aside { grid-column: 2; grid-row: 2 / span 3; position: sticky; top: 100px; display: grid; gap: 14px; }
  .brand-page .pk-foot { position: static; display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 24px; border: 0; border-radius: 12px; background: var(--w-card);
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pk-sum { display: grid; gap: 14px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid var(--w-row); }
  .pk-sum-label { color: var(--w-faint); font-size: 13px; font-weight: 600; }
  .pk-sum-plan { display: flex; align-items: center; gap: 12px; }
  .pk-sum-plan .bt { width: 48px; height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18), 0 6px 12px -6px rgb(0 0 0 / .55); }
  .pk-sum-plan > span { display: grid; min-width: 0; line-height: 1.4; }
  .pk-sum-plan strong { font-size: 16px; overflow-wrap: anywhere; }
  .pk-sum-plan small { color: var(--w-faint); font-size: 12.5px; font-weight: 600; }
  .brand-page .pk-total { order: 1; display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
  .brand-page .pk-total small { color: var(--w-dim); font-size: 14px; }
  .brand-page .pk-total strong { font: 600 15px var(--font); }
  .brand-page .pk-bal { order: 2; display: grid; grid-template-columns: 1fr; gap: 12px; font-size: 14px; }
  .brand-page .pk-bal > span { display: flex; justify-content: space-between; color: var(--w-dim); font-weight: 600; }
  .brand-page .pk-bal b { font: 600 15px var(--font); }
  .brand-page .pk-bal [data-after-wrap] b { color: var(--accent); }
  .brand-page .pk-bal .is-short b { color: var(--danger); }
  .brand-page .pk-go { order: 3; display: flex; justify-content: center; gap: 10px; min-height: 40px; margin-top: 6px; border-radius: 8px; font-size: 14px;
    box-shadow: 0 14px 30px -14px rgb(var(--accent-rgb) / .5); }
  .brand-page .pk-go-price { display: inline-flex; }
  .pk-help { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--w-card); color: var(--w-dim); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
  .pk-help > span:nth-child(2) { flex: 1 1 auto; }
  .pk-help-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--w-card-3); color: var(--w-soft2); }
  .pk-help button { flex: none; padding: 0; border: 0; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; }
  [data-theme="light"] .pk-sum { border-bottom-color: var(--line); }
}
@media (min-width: 901px) and (max-width: 1320px) {
  /* One column: the summary follows the plans instead of squeezing them */
  .brand-page .bp { grid-template-columns: minmax(0, 1fr); }
  .brand-page .pk-aside { grid-column: 1; grid-row: auto; position: static; margin-top: 30px; }
}
