:root {
  color-scheme: light;
  --paper: #f5f7f4;
  --card: #ffffff;
  --ink: #25302b;
  --muted: #59655d;
  --line: #dfe7df;
  --green: #215f32;
  --green-soft: #e3efe4;
  --blue: #1f5f8f;
  --amber: #8a5a00;
  --amber-soft: #fbf0d9;
  --red: #a63b32;
  --shadow: 0 2px 8px rgba(0, 0, 0, .06);
  --series-1: #1f5f8f;
  --series-2: #d9622b;
  --series-3: #2f9e57;
  --series-4: #b98600;
  --grid: #e6ebe7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; }
button, input, select { font: inherit; }
a { color: var(--blue); }
.wrap { width: min(1040px, 100%); margin: 0 auto; padding: 0 20px; }
.masthead { padding-top: 40px; }
.logo { display: block; width: 112px; height: auto; margin-bottom: 20px; }
.kicker { margin: 0 0 .4rem; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 750; }
.kicker { color: var(--green); }
h1 { margin: 0 0 14px; color: var(--green); font-size: clamp(1.9rem, 4.5vw, 2.35rem); font-weight: 700; line-height: 1.15; }
h2 { margin: 0 0 .3rem; color: var(--green); font-size: 1.28rem; }
h3 { margin: 1.6rem 0 .6rem; font-size: 1rem; }
p { margin: 0 0 .6rem; }
.subtitle { max-width: 820px; margin: 0; color: var(--muted); font-size: 1.08rem; }
main { display: grid; gap: 24px; padding-top: 32px; padding-bottom: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 28px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .75rem; }
.muted { color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.swatch { width: .8rem; height: .2rem; border-radius: 2px; display: inline-block; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--muted); font-size: 11px; }
.ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .75rem; align-items: end; margin-top: .8rem; }
.ask label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.ask select { min-height: 44px; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.ask button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--green); color: #fff; font-weight: 650; cursor: pointer; }
.ask button:hover { filter: brightness(.94); }
.ask button:disabled { opacity: .6; cursor: progress; }
.policy-help { margin-top: .7rem; font-size: .9rem; }
.access { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .4rem 0 1rem; }
.access p { margin: 0; }
.button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.button:disabled { opacity: .6; cursor: progress; }
.caveat { font-size: .88rem; margin-top: .6rem; }
.message { min-height: 1.5em; margin: 0; font-size: .92rem; }
.message.error { color: var(--red); }
.warning { background: var(--amber-soft); color: var(--amber); padding: .6rem .8rem; border-radius: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.chosen td { background: var(--green-soft); font-weight: 650; }
tr.infeasible td { color: var(--muted); }
.policies { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.policy { border: 1px solid var(--line); border-radius: 8px; padding: .8rem; }
.policy.current { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.policy .name { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .2rem; }
.policy .site { font-size: 1.15rem; font-weight: 700; }
pre { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: .8rem; font-size: .82rem; }
.funding-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 24px; }
.funding-logos img { display: block; height: auto; max-width: 100%; }
.funding-logos .greendigit-logo { width: 128px; }
.funding-logos .eu-logo { width: 260px; }
footer { padding: 24px 20px; text-align: center; color: #78827b; font-size: .85rem; }
@media (max-width: 800px) {
  .card { padding: 20px; }
  .funding-logos { gap: 20px; }
  .funding-logos .greendigit-logo { width: 104px; }
  .funding-logos .eu-logo { width: 220px; }
}
.diagram { display: block; margin-top: 1rem; }
.diagram img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.documentation-list { display: grid; gap: 14px; margin-top: .6rem; }
.documentation-list a { color: var(--blue); font-weight: 650; text-decoration: none; }
.documentation-list a:hover { text-decoration: underline; }
.documentation-list p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
/* Console */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 12px; }
.topbar .logo { margin-bottom: 0; }
.logo.small { width: 75px; }
.who { display: flex; align-items: center; gap: .8rem; font-size: .92rem; color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.link:disabled { opacity: .6; cursor: progress; }
.ask input { min-height: 44px; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.ask .wide { grid-column: span 2; }
th .unit { text-transform: none; letter-spacing: 0; font-weight: 400; }
.status.ok, .status.running { color: var(--green); font-weight: 650; }
.status.degraded, .status.drift, .status.at_capacity, .status.teardown_failed, .status.provision_failed { color: var(--amber); font-weight: 650; }
.status.disabled, .status.cancelled, .status.rejected, .status.completed { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.confirm { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.confirm .actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 600px) { .ask .wide { grid-column: auto; } }
a.button { display: inline-flex; align-items: center; text-decoration: none; }
.button.secondary { background: #38423b; }
