/* The platform layout of /product/<slug> (BL-58, shop/_platform_page.php).
   Built on shop.css and the portal tokens; every rule here is scoped under .ip
   so nothing leaks into the rest of the shop. Mobile first: one column, then
   two from 64rem. */

.ip { padding-top: 0; }
.ip h2 { font: 600 clamp(1.4rem, 3.4vw, 1.9rem)/1.2 var(--display); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ip h3 { margin: 0; }
.ip p { margin: 0; }
.ip-ext { flex: none; margin-inline-start: 6px; vertical-align: -2px; }

/* ---- sections (v6): unboxed, a hairline between, always all visible ----
   The scroll margin clears the store header plus the pill strip below 1080px
   and the header alone beside the rail (the 1080px block below). */
.ip-sec { padding-block: 56px; scroll-margin-top: calc(var(--pt-sticky-top, 0px) + 72px); min-width: 0; }
@media (max-width: 720px) { .ip-sec { padding-block: 40px; } }
.ip-sec + .ip-sec, .ip-buycol + .ip-sec { border-top: 1px solid var(--store-line); }
.ip-sec--note { padding-block: 0 32px; border-top: 0 !important; }
.ip-head { display: grid; gap: 8px; max-width: 62ch; margin-bottom: 24px; }
.ip-head p { color: var(--text2); }

/* ---- first screen: title block (crumbs, name, tagline, brand and rating),
   then product and buy card ---- */
.ip-ihead { padding-block: 22px 14px; display: grid; gap: 4px; min-width: 0; }
.ip-ihead h1 { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2rem)/1.2 var(--store-body); letter-spacing: -.01em; margin: 0; overflow-wrap: anywhere; }
.ip-lead { font-size: 1rem; color: var(--store-muted); max-width: 70ch; }
.ip-crumbs ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 6px; font-size: .84rem; color: var(--store-muted); }
.ip-crumbs li { display: inline-flex; gap: 6px; min-width: 0; }
/* Generated, so a screen reader does not read the separator as a label. */
.ip-crumbs li + li::before { content: "/"; color: var(--text3); }
.ip-crumbs a { color: var(--store-muted); text-decoration: none; white-space: nowrap; }
.ip-crumbs a:hover { color: var(--store-accent); text-decoration: underline; }
.ip-crumbs [aria-current] { color: var(--store-ink); font-weight: 500; overflow-wrap: anywhere; }
.ip-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 4px; }
.ip .ip-meta > p { margin: 0; font-size: .875rem; color: var(--store-muted); }
.ip .ip-meta > .shop-review-summary-head { margin: 0; font-size: .875rem; color: var(--store-muted); }
.ip-rwline svg, .ip-cb svg, .ip-bc-cb svg { width: 18px; height: 18px; flex: none; }
.ip-rwline { margin-top: 8px; display: flex; gap: 10px; align-items: flex-start; border-inline-start: 3px solid var(--amber); padding: .45em .8em; background: var(--bg2); border-radius: 0 10px 10px 0; font-weight: 600; font-size: .92rem; max-width: 60ch; }
.ip-rwline svg { color: var(--amber); margin-top: 2px; }

.ip-media { padding-block: 20px 24px; min-width: 0; }
.ip-shot { margin: 0; border-radius: var(--store-r); overflow: hidden; border: 1px solid var(--border); background: var(--store-surface); box-shadow: var(--shadow); }
/* The hero, the SKU's own image (the 590 x 300 marketplace preview, or
   whatever was uploaded) or a storefront screenshot, in the owner's 590:300
   frame (cto-0947): drawn whole (scale-down: contained, never blown up past
   its own pixels, never stretched or cropped), centred on the frame's
   ground, at every width; PR 2623's 4:5 phone box is withdrawn. */
.ip-shot img { display: block; width: 100%; height: auto; aspect-ratio: 590 / 300; object-fit: scale-down; }
.ip-shot figcaption { padding: 8px 12px; font-size: .8rem; color: var(--text2); border-top: 1px solid var(--border); }
.ip-pvbtns { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.ip-pvbtns .shop-cta { display: inline-flex; align-items: center; justify-content: center; }

.ip-buycol { padding-block: 0 32px; min-width: 0; }
.ip-buycard { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); min-width: 0; }
/* Owner review ("too congested"): more air, a 16px gap between the groups
   (choice, benefits, price, Buy, small text), 20px of padding on a phone. */
@media (max-width: 720px) { .ip-buycard { padding: 20px; } }
.ip-edswitch { display: flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 10px; background: var(--bg3); }
/* Each tab shares the row equally but is never narrower than its longest
   word, so a row that can't hold every tab wraps onto a second one instead
   of running the names together. The name breaks only between words, over a
   small muted second line (cto-0555); a row's tabs keep one height. */
.ip-edswitch a { flex: 1 1 0; min-width: min-content; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; text-decoration: none; padding: .5em .6em; border-radius: 8px; color: var(--text2); }
.ip-edswitch__main { max-width: 100%; font-weight: 600; font-size: .9375rem; line-height: 1.25; white-space: normal; text-wrap: balance; overflow-wrap: normal; }
.ip-edswitch__sub { max-width: 100%; font-weight: 500; font-size: var(--edswitch-sub-size, .75rem); letter-spacing: var(--edswitch-sub-track, normal); line-height: 1.3; color: var(--text3); white-space: normal; text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
/* The owner's words whole (cmo-0715, the theme lead's size rule): below
   420px the second line is one size down, and where a locale's line is still
   wider than the tab it wraps to a second line, between words only, never
   cut. The row keeps its tabs the same height with their content centred. */
@media (max-width: 419.98px) { .ip-edswitch { --edswitch-sub-size: .6875rem; --edswitch-sub-track: -0.01em; } }
.ip-edswitch a[aria-current] { background: var(--bg2); color: var(--text); box-shadow: var(--shadow-card); }
.ip-edswitch a[aria-current] .ip-edswitch__sub { color: var(--text2); }
.ip-licform select { flex: 1 1 auto; }
.ip-licform { display: flex; gap: 6px; min-width: 0; }
.ip-licform select { font: inherit; font-weight: 600; font-size: .95rem; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--store-r-btn); padding: .55em .6em; min-width: 0; max-width: 100%; cursor: pointer; }
.ip-licform__go { font: inherit; border: 1px solid var(--border); background: var(--bg); border-radius: var(--store-r-btn); padding: 0 .7em; cursor: pointer; }
.chrome-js .ip-licform__go { display: none; }
.ip-bc-lic { font-weight: 600; }
.ip-bc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; line-height: 1; min-width: 0; }
.ip-bc-amt { font-weight: 700; font-size: 2rem; letter-spacing: -.02em; }
.ip-bc-once { color: var(--text2); font-size: .75rem; }
.ip-bc-was { font-size: .85rem; }
/* One pane per licence (cto-0948), only the selected one in the layout: the
   card fits its content, with no empty band under a shorter licence (owner
   review cto-20261101-1855, 2b); its height follows the licence shown. */
.ip-bc-panes { display: grid; min-width: 0; }
.ip-bc-pane { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ip-bc-priceblock { display: grid; gap: 8px; min-width: 0; }
.ip-bc-pane.is-off { display: none; }
.ip-bc-ben ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ip-bc-ben li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--store-ink); }
.ip-bc-ben svg { flex: none; margin-top: 2px; color: var(--teal); }
.ip-bc-plus { margin: 0 0 6px; font-size: .85rem; font-weight: 600; color: var(--text2); }
/* The small text: one hairline above it, the card's only separator, then the
   sites, the licence line and "License and updates", and the legal line under
   the panes, all at the card's small size in the muted ink. */
.ip-bc-small { border-top: 1px solid var(--border); padding-top: 16px; display: grid; gap: 4px; font-size: .8125rem; color: var(--text2); }
.ip-bc-small p { margin: 0; }
.ip-bc-legal { font-size: .8125rem; color: var(--text2); margin-top: -12px; }
.ip-bc-legal a { color: var(--base); }
/* The purchase's legal terms at the page's end, under the last section. */
.ip-legal { border-top: 1px solid var(--store-line); padding-block: 24px 40px; font-size: .8125rem; color: var(--text2); max-width: 72ch; }
.ip-legal a { color: var(--base); }
.ip-bc-terms { font-size: inherit; color: inherit; }
.ip-bc-terms a, .ip-bc-cb a { color: var(--base); white-space: nowrap; }
.ip-bc-buy { width: 100%; text-align: center; font-size: 1rem; }
.ip-bc-same { margin: 0; font-size: .84rem; color: var(--text2); }
.ip-bc-cb { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; color: var(--text2); }
.ip-bc-cb svg { color: var(--teal); margin-top: 1px; }
.ip-cmplink { justify-self: start; font-size: .8125rem; font-weight: 500; color: var(--text2); text-decoration: none; }
.ip-cmplink:hover { color: var(--base); text-decoration: underline; }

.ip-was { color: var(--text3); }
.ip-terms { color: var(--text2); font-size: .92rem; }
.ip-cb { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--teal); }
.ip-cbhow { margin-top: 16px; font-size: .92rem; max-width: 72ch; scroll-margin-top: 80px; }
.ip-cbhow summary { cursor: pointer; font-weight: 600; color: var(--base); }
/* The same + / x as the FAQ, right after the words: the triangle points the
   wrong way on a right-to-left page. */
.ip-cbhow summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.ip-cbhow summary::-webkit-details-marker { display: none; }
.ip-cbhow summary::after { content: "+"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); color: var(--base); font: 600 1rem/1 var(--store-body); transition: transform .2s; }
.ip-cbhow[open] > summary::after { transform: rotate(45deg); }
.ip-cbhow summary:focus-visible { outline: 3px solid var(--base); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .ip-cbhow summary::after { transition: none; } }
.ip-cbhow div { display: grid; gap: 6px; padding-top: 8px; color: var(--text2); }

.ip-facts { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-facts li { border: 1px solid var(--border); border-radius: 999px; padding: .4em .9em; background: var(--bg2); font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }

/* ---- demo ---- */
.ip-demos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ip-sub3 { font-size: 1.05rem; margin: 32px 0 14px !important; }
.ip-sub3--first { margin-top: 0 !important; }
.ip-gal { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ip-gal figure { margin: 0; min-width: 0; }
/* The gallery exception (cto-0947): each screenshot keeps its own ratio, in a
   box no taller than 360px, never enlarged past its own pixels. */
.ip-gal img { display: block; width: auto; height: auto; max-width: 100%; max-height: 360px; margin-inline: auto; border-radius: 10px; border: 1px solid var(--border); background: var(--bg3); }
.ip-gal figcaption { font-size: .8rem; color: var(--text2); padding-top: 6px; }

/* ---- lists ---- */
.ip-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ip-chips li { border: 1px solid var(--border); border-radius: 999px; padding: .4em .9em; background: var(--bg2); font-weight: 500; font-size: .92rem; }
.ip-inc { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ip-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ip-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.ip-n { margin-inline-start: auto; font-size: .8rem; color: var(--text2); }

/* The refund line under Buy keeps shop.css's spacing; .ip p would zero it. */

/* ---- Overview: the console-authored description (shop_blocks()) ----
   .ip h2/h3/p reset margins and size headings as section titles; inside the
   description the blocks keep shop.css's own rhythm, one step down. */
.ip-desc { display: block; padding: 20px 22px; }
.ip .ip-desc .shop-block-heading { display: block; font: 600 1.2rem/1.3 var(--display); margin: 1.6rem 0 .6rem; }
.ip .ip-desc .shop-block-text { margin: 0 0 1rem; }
.ip .ip-desc .shop-feature h3 { margin: 0 0 .35rem; }
.ip .ip-desc .shop-block-html p { margin: 0 0 1rem; }
.ip .ip-desc .shop-block-html :is(h2, h3, h4, h5, h6) { display: block; font: 600 1.05rem/1.3 var(--display); margin: 1.4rem 0 .5rem; }
.ip .ip-desc > :first-child { margin-top: 0; }
.ip .ip-desc > :last-child { margin-bottom: 0; }

/* ---- Reviews, questions, suggestions: product.php's panels (shop.css's
   .shop-section card) inside the page's section rhythm ---- */
.ip-posts > .shop-section { margin: 0; }
.ip-count { font-size: .75em; font-weight: 600; color: var(--text2); margin-inline-start: .25em; font-variant-numeric: tabular-nums; }
.ip .ip-posts .shop-section > p, .ip .ip-ask .shop-section > p { margin: 0 0 .75rem; }
.ip-ask { margin-top: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ip-ask summary { cursor: pointer; font-weight: 600; }
.ip-ask > .shop-section { margin: 12px 0 0; padding: 0; border: 0; background: none; }

/* ---- FAQ ---- */
.ip-faq { display: grid; gap: 10px; max-width: 72ch; }
.ip-faq details { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 14px 16px; }
.ip-faq summary { cursor: pointer; font-weight: 600; }
/* A + that turns to x when the answer is open, in place of the browser's
   triangle (which points the wrong way on a right-to-left page). */
.ip-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); color: var(--base); font: 600 1.1rem/1 var(--store-body); transition: transform .2s; }
.ip-faq details[open] > summary::after { transform: rotate(45deg); }
.ip-faq summary:focus-visible { outline: 3px solid var(--base); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .ip-faq summary::after { transition: none; } }
.ip-faq details > div { display: grid; gap: 8px; padding-top: 10px; color: var(--text2); }
.ip-faq a { color: var(--base); }

/* ---- requirements ---- */
.ip-reqs { display: grid; gap: 10px; margin: 0; }
.ip-reqs > div { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 14px 16px; min-width: 0; }
.ip-reqs dt { font-weight: 700; }
.ip-reqs dd { margin: 4px 0 0; color: var(--text2); font-size: .92rem; overflow-wrap: anywhere; }
.ip-reqs code { font-size: .85em; background: var(--bg3); border-radius: 5px; padding: .1em .35em; color: var(--text); }
.ip-more { margin-top: 18px !important; display: flex; }
.ip-more .shop-cta { width: auto; }

/* ---- licence ---- */
/* Side by side, each licence card is as tall as its own content (no stretch). */
.ip-licgrid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ip-lcard { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ip-lcard.is-current { border-color: var(--store-accent); box-shadow: 0 0 0 3px var(--store-accent-soft); }
.ip-owned { margin: 0; font-size: .85rem; color: var(--text2, var(--text)); }
.ip-lcard h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.1rem; }
.ip-lcard .shop-cta { justify-self: start; }
.ip-lp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ip-lp__price { font: 600 1.9rem/1 var(--display); }
.ip-notes { margin: 18px 0 0; padding-inline-start: 1.1em; color: var(--text2); display: grid; gap: 4px; }

/* ---- changelog ---- */
.ip-cl { display: grid; gap: 14px; }
.ip-cl article { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 14px 16px; min-width: 0; }
.ip-cl__v { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.ip-cl__v time { color: var(--text2); font-size: .85rem; }
/* The version number in the mono face, so its digits line up. */
.ip-cl__v b { font: 500 .95rem var(--store-mono); }
.ip-cl__cat { margin: 10px 0 0; font-size: .8rem; font-weight: 600; letter-spacing: .02em; color: var(--text); }
.ip-cl ul { margin: 8px 0 0; padding-inline-start: 1.1em; color: var(--text2); display: grid; gap: 4px; }
/* A note in English keeps its own direction (dir="auto"), so on a right-to-left
   page its bullet sits on the left: the list has room for it on both sides. */
.ip-cl ul:dir(rtl) { padding-inline: 1.1em; }

/* ---- docs ---- */
.ip-doclinks { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.ip-doclinks a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; text-decoration: none; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 14px 16px; }
.ip-doclinks small { grid-column: 1; color: var(--text2); overflow-wrap: anywhere; }
.ip-doclinks .ip-ext { grid-column: 2; grid-row: 1 / span 2; }

/* ---- phone buy bar ---- */
.ip-pbar { display: none; }
/* The bar's other licences, and each licence card's unused Buy or switch
   link: hidden until platform.js picks them. */
.ip-pbar [data-licence-bar][hidden], .ip-lcard [data-licence-cta][hidden], .ip-lcard [data-licence-switch][hidden] { display: none; }
@media (max-width: 768px) {
  body.shop:has(.ip-pbar) { padding-bottom: calc(var(--shop-bottomnav-h) + 72px); }
  .ip-pbar { display: flex; align-items: center; gap: 12px; position: fixed; inset-inline: 0; bottom: var(--shop-bottomnav-h); z-index: 40; padding: 10px 16px; background: var(--bg2); border-top: 1px solid var(--border); box-shadow: var(--shadow-nav-stuck); }
  .ip-pbar__price { display: grid; min-width: 0; margin-inline-end: auto; }
  .ip-pbar__price b { font-size: 1.15rem; }
  .ip-pbar__price small { color: var(--text2); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ip-pbar .shop-cta { flex: none; }
}

@media (min-width: 40rem) {
  .ip-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ip-doclinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64rem) {
  .ip-inc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-licgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The phone bar shows only once the buy card has scrolled out of view
   (platform.js). Without script it simply stays. */
@media (max-width: 768px) {
  .chrome-js .ip-pbar:not(.is-on) { transform: translateY(calc(100% + var(--shop-bottomnav-h))); visibility: hidden; }
  .ip-pbar { transition: transform .2s ease, visibility .2s; }
}
@media (prefers-reduced-motion: reduce) { .ip-pbar { transition: none; } }

/* Desktop, layout v2 (cmo-0702): from 1080px, beside the rail, two columns
   62/38 at the top, then the rest at full width.
     left:  title block, product image, Description
     right: buy card, What you get, Payments (cards)
     below: every other section, across both columns (.ip-below's role)
   Placed by grid lines on the DOM as it is, so the phone order, the reading
   order and the tab order stay exactly as before. The rows:
     1 title + buy card, 2 image, 3 Description's start (and whatever of the
     buy card is taller than title + image), 4 What you get, 5 Payments,
     6 a 1fr row that takes only the rest of a long Description.
   Description spans 3-6 and the buy card 1-3: a grid item that spans a 1fr
   row sizes only that row, so a long Description never opens a gap between
   the right column's cards, and a tall buy card grows row 3 only (rows 1 and
   2 already fit what they hold), so Description starts right under the image.
   Below 1080px it is the one column of before. */
@media (min-width: 1080px) {
  .ip { display: grid; grid-template-columns: minmax(0, 62fr) minmax(300px, 38fr); grid-template-rows: auto auto auto auto auto 1fr; column-gap: 40px; align-content: start; align-items: start; }
  .ip > * { grid-column: 1 / -1; min-width: 0; }
  .ip > .ip-ihead { grid-column: 1; grid-row: 1; }
  .ip > .ip-media { grid-column: 1; grid-row: 2; }
  .ip > #description { grid-column: 1; grid-row: 3 / 7; padding-block-start: 16px; border-top: 0; }
  .ip > .ip-buycol { grid-column: 2; grid-row: 1 / 4; padding: 22px 0 16px; }
  .ip-buycard { position: sticky; top: calc(var(--pt-sticky-top, 0px) + 16px); }
  @media (max-height: 880px) { .ip-buycard { position: static; } }
  /* What you get and Payments: cards under the buy card, as in the mockup. */
  .ip > :is(#included, #payments, .ip-sec--note) { grid-column: 2; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--store-r); padding: 16px 20px; margin-block-end: 16px; }
  .ip > #included { grid-row: 4; }
  .ip > :is(#payments, .ip-sec--note) { grid-row: 5; }
  .ip > :is(#included, #payments) h2 { font-size: 1.15rem; }
  .ip > :is(#included, #payments) .ip-head { margin-bottom: 12px; }
  .ip > #included .ip-facts { margin-bottom: 12px; }
  /* The first full-width section keeps its hairline. The right column's
     cards draw their own edges. */
  .ip > :is(#included, #payments, .ip-sec--note) + .ip-sec { border-top: 1px solid var(--store-line); }
  .ip > :is(#included, #payments) { border-top: 1px solid var(--border); }
  /* The buy card that follows Description (platform.js adds .is-pin, then
     .is-past once the last card has passed the top): the card's column spans
     every top row and the empty ::before holds the card's own height in rows
     1-3, so What you get and Payments still start under it. The card stays
     put until .is-past, then sticks beside the rest of Description, so it
     never covers a card. Without script none of this applies. */
  .ip.is-pin::before { content: ""; grid-column: 2; grid-row: 1 / 4; height: var(--ip-buy-h, 0px); }
  .ip.is-pin > .ip-buycol { grid-row: 1 / 7; align-self: stretch; }
  .ip.is-pin .ip-buycard { position: static; }
  .ip.is-pin.is-past .ip-buycard { position: sticky; }
}
@media (min-width: 1080px) and (max-height: 880px) {
  .ip.is-pin.is-past .ip-buycard { position: static; }
}
/* When the card turns sticky it reappears at the top: a short fade (120ms),
   so it does not jump in mid-read. None for a reader who asked for reduced
   motion. */
@keyframes ip-pin-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1080px) {
  .ip.is-pin.is-past .ip-buycard { animation: ip-pin-in 120ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .ip.is-pin.is-past .ip-buycard { animation: none; }
}

.ip-note { color: var(--text2); font-size: .92rem; margin: -6px 0 14px !important; max-width: 62ch; }
/* ---- icon rows (owner pick (a), cto-0923; content cmo-0924) ----
   What you get's plugins, the one Payment gateways row and the Add-ons you
   can buy later: a 40px icon tile, the name (one line, cut with an ellipsis,
   in full in its title), the benefit under it (wraps, never cut), and at the
   inline end "Included" or the live price, on the name's line however far the
   benefit wraps (rows align to the top). Dividers, no boxes; the whole row
   is the link (at least 56px tall); a quiet tint on hover, no lift. Add-ons
   take two columns from 1080px. Below 390px the end drops under the name
   rather than squeezing it. Logical properties, so ar mirrors itself. */
.ip-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; }
.ip-row { border-block-end: 1px solid var(--store-line); min-width: 0; }
.ip-row__in { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: start; gap: 2px 14px; min-height: 56px; padding: 8px 6px; color: var(--store-ink); text-decoration: none; border-radius: 8px; box-sizing: border-box; }
a.ip-row__in:hover { background: var(--store-bg2); }
.ip-row__in:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }
.ip-row__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--store-accent-soft); color: var(--store-accent); display: grid; place-items: center; }
.ip-row__icon svg { width: 18px; height: 18px; }
.ip-row__text { display: grid; gap: 2px; min-width: 0; }
.ip-row__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-row__line { color: var(--store-muted); font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.ip-row__end { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 389.98px) {
  .ip-row__in { grid-template-columns: 40px minmax(0, 1fr); }
  .ip-row__end { grid-column: 2; }
}
/* The gateways row (tl-1007): its name stays on one line like the others and
   its end is just "Included"; the line under the name is the toggle (a plain
   details summary, so keyboard and no-script work), "{count} included: A, B,
   C…" with a small chevron after it. Opened, the names in the line give way
   to the full list under it, so none is shown twice. */
.ip-gw { min-width: 0; }
.ip-gw__sum { list-style: none; cursor: pointer; color: var(--store-muted); font-size: .88rem; line-height: 1.4; padding-block: 2px; border-radius: 4px; overflow-wrap: anywhere; }
.ip-gw__sum::-webkit-details-marker { display: none; }
.ip-gw__sum::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.ip-gw[open] > .ip-gw__sum::after { transform: translateY(1px) rotate(-135deg); }
.ip-gw[open] .ip-gw__peek { display: none; }
.ip-gw__sum:hover { color: var(--store-ink); }
.ip-gw__sum:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }
.ip-gw__all { margin: 4px 0 0; color: var(--store-muted); font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
/* "Show all {count} plugins / add-ons" (tl-1036): a details under the first
   rows, the rest opening in place; its summary reads "Show fewer" while
   open. A plain details, so it works by keyboard and without script. */
.ip-showall { margin-top: 4px; }
.ip-showall__sum { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 8px; font-weight: 600; color: var(--store-accent); }
.ip-showall__sum::-webkit-details-marker { display: none; }
.ip-showall__sum::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.ip-showall[open] > .ip-showall__sum::after { transform: translateY(1px) rotate(-135deg); }
.ip-showall[open] .ip-showall__all, .ip-showall:not([open]) .ip-showall__fewer { display: none; }
.ip-showall__sum:hover { text-decoration: underline; }
.ip-showall__sum:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }
@media (min-width: 1080px) {
  .ip > #addons .ip-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- buttons (v6): the store's radius, and its accent on the primary fill
   (Buy in the card, on the current licence card and in the phone bar). A
   secondary button keeps its outline and takes the accent on hover. ---- */
.ip .shop-cta { border-radius: var(--store-r-btn); }
.ip .shop-cta.is-primary { background: var(--store-accent); color: var(--store-accent-ink); }
.ip .shop-cta.is-primary:hover { background: var(--store-accent-d); }
.ip .shop-cta.is-secondary:hover { border-color: var(--store-accent); color: var(--store-accent); }
.ip .shop-cta:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }

/* ---- the sites a licence grants: under the price, quiet ---- */
.ip-bc-seats { font-size: inherit; font-weight: 600; color: inherit; }
.ip-seats { font-weight: 600; font-size: .92rem; }

/* ---- section navigation (v6) ----
   Built in the template from the sections that rendered: plain #anchor links,
   so it works without script and is crawlable. platform.js marks the current
   one with aria-current.
   Below 1080px: a sticky strip of pills under the store header that scrolls
   sideways (and runs right to left on an RTL page, as a flex row does).
   Each pill is capped at 22ch with an ellipsis (the full label is its
   title). From 1080px: a 200px rail beside the page, headed "On this page",
   with a 3px accent bar on the current section; there a label may wrap. */
.ip-frame { min-width: 0; }
.ip-secnav { position: sticky; top: var(--pt-sticky-top, 0px); z-index: 20; min-width: 0; background: var(--store-card-88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--store-line); }
.ip-secnav__t { display: none; }
.ip-secnav ol { list-style: none; margin: 0; padding: 8px var(--gap, 16px); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.ip-secnav ol::-webkit-scrollbar { display: none; }
.ip-secnav li { flex: none; }
.ip-secnav a { display: block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--store-ink); font: 600 .85rem/1 var(--store-body); padding: .6em .9em; border: 1px solid var(--store-line); border-radius: 999px; background: var(--store-card); }
.ip-secnav a[aria-current] { background: var(--store-accent); border-color: var(--store-accent); color: var(--store-accent-ink); }
/* Inside the 8px padding above, so the scroller never clips the ring. */
.ip-secnav a:focus-visible { outline: 3px solid var(--store-accent); outline-offset: 2px; }

@media (min-width: 1080px) {
  .ip-frame { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; align-items: start; max-width: 78rem; margin: 0 auto; padding-inline: var(--gap, 16px); }
  .ip-frame > .ip { max-width: none; margin: 0; padding-inline: 0; }
  .ip-secnav { top: calc(var(--pt-sticky-top, 0px) + 20px); z-index: auto; padding-block: 28px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .ip-secnav__t { display: block; font: 600 .72rem/1 var(--store-body); letter-spacing: .12em; text-transform: uppercase; color: var(--store-muted); margin: 0 0 10px; padding-inline-start: calc(.7em + 3px); }
  .ip-secnav ol { flex-direction: column; gap: 2px; padding: 0; overflow: visible; }
  .ip-secnav a { display: block; width: 100%; max-width: none; white-space: normal; line-height: 1.3; font-weight: 500; color: var(--store-muted); background: none; border: 0; border-inline-start: 3px solid transparent; border-radius: 0; border-start-end-radius: 8px; border-end-end-radius: 8px; padding: .55em .7em; }
  .ip-secnav a:hover { background: var(--store-bg2); color: var(--store-ink); }
  .ip-secnav a[aria-current] { background: var(--store-accent-soft); color: var(--store-ink); border-inline-start-color: var(--store-accent); font-weight: 600; }
  .ip-sec { scroll-margin-top: calc(var(--pt-sticky-top, 0px) + 16px); }
}
