/* Shared screen layout for EPC Tools. Diagram and print styles belong to the tool. */
.usage-counter { display:block; width:fit-content; margin:14px 0; padding:7px 12px; border:1px solid #c7dbb8; border-radius:20px; background:#eef5e4; color:#264d35; font:600 .82rem/1.4 system-ui,sans-serif; }
.usage-counter[hidden] { display:none; }
.contact-main { max-width:850px; padding-block:48px 72px; }
.contact-heading { max-width:650px; margin-bottom:30px; }
.contact-heading h1 { font-size:clamp(2rem,5vw,3.3rem); letter-spacing:-.04em; line-height:1.1; margin:12px 0 20px; }
.contact-card h2 { margin-top:0; }
.contact-card label { display:block; font-weight:650; margin:16px 0; }
.contact-card input:not([type=checkbox]), .contact-card select, .contact-card textarea { display:block; width:100%; padding:12px; margin-top:7px; border:1px solid #a5b9ab; border-radius:8px; background:#fff; color:#173a30; font:inherit; }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; }
.contact-grid .contact-wide { grid-column:1 / -1; }
.contact-card fieldset { border:1px solid #d9e4dc; border-radius:10px; padding:12px 18px; margin:20px 0; }
.contact-card legend { font-weight:700; padding:0 7px; }
.contact-card .contact-consent { display:flex; align-items:flex-start; gap:10px; font-size:.9rem; }
.contact-consent input { margin-top:5px; flex:none; }
.contact-privacy { color:#52675a; font-size:.85rem; }
.contact-error { padding:12px 16px; background:#fff0e7; border-left:4px solid #a34823; }
.contact-partner { padding:14px 18px; border-left:4px solid #6d8c52; background:#f1f6e9; font-size:.95rem; }
.contact-partner[hidden], .contact-card fieldset[hidden] { display:none; }
.contact-trap { position:absolute; left:-10000px; height:1px; width:1px; overflow:hidden; }
.contact-message { white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) { .contact-grid { grid-template-columns:1fr; } .contact-card { padding:22px; } }
@media print { .usage-counter { display:none!important; } }
:root {
  --site-ink: #19362d;
  --site-paper: #f7f8f0;
  --site-border: #d7e1d3;
  --site-green: #446b4d;
  --site-gutter: clamp(16px, 3vw, 40px);
  --site-width: 1120px;
  --site-font: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.site-head, .site-foot {
  font: 400 1rem/1.45 var(--site-font);
  display: block;
  padding: 0;
  color: var(--site-ink);
  background: var(--site-paper);
}
.site-head { border-bottom: 1px solid var(--site-border); }
.site-inner {
  width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.site-head .site-inner { min-height: 72px; padding-block: 10px; }
.site-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  font-size: 1.15rem;
  font-weight: 780;
  letter-spacing: -.03em;
  text-decoration: none;
}
.site-brand img { width: 38px; height: 38px; }
.site-nav, .site-foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .91rem;
  font-weight: 650;
  color: var(--site-ink);
  text-decoration: none;
}
.site-nav a:hover { background: #eaf0e4; }
.site-nav [aria-current="page"] { background: #dfead4; box-shadow: inset 0 -2px var(--site-green); }
.site-foot { background: #173b32; color: #f2f5ec; }
.site-foot .site-inner { padding-block: 20px; }
.site-foot strong { font-size: 1rem; }
.site-foot-links { gap: 4px 20px; }
.site-foot a, .tool-links a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; text-decoration: underline; text-underline-offset: .22em; font-size: .9rem; }
.site-skip { position: fixed; left: 12px; top: 10px; transform: translateY(-160%); z-index: 100; background: white; color: var(--site-ink); border-radius: 8px; padding: 10px 16px; }
.site-skip:focus { transform: none; }
.site-head a:focus-visible, .site-foot a:focus-visible, .tool-links a:focus-visible { outline: 3px solid #ae631e; outline-offset: 2px; }
@media screen {
  body { font-family: var(--site-font); background: var(--site-paper); color: var(--site-ink); }
  .wrap, .outer-container, .meter-page main {
    width: min(var(--site-width), calc(100% - 2 * var(--site-gutter)));
    margin-inline: auto;
  }
  .outer-container, .meter-page main { padding-inline: 0; }
  .utility-page { min-height: 100vh; display: flex; flex-direction: column; }
  .utility-page main { flex: 1; }
  .utility-page .admin-main { max-width: 720px; }
  .utility-page .admin-main > .tool-links { margin-bottom: 22px; }
  .reno-page .hero { gap: clamp(20px, 4vw, 54px); }
  .reno-page .hero h1, .sketch-page .hero h1 { font-weight: 730; letter-spacing: -.055em; line-height: 1.02; }
  .reno-page .hero h1 em, .sketch-page .hero h1 em { font-family: Georgia, serif; font-style: italic; font-weight: 500; }
  .reno-page .hero h1 em { color: var(--site-green); }
  .tool-links { display: flex; align-items: center; flex-wrap: wrap; gap: 0 18px; }
  .tool-links a { font-weight: 600; }
  .reno-page .tool-links { margin-top: 18px; }
  .sketch-page .tool-links { margin-top: 8px; }
  .reno-note { margin-block: 0; padding-block: 16px; font-size: .88rem; color: #486353; }
  .reno-note a { text-decoration: underline; text-underline-offset: .2em; }
  .meter-page { --ink: var(--site-ink); --green: #24513e; --line: var(--site-border); --soft: #edf3e6; }
  .meter-page main { padding-block: clamp(22px, 4vw, 46px) 48px; }
  .meter-page .top { gap: 16px; margin-bottom: 22px; }
  .meter-page .top > div:first-child { min-width: 0; overflow-wrap: anywhere; }
  .meter-page h1 { font-size: clamp(1.85rem, 4.5vw, 3rem); letter-spacing: -.045em; }
  .meter-page #eyebrow { font-weight: 750; letter-spacing: .1em; font-size: .73rem; color: var(--site-green); }
  .meter-page section, .meter-page details.box { border-radius: 15px; padding: clamp(14px, 2.3vw, 26px); }
  .meter-page .credit { display: none; }
  .meter-page button:not(.iconAction), .meter-page a.action, .button.primary, .reno-page .button-primary { border-radius: 9px; }
  .meter-page .bar button, .meter-page .bar .action { min-height: 42px; }
  .meter-page .grid > * { min-width: 0; }
}
@media screen and (max-width: 720px) {
  .site-head .site-inner { align-items: flex-start; flex-direction: column; padding-block: 10px 7px; gap: 4px; }
  .site-nav { margin-inline-start: -6px; gap: 0 2px; }
  .site-nav a { min-height: 40px; padding-inline: 7px; font-size: .86rem; }
  .site-brand img { width: 32px; height: 32px; }
  .site-foot .site-inner { align-items: flex-start; flex-direction: column; }
  .meter-page .bar .actions { row-gap: 6px; }
  .reno-page .workspace-top { flex-wrap: wrap; }
}
@media print {
  .site-head, .site-foot, .site-skip, .tool-links, .reno-note { display: none !important; }
}

.usage-stats { overflow-x:auto; }
.usage-stats table { width:100%; border-collapse:collapse; text-align:left; }
.usage-stats th,.usage-stats td { padding:12px; border-bottom:1px solid #d9e4dc; }
.usage-stats thead { background:#f1f6e9; }
