/* #915 journey lane 5: the roof module's Summary page (assets/phone-journey-summary.js). Every rule is scoped to the page's own
   wrapper (.pj-sum) under the journey switch (html[data-pj="on"], set by lane 1 only while phone_journey, phone_ui_nest and phone_ui_flow are on), so nothing else in the app changes. Nest rules: pills 999 px, every other corner 2 px,
   Archivo headings, Plex text, one filled main button pinned at the bottom, 44 pt targets. Priority colours and their text colours
   come from the catalogue (roof_details, P6) and are set inline by the script. Rules sit under lane 1's
   module screen (#journey) so the Flow look's broader button rules do not round or stretch this page's rows. */
html[data-pj="on"] #journey .pj-sum{--pj-sum-teal:var(--nest-teal,#1F5C5B);--pj-sum-deep:var(--nest-deep,#0F2E2D);--pj-sum-mist:var(--nest-mist,#EAEEEC);
  --pj-sum-card:var(--nest-card,#F8F9F6);--pj-sum-field:var(--nest-field,#FFFFFF);--pj-sum-line:var(--nest-line,#C9CFC9);
  --pj-sum-notice:var(--nest-notice,#E3EDEA);--pj-sum-ink:var(--nest-ink,#1F2A33);--pj-sum-soft:var(--nest-soft,#3B4A47);
  --pj-sum-muted:var(--nest-muted,#5D6A70);--pj-sum-danger:var(--nest-danger,#A83232);
  --pj-sum-disp:var(--nest-disp,"Archivo","IBM Plex Sans",system-ui,sans-serif);--pj-sum-text:var(--nest-text,"IBM Plex Sans",system-ui,sans-serif);
  --pj-sum-mono:var(--nest-mono,"IBM Plex Mono",ui-monospace,monospace);
  color:var(--pj-sum-ink);font:400 16px/1.45 var(--pj-sum-text);padding-bottom:8px}
html[data-pj="on"] #journey .pj-sum *{box-sizing:border-box}
html[data-pj="on"] #journey .pj-sum .pj-sum-instr{color:var(--pj-sum-soft);margin:4px 16px 12px}
html[data-pj="on"] #journey .pj-sum .pj-sum-small{font-size:13px;color:var(--pj-sum-muted);margin:6px 0 0}
html[data-pj="on"] #journey .pj-sum .pj-sum-heading{font-family:var(--pj-sum-disp);font-stretch:118%;font-weight:750;font-size:19px;letter-spacing:-.01em;margin:20px 16px 8px}

/* the site plan, every label and core across the site */
html[data-pj="on"] #journey .pj-sum .pj-sum-plan-card{margin:0 16px 12px}
html[data-pj="on"] #journey .pj-sum .pj-sum-plan{position:relative;border:1px solid var(--pj-sum-line);border-radius:2px;overflow:hidden;background:#cfd6d2}
html[data-pj="on"] #journey .pj-sum .pj-sum-plan img{display:block;width:100%;height:auto;user-select:none;-webkit-user-select:none}
html[data-pj="on"] #journey .pj-sum .pj-sum-label{position:absolute;transform:translate(-50%,-100%);margin-top:-10px;padding:2px 8px;border:1.5px solid #fff;border-radius:2px;
  color:#fff;font-weight:700;font-size:12px;line-height:1.3;white-space:nowrap;max-width:60%;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
/* #949: once the script has found the label a free place inside the picture, its left and top are that place itself */
html[data-pj="on"] #journey .pj-sum .pj-sum-label[data-pj-set]{transform:none;margin-top:0}
html[data-pj="on"] #journey .pj-sum .pj-sum-spot{position:absolute;width:12px;height:12px;transform:translate(-50%,-50%);border-radius:999px;background:#fff;border:3px solid var(--pj-sum-ink);pointer-events:none}
html[data-pj="on"] #journey .pj-sum .pj-sum-core{position:absolute;transform:translate(-50%,-50%);min-width:28px;height:28px;padding:0 4px;border-radius:999px;border:2px solid #fff;
  background:var(--pj-sum-deep);color:#fff;font:500 11px/24px var(--pj-sum-mono);text-align:center;pointer-events:none}

/* one row per roof */
html[data-pj="on"] #journey .pj-sum .pj-sum-list{margin:0 16px 12px;border:1px solid var(--pj-sum-line);border-radius:2px;background:var(--pj-sum-card)}
html[data-pj="on"] #journey .pj-sum .pj-sum-row{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 14px;border:0;border-top:1px solid var(--pj-sum-line);
  background:none;text-align:left;font:inherit;color:inherit;cursor:pointer;border-radius:0!important}
html[data-pj="on"] #journey .pj-sum .pj-sum-row:first-child{border-top:0}
html[data-pj="on"] #journey .pj-sum .pj-sum-dot{width:14px;height:14px;border-radius:999px;flex:none}
html[data-pj="on"] #journey .pj-sum .pj-sum-row-text{flex:1;min-width:0}
html[data-pj="on"] #journey .pj-sum .pj-sum-row-text b{display:block;font-weight:600;font-size:15px;overflow-wrap:anywhere}
html[data-pj="on"] #journey .pj-sum .pj-sum-row-text small{display:block;color:var(--pj-sum-muted);font-size:13px}
html[data-pj="on"] #journey .pj-sum .pj-sum-chev{color:var(--pj-sum-teal);font-weight:700;font-size:20px}
html[data-pj="on"][data-nest-os="android"] #journey .pj-sum .pj-sum-chev{display:none}   /* HANDOVER rule 12: chevrons on list rows on iPhone only */

/* Moisture: today's roof-moisture.js content, in the Nest look */
html[data-pj="on"] #journey .pj-sum .pj-sum-moisture-body{display:flex;flex-direction:column;gap:12px;margin:0 16px 12px}
html[data-pj="on"] #journey .pj-sum .pj-sum-moisture-body > p{margin:0;font-size:13px;color:var(--pj-sum-muted)}
html[data-pj="on"] #journey .pj-sum .flow-moisture-layout,html[data-pj="on"] #journey .pj-sum .flow-moisture-entry{display:contents}
html[data-pj="on"] #journey .pj-sum .ph-moisture-meter{order:1}
html[data-pj="on"] #journey .pj-sum .ph-moisture-readings{order:2}
html[data-pj="on"] #journey .pj-sum .ph-moisture-entry{order:3}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals-box{order:4}
html[data-pj="on"] #journey .pj-sum .pj-sum-moisture-body > p{order:5}
html[data-pj="on"] #journey .pj-sum :is(.ph-moisture-meter,.ph-moisture-entry){background:var(--pj-sum-card);border:1px solid var(--pj-sum-line);border-radius:2px}
html[data-pj="on"] #journey .pj-sum :is(.ph-moisture-meter,.ph-moisture-entry) > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;
  padding:0 14px;cursor:pointer;list-style:none;font-weight:600;color:var(--pj-sum-teal);background:none;border:0;border-radius:2px}
html[data-pj="on"] #journey .pj-sum :is(.ph-moisture-meter,.ph-moisture-entry) > summary::-webkit-details-marker{display:none}
html[data-pj="on"] #journey .pj-sum .ph-moisture-meter > summary strong{color:var(--pj-sum-ink)}
html[data-pj="on"] #journey .pj-sum .ph-moisture-meter > summary span{color:var(--pj-sum-muted);font-weight:400;font-size:14px;text-align:right;overflow-wrap:anywhere}
html[data-pj="on"] #journey .pj-sum .ph-moisture-entry > summary::before{content:"+";font-size:20px;margin-right:2px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-entry > summary{justify-content:flex-start}
html[data-pj="on"] #journey .pj-sum .ph-form{padding:4px 14px 14px;margin:0;border:0;background:none}
html[data-pj="on"] #journey .pj-sum .ph-form h2{display:none}
html[data-pj="on"] #journey .pj-sum .ph-form label{display:block;margin:0 0 12px;font-weight:600;font-size:14px}
html[data-pj="on"] #journey .pj-sum .ph-form :is(input,select){display:block;width:100%;min-height:44px;margin-top:4px;border:1px solid var(--pj-sum-line);border-radius:2px;
  background:var(--pj-sum-field);padding:10px 12px;font:400 16px var(--pj-sum-text);color:var(--pj-sum-ink)}
html[data-pj="on"] #journey .pj-sum .ph-error{color:var(--pj-sum-danger);font-size:14px;margin:0 0 8px}
html[data-pj="on"] #journey .pj-sum .ph-error:empty{display:none}
html[data-pj="on"] #journey .pj-sum .ph-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:999px;border:1px solid var(--pj-sum-teal);
  background:var(--pj-sum-notice);color:var(--pj-sum-teal);font-weight:600;font-size:16px;padding:0 18px;cursor:pointer}
html[data-pj="on"] #journey .pj-sum [role="status"]{margin:8px 0 0;font-size:14px;color:var(--pj-sum-soft)}
html[data-pj="on"] #journey .pj-sum [role="status"]:empty{display:none}
html[data-pj="on"] #journey .pj-sum .ph-moisture-readings h2{font:600 12px/1.3 var(--pj-sum-text);letter-spacing:.08em;text-transform:uppercase;color:var(--pj-sum-muted);margin:4px 0 8px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-readings > p{margin:0;color:var(--pj-sum-muted);font-size:14px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-readings .ph-block{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;background:var(--pj-sum-card);border:1px solid var(--pj-sum-line);
  border-radius:2px;padding:10px 12px;margin:0 0 8px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-reading-content{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;flex:1 1 auto;min-width:0}
html[data-pj="on"] #journey .pj-sum .ph-moisture-value{font:500 14px var(--pj-sum-mono)}
html[data-pj="on"] #journey .pj-sum .ph-moisture-place strong{display:block;font-weight:600;font-size:15px;overflow-wrap:anywhere}
html[data-pj="on"] #journey .pj-sum .ph-moisture-place span{display:block;color:var(--pj-sum-muted);font-size:13px;overflow-wrap:anywhere}
html[data-pj="on"] #journey .pj-sum .ph-moisture-result{font:500 11px var(--pj-sum-mono);letter-spacing:.06em;text-transform:uppercase;border:1px solid var(--pj-sum-line);border-radius:2px;padding:3px 6px;color:var(--pj-sum-muted)}
html[data-pj="on"] #journey .pj-sum .ph-danger{flex:none;width:auto;margin-left:auto;min-height:44px;border:0;background:none;color:var(--pj-sum-danger);font-weight:600;font-size:15px;padding:0 4px;cursor:pointer;border-radius:999px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals-box h3{font:600 12px/1.3 var(--pj-sum-text);letter-spacing:.08em;text-transform:uppercase;color:var(--pj-sum-muted);margin:4px 0 8px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals > div{background:var(--pj-sum-card);border:1px solid var(--pj-sum-line);border-top:3px solid var(--pj-sum-teal);border-radius:2px;padding:8px 10px;min-width:0}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals strong{display:block;font:500 20px var(--pj-sum-mono)}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals span{display:block;font-size:12px;color:var(--pj-sum-soft);overflow-wrap:anywhere}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals .ph-moisture-normal{border-top-color:#3C8C5A}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals .ph-moisture-elevated{border-top-color:#C99416}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals .ph-moisture-high{border-top-color:#C2412D}
html[data-pj="on"] #journey .pj-sum .ph-moisture-totals .ph-moisture-unassessed{border-top-color:#8A938F}

/* the one main button, pinned at the bottom above the safe area */
html[data-pj="on"] #journey .pj-sum .pj-sum-pin{position:sticky;bottom:0;z-index:5;padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(rgba(234,238,236,0),var(--pj-sum-mist) 30%)}
html[data-pj="on"] #journey .pj-sum .pj-sum-main{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border-radius:999px;border:1px solid var(--pj-sum-teal);
  background:var(--pj-sum-teal);color:#fff;font:600 16px var(--pj-sum-text);cursor:pointer}
html[data-pj="on"] #journey .pj-sum :is(.pj-sum-row,.pj-sum-main,.ph-primary,.ph-danger,summary):focus-visible{outline:3px solid var(--nest-signal,#14B8A6);outline-offset:2px}

/* Nest shape rule (#920 review): every button on this page is a pill; rows and folds keep 2 px (rows 0, inside their 2 px list).
   The app-wide brand button rule is !important, so the pills say so too; #journey keeps this page's rule the more specific. */
html[data-pj="on"] #journey .pj-sum :is(.pj-sum-main,.pj-sum-view,.ph-primary,.ph-danger){border-radius:999px!important}
/* Z1 (#975): the numbered item pins on the Summary plan, and the pill that opens the plan full screen */
html[data-pj="on"] #journey .pj-sum .pj-sum-item{position:absolute;z-index:2;box-sizing:border-box;transform:translate(-50%,-50%);min-width:24px;height:24px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #fff;border-radius:999px;font:500 12px/1 var(--nest-mono);box-shadow:0 1px 3px rgba(0,0,0,.45);pointer-events:none}
html[data-pj="on"] #journey .pj-sum .pj-sum-view{align-self:flex-start;min-height:44px!important;margin:8px 0 0;padding:0 18px;border:1px solid var(--nest-line);background:var(--nest-field);box-shadow:none;color:var(--nest-teal);font:600 15px/1 var(--nest-text);cursor:pointer}
/* E6 part 2: the "Still to fill in (N)" line, on the roof list's own gutter */
html[data-pj="on"] #journey .pj-sum .pj-sum-view.pj-sum-gaps{margin:0 16px 12px}
html[data-pj="on"][data-item-pins="on"] #journey .pj-sum .pj-sum-plan{cursor:pointer}
html[data-pj="on"] #journey .pj-sum :is(.ph-moisture-meter,.ph-moisture-entry) > summary{border-radius:2px!important}
