/* Rendered Consumer Confidence Report document.
   One stylesheet for both surfaces: the public page a resident opens and the
   in-app preview the operator reviews before publishing. Scoped to .ccrdoc so
   it never collides with the app shell. */

.ccrdoc{
  --c-ink:#12242a; --c-ink2:#42565c; --c-ink3:#54666b;
  --c-edge:#dbe4e5; --c-edge2:#eef3f3; --c-accent:#0f6f76; --c-soft:#e6f1f1;
  --c-warn:#b45309; --c-warnsoft:#fdf3e3;
  color:var(--c-ink); line-height:1.62; max-width:70ch; margin:0 auto;
}
.ccrdoc.wide, .ccr-paper .ccrdoc{max-width:none}

.ccrdoc .ccr-head{padding:26px 0 6px}
.ccrdoc .ccr-year{font-size:12.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--c-accent);font-weight:700}
.ccrdoc h1{font-size:clamp(25px,4.4vw,36px);line-height:1.14;margin:10px 0 6px;letter-spacing:-.015em}
.ccrdoc .ccr-sub{margin:0 0 14px;color:var(--c-ink2);font-size:14.5px}
.ccrdoc .ccr-intro{font-size:16.5px;color:var(--c-ink2);margin:0 0 4px}

.ccrdoc .ccr-lang{background:var(--c-soft);border-left:4px solid var(--c-accent);
  padding:12px 16px;border-radius:0 8px 8px 0;margin:18px 0;font-size:15px;font-style:italic}

.ccrdoc .ccr-sec{padding:20px 0;border-top:1px solid var(--c-edge2)}
.ccrdoc .ccr-sec:first-of-type{border-top:none}
.ccrdoc h2{font-size:20px;margin:0 0 10px;letter-spacing:-.01em;line-height:1.25}
.ccrdoc h3.ccr-cat{font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--c-accent);margin:20px 0 8px}
.ccrdoc p{margin:10px 0}
.ccrdoc .ccr-note{color:var(--c-ink2);font-size:15px}

/* results table — scrolls on its own, never the page */
.ccrdoc .ccr-tablewrap{overflow-x:auto;border:1px solid var(--c-edge);border-radius:10px}
.ccrdoc .ccr-table{border-collapse:collapse;width:100%;font-size:13.5px;min-width:680px}
.ccrdoc .ccr-table th,.ccrdoc .ccr-table td{padding:9px 12px;text-align:left;
  border-bottom:1px solid var(--c-edge2);vertical-align:top}
.ccrdoc .ccr-table thead th{background:#f7fafa;font-size:11.5px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--c-ink3);font-weight:600}
.ccrdoc .ccr-table tbody tr:last-child td{border-bottom:none}
.ccrdoc .ccr-subrow td{padding-top:0;font-size:12px;color:var(--c-ink3);border-bottom:none}
.ccrdoc .ccr-viol{color:var(--c-warn);font-weight:700}

.ccrdoc .ccr-violations .ccr-violation{background:var(--c-warnsoft);
  border-left:4px solid var(--c-warn);border-radius:0 10px 10px 0;padding:14px 18px;margin:12px 0}
.ccrdoc .ccr-violation h3{margin:0 0 6px;font-size:16.5px}
.ccrdoc .ccr-period{font-weight:400;color:var(--c-ink3);font-size:14px}

.ccrdoc .ccr-required p{font-size:15px;color:var(--c-ink2)}
.ccrdoc .ccr-defs{margin:8px 0 0}
.ccrdoc .ccr-defs dt{font-weight:700;margin-top:12px;font-size:14.5px}
.ccrdoc .ccr-defs dd{margin:2px 0 0;color:var(--c-ink2);font-size:14.5px}
.ccrdoc .ccr-contact p{font-size:15.5px}
.ccrdoc .ccr-foot{border-top:1px solid var(--c-edge2);margin-top:22px;padding-top:14px;
  font-size:12.5px;color:var(--c-ink3)}

/* phones: the results table becomes stacked rows so nothing is cut off */
@media (max-width:640px){
  .ccrdoc .ccr-table{min-width:0;display:block}
  .ccrdoc .ccr-table thead{display:none}
  .ccrdoc .ccr-table tbody,.ccrdoc .ccr-table tr,.ccrdoc .ccr-table td{display:block;width:100%}
  .ccrdoc .ccr-table tr{border-bottom:1px solid var(--c-edge);padding:8px 0}
  .ccrdoc .ccr-table tr:last-child{border-bottom:none}
  .ccrdoc .ccr-table td{border-bottom:none;padding:4px 12px;display:flex;gap:10px}
  .ccrdoc .ccr-table td::before{content:attr(data-l);flex:0 0 42%;font-size:11.5px;
    text-transform:uppercase;letter-spacing:.04em;color:var(--c-ink3);font-weight:600;padding-top:2px}
  .ccrdoc .ccr-subrow td{padding-left:12px}
  .ccrdoc .ccr-subrow td::before{content:""}
  .ccrdoc .ccr-tablewrap{border-radius:10px}
}

@media print{
  .ccrdoc{max-width:none;color:#000}
  .ccrdoc .ccr-tablewrap{overflow:visible;border-color:#999}
  .ccrdoc .ccr-table{min-width:0;font-size:9.5pt}
  .ccrdoc .ccr-sec{break-inside:avoid;page-break-inside:avoid}
  .ccrdoc h2{break-after:avoid;page-break-after:avoid}
}

/* Verdict banner — the answer a resident came for, before anything else */
.ccrdoc .ccr-verdict{border-radius:12px;padding:16px 20px;margin:18px 0 6px;border:1px solid}
.ccrdoc .ccr-verdict.is-ok{background:#e8f4ec;border-color:#bcdfc8}
.ccrdoc .ccr-verdict.is-warn{background:var(--c-warnsoft);border-color:#e6c894}
.ccrdoc .ccr-verdict-head{margin:0;font-size:18.5px;font-weight:700;line-height:1.35}
.ccrdoc .ccr-verdict-sub{margin:6px 0 0;font-size:15px;color:var(--c-ink2)}
.ccrdoc .ccr-legend{background:#f7fafa;border-radius:10px;padding:12px 16px;font-size:14px;
  color:var(--c-ink2);margin:0 0 14px}
.ccrdoc .ccr-ok{color:#256b41;font-weight:600}
.ccrdoc .ccr-missing{color:var(--c-warn)}
.ccrdoc .ccr-actions-sec p{font-size:15px}

/* Exactly at the limit: legal, but not the reassuring green of a pass. */
.ccrdoc .ccr-atlimit{color:#8a5a00;font-weight:600}
