/* X-VET additions to the site styles */
.site .btn[disabled] { opacity: .6; cursor: progress; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Logos */
.eubar .eu-logo { display: block; height: 26px; width: auto; }
.site .logo .xvet-logo { display: block; height: 44px; width: auto; }
.eu-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.eu-logos img { display: block; height: 48px; width: auto; }

/* Green / Digital / Economic tiles in the overview hero */
.twin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.twin-tile { border-radius: 20px; padding: 26px 22px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; color: #fff; position: relative; overflow: hidden; }
.twin-tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 999px; background: rgba(255,255,255,.10); }
.twin-tile b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.twin-tile span { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.88); }
.twin-tile .twin-ico { position: absolute; left: 22px; top: 22px; width: 54px; height: 54px; border-radius: 16px; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; }
.t-green { background: linear-gradient(160deg, #2A9A4C, #1E7A3B 60%, #155C2C); }
.t-navy { background: linear-gradient(160deg, #0D4675, #062B4A 70%); transform: translateY(-24px); }
.t-teal { background: linear-gradient(160deg, #13A0B3, #0F7C8C 60%, #0A5E6A); }

/* Covers: a photo, or a brand colour with a label */
.cover { position: relative; border-radius: var(--radius); min-height: 220px; overflow: hidden; display: flex; align-items: flex-end; background: #062B4A; }
.cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 85% 15%, rgba(255,255,255,.16) 0 70px, transparent 71px), radial-gradient(circle at 10% 110%, rgba(255,255,255,.10) 0 120px, transparent 121px); }
.cover.c-navy { background: linear-gradient(150deg, #0D4675, #062B4A); }
.cover.c-green { background: linear-gradient(150deg, #2A9A4C, #155C2C); }
.cover.c-teal { background: linear-gradient(150deg, #13A0B3, #0A5E6A); }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover:has(> img)::after { background: linear-gradient(180deg, transparent 55%, rgba(6,43,74,.55)); }
.cover-place { position: relative; z-index: 1; margin: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.92); color: #062B4A; font: 700 13px var(--display); }
.cover-num { position: absolute; left: 20px; top: 14px; z-index: 1; font: 800 64px var(--display); letter-spacing: -0.04em; color: rgba(255,255,255,.9); }
.post .cover { min-height: 220px; }
.post:hover .cover > img { transform: scale(1.02); }
.cover > img { transition: transform .3s ease; }

/* Wide photo below the overview hero */
.photo-band { padding: 0 0 72px; }
.photo-band figure { margin: 0; }
.photo-band img { display: block; width: 100%; height: auto; border-radius: 24px; aspect-ratio: 2000 / 898; object-fit: cover; }
.photo-band figcaption { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.photo-band figcaption a { font-weight: 700; text-decoration: none; }
.photo-band figcaption a:hover { text-decoration: underline; }

/* Partner logo tiles */
.logos.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.logo-tile img { display: block; max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.logos.seven .logo-tile { justify-content: space-between; }
.logos.seven .logo-tile img { margin: auto 0; }
.logo-tile .pname { font: 800 16px var(--display); color: var(--ink); }

/* MOOC: track illustration and module table */
.track-art { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.track-art .ta { border-radius: 18px; min-height: 200px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; }
.track-art .ta b { font: 800 20px var(--display); }
.track-art .ta-1 { background: linear-gradient(160deg, #0D4675, #062B4A); }
.track-art .ta-2 { background: linear-gradient(160deg, #2A9A4C, #155C2C); transform: translateY(18px); }
.track-art .ta-3 { background: linear-gradient(160deg, #13A0B3, #0A5E6A); }
.mtable { position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.mrow > span { position: relative; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 150px); align-items: center; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow > span { padding: 14px 20px; }
.mrow > span + span { text-align: center; }
.mrow b { font-weight: 600; font-size: 16px; }
.mrow small { display: block; font-size: 13px; color: var(--ink-2); }
.mhead { background: #F3F5F8; font: 800 15px var(--display); }
.mrow .yes i { font-style: normal; font-weight: 800; color: var(--accent-ink); }
.mrow .no i { font-style: normal; color: #9AA6B5; }

/* Photo gallery and viewer on news articles */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery .g-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery .g-item.wide { grid-column: 1 / -1; aspect-ratio: 2000 / 898; }
.gallery .g-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery .g-item:hover img { transform: scale(1.03); }
.gallery .g-item:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 20, 36, .92); display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding: 24px; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: 10px; }
.lightbox figcaption { color: #DCE6F0; font-size: 15px; text-align: center; }
.lightbox button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.24); }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; }

/* Responsive */
@media (max-width: 1100px) {
  .logos.seven { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .twin-tile { min-height: 200px; }
  .t-navy, .track-art .ta-2 { transform: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) repeat(3, 76px); }
  .mrow > span { padding: 12px 10px; }
  .mhead { font-size: 12px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .twin { grid-template-columns: minmax(0, 1fr); }
  .twin-tile { min-height: 0; padding-top: 92px; }
  .logos.seven { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eu-logos img { height: 40px; }
  .photo-band { padding-bottom: 48px; }
  .photo-band img { border-radius: 16px; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 12px; }
  .lightbox button { width: 40px; height: 40px; font-size: 24px; }
  .mtable { overflow-x: auto; }
  .mrow { min-width: 560px; grid-template-columns: minmax(0, 1fr) repeat(3, 84px); }
}
