/* PANGAEA R&D — shared styles
   Palette follows the Maritime Simulators / Simulation Training templates:
   deep blue-grey chrome, vibrant green for headings and calls-to-action. */

/* Outfit has no Greek glyphs; Manrope supplies them (only the subsets a page uses are downloaded). */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --navy-900: #1a2734;
  --navy-800: #233343;
  --navy-700: #2c4053;
  --navy-600: #3a5168;
  --green-500: #2fc46a;
  --green-600: #22a457;
  --green-100: #e3f5ea;
  --green-50: #f1faf4;
  --olive: #7b815e;     /* logo colour */
  --ink: #23303c;
  --ink-soft: #55636f;
  --line: #dde5e0;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(26, 39, 52, .10);
  --max: 1180px;
  --header-h: 72px;
  --font: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="el"] { --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; color: var(--navy-800); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-600); margin-bottom: .6em;
}
.lang-el { font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; max-width: 1560px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 66px; height: 44px; flex: none; }
.brand-text { color: var(--olive); font-size: 1.05rem; font-weight: 500; letter-spacing: .28em; white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .container { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 54px; height: 36px; }
  .brand-text { font-size: .8rem; letter-spacing: .14em; }
  .header-actions { gap: 6px; }
  .nav-toggle { padding: 6px 2px; }
}

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 24px 10px 21px; color: #d8e1e8; font-size: .92rem; font-weight: 500; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--white); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--green-500); border-bottom-color: var(--green-500); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; overflow: hidden;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
}
.lang-switch span { padding: 5px 8px; color: #b9c6d2; }
.lang-switch span.on { background: var(--green-500); color: var(--white); }
.lang-switch:hover { text-decoration: none; border-color: var(--green-500); }
html[lang="el"] .main-nav a { padding-left: 7px; padding-right: 7px; font-size: .86rem; }

@media (max-width: 1279px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.06); }
}
/* The Greek menu labels are longer, so Greek pages switch to the ☰ menu a little earlier. */
@media (max-width: 1279px) {
  html[lang="el"] .nav-toggle { display: block; }
  html[lang="el"] .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  html[lang="el"] .main-nav.open { display: block; }
  html[lang="el"] .main-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  html[lang="el"] .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
  html[lang="el"] .main-nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.06); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--navy-800);
  min-height: 340px; display: flex; align-items: center;
}
.hero::before { /* contour lines, as in the templates */
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%232fc46a' stroke-width='1' opacity='.55'%3E%3Cpath d='M-20 320 C 120 240 220 380 360 300 S 560 220 640 260'/%3E%3Cpath d='M-20 340 C 120 260 220 400 360 320 S 560 240 640 280'/%3E%3Cpath d='M-20 360 C 120 280 220 420 360 340 S 560 260 640 300'/%3E%3Cpath d='M-20 60 C 100 20 200 120 320 70 S 520 10 640 50'/%3E%3Cpath d='M-20 80 C 100 40 200 140 320 90 S 520 30 640 70'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 900px auto; background-repeat: repeat;
}
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-800) 0%, rgba(35,51,67,.75) 35%, rgba(35,51,67,.15) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 {
  color: var(--green-500); font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800;
  max-width: 760px; margin-bottom: .35em; letter-spacing: -.01em;
}
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 620px; color: #e6edf2; font-weight: 500; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--white); background: rgba(47,196,106,.18); border: 1px solid rgba(47,196,106,.45);
  padding: 6px 12px; border-radius: 999px;
}
.hero .tag svg { width: 16px; height: 16px; }
.hero-home { min-height: 560px; }
.hero-home h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); }
.badge-construction {
  display: inline-block; margin-top: 18px; background: #f2b632; color: var(--navy-900);
  font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 6px;
}
@media (max-width: 760px) {
  .hero-media { inset: 0; opacity: .35; }
  .hero-media::after { background: rgba(35,51,67,.55); }
}
/* Cut-out object hero (R&D): a transparent image floats on the right, no fade overlay. */
.hero-object { min-height: 440px; }
.hero-object .hero-media { inset: 0 3% 0 58%; display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.hero-object .hero-media img { object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.hero-object .hero-media::after { display: none; }
.hero-object .container > * { max-width: min(600px, 52vw); }
@media (max-width: 760px) {
  .hero-object .hero-media { inset: 0 -20% 0 45%; opacity: .25; }
  .hero-object .container > * { max-width: none; }
}
/* Infographic hero (Tech Transfer): the whole image stays visible beside the text, and stacks below it on phones. */
.hero-roadmap { min-height: 460px; }
.hero-roadmap .hero-media { inset: 0 0 0 46%; background: radial-gradient(ellipse at 55% 50%, rgba(47,196,106,.10), rgba(47,196,106,0) 65%); display: flex; align-items: center; justify-content: center; padding: 18px 20px; }
.hero-roadmap .hero-media img { object-fit: contain; }
.hero-roadmap .hero-media::after { display: none; }
.hero-roadmap .container > * { max-width: min(520px, 42vw); }
@media (max-width: 760px) {
  .hero-roadmap { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-roadmap .hero-media { position: relative; inset: auto; order: 2; opacity: 1; }
  .hero-roadmap .hero-media img { height: auto; }
  .hero-roadmap .hero-media::after { display: none; }
  .hero-roadmap .container { padding-bottom: 28px; }
  .hero-roadmap .container > * { max-width: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-500); color: var(--white); font-weight: 600;
  padding: 12px 22px; border-radius: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  transition: background .15s;
}
.btn:hover { background: var(--green-600); text-decoration: none; }
.btn-ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost-light { background: transparent; border: 1.5px solid var(--green-500); color: var(--green-600); }
.btn-ghost-light:hover { background: var(--green-50); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.link-doc {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green-600);
}
.link-doc svg { width: 18px; height: 18px; flex: none; }

/* ---------- Page layout with sidebar ---------- */
.page { padding: 56px 0 80px; }
.page-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 22px; }
.side-card { background: var(--green-100); border-radius: var(--radius); padding: 22px; }
.side-card h4 { font-size: 1.05rem; margin-bottom: 14px; color: var(--navy-700); }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-nav a {
  display: block; background: var(--white); color: var(--navy-700); font-weight: 600; font-size: .92rem;
  padding: 10px 12px; border-radius: 6px; transition: background .15s, color .15s;
}
.side-nav a:hover { text-decoration: none; background: #f7fbf8; }
.side-nav a.active { background: var(--green-500); color: var(--white); }
.side-contact { position: relative; overflow: hidden; padding-bottom: 120px;
  background: linear-gradient(180deg, var(--green-100) 45%, #a9cbbf 100%); }
.side-contact p { font-size: .88rem; margin: 0 0 6px; color: var(--ink-soft); word-break: break-word; }
.side-contact svg.sprout { position: absolute; right: -10px; bottom: -6px; width: 170px; opacity: .55; }
@media (max-width: 920px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sidebar { position: static; }
  .side-contact { display: none; }
  .side-nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ---------- Content blocks ---------- */
.section { margin-bottom: 64px; }
.section:last-child { margin-bottom: 0; }
.section > h2 { position: relative; padding-left: 16px; }
.section > h2::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px;
  background: var(--green-500); border-radius: 2px;
}
.panel { background: var(--green-100); border-radius: var(--radius); padding: 28px; }
.panel-dark { background: var(--navy-800); color: #dfe7ee; border-radius: var(--radius); padding: 32px; }
.panel-dark h3, .panel-dark h2 { color: var(--green-500); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
.split.reverse { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split > * { overflow-wrap: anywhere; }
@media (max-width: 760px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.figure img { width: 100%; }
.figure figcaption { font-size: .82rem; color: var(--ink-soft); padding: 10px 14px; }
figure { margin: 0; }
.map-embed { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 760px) { .map-embed iframe { height: 300px; } }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; margin-bottom: .4em; }
.card p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.icon-circle {
  width: 54px; height: 54px; border-radius: 50%; background: var(--green-500); color: var(--white);
  display: grid; place-items: center; margin-bottom: 14px; flex: none;
}
.icon-circle svg { width: 26px; height: 26px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { position: relative; padding-left: 30px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.panel-dark .feature-list li { color: #dfe7ee; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 24px 0; }
.stat { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.7rem; color: var(--green-600); line-height: 1.1; }
.stat span { font-size: .86rem; color: var(--ink-soft); }

.numbered { counter-reset: n; display: grid; gap: 16px; }
.numbered > div { counter-increment: n; display: flex; gap: 18px; align-items: flex-start; }
.numbered > div::before {
  content: counter(n, decimal-leading-zero) "."; font-weight: 700; color: var(--green-600); font-size: 1.1rem; min-width: 34px;
}

details.readmore { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-top: 18px; }
details.readmore summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy-700); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
details.readmore summary::-webkit-details-marker { display: none; }
details.readmore summary::after { content: "+"; font-size: 1.4rem; color: var(--green-600); line-height: 1; }
details.readmore[open] summary::after { content: "–"; }
details.readmore .body { padding: 0 20px 20px; font-size: .96rem; }

/* Simulator product cards (Ocean) */
.sim-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.sim-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sim-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy-800); }
.sim-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sim-card h3 { margin: 0; }
.sim-card p { margin: 0; font-size: .94rem; color: var(--ink-soft); }
.sim-card ul { margin: 0; padding-left: 1.1em; font-size: .9rem; color: var(--ink-soft); }
.sim-card .link-doc { margin-top: auto; padding-top: 8px; }

.sim-card .app-no {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--green-500); color: var(--white); font-weight: 700; font-size: .85rem; margin-bottom: 2px;
}
.sim-card.pending > .placeholder { aspect-ratio: 16 / 9; background: var(--green-50); display: grid; place-items: center; color: var(--green-600); }
.sim-card.pending > .placeholder svg { width: 54px; height: 54px; }

/* Image gallery */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: var(--navy-800); position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: .78rem; color: var(--white);
  background: linear-gradient(transparent, rgba(26,39,52,.85));
}

/* xWeather projects (Earth) */
.project-block { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); margin-top: 28px; }
.project-block > header { display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--green-50); border-bottom: 1px solid var(--line); }
.project-block > header img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.project-block > header h3 { margin: 0; }
.project-block > header p { margin: 2px 0 0; font-size: .86rem; color: var(--ink-soft); }
.project-block .body { padding: 22px 24px 24px; display: grid; gap: 20px; }
.photo-strip { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-strip figure { margin: 0; border-radius: 8px; overflow: hidden; background: var(--navy-800); }
.photo-strip img { width: 100%; height: 100%; min-height: 160px; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-strip .wide { grid-column: span 2; }
.photo-strip .wide img { aspect-ratio: 3 / 2; }
@media (max-width: 640px) { .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; } }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 20px; margin: 0; }
.facts div { border-left: 3px solid var(--green-500); padding: 2px 0 2px 12px; }
.facts dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: .94rem; color: var(--navy-700); font-weight: 500; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -2px; width: 2px; background: var(--green-100); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: .8rem; font-weight: 700; color: var(--green-600); }
.timeline span { font-size: .93rem; }

/* AgroNIT (Earth) */
.phone-strip { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.phone-strip figure { margin: 0; text-align: center; }
.phone-strip img { width: 100%; max-width: 200px; margin: 0 auto; border-radius: 14px; border: 4px solid var(--navy-800); box-shadow: var(--shadow); }
.phone-strip figcaption { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 640px) { .phone-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.node-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.node-list > div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.node-list strong { display: block; color: var(--navy-700); margin-bottom: 4px; }
.node-list p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.layers { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: layer; }
.layers > div { counter-increment: layer; background: var(--navy-800); color: #dfe7ee; border-radius: 10px; padding: 16px; }
.layers > div::before { content: "Layer " counter(layer); display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-500); font-weight: 700; margin-bottom: 4px; }
html[lang="el"] .layers > div::before { content: "Επίπεδο " counter(layer); }
.layers strong { color: var(--white); display: block; }
.layers span { font-size: .86rem; }
@media (max-width: 640px) { .layers { grid-template-columns: minmax(0, 1fr); } }

/* Downloads list */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.downloads a {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--navy-700); background: var(--white); transition: border-color .15s, background .15s;
}
.downloads a:hover { text-decoration: none; border-color: var(--green-500); background: var(--green-50); }
.downloads .pdf {
  flex: none; width: 42px; height: 50px; border-radius: 6px; background: #d9443a; color: var(--white);
  display: grid; place-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .05em;
}
.downloads strong { display: block; font-size: .98rem; }
.downloads small { color: var(--ink-soft); font-size: .82rem; }
.downloads .print-link { color: var(--green-600); text-decoration: underline; cursor: pointer; }
.downloads .dl { margin-left: auto; color: var(--green-600); flex: none; }
.downloads .dl svg { width: 22px; height: 22px; }

/* Project / publication entries */
.entry { border-top: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: 200px 1fr; gap: 28px; }
.entry:first-of-type { border-top: 0; padding-top: 4px; }
.entry .entry-logo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; place-items: center; min-height: 110px; }
.entry .meta { font-size: .86rem; color: var(--ink-soft); margin-bottom: .8em; }
.entry h3 { margin-bottom: .3em; }
@media (max-width: 680px) { .entry { grid-template-columns: 1fr; gap: 14px; } .entry .entry-logo { max-width: 240px; } }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: var(--green-50); border: 1px solid #cbe9d6; color: var(--navy-700); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 500; }

.table-wrap { overflow-x: auto; }
table.simple { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.simple th, table.simple td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.simple th { color: var(--navy-700); font-weight: 600; background: var(--green-50); }

/* ---------- Home ---------- */
.domains { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.domain {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px;
  color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.domain:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #bfe5cd; text-decoration: none; }
.domain .host { font-size: .78rem; color: var(--green-600); font-weight: 600; letter-spacing: .04em; }
.domain h3 { margin: 0; }
.domain p { font-size: .95rem; color: var(--ink-soft); margin: 0; flex: 1; }
.domain .go { font-weight: 600; color: var(--navy-700); font-size: .9rem; }
.domain .soon { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: #fff3d6; color: #8a6200; padding: 3px 8px; border-radius: 4px; }

.band { background: var(--navy-800); color: #dfe7ee; padding: 72px 0; position: relative; overflow: hidden; }
.band h2 { color: var(--green-500); }
.band .cards .card { background: var(--navy-700); border-color: rgba(255,255,255,.07); }
.band .cards .card h3 { color: var(--white); }
.band .cards .card p { color: #c2ceda; }

.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; text-align: center;
  font-weight: 700; color: var(--navy-700); min-height: 84px; display: grid; place-items: center; font-size: .98rem;
}
.partner small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .76rem; }
a.partner { transition: border-color .15s, background .15s; }
a.partner:hover { text-decoration: none; border-color: var(--green-500); background: var(--green-50); }
.partner small.site { color: var(--green-600); font-weight: 600; margin-top: 4px; }

.partner-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.partner-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.partner-card:hover { text-decoration: none; border-color: var(--green-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-card h3 { margin: 0; font-size: 1.08rem; }
.partner-logo {
  display: flex; align-items: center; justify-content: flex-start; height: 64px; margin-bottom: 4px;
}
.partner-logo img { max-height: 56px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.partner-logo.text { flex-direction: column; align-items: flex-start; justify-content: center; font-weight: 800; font-size: 1.5rem; color: var(--navy-700); line-height: 1; letter-spacing: -.01em; }
.partner-logo.text small { font-size: .7rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; margin-top: 4px; }
.partner-card .meta { font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--green-600); text-transform: uppercase; }
.partner-card p { margin: 0; font-size: .92rem; color: var(--ink-soft); flex: 1; }
.partner-card .pill-list li { font-size: .74rem; padding: 3px 9px; }
.partner-card .site { font-size: .86rem; font-weight: 600; color: var(--navy-700); }

.cert { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.cert img { border: 1px solid var(--line); border-radius: 6px; }
#trademark h3 { font-size: 1rem; }
@media (max-width: 600px) { .cert { grid-template-columns: 1fr; } .cert img { max-width: 160px; } }

.news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news article { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.news article img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--green-50); }
.news article .body { padding: 18px; }
.news time { font-size: .8rem; color: var(--green-600); font-weight: 600; }
.news h3 { font-size: 1.02rem; margin: .3em 0 .4em; }
.news p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Contact form ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--navy-700); }
.form-grid input, .form-grid textarea, .form-grid select {
  font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #c9d6ce; border-radius: 8px; background: var(--white); color: var(--ink);
  width: 100%; min-width: 0;
}
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; border-color: transparent; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-800); color: #c9d4de; padding: 60px 0 26px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--green-500); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: #e3eaf0; }
.site-footer a:hover { color: var(--green-500); }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 180px; height: auto; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--green-500); }
.cert-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-badge {
  border: 1.5px solid rgba(47,196,106,.6); border-radius: 8px; padding: 8px 10px; text-align: center; min-width: 92px;
  color: var(--white); font-weight: 700; font-size: .82rem; line-height: 1.25;
}
.cert-badge span { display: block; font-weight: 500; font-size: .7rem; color: #a9b9c7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; color: #93a5b5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top {
  position: fixed; right: 0; bottom: 24px; z-index: 40; width: 46px; height: 58px; border: 0; cursor: pointer;
  background: var(--green-500); color: var(--white); border-radius: 8px 0 0 8px;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }

/* C4 pillars reuse the layer boxes, without the 'Layer n' label */
.layers.pillars { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.layers.pillars > div::before { display: none; }
.layers.pillars strong { color: var(--green-500); font-size: 1.05rem; margin-bottom: 4px; }

/* Closed-loop process chain (FLEXPRESS) */
.flow { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow li { background: var(--navy-800); color: var(--white); font-weight: 600; font-size: .86rem; padding: 7px 12px; border-radius: 8px; }
.flow li.arrow { background: none; color: var(--green-600); font-weight: 800; padding: 0; font-size: 1.1rem; }
.flow li.loop { background: var(--green-500); }

/* ESPA co-funding banner (home page, above the footer) */
.espa-banner { background: #fff; border-top: 1px solid var(--line); padding: 22px 0; }
.espa-banner img { display: block; width: 100%; max-width: 980px; height: auto; margin: 0 auto; }
