/* Design system for every factory site.
   Grounded in the subject's own vernacular: these sites all answer a question
   with a VERDICT and a NUMBER, so the page is built around an energy-label
   style rating rather than generic cards. Verdict colour is semantic and
   deliberately separate from the brand accent. */
:root{
  --paper:#fbfaf8; --raised:#ffffff; --ink:#15171b; --ink-2:#454b56;
  --muted:#6b7280; --line:#e5e2dd; --line-2:#efedea;
  --card:var(--raised); --bg:var(--raised);
  --accent:hsl(338 38% 34%); --accent-ink:#ffffff;
  --accent-soft:hsl(338 46% 94%);
  --good:#1b6e4a; --good-bg:#e8f3ed;
  --mid:#9a6410;  --mid-bg:#f7efe0;
  --bad:#983a2e;  --bad-bg:#f8ebe8;
  --r:10px;
}
:root:not([data-theme="light"]){
  @media (prefers-color-scheme:dark){
    --paper:#15171b; --raised:#1c1f25; --ink:#eceef1; --ink-2:#b7bcc6;
    --muted:#8d95a3; --line:#2b2f37; --line-2:#232830;
    --accent:hsl(338 48% 68%); --accent-ink:#12151a;
  --accent-soft:hsl(338 32% 20%);
    --accent-soft:hsl(338 32% 20%);
    --good:#5cc48d; --good-bg:#16281f;
    --mid:#d9a349;  --mid-bg:#2a2317;
    --bad:#e08678;  --bad-bg:#2b1c19;
  }
}
:root[data-theme="dark"]{
  --paper:#15171b; --raised:#1c1f25; --ink:#eceef1; --ink-2:#b7bcc6;
  --muted:#8d95a3; --line:#2b2f37; --line-2:#232830;
  --accent:hsl(338 48% 68%); --accent-ink:#12151a;
  --good:#5cc48d; --good-bg:#16281f;
  --mid:#d9a349;  --mid-bg:#2a2317;
  --bad:#e08678;  --bad-bg:#2b1c19;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--paper); color:var(--ink);
  font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-variant-numeric:tabular-nums;
}
h1,h2,h3,.display{
  font-family:Alegreya,Georgia,"Times New Roman",serif;
  font-weight:500; letter-spacing:-.012em; text-wrap:balance;
}
header{
  border-bottom:1px solid var(--line); background:var(--raised);
}
header .in{max-width:46rem; margin:0 auto; padding:14px 22px}
header a{color:var(--ink); text-decoration:none; font-size:16px; font-weight:600; letter-spacing:-.01em}
main{max-width:46rem; margin:0 auto; padding:28px 22px 56px}
h1{font-size:clamp(1.7rem,4.2vw,2.3rem); line-height:1.15; margin:0 0 .5em}
h2{font-size:1.3rem; line-height:1.25; margin:2.4em 0 .6em}
h3{font-size:1.06rem; margin:1.8em 0 .4em}
p{margin:0 0 1.05em; color:var(--ink-2)}
main > section > p:first-of-type{color:var(--ink)}
a{color:var(--accent); text-underline-offset:2px; text-decoration-thickness:1px}
a:hover{text-decoration:none}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:3px}

/* THE ANSWER. Biggest thing on the page, because it is why anyone came. */
.verdict{
  background:var(--raised); border:1px solid var(--line); border-radius:var(--r);
  padding:22px 24px; margin:0 0 26px; display:flex; flex-direction:column; gap:14px;
}
.verdict .figure{
  font-family:Alegreya,Georgia,"Times New Roman",serif; font-weight:500;
  font-size:clamp(2.6rem,9vw,3.9rem); line-height:.95; letter-spacing:-.03em;
}
.verdict .figure small{font-size:.34em; letter-spacing:0; color:var(--muted); font-family:inherit}
.verdict .says{color:var(--ink-2); margin:0; font-size:1.02rem}
.badge{
  align-self:flex-start; font-size:.72rem; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; padding:5px 11px; border-radius:999px;
}
.badge.good{background:var(--good-bg); color:var(--good)}
.badge.mid {background:var(--mid-bg);  color:var(--mid)}
.badge.bad {background:var(--bad-bg);  color:var(--bad)}

/* The inputs behind the answer, at a glance. */
.stats{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(118px,1fr));
  gap:1px; background:var(--line); border:1px solid var(--line);
  border-radius:var(--r); overflow:hidden; margin:0 0 26px;
}
.stats div{background:var(--raised); padding:13px 15px}
.stats b{display:block; font-size:1.22rem; font-weight:600; letter-spacing:-.01em}
.stats span{
  display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.07em;
  color:var(--muted); margin-top:3px;
}
section{margin-bottom:.4em}
ul,ol{padding-left:1.15em; color:var(--ink-2)}
li{margin:.32em 0}
table{width:100%; border-collapse:collapse; margin:1.3em 0; font-size:.94rem}
th,td{text-align:left; padding:.58em .65em; border-bottom:1px solid var(--line-2)}
th{
  font-size:.68rem; text-transform:uppercase; letter-spacing:.07em;
  color:var(--muted); font-weight:600; border-bottom-color:var(--line);
}
td:not(:first-child),th:not(:first-child){text-align:right}
.scroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
code{background:var(--line-2); padding:.12em .38em; border-radius:4px; font-size:.9em}
footer{
  border-top:1px solid var(--line); margin-top:56px; padding:26px 22px;
  color:var(--muted); font-size:.84rem; text-align:center; background:var(--raised);
}
footer a{color:var(--muted)}
.attribution{margin:.6em 0 0; font-size:.78rem}
.brand{display:inline-flex; align-items:center; gap:9px}
.brand svg{display:block; border-radius:6px}
.brand span{font-family:Alegreya,Georgia,"Times New Roman",serif; font-weight:600; font-size:17px}
#q{
  width:100%; padding:.7em .85em; font-size:1rem; font-family:inherit;
  border:1px solid var(--line); border-radius:var(--r);
  background:var(--raised); color:var(--ink); margin-bottom:1.1em;
}
#ix{columns:2; column-gap:2.2em; list-style:none; padding:0; margin:0; font-size:.94rem}
#ix li{margin:.16em 0; break-inside:avoid}
@media (max-width:620px){
  body{font-size:16px}
  main{padding:20px 17px 44px}
  .verdict{padding:18px 18px}
  #ix{columns:1}
  th,td{padding:.45em .4em}
}

/* ---- HEADER + NAV -----------------------------------------------------
   A site with no navigation reads as a document. Three links is enough. */
header .in{display:flex; align-items:center; justify-content:space-between; gap:20px}
header nav{display:flex; gap:20px; font-size:.92rem}
header nav a{color:var(--ink-2); text-decoration:none}
header nav a:hover{color:var(--accent)}
@media (max-width:620px){ header nav{gap:14px; font-size:.85rem} }

/* ---- HERO -------------------------------------------------------------
   The question the site answers, asked as a question, with the tool right
   under it. This is the single biggest difference between PanelFit, which
   reads like a product, and everything else, which read like a memo. */
.hero{text-align:center; padding:34px 0 8px; border:0}
.hero h1{
  font-size:clamp(1.85rem, 5.2vw, 3rem); line-height:1.12; letter-spacing:-.022em;
  margin:0 auto .5em; max-width:16ch; text-wrap:balance;
}
.hero .lede{
  color:var(--ink-2); font-size:1.06rem; line-height:1.62;
  max-width:54ch; margin:0 auto 28px; text-wrap:pretty;
}
@media (max-width:620px){ .hero{padding:22px 0 4px} .hero h1{max-width:none} }

/* ---- THE FINDER -------------------------------------------------------
   The primary control on every site, so it is styled like one: a large,
   obviously-typeable field at the top of the page rather than a link list
   pretending to be navigation. */
.finder{
  margin:0 auto 34px; max-width:560px; text-align:left;
  background:var(--card); border:1px solid var(--line); border-radius:14px;
  padding:18px; box-shadow:0 1px 2px rgba(0,0,0,.04), 0 8px 24px -16px rgba(0,0,0,.18);
}
.finder-row{display:flex; gap:9px}
.finder input{
  flex:1; min-width:0; padding:.82em 1em; font-size:1.02rem; font-family:inherit;
  color:var(--ink); background:var(--bg);
  border:1.5px solid var(--line); border-radius:9px; outline:none;
}
.finder button{
  flex:0 0 auto; padding:.82em 1.25em; font:inherit; font-size:.98rem; font-weight:600;
  color:var(--accent-ink); background:var(--accent); border:0; border-radius:9px;
  cursor:pointer; white-space:nowrap;
}
.finder button:hover{filter:brightness(1.08)}
.finder button:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
@media (max-width:620px){ .finder-row{flex-direction:column} .finder button{width:100%} }
.finder input:focus{border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft)}
.finder input::placeholder{color:var(--muted)}
.finder-h{color:var(--muted); font-size:.86rem; margin-top:.5em}
.finder-out{
  list-style:none; margin:.5em 0 0; padding:0;
  border:1px solid var(--line); border-radius:9px; overflow:hidden; background:var(--card);
}
.finder-out li{border-bottom:1px solid var(--line-2)}
.finder-out li:last-child{border-bottom:0}
.finder-out a{display:block; padding:.62em .95em; text-decoration:none; color:var(--ink)}
.finder-out li.on, .finder-out a:hover, .finder-out a:focus{background:var(--accent-soft)}
.finder-out li.on a{color:var(--accent)}
.finder-out li.wait{padding:.62em .95em; color:var(--muted); cursor:default}

/* Browsing is the fallback, not the front door, so it starts collapsed
   instead of dumping a hundred links between the reader and the content.
   It stays in the HTML - closed <details> is still crawled, and it is the
   whole path Googlebot uses to reach the entity pages. */
.browse{margin:0 0 34px; border-top:1px solid var(--line-2); padding-top:16px}
.browse summary{cursor:pointer; font-weight:500; color:var(--ink-2); font-size:.95rem}
.browse summary:hover{color:var(--accent)}
.hublist{
  list-style:none; padding:0; margin:16px 0 0; font-size:.92rem;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:2px 18px;
}
.hublist li{display:flex; justify-content:space-between; gap:10px; align-items:baseline;
  padding:.3em 0; border-bottom:1px solid var(--line-2)}
.hublist li span{color:var(--muted); font-size:.8rem; font-variant-numeric:tabular-nums}
@media (max-width:620px){ .hublist{grid-template-columns:1fr} .finder input{font-size:16px} }

@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important}}

.mm-top { padding: 2.25rem 0 1.25rem; max-width: 40rem; }
.mm-top h1 { font-size: clamp(1.75rem, 4.4vw, 2.6rem); line-height: 1.08; margin: 0 0 .7rem; letter-spacing: -.01em; }
.mm-lede { color: var(--muted); font-size: 1.06rem; margin: 0 0 1.4rem; }
.mm-find label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.mm-find .finder-row { display: flex; gap: 0; border: 2px solid var(--ink); border-radius: 3px; background: var(--card); }
.mm-find input { flex: 1; border: 0; padding: .8rem .9rem; font-size: 1.05rem; background: transparent; min-width: 0; }
.mm-find input:focus { outline: none; }
.mm-find .finder-row:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.mm-find button { border: 0; border-left: 2px solid var(--ink); background: var(--accent); color: #fff; padding: 0 1.1rem; font-weight: 600; cursor: pointer; }
.mm-find button:hover { background: var(--ink); }
.mm-find .finder-h { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; }

.mm-year { margin: 2.5rem 0 0; }
.mm-year h2, .mm-prep h2, .mm-browse h2 { font-size: 1.3rem; margin: 0 0 .5rem; }
.mm-year > p { max-width: 38rem; }
.mm-scroll { overflow-x: auto; margin: 1rem -.25rem 0; }
.mm-cal { border-collapse: separate; border-spacing: 2px 3px; width: 100%; min-width: 34rem; font-size: .88rem; }
.mm-cal caption { text-align: left; font-size: .8rem; color: var(--muted); padding: 0 .25rem .4rem; }
.mm-cal thead th { font-weight: 500; color: var(--muted); font-size: .75rem; text-align: left; padding: 0 0 .1rem .2rem; }
.mm-cal tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding-right: .7rem; }
.mm-cal tbody th a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mm-cal tbody th a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.mm-cal td { height: 1.7rem; padding: 0; border-radius: 1px; }
.mm-cal td span { position: absolute; left: -9999px; }
.mm-cal td.lv-off { background: var(--line); opacity: .45; }
.mm-cal td.lv-active { background: color-mix(in srgb, var(--accent) 38%, var(--card)); }
.mm-cal td.lv-peak { background: var(--accent); }
.mm-cal tr:hover td.lv-active, .mm-cal tr:hover td.lv-peak { filter: saturate(1.35); }
.mm-cal .mm-span { white-space: nowrap; color: var(--muted); padding-left: .7rem; font-size: .8rem; background: none; }
.mm-rest, .vh { position: absolute; left: -9999px; }
@media (min-width: 46rem) { .mm-rest { position: static; } }

.mm-prep { margin: 2.75rem 0 0; padding: 1.4rem 1.5rem 1.1rem; border-left: 4px solid var(--accent); background: var(--card); max-width: 42rem; }
.mm-prep ul { padding-left: 1.1rem; margin: .8rem 0; }
.mm-prep li { margin: .45rem 0; }
.mm-wnv { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .8rem; margin-bottom: 0; }

.mm-browse { margin: 3rem 0 1rem; }
.mm-browse .hublist { columns: 12rem; column-gap: 1.5rem; padding: 0; list-style: none; }
.mm-browse .hublist li { break-inside: avoid; display: flex; justify-content: space-between; padding: .2rem 0; border-bottom: 1px solid var(--line); }
.mm-browse .hublist a:hover { color: var(--accent); }
.mm-browse .hublist span { color: var(--muted); font-size: .8rem; }

.mm-answer { font-size: 1.1rem; }
.mm-gt { border-collapse: collapse; width: 100%; font-size: .92rem; margin: .6rem 0; }
.mm-gt th, .mm-gt td { text-align: left; padding: .35rem .6rem .35rem 0; border-bottom: 1px solid var(--line); }
.mm-gt th { font-weight: 600; color: var(--muted); font-size: .8rem; }
.mm-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; list-style: none; padding: 0; margin: 1rem 0; font-size: .75rem; text-align: center; }
.mm-strip li { padding: .5rem 0; }
.mm-strip abbr { text-decoration: none; }
.mm-strip .lv-off { background: var(--line); color: var(--muted); }
.mm-strip .lv-active { background: color-mix(in srgb, var(--accent) 38%, var(--card)); }
.mm-strip .lv-peak { background: var(--accent); color: #fff; }
