/* ===================================================
   ESTIMATE YOUR BUILDING — widget styles
   Owned by A2. Reuses tokens from style.css / tokens.css —
   does not redefine :root. Loads alongside the site stylesheet.
   =================================================== */

.eyb{max-width:var(--max);margin:0 auto}
.eyb-step{display:none}
.eyb-step.active{display:block}

.eyb-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.eyb-tile{
  border:1.5px solid var(--line);background:var(--paper);padding:28px 20px;
  text-align:left;cursor:pointer;font-family:inherit;color:var(--ink);
  transition:.15s;display:flex;flex-direction:column;gap:8px;
}
.eyb-tile:hover,.eyb-tile:focus-visible{border-color:var(--color-accent,var(--accent));outline:none}
.eyb-tile:focus-visible{box-shadow:0 0 0 2px var(--color-accent,var(--accent))}
.eyb-tile .n{font-family:var(--mono);font-size:.72rem;color:var(--muted);letter-spacing:.08em}
.eyb-tile h4{font-size:1.05rem;margin:0}
.eyb-tile .tier-note{font-size:.8rem;color:var(--muted);margin:0}

.eyb-back{
  background:none;border:0;color:var(--color-accent-text,var(--accent));font-family:inherit;
  font-size:1rem;font-weight:600;cursor:pointer;padding:0;margin-bottom:20px;
  text-decoration:underline;text-underline-offset:3px;
}
.eyb-back:hover{color:var(--ink)}

.eyb-form{max-width:var(--text);margin-top:20px}
.eyb-field{margin-bottom:20px}
.eyb-field label{display:block;font-size:.82rem;font-weight:600;color:var(--ink);margin-bottom:7px}
.eyb-field .hint{font-size:.78rem;color:var(--muted);margin-top:5px}
.eyb-field input,.eyb-field select{
  width:100%;padding:12px 14px;border:1px solid var(--line);background:var(--paper);
  font-family:inherit;font-size:1rem;color:var(--ink);
}
.eyb-field input:focus,.eyb-field select:focus{outline:none;border-color:var(--navy-soft)}
.eyb-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}

.eyb-hp{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}

.eyb-consent label{display:flex;align-items:flex-start;gap:9px;font-size:.86rem;font-weight:400;color:var(--body)}
.eyb-consent input[type="checkbox"]{width:auto;margin-top:3px;flex-shrink:0}
.eyb-consent a{text-decoration:underline;color:var(--ink)}

.eyb-submit{
  padding:14px 30px;background:var(--ink);color:#fff;border:0;
  font-family:inherit;font-size:.94rem;font-weight:500;cursor:pointer;
}
.eyb-submit:hover{background:var(--navy-soft)}
.eyb-submit:disabled{opacity:.5;cursor:not-allowed}

.eyb-refusal{
  background:var(--wash);border-left:2px solid var(--color-accent,var(--accent));padding:24px 26px;
  margin-top:20px;max-width:var(--text);
}
.eyb-refusal strong{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.eyb-refusal .btn{margin-top:16px}

.eyb-output{margin-top:28px;max-width:var(--text)}
.eyb-band{
  font-family:'Instrument Serif',serif;font-size:clamp(2.2rem,5vw,3.4rem);
  color:var(--ink);display:block;margin:10px 0 6px;
}
.eyb-class{font-size:.86rem;color:var(--muted)}
.eyb-standards{
  font-size:.82rem;color:var(--muted);background:var(--wash);padding:16px 20px;
  margin-top:20px;border-left:2px solid var(--line);line-height:1.6;
}
.eyb-placeholder-flag{
  display:inline-block;font-family:var(--mono);font-size:.68rem;letter-spacing:.05em;
  color:#8A6516;background:#FBF4E6;border:1px solid #8A6516;padding:3px 8px;margin-bottom:14px;
}
.eyb-scope-note{font-size:.86rem;color:var(--body);margin-top:16px;max-width:var(--text)}

.eyb-download-cta{margin-top:32px;padding-top:28px;border-top:1px solid var(--line)}
.eyb-download-cta h4{margin-bottom:6px}

.eyb-status{font-size:.86rem;margin-top:14px}
.eyb-status.ok{color:#1D6F4E}
.eyb-status.warn{color:#8A6516}

/* ---------- BOQ panel — structure shown, quantities withheld ---------- */
.eyb-boq{
  border:1px solid var(--line);background:var(--wash);
  margin:26px 0 22px;max-width:720px;
}
.eyb-boq-head{
  font-family:var(--mono);font-size:.68rem;letter-spacing:.11em;
  color:var(--muted);background:var(--paper);
  padding:11px 16px;border-bottom:1px solid var(--line);
}
.eyb-boq-body{padding:6px 16px}
/* SI unit symbols are case-sensitive — an inherited uppercase transform
   renders tonnes as "T" and cubic metres as "M³", both of which are wrong. */
.eyb-boq-table,.eyb-boq-table th,.eyb-boq-table td{text-transform:none}
.eyb-boq-empty{font-size:.88rem;color:var(--muted);margin:12px 0}
.eyb-boq-table{width:100%;border-collapse:collapse;font-size:.9rem}
/* style.css styles every bare <th> as a site table header — navy fill, white
   text. This is a row-label column inside a light panel, not a site table.
   Without the reset the navy fill was inherited while the colour below
   overrode the white, leaving --ink on --navy at 1.02:1. Measured in the
   DOM, not read from source: the cascade is not visible in this file alone. */
.eyb-boq-table th{
  text-align:left;font-weight:500;color:var(--ink);
  background:transparent;text-transform:none;letter-spacing:normal;
  font-size:.9rem;
  padding:9px 0;border-bottom:1px solid var(--line);
}
.eyb-boq-table tr:last-child th,
.eyb-boq-table tr:last-child td{border-bottom:0}
.eyb-boq-table td{
  padding:9px 0;border-bottom:1px solid var(--line);
  text-align:right;white-space:nowrap;
}
.eyb-boq-note{color:var(--muted);font-weight:400;font-size:.82rem}
.eyb-boq-unit{font-family:var(--mono);font-size:.75rem;color:var(--muted)}
.eyb-boq-withheld{font-size:.82rem;color:#8A6516}
.eyb-boq-foot{
  font-size:.8rem;color:var(--muted);
  padding:11px 16px;border-top:1px solid var(--line);
}
.eyb-boq-foot:empty{display:none}

@media(max-width:900px){
  .eyb-tiles{grid-template-columns:1fr 1fr}
  .eyb-row{grid-template-columns:1fr}
}
@media(max-width:520px){
  .eyb-tiles{grid-template-columns:1fr}
}
