/* Country Package pages. Written by hand; build_site.py writes the pages that use it.
   Red and blue are not used for marks: in JPods tools they mean inbound and outbound.
   Green is government, ochre is innovator, purple is a gate, as in the pictures of the steps. */
:root { --ink:#101c25; --deep:#06392e; --night:#071f2e; --green:#08a92d; --link:#086342;
        --gov:#2F6B57; --inn:#B7791F; --gate:#6B3FA0; --muted:#5B6770; --rule:#d9e4e1; --wash:#edf2f5; }
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:75px }
body { margin:0; font:16px/1.5 Arial,Helvetica,sans-serif; color:var(--ink); background:#fff }
a { color:var(--link) }
img { max-width:100% }
header { background:var(--deep); color:#fff }
nav { max-width:1600px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:12px 20px; padding:12px 3%; flex-wrap:wrap }
nav a { color:#fff; text-decoration:none }
nav a:hover { text-decoration:underline }
.brand { font-size:clamp(17px,2vw,27px); font-weight:700 }
.brand span { color:#41df19 }
.brand b { font-weight:400; margin:0 8px }
.navlinks { display:flex; gap:8px 24px; flex-wrap:wrap }
main { max-width:1000px; margin:auto; padding:30px 4% }
main.home { max-width:1600px; padding:0 0 30px }
h1,h2,h3 { line-height:1.15; margin:0 0 14px }
h1 { font-size:clamp(30px,4vw,48px) }
h2 { font-size:clamp(21px,2.1vw,29px); margin-top:8px }
p { margin:0 0 15px }
section { margin:28px 0 }
li { margin-bottom:8px }
footer { background:var(--deep); color:#fff; padding:22px 4%; font-size:14px }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:3px solid #e9a600; outline-offset:3px }

.button { display:inline-block; background:var(--green); color:#fff; padding:11px 19px; border-radius:8px; text-decoration:none; font-weight:700; margin:4px 3px 4px 0 }
.button.secondary { background:#09233399; border:2px solid #fff }
.button.outline { background:#fff; color:#075d42; border:1px solid #075d42 }
.buttons { display:flex; flex-wrap:wrap; gap:8px }
button { cursor:pointer; padding:8px 14px; border:1px solid #08744e; border-radius:6px; background:#fff; color:#075d42; font:inherit }

/* home */
.hero { margin:0; min-height:390px; display:flex; align-items:center; color:#fff; padding:28px 3.5%;
        background:linear-gradient(90deg,var(--night) 0%,#071f2ef5 24%,#071f2eb0 35%,transparent 58%), var(--hero) right center/auto 100% no-repeat, var(--night) }
.hero-copy { max-width:520px; width:43% }
.hero h2 { font-size:clamp(19px,1.6vw,25px) }
.hero p { font-size:19px; max-width:450px; line-height:1.35 }
.accent { width:86px; height:6px; background:#48e119; margin:18px 0 }
.principles { display:grid; grid-template-columns:repeat(4,1fr); background:var(--wash); padding:14px 3%; gap:15px }
.principles a { display:flex; gap:13px; align-items:center; text-decoration:none; color:var(--ink); border-right:1px solid #c8d4df; padding-right:12px }
.principles a:last-child { border:0 }
.symbol { font-size:39px; color:#078b2c; line-height:1 }
.principles strong, .feature strong { display:block; font-size:20px; line-height:1.2 }
small { display:block; font-size:15px; line-height:1.3 }
.overview { display:grid; grid-template-columns:36% 1fr; gap:16px; padding:0 2%; margin:18px 0 }
.overview section { background:var(--wash); border-radius:12px; padding:18px; margin:0 }
.funding ul { list-style:none; padding:0; margin:0 }
.funding li { margin:6px 0 }
.funding li:before { content:'✓'; color:#fff; background:#079b31; border-radius:50%; display:inline-grid; place-items:center; width:20px; height:20px; margin-right:10px; font-size:13px }
.streams { display:grid; grid-template-columns:repeat(4,1fr); gap:10px }
.stream { border-radius:10px; overflow:hidden; text-decoration:none; color:var(--ink); background:#e3e9ec }
.stream strong { display:block; text-align:center; background:#46606e; color:#fff; padding:9px 5px; font-size:20px; line-height:1.1 }
.stream strong small { font-weight:400; margin-top:3px }
.stream p { padding:12px; margin:0; line-height:1.3 }
.stream2 { background:#e6e0f5 } .stream2 strong { background:#563291 }
.stream3 { background:#d9f1de } .stream3 strong { background:#0b7a22 }
.stream4 { background:#f7ead6 } .stream4 strong { background:#96600f }
.concurrent { text-align:center; color:#075d42; font-style:italic; font-weight:bold; margin:14px 0 0 }
.feature-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:0 2% }
.feature { overflow:hidden; border-radius:12px; background:var(--deep); color:#fff; text-decoration:none }
.feature img { width:100%; height:145px; object-fit:cover; display:block }
.feature div { padding:12px 16px }
.home .intro, .home #projects, .home section[id^=group] { margin:28px 3% }
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:15px }
.tile { display:block; border:1px solid var(--rule); border-radius:10px; padding:20px; text-decoration:none; color:inherit; background:#f7faf9 }
.tile:hover, .feature:hover, .stream:hover { outline:2px solid #0b9950 }
.eyebrow { font-size:12px; font-weight:bold; color:#08744e; letter-spacing:.06em }
.tile h3 { margin-top:8px }
.diagram { height:auto; display:block; margin:16px auto }
details { margin:20px 0 }
summary { cursor:pointer; font-weight:bold }

/* project pages */
.lead { font-size:21px; color:#39534b }
.legend { font-size:14px; color:var(--muted) }
.legend .dot { margin-left:14px } .legend .dot:first-child { margin-left:0 }
.dot { display:inline-block; width:13px; height:13px; border-radius:50%; margin-right:7px; vertical-align:-1px; background:#c3cad1 }
.dot.government { background:var(--gov) }
.dot.innovator { background:var(--inn) }
.dot.joint { background:linear-gradient(90deg,var(--gov) 50%,var(--inn) 50%) }
.gate { color:var(--gate); font-size:14px; font-weight:700; white-space:nowrap; margin-left:10px }
.steps { list-style:none; padding:0; margin:0 }
.steps > li { border-top:1px solid var(--rule); padding:18px 0 6px; margin:0 }
.steps h3 { font-size:19px; margin-bottom:6px }
.who { font-size:14px; color:var(--muted); margin-bottom:8px }
.key { float:right; font-size:12px }
dl { display:grid; grid-template-columns:170px 1fr; gap:5px 14px; margin:0 0 10px }
dt { font-size:13px; font-weight:700; color:var(--muted); padding-top:2px }
dd { margin:0; overflow-wrap:anywhere }
pre { white-space:pre-wrap; overflow-wrap:anywhere; background:#eef3f1; padding:16px; border:1px solid #cbd9d3; border-radius:8px; font:14px/1.5 ui-monospace,Menlo,monospace }

/* notes */
.scroll { overflow-x:auto; margin:0 0 15px }
table { border-collapse:collapse; width:100% }
td, th { border:1px solid #dbe3e0; padding:8px; text-align:left; vertical-align:top }
th { background:var(--wash) }
figure { margin:20px 0 }
main ol li, main ul li { overflow-wrap:anywhere }

@media (max-width:1000px) {
  .overview { grid-template-columns:1fr }
  .hero-copy { width:55% }
  .principles, .feature-grid { grid-template-columns:repeat(2,1fr) }
  .principles a { border:0 }
}
@media (max-width:600px) {
  .navlinks { gap:6px 13px; font-size:14px }
  .hero { padding:220px 20px 25px; min-height:0;
          background:linear-gradient(0deg,var(--night) 0%,var(--night) 48%,transparent 76%), var(--hero) center top/auto 250px no-repeat, var(--night) }
  .hero-copy { width:100%; max-width:none }
  .hero p { font-size:17px }
  .principles { padding:12px; gap:12px }
  .principles strong, .feature strong { font-size:17px }
  .symbol { font-size:26px }
  .streams { grid-template-columns:repeat(2,1fr) }
  .feature img { height:105px }
  .feature div { padding:10px }
  .overview, .feature-grid { padding:0 12px }
  dl { grid-template-columns:1fr; gap:0 }
  dd { margin-bottom:8px }
  .key { float:none; margin-left:10px }
}

/* questionnaire */
input, select { font:inherit; padding:7px 9px; border:1px solid #b9c7c2; border-radius:6px; max-width:100% }
.place { display:flex; flex-wrap:wrap; gap:12px 20px }
.place label { display:grid; gap:4px; font-size:14px; font-weight:700; color:var(--muted) }
.fact { border-top:1px solid var(--rule); padding:12px 0 }
.factrow { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 }
.factrow .v { width:150px } .factrow .y { width:80px } .factrow .s { flex:1 1 220px }
.filebutton { border:1px solid #08744e; border-radius:6px; padding:8px 14px; color:#075d42; cursor:pointer }
.filebutton input { display:none }
