/* EU AI Act Monitor — same tokens, header, footer and buttons as the OrbletiQ homepage.
   Text colours chosen for WCAG AA (≥4.5:1) on white and on --bg-alt. */
:root {
  --navy: #0B1930; --brand-accent: #0E95FF; --highlight: #22D3EE; --surface: #E5E7EB; --bg-alt: #F8FAFC;
  --accent: #0477D4; --accent-hover: #0366B8; --accent-soft: #E6F5FF;
  --link: #0359A8;          /* 6.9:1 on white */
  --text: #111827;          /* 17:1 */
  --graphite: #1f2937;      /* 14:1 */
  --muted: #4b5563;         /* 7.5:1 */
  --line: #d9dee6; --bg: #ffffff; --radius: 10px; --max: 1160px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c;
  --header-h: 76px; --tabs-h: 52px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 4px; }
[tabindex="-1"]:focus { outline: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--link); margin-bottom: 10px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: clamp(24px, 3.2vw, 32px); margin-bottom: 10px; }
.lead { font-size: 17.5px; color: var(--graphite); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.err { color: var(--bad); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header (identical to homepage) */
header { position: sticky; top: 0; z-index: 50; background: rgba(11,25,48,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.nav ul { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav ul a { color: #e5ebf5; font-size: 14.5px; font-weight: 500; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--highlight); text-decoration: none; }
.nav ul .btn { padding: 10px 18px; color: #fff; font-size: 14px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }

/* Hero (starfield preserved) */
.m-hero { background: var(--navy); color: #d5deec; padding: 64px 0 56px; position: relative; overflow: hidden; }
.m-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 85% 45%, rgba(14,165,255,.16), transparent 70%); pointer-events: none; }
.m-hero .starfield { position: absolute; top: 0; right: 0; width: 55%; height: 100%; pointer-events: none; opacity: .75; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%); mask-image: linear-gradient(to right, transparent 0%, #000 40%); }
.m-hero .container { position: relative; }
.m-hero .eyebrow { color: var(--highlight); }
.m-hero h1 { color: #fff; font-size: clamp(34px, 5.4vw, 52px); margin-bottom: 14px; letter-spacing: -.025em; }
.m-hero h1 span { background: linear-gradient(90deg, var(--brand-accent), var(--highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-hero .lead { color: #d5deec; font-size: 18px; max-width: 700px; }
.m-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.breadcrumb { font-size: 14px; color: #b9c6db; margin-bottom: 16px; }
.breadcrumb a { color: #dfe7f3; }

/* Section tabs — sticky under the header, state follows the URL hash and scroll position */
.section-tabs { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px -14px rgba(11,25,48,.5); }
.section-tabs ul { display: flex; gap: 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.section-tabs ul::-webkit-scrollbar { display: none; }
.section-tabs a { display: block; padding: 14px 16px 12px; font-weight: 600; font-size: 15px; color: var(--graphite); border-bottom: 3px solid transparent; white-space: nowrap; }
.section-tabs a::first-letter { text-transform: uppercase; }
.section-tabs a:hover { color: var(--link); text-decoration: none; }
.section-tabs a[aria-current="location"] { color: var(--link); border-bottom-color: var(--brand-accent); }
section[id], [id$="-h"] { scroll-margin-top: calc(var(--header-h) + var(--tabs-h) + 12px); }

/* Overview — compact, cards keep their natural height */
section.block { padding: 48px 0; }
section.block.dash { padding: 28px 0 36px; }
section.alt { background: var(--bg-alt); }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; align-items: start; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.tile > h2 { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.tile .big { font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.tile p { font-size: 15px; color: var(--graphite); }
.tile p + p { margin-top: 4px; }
.tile-link { margin-top: 10px !important; font-weight: 600; font-size: 14.5px !important; }
.latest { list-style: none; display: grid; gap: 12px; }
.latest a { font-weight: 600; font-size: 15px; line-height: 1.4; display: block; }
.li-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.status-line { font-weight: 700; color: var(--navy) !important; font-size: 17px !important; }
.src-list { list-style: none; display: grid; gap: 10px; font-size: 14px; margin-top: 10px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.error { background: var(--bad); } .dot.partial { background: var(--warn); } .dot.unknown { background: #6b7280; }
.counts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.counts b { color: var(--navy); }

/* Expandable details */
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--link); list-style: none; display: block; position: relative; padding: 4px 0 4px 16px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸"; position: absolute; left: 0; top: 4px; transition: transform .15s; display: inline-block; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > summary:focus-visible { outline: 3px solid var(--brand-accent); }
blockquote { border-left: 3px solid var(--brand-accent); background: var(--bg-alt); padding: 10px 14px; margin: 6px 0 12px; font-size: 14.5px; color: var(--graphite); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; }

/* Timeline — connected vertical line, text + colour status */
.tl { list-style: none; margin-top: 26px; position: relative; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-left: 38px; margin-bottom: 14px; }
.tl-marker { position: absolute; left: 2px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #9ca3af; }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.tl-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-date { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.tl-status { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.tl-obl { font-size: 16.5px; font-weight: 650; color: var(--graphite); margin: 4px 0 2px; }
.tl-aff { font-size: 14.5px; color: var(--graphite); }
.is-applies .tl-marker { background: #9ca3af; border-color: #9ca3af; }
.is-applies .tl-status { background: #eef0f3; color: #374151; }
.is-applies .tl-card { background: #fbfcfd; }
.is-next .tl-marker { background: var(--highlight); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(34,211,238,.22); }
.is-next .tl-card { border-color: var(--brand-accent); box-shadow: 0 10px 26px -18px rgba(4,119,212,.6); }
.is-next .tl-status { background: var(--accent); color: #fff; }
.is-upcoming .tl-marker { border-color: var(--accent); }
.is-upcoming .tl-status { background: var(--accent-soft); color: #064f8f; }
.is-review .tl-marker { border-color: var(--warn); background: #fff7ed; }
.is-review .tl-status { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.notice { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 8px; padding: 12px 14px; margin-top: 18px; }

/* Filters */
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 12px; margin: 22px 0 12px; }
.filters-wrap label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.filters-wrap input, .filters-wrap select { width: 100%; padding: 10px 12px; border: 1px solid #9aa4b2; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; color: var(--text); }
.filters-wrap input:focus, .filters-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filter-row2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.filters-wrap > div > div { min-width: 0; }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 16px; font-size: 15px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Feed cards */
.feed { display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.card[hidden] { display: none; }
.card-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #eef0f3; color: #1f2937; }
.badge.binding_legislation { background: #dcfce7; color: #14532d; }
.badge.legislative_process { background: #ffedd5; color: #7c2d12; }
.badge.guidance { background: #dbeafe; color: #1e3a8a; }
.badge.consultation { background: #f3e8ff; color: #581c87; }
.badge.other_development { background: #eef0f3; color: #1f2937; }
.badge.verified { background: #dcfce7; color: #14532d; font-size: 12px; padding: 1px 8px; white-space: nowrap; }
.badge.impact-high { background: #fee2e2; color: #7f1d1d; }
.badge.impact-medium { background: #fef3c7; color: #78350f; }
.badge.impact-low { background: #f1f5f9; color: #334155; }
.card h3 { font-size: 17.5px; line-height: 1.35; margin-bottom: 6px; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--link); }
.meta { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.card p.sum { font-size: 15.5px; color: var(--graphite); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; font-size: 15px; margin-top: 10px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--graphite); min-width: 0; overflow-wrap: anywhere; }
.ai-box { margin-top: 12px; padding: 14px 16px; border-radius: 8px; background: #f0f7ff; border: 1px solid #bfdbfe; font-size: 15px; color: var(--graphite); }
.ai-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1e3a8a; margin-bottom: 6px; }
.ai-box ul { margin: 6px 0 0 18px; }
.pending { font-size: 14.5px; color: var(--muted); font-style: italic; margin-top: 8px; }
.card-actions { margin-top: 12px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Detail page */
.detail { max-width: 860px; }
.detail section { margin: 28px 0; }
.detail h2 { font-size: 20px; margin-bottom: 8px; }
.detail ol, .detail ul { margin-left: 20px; }
.detail p, .detail li { color: var(--graphite); }
.note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.disclaimer { font-size: 14px; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-top: 22px; }

/* Footer (identical to homepage) */
footer { background: var(--navy); color: #b9c6db; padding: 56px 0 40px; font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer a { color: #dfe7f3; }
footer ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; }
.legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-row2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav ul { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); padding: 8px 24px 20px; }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 12px 0; }
  .nav ul .btn { text-align: center; margin-top: 8px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { font-size: 16px; }
  .m-hero { padding: 44px 0 40px; }
  .m-hero .starfield { width: 100%; opacity: .4; -webkit-mask-image: none; mask-image: none; }
  .dash-grid, .filters, .filter-row2 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .card { padding: 16px; }
  .section-tabs a { padding: 12px 12px 10px; font-size: 15px; }
  .section-tabs .t-long { display: none; }
  section.block { padding: 36px 0; }
  .tl-item { padding-left: 30px; }
  .tl-date { font-size: 17.5px; }
}

/* ===== Overview layout: freshness + sources stacked on the left ===== */
.dash-grid { grid-template-columns: 1.7fr 1fr 1fr; grid-template-areas: "latest next stack"; }
.dash-stack { grid-area: stack; display: grid; gap: 16px; align-content: start; min-width: 0; }
.dash-grid > .tile-wide { grid-area: latest; }
.dash-grid > .tile-next { grid-area: next; }
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "latest latest" "next stack"; }
}
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; grid-template-areas: "latest" "next" "stack"; }
}

/* ===== What's next (navy + teal, generated from verified timeline data) ===== */
.tl-heading { font-size: 18px; margin: 34px 0 0; color: var(--navy); }
.tl-kind { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #075985; background: #e0f7fb; border-radius: 99px; padding: 2px 8px; vertical-align: 2px; }
.wn { margin-top: 24px; background: var(--navy); border-radius: 14px; padding: 22px 24px 18px; color: #d5deec; }
.wn-title { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.wn-axis { position: relative; height: 66px; margin-top: 22px; }
.wn-line { position: absolute; left: 4%; right: 4%; top: 22px; border-top: 2px dashed rgba(213,222,236,.45); }
.wn-today { position: absolute; top: 8px; width: 0; height: 30px; border-left: 2px solid var(--highlight); }
.wn-today span { position: absolute; top: -16px; left: -2px; font-size: 11.5px; font-weight: 700; color: var(--highlight); letter-spacing: .08em; text-transform: uppercase; }
.wn-stop { position: absolute; top: 10px; transform: translateX(-12px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wn-stop.end { transform: translateX(calc(-100% + 12px)); align-items: flex-end; }
.wn-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--highlight); color: var(--navy); font-weight: 800; font-size: 13px; flex-shrink: 0; }
.wn-stop-date { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.wn-today ~ .wn-stop:first-of-type .wn-stop-date { margin-left: 0; }
.wn-bands { position: relative; margin: 6px 0 10px; }
.wn-band { position: absolute; height: 24px; border-radius: 5px; border: 1px solid rgba(34,211,238,.6);
  background: repeating-linear-gradient(135deg, rgba(34,211,238,.30) 0 6px, rgba(34,211,238,.14) 6px 12px); }
.wn-band span { position: absolute; left: 8px; top: 3px; font-size: 12.5px; font-weight: 600; color: #e6fbff; white-space: nowrap; }
.wn-band.narrow span { left: calc(100% + 8px); }
.wn-band.narrow-left span { left: auto; right: calc(100% + 8px); }
.wn-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }
.wn-card { background: #fff; color: var(--graphite); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.wn-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wn-card-head time { font-weight: 800; color: var(--navy); font-size: 16px; }
.wn-card h3 { font-size: 15.5px; margin: 6px 0 4px; color: var(--navy); }
.wn-card p { font-size: 14.5px; }
.wn-badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.wn-badge.bind { background: #dcfce7; color: #14532d; }
.wn-badge.prop { background: #ffedd5; color: #7c2d12; }
.wn-legend { margin-top: 12px; color: #d5deec; }
.wn-legend .small { font-size: 13.5px; }
.wn-legend details.more > summary { color: var(--highlight); }
.wn-key-band, .wn-band-swatch { display: inline-block; width: 22px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; border: 1px solid rgba(34,211,238,.7);
  background: repeating-linear-gradient(135deg, rgba(34,211,238,.45) 0 4px, rgba(34,211,238,.2) 4px 8px); flex-shrink: 0; }
.wn-key-line { display: inline-block; width: 22px; border-top: 2px dashed rgba(213,222,236,.7); vertical-align: 3px; margin: 0 6px 0 14px; }
.wn-band-list, .wn-bands-m { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.wn-band-item, .wn-bands-m li { display: flex; gap: 8px; align-items: flex-start; }
.wn-band-list .muted { color: #b9c6db; }
.wn-today-m, .wn-bands-m { display: none; }
@media (max-width: 760px) {
  .wn { padding: 18px 16px 14px; }
  .wn-axis, .wn-bands { display: none !important; }
  .wn-today-m { display: block; color: var(--highlight); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-top: 10px; }
  .wn-bands-m { display: grid; color: #e6fbff; font-size: 14px; padding-left: 4px; }
  .wn-cards { grid-template-columns: 1fr; border-left: 2px dashed rgba(213,222,236,.45); padding-left: 14px; margin-left: 6px; }
  .wn-key-line { margin-left: 0; }
}

/* Details inside narrow cards: stack label above value (no fixed label column) */
.wn-card .kv, .tile .kv { grid-template-columns: 1fr; gap: 0; font-size: 14px; }
.wn-card .kv dt, .tile .kv dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.wn-card .kv dt:first-child { margin-top: 4px; }
.wn-card .kv dd { margin: 2px 0 0; }


/* About menu (disclosure button) */
.nav .has-sub { position: relative; }
.nav .sub-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 14.5px; font-weight: 500; color: #dfe6f3; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav .sub-toggle::after { content: ""; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-top: 4px; transition: transform .15s; }
.nav .has-sub.open .sub-toggle::after { transform: rotate(180deg); margin-top: -4px; }
.nav .sub-toggle:hover, .nav .has-sub.open .sub-toggle { color: var(--highlight); }
.nav ul.submenu { display: none; position: absolute; top: calc(100% + 16px); left: -14px; min-width: 230px; flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--navy); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); z-index: 60; }
.nav ul.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav .has-sub.open ul.submenu { display: flex; }
@media (hover: hover) and (min-width: 1021px) { .nav .has-sub:hover ul.submenu { display: flex; } }
.nav ul.submenu li { width: 100%; }
.nav ul.submenu a { display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.nav ul.submenu a:hover, .nav ul.submenu a:focus-visible, .nav ul.submenu a[aria-current="page"] { background: rgba(255,255,255,.07); color: var(--highlight); text-decoration: none; }
@media (max-width: 1020px) {
  .nav .sub-toggle { width: 100%; justify-content: space-between; padding: 12px 0; font-size: 15px; }
  .nav ul.submenu { position: static; display: none; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid rgba(255,255,255,.15); border-radius: 0; padding: 0 0 6px 14px; margin-left: 2px; background: transparent; }
  .nav ul.submenu::before { display: none; }
  .nav ul.submenu a { padding: 10px 0; }
}

@media (max-width: 1100px) { .nav ul { gap: 18px; } }

/* note shown on translated pages only */
.lang-note{margin:14px 0 0;max-width:760px;font-size:13.5px;color:#C9D6EA;border-left:3px solid #22D3EE;padding:6px 0 6px 12px}

/* long translated menu labels */
@media (min-width: 1021px) { .nav ul a, .nav .sub-toggle { white-space: nowrap; } }
@media (min-width: 1021px) and (max-width: 1100px) { .nav ul { gap: 14px; } .nav ul a, .nav .sub-toggle { font-size: 13.5px; } .nav ul .btn { padding: 9px 14px; } }

/* Language dropdown (flag + code; list reuses the About-menu disclosure) */
.lang-cur { display: none; align-items: center; gap: 8px; }
html[lang^="en"] .lang-cur[data-l="en"], html[lang="pl"] .lang-cur[data-l="pl"], html[lang="de"] .lang-cur[data-l="de"], html[lang="es"] .lang-cur[data-l="es"] { display: inline-flex; }
.flag { display: block; flex: none; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.nav .lang-toggle { gap: 8px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.nav .lang-toggle:hover, .nav .lang-dd.open .lang-toggle { border-color: rgba(255,255,255,.45); }
.nav ul.lang-menu { left: auto; right: 0; min-width: 190px; }
.nav ul.lang-menu a { display: flex; align-items: center; gap: 10px; }
.nav ul.lang-menu a[aria-current="true"] { color: #fff; font-weight: 600; }
.nav ul.lang-menu a[aria-current="true"]::after { content: "\2713"; margin-left: auto; padding-left: 12px; color: var(--highlight); }
@media (max-width: 1020px) {
  .nav .lang-toggle { width: 100%; border: 0; border-radius: 0; padding: 12px 0; font-size: 15px; }
}
