/* 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(110 38% 34%); --accent-ink:#ffffff;
  --accent-soft:hsl(110 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(110 48% 68%); --accent-ink:#12151a;
  --accent-soft:hsl(110 32% 20%);
    --accent-soft:hsl(110 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(110 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:Big Shoulders,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:Big Shoulders,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:Big Shoulders,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}}

.tc-ask{padding:30px 0 4px}
.tc-ask h1{font-size:clamp(1.9rem,5vw,2.7rem); line-height:1.14; letter-spacing:-.022em;
  margin:0 0 24px; max-width:17ch; text-wrap:balance}
.tc-ask .finder{margin:0 0 18px; max-width:none}
.tc-lede{color:var(--muted); font-size:1rem; line-height:1.62; max-width:62ch; margin:0}

.tc-risk{margin:40px 0 0; border-left:3px solid var(--accent); padding:2px 0 2px 18px}
.tc-risk h2{font-size:1.08rem; margin:0 0 14px}
.tc-viollist{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px}
.tc-viollist li{font-size:.93rem; line-height:1.5; padding:11px 14px; background:var(--card);
  border:1px solid var(--line); border-radius:8px}
.tc-viollist li:last-child{border-color:var(--accent); background:var(--accent-soft)}
.tc-viol-note{font-size:.84rem; color:var(--muted); margin:12px 0 0; max-width:60ch}

.tc-figure{margin:20px 0 0; padding:16px 18px; background:var(--card); border:1px solid var(--line); border-radius:10px}
.tc-bar-row{display:flex; align-items:center; gap:10px; margin:0 0 9px}
.tc-bar-row:last-of-type{margin-bottom:0}
.tc-bar-label{flex:0 0 62px; font-size:.78rem; color:var(--muted)}
.tc-bar-track{flex:1; height:9px; background:var(--line); border-radius:5px; overflow:hidden}
.tc-bar-fill{height:100%; border-radius:5px}
.tc-bar-fill.b-weak{background:hsl(110 30% 62%)}
.tc-bar-fill.b-sig{background:hsl(110 45% 46%)}
.tc-bar-fill.b-viol{background:hsl(110 65% 26%)}
.tc-bar-fill.b-unr{background:var(--muted)}
.tc-bar-n{flex:0 0 44px; text-align:right; font-size:.78rem; color:var(--muted); font-variant-numeric:tabular-nums}
.tc-figure figcaption{margin:12px 0 0; font-size:.78rem; color:var(--muted)}

.tc-money{margin:34px 0 0}
.tc-money h2{font-size:1.06rem; margin:0 0 14px}
.tc-money h3{font-size:.86rem; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); margin:18px 0 6px}
.tc-money h3:first-of-type{margin-top:0}
.tc-money p{font-size:.93rem; line-height:1.6; max-width:64ch; margin:0}

.tc-answer{display:flex; align-items:center; gap:14px; margin:0 0 8px; padding:14px 16px;
  background:var(--card); border:1px solid var(--line); border-radius:12px}
.tc-answer-badge{flex:0 0 auto; min-width:68px; height:58px; border-radius:10px; display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:var(--accent-ink); text-align:center; padding:0 8px}
.tc-answer-badge .k{font-weight:700; font-size:1rem; line-height:1.1}
.tc-answer-badge .v{font-size:.58rem; text-transform:uppercase; letter-spacing:.04em; opacity:.85; line-height:1.2}
.tc-answer-badge.r-min{background:hsl(110 30% 78%)}
.tc-answer-badge.r-low{background:hsl(110 35% 66%)}
.tc-answer-badge.r-mod{background:hsl(110 42% 52%)}
.tc-answer-badge.r-elv{background:hsl(110 55% 38%)}
.tc-answer-badge.r-high{background:hsl(110 65% 24%)}
.tc-answer-txt{font-size:.94rem; line-height:1.5}
.tc-answer-txt strong{display:block; font-size:1.04rem; margin-bottom:1px}
@media (max-width:620px){
  .tc-ask{padding:18px 0 4px} .tc-ask h1{max-width:none}
  .tc-bar-label{flex-basis:52px} .tc-bar-n{flex-basis:36px}
}
