/* Polish pass Nov 8, part 2 (loads after v3-z.css) */
/* Part B: the address report (/check/) and ZIP code pages */

/* ---- Pills: three tones, one size. Neutral, brand lavender, and green/amber/red for insurer status only ---- */
:is(.report,.v3a-zip) .call>.st,:is(.report,.v3a-zip) .st,.rpage .badge,.v3a-zip .badge,.rpage .tag,.v3a-zip .tag{display:inline-flex;align-items:center;gap:6px;height:24px;min-height:0;padding:0 10px!important;border:0;border-radius:999px;font:600 12px/24px var(--sans);letter-spacing:0;white-space:nowrap;box-shadow:none;vertical-align:middle}
:is(.report,.v3a-zip) .call>.st::before{width:6px;height:6px}
:is(.report,.v3a-zip) .st.open{background:var(--easy-soft)!important;color:#16704A!important}
:is(.report,.v3a-zip) .st.pending{background:var(--harder-soft)!important;color:#8F5600!important}
:is(.report,.v3a-zip) .st.closed{background:var(--hard-soft)!important;color:var(--hard)!important}
:is(.report,.v3a-zip) .st.ask,:is(.report,.v3a-zip) .st.unknown,:is(.report,.v3a-zip) .st.elsewhere{background:#F1EFF5!important;color:#5E5872!important}
:is(.report,.v3a-zip) .st.ask::before,:is(.report,.v3a-zip) .st.unknown::before,:is(.report,.v3a-zip) .st.elsewhere::before{display:none!important}
/* everything that isn't an insurer's status: neutral, or brand lavender for the source and rating labels */
.rpage .badge,.rpage .tag.neighbor,.rpage .tag.online,.v3a-zip .tag.neighbor,.v3a-zip .tag.online{background:#F1EFF5!important;color:#5E5872!important}
.rpage .tag.official,.v3a-zip .tag.official,.v3a-zip .outlook>.badge{background:var(--brand-soft)!important;color:var(--brand)!important}
.rpage .badge::before,.v3a-zip .badge::before{display:none}
.report .verdict .badge{background:#fff!important}
.report .verdict .v-l>h2:first-child{margin-top:0}
.v3a-zip .map-badge{display:inline-flex;align-items:center;height:24px;padding:0 10px;font:600 12px/24px var(--sans);background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}

/* ---- Share / PDF actions: one row under the title, then a text link ---- */
.report .report-actions,.v3a-zip .zhead .zip-actions{display:block;max-width:none;align-self:auto;margin:20px 0 0}
.report-actions .ra-row{display:flex;flex-wrap:nowrap;align-items:center;gap:10px}
.report-actions .ra-row .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;height:44px;min-height:44px;padding:0 18px;border-radius:999px;font-size:15px;font-weight:700;line-height:1;white-space:nowrap}
.report-actions .ra-row .btn.ghost{background:#fff;color:var(--brand);border:1.5px solid var(--brand)}
.report-actions .ra-row .btn.ghost:hover{background:var(--brand-soft)}
.report-actions .ra-row .share-wide{flex:0 1 auto}
.report-actions .ra-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0!important;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--brand)}
.report-actions .ra-icon:hover{border-color:var(--brand);text-decoration:none}
.report-actions [data-pdf-msg],.report-actions [data-zip-msg]{display:block;margin:8px 0 0}
.report-actions [data-pdf-msg]:empty,.report-actions [data-zip-msg]:empty{display:none}
.report .report-actions .ra-links{display:flex;flex-basis:auto;margin:14px 0 0}
.report .report-actions .ra-links .view-pdf{padding:0}
.v3a-zip .zip-actions .ra-another{display:flex;width:max-content;margin:14px 0 0}
@media (max-width:400px){.report-actions .ra-row{gap:8px}.report-actions .ra-row .btn{padding:0 14px;font-size:14px;gap:6px}}
@media (max-width:359px){.report-actions .ra-row .btn svg{display:none}}

/* ---- ZIP page header: the title block, then the actions under it ---- */
.v3a-zip .zhead{display:block}

/* ---- Insurer lists: one compact row per insurer (name and share | status | phone | details) ---- */
:is(.report,.v3a-zip) .calls{display:block;border-top:0}
:is(.report,.v3a-zip) .call{display:grid!important;grid-template-columns:minmax(0,1fr) 168px 164px 124px;grid-template-areas:"main st tel more";align-items:center;gap:8px 20px;margin:0!important;padding:14px 0!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0;background:none;flex-direction:initial}
:is(.report,.v3a-zip) .calls>.call:first-child{border-top:0!important;padding-top:4px!important}
:is(.report,.v3a-zip) .calls-more .calls>.call:first-child{border-top:1px solid var(--line)!important;padding-top:14px!important}
:is(.report,.v3a-zip) .call-main{grid-area:main;width:auto;min-width:0}
:is(.report,.v3a-zip) .call-name{display:block;font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.005em}
:is(.report,.v3a-zip) .call-sub{margin:1px 0 0;font-size:14px;line-height:1.4;color:var(--muted)}
:is(.report,.v3a-zip) .call>.st{grid-area:st;justify-self:start;align-self:center;order:0;margin:0}
:is(.report,.v3a-zip) .call>.call-tel{grid-area:tel;justify-self:start}
:is(.report,.v3a-zip) .call>.disc{grid-area:more;justify-self:end;margin:0}
:is(.report,.v3a-zip) .call>.disc>summary{min-height:0;font-size:14px;font-weight:600}
:is(.report,.v3a-zip) .call>.disc[open]{grid-column:1/-1;grid-row:2;justify-self:stretch}
:is(.report,.v3a-zip) .call>.disc[open]>summary{display:flex;width:max-content;margin-left:auto}
:is(.report,.v3a-zip) .call .call-body{max-width:760px;padding:4px 0 2px}
:is(.report,.v3a-zip) .call .call-body p{font-size:15px;line-height:1.55;margin:6px 0 0}
/* phone numbers: a text link with a phone icon (also the FAIR Plan's) */
:is(.report,.v3a-zip) .call-tel{position:relative;display:inline-flex;align-items:center;min-height:0;margin:0;padding:0;border-radius:0;background:none!important;color:var(--brand);font-size:15px;font-weight:600;line-height:1.4;text-decoration:none;white-space:nowrap}
:is(.report,.v3a-zip) .call-tel::after{content:"";position:absolute;inset:-10px -6px}
:is(.report,.v3a-zip) .call-tel:hover{text-decoration:underline;text-underline-offset:3px}
.report .call-tel::before{content:"";width:16px;height:16px;margin-right:8px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center/contain no-repeat}
:is(.report,.v3a-zip) .fp-box .call-tel{font-size:16px}
.v3a-zip .fp-box.safety .call-tel{color:#fff}
/* groups: heading above the rows; side by side only where the rows still have room */
.report .cgroup{display:block;padding:32px 0 8px}
.report .cgroup .cg-h{margin:0 0 12px}
.v3a-zip .cgroup{display:block}
.v3a-zip .cgroup .cg-h{margin:0 0 12px}
@media (min-width:1200px){
  :is(.report,.v3a-zip) .cgroup{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:0 40px}
  :is(.report,.v3a-zip) .cgroup .cg-h{margin:0}
}
/* "N more companies": a disclosure link, not a button */
:is(.report,.v3a-zip) .calls-more{margin-top:8px}
:is(.report,.v3a-zip) .calls-more>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;border:0;border-radius:0;background:none;color:var(--brand);font-size:15px;font-weight:600;list-style:none;cursor:pointer}
:is(.report,.v3a-zip) .calls-more>summary::-webkit-details-marker{display:none}
:is(.report,.v3a-zip) .calls-more>summary::before{content:"";border-left:6px solid currentColor;border-top:5px solid transparent;border-bottom:5px solid transparent;transition:transform .15s}
:is(.report,.v3a-zip) .calls-more[open]>summary::before{transform:rotate(90deg)}
:is(.report,.v3a-zip) .calls-more[open]>summary{margin-bottom:4px}
.report .zfinder{margin:20px 0 0}
@media (max-width:860px){
  :is(.report,.v3a-zip) .call{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"st st" "main main" "tel more";gap:6px 16px;padding:16px 0!important}
  :is(.report,.v3a-zip) .call>.disc[open]{grid-row:4}
  :is(.report,.v3a-zip) .call>.call-tel{margin-top:2px}
}

/* ---- What to do: one column of numbered rows ---- */
.report .rsteps{display:block;max-width:760px;margin:16px 0 0;padding:0;list-style:none}
.report .rsteps li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:0 16px;align-items:start;padding:18px 0;border:0;border-top:1px solid var(--line);border-radius:0;background:none}
.report .rsteps li:last-child{border-bottom:1px solid var(--line)}
.report .rs-n{width:28px;height:28px;margin-top:-1px;font-size:13px}
.report .rsteps p{align-self:start;margin:0;font-size:16px;line-height:1.55;color:var(--muted)}
.report .rsteps p b{display:block;margin:0 0 2px;font-size:17px;font-weight:700;line-height:1.45;color:var(--ink)}
.report .rsteps p b.rs-all{margin:0;font-weight:600}
@media (max-width:600px){.report .rsteps li{grid-template-columns:28px minmax(0,1fr);gap:0 14px;padding:16px 0}.report .rs-n{width:28px;height:28px;font-size:13px}}

/* ---- Agent panel: a light card on the page gutter; on phones it sits under the report (report.js) ---- */
.rpage .acct-panel{max-width:720px;margin:20px 0 0;padding:20px 24px;border:1px solid var(--line);border-radius:16px;background:var(--alt);box-shadow:none}
.rpage .acct-panel h3{margin:0 0 6px;font-size:18px;font-weight:800;letter-spacing:-.01em}
.rpage .acct-panel p{margin:0 0 14px;font-size:15px;line-height:1.55}
.rpage .acct-panel .row{gap:10px}
.rpage .acct-panel .row .btn,.rpage .acct-panel .row .btn-quiet{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;font-size:15px;font-weight:700}
.rpage .acct-panel .row .btn-quiet{background:#fff}
.rpage>.acct-panel{max-width:none;margin:32px 0 0}
@media (max-width:640px){.rpage .acct-panel{padding:18px 20px}}

/* ---- Home page FAIR Plan growth chart: bars use the full card, grey divider ---- */
.home-news .grow{max-width:none;border-top-color:var(--line)}
/* Ratings keep their color: Easy green, Harder amber, Hardest red (core meaning, not decoration) */
.v3a-zip .outlook>.badge.easy{background:var(--easy-soft)!important;color:#16704A!important}
.v3a-zip .outlook>.badge.harder{background:var(--harder-soft)!important;color:#8F5600!important}
.v3a-zip .outlook>.badge.hardest{background:var(--hard-soft)!important;color:#A8321E!important}
/* County pages: Local wildfire help */
.local-help{margin-top:56px}
.lh-list{list-style:none;padding:0;margin:20px 0 0;border:1px solid var(--line);border-radius:16px;background:#fff;max-width:760px}
.lh-list li{padding:16px 20px;border-top:1px solid var(--line)}
.lh-list li:first-child{border-top:0}
.lh-list a{display:inline-block;font-weight:700;font-size:17px;text-decoration:none}
.lh-list a:hover{text-decoration:underline}
.lh-list span{display:block;color:var(--muted);font-size:15px;margin-top:2px}

/* ---- Audit fixes, Nov 8 ---- */
/* View PDF: icon only on phones (aria-label), icon and a label from 700px */
.report-actions .ra-icon .ra-lbl{display:none}
@media (min-width:700px){
  .report-actions .ra-icon{width:auto;gap:8px;padding:0 18px!important;font-size:15px;font-weight:700;line-height:1}
  .report-actions .ra-icon .ra-lbl{display:inline}
}
/* room for the longest status, "Not taking new customers" */
@media (min-width:861px){:is(.report,.v3a-zip) .call{grid-template-columns:minmax(0,1fr) 188px 164px 124px}}
/* insurer rows without a status badge (the group heading says it): no empty badge line on phones */
@media (max-width:860px){
  :is(.report,.v3a-zip) .call.no-st{grid-template-areas:"main main" "tel more"}
  :is(.report,.v3a-zip) .call.no-st>.disc[open]{grid-row:3}
}
/* /check/: the sample link under the empty address box */
.rpage .rp-sample{margin:0 0 4px;font-size:15px}
.rpage .rp-sample a{font-weight:600;color:var(--brand)}
/* FAIR Plan calculator: the county table shows the top 10 until "Show all" */
.fpc-table:not(.all) .fpc-x{display:none}
.fpc-allp{margin:8px 0 0}
.fpc-all{min-height:44px;padding:0;border:0;background:none;color:var(--brand);font:600 16px/1.3 var(--sans);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
