.estimate-mock-page{background:#fff;color:#0c2743}
.estimate-mock-page .site-footer{margin-top:34px}
.em-overview{padding:18px 0 12px}
.em-overview-grid,.em-body-grid,.em-tabs .container{width:min(1160px,calc(100% - 64px))}
.em-overview-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:16px;align-items:stretch}
.em-property-photo{position:relative;min-height:382px;overflow:hidden;border-radius:6px;background:#e8edf0}
.em-property-photo>img{width:100%;height:100%;object-fit:cover;display:block}
.em-property-overlay{position:absolute;left:18px;bottom:14px;width:282px;padding:14px 16px 13px;border-radius:5px;background:rgba(7,39,67,.93);color:#fff}
.em-property-overlay strong{display:block;font-size:21px;line-height:1.25;letter-spacing:-.02em}
.em-property-overlay span{display:block;margin-top:8px;font-size:12px;color:#ecf2f6}.em-property-overlay b{font-weight:500}
.em-analysis-card{border:1px solid #e2e7eb;border-radius:7px;background:#fff;padding:16px 16px 14px;box-shadow:0 5px 18px rgba(14,40,65,.035)}
.em-kicker{text-transform:uppercase;letter-spacing:.2em;font-size:9px;font-weight:850;color:#7a8793}
.em-analysis-card h1{font-size:35px;line-height:1;margin:8px 0 14px;letter-spacing:-.04em;color:#071525}
.em-doc-meta{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #edf0f2;padding-bottom:12px;margin-bottom:12px}
.em-doc-meta>div{display:grid;grid-template-columns:27px 1fr;gap:9px;align-items:center;padding:0 10px}
.em-doc-meta>div+div{border-left:1px solid #e7ebef}
.em-doc-meta svg{width:24px;height:24px;fill:none;stroke:#0d2d4d;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.em-doc-meta strong,.em-doc-meta span{display:block}.em-doc-meta strong{font-size:11px;color:#1d3145}.em-doc-meta span{font-size:9px;color:#7b8791;margin-top:2px}
.em-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:11px}
.em-stats>div{border:1px solid #e2e7eb;border-radius:5px;padding:10px 11px;min-height:84px;background:#fff}
.em-stats b{display:block;font-size:29px;line-height:1;color:#061425;letter-spacing:-.04em}.em-stats strong{display:block;font-size:11px;margin:2px 0 7px;color:#25384b}.em-stats span{font-size:8px;color:#7b8791}.em-stats .good{color:#3e7a59}.em-stats .warn{color:#d48a23}
.em-total-panel{border-radius:5px;background:linear-gradient(95deg,#f2fbf5,#f8fff7);padding:11px 14px 12px}
.em-total-panel>span{display:block;font-size:10px;font-weight:750;color:#34495e}.em-total-panel>strong{display:block;font-size:45px;line-height:1;margin:1px 0 3px;letter-spacing:-.045em;color:#061425}
.em-total-panel>div{font-size:12px;font-weight:700;color:#37495c;margin-bottom:9px}
.em-primary-cta{min-height:42px;border-radius:4px;background:#0c3156;color:#fff;display:flex;align-items:center;justify-content:center;gap:16px;font-size:12px;font-weight:800}.em-primary-cta b{font-size:20px;line-height:1}
.em-tabs{border-bottom:1px solid #e4e8ec}
.em-tabs .container{display:flex;gap:30px}
.em-tabs a{position:relative;padding:12px 0 13px;font-size:11px;color:#657380}
.em-tabs a.active{color:#0f76dc;font-weight:800}.em-tabs a.active:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:#197be5;border-radius:3px 3px 0 0}
.em-body{padding:16px 0 24px}
.em-body-grid{display:grid;grid-template-columns:minmax(0,2.35fr) 286px;gap:17px;align-items:start}
.em-repairs-card{border:1px solid #e0e5e9;border-radius:6px;background:#fff;overflow:hidden}
.em-repairs-head{padding:13px 15px 12px}.em-repairs-head h2{font-size:21px;line-height:1.1;margin:0;color:#0c2440}.em-repairs-head p{font-size:10px;line-height:1.45;color:#697783;margin:4px 0 0;max-width:720px}
.em-table-head{display:grid;grid-template-columns:36px 1.2fr .96fr 1.18fr 75px 166px;gap:8px;align-items:center;background:#f7f9fb;border-top:1px solid #eef1f3;border-bottom:1px solid #e5e9ed;padding:8px 12px;font-size:8px;font-weight:850;text-transform:uppercase;color:#7a8792}
.em-repair-row{display:grid;grid-template-columns:36px 1.25fr 1.02fr 1.25fr 75px 120px;gap:8px;align-items:center;padding:8px 12px;border-bottom:1px solid #edf0f2;min-height:82px}.em-repair-row:last-child{border-bottom:0}
.em-row-num{font-size:14px;font-weight:850;text-align:center;color:#16314e}
.em-row-item strong,.em-row-item span{display:block}.em-row-item strong{font-size:11px;line-height:1.15;color:#17304a}.em-row-item span{font-size:9px;line-height:1.28;color:#657582;margin-top:3px}
.em-row-photo{height:65px;border-radius:3px;overflow:hidden;background:#edf1f4}.em-row-photo img{width:100%;height:100%;object-fit:cover;display:block}
.em-row-solution{font-size:9.5px;line-height:1.3;color:#536575}
.em-row-price{font-size:16px;font-weight:850;color:#0e3158;white-space:nowrap}
.em-row-status{display:grid;gap:5px;justify-items:start}.em-badge{display:inline-flex;align-items:center;gap:5px;border-radius:14px;padding:5px 8px;font-size:8px;font-weight:850;white-space:nowrap}.em-badge.confirmed{background:#e8f7ed;color:#269854}.em-badge.verify,.em-badge.conditional{background:#fff1d6;color:#b86a00;border:1px solid #f2d28f}.em-badge i{font-style:normal;font-size:11px}.em-row-status a{font-size:8px;font-weight:750;color:#197be5}
.em-sidebar{display:grid;gap:9px}
.em-side-total{border-radius:5px;background:#0e3156;color:#fff;padding:14px 14px 13px}.em-side-total>span{display:block;font-size:14px;font-weight:800}.em-side-total>strong{display:block;font-size:38px;line-height:1;margin:3px 0 6px;letter-spacing:-.04em}.em-side-total small{display:block;font-size:9px}.em-side-total>div{font-size:14px;font-weight:750;margin:1px 0 11px}
.em-side-total a{display:flex;align-items:center;justify-content:center;text-align:center;gap:8px;min-height:51px;border-radius:4px;background:#fff;color:#0b2b4b;font-size:11px;line-height:1.25;font-weight:850;padding:7px 10px}.em-side-total a b{font-size:17px}
.em-side-card{border:1px solid #e0e5e9;border-radius:5px;background:#fff;padding:12px 13px}.em-side-card h3{font-size:13px;margin:0 0 9px;color:#16304d}
.em-break-row{display:flex;justify-content:space-between;gap:8px;padding:5px 0;font-size:9px;color:#5f6f7d}.em-break-row strong{color:#3b4c5d}.em-break-row i{font-style:normal;font-size:11px}.em-break-row .green{color:#18a45c}.em-break-row .orange{color:#efa31a}
.em-break-total{display:flex;justify-content:space-between;border-top:1px solid #e8ecef;margin-top:7px;padding-top:9px;font-size:11px;font-weight:850;color:#16304d}.em-break-total strong{font-size:15px}
.em-included p{font-size:9px;color:#576979;margin:5px 0}
.em-notes h3{display:flex;align-items:center;gap:7px}.em-notes h3 i{font-style:normal;width:20px;height:20px;border-radius:50%;background:#197be5;color:#fff;display:grid;place-items:center;font-size:11px}.em-notes ul{margin:0;padding-left:16px}.em-notes li{font-size:9px;line-height:1.38;color:#576979;margin:4px 0}
.em-share h3{color:#163b69}.em-share button,.em-share a{width:100%;min-height:33px;border:1px solid #d7dfe6;background:#fff;border-radius:4px;color:#153254;font-family:inherit;font-size:9px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:6px;cursor:pointer}
@media(max-width:950px){.em-overview-grid,.em-body-grid{grid-template-columns:1fr}.em-sidebar{grid-template-columns:1fr 1fr}.em-side-total{grid-row:span 2}.em-table-head,.em-repair-row{grid-template-columns:34px 1.2fr .94fr 1.15fr 70px 154px}}
@media(max-width:720px){.em-overview-grid,.em-body-grid,.em-tabs .container{width:min(100% - 28px,680px)}.em-property-photo{min-height:300px}.em-property-overlay{width:calc(100% - 28px);left:14px}.em-doc-meta{grid-template-columns:1fr}.em-doc-meta>div{padding:7px 0}.em-doc-meta>div+div{border-left:0;border-top:1px solid #e7ebef}.em-tabs .container{overflow:auto;gap:22px}.em-tabs a{white-space:nowrap}.em-table-head{display:none}.em-repair-row{grid-template-columns:30px 1fr 84px 88px;grid-template-areas:"num item photo price" "num solution status status";align-items:start}.em-row-num{grid-area:num}.em-row-item{grid-area:item}.em-row-photo{grid-area:photo;height:58px}.em-row-solution{grid-area:solution}.em-row-price{grid-area:price}.em-row-status{grid-area:status;grid-auto-flow:column;justify-content:end}.em-sidebar{grid-template-columns:1fr}}

.em-share .em-share-icon{
  width:18px;
  height:18px;
  flex:0 0 18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.em-share button,.em-share a{gap:9px}

/* 2026-10-10 real inspection photos on each repair row.
   The thumbnail is now the photo the inspector took of that defect, lifted
   from the report page the finding came from. When a page carried no usable
   photo we show the Closing Rescue mark rather than a stock picture of a house
   that is not theirs. */
.em-row-photo img.em-row-photo-mark{
  width:auto;
  max-width:64%;
  height:auto;
  max-height:54%;
  object-fit:contain;
  opacity:.45;
  display:block;
  margin:auto;
}
.em-row-photo:has(img.em-row-photo-mark){
  display:grid;
  place-items:center;
  background:linear-gradient(180deg,#f7f9fb,#eef3f7);
}

/* 2026-10-11 estimate.html with no ?token= renders built-in illustration data.
   Say so on the page, and hide it as soon as a real estimate loads. */
.em-sample-note{
  width:min(1220px,calc(100% - 64px));
  margin:14px auto 0;
  padding:12px 16px;
  border:1px solid #f0d9a8;
  border-left:4px solid #e0a52a;
  border-radius:8px;
  background:#fffaf0;
  color:#6b5524;
  font-size:13px;
  line-height:1.5;
}
.em-sample-note strong{
  color:#53421a;
}
.em-sample-note a{
  color:#9a6b12;
  text-decoration:underline;
}
.em-row-calc{
  display:block;
  margin-top:4px;
  font-size:10.5px;
  font-weight:500;
  line-height:1.35;
  color:#8b97a2;
}
@media(max-width:760px){
  .em-sample-note{width:min(100% - 28px,680px);font-size:12px}
}

/* Approved fictional sample estimate, 2026-10-11 */
.em-analysis-card{position:relative}
.em-demo-badge{position:absolute;right:16px;top:14px;padding:6px 10px;border-radius:5px;background:#fde8e8;color:#cf3a42;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.em-property-overlay span{margin-top:2px;font-size:12px}.em-property-overlay strong+span{margin-top:6px}
.em-table-head,.em-repair-row{grid-template-columns:36px 1.18fr 102px 1.14fr 96px 146px}
.em-row-photo{height:48px}.em-row-photo img{object-fit:cover}
.em-row-status{align-items:center}.em-badge{font-size:8.5px;padding:6px 9px}
.em-sample-card{display:flex;gap:10px;background:#eef7ff;border-color:#d7e9fb;padding:13px}
.em-sample-card .em-sample-icon{width:24px;height:24px;flex:0 0 24px;border-radius:50%;display:grid;place-items:center;background:#197be5;color:#fff;font-size:13px;font-weight:850}
.em-sample-card h3{margin:0 0 3px;color:#1467b8}.em-sample-card p{margin:0;color:#5f7690;font-size:9px;line-height:1.45}
[data-real-only]{display:none}.em-real-estimate [data-real-only]{display:block}.em-real-estimate [data-sample-only]{display:none!important}
@media(max-width:950px){.em-table-head,.em-repair-row{grid-template-columns:34px 1.12fr 94px 1.04fr 88px 138px}}

/* A phone layout for these rows was written much earlier in this file, and
   then quietly undone: the two rules above carry no width guard and come
   later, so a 390px screen was being handed the desktop six-column grid while
   still using the phone's grid-template-areas. The columns and the areas no
   longer agreed - 354px of fixed columns on a 330px row - which is why the
   text came out one word per line and the badge sat on top of it. This block
   goes last so it actually wins, and sets the columns and the areas together.
   On a phone the line reads as a card: title, then the photo beside what we
   will do, then the price beside how firm it is. */
@media(max-width:720px){
  .em-table-head{display:none}
  .em-repair-row{
    grid-template-columns:24px 92px minmax(0,1fr);
    grid-template-areas:
      "num item item"
      "num photo solution"
      "num price status";
    gap:10px;
    align-items:start;
    padding:14px 16px;
    min-height:0
  }
  .em-row-num{grid-area:num;text-align:left;font-size:12px;padding-top:3px}
  .em-row-item{grid-area:item}
  .em-row-item strong{font-size:14px;line-height:1.3}
  .em-row-item span{font-size:11px;line-height:1.45;margin-top:4px}
  .em-row-photo{grid-area:photo;width:100%;height:72px}
  .em-row-solution{grid-area:solution;font-size:12px;line-height:1.45}
  .em-row-price{grid-area:price;text-align:left;font-size:17px;align-self:center}
  .em-row-status{grid-area:status;align-items:start;justify-items:start;gap:6px}
  /* nowrap is right in a fixed desktop column and wrong on a phone, where the
     badge is wider than the space it has on the narrowest handsets. */
  .em-badge{font-size:10px;padding:6px 9px;white-space:normal;line-height:1.25;text-align:left}
  .em-row-status a{font-size:11px;white-space:nowrap}
}

/* approved sample compact rows */
.em-sample-estimate .em-repair-row{min-height:64px;padding:6px 12px}.em-sample-estimate .em-row-photo{height:48px}.em-sample-estimate .em-row-item strong{font-size:11px}.em-sample-estimate .em-row-solution{font-size:9.5px;line-height:1.25}

/* ---------------------------------------------------------------------------
   Report evidence under each priced line.                20261012-evidence1

   A finding's block is a page-width excerpt of the inspection report - its
   heading, its wording and its own photographs, cut out in one rectangle. It
   cannot live in the old thumbnail column: at 100px it was unreadable, and
   picking a photo off the page a repair cited is what put a plumbing boot
   beside a gutter line in the first place. So the photo column goes, and the
   block runs the full width of the row underneath the words it belongs to.

   This block is last in the file on purpose. The rules above it are
   unguarded and of equal specificity, so anything declared earlier loses to
   them - the same trap that broke the phone layout once already.
--------------------------------------------------------------------------- */
.em-has-evidence .em-repair-row{
  grid-template-columns:36px minmax(0,1.3fr) minmax(0,1.3fr) 96px 150px;
  align-items:start;
  padding:14px 12px;
  min-height:0;
}
.em-has-evidence .em-row-num{padding-top:2px}
.em-has-evidence .em-row-price{align-self:start;padding-top:1px}
.em-has-evidence .em-row-status{align-items:start}

.em-row-clip{
  grid-column:1/-1;
  margin:12px 0 2px 36px;
  border:1px solid #e3e9ee;
  border-radius:7px;
  overflow:hidden;
  background:#fff;
}
/* The frame is given the block's own proportions before the picture arrives,
   so a row never jumps as the estimate fills in. */
.em-clip-frame{position:relative;width:100%;height:0;padding-bottom:40%;background:#f4f7f9}
.em-clip-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.em-row-clip figcaption{
  padding:6px 10px;
  border-top:1px solid #eef2f5;
  background:#fafbfc;
  font-size:9px;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
  color:#8694a0;
}

/* The head is re-rendered alongside the rows, and carries its own class so it
   does not depend on where it happens to sit relative to the list. */
.em-table-head.em-has-evidence-head{
  grid-template-columns:36px minmax(0,1.3fr) minmax(0,1.3fr) 96px 150px;
}

@media(max-width:720px){
  .em-has-evidence .em-repair-row{
    grid-template-columns:28px minmax(0,1fr) 92px;
    grid-template-areas:"num item item" "num solution solution" "num price status" "clip clip clip";
    gap:6px 10px;
    padding:14px 2px;
  }
  .em-has-evidence .em-row-num{grid-area:num}
  .em-has-evidence .em-row-item{grid-area:item}
  .em-has-evidence .em-row-solution{grid-area:solution}
  .em-has-evidence .em-row-price{grid-area:price;align-self:center}
  .em-has-evidence .em-row-status{grid-area:status;justify-items:end}
  .em-row-clip{grid-area:clip;margin:10px 0 0}
  .em-row-clip figcaption{font-size:8.5px}
}

/* A link whose estimate cannot be loaded. Everything that asserts a number -
   the stock property photo, the headline total, the stat strip, the tabs, the
   table furniture and the whole sidebar - comes off the page, because leaving
   it standing means showing somebody a total that was never theirs. */
.em-estimate-error .em-overview,
.em-estimate-error .em-tabs,
.em-estimate-error .em-sidebar,
.em-estimate-error .em-repairs-head,
.em-estimate-error .em-table-head{display:none}
.em-estimate-error .em-body-grid{grid-template-columns:1fr}
.em-estimate-error .em-repairs-card{border:0;background:transparent}
.em-dead{max-width:560px;margin:60px auto 76px;text-align:center}
.em-dead h2{font-size:30px;line-height:1.1;color:#0f2947;margin:0 0 14px}
.em-dead p{font-size:15px;line-height:1.55;color:#5f6e7b;margin:0 0 12px}
.em-dead .em-dead-help{font-size:14px}
.em-dead a{color:#1474d4;font-weight:800}
.em-dead-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:26px}
@media(max-width:600px){.em-dead{margin:38px auto 54px}.em-dead h2{font-size:24px}}

.em-badge.conditional,.em-badge.verify,.em-badge.scope{background:#f1f5f8!important;border:1px solid #d5e0e7!important;color:#4f6578!important}.em-badge.scope{background:#faf7f3!important}.em-break-row .orange,.em-stats .warn{color:#6f8190!important}[data-note-yellow]{font-size:10px;color:#6a7a86;line-height:1.5}
