/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('/static/fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('/static/fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('/static/fonts/inter-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('/static/fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  src: url('/static/fonts/inter-v20-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* cagliostro-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Azonix';
  font-style: normal;
  font-weight: 400;
  src: url('/static/fonts/Azonix.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
  --font-logo: "Azonix", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
}

html {
    font-size: 87.5%; \
}

body {
    font-family: var(--font-sans);
    margin: 0em;
    line-height: 1.6;
    color: #2F2F2F;
    background-color: #04050A;
}

/* Centered reading column. ~1100px is wide enough for the three intro
   columns and the full banner to look right, while inner content stays
   comfortable to read. */
.wrapper {
    max-width: 2800px;
    margin: 0 1.7rem 0 1.7rem;
    padding: 0 0;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #04050AAA;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);   /* Safari needs the prefix */
    border-bottom: 0px solid #ddd;
    padding: 0;
}

/* header-inner keeps the logo and nav on one row (they used to sit directly
   under <body>, which was itself the wrapper). */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Vertical rhythm that <body>'s old 2rem margin used to provide. */
main {
    background: #F3F3F3;
    padding: 2rem 0;
    margin: 0em;
}

header h1 a {
    color: inherit;
    text-decoration: none;
}

nav {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 400;    
}

nav a {
    margin-right: 1rem;
    color: #c0c0c0;
    text-decoration: none;
}

nav a:hover {
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nav-apply {
    display: inline-block;        /* let padding build a real rectangle */
    padding: 0.5rem 1rem;       /* vertical / horizontal space around the word */
    background-color: #F26919;
    color: #000;
    border-radius: 0px;           /* rounded corners; use 0 for a sharp rectangle */
    text-decoration: none;        /* drop the underline */
    transition: background-color 0.25s ease;   /* animate the hover */
}

.nav-apply:hover {
    color: #000;
    background-color: #FCE2D2;    /* darker shade on hover */
}

/* Pre-launch preview strip. Shown only to someone who unlocked the site via
   /preview/<key>, so a previewed page can't be mistaken for the live one.
   Deliberately loud — it should be impossible to overlook. */
.preview-banner {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.preview-banner a {
    color: #F26919;
    margin-left: 0.5rem;
}

footer {
    border-top: 1px solid #ddd;
    margin-top: 0rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
    font-size: 0.8rem;
    background: #F3F3F3;
    color: #666;
}

.funding-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.funding-text {
    flex: 1;
    margin: 0;
    font-family: var(--font-mono);
    font-weight: 600;
}

.funding-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;    /* don't let the logo get squeezed */
}

.copyright {
    margin-top: 1rem;
}

/* On narrow screens, stack the funder block: logo on top, text beneath. */
@media (max-width: 590px) {
    .funding-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .funding-logo { order: -1; }   /* pull the logo above the text */
}

a { color: #0066cc; }

.site-name {
    margin: 0;
}

.site-name a {
    text-decoration: none;
}

.logo {
    color: #F26919;
    font-family: var(--font-logo);
    font-size: 1.8em;
    text-decoration: none;
}


.project {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafafa;
}

.project[open] {
  background: #fafafa;
  border-color: #bbb;
}

.project summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.project summary::before {
  content: "🞣";
  display: inline-block;
  width: -1em;
  font-size: 1em;
  color: #F47121;
;
  transition: transform ease 0.25s;
}

.project[open] summary::before {
  transform: rotate(45deg);
}

.project-id {
  display: inline-block;
  min-width: 3em;
  color: #f47121;
  font-weight: 600;
  font-family: var(--font-mono);
}

.project-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.project-body strong {
  font-weight: 600;
}

.project-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem 0;
}

.project-meta dt {
  font-weight: 600;
}

.project-meta dd {
  margin: 0;
}

fieldset {
  border: 1px solid #ddd;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

legend {
  font-weight: 600;
  padding: 0 0.5rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
}

input[type="file"] {
  font-size: 0.95rem;
}

input:user-invalid, textarea:user-invalid {
    border-color: #b00020;          /* your existing error red */
}

select.pref-select {
    width: 100%;
  max-width: 400px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
}

.error {
  display: block;
  color: #b00020;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.required {
  color: #b00020;
}

button[type="submit"] {
    display: inline-block;
    padding: 0.5rem 0.7rem;
    font-size: 1rem;
    background-color: #FCE2D2;
    color: #000;
    border: none;
    font-weight: 400;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid #f26919;
}

button[type="submit"]:hover {
    background-color: #F26919;
}

.submission {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: #fafafa;
}

.submission-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1rem 0;
}

.submission-meta dt {
  font-weight: 600;
  color: #555;
}

.submission-meta dd {
  margin: 0;
}

.post {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.post:last-child {
  border-bottom: none;
}

.post-date {
  flex: 0 0 8rem;
  font-size: 0.9rem;
  color: #666;
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}

.post-content {
  flex: 1;
  min-width: 0;
}

.post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.post-body {
  line-height: 1.6;
}

.post-body > :first-child {
  margin-top: 0;
}

.post-body > :last-child {
  margin-bottom: 0;
}

/* Stack vertically on narrow screens */
@media (max-width: 600px) {
  .post {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-date {
    flex: none;
    padding-top: 0;
  }
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post--detail {
  display: block;           /* override the flex layout from the listing */
  padding: 0;
  border: none;
}

.post--detail .post-date {
  display: block;
  margin-bottom: 0.5rem;
  padding-top: 0;
}

.post--detail .post-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.post-nav {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.post-nav a {
  color: #666;
  text-decoration: none;
}

.post-nav a:hover {
  text-decoration: underline;
}

.post-date a {
  color: inherit;
  text-decoration: none;
}

.post-date a:hover {
  text-decoration: underline;
}


/* ─── Front-page banner (full-width hero) ─────────────────────────────
   The <section class="banner"> sits outside .wrapper in base.html, so it
   spans the full viewport. The map image is the background layer; the
   overlay holds the heading and is re-constrained to the reading width. */
.banner {
    position: relative;
    /* Exact background colour of europe-map.svg's sky, so any area the image
       doesn't cover reads as a seamless extension of the map's own starscape
       rather than as letterbox bars. */
    background-color: rgb(4, 5, 10);
    overflow: hidden;
}

.banner-image {
    display: block;
    width: 100%;
    /* The map is authored at ~4:1 (2319x576) with an intentional dark zone on
       the left for the title. Letting the height follow that aspect ratio
       makes the image fill the band edge-to-edge at any width — whole map
       visible (all coloured countries + the HPC/QC/ML blocks), no cropping,
       no top/bottom bars. */
    aspect-ratio: 2319 / 576;
    height: auto;
    object-fit: cover;
    object-position: center;
}

/* Overlay text sits over the dark sky in the top-left, clear of the map. */
.banner-overlay {
    position: absolute;
    inset: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: top;
    /* Light text on the dark sky; subtle dark shadow for legibility where it
       overlaps lighter parts of the map. */
    text-shadow: 0 1px 4px rgba(10, 10, 10, 0.8);
    pointer-events: none;   /* don't block clicks/selection on the map */
}

.banner-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #7fb0e6;
}

.banner-title {
    margin: 0 0 0.5rem;
    max-width: 24ch;
    font-size: 2rem;
    line-height: 1.2;
    color: #ffffff;
}

/* ─── Three-column intro ──────────────────────────────────────────────
   auto-fit + minmax gives 3 columns on wide screens and collapses to
   fewer (down to 1) as the viewport narrows — no media query needed. */
.intro-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-right: 1rem;
    margin-bottom: 2rem;
}

.intro-cols h2 {
    font-family: var(--font-mono);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.intro-cols p {
    margin: 0;
}

.intro-cta {
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
}

/* ─── Consortium logo placeholder ─────────────────────────────────────
   Empty labelled box for now; replace .logo-placeholder's contents with
   the real logo grid when assets are ready. */
.consortium-logos {
    margin: 2.5rem 0;
}

.consortium-logos h2 {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    margin: 0 0 1rem;
}

/* Logo wall: 6 columns × 2 rows. Each cell centres one logo. */
.logo-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem 2rem;
    align-items: center;
}

.logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;   /* let cells shrink so wide logos don't overflow */
}

/* Equal rendered height for every logo; width follows to preserve each
   logo's own aspect ratio. max-width keeps a very wide wordmark from
   spilling past its cell on narrow viewports. */
.consortium-logo {
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #666;
}

/* Fewer columns as the screen narrows, so each logo keeps a usable size.
   12 logos ÷ 4 cols = 3 rows; ÷ 2 cols = 6 rows. */
@media (max-width: 700px) {
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 480px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .banner-image {
        aspect-ratio: 3 / 2;
        height: auto;
        object-position: center;
    }
    .banner-title { font-size: 1.6rem; }
    .banner-overlay { justify-content: flex-start; padding-top: 1.5rem; }
}
