/* DCDC tools and platforms registry. Colours from the DCDC logo: navy ink, teal gradient. */
:root {
  color-scheme: light;
  --navy: #0b1f38;
  --teal: #1f7a86;
  --teal-2: #62a8b0;
  --ground: #f6f8f9;
  --paper: #ffffff;
  --ink: #16202c;
  --muted: #5b6573;
  --line: #dfe5ea;
  --soft: #eef4f6;
  --warn: #fff4cc;
  --s-supported: #bfe3d0;  --s-supported-ink: #1d5a3a;
  --s-provided: #ddf0e4;   --s-provided-ink: #2c5e41;
  --s-training: #d4e8f2;   --s-training-ink: #1d4f6b;
  --s-informal: #f6ebc8;   --s-informal-ink: #6b5215;
  --s-evaluating: #e6ddf2; --s-evaluating-ink: #4b3470;
  --s-notoffered: #e3e3e3; --s-notoffered-ink: #4a4a4a;
  --f-strong: #bfe3d0; --f-partial: #f6ebc8; --f-weak: #f4ccc8; --f-na: #eeeeee;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Draft bar */
.draftbar { background: var(--warn); border-bottom: 1px solid #ecd98a; font-size: 13.5px; position: sticky; top: 0; z-index: 10; }
.draftbar-inner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.draft-tag { background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; padding: 2px 8px; border-radius: 4px; }
.source { color: #5c4a10; }
.is-fallback .draftbar { background: #fde2dc; border-color: #f0b3a6; }

/* Header */
.site { background: var(--paper); border-bottom: 1px solid var(--line); }
.head { display: flex; gap: 28px; align-items: center; padding-top: 26px; padding-bottom: 18px; }
.logo { width: 170px; flex: none; }
.kicker { margin: 0 0 2px; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; font-weight: 700; color: var(--teal); }
h1 { margin: 0 0 6px; font-size: 30px; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
.lede { margin: 0; color: var(--muted); max-width: 70ch; }
.tabs { display: flex; gap: 4px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--navy); }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }

main { padding-top: 26px; padding-bottom: 40px; }
h2 { color: var(--navy); font-size: 22px; margin: 0 0 8px; }
h2.label { font-size: 15px; text-transform: uppercase; letter-spacing: .1em; color: var(--teal); margin-bottom: 12px; }
.intro { color: var(--muted); max-width: 80ch; margin-top: 0; }
.loading { color: var(--muted); }

/* Need chips */
.needs-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font: inherit; font-size: 13.5px; border: 1px solid var(--line); background: var(--soft); color: var(--navy); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chip:hover { border-color: var(--teal-2); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .n { font-size: 11.5px; opacity: .65; margin-left: 2px; }
.need-info { margin-top: 12px; }
.need-info p { margin: 0 0 8px; }
.need-info .example { color: var(--muted); font-style: italic; }

/* Filters and legend */
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 16px 0 10px; }
.filters input[type="search"] { font: inherit; flex: 1 1 280px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.filters select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }
.legend-long { flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink); }
.legend-long .lg { align-items: baseline; }
.legend-long .sw { flex: none; transform: translateY(2px); }
.legend-long small { color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.count { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }

/* Status colours, shared by badges, legend and matrix */
.s-supported { background: var(--s-supported); color: var(--s-supported-ink); }
.s-provided { background: var(--s-provided); color: var(--s-provided-ink); }
.s-training { background: var(--s-training); color: var(--s-training-ink); }
.s-informal { background: var(--s-informal); color: var(--s-informal-ink); }
.s-evaluating { background: var(--s-evaluating); color: var(--s-evaluating-ink); }
.s-notoffered { background: var(--s-notoffered); color: var(--s-notoffered-ink); }
.s-other { background: #f0f0f0; color: #333; }
.s-none { background: transparent; color: #8a939e; border: 1px dashed #c3cbd3 !important; }
.is-draft { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.cards > .card:only-child { grid-column: 1 / -1; max-width: 820px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; }
.card .stream { margin: 0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--teal); font-weight: 700; }
.card h3 { margin: 3px 0 6px; font-size: 18px; color: var(--navy); line-height: 1.25; }
.card .what { margin: 0 0 10px; }
.meta { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.meta li { font-size: 12px; background: var(--soft); color: var(--muted); padding: 2px 8px; border-radius: 4px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.badge { display: inline-flex; flex-direction: column; min-width: 64px; padding: 4px 8px; border-radius: 6px; font-size: 11.5px; line-height: 1.25; border: 1px solid transparent; }
.badge b { font-size: 12px; }
.badge span i { font-weight: 600; }
.fairrow { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.fl { font-size: 11.5px; color: var(--muted); margin-right: 4px; }
.pill { display: inline-block; min-width: 26px; text-align: center; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: 5px; color: #243040; }
.f-strong { background: var(--f-strong); } .f-partial { background: var(--f-partial); }
.f-weak { background: var(--f-weak); } .f-na { background: var(--f-na); color: #7a828c; }
details { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
summary { cursor: pointer; color: var(--teal); font-weight: 600; font-size: 13.5px; padding: 4px 0; }
.det { font-size: 14px; }
.det h4 { margin: 12px 0 3px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); }
.det p { margin: 0 0 6px; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.offers { list-style: none; padding: 0; margin: 4px 0 0; }
.offers li { border-left: 3px solid var(--teal-2); padding: 4px 0 4px 10px; margin-bottom: 8px; }
.oh { font-weight: 700; color: var(--navy); }
.oh .st { font-weight: 600; font-size: 11.5px; padding: 1px 7px; border-radius: 4px; margin-left: 4px; }
.notes { color: #5c4a10; }
.src, .muted { color: var(--muted); font-size: 12.5px; }
.tail { color: var(--muted); font-size: 12.5px; margin-top: 10px !important; }
.id { float: right; color: #9aa3ad; }
.empty { color: var(--muted); }

/* Matrix and profile tables */
.inst-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.is { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); min-width: 110px; }
.is b { color: var(--navy); font-size: 15px; }
.table-scroll { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; position: sticky; top: 0; font-weight: 600; }
tr.grp th { background: var(--soft); color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.matrix .tcol { min-width: 230px; font-weight: 600; }
.matrix .tcol a { color: var(--navy); text-decoration: none; }
.matrix .tcol a:hover { text-decoration: underline; }
.matrix td.c { min-width: 96px; font-size: 12px; border-left: 3px solid var(--paper); }
.matrix td.c i { display: block; font-size: 11px; opacity: .8; }
.matrix td.s-none { border: 0 !important; border-bottom: 1px solid var(--line) !important; border-left: 3px solid var(--paper) !important; }
.matrix .fcol { white-space: nowrap; }
.mini { display: inline-block; width: 19px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 3px; margin-right: 2px; color: #243040; }
.profile .qcol { min-width: 280px; max-width: 380px; font-weight: 600; color: var(--navy); }
.profile .qcol small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.profile td { min-width: 170px; }
.profile td.blank { background: repeating-linear-gradient(135deg, #fafbfc 0 6px, #f3f5f7 6px 12px); }

/* About */
.prose { max-width: 78ch; }
.prose h3 { color: var(--navy); margin: 26px 0 8px; font-size: 17px; }
.fairkey { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; }
.fairkey dt { font-weight: 800; color: var(--navy); }
.fairkey dd { margin: 0; }
.fair-scale { font-size: 14px; color: var(--muted); line-height: 2.2; }
.fair-scale .pill { margin: 0 4px 0 10px; }
.fair-scale .pill:first-child { margin-left: 0; }

.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12.5px; padding-top: 18px; padding-bottom: 30px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .logo { width: 130px; }
  h1 { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .pc { grid-template-columns: 1fr; }
}

/* Public copy without institution columns (config showInstitutions: false) */
.no-inst #legend, .no-inst .check-net, .no-inst .inst-only { display: none; }

/* AI and your data */
.ai-view { max-width: 78ch; }
.ai-view h3 { color: var(--navy); margin: 26px 0 8px; font-size: 17px; }
.tiers { display: grid; gap: 12px; margin: 14px 0 6px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--teal); border-radius: var(--radius); padding: 12px 16px; }
.tier h4 { margin: 0 0 4px; color: var(--navy); font-size: 15.5px; }
.tier p { margin: 4px 0; }
.tier .eg { color: var(--muted); font-size: 14px; }
.tier.t-local { border-left-color: #1d5a3a; }
.tier.t-inst { border-left-color: var(--teal); }
.tier.t-personal { border-left-color: #d4a017; }
.datarule { width: 100%; border-collapse: collapse; background: var(--paper); font-size: 14px; }
.datarule th, .datarule td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.datarule thead th { background: var(--soft); color: var(--navy); }
.ai-view .src-list { font-size: 13.5px; color: var(--muted); }

/* Licence label on each card: open source, open core or proprietary */
.meta li.lic { font-weight: 700; border-radius: 4px; padding: 0 6px; }
.meta li.lic-open { background: #d9eef1; color: #155e68; }
.meta li.lic-core { background: #e6eef6; color: #2b4a6b; }
.meta li.lic-prop { background: #eeeeee; color: #4a4a4a; }

/* Bar back to the main site */
.sitebar { background: #091f38; font-size: 14px; }
.sitebar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 9px; padding-bottom: 9px; }
.sitebar a { color: #e8f5f7; text-decoration: none; }
.sitebar a:hover { color: #7dd3dc; }
.sitebar .home { font-weight: 700; margin-right: auto; }
.sitebar .on { color: #7dd3dc; font-weight: 700; }

/* Start here: themes with a few recommended tools; the rest collapsed */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.theme { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.theme:hover { border-color: var(--teal-2); box-shadow: 0 2px 8px rgba(11, 31, 56, .06); }
.theme h3 { margin: 0 0 4px; color: var(--navy); font-size: 18px; }
.theme .sum { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.picks-l { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--teal); font-weight: 700; }
.picks-s { margin: 0 0 10px; padding-left: 18px; font-size: 14.5px; }
.theme .more { font-size: 13.5px; font-weight: 600; color: var(--teal); }
.back { margin: 0 0 6px; font-size: 14px; }
.back a { text-decoration: none; font-weight: 600; }
.guidance { background: var(--soft); border-left: 3px solid var(--teal); padding: 10px 14px; border-radius: 0 6px 6px 0; max-width: 80ch; }
.tlink { margin: 8px 0 0; font-weight: 600; }
h3.sub { margin: 22px 0 10px; color: var(--navy); }
.picks { display: grid; gap: 12px; max-width: 900px; }
.pick { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.pick .pn { margin: 0; font-weight: 700; color: var(--navy); font-size: 16.5px; }
.pick .pw { margin: 2px 0 8px; color: var(--muted); }
.trow { border-top: 1px solid var(--line); }
.trow > summary { cursor: pointer; font-weight: 400; padding: 8px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.trow > summary .tn { font-weight: 600; color: var(--navy); }
.trow > summary .tw { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.trow > .card { margin: 4px 0 12px; }
.lic { font-size: 12px; font-weight: 700; border-radius: 4px; padding: 0 6px; }
.lic-open { background: #d9eef1; color: #155e68; } .lic-core { background: #e6eef6; color: #2b4a6b; } .lic-prop { background: #eeeeee; color: #4a4a4a; }
.rest { margin: 22px 0 8px; max-width: 900px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.rest > summary { cursor: pointer; font-weight: 700; color: var(--navy); }
