/* Round 11 — cards & magnify dialogs (owner: cards agent). Loaded after ror-theme.css.
   One block per finding from reports/round11-audit.md. Blue check bullet used everywhere:
   #1A56C4 disc + white check (same glyph as the magnify dialog). */

/* ── F1 + F9 · magnify dialog (assets/qc-magnify.js) ───────────────────────────────────────────
   Head: icon top-aligned beside the title (desktop), stacked above it (phone). The teaser is moved
   out of the head by the JS and shown full width as calm body copy (normal weight, navy-blue).
   Check bullets win over page-scoped list styles; no nested link cards; consistent action row. */
dialog.qc-mag .qc-mag-head{align-items:flex-start;margin-bottom:14px}
dialog.qc-mag .qc-mag-head>div{min-width:0;min-height:64px;display:flex;flex-direction:column;justify-content:center}
dialog.qc-mag .qc-mag-head h2{text-wrap:balance}
dialog.qc-mag .qc-mag-teaser{margin:0 0 16px!important;max-width:62ch;font-size:1.0625rem!important;line-height:1.6!important;font-weight:400!important;color:var(--blue-800,#0F3170)!important}
dialog.qc-mag .qc-mag-detail{color:var(--text-muted)}
dialog.qc-mag .qc-mag-detail p{margin:0 0 14px;max-width:62ch}
dialog.qc-mag .qc-mag-detail ul{list-style:none;padding:0;margin:4px 0 0;display:grid;gap:10px;font-size:1rem;line-height:1.5;color:var(--blue-900)}
dialog.qc-mag .qc-mag-detail ul li{position:relative;padding:11px 14px 11px 44px;border-radius:10px;background:rgba(255,255,255,.6);border:1px solid rgba(201,218,248,.8);font-weight:600;font-size:.98rem;line-height:1.45;list-style:none}
dialog.qc-mag .qc-mag-detail ul li::before{content:"";position:absolute;left:14px;top:50%;width:18px;height:18px;margin-top:-9px;border:0;border-radius:50%;
  background:#1A56C4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat}
dialog.qc-mag .qc-mag-detail :is(button,.fix,.business-growth-link,.repair-text-link){display:none!important} /* belt-and-braces: JS removes them */
/* every dialog ends with the same row: red "Get a free estimate" + navy-outline call */
dialog.qc-mag .qc-mag-detail>.qc-mag-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0;padding-top:20px;border-top:1px solid rgba(19,67,149,.14)}
dialog.qc-mag .qc-mag-detail>.qc-mag-actions:first-child{margin-top:2px;padding-top:0;border-top:0}
dialog.qc-mag .qc-mag-actions a.qc-mag-btn{flex:0 0 auto;min-width:220px;white-space:nowrap}
dialog.qc-mag .qc-mag-actions a.qc-mag-btn--ghost{border-bottom-color:var(--blue-950,#061633)}
@media(max-width:560px){
  dialog.qc-mag .qc-mag-head{flex-direction:column;gap:14px;padding-right:52px;margin-bottom:12px}
  dialog.qc-mag .qc-mag-head>div{min-height:0}
  dialog.qc-mag .qc-mag-head h2{font-size:1.5rem!important}
  dialog.qc-mag .qc-mag-teaser{font-size:1rem!important}
  dialog.qc-mag .qc-mag-detail ul li{font-size:.94rem;padding:10px 12px 10px 42px}
  dialog.qc-mag .qc-mag-actions a.qc-mag-btn{flex:1 1 100%;min-width:0;white-space:normal}
}

/* ── F9 · quick-card teasers: two calm lines on the card (the full text is in the dialog) ─────── */
.qc-mag-on .qc-grid .qc-copy :is(small,.qc-teaser),
.qc-mag-on .qc-grid .qc-copy>span:not(.qc-title){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:normal}

/* ── F10 · quick-card grids: equal card heights per row, no orphan last card ─────────────────── */
.qc-mag-on .qc-grid.qc-grid{align-items:stretch}
.qc-mag-on .qc-grid .qc-card{align-self:stretch;display:flex;flex-direction:column}
.qc-mag-on .qc-grid .qc-card>.qc-summary{flex:1 1 auto;height:100%}
@media(min-width:791px){
  /* 4 cards → 2 × 2 instead of 3 + 1 */
  .qc-grid.qc-grid:has(>.qc-card:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1100px){
  /* 8 cards → 4 × 2 instead of 3 + 3 + 2 */
  .qc-grid.qc-grid:has(>.qc-card:nth-child(8):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:791px) and (max-width:1099px){
  .qc-grid.qc-grid:has(>.qc-card:nth-child(8):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── F17 · card "open" glyph: magnifying glass with plus (no diagonal arrows) ────────────────── */
.qc-mag-on .qc-grid .qc-card>.qc-summary>:is(.qc-plus,.qc-toggle,.plus),
.qc-mag-on .qc-grid .qc-summary>:is(.qc-repair-heading,.qc-summary-heading)::after{
  width:18px!important;height:18px!important;background:var(--blue-700,#134395)!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.6 15.6 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center/contain no-repeat!important;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M15.6 15.6 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center/contain no-repeat!important}
.qc-mag-on .qc-grid .qc-card>.qc-summary{grid-template-columns:45px minmax(0,1fr) 18px}
.qc-mag-on .qc-grid .qc-summary>:is(.qc-repair-heading,.qc-summary-heading){grid-template-columns:45px minmax(0,1fr) 18px}

/* ── F7 · one bullet style: the blue check replaces hollow circles and middots ───────────────── */
.business-growth-page .business-growth-list li,
.business-service-panel li,
.repair-visit-note li{padding-left:28px!important}
.business-growth-page .business-growth-list li::before,
.business-service-panel li::before,
.repair-visit-note li::before{
  content:""!important;position:absolute;left:0!important;width:16px!important;height:16px!important;top:.28em;top:calc((1lh - 16px) / 2);
  border:0!important;border-radius:50%;
  background:#1A56C4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat!important}
.repair-visit-note li::before{top:calc(9px + (1lh - 16px) / 2)}

/* ── F18 · stacked CTA pairs share one width on phone; dialog go labels are folded into the
   standard action row by qc-magnify.js ─────────────────────────────────────────────────────── */
@media(max-width:560px){
  .business-growth-page .business-growth-callout .cta-row>:is(.btn,a.go),
  .about-lead div:has(>a.btn+a.btn)>a.btn{flex:1 1 100%;width:100%;justify-content:center;text-align:center}
}

/* ── F11 · commercial-detail template (/business-networking, /server-management,
   /business-hardware-software-repair): FAQ uses the shared blue +/− marker, related links are
   split go buttons (markup: partials/commercial-detail.php), the campaign card pairs its picture
   with the "Service tip" text instead of sitting alone in half a row. ───────────────────────── */
.commercial-detail .cd-faq-grid summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:44px;font-family:var(--font-display);color:var(--blue-900)}
.commercial-detail .cd-faq-grid summary::-webkit-details-marker{display:none}
.commercial-detail .cd-faq-grid summary::marker{content:""}
.commercial-detail .cd-faq-grid summary::after{content:"+";flex:none;font-size:1.4rem;font-weight:400;line-height:1;color:var(--blue-600)}
.commercial-detail .cd-faq-grid details[open]>summary::after{content:"−"}
.commercial-detail .cd-related{display:flex!important;flex-wrap:wrap;gap:12px;margin-top:28px}
.commercial-detail .cd-related>a.go{flex:0 1 auto}
@media(min-width:700px){
  .commercial-detail .ror-campaign-support.ror-frame{display:grid!important;grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:center;gap:0;
    width:min(100%,880px);max-width:880px;margin-inline:auto}
  .commercial-detail .ror-campaign-support>img{width:100%;height:auto;aspect-ratio:1/1}
  .commercial-detail .ror-campaign-support figcaption{padding:28px 36px;background:transparent;font-size:1.0625rem;line-height:1.6;color:var(--text-muted)}
  .commercial-detail .ror-campaign-support figcaption strong{display:block;margin:8px 0 10px;font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.15;color:var(--blue-900)}
}
@media(max-width:699px){
  .commercial-detail .ror-campaign-support.ror-frame{width:min(100%,440px);margin-inline:auto}
}

/* ── F12 · "Technical guidance / Device guidance & sources": a compact FAQ-style card with the
   blue +/− marker; a band that holds only this card gets a short 32 px padding. ─────────────── */
:is(.repair-sources,.business-growth-page .business-growth-sources){max-width:900px;box-sizing:border-box;padding:0 20px!important;border:1px solid rgba(201,218,248,.95)!important;border-radius:var(--r-md,16px);
  background:rgba(255,255,255,.78);box-shadow:inset 0 1px 0 #fff,0 10px 26px -20px rgba(10,35,75,.45)}
:is(.repair-sources,.business-growth-page .business-growth-sources)>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:12px 0!important;
  font-family:var(--font-display);font-weight:700;font-size:1rem;color:var(--blue-900)}
:is(.repair-sources,.business-growth-page .business-growth-sources)>summary::-webkit-details-marker{display:none}
:is(.repair-sources,.business-growth-page .business-growth-sources)>summary::marker{content:""}
:is(.repair-sources,.business-growth-page .business-growth-sources)>summary::after{content:"+";flex:none;font-size:1.4rem;font-weight:400;line-height:1;color:var(--blue-600)}
:is(.repair-sources,.business-growth-page .business-growth-sources)[open]>summary::after{content:"−"}
:is(.repair-sources,.business-growth-page .business-growth-sources)[open]{padding-bottom:14px!important}
:is(.repair-sources,.business-growth-page .business-growth-sources)>summary:focus-visible{outline:3px solid var(--blue-500,#2F6FE0);outline-offset:2px;border-radius:6px}
section.recovery-depth:has(>.wrap>details.repair-sources:only-child){padding-block:32px!important}

/* ── F16 · home reviews card: the Nextdoor row follows the Yelp / Google rows
   (name with its sub-label on the left, the action on the right, vertically centred). ───────── */
.hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]){display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;
  align-items:center;column-gap:16px;row-gap:6px;border-radius:12px;border-top:1px solid var(--line,#E3ECFB)!important}
.hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .mid{display:contents!important}
.hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .pl{grid-column:1;grid-row:1;align-self:end;font-weight:700;font-size:1.0625rem;letter-spacing:-.01em;line-height:1.2}
.hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .ndr{grid-column:1;grid-row:2;align-self:start;line-height:1.3}
.hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .ct{grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:end}
@media(max-width:400px){ /* sub-label is hidden here (styles.css) → one centred row */
  .hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]){grid-template-rows:auto}
  .hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .pl{align-self:center}
  .hero-reviews a[href*="nextdoor.com"]:not([data-review-provider]) .ct{grid-row:1}
}
:is(.repair-sources,.business-growth-page .business-growth-sources) a{color:var(--blue-700)!important;font-weight:600;text-decoration:underline!important;text-decoration-color:rgba(19,67,149,.4)!important;text-underline-offset:3px}
:is(.repair-sources,.business-growth-page .business-growth-sources) ul{margin:6px 0 0;padding-left:0;list-style:none}
