feat: portal IA per spec (home entry point, /news, /proposals+redirect, /support), live search + suggestions, article TOC, mobile disclosure menu, CMS preview styles, modernization pass 1

This commit is contained in:
ctao
2026-07-24 23:00:07 +02:00
parent 11e7eb484f
commit cf35739a64
17 changed files with 627 additions and 231 deletions
+188 -21
View File
@@ -25,10 +25,21 @@
--radius: 16px;
--radius-pill: 999px;
--maxw: 1120px;
/* Spacing scale (4px base) — use these instead of ad-hoc paddings */
--space-s: 12px;
--space-m: 20px;
--space-l: 32px;
--space-xl: 56px;
}
/* Screen-reader-only utility (visually hidden, still announced) */
.sr-only {
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; /* sticky header + anchor jumps */ }
body {
margin: 0;
font-family: var(--font-body);
@@ -42,6 +53,8 @@ h1, h2 { font-family: var(--font-display); letter-spacing: -0.01em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--indigo); }
/* Placeholder links (<a> without href) don't pretend to be clickable */
a:not([href]) { text-decoration: none; cursor: default; }
img { max-width: 100%; height: auto; display: block; }
/* Visible keyboard focus everywhere (WCAG 2.4.7) */
@@ -68,8 +81,39 @@ img { max-width: 100%; height: auto; display: block; }
}
/* Header — Galaxy Blue band, reverse (white) logo per BRAND B.1.2 */
.site-header { background: var(--galaxy); }
.site-header { background: var(--galaxy); position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; gap: 4px; min-height: 64px; flex-wrap: wrap; }
.nav > nav { display: flex; align-items: center; gap: 4px; }
/* Mobile: disclosure menu (native <details>/<summary> — CSS-only, keyboard accessible) */
.menu { display: none; }
@media (max-width: 720px) {
.nav { flex-wrap: nowrap; }
.nav > nav, .nav > a.navlink { display: none; }
.menu { display: block; }
.menu summary {
display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
padding: 0 10px; margin-left: 6px; color: #fff; font-weight: 500;
cursor: pointer; list-style: none; white-space: nowrap;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-icon::before { content: "☰"; }
.menu[open] .menu-icon::before { content: "✕"; }
.menu nav {
position: absolute; left: 0; right: 0; top: 100%;
display: flex; flex-direction: column; padding: 6px 20px 14px;
background: var(--galaxy); border-top: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 20px 32px rgba(0, 0, 74, 0.35);
}
.menu nav a {
display: flex; align-items: center; min-height: 44px;
color: #fff; font-weight: 500; text-decoration: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.menu nav a:last-child { border-bottom: 0; }
.menu nav a[aria-current="page"] { color: var(--cherenkov); }
}
/* Very narrow screens: drop the decorative sub-brand so logo/Sign in/Menu always fit */
@media (max-width: 460px) { .brand .brand-sub { display: none; } }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 10px; }
.brand img { height: 26px; width: auto; }
.brand .brand-sub {
@@ -88,10 +132,16 @@ img { max-width: 100%; height: auto; display: block; }
padding: 7px 16px; margin-left: 6px;
}
.nav a.navlink--edit:hover { border-color: var(--cherenkov); color: var(--cherenkov); }
/* AAI login placeholder — visibly disabled (mock) */
/* AAI sign-in entry — leads to the /login mock page */
.nav .login-mock {
color: var(--galaxy); background: var(--cherenkov); font: inherit; font-weight: 600;
border: 0; border-radius: var(--radius-pill); padding: 8px 18px; margin-left: 6px; cursor: not-allowed;
border: 0; border-radius: var(--radius-pill); padding: 8px 18px; margin-left: 6px;
text-decoration: none; white-space: nowrap;
}
.nav .login-mock:hover { filter: brightness(0.92); color: var(--galaxy); }
/* Tap targets ≥44px (WCAG 2.5.5); inline-flex keeps the active bottom border */
.nav a.navlink, .nav .login-mock, .nav a.navlink--edit {
display: inline-flex; align-items: center; min-height: 44px;
}
.external::after { content: " ↗"; font-size: 0.85em; }
@@ -101,7 +151,7 @@ img { max-width: 100%; height: auto; display: block; }
radial-gradient(700px 340px at 85% 115%, rgba(0,228,216,0.28), transparent 65%),
radial-gradient(500px 260px at -5% -40%, rgba(0,0,156,0.55), transparent 60%),
var(--galaxy);
color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden;
color: #fff; padding: var(--space-xl) 0; position: relative; overflow: hidden;
}
.hero-band .flash { position: absolute; right: 8%; top: 22%; width: 22px; height: 22px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin: 0 0 10px; line-height: 1.12; font-weight: 700; }
@@ -111,11 +161,44 @@ img { max-width: 100%; height: auto; display: block; }
letter-spacing: 0.14em; font-size: 0.72rem; margin-bottom: 8px;
}
/* Section headings on light background */
.section-title { color: var(--galaxy); font-size: 1.4rem; margin: 36px 0 4px; }
/* Hero search — real GET form to /search (works without JS) */
.hero-search, .search-form { display: flex; gap: 8px; max-width: 560px; }
.hero-search { margin-top: var(--space-m); }
.hero-search input, .search-form input {
flex: 1; min-width: 0; font: inherit; color: var(--text);
background: #fff; border: 1px solid var(--border);
border-radius: var(--radius-pill); padding: 11px 18px;
}
.hero-search input:focus, .search-form input:focus { border-color: var(--azure); }
/* Live suggestions under the hero search — plain links, Tab-accessible */
.hero-search { position: relative; }
.suggest {
position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5;
list-style: none; margin: 0; padding: 6px; text-align: left;
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
box-shadow: 0 16px 40px rgba(0, 0, 74, 0.25);
}
.suggest:empty { display: none; }
.suggest li { display: flex; align-items: center; gap: var(--space-s); padding: 0 12px; border-radius: calc(var(--radius) - 8px); }
.suggest li:hover { background: var(--moon); }
.suggest a {
flex: 1; display: flex; align-items: center; min-height: 44px;
color: var(--text); font-weight: 500; font-size: 0.94rem; text-decoration: none;
}
.suggest small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
/* News grid */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 28px 0 64px; }
/* Section header row (h2 + optional "All news →" link) */
.section-head {
display: flex; align-items: baseline; justify-content: space-between;
gap: var(--space-s); margin: var(--space-l) 0 var(--space-m);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; color: var(--galaxy); font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
/* Responsive 1/2/3-column grid (news cards + service tiles) */
.grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@@ -125,11 +208,18 @@ img { max-width: 100%; height: auto; display: block; }
position: relative; background: #fff; border: 1px solid var(--border);
border-radius: var(--radius); overflow: hidden;
display: flex; flex-direction: column;
transition: border-color 0.15s ease;
transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.card:hover, .card:focus-within {
border-color: var(--azure);
box-shadow: 0 2px 6px rgba(0, 0, 74, 0.06), 0 12px 28px rgba(0, 0, 74, 0.10);
}
/* Visible focus ring for the whole-card stretched link (WCAG 2.4.7) */
.card:focus-within {
box-shadow: 0 0 0 2px var(--azure), 0 2px 6px rgba(0, 0, 74, 0.06), 0 12px 28px rgba(0, 0, 74, 0.10);
}
.card:hover, .card:focus-within { border-color: var(--azure); }
.card .cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .body { padding: var(--space-m); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .cat {
align-self: flex-start; font-size: 0.72rem; text-transform: uppercase;
letter-spacing: 0.08em; font-weight: 600;
@@ -141,8 +231,9 @@ img { max-width: 100%; height: auto; display: block; }
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card h3 a { color: var(--galaxy); text-decoration: none; }
/* Stretched link: the title's tap target covers the whole card (still one tab stop) */
.card h3 a::after { content: ""; position: absolute; inset: 0; }
/* Stretched link: the title's tap target covers the whole card (still one tab stop);
::before keeps ::after free for the external-link arrow */
.card h3 a::before { content: ""; position: absolute; inset: 0; }
.card h3 a:hover { color: var(--link); }
.card .desc {
margin: 0; color: var(--muted); font-size: 0.94rem;
@@ -157,9 +248,20 @@ img { max-width: 100%; height: auto; display: block; }
.card--featured h3 { font-size: 1.6rem; font-family: var(--font-display); -webkit-line-clamp: 3; }
.card--featured .desc { -webkit-line-clamp: 3; }
}
/* Hover lift + smooth anchor scroll — motion only when the user allows it */
@media (prefers-reduced-motion: no-preference) {
html { scroll-behavior: smooth; }
.card { transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { transform: translateY(-2px); }
}
/* Service tiles — card tokens, text-first */
.tile { padding: var(--space-m); gap: 8px; }
.tile h3 { margin: 0; }
.tile .badge-mock, .tile .badge-ext { margin: auto 0 0; align-self: flex-start; }
/* Article */
.article { padding: 40px 0 72px; max-width: 720px; }
.article { padding: 40px 0 72px; max-width: 70ch; }
.article .back { color: var(--muted); font-size: 0.9rem; }
.article h1 {
color: var(--galaxy); font-size: clamp(1.7rem, 4.5vw, 2.4rem);
@@ -167,7 +269,22 @@ img { max-width: 100%; height: auto; display: block; }
}
.article .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.article .cover { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 28px; }
.prose h2 { color: var(--galaxy); margin: 34px 0 10px; font-size: 1.45rem; }
/* Article TOC — boxed "On this page" list (rendered only when ≥3 h2/h3) */
.toc {
background: var(--moon); border: 1px solid var(--border); border-radius: var(--radius);
padding: var(--space-s) var(--space-m); margin-bottom: var(--space-l); font-size: 0.92rem;
}
.toc strong {
display: block; font-size: 0.72rem; text-transform: uppercase;
letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; }
.toc .d3 { padding-left: var(--space-s); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { color: var(--galaxy); margin: 34px 0 10px; font-size: clamp(1.25rem, 2.6vw, 1.45rem); }
.prose h3 { color: var(--galaxy); margin: 26px 0 8px; font-size: 1.15rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
@@ -186,7 +303,8 @@ img { max-width: 100%; height: auto; display: block; }
/* Generic page / mockup */
.page { padding: 40px 0 72px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-m); }
.panel--narrow { max-width: 640px; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 0.88rem; font-weight: 500; }
.form-row input, .form-row select, .form-row textarea {
@@ -202,19 +320,68 @@ img { max-width: 100%; height: auto; display: block; }
.btn:hover { filter: brightness(0.92); }
.notice { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
/* Search results (list built by the inline script on /search) */
.search-results { list-style: none; margin: var(--space-m) 0 0; padding: 0; max-width: 720px; }
.search-results li {
display: flex; justify-content: space-between; align-items: baseline;
gap: var(--space-s); padding: 12px 0; border-bottom: 1px solid var(--border);
}
.search-results a { text-decoration: none; font-weight: 500; }
.search-results a:hover { text-decoration: underline; }
.search-results small { color: var(--muted); white-space: nowrap; }
/* Mock/status badges — every mock must be labelled (REQUIREMENTS.md §5) */
.badge-mock, .badge-ext {
display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.badge-mock { color: #7a3d00; background: #fff3e0; border: 1px solid #f0cf9b; }
.badge-ext { color: var(--galaxy); background: var(--moon); border: 1px solid var(--border); }
.badge-ext { color: var(--galaxy); background: var(--moon); border: 1px solid var(--border); text-transform: none; letter-spacing: 0; }
.placeholder { display: grid; place-items: center; min-height: 32vh; text-align: center; color: var(--muted); }
.placeholder .big { font-size: 3rem; margin-bottom: 8px; }
/* Dashboard mock — aggregation panels with status pills */
.dash-grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; margin-top: var(--space-s); }
@media (min-width: 940px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
.panel-title { color: var(--galaxy); font-size: 1.1rem; margin: 0 0 var(--space-s); font-family: var(--font-body), sans-serif; font-weight: 600; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem;
}
.rows li:last-child { border-bottom: 0; }
.row-id { color: var(--muted); font-size: 0.8rem; min-width: 7.5em; }
.row-main { flex: 1; min-width: 12em; }
.row-date { color: var(--muted); font-size: 0.8rem; }
.pill {
font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border);
}
.pill--ok { color: var(--galaxy); background: var(--tint-cherenkov); }
.pill--review { color: var(--galaxy); background: var(--moon); }
.pill--draft { color: var(--muted); background: #fff; }
/* Auth (login mock) — nebula backdrop + floating card, modern auth pattern */
.auth-band {
min-height: calc(100dvh - 64px);
display: grid; place-items: center; padding: var(--space-xl) 20px;
background:
radial-gradient(900px 500px at 80% 110%, rgba(0,228,216,0.35), transparent 60%),
radial-gradient(700px 420px at 10% -20%, rgba(0,0,156,0.6), transparent 60%),
var(--galaxy);
}
.auth-card {
background: #fff; border-radius: calc(var(--radius) + 8px);
padding: 40px 36px; max-width: 440px; width: 100%;
box-shadow: 0 24px 64px rgba(0, 0, 74, 0.35);
}
.auth-logo { height: 24px; width: auto; margin-bottom: var(--space-m); }
.auth-card h1 { color: var(--galaxy); margin: 6px 0 10px; font-size: 1.8rem; }
.auth-card .muted { color: var(--muted); font-size: 0.95rem; }
.btn-wide { width: 100%; margin-top: var(--space-s); }
/* Footer — bottom menu per SPEC §3.3.1: disclaimers, privacy, contact, settings, search */
.footer { background: var(--galaxy); color: var(--on-galaxy-muted); font-size: 0.85rem; margin-top: 24px; }
.footer .inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: 26px 0; }
.footer .inner { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding: var(--space-l) 0; }
.footer .flash { width: 10px; height: 10px; }
.footer a { color: #fff; }
.footer a:not([href]) { color: var(--on-galaxy-muted); }
.footer .note { width: 100%; margin-top: 6px; color: var(--on-galaxy-muted); }