/* EntreAct project website. Theme in the style of a standard organisation website:
   header with logo and menu bar, banner on the home page, inner pages with a sidebar, three-column footer.
   System fonts only, no external resources. */

/* Colours from the EntreAct visual identity (Infopack): steel blue, orange accent, navy footer. */
:root {
  --blue: #3d5a80;
  --blue-dark: #2c4462;
  --orange: #ee6c4d;
  --text: #2b2b2b;
  --muted: #636e72;
  --line: #dcdcdc;
  --bg-soft: #f5f7f9;
  --bg-foot: #1b2a49;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Calibri, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; color: #1a1a1a; }
h1 { font-size: 2em; margin: 0.3em 0; }
h2 { font-size: 1.5em; margin: 1.5em 0 0.5em; }
h3 { font-size: 1.15em; margin: 1.3em 0 0.4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.3em; }
ul.plain { list-style: none; padding: 0; }
.lead { font-size: 1.1em; }
blockquote { margin: 0 0 1em; padding: 0.7em 1em; border-left: 4px solid var(--blue); background: var(--bg-soft); }
blockquote p:last-child { margin: 0; }
figure { margin: 1.4em 0; }
figure img { display: block; width: 100%; border: 1px solid var(--line); }
figcaption { font-size: 0.9em; color: var(--muted); margin-top: 0.4em; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 5; }

/* buttons: one style, used sparingly */
.button {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  padding: 9px 18px; border-radius: 3px; font-weight: 600;
}
.button:hover { background: var(--blue-dark); color: #fff; }
.button-light { background: #fff; color: var(--blue-dark); }
.button-light:hover { background: #eef2f8; color: var(--blue-dark); }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " ›"; }

/* ---------- header ---------- */
/* header: project wordmark as in the Infopack (Calibri Bold, "Entre" steel blue, "Act" orange), EU emblem on the right */
.site-header { border-top: 4px solid var(--blue); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px 12px; }
.site-brand { display: block; text-decoration: none; color: #1a1a1a; }
.wordmark { display: block; font-family: Calibri, "Segoe UI", Arial, sans-serif; font-weight: 700; font-size: 2.3em; line-height: 1; letter-spacing: -0.01em; }
.w-entre { color: var(--blue); }
.w-act { color: var(--orange); }
.tagline { display: block; font-style: italic; color: var(--muted); font-size: 0.95em; margin-top: 4px; }
.tag-sep { color: var(--orange); font-style: normal; padding: 0 2px; }
.logo-eu-head { width: 252px; height: auto; }   /* 56 px tall; the only other logo in the header is the wordmark text */

.main-nav { background: var(--blue); border-bottom: 3px solid var(--orange); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li { margin: 0; }
.main-nav a { display: block; color: #fff; text-decoration: none; padding: 11px 15px; font-size: 0.95em; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--blue-dark); color: #fff; }
.menu-toggle {
  display: none; width: 100%; text-align: left; background: var(--blue); color: #fff; border: 0;
  padding: 11px 15px; font: inherit; font-size: 0.95em; cursor: pointer;
}
.menu-toggle::before { content: "\2630\00a0\00a0"; }

/* ---------- home ---------- */
.banner { position: relative; background: #333; overflow: hidden; }
.banner img { display: block; width: 100%; height: 420px; object-fit: cover; object-position: center 40%; opacity: 0.55; }
.banner-text { position: absolute; left: 0; right: 0; bottom: 36px; color: #fff; }
.banner-text h1 { color: #fff; font-size: 2.3em; margin: 0 0 0.2em; text-shadow: 0 1px 3px rgba(0,0,0,.5); max-width: 22ch; }
.banner-text p { font-size: 1.15em; max-width: 60ch; text-shadow: 0 1px 3px rgba(0,0,0,.5); margin-bottom: 0.8em; }

.home .intro { max-width: 860px; margin-top: 0.5em; }
.home h2 { margin-top: 1.2em; }
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 1.5em 0 2em; }
.box { border: 1px solid var(--line); background: #fff; }
.box img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.box h2 { font-size: 1.2em; margin: 0.8em 18px 0.3em; }
.box h2 a { text-decoration: none; color: #1a1a1a; }
.box h2 a:hover { color: var(--blue); }
.box p { margin: 0 18px 0.8em; font-size: 0.97em; }
.box p:last-child { margin-bottom: 1em; }

.home-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 2em; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.news-list time { display: block; font-size: 0.85em; color: var(--muted); }
.news-list a { font-weight: 600; }
.home-side .widget { margin-top: 1.5em; }

/* ---------- inner pages ---------- */
.page-title { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 18px 0 20px; }
.breadcrumb { font-size: 0.85em; color: var(--muted); margin: 0 0 4px; }
.breadcrumb a { color: var(--muted); }
.page-title h1 { margin: 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 28px; padding-bottom: 40px; }
.content { max-width: 760px; }
.content > h2:first-child { margin-top: 0.3em; }

.sidebar .widget { margin-bottom: 26px; }
.widget { background: var(--bg-soft); border: 1px solid var(--line); padding: 16px 18px; }
.widget h2 { font-size: 1.05em; margin: 0 0 0.6em; padding-bottom: 6px; border-bottom: 2px solid var(--blue); }
.widget p:last-child { margin-bottom: 0; }
.widget dl { margin: 0; font-size: 0.95em; }
.widget dt { font-weight: 600; margin-top: 0.5em; }
.widget dd { margin: 0; }
.widget-eu { background: #fff; text-align: center; }
.widget-eu img { width: 100%; max-width: 250px; }
.widget-event { border-left: 4px solid var(--blue); }
.widget ul.plain li { margin-bottom: 0.35em; font-size: 0.95em; }

.notice { background: var(--bg-soft); border-left: 4px solid var(--blue); padding: 0.9em 1.1em; margin: 0 0 1.4em; }
.notice p { margin: 0 0 0.6em; }
.notice p:last-child { margin: 0; }

.gallery { list-style: none; padding: 0; margin: 0 0 1em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery li { margin: 0; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.gallery span { display: block; font-size: 0.88em; color: var(--muted); margin-top: 4px; }

/* partners page */
.table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 0.95em; }
.table th, .table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th { background: var(--bg-soft); border-bottom: 2px solid var(--blue); }

.partner { border: 1px solid var(--line); margin: 1.8em 0; scroll-margin-top: 12px; }
.partner-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg-soft); border-bottom: 1px solid var(--line); border-left: 5px solid var(--blue);
  padding: 12px 18px;
}
.partner-head h2 { margin: 0; font-size: 1.25em; }
.partner-country { font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
.partner-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding: 18px; }
.partner-facts { margin: 0; background: #fafbfc; border: 1px solid var(--line); padding: 10px 14px 12px; font-size: 0.92em; align-self: start; }
.partner-facts dt { font-weight: 600; margin-top: 0.6em; color: var(--muted); font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.02em; }
.partner-facts dt:first-child { margin-top: 0; }
.partner-facts dd { margin: 0; overflow-wrap: anywhere; }
.partner-text p:last-child { margin-bottom: 0; }
.partner-role { background: var(--bg-soft); border-left: 4px solid var(--blue); padding: 0.6em 0.9em; }
@media (max-width: 700px) {
  .partner-body { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}
.tag { font-size: 0.8em; font-weight: 600; color: #fff; background: var(--blue); padding: 1px 7px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }

dl.contact dt { font-weight: 600; }
dl.contact dd { margin: 0 0 0.7em; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-foot); color: #d9dee7; margin-top: 2em; font-size: 0.93em; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 40px; padding-top: 34px; padding-bottom: 26px; }
.footer-cols h2 { color: #fff; font-size: 1.05em; margin: 0 0 0.6em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.25em; }
.footer-cols img { width: 240px; height: auto; background: #fff; padding: 8px; border-radius: 3px; margin-bottom: 12px; }
.footer-cols img.logo-emc-foot { width: 84px; padding: 4px; border-radius: 50%; }   /* smaller than the EU emblem */
.footer-cols img.logo-eplus-foot { width: 170px; display: block; }   /* smaller than the EU emblem (240 px) */
.disclaimer { font-size: 0.92em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0 18px; font-size: 0.9em; }
.footer-bottom p { margin: 0 0 0.4em; }
.footer-bottom a { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .content { max-width: none; }
  .home-cols { grid-template-columns: 1fr; }
  .boxes { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { padding: 12px 16px; }
  .wordmark { font-size: 1.7em; }
  .tagline { display: none; }
  .logo-eu-head { width: 180px; }   /* 40 px tall */
  .banner img { height: 300px; }
  .banner-text h1 { font-size: 1.6em; }
  .banner-text p { font-size: 1em; }
  .boxes, .gallery, .footer-cols { grid-template-columns: 1fr; }
  .js .menu-toggle { display: block; }
  .js .main-nav ul { display: none; }
  .js .main-nav.open ul { display: block; }
  .main-nav a { border-top: 1px solid rgba(255,255,255,.12); }
}

/* ---------- print ---------- */
@media print {
  @page { size: A4; margin: 15mm; }
  body { font-size: 11pt; color: #000; }
  .skip, .main-nav, .sidebar, .banner-text .button { display: none !important; }
  .layout { display: block; }
  .banner img { height: auto; opacity: 1; }
  .banner-text { position: static; color: #000; }
  .banner-text h1, .banner-text p { color: #000; text-shadow: none; }
  .site-footer { background: #fff; color: #000; }
  .site-footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .gallery a::after, .box a::after { content: none; }
  h2, h3 { page-break-after: avoid; }
  figure, li, .notice, .box { page-break-inside: avoid; }
}
