/*
Theme Name: Fogus 2026
Theme URI: https://fogus.gr/
Description: Theme for Fogus Innovations & Services P.C. Colours from the Fogus logo (charcoal ground, Fogus cyan). Projects come from the Fogus projects feed (mu-plugin).
Author: Fogus Innovations & Services P.C.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: fogus2026
*/

:root {
	--charcoal: #38383a;
	--charcoal-deep: #2c2c2e;
	--cyan: #1fb9ea;
	--cyan-deep: #0a6a8c;
	--cyan-ink: #086789;
	--fog: #eaf6fb;
	--line: #cde5ef;
	--ink: #38383a;
	--muted: #596066;
	--signal: #f48e2c;
	--white: #fff;
	--maxw: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
	--display: "Saira", "Noto Sans", system-ui, sans-serif;
	--body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--body);
	-webkit-font-smoothing: antialiased;
}
main { display: block; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--charcoal); text-decoration-color: var(--cyan); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	font-stretch: 112%;
	font-weight: 700;
	line-height: 1.12;
	margin: 0 0 .5em;
	color: inherit;
}
h2 { font-size: clamp(1.75rem, 1.15rem + 2vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--charcoal); padding: 10px 14px; }
.skip:focus { left: 16px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--charcoal); color: var(--white); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-head { top: 0; } }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { display: block; height: 46px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
	display: block; padding: 10px 14px; border-radius: 4px;
	color: var(--white); text-decoration: none;
	font: 500 1rem/1.2 var(--display); font-stretch: 110%;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255, 255, 255, .09); color: var(--cyan); }
.nav-toggle { display: none; }
@media (max-width: 920px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px;
		background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .4); border-radius: 4px;
		font: 600 1rem/1 var(--display); font-stretch: 110%; cursor: pointer;
	}
	.nav-toggle i { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--charcoal); border-top: 1px solid rgba(255, 255, 255, .14); padding: 6px var(--gutter) 18px; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; }
	.site-nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
	.brand img { height: 40px; }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
	border: 2px solid var(--charcoal); border-radius: 4px;
	font: 600 1rem/1.1 var(--display); font-stretch: 110%; text-decoration: none; text-align: center;
}
.btn.btn-dark { background: var(--charcoal); color: var(--white); }
.btn.btn-dark:hover { background: var(--charcoal-deep); border-color: var(--charcoal-deep); color: var(--white); }
.btn.btn-line { background: transparent; color: var(--charcoal); }
.btn.btn-line:hover { background: rgba(255, 255, 255, .4); color: var(--charcoal); }

/* Hero */
.hero { background: var(--cyan); color: var(--charcoal); padding: clamp(44px, 7vw, 96px) 0 clamp(40px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.15rem, 1.1rem + 3.6vw, 3.75rem); font-weight: 750; font-stretch: 116%; line-height: 1.03; margin-bottom: .5em; max-width: 15ch; }
.hero-sub { font-size: 1.125rem; max-width: 42ch; margin-bottom: 1.7em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-viz { margin: 0; min-width: 0; }
.hero-viz figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: .88rem; margin-top: 10px; }
.hero-viz figcaption strong { font: 600 .95rem/1.3 var(--display); font-stretch: 110%; flex-basis: 100%; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { display: inline-block; width: 22px; height: 9px; border-radius: 5px; }
.lg-live i { background: var(--white); }
.lg-done i { background: rgba(56, 56, 58, .5); }
.lg-next i { box-shadow: inset 0 0 0 2px var(--white); }
.lg-today i { width: 2px; height: 14px; border-radius: 0; background: var(--signal); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: 16ch; } }

/* Timeline (hero) */
.tl { position: relative; margin-right: 74px; padding-top: 22px; }
.tl-rows { list-style: none; margin: 0; padding: 0; }
.tl-row { position: relative; height: 12px; margin: 0 0 3px; }
.tl-row a { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 6px; background: rgba(56, 56, 58, .5); text-decoration: none; }
.tl-live a { background: var(--white); }
.tl-next a { background: transparent; box-shadow: inset 0 0 0 2px var(--white); }
.tl-row span {
	position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%);
	font: 600 10.5px/1 var(--display); font-stretch: 105%; color: var(--charcoal); white-space: nowrap;
}
.tl-today { position: absolute; top: 14px; bottom: 26px; width: 0; border-left: 2px solid var(--signal); margin-left: -1px; pointer-events: none; }
.tl-today span { position: absolute; top: -14px; left: 5px; font: 600 11px/1 var(--display); color: var(--charcoal); }
.tl-years { list-style: none; margin: 8px 0 0; padding: 0; position: relative; height: 18px; border-top: 1px solid rgba(56, 56, 58, .45); }
.tl-years li { position: absolute; top: 0; padding-top: 6px; transform: translateX(-50%); font: 500 11px/1 var(--display); color: var(--charcoal); }
.tl-years li::before { content: ""; position: absolute; top: -1px; left: 50%; height: 4px; border-left: 1px solid rgba(56, 56, 58, .45); }
@media (max-width: 520px) { .tl { margin-right: 58px; } .tl-row { height: 10px; } .tl-row span { font-size: 9.5px; } }

/* Sections */
.sec { padding: clamp(56px, 8vw, 104px) 0; }
.sec-fog { background: var(--fog); }
.sec-deep { background: var(--cyan-deep); color: var(--white); }
.sec-deep a { color: var(--white); }
.sec-cyan { background: var(--cyan); color: var(--charcoal); }
.sec-cyan a { color: var(--charcoal); }
.sec-head { max-width: 800px; margin-bottom: clamp(28px, 4vw, 48px); }
.lede { font-size: 1.15rem; max-width: 66ch; }

/* About */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.pillar { border-top: 3px solid var(--cyan); padding-top: 18px; }
.pillar h3 { font-size: 1.3rem; }
.pillar p { margin: 0; }
@media (max-width: 720px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Services */
.svc-list, .sol-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.svc, .sol { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start; }
.svc img { display: block; width: 64px; height: 61px; object-fit: contain; object-position: left top; }
.svc h3, .sol h3 { margin-bottom: .4em; }
.svc p, .sol p { margin: 0; }
.sec-deep .svc p { color: #e8f2f6; }
.sol-ico { width: 64px; height: 64px; overflow: hidden; }
.sol-ico img { display: block; width: 64px; height: 192px; max-width: none; }
@media (max-width: 760px) { .svc-list, .sol-list { grid-template-columns: minmax(0, 1fr); } }

/* Products */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.prod { display: flex; flex-direction: column; }
.prod figure { margin: 0 0 18px; height: 200px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); padding: 14px; }
.prod figure a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.prod figure img { max-height: 100%; width: auto; object-fit: contain; }
.prod h3 a { color: var(--ink); text-decoration: none; }
.prod h3 a:hover { color: var(--cyan-ink); text-decoration: underline; }
.prod p { margin: 0 0 12px; }
.prod .more { margin-top: auto; font-weight: 600; }
@media (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: minmax(0, 1fr); } }

/* Projects */
.pjs-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.pjs-head h2 { margin: 0; }
.pjs-portal { margin: 0; font-weight: 600; }
.pjs-group { margin-top: clamp(36px, 5vw, 60px); }
.pjs-group h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: .35em; }
.pjs-n { font: 700 1rem/1 var(--display); background: var(--cyan); color: var(--charcoal); border-radius: 999px; padding: 6px 12px; }
.pjs-done .pjs-n { background: var(--fog); }
.pjs-intro { color: var(--muted); margin-bottom: 20px; }
.pjs-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.pj {
	display: grid; grid-template-columns: 210px minmax(0, 1fr) 136px;
	grid-template-areas: "id body logo";
	gap: 12px 36px; padding: 28px 0; border-top: 1px solid var(--line);
}
.pj-id { grid-area: id; min-width: 0; }
.pj-body { grid-area: body; min-width: 0; }
.pj-logo { grid-area: logo; display: flex; align-items: flex-start; justify-content: flex-end; }
.pj-logo img { display: block; max-width: 136px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.pj-acr { font-size: 1.5rem; font-weight: 750; font-stretch: 112%; margin: 0 0 4px; overflow-wrap: anywhere; }
.pj-acr a { color: var(--ink); text-decoration: none; }
.pj-acr a:hover { color: var(--cyan-ink); text-decoration: underline; }
.pj-when { font-size: .93rem; color: var(--muted); margin: 0 0 10px; }
.pj-flag { display: inline-block; font: 600 .82rem/1 var(--display); font-stretch: 108%; color: var(--charcoal); background: #fde6d0; border-left: 3px solid var(--signal); padding: 6px 9px; margin: 0 0 12px; }
.pj-span { position: relative; height: 6px; border-radius: 3px; background: #dcebf1; margin-top: 4px; }
.pj-span i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--cyan); }
.pjs-done .pj-span i { background: #8f9499; }
.pj-span b { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--signal); }
.pj-title { font-weight: 600; font-size: 1.03rem; line-height: 1.45; margin: 0 0 8px; }
.pj-sum { color: var(--muted); font-size: .96rem; margin: 0 0 14px; }
.pj-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 14px; font-size: .9rem; line-height: 1.4; }
.pj-meta div { min-width: 0; flex: 0 1 auto; max-width: 340px; }
.pj-meta dt { color: var(--muted); font-size: .8rem; margin: 0 0 2px; }
.pj-meta dd { margin: 0; overflow-wrap: anywhere; }
.pj-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .93rem; font-weight: 600; }
.pjs-source { font-size: .86rem; color: var(--muted); margin: 24px 0 0; }
@media (max-width: 980px) {
	.pj { grid-template-columns: 180px minmax(0, 1fr); grid-template-areas: "id body" "logo body"; }
	.pj-logo { justify-content: flex-start; }
}
@media (max-width: 640px) {
	.pj { grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "logo" "body"; gap: 12px; }
	.pj-span { max-width: 260px; }
	.pj-sum { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: center; }
.contact-grid h2 { margin-bottom: .4em; }
.contact-lead { font-size: 1.15rem; font-weight: 600; max-width: 40ch; }
.contact-org { font: 650 1.2rem/1.3 var(--display); font-stretch: 110%; margin: 1.4em 0 .3em; }
.contact-grid address { font-style: normal; }
.contact-cta { justify-self: start; }
.contact-cta .btn { min-height: 60px; font-size: 1.15rem; padding: 0 28px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages */
.page-hero { background: var(--fog); border-bottom: 1px solid var(--line); padding: clamp(32px, 5vw, 56px) 0 clamp(26px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.1rem); margin: 0; }
.crumb { margin: 0 0 10px; font-size: .95rem; font-weight: 600; }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.entry { max-width: 800px; overflow-wrap: break-word; }
.entry::after { content: ""; display: table; clear: both; }
.entry h5 { font-size: 1.3rem; margin: 1.6em 0 .55em; }
.entry h5:empty { display: none; }
.entry img.alignleft { float: left; margin: 4px 24px 12px 0; }
.entry img.aligncenter { display: block; margin: 0 auto; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry table { width: 100% !important; border-collapse: collapse; margin: 0 0 1.6em; font-size: .96rem; line-height: 1.45; }
.entry td, .entry th { width: auto !important; border-bottom: 1px solid var(--line); padding: 10px 14px 10px 0; vertical-align: top; text-align: left; }
.entry table.project-infos td:first-child { color: var(--muted); width: 38% !important; }
.entry figure { margin: 1.5em 0; }
.entry .wp-block-image img { height: auto; }
@media (max-width: 560px) { .entry img.alignleft { float: none; margin: 0 0 16px; } }

/* Footer */
.site-foot { background: var(--charcoal); color: #e9e9ea; font-size: .95rem; }
.site-foot a { color: var(--white); }
.site-foot a:hover { color: var(--cyan); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: 32px 48px; padding-top: clamp(44px, 6vw, 72px); padding-bottom: 32px; }
.foot-grid h2 { font-size: 1.05rem; font-weight: 650; color: var(--white); margin: 0 0 .8em; }
.foot-brand img { display: block; height: 52px; width: auto; margin-bottom: 14px; }
.foot-grid dl { margin: 0; display: grid; gap: 8px; }
.foot-grid dt { color: #b9babd; font-size: .82rem; }
.foot-grid dd { margin: 0; }
.foot-grid address { font-style: normal; }
.foot-espa { padding-top: 8px; padding-bottom: 28px; }
.foot-espa a { display: inline-block; background: var(--white); padding: 6px; border-radius: 3px; }
.foot-espa img { display: block; width: 460px; max-width: 100%; height: auto; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; padding-bottom: 22px; font-size: .88rem; color: #c9cacc; }
.foot-base p { margin: 0; }
.foot-base ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Misc */
.notfound { padding: clamp(56px, 9vw, 120px) 0; }
.notfound h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.search-form { display: flex; gap: 8px; flex-wrap: wrap; }
.search-form input[type="search"] { min-height: 46px; padding: 0 12px; border: 1px solid #9aa3a8; border-radius: 4px; font: inherit; min-width: 0; flex: 1 1 220px; }
.search-form button, .search-form input[type="submit"] { min-height: 46px; padding: 0 18px; border: 2px solid var(--charcoal); background: var(--charcoal); color: var(--white); border-radius: 4px; font: 600 1rem/1 var(--display); cursor: pointer; }

/* One-page layout (17 Nov 2026): themes, services, cards, detail windows */
.sub { font-size: 1.35rem; margin: 0 0 14px; }
.themes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.themes li { padding: 14px 0 16px; border-top: 1px solid var(--line); }
.themes strong { display: block; font: 650 1.08rem/1.3 var(--display); font-stretch: 108%; margin-bottom: 3px; }
.themes .eg { font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .themes { grid-template-columns: minmax(0, 1fr); } }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.svc-grid li { border-top: 2px solid rgba(255, 255, 255, .4); padding: 18px 0 30px; }
.svc-grid h3 { font-size: 1.18rem; line-height: 1.25; margin: 0 0 8px; }
.svc-grid .eg { margin: 0; font-size: .88rem; color: #dcedf4; }
.sec-deep .svc-grid .eg a { color: var(--white); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } .svc-grid li { padding-bottom: 20px; } }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards li { display: flex; min-width: 0; }
.card {
	display: flex; flex-direction: column; width: 100%; padding: 22px 22px 20px;
	background: var(--white); color: var(--ink); text-decoration: none;
	border: 1px solid var(--line); border-top: 4px solid var(--cyan);
}
.card:hover, .card:focus-visible { border-color: var(--cyan); color: var(--ink); }
.card:hover .card-h, .card:focus-visible .card-h { color: var(--cyan-ink); }
.card-h { font: 650 1.2rem/1.25 var(--display); font-stretch: 110%; margin-bottom: 8px; }
.card-h::after { content: " +"; color: var(--cyan-ink); }
.card-l { font-size: .97rem; color: var(--muted); }
.card-eg { margin-top: auto; padding-top: 14px; font-size: .85rem; font-weight: 600; color: var(--cyan-ink); }
.cards-prod .card { padding: 0 0 20px; border-top-width: 1px; }
.cards-prod .card-img { display: flex; align-items: center; justify-content: center; height: 180px; padding: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.cards-prod .card-img img { max-height: 100%; width: auto; object-fit: contain; }
.cards-prod .card-h, .cards-prod .card-l { padding: 0 20px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.modal { display: none; position: fixed; inset: 0; z-index: 200; overflow-y: auto; padding: clamp(12px, 4vw, 48px) var(--gutter); background: rgba(44, 44, 46, .68); align-items: flex-start; justify-content: center; }
html:not(.js) .modal:target, .modal.is-open { display: flex; }
html.modal-open { overflow: hidden; }
.modal-panel { position: relative; width: 100%; max-width: 760px; margin: auto 0; padding: clamp(24px, 4vw, 44px); background: var(--white); color: var(--ink); border-top: 6px solid var(--cyan); }
.modal-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); padding-right: 48px; }
.modal-panel h4 { font-size: 1.02rem; margin: 1.6em 0 .6em; }
.modal-panel p { max-width: 68ch; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; color: var(--charcoal); text-decoration: none; border-radius: 4px; }
.modal-close:hover { background: var(--fog); color: var(--charcoal); }
.modal-rel { font-weight: 600; }
.refs { margin: 0; padding-left: 1.1em; font-size: .93rem; line-height: 1.5; }
.refs li { margin-bottom: .6em; overflow-wrap: anywhere; }
.pj-banner { margin: 2px 0 14px; }
.pj-banner img { display: block; width: 460px; max-width: 100%; height: auto; }
.modal-contact { margin: 1.6em 0 0; }
.btn.btn-foot { min-height: 44px; background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn.btn-foot:hover { background: var(--cyan); border-color: var(--cyan); color: var(--charcoal); }

/* Logo boxes: one size for every project (17 Nov 2026) */
.pj-logo { width: 136px; height: 76px; padding: 8px; align-items: center; justify-content: center; background: var(--white); border: 1px solid var(--line); }
.pj-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pj-logo-text { background: var(--fog); }
.pj-logo-text span { font: 700 1rem/1.1 var(--display); font-stretch: 110%; color: var(--charcoal); text-align: center; overflow-wrap: anywhere; }
@media (max-width: 980px) { .pj-logo { justify-self: start; } }

/* Justified body text (17 Nov 2026); headings, menus, buttons, labels and meta lines stay left-aligned */
.hero-sub, .lede, .entry p, .entry li, .pj-sum, .pjs-intro, .modal-panel p, .card-l, .themes li, .contact-lead, .foot-brand p {
	text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-align-last: left;
}
.modal-panel p.modal-rel, .modal-panel p.modal-contact { text-align: left; }
@media (max-width: 479px) {
	.hero-sub, .lede, .entry p, .entry li, .pj-sum, .pjs-intro, .modal-panel p, .card-l, .themes li, .contact-lead, .foot-brand p { text-align: left; }
}

/* Funding-group colours: timeline bars, legend and project tags (17 Nov 2026) */
.g-msca { --g: #1e2a5a; }
.g-sns { --g: #ffffff; }
.g-horizon { --g: #ffe066; }
.g-other { --g: #8a1c7c; }
.g-national { --g: #d62839; }
.tl .tl-row a { background: transparent; }
.tl .tl-row a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--g, rgba(56, 56, 58, .5)); }
.tl .tl-done a::before { opacity: .5; }
.tl .tl-next a::before { background: transparent; box-shadow: inset 0 0 0 2px var(--g, #fff); }
.hero-viz .lg-row { display: flex; flex-wrap: wrap; gap: 6px 18px; flex-basis: 100%; }
.hero-viz .lg[class*=" g-"] i { background: var(--g); box-shadow: 0 0 0 1px rgba(56, 56, 58, .25); }
.hero-viz .lg-live i { background: var(--charcoal); }
.hero-viz .lg-done i { background: var(--charcoal); opacity: .5; }
.hero-viz .lg-next i { background: transparent; box-shadow: inset 0 0 0 2px var(--charcoal); }
.pj-prog { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; font: 600 .82rem/1.2 var(--display); font-stretch: 105%; color: var(--muted); }
.pj-prog i { width: 10px; height: 10px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 1px rgba(56, 56, 58, .35); }

/* Photos and decorative illustrations (17 Nov 2026) */
.hero { position: relative; overflow: hidden; padding-bottom: calc(clamp(104px, 11.2vw, 210px) + 12px); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-band { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(104px, 11.2vw, 210px); pointer-events: none; }
@keyframes fogus-pulse { 0%, 100% { opacity: .3; } 45% { opacity: 1; } }
.hero-band .pulse { animation: fogus-pulse 3.2s ease-in-out infinite; }
.hero-band .p1 { animation-delay: .3s; }
.hero-band .p2 { animation-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .hero-band .pulse { animation: none; } }
.photo { margin: 0; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--fog); }
.photo figcaption { margin-top: 8px; font-size: .84rem; line-height: 1.45; color: var(--muted); text-align: left; }
.photo .credit { display: block; margin-top: 3px; font-size: .78rem; }
.photo-h { margin-top: clamp(32px, 4vw, 48px); }
.photo-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-row li { min-width: 0; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.svc-layout .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc-photo img { aspect-ratio: 3 / 4; }
.sec-deep .photo figcaption { color: #dcedf4; }
.sec-deep .photo a { color: var(--white); }
.card-ico { display: block; color: var(--cyan-ink); margin-bottom: 14px; line-height: 0; }
.card-ico svg { width: 44px; height: 44px; }
@media (max-width: 900px) {
	.svc-layout { grid-template-columns: minmax(0, 1fr); }
	.svc-photo { max-width: 560px; }
	.svc-photo img { aspect-ratio: 16 / 10; object-position: 50% 55%; }
}
@media (max-width: 640px) {
	.photo-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: 14px; padding-bottom: 10px; }
	.photo-row li { scroll-snap-align: start; }
}
@media (max-width: 560px) { .svc-layout .svc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact address links to the map (17 Nov 2026) */
.addr-link { display: inline-flex; align-items: flex-start; gap: 7px; color: inherit; text-decoration: none; }
.addr-link span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.addr-link .pin { flex: none; width: 14px; height: 14px; margin-top: .32em; opacity: .85; }
.site-foot .addr-link:hover, .site-foot .addr-link:focus-visible { color: var(--cyan); }
.sec-cyan .addr-link:hover span, .sec-cyan .addr-link:focus-visible span { text-decoration-thickness: 2px; }
