/*
 * Listing page (Sunrise template, sunrise/listing/page.blade.php, behind config('redesign.listing')).
 *
 * Source: the <style> block of the owner-approved mockup,
 * docs/redesign/007-listing/mockup-draft-v4-2026-11-10/approved-mockup.fragment.html (approved 2026-11-10),
 * reformatted one rule per line (a selector list stays on its line) so diffs are reviewable.
 * Everything is scoped under .listing-page and every colour is a var(--sr-*) token
 * (tests/Feature/ListingTemplateFlagTest greps this file for literal colours).
 *
 * Left out on purpose (docs/redesign/007-listing/PLAN.md section 5):
 *  - every .mk-* rule (the fragment's compact rendering of the offer rows and website groups, and the
 *    @media (min-width:1180px) and two @container (min-width:650px) blocks that only held .mk-* rules).
 *    The page renders the shipped Blade components x-gpn.mk-offer / x-gpn.mk-group, styled by their
 *    Tailwind utilities in public/css/sunrise.css; PLAN task 8 checks they need nothing from these.
 *
 * Adapted (one rule): the template has no inner <main> (sunrise/layout.blade.php already wraps the page
 * in <main id="main">), so the fragment's ".listing-page main{padding-bottom:88px}" (room for the fixed
 * buy bar) is written as ".listing-page>.wrap{padding-bottom:88px}".
 *
 * Task 5 (purchase card): the fragment's ":has()" rule that made the first .purchase-options button
 * primary when no .buy-action is visible (insertion-only listings) is replaced by a class rule; the
 * view puts .primary on the insertion action itself (sunrise/listing/purchase.blade.php). The dialog's
 * actions wrap on narrow screens. The fragment's .purchase class is .purchase-card (the view's id too):
 * a quoted "purchase" in the page reads as a GA4 purchase event to Ga4ViewItemEventTest's guard.
 *
 * Task 6, step 0: (a) the fixed buy bar sits over the site footer, which is outside .listing-page, so
 * the document gets bottom padding the bar's height whenever the bar is rendered and fixed: the two
 * body:has(.listing-page>.mobile-buy) rules at the end. With them, the two html:has(.listing-page>.mobile-buy)
 * rules (rendered-page gate, finding 2) give the root scroller scroll-padding-bottom of the bar's height plus
 * 8px under the same two conditions, so a control focused by Tab is scrolled clear of the bar, its 3px focus
 * outline at 4px offset included (the extra 8px also absorbs subpixel layout positions). These are the
 * only selectors here not under .listing-page (ListingTemplateFlagTest allows exactly these two). (b) the sticky card's top is var(--purchase-top,16px);
 * public/js/gpn-listing.js sets it to min(16px, window height - card height - 16px), so a card taller than
 * the window (order-options disclosure open) sticks with its bottom edge in view. No inner scroll region.
 *
 * Sticky threshold (owner decision 2026-11-11; it replaces the fragment's 840px): the card is sticky only
 * on windows at least 1400px tall, where a scroll position exists with the whole seller card visible under
 * the stuck card, so Follow / Block / Report user can be reached. Re-measured after the rendered-page gate
 * (finding 4; the first 1330px figure used a 494px seller card at 1440 wide only) on harness renders at
 * widths 768, 800, 1024, 1100, 1180, 1280 and 1440, states buyer, link insertion, buyer blocking the seller,
 * long title with every badge, seller-account member, owner, owner with the Link Insertion launch note and
 * guest, order-options disclosure closed: tallest purchase card 798.34px (owner, launch note, 768/800 wide;
 * 787.09px from 1024), tallest seller card 549.16px (member viewer: Follow / Block / Report user, every badge,
 * reply rate); 16 + 798.34 + 16 + 549.16 + 16 = 1395.5, rounded up to the next 10 = 1400. Below 1400px
 * (max-height:1399px) the column is static and the fixed buy bar shows at every width, the state windows
 * under 840px had before. Three blocks carry the boundary and must stay in step: the static card, the desktop
 * buy bar, and its body padding with the root's scroll padding at the end (ListingTemplateFlagTest pins all).
 *
 * Reading order (rendered-page gate, finding 3): the grid's children are, in DOM order, the metrics strip,
 * the purchase column (purchase card, seller card) and the main column (.content), so sequential focus and
 * screen readers reach the price and Buy right after the metrics. Desktop (761px and wider) keeps the
 * fragment's picture by explicit placement: metrics at column 1 row 1, .content at column 1 row 2, the
 * purchase column at column 2 spanning both rows (align-self:stretch: the sticky card needs the full-height
 * column). Rows are "auto 1fr": the second row takes whatever the purchase column needs beyond the metrics, so
 * a short main column never opens a gap under the metrics, and with no metrics row the main column starts at
 * the top. Only column-gap is set, so the left column keeps the metrics' own 27px bottom margin as its only
 * spacing. Phones (760px and narrower) keep the approved visual order with flex order (metrics 0, purchase
 * card 1, description 2, seller card 3, everything else 4); one residual remains: the seller card is focused
 * before the description's links, because it precedes them in the DOM and order does not move focus.
 *
 * Task 8 (Other sellers, Similar websites): the shipped mk-group / mk-offer switch between their
 * narrow and one-row layouts at the md viewport (768px); in this page's main column a group is 372px
 * wide at a 768px window, so the one-row header crushed the domain to ~87px and its arrow ran into
 * the DR figure. The view wraps each group in div[data-similar-site] and each offer list in
 * .offer-panel; both are size containers, and the "Container-width layout" rules at the end apply the
 * components' own narrow layout (the values of their below-md utilities) below 650px of container
 * width and the group header's one-row layout from 650px, as the fragment draws it. They select the
 * components' data hooks (no .mk-* class: the components have none). Save icons inside the rows keep
 * the components' 16px / stroke 2 (".listing-page svg" would make them 18px / 1.7).
 *
 * Bump config('gpnow.listing.asset_version') whenever this file changes.
 */
.listing-page{font:400 14px/1.6 var(--sr-font-body);color:var(--sr-body);background:var(--sr-ground);min-width:0}
.listing-page *{box-sizing:border-box}
.listing-page [hidden]{display:none!important}
.listing-page :is(h1,h2,h3,p,dl,dd,ul){margin:0}
.listing-page :is(h1,h2,h3){font-family:var(--sr-font-display);color:var(--sr-ink);font-weight:500;letter-spacing:-.035em;line-height:1.2}
.listing-page h1{font-size:clamp(32px,4vw,50px)}
.listing-page h2{font-size:24px}
.listing-page h3{font-size:18px}
.listing-page a{color:var(--sr-accent);text-underline-offset:4px}
.listing-page button,.listing-page input,.listing-page select,.listing-page textarea{font:inherit;color:inherit}
.listing-page :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--sr-accent);outline-offset:4px}
.listing-page button,.listing-page summary{cursor:pointer}
.listing-page svg{width:18px;height:18px;flex:none;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.listing-page .wrap{max-width:1240px;padding:0 28px;margin:auto}
/* A gap above the site footer at every window height (the section rhythm, 34px); the (max-height:1399px) block below raises it to 88px to clear the fixed buy bar. */
.listing-page>.wrap{padding-bottom:34px}
.listing-page .row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.listing-page .spread{justify-content:space-between}
.listing-page .muted{color:var(--sr-muted)}
.listing-page .small{font-size:12px}
.listing-page .eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sr-muted)}
.listing-page .protected{color:var(--sr-protected)}
.listing-page .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;background:var(--sr-surface);border:1px solid var(--sr-line);border-radius:var(--sr-radius);color:var(--sr-ink);font-weight:700;text-decoration:none;font-size:13px;line-height:1.4}
.listing-page .button:hover{background:var(--sr-soft)}
.listing-page .primary{background:var(--sr-action);color:var(--sr-on-action);border-color:var(--sr-action)}
.listing-page .primary:hover{background:var(--sr-action);text-decoration:underline}
.listing-page .icon-button{padding:0;width:44px;flex:none}
.listing-page .text-button{border:0;background:var(--sr-ground);color:var(--sr-accent);min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}
.listing-page .chip{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;border-radius:var(--sr-radius-pill);background:var(--sr-soft);color:var(--sr-body);border:1px solid var(--sr-line);text-decoration:none;font-size:12px}
.listing-page .niche{background:var(--sr-pill-sky);color:var(--sr-pill-text-sky);border-color:var(--sr-pill-sky)}
.listing-page .badge{display:inline-flex;align-items:center;padding:3px 7px;font-size:10px;font-weight:700;line-height:1.5;text-transform:uppercase;letter-spacing:.04em;border-radius:4px;background:var(--sr-soft);color:var(--sr-muted);border:1px solid var(--sr-line)}
.listing-page .badge.top{background:var(--sr-action);color:var(--sr-on-action);border-color:var(--sr-action)}
.listing-page .breadcrumbs{display:flex;gap:9px;flex-wrap:wrap;align-items:center;padding:19px 0 25px;font-size:12px;color:var(--sr-muted)}
.listing-page .breadcrumbs a{color:var(--sr-muted);min-height:24px;display:inline-flex;align-items:center}
.listing-page .intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:30px}
.listing-page .title-line{display:flex;gap:18px;align-items:center;margin:8px 0 12px}
.listing-page .favicon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;flex:none;border-radius:var(--sr-radius);background:var(--sr-soft);border:1px solid var(--sr-line);color:var(--sr-ink);font:700 26px var(--sr-font-display)}
.listing-page .title-line h1{overflow-wrap:anywhere}
.listing-page .intro-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.listing-page .intro-meta>a{min-height:44px;display:inline-flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.listing-page .save-cluster{text-align:right;padding-top:30px}
.listing-page .save-cluster small{display:block;margin-top:8px;font-size:11px;color:var(--sr-muted)}
.listing-page [aria-pressed=true][data-save]{background:var(--sr-accent-wash);border-color:var(--sr-section-line);color:var(--sr-accent)}
.listing-page [aria-pressed=true][data-save] svg{fill:var(--sr-accent)}
.listing-page .layout{display:grid;grid-template-columns:minmax(0,1fr) 358px;grid-template-rows:auto 1fr;column-gap:30px;align-items:start}
.listing-page .layout>.metrics{grid-column:1;grid-row:1;min-width:0}
.listing-page .content{min-width:0;grid-column:1;grid-row:2}
.listing-page .purchase-column{grid-column:2;grid-row:1/span 2}
.listing-page .purchase-column{position:sticky;top:20px;border-radius:var(--sr-radius)}
.listing-page .purchase-card{border:1px solid var(--sr-section-line);border-top:4px solid var(--sr-action);border-radius:var(--sr-radius);background:var(--sr-surface);padding:23px}
.listing-page .price{font:500 40px/1.2 var(--sr-font-display);letter-spacing:-.055em;color:var(--sr-ink);margin:6px 0 2px;overflow-wrap:anywhere}
.listing-page .buy-action{width:100%;font-size:16px;min-height:52px;margin-top:19px}
.listing-page .buy-action[aria-disabled=true]{background:var(--sr-soft);color:var(--sr-muted);border-color:var(--sr-line);cursor:not-allowed}
.listing-page .question{display:flex;justify-content:center;align-items:center;gap:6px;min-height:44px;font-size:12px;font-weight:700}
.listing-page .purchase-options{display:grid;gap:8px;margin:8px 0 16px}
.listing-page .purchase-options .button{font-size:12px}
.listing-page .writing{font-size:12px;margin-top:14px}
.listing-page .protection{margin-top:20px;padding-top:18px;border-top:1px solid var(--sr-section-line)}
.listing-page .protection h2{font:700 13px/1.5 var(--sr-font-body);letter-spacing:0;color:var(--sr-protected);display:flex;align-items:flex-start;gap:8px}
.listing-page .protection p{font-size:11px;color:var(--sr-muted);line-height:1.75;margin-top:11px}
.listing-page .protection strong{color:var(--sr-protected)}
.listing-page .metrics{border:1px solid var(--sr-line);border-radius:var(--sr-radius);overflow:hidden;margin-bottom:27px}
.listing-page .metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--sr-soft)}
.listing-page .metric{padding:18px 17px;border-right:1px solid var(--sr-line);border-bottom:1px solid var(--sr-line);min-width:0}
.listing-page .metric:nth-child(3n){border-right:0}
.listing-page .metric dd{font:500 20px/1.2 var(--sr-font-display);color:var(--sr-ink);letter-spacing:-.035em;overflow-wrap:anywhere;margin-top:4px}
.listing-page .metric dt{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--sr-muted)}
.listing-page .metric small{display:block;font-size:10px;color:var(--sr-muted);margin-top:4px}
/* Build (task 4): each figure's source sits in a second <dd> (a div inside a dl holds only dt / dd); it keeps the fragment's <small> look. */
.listing-page .metric dd+dd{margin-top:0;font:inherit;letter-spacing:normal}
.listing-page .strength{padding:16px;background:var(--sr-accent-wash);border-bottom:1px solid var(--sr-line)}
.listing-page .strength strong{color:var(--sr-accent)}
.listing-page summary{min-height:48px;display:flex;align-items:center;gap:10px;font-weight:700;color:var(--sr-ink);font-size:12px;list-style:none}
.listing-page summary::-webkit-details-marker{display:none}
.listing-page summary:after{content:'+';margin-left:auto;font-size:20px;color:var(--sr-accent)}
.listing-page details[open]>summary:after{content:'−'}
.listing-page .full-metrics>summary{padding:8px 17px}
.listing-page .full-metrics summary span{font-weight:400;color:var(--sr-muted);font-size:11px}
.listing-page .metric-tables{padding:0 17px 15px}
.listing-page table{border-collapse:collapse;width:100%;font-size:12px}
.listing-page caption{text-align:left;font-weight:700;color:var(--sr-ink);padding:14px 0 8px}
.listing-page th,.listing-page td{text-align:left;vertical-align:top;padding:11px 0;border-bottom:1px solid var(--sr-line);overflow-wrap:anywhere}
.listing-page th{font-weight:500;color:var(--sr-muted);width:42%;padding-right:15px}
.listing-page td{color:var(--sr-ink)}
.listing-page .section{margin-bottom:34px}
.listing-page .section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.listing-page .section-head a{font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:4px}
.listing-page .section-head h2{min-width:0;overflow-wrap:anywhere}
.listing-page .section p+p{margin-top:14px}
.listing-page .section-copy{font-size:14px;line-height:1.85}
.listing-page .section-copy ul{padding:0 0 0 20px;margin-top:12px}
.listing-page .tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
.listing-page .subtle-panel{padding:22px;background:var(--sr-soft);border:1px solid var(--sr-line);border-radius:var(--sr-radius)}
.listing-page .metadata{font-size:12px;color:var(--sr-muted);margin-top:12px}
.listing-page .metadata strong{color:var(--sr-body)}
.listing-page .screenshot{margin:20px 0 0}
.listing-page .screenshot img{display:block;width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;border:1px solid var(--sr-line);border-radius:var(--sr-radius)}
.listing-page .screenshot figcaption{font-size:11px;color:var(--sr-muted);padding-top:8px}
.listing-page .seller{padding:24px 0 0}
.listing-page .seller h2{font-size:18px}
.listing-page .seller-id{display:flex;align-items:center;gap:12px;margin-top:15px}
.listing-page .avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--sr-pill-violet);color:var(--sr-pill-text-violet);font:600 18px var(--sr-font-display);flex:none}
.listing-page .seller-name{font-weight:700;text-decoration:none;color:var(--sr-ink)}
.listing-page .seller-meta{font-size:11px;color:var(--sr-muted);margin:12px 0}
.listing-page .seller-badges{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.listing-page .seller-stats{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--sr-line);border-radius:var(--sr-radius);overflow:hidden;margin:15px 0 11px}
.listing-page .seller-stats>div{padding:10px;background:var(--sr-soft);border-bottom:1px solid var(--sr-line)}
.listing-page .seller-stats dt{font-size:10px;color:var(--sr-muted)}
.listing-page .seller-stats dd{font-family:var(--sr-font-display);font-size:15px;color:var(--sr-ink);overflow-wrap:anywhere}
.listing-page .seller-actions{gap:16px}
.listing-page .seller-actions button{font-size:11px;background:var(--sr-surface)}
.listing-page .performance{margin-top:9px;border-top:1px solid var(--sr-line);border-bottom:1px solid var(--sr-line)}
.listing-page .loading{padding:23px 0;color:var(--sr-muted)}
.listing-page .skeleton{height:10px;background:var(--sr-line);margin:19px 0;border-radius:var(--sr-radius);width:82%}
.listing-page .skeleton:nth-child(2n){width:62%}
.listing-page .status-banner{padding:17px 20px;border:1px solid var(--sr-line);border-left:4px solid var(--sr-amber);background:var(--sr-soft);border-radius:var(--sr-radius);margin-bottom:22px;font-size:12px;color:var(--sr-body)}
.listing-page .status-banner strong{color:var(--sr-amber)}
.listing-page .ribbon{color:var(--sr-amber);border-bottom:1px solid var(--sr-line);font-weight:700;letter-spacing:.08em;font-size:11px;padding-bottom:10px;margin-bottom:12px}
/* Similar websites renders normally (gate note 6): skipped by content-visibility, Lighthouse's target-size audit read stale rects and reported the share links overlapping its Save buttons. */
.listing-page .rating{content-visibility:auto;contain-intrinsic-size:auto 330px}
.listing-page .rating-box{padding:24px;border:1px solid var(--sr-line);border-radius:var(--sr-radius)}
.listing-page .rating-score{font:500 34px var(--sr-font-display);color:var(--sr-ink)}
.listing-page .rating-summary{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center;padding:18px 0}
.listing-page .rating-label{color:var(--sr-protected);font-weight:700;font-size:12px}
.listing-page .rating-stats{display:flex;gap:25px;font-size:12px;color:var(--sr-muted)}
.listing-page .rating-stats strong{display:block;color:var(--sr-ink);font:500 20px var(--sr-font-display)}
.listing-page .warning{padding:13px 15px;background:var(--sr-soft);border-left:3px solid var(--sr-amber);color:var(--sr-amber);font-size:12px;margin-top:16px}
.listing-page .listing-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.listing-page .listing-record dt{font-size:11px;color:var(--sr-muted)}
.listing-page .listing-record dd{font-size:13px;color:var(--sr-ink);margin-top:4px}
/* Task 7: description, details, site metadata, rating, "This listing" (what the fragment's inline styles and Font Awesome did) */
.listing-page .section-copy{overflow-wrap:anywhere}
.listing-page .section-copy :is(h2,h3,h4){font-size:17px;margin:18px 0 6px}
.listing-page .section-copy ol{padding:0 0 0 20px;margin-top:12px;list-style:decimal}
.listing-page .section-copy ul{list-style:disc}
.listing-page .section-copy blockquote{margin:12px 0;padding-left:14px;border-left:3px solid var(--sr-line)}
.listing-page .external:after{content:"↗";content:"↗"/"";margin-left:4px}
.listing-page #placement-details td>a{margin-block:-11px}
.listing-page .section td p+p{margin-top:4px}
.listing-page .subtle-panel>h2+p{margin-top:12px}
.listing-page .subtle-panel>.metadata:first-child{margin-top:0}
.listing-page .site-title{font-weight:600;color:var(--sr-ink)}
.listing-page .listing-note{margin-top:14px}
.listing-page .rating-stars{display:flex;justify-content:flex-start;gap:2px;margin-bottom:6px;color:var(--sr-star-stroke)}
.listing-page .rating-stars svg{width:16px;height:16px}
.listing-page .rating-stars .is-full path,.listing-page .rating-stars .star-half{fill:var(--sr-star-fill)}
.listing-page .warning p{margin-top:5px}
.listing-page .warning[data-risk-level=high_risk]{background:var(--sr-pill-pink);border-left-color:var(--sr-pill-text-pink);color:var(--sr-pill-text-pink)}
.listing-page .warning:not([data-risk-level=high_risk]):not([data-risk-level=medium_risk]){background:var(--sr-pill-sky);border-left-color:var(--sr-pill-text-sky);color:var(--sr-pill-text-sky)}
.listing-page .rating-foot{margin-top:15px;padding-top:15px;border-top:1px solid var(--sr-line)}
.listing-page .rating-foot a{min-height:44px;display:inline-flex;align-items:center;font-size:12px}
.listing-page .rating-issues{color:var(--sr-amber)}
.listing-page .share{padding-top:18px;border-top:1px solid var(--sr-line);display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.listing-page .share a,.listing-page .share button{font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.listing-page .share a{text-decoration:none}
.listing-page .share button{background:var(--sr-ground);border:0;color:var(--sr-accent);padding:0}
.listing-page .owner-notice{padding:20px;background:var(--sr-soft);border:1px solid var(--sr-line);border-radius:var(--sr-radius);font-size:12px;margin:26px 0}
.listing-page .owner-notice h2{font-size:16px;margin-bottom:7px}
/* Containers around the shipped mk-group / mk-offer components (the components' own .mk-* rules are left out: see the header). */
.listing-page .offer-panel{border:1px solid var(--sr-line);border-radius:var(--sr-radius);overflow:hidden}
.listing-page .section-lede{margin-bottom:12px}
/* Similar websites: one full-width group per row (the shipped mk-group lays its header out by width). */
.listing-page .similar-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
/* The offers state's list (sunrise/listing/all-offers): sort links under the heading, Show more as the panel's last row, the zero-offer panel. */
.listing-page .sort{display:flex;align-items:center;gap:16px;font-size:12px;margin-bottom:14px}
.listing-page .sort a{min-height:44px;display:inline-flex;align-items:center}
.listing-page .sort a[aria-current]{font-weight:700;color:var(--sr-ink);text-decoration-thickness:2px}
.listing-page .more{width:100%;border:0;border-top:1px solid var(--sr-line);background:var(--sr-soft);border-radius:0;color:var(--sr-accent)}
.listing-page .offers-empty{padding:22px;border:1px solid var(--sr-line);border-radius:var(--sr-radius);background:var(--sr-surface)}
.listing-page .offers-empty h3{margin-bottom:6px;overflow-wrap:anywhere}
.listing-page .offers-empty p{margin:0 0 14px;font-size:13px;color:var(--sr-muted)}
.listing-page .discovery-links{display:grid;gap:4px;margin-top:18px;padding-top:15px;border-top:1px solid var(--sr-line)}
.listing-page .discovery-links a{display:flex;align-items:center;gap:4px;min-height:44px;font-size:12px;min-width:0;overflow-wrap:anywhere}
.listing-page .mobile-buy{display:none}
.listing-page .dialog{background:var(--sr-surface);color:var(--sr-body);border:1px solid var(--sr-line);border-radius:var(--sr-radius);padding:26px;width:min(510px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:var(--sr-shadow-modal)}
.listing-page .dialog::backdrop{background:var(--sr-scrim)}
.listing-page .dialog h2{font-size:24px}
.listing-page .dialog label{display:block;font-size:12px;font-weight:700;margin:20px 0 7px;color:var(--sr-ink)}
.listing-page .dialog :is(select,textarea){width:100%;min-height:44px;background:var(--sr-soft);border:1px solid var(--sr-muted);border-radius:8px;padding:10px;font-size:13px}
.listing-page .dialog textarea{resize:vertical;min-height:100px}
.listing-page .dialog .form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}
.listing-page .dialog .hint{font-size:12px;margin-top:10px}
.listing-page .sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.listing-page .toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);padding:12px 20px;max-width:calc(100% - 32px);width:max-content;background:var(--sr-deep);color:var(--sr-teal-text);border-radius:var(--sr-radius);z-index:30;font-size:12px}
@media(max-width:980px){
    .listing-page .layout{grid-template-columns:minmax(0,1fr) 330px;column-gap:22px}
    .listing-page .purchase-card{padding:19px}
    .listing-page .wrap{padding-inline:22px}
}
@media(max-width:760px){
    .listing-page .wrap{padding-inline:18px}
    .listing-page .breadcrumbs{font-size:10px;gap:6px;padding:15px 0 20px}
    .listing-page .intro{display:block;padding-bottom:20px}
    .listing-page .title-line{gap:12px;margin:7px 0}
    .listing-page .favicon{width:44px;height:44px;font-size:21px}
    .listing-page .intro-meta{gap:9px;font-size:12px}
    .listing-page .save-cluster{display:flex;align-items:center;gap:12px;padding-top:13px;text-align:left}
    .listing-page .save-cluster small{margin:0}
    .listing-page .layout{display:flex;flex-direction:column;gap:0}
    .listing-page .content{width:100%}
    .listing-page .purchase-column{position:static;max-height:none;overflow:visible;width:100%;order:-1;margin-bottom:27px}
    .listing-page .purchase-card{padding:19px}
    .listing-page .price{font-size:32px}
    .listing-page .buy-action{margin-top:14px}
    .listing-page .protection{margin-top:16px}
    .listing-page .seller{padding-top:20px}
    .listing-page .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .listing-page .metric{padding:15px 12px}
    .listing-page .metric:nth-child(3n){border-right:1px solid var(--sr-line)}
    .listing-page .metric:nth-child(2n){border-right:0}
    .listing-page .metric dd{font-size:20px}
    .listing-page .full-metrics summary span{display:none}
    .listing-page .section{margin-bottom:29px}
    .listing-page h2{font-size:21px}
    .listing-page .section-head{align-items:flex-start;flex-wrap:wrap;gap:5px}
    .listing-page .section-head a{min-height:44px}
    .listing-page .section-copy{font-size:13px}
    .listing-page .subtle-panel{padding:18px}
    .listing-page .rating-box{padding:18px}
    .listing-page .rating-summary{grid-template-columns:1fr;gap:15px}
    .listing-page .rating-stats{gap:18px}
    .listing-page .share{gap:13px}
    .listing-page .mobile-buy{display:flex;position:fixed;z-index:15;bottom:0;left:0;right:0;align-items:center;gap:12px;justify-content:space-between;padding:12px 18px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--sr-section-line);background:var(--sr-surface)}
    .listing-page .mobile-buy .button{margin:0;min-height:48px;font-size:13px;flex:1;width:auto}
    .listing-page .mobile-buy .mobile-domain{font-size:10px;max-width:86px;min-width:0;color:var(--sr-muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
    .listing-page .toast{bottom:88px}
    .listing-page .seller-actions{gap:18px}
    .listing-page .status-banner{padding:14px}
    .listing-page .dialog{padding:19px}
    .listing-page .sort{gap:13px}
}
@media(prefers-reduced-motion:reduce){
    .listing-page *{scroll-behavior:auto!important}
}
/* Phones: the approved visual order, by flex order over the DOM's reading order (see the header; the seller card's focus before the description is the known residual). */
@media(max-width:760px){
    .listing-page .layout{display:flex}
    .listing-page .content,.listing-page .purchase-column{display:contents}
    .listing-page .metrics{order:0;width:100%}
    .listing-page .purchase-card{order:1;width:100%;margin-bottom:28px}
    .listing-page .description{order:2}
    .listing-page .seller{order:3;width:100%;padding:0 0 25px}
    .listing-page .section{order:4;width:100%}
    .listing-page .description{order:2}
    .listing-page #all-offers{order:2}
    /* The guest "Website owner?" notice is no .section; without this it kept order 0 and sat between the metrics and the purchase card. Last block, as on desktop. */
    .listing-page .owner-notice{order:4;width:100%}
}
.listing-page td a{min-height:44px;display:inline-flex;align-items:center}
.listing-page .sr-only:focus-visible{position:fixed;top:8px;left:8px;z-index:40;width:auto;height:auto;margin:0;clip-path:none;padding:12px;background:var(--sr-surface);color:var(--sr-accent)}
@media(max-width:760px){
    .listing-page .metric dd{font-size:17px}
}
/* v2/v3: sticky purchase card (windows 1400px and taller; see the header) with the seller card in page flow, width-aware reused offer rows, real inline performance that grows with its content. */
.listing-page .purchase-column{position:static;align-self:stretch}
.listing-page .purchase-card{position:sticky;top:var(--purchase-top,16px);z-index:2;box-shadow:0 0 0 16px var(--sr-ground)}
@media(max-height:1399px){
    .listing-page .purchase-card{position:static;box-shadow:none}
}
@media(min-width:761px) and (max-height:1399px){
    .listing-page .mobile-buy{display:flex;position:fixed;z-index:15;bottom:0;left:0;right:0;align-items:center;justify-content:center;gap:16px;min-height:72px;padding:12px 28px;border-top:1px solid var(--sr-section-line);background:var(--sr-surface)}
    .listing-page .mobile-buy .mobile-domain{font-size:12px;max-width:none;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .listing-page .mobile-buy>.button{flex:0 1 360px;width:auto;margin:0;min-height:48px;font-size:14px}
    .listing-page>.wrap{padding-bottom:88px}
}
.listing-page .similar-more{width:100%;margin-top:12px;color:var(--sr-accent)}
.listing-page a.text-button{display:inline-flex;align-items:center}
.listing-page .purchase-column>.seller{padding-inline:4px}
.listing-page .purchase-options>.button.primary{font-size:16px;min-height:52px;text-align:center}
.listing-page .purchase-column .performance-jump{display:flex;font-size:12px;align-items:center;gap:4px;min-height:48px}
.listing-page .buy-action:disabled{color:var(--sr-muted);background:var(--sr-soft);border-color:var(--sr-line);cursor:not-allowed}
.listing-page .purchase-help{border-top:1px solid var(--sr-line);margin-top:8px}
.listing-page .purchase-help p{font-size:12px;line-height:1.65;margin:0 0 12px}
.listing-page .purchase-help p+p{margin-top:12px}
.listing-page .owner-preview-note{font-size:12px;padding:12px;background:var(--sr-accent-wash);color:var(--sr-accent);border:1px solid var(--sr-section-line);border-radius:var(--sr-radius)}
.listing-page .avatar{position:relative;overflow:hidden}
.listing-page .avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.listing-page .provider-logo{object-fit:contain;object-position:left;background:var(--sr-metric-marks-ground);padding:3px;border-radius:4px}
.listing-page .performance-section{padding:22px;border:1px solid var(--sr-line);border-radius:var(--sr-radius);background:var(--sr-surface)}
.listing-page .performance-section>.performance{margin-top:10px;border:0}
.listing-page .performance-viewport{border-top:1px solid var(--sr-line)}
.listing-page .performance-content,.listing-page .performance-loading{padding:18px 12px 18px 0}
.listing-page .performance-loading{min-height:640px;color:var(--sr-muted)}
.listing-page .performance-more{border-top:1px solid var(--sr-line);margin-top:14px}
.listing-page .performance-more>summary{min-height:56px}
.listing-page .performance-more>summary h3{font-size:18px;margin:0}
.listing-page .performance-more .performance-heading{margin-top:0;padding-top:0}
.listing-page .performance-more .performance-heading:empty{display:none}
.listing-page .performance-identity{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}
.listing-page .performance-identity>div{flex:1;min-width:180px}
.listing-page .performance-heading{padding:14px 0 9px;border-bottom:1px solid var(--sr-line);margin:12px 0}
.listing-page .performance-heading h3{font-size:18px;margin-bottom:5px}
.listing-page .performance-heading a{display:inline-flex;min-height:44px;align-items:center}
.listing-page .performance-kpis{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.listing-page .performance-kpis>div{padding:14px;border:1px solid var(--sr-line);background:var(--sr-soft);border-radius:var(--sr-radius);min-width:0;overflow-wrap:anywhere}
.listing-page .performance-kpis strong{display:block;font:500 22px var(--sr-font-display);color:var(--sr-ink);margin:6px 0}
.listing-page .performance-kpis p{font-size:11px;color:var(--sr-muted);line-height:1.7;margin-top:8px}
.listing-page .performance-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:15px 0}
.listing-page .performance-facts>div{min-width:0;border-bottom:1px solid var(--sr-line);padding-bottom:12px;overflow-wrap:anywhere}
.listing-page .performance-facts dt{font-size:12px;color:var(--sr-muted)}
.listing-page .performance-facts dd{font-size:14px;color:var(--sr-ink);margin:5px 0}
.listing-page .performance-record{margin-top:20px;padding:15px;background:var(--sr-soft);font-size:12px;border-radius:var(--sr-radius)}
.listing-page .published-post{display:flex;justify-content:space-between;min-height:44px;align-items:center;gap:12px;font-size:12px;border-bottom:1px solid var(--sr-line)}
.listing-page .screenshot img{background:var(--sr-soft)}
.listing-page .dialog p{margin-top:16px}
.listing-page .dialog .form-actions{flex-wrap:wrap}
.listing-page .seller-actions form{display:inline-flex;margin:0}
.listing-page .mobile-buy button:disabled{background:var(--sr-soft);color:var(--sr-muted);border-color:var(--sr-line)}
@media(max-width:760px){
    .listing-page .purchase-column{display:contents}
    .listing-page .purchase-card{position:static;box-shadow:none}
    .listing-page .performance-section{order:4;padding:18px}
    .listing-page .performance-loading{min-height:720px}
    .listing-page .performance-kpis,.listing-page .performance-facts{grid-template-columns:1fr}
    .listing-page .performance-kpis strong{font-size:20px}
    .listing-page .mobile-buy>.button{min-width:0;width:auto;font-size:12px;margin:0}
    .listing-page .mobile-buy{min-height:72px}
    .listing-page .screenshot{order:4}
}
/* Task 6 (seller card, inline performance): build rules the fragment does not draw. */
.listing-page .seller-name{display:inline-flex;align-items:center;min-height:44px}
.listing-page .seller-id .protected{margin:0}
.listing-page .seller-stats dd+dd{font:inherit;font-size:10px;color:var(--sr-muted)}
.listing-page .seller-actions [aria-pressed=true]{font-weight:700}
.listing-page [aria-busy=true][data-follow]{cursor:progress}
.listing-page .badge.caution{color:var(--sr-amber);border-color:var(--sr-amber)}
.listing-page .performance-content{overflow:visible}
.listing-page .performance-error{display:grid;gap:12px;padding:18px 0;color:var(--sr-body)}
.listing-page .performance-error .row a{min-height:44px;display:inline-flex;align-items:center}
.listing-page .performance-facts dd+dd{font-size:11px;color:var(--sr-muted);line-height:1.6}
.listing-page .performance-kpis>div>span:first-child{display:block}
.listing-page .performance-bio{white-space:pre-line}
.listing-page .performance-domains{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0;font-size:12px}
.listing-page .performance-domains li{padding:2px 9px;border:1px solid var(--sr-line);border-radius:var(--sr-radius-pill);background:var(--sr-soft)}
.listing-page .performance-identity .seller-badges{margin:6px 0 0}
.listing-page .performance-section>details>summary{font-size:13px}
/* Task 6 step 0 (a): room under the site footer for the fixed buy bar. The footer is outside .listing-page,
   so this is the one rule on body; it applies only while the page renders the bar (:has) and only under the
   media conditions that make it fixed (the two blocks above that show .mobile-buy). Bar height: 12px + 48px
   button + 12px (or the safe-area inset) padding + 1px border; at desktop widths 72px min-height + 1px border.
   Gate finding 2: under the same conditions the root scroller gets scroll-padding-bottom of the bar's height
   plus 8px (the 3px focus outline at 4px offset, and a subpixel seam), so a control focused by Tab (or scrolled
   to) stops above the bar, outline included, instead of under it. */
@media(max-width:760px){
    body:has(.listing-page>.mobile-buy){padding-bottom:calc(61px + max(12px,env(safe-area-inset-bottom)))}
    html:has(.listing-page>.mobile-buy){scroll-padding-bottom:calc(69px + max(12px,env(safe-area-inset-bottom)))}
}
@media(min-width:761px) and (max-height:1399px){
    body:has(.listing-page>.mobile-buy){padding-bottom:73px}
    html:has(.listing-page>.mobile-buy){scroll-padding-bottom:81px}
}

/* Container-width layout for the shipped mk-group / mk-offer (task 8; see the header). */
.listing-page [data-similar-site],.listing-page .offer-panel{container-type:inline-size}
.listing-page [data-mk-save-slot] svg{width:16px;height:16px;stroke-width:2}
@container (max-width:649px){
    .listing-page [data-mk-group]>header{grid-template-columns:auto minmax(0,1fr) auto;column-gap:10px;padding-inline:12px}
    .listing-page [data-mk-group]>header>dl{grid-column:1/-1;grid-row-start:2;gap:4px}
    .listing-page [data-mk-group]>header>dl>div{flex:1 1 0%;min-width:0}
    .listing-page [data-mk-group]>header>p{grid-column-start:3;grid-row-start:1}
    .listing-page li[data-mk-offer]{grid-template-columns:auto minmax(0,1fr) auto;padding-inline:12px}
    .listing-page li[data-mk-offer] [data-mk-tags]{display:none}
    .listing-page li[data-mk-offer]>div:last-child{grid-column:2/span 2}
    .listing-page li[data-mk-offer]>div:last-child [data-sunrise-save]{width:44px;height:44px}
    .listing-page li[data-mk-offer]>div:last-child>a{min-height:44px;min-width:150px;font-size:14px}
}
@container (min-width:650px){
    .listing-page [data-mk-group]>header{grid-template-columns:auto minmax(0,1fr) auto auto;column-gap:14px;padding-inline:14px}
    .listing-page [data-mk-group]>header>dl{grid-column:auto;grid-row-start:auto;gap:6px}
    .listing-page [data-mk-group]>header>dl>div{flex:none;min-width:44px}
    .listing-page [data-mk-group]>header>p{grid-column-start:auto;grid-row-start:auto}
}

/* Task 9 (share, listing actions, report / block / delete dialogs, flash). The dialogs live inside
   .listing-page, so these scoped selectors reach them in the top layer, ::backdrop included (it
   inherits from its dialog's selector). The noscript style that shows the dialogs in the page with JS
   off is in sunrise/listing/dialogs. */
.listing-page .share .share-report{text-decoration:underline;margin-left:auto}
.listing-page .share-status{font-size:12px;min-width:0;overflow-wrap:anywhere}
.listing-page .share-status:empty{display:none}
.listing-page .listing-manage{gap:20px;margin-top:8px}
.listing-page .dialog{overscroll-behavior:contain}
.listing-page .dialog .row.spread{flex-wrap:nowrap;align-items:flex-start}
.listing-page .dialog .row.spread h2{min-width:0;overflow-wrap:anywhere;padding-top:6px}
.listing-page .dialog .form-errors{margin-top:16px;padding:12px 15px;background:var(--sr-soft);border-left:3px solid var(--sr-amber);font-size:12px;color:var(--sr-ink)}
.listing-page .dialog .form-errors p{margin:0 0 6px;font-weight:700}
.listing-page .dialog .form-errors ul{padding-left:18px}
.listing-page .dialog [aria-invalid=true]{border-color:var(--sr-amber);border-width:2px}
.listing-page .dialog textarea::placeholder{color:var(--sr-muted)}
.listing-page .toast{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 20px}
.listing-page .toast-text{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
.listing-page .toast .icon-button{background:var(--sr-deep);color:var(--sr-teal-text);border-color:var(--sr-deep);min-height:44px}
.listing-page .toast .icon-button:hover{background:var(--sr-deep);text-decoration:none}
