/* 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%); }

/* banner: the tool's start banner, with a drawing on the right on wide screens */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: var(--space-5);
  background: linear-gradient(135deg, var(--banner-bg) 0%, var(--header-bg) 100%); color: var(--banner-text);
  border-radius: 16px; padding: 48px 48px 40px 56px; margin-top: var(--space-3); overflow: hidden; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 28px 20px; } }
.hero h1 { font-size: 44px; line-height: 1.1; max-width: 13em; margin: 0; letter-spacing: -0.01em; }
@media (max-width: 700px) { .hero h1 { font-size: 30px; } }
.hero p { margin: 16px 0 0; font-size: 19px; max-width: 32em; color: var(--banner-text-2); }
.hero .first { color: var(--banner-text); font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: 28px; }
.hero-link { color: var(--banner-text); font-weight: 600; }
.hero-link:hover { color: var(--banner-text-2); }
.hero :focus-visible { outline-color: var(--banner-text); }
.hero-art { display: block; width: 100%; height: auto; max-width: 480px; justify-self: end; }
@media (max-width: 860px) { .hero { padding-bottom: 28px; } .hero-art { max-width: 420px; justify-self: start; } }

/* tools */
.tools { list-style: none; margin: 0; padding: 0; }
.tool.main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-6); border: 2px solid var(--action-bg); padding: 28px 32px; }
@media (max-width: 860px) { .tool.main { grid-template-columns: 1fr; gap: var(--space-5); padding: 20px; } }
.tool-text { display: flex; flex-direction: column; gap: var(--space-2); }
.tool h3 { font-size: 24px; margin: 4px 0 2px; }
.tool p { margin: 0; }
.tool .who { color: var(--text-2); font-size: 15px; }
.tool.more { border-style: dashed; background: transparent; color: var(--text-2); padding: 14px 22px; }
.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); }
.how { list-style: none; margin: 0; padding: 20px 22px; background: var(--surface-2); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; align-self: start; }
.how li { display: flex; gap: 14px; align-items: flex-start; }
.how .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--action-bg); color: var(--action-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.how .muted { font-size: 15px; }
.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; margin-top: 0; }
.btn.start:hover { filter: brightness(1.05); color: var(--start-text); }

/* signing in, who runs it: side by side on wide screens */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--space-4); margin-top: 40px; }
.info .card { margin: 0; padding: 22px 26px; }
.info h2 { font-size: 20px; margin: 0 0 8px; }

/* 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: no infographic (its text would be too small) and no steps in the estimator's card, so the card
   stays compact (Stephanie, 1 Dec); the "How it works" link that points at the steps goes too.
   Kept last in the file so it wins over the rules above. */
@media (max-width: 600px) { .hero-art, .how, .hero-link { display: none; } }
