/* Front page at decarbtools.uk (session 26). Layout only: every colour, font, size and spacing step
   comes from the estimator's own theme.css, which make_site.py copies in unchanged, so the front page
   can't drift from the tool's layout. A test fails if this file holds a colour of its own.
   Unbranded (John, row 63; Stephanie, 1 Dec): theme.css's neutral defaults, not the Hub's host file;
   no logo or brand stripe. The Hub is credited in words on the estimator's card only. */
:root { --ews-teal: #2b8196; --ews-green: #6f9a3b; --ews-orange: #c7601c; }  /* EWS in Partnership logo colours, stripe only */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.5; color: var(--text); background: var(--page-bg); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--heading-weight); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 6px 10px; color: var(--text); z-index: 20; }
.wrap { max-width: var(--content-width); margin: 0 auto; padding-left: var(--space-5); padding-right: var(--space-5); }
@media (max-width: 700px) { .wrap { padding-left: var(--space-3); padding-right: var(--space-3); } }
.muted { color: var(--text-2); }
.small { font-size: 15px; }

/* header: the tool's top bar without the logo slot */
.topbar { background: var(--topbar-bg); border-bottom: 1px solid var(--line); color: var(--topbar-text); }
.topbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding-top: 18px; padding-bottom: 18px; }
.site-title { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 20px; color: var(--topbar-text); text-decoration: none; }
.site-title:hover { color: var(--topbar-text); text-decoration: underline; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-text); }

/* pages */
main { display: block; padding-top: var(--space-5); padding-bottom: 64px; }
main:focus { outline: none; }
h1 { font-size: 32px; line-height: 1.15; margin: 6px 0 10px; }
h2 { font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
.prose { max-width: 46em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 var(--space-4); }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.inset { border-left: 4px solid var(--action-bg); padding: 4px 0 4px 16px; margin: 0 0 16px; max-width: 46em; }

/* EWS in Partnership's colour nod (Stephanie, 1 Dec): a thin stripe of its teal, green and orange under the
   top bar, as the Hub's stripe sits in the estimator. Set here, not in theme.css, because it belongs to the
   front page's operator, not to the tools' theme. Decorative only: these colours are never used for text. */
.stripe { height: 4px; background: linear-gradient(90deg, var(--ews-teal) 0 33.4%, var(--ews-green) 33.4% 66.7%, var(--ews-orange) 66.7% 100%); }

/* introduction: a short heading and one line, then the test-site notice across the full width, so every block
   shares the same left and right edges (Stephanie, 1 Dec: less wordy, better balanced) */
.intro { margin: 48px 0 var(--space-5); }
.intro h1 { font-size: 40px; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.lede { font-size: 20px; color: var(--text-2); margin: 10px 0 0; max-width: 36em; }
@media (max-width: 700px) { .intro { margin-top: var(--space-5); } .intro h1 { font-size: 30px; } .lede { font-size: 18px; } }
.notice { margin: 0 0 40px; padding: 12px 18px; border-left: 4px solid var(--start-bg); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-3); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; font-size: 15px; }

/* tools: each tool a card; the estimator's has its infographic on a dark panel on wide screens */
.tools { list-style: none; margin: 0; padding: 0; }
.tool.main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; border: 2px solid var(--action-bg); padding: 28px 28px 28px 36px; margin: 0; }
@media (max-width: 960px) { .tool.main { grid-template-columns: 1fr; gap: var(--space-5); padding: 20px; } }
.tool-text { display: flex; flex-direction: column; gap: var(--space-3); }
.tool h3 { font-size: 26px; margin: 0; }
.tool p { margin: 0; }
.tool .who { color: var(--text-2); font-size: 15px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 4px; top: 0; font-weight: 700; color: var(--ok); }
.tool-art { background: linear-gradient(135deg, var(--banner-bg) 0%, var(--header-bg) 100%); border-radius: 12px; padding: 28px 24px; }
.tool-art img { display: block; width: 100%; height: auto; max-width: 480px; margin: 0 auto; }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 12px; }
.status.testing { background: var(--accent-soft); color: var(--accent-soft-text); }
.btn { align-self: flex-start; display: inline-block; font: inherit; font-weight: 600; background: var(--action-bg); color: var(--action-text); border: 1px solid var(--action-bg); border-radius: 6px; padding: 9px 20px; text-decoration: none; line-height: 1.4; margin-top: var(--space-2); }
.btn:hover { background: var(--action-bg-hover); color: var(--action-text); }
.btn.start { background: var(--start-bg); color: var(--start-text); border-color: var(--start-bg); font-size: 17px; padding: 12px 24px; font-weight: 700; }
.btn.start:hover { filter: brightness(1.05); color: var(--start-text); }

/* help: three short columns in one card */
.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) 40px; margin-top: 40px; padding: 24px 36px; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; padding: 20px; } }
.help h2 { font-size: 17px; margin: 0 0 4px; }
.help p { margin: 0; font-size: 16px; }

/* footer: as the tool's, with the operator's mark */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: var(--text-2); }
.foot-in p { margin: 0; }
.foot-in a { display: inline-block; min-height: 24px; padding: 2px 0; }
.runby { display: flex; align-items: center; gap: 10px; }
.runby img { display: block; }

/* On phones the estimator's card stays compact (Stephanie, 1 Dec): no infographic (its text would be too small)
   and no list of what it gives you (the description already says it). Kept last in the file so it wins over the rules above. */
@media (max-width: 600px) { .tool-art, .ticks { display: none; } }
