/*
Theme Name: JENDATA Modern
Theme URI: https://www.jendata.com/
Author: JENDATA / migration build
Description: Lightweight, block-compatible theme for the rebuilt JENDATA website.
Version: 1.1.0
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: jendata-modern
*/

:root {
  --jd-blue: #143f80;
  --jd-blue-dark: #0c3069;
  --jd-blue-light: #f1f5fb;
  --jd-ink: #1d2736;
  --jd-muted: #667085;
  --jd-border: #e4e8ef;
  --jd-surface: #ffffff;
  --jd-footer: #262a32;
  --jd-max: 1240px;
  --jd-header-max: 1440px;
  --jd-shadow: 0 18px 50px rgba(20, 48, 91, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jd-ink);
  background: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: #075fc4; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--jd-blue-dark); }
h1, h2, h3, h4 { color: var(--jd-blue-dark); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 3.4vw, 3.15rem); font-weight: 560; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); font-weight: 620; letter-spacing: -.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: .7rem 1rem; background: #fff; z-index: 9999; }
.jd-container { width: min(calc(100% - 48px), var(--jd-max)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(18,58,120,.08); backdrop-filter: blur(10px);
}
.header-inner { width: min(calc(100% - 48px), var(--jd-header-max)); min-height: 84px; display: flex; align-items: center; gap: 24px; }
.site-logo { display: inline-flex; flex: 0 0 auto; }
.site-logo img { display: block; width: 220px; max-height: 62px; object-fit: contain; object-position: left center; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 29px 15px; color: #1f2937; text-decoration: none; border-left: 1px solid #eef0f3; white-space: nowrap; }
.site-nav li:last-child > a { border-right: 1px solid #eef0f3; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-menu-ancestor > a { color: var(--jd-blue); background: #f8fafd; }
.site-nav .sub-menu {
  position: absolute; top: calc(100% - 1px); left: 0; z-index: 1200; min-width: 265px; display: none; flex-direction: column;
  align-items: stretch; padding: 7px; background: #fff; box-shadow: var(--jd-shadow); border: 1px solid var(--jd-border); border-top: 3px solid var(--jd-blue); border-radius: 0 0 10px 10px;
}
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu li { width: 100%; }
.site-nav .sub-menu a { padding: 10px 13px; border: 0; border-radius: 6px; line-height: 1.35; white-space: normal; }
.site-nav .sub-menu a:hover, .site-nav .sub-menu .current-menu-item > a { background: var(--jd-blue-light); }
.site-nav .sub-menu .sub-menu { top: -10px; left: calc(100% + 7px); border-radius: 10px; }
.site-nav .menu-item-has-children > a { padding-right: 28px; }
.site-nav .menu-item-has-children > a::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-65%) rotate(45deg);
}
.site-nav .sub-menu .menu-item-has-children > a::after { transform: translateY(-50%) rotate(-45deg); }
.submenu-toggle { display: none; }
.language-switcher { display: flex; gap: 7px; align-items: center; }
.language-switcher a { min-width: 38px; padding: 8px 7px; border: 1px solid var(--jd-border); border-radius: 7px; text-align: center; text-decoration: none; font-size: .78rem; font-weight: 650; text-transform: uppercase; }
.language-switcher a.is-current { color: #fff; border-color: var(--jd-blue); background: var(--jd-blue); }
.nav-toggle { display: none; margin-left: auto; border: 1px solid var(--jd-border); background: #fff; padding: 9px 12px; border-radius: 6px; font-size: 1.25rem; }

.jd-hero {
  position: relative; min-height: clamp(360px, 48vw, 620px); display: grid; place-items: center;
  color: #fff; background: var(--jd-blue-dark) url('/wp-content/uploads/2018/07/Fotolia_86289014_L1.jpg') center/cover no-repeat;
  isolation: isolate; overflow: hidden;
}
.jd-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,35,84,.94), rgba(15,56,122,.68)); }
.jd-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 8px; background: linear-gradient(90deg,#0c2f6c,#3777c5,#0c2f6c); }
.hero-content { width: min(calc(100% - 40px), var(--jd-max)); }
.hero-kicker { margin: 0 0 10px; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .82; }
.jd-hero h1 { max-width: 850px; margin: 0; color: #fff; font-size: clamp(2.35rem, 5.5vw, 5rem); letter-spacing: -.03em; }
.hero-copy { max-width: 760px; margin: 20px 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.9); }

.site-main { min-height: 55vh; }
.page-shell { padding: 44px 0 76px; }
.page-header { margin-bottom: 28px; padding: 0 0 20px; border-bottom: 1px solid var(--jd-border); }
.page-title { margin: 0; }
.page-intro { max-width: 760px; margin: 14px 0 0; color: #46546a; font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.6; }
.entry-content > *:first-child { margin-top: 0; }
.jendata-has-duplicate-title .entry-content > .jendata-section:first-child .jendata-type-fancy_heading:first-child h2:first-child { display: none; }

.jendata-section { padding: 24px 0; }
.jendata-section + .jendata-section { border-top: 1px solid rgba(228,232,239,.7); }
.jendata-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; }
.jendata-wrap { grid-column: span var(--jd-span, 12); min-width: 0; }
.jendata-items { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; }
.jendata-item { grid-column: span var(--jd-span, 12); min-width: 0; }
.jendata-card, .jendata-team, .jendata-contact-card, .jendata-promo {
  height: 100%; padding: 22px; border: 1px solid var(--jd-border); border-radius: 14px; background: var(--jd-surface); box-shadow: 0 8px 28px rgba(21,45,82,.07);
}
.jendata-card img, .jendata-promo img, .jendata-team img { display: block; max-width: 100%; border-radius: 8px; object-fit: cover; }
.jendata-type-icon_box .jendata-card { display: flex; flex-direction: column; align-items: flex-start; }
.jendata-type-icon_box .jendata-card img { width: auto; height: auto; max-height: 150px; margin: 0 auto 20px; object-fit: contain; }
.jendata-type-icon_box .jendata-card h3 { margin: 0 0 8px; }
.jendata-type-icon_box .jendata-card p { margin: 6px 0; }
.jendata-type-icon_box .jendata-card p:last-child { margin-top: auto; padding-top: 14px; }
.jendata-type-photo_box .jendata-card { padding: 0; overflow: hidden; }
.jendata-type-photo_box .jendata-card > a { display: flex; flex-direction: column; height: 100%; color: var(--jd-blue-dark); text-decoration: none; }
.jendata-type-photo_box .jendata-card img { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; object-fit: cover; background: var(--jd-blue-light); }
.jendata-type-photo_box .jendata-card h4 { margin: 0; padding: 16px 18px 18px; font-size: 1rem; line-height: 1.35; }
.jendata-type-photo_box .jendata-card > a:hover h4 { color: #075fc4; }
.jendata-photo { margin: 0; }
.jendata-photo img { display: block; width: 100%; border-radius: 8px; }
.jendata-photo figcaption { margin-top: 10px; color: var(--jd-muted); font-size: .92rem; }
.jendata-button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--jd-blue); border-radius: 7px; color: #fff; background: var(--jd-blue); text-decoration: none; font-weight: 680; line-height: 1.25;
}
.jendata-button:hover, .wp-block-button__link:hover { color: #fff; background: var(--jd-blue-dark); }
.jendata-button-secondary { color: var(--jd-blue); background: #fff; }
.jendata-button-secondary:hover { color: #fff; background: var(--jd-blue-dark); }
.jendata-trailer { position: relative; display: block; min-height: 230px; overflow: hidden; border-radius: 10px; color: #fff; background: var(--jd-blue-dark); }
.jendata-trailer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; transition: transform .35s; }
.jendata-trailer:hover img { transform: scale(1.035); }
.jendata-trailer-copy { position: absolute; inset: auto 20px 20px; z-index: 2; }
.jendata-trailer h3 { margin: 0; color: #fff; }
.jendata-accordion details { margin: 0 0 10px; border: 1px solid var(--jd-border); border-radius: 7px; padding: 12px 16px; }
.jendata-accordion summary { cursor: pointer; color: var(--jd-blue-dark); font-weight: 650; }
.jendata-check { display: inline-block; margin-right: .35em; color: #08794f; font-weight: 800; }
.jendata-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; }
.jendata-video iframe, .jendata-video video { width: 100%; aspect-ratio: 16/9; border: 0; }

/* Front-page funding partners: center the two four-column cards in the grid. */
.home .entry-content > .jendata-section:first-child .jendata-wrap:first-child .jendata-heading { text-align: center; }
.home .entry-content > .jendata-section:first-child .jendata-wrap:first-child .jendata-item:nth-child(2) { grid-column: 3 / span 4; }
.home .entry-content > .jendata-section:first-child .jendata-wrap:first-child .jendata-item:nth-child(3) { grid-column: 7 / span 4; }

.jendata-contact-form {
  max-width: 820px; margin-top: 42px; padding: 30px; border: 1px solid var(--jd-border);
  border-radius: 12px; background: #f8fafd; box-shadow: 0 8px 24px rgba(21,45,82,.06);
}
.jendata-contact-form h2 { margin-top: 0; }
.jendata-contact-form label { display: block; color: var(--jd-blue-dark); font-weight: 650; }
.jendata-contact-form input:not([type="submit"]),
.jendata-contact-form textarea {
  width: 100%; margin-top: 7px; padding: 11px 13px; border: 1px solid #cfd7e3;
  border-radius: 5px; color: var(--jd-ink); background: #fff; font: inherit;
}
.jendata-contact-form textarea { min-height: 165px; resize: vertical; }
.jendata-contact-form input:focus, .jendata-contact-form textarea:focus {
  outline: 3px solid rgba(18,58,120,.14); border-color: var(--jd-blue);
}
.jendata-contact-form input[type="submit"] {
  padding: 11px 22px; border: 0; border-radius: 5px; color: #fff;
  background: var(--jd-blue); font: inherit; font-weight: 700; cursor: pointer;
}
.jendata-contact-form input[type="submit"]:hover { background: var(--jd-blue-dark); }
.jendata-contact-form .wpcf7-spinner { vertical-align: middle; }

.site-footer { color: #e7ebf2; background: var(--jd-footer); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 28px 0; }
.site-footer a { color: #67b5ff; }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; padding: 0; }
.footer-menu a { text-decoration: none; }
.copyright { margin: 0; font-size: .9rem; }

/* Support page: compact cards preserve the native icon resolution. */
.support-availability { max-width: 820px; margin: 0 0 34px; color: #344054; }
.support-section { padding: 26px 0 8px; border-top: 1px solid var(--jd-border); }
.support-section > h2 { margin: 0 0 20px; font-size: clamp(1.45rem, 2vw, 1.9rem); }
.support-tools { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.support-card {
  display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 24px; align-items: center;
  min-height: 220px; padding: 26px; border: 1px solid var(--jd-border); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(18,58,120,.07);
}
.support-card-media { display: grid; place-items: center; width: 150px; height: 150px; padding: 16px; border-radius: 14px; background: var(--jd-blue-light); }
.support-card-media img { display: block; width: auto; height: auto; max-width: 118px; max-height: 118px; object-fit: contain; }
.support-card-body h3 { margin: 0 0 8px; font-size: 1.35rem; }
.support-card-body p { margin: 0 0 18px; color: var(--jd-muted); }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.meeting-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.meeting-card {
  display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; padding: 22px;
  border: 1px solid var(--jd-border); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(18,58,120,.06);
}
.meeting-card img { display: block; width: auto; height: auto; max-width: 78px; max-height: 78px; object-fit: contain; }
.meeting-card h3 { margin: 2px 0 0; font-size: 1.08rem; }
.meeting-brand { margin: 0; color: var(--jd-blue); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.meeting-card .text-link { grid-column: 1 / -1; width: fit-content; font-weight: 680; text-decoration: none; }

/* News archive */
.news-list { display: grid; gap: 18px; }
.news-card, .news-empty { padding: 28px; border: 1px solid var(--jd-border); border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(18,58,120,.06); }
.news-card h2 { margin-top: 0; }
.news-empty { color: var(--jd-muted); background: #f8fafd; }
.news-empty p { margin: 0; }

@media (max-width: 1180px) {
  .header-inner { min-height: 76px; }
  .site-logo img { width: 190px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; display: none; inset: 76px 0 auto; max-height: calc(100vh - 76px); overflow-y: auto; margin: 0; padding: 8px 20px 20px; background: #fff; box-shadow: var(--jd-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; }
  .site-nav a { padding: 12px 48px 12px 12px; border: 0; border-bottom: 1px solid var(--jd-border); }
  .site-nav .menu-item-has-children > a::after { display: none; }
  .site-nav .sub-menu, .site-nav .sub-menu .sub-menu { position: static; display: none; min-width: 0; padding: 4px 0 4px 16px; box-shadow: none; border: 0; border-radius: 0; }
  .site-nav .is-submenu-open > .sub-menu { display: block; }
  .submenu-toggle {
    position: absolute; top: 4px; right: 2px; display: grid; place-items: center; width: 40px; height: 40px;
    border: 0; border-radius: 6px; color: var(--jd-blue); background: transparent; font: inherit; font-size: 1.25rem; cursor: pointer;
  }
  .submenu-toggle[aria-expanded="true"] { background: var(--jd-blue-light); transform: rotate(180deg); }
  .language-switcher { margin-left: 0; }
  .support-card { grid-template-columns: 115px minmax(0,1fr); }
  .support-card-media { width: 115px; height: 115px; }
  .meeting-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .jd-container, .header-inner { width: min(calc(100% - 28px), var(--jd-max)); }
  .language-switcher { display: none; }
  .jd-hero { min-height: 400px; }
  .page-shell { padding: 32px 0 54px; }
  .jendata-grid, .jendata-items { grid-template-columns: 1fr; gap: 18px; }
  .jendata-wrap, .jendata-item { grid-column: 1 !important; }
  .footer-inner { grid-template-columns: 1fr; }
  .jendata-contact-form { padding: 22px 18px; }
  .support-tools, .meeting-grid { grid-template-columns: 1fr; }
  .support-card { grid-template-columns: 90px minmax(0,1fr); min-height: 0; padding: 20px; }
  .support-card-media { width: 90px; height: 90px; padding: 12px; }
  .support-card-media img { max-width: 70px; max-height: 70px; }
  .meeting-card { grid-template-columns: 68px 1fr; }
}

@media (max-width: 460px) {
  .support-card { grid-template-columns: 1fr; }
  .support-card-media { width: 92px; height: 92px; }
  .support-actions { align-items: stretch; }
  .support-actions .jendata-button { width: 100%; }
}

