/* ==========================================================================
   SPOLEČNĚ Jemnice — volební web 2026
   Design brief (Level 2)
   ---------------------------------------------------------------------------
   Reference: logomanuál ODS 2026 (v.24.4.25) + brodvkondici.cz principy struktury.
   Typografie: Oswald 200/400/700 — Bold pro nadpisy a claimy, Regular pro text,
   ExtraLight jen pro krátké velké perexy.
   Barvy: přesně 4 značkové role (tmavá modrá #153D8A, světlá modrá #009FE3,
   bílá, černá) + jedna velmi světlá neutrální plocha pro střídání sekcí.
   Kontrast: bílá jen na tmavé modré; černá na bílé i na světlé modré;
   světlá modrá NIKDY jako plocha pod bílým textem — jen dekorace/linka/plocha
   s černým textem.
   Motion: krátké, jemné — fade-in hero při načtení (čistý CSS, ne
   IntersectionObserver, aby obsah nikdy nezůstal skrytý), plynulé rozbalení
   akordeonů přes grid-template-rows, respekt prefers-reduced-motion.
   UX laws: Jakobovo pravidlo (ověřená struktura kotva-nav → hero → tým →
   kandidáti → program → medailonky → setkání → jak volit, jak ji znají
   voliči z jiných kampaní) · Fittsovo pravidlo (min. 44×44px dotykové plochy
   u CTA a akordeonových tlačítek) · Millerovo pravidlo (21 kandidátů a
   6 programových témat rozděleno do karet po menších skupinách, ne jeden
   dlouhý seznam).
   Business pattern: value-first — návštěvník okamžitě pozná tým i program
   (voličova potřeba) a kampaň okamžitě dostává čitelnou podporu při volbách
   (byznys potřeba), obě naplněné na první obrazovce.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tokens ---------- */
:root {
  --blue-dark: #153d8a;
  --blue-dark-deep: #0f2c66;
  --blue-light: #009fe3;
  --white: #ffffff;
  --black: #000000;
  --bg-soft: #f2f5fa;
  --border-soft: #d9e0ec;
  --header-h: 148px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow-card: 0 1px 2px rgba(15, 44, 102, 0.06), 0 8px 24px rgba(15, 44, 102, 0.08);
  --content-max: 1220px;
}
@media (max-width: 640px) { :root { --header-h: 110px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Layout helpers ---------- */
.container { max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.25rem); }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--blue-dark); padding: 0.85rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }
section { scroll-margin-top: var(--header-h); }
.medailonek, .setkani-item { scroll-margin-top: calc(var(--header-h) + 14px); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-dark);
}
.eyebrow.on-dark { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section-head .eyebrow { margin-bottom: 0.6rem; }
.h-section {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw + 1rem, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.lede { margin-top: 0.9rem; font-size: 1.15rem; line-height: 1.6; max-width: 62ch; }

.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--blue-dark); color: var(--white); }
.bg-dark .h-section, .bg-dark .eyebrow { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.7rem 1.5rem;
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em;
  border-radius: var(--radius-s);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark-deep); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-outline.on-light { color: var(--blue-dark); border-color: var(--blue-dark); }
.btn-outline.on-light:hover { background: var(--blue-dark); color: var(--white); }
.btn-small { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.92rem; }

/* ---------- Topbar + Nav ---------- */
/* The whole <header> (topbar + nav) is the sticky unit: if only .nav were
   sticky, its parent <header> would shrink-wrap to exactly .nav's own
   height, leaving no room for the sticky constraint to ever engage — the
   header would just scroll away with the page. Sticking the header keeps
   the election date and the anchor strip visible at all times. */
header {
  position: sticky; top: 0; z-index: 50;
  transition: box-shadow 0.2s ease;
}
header.is-scrolled { box-shadow: 0 4px 16px rgba(9,20,48,0.28); }

.topbar {
  background: var(--blue-dark-deep); color: var(--white);
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.02em;
  text-align: center; padding: 0.4rem 0.75rem;
}
.topbar strong { color: var(--white); }
@media (max-width: 640px) {
  .topbar { font-size: 0.7rem; padding: 0.28rem 0.5rem; }
}

.nav {
  background: var(--blue-dark);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.nav .container {
  display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.5rem);
  padding-block: 0.6rem;
  min-height: 60px;
}
@media (max-width: 640px) {
  .nav .container { padding-block: 0.4rem; min-height: 52px; }
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo {
  display: flex; align-items: center; border-radius: var(--radius-s);
  padding: 4px 8px;
}
.nav-logo img { width: 84px; height: auto; }
@media (min-width: 860px) {
  .nav-logo img { width: 124px; }
}
.nav-links-wrap { position: relative; flex: 1; min-width: 0; }
.nav-links {
  display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  white-space: nowrap; color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 0.98rem; padding: 0.65rem 0.75rem;
  border-radius: var(--radius-s);
}
.nav-links a:hover, .nav-links a:focus-visible { background: rgba(255,255,255,0.12); }
/* Mobile-only fade hint that the anchor strip scrolls further right. */
.nav-links-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  background: linear-gradient(90deg, transparent, var(--blue-dark));
  pointer-events: none;
}
.nav-link-mobile-cta { display: none; }
@media (max-width: 859px) {
  .nav-link-mobile-cta { display: inline-block; }
  .nav-cta { display: none; }
}
@media (min-width: 860px) {
  .nav-links-wrap::after { display: none; }
}
.nav-cta { flex-shrink: 0; margin-left: auto; }
.nav-cta.btn-primary { background: var(--white); color: var(--blue-dark) !important; }
.nav-cta.btn-primary:hover { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
/* object-position: 50% 50% (ne "50% 0%" jako dřív) — zadavatel: "ta fotka
   kostela je úplně mimo, jde to lépe, třeba víc z dálky?". Nový výřez
   (viz tools/normalize-portraits.py HERO_BOX) má poměr 1,86, schválně
   stejný jako .hero-inner rám na desktopu, takže mezi 390-1440px se
   vertikálně neořezává prakticky nic (změřeno Playwrightem: rendered
   box height == container height ve všech třech). Střed místo horního
   okraje je proto bezpečnější volba pro extrémně široké monitory (>1440px
   šířky), kde `cover` začne ořezávat výšku — "50% 0%" by tam znovu
   uřízlo spodek města, přesně vadu, kterou tahle změna opravuje. */
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(15,29,63,0.72) 0%, rgba(15,29,63,0.55) 42%, rgba(9,20,48,0.88) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  min-height: min(86vh, 780px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(2.5rem, 10vw, 5rem) clamp(2.5rem, 8vw, 4rem);
  gap: 1.1rem;
}
.hero-inner .eyebrow { animation: heroRise 0.7s ease both; }
.hero h1 {
  font-weight: 700; font-size: clamp(2.35rem, 5.4vw + 1rem, 4.3rem);
  line-height: 1.08; max-width: 16ch;
  animation: heroRise 0.7s ease 0.08s both;
}
.hero-lead {
  font-size: clamp(1.08rem, 1.6vw + 0.7rem, 1.3rem);
  font-weight: 200; line-height: 1.55; max-width: 46ch;
  animation: heroRise 0.7s ease 0.16s both;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.4rem; animation: heroRise 0.7s ease 0.24s both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero-inner .eyebrow, .hero h1, .hero-lead, .hero-ctas { animation: none; }
}

/* ---------- Společně / pilíře ---------- */
.spolecne { padding-block: clamp(3rem, 8vw, 5.5rem); }
.spolecne-intro { font-size: 1.2rem; line-height: 1.65; max-width: 74ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.spolecne-media {
  border-radius: var(--radius-l); overflow: hidden; margin-bottom: clamp(2rem, 5vw, 3rem);
  box-shadow: var(--shadow-card);
}
.spolecne-media img { width: 100%; }

.pilire-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.pilir-card {
  position: relative;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-m); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.pilir-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  border-radius: var(--radius-m) var(--radius-m) 0 0;
  background: var(--blue-light);
}
.pilir-card h3 { font-weight: 700; font-size: 1.18rem; line-height: 1.28; margin-bottom: 0.65rem; }
.pilir-card p { font-size: 1rem; line-height: 1.6; }

/* ---------- Kandidáti ---------- */
.kandidati { padding-block: clamp(3rem, 8vw, 5.5rem); }
.kandidati-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem;
}
@media (min-width: 560px) { .kandidati-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .kandidati-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
@media (min-width: 1120px) { .kandidati-grid { grid-template-columns: repeat(5, 1fr); } }

.kandid-card {
  display: block; text-decoration: none; color: var(--black);
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column; height: 100%;
}
.kandid-card:hover, .kandid-card:focus-visible { transform: translateY(-3px); box-shadow: 0 4px 8px rgba(15,44,102,0.1), 0 16px 32px rgba(15,44,102,0.14); }
.kandid-photo { position: relative; aspect-ratio: 570 / 725; background: var(--bg-soft); }
.kandid-photo img { width: 100%; height: 100%; object-fit: cover; }
.kandid-num {
  position: absolute; top: 8px; left: 8px;
  min-width: 30px; height: 30px; padding-inline: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); color: var(--black);
  font-weight: 700; font-size: 0.95rem; border-radius: 999px;
}
.kandid-mayor {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: var(--blue-dark); color: var(--white);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em;
  text-align: center; padding: 0.32rem 0.4rem;
}
.kandid-body { padding: 0.7rem 0.75rem 0.9rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }
.kandid-party {
  align-self: flex-start;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--blue-dark); background: var(--bg-soft); border: 1px solid var(--border-soft);
  padding: 0.15rem 0.45rem; border-radius: 999px;
}
.kandid-name { font-weight: 700; font-size: 0.98rem; line-height: 1.24; }
.kandid-occ { font-size: 0.85rem; line-height: 1.35; color: #2c2c2c; }

/* ---------- Program (krátký) ---------- */
.program { padding-block: clamp(3rem, 8vw, 5.5rem); }
.program-intro { font-size: 1.15rem; line-height: 1.65; max-width: 72ch; }
.program-intro p + p { margin-top: 0.85rem; }
.program-statement { font-weight: 700; font-size: 1.05rem; margin-top: 0.9rem; }

.program-grid {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
@media (min-width: 760px) { .program-grid { grid-template-columns: repeat(2, 1fr); } }

.program-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-m);
  padding: 1.5rem 1.5rem 1.35rem; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.program-card h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.85rem; }
.program-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.1rem; }
.program-list li {
  position: relative; padding-left: 1.35rem; font-size: 1rem; line-height: 1.55;
}
.program-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 999px; background: var(--blue-light);
}

/* ---------- Accordion (generic) ---------- */
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left; padding: 0.85rem 1rem; min-height: 48px;
  border: 1px solid var(--border-soft); border-radius: var(--radius-s);
  background: var(--bg-soft); font-weight: 700; font-size: 0.98rem;
}
.acc-trigger:hover { background: #e7ecf6; }
.acc-chevron { flex-shrink: 0; transition: transform 0.2s ease; }
.acc-trigger[aria-expanded="true"] .acc-chevron { transform: rotate(180deg); }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
/* Otevřený stav řídí JS třídou .is-open na panelu (viz page.js), ne jen
   aria-expanded na tlačítku — tlačítko medailonku je kvůli sémantice
   zabalené v <h3>, takže by sourozenecký (+) selektor na aria-expanded
   nikdy nenašel svůj panel. */
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel-inner > .acc-pad { padding-block: 1.1rem 0.3rem; }
/* Fallback bez JS: viz <noscript><style> v <head> index.html — nutí .acc-panel
   trvale otevřený, aby obsah medailonků a dlouhého programu nikdy nezůstal
   nedostupný, když se skript nenačte. */

.program-card .acc-trigger { margin-top: auto; }

.long-program h4 { font-weight: 700; font-size: 1.08rem; margin-top: 1.1rem; }
.long-program h4:first-child { margin-top: 0; }
.long-program p { font-size: 1rem; line-height: 1.62; margin-top: 0.6rem; }
.long-program p:first-of-type { margin-top: 0.5rem; }
.long-program ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.long-program ul li { position: relative; padding-left: 1.2rem; font-size: 1rem; line-height: 1.55; }
.long-program ul li::before { content: "—"; position: absolute; left: 0; color: var(--blue-dark); }

/* ---------- Medailonky ---------- */
.medailonky { padding-block: clamp(3rem, 8vw, 5.5rem); }
.medailonky-list { display: flex; flex-direction: column; gap: 0.65rem; margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.medailonek { border: 1px solid var(--border-soft); border-radius: var(--radius-m); overflow: hidden; background: var(--white); }
.medailonek .acc-trigger {
  border: 0; border-radius: 0; background: var(--white); padding: 0.95rem 1.1rem;
  gap: 0.9rem;
}
.medailonek .acc-trigger:hover { background: var(--bg-soft); }
.medailonek-head { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.medailonek-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 999px;
  background: var(--blue-light); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.medailonek-titles { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.medailonek-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.medailonek-claim {
  font-size: 0.82rem; font-weight: 700; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.3;
}
/* Malý portrét v hlavičce akordeonu — vidět i ve sbaleném stavu, aby šel
   seznam 21 kandidátů projít očima. Kruh + object-fit: cover; portréty
   jsou zarovnané na oči (viz tools/normalize-portraits.py), takže
   object-position drží nahoře (50% 0%), ať náhled nesedí na bradě. */
.medailonek-photo {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 999px;
  overflow: hidden; background: var(--bg-soft);
}
.medailonek-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.medailonek .acc-panel-inner .acc-pad { padding: 0 1.1rem 1.25rem 1.1rem; }
.medailonek-short { font-size: 1.05rem; line-height: 1.6; font-weight: 400; }
.medailonek-long { font-size: 1rem; line-height: 1.62; }
.medailonek-long p + p { margin-top: 0.75rem; }
/* Větší portrét v rozbaleném panelu vedle textu — hlavičkový náhled zmizí
   ze zorného pole hned, jak čtenář odscrolluje k delšímu textu (viz
   hlavičky Nevrkla/Feldbabel s 3 odstavci), takže bez něj čtenář za chvíli
   neví, čí medailonek čte. Na šířku od 560px stojí vedle textu, pod ní se
   sesune nad text (řazení `order` v HTML by komplikovalo DOM zbytečně —
   sloupcový flex prostě zalomí čtenáři nad odstavce, což je pro krátký
   i dlouhý medailonek stejně čitelné). */
.medailonek-panel-body { display: flex; flex-direction: column; gap: 1rem; }
.medailonek-portrait-lg {
  flex-shrink: 0; width: 128px; aspect-ratio: 570 / 725;
  border-radius: var(--radius-m); overflow: hidden; background: var(--bg-soft);
}
.medailonek-portrait-lg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
@media (min-width: 560px) {
  .medailonek-panel-body { flex-direction: row; gap: 1.25rem; align-items: flex-start; }
}

/* ---------- Setkání ---------- */
.setkani { padding-block: clamp(3rem, 8vw, 5.5rem); }
.setkani-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; margin-top: clamp(1.5rem, 4vw, 2.25rem); }
.setkani-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem;
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-m);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-card);
}
.setkani-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--blue-dark); color: var(--white); border-radius: var(--radius-s);
  padding: 0.6rem 0.8rem; min-width: 76px; text-align: center;
}
.setkani-date .num { font-weight: 700; font-size: 1.3rem; line-height: 1; }
.setkani-date .mo { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.2rem; }
.setkani-date .yr { font-size: 0.65rem; letter-spacing: 0.03em; margin-top: 0.15rem; opacity: 0.8; }
.setkani-area { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }
.setkani-stops { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.setkani-stops li { font-size: 0.98rem; line-height: 1.5; }
.setkani-note { margin-top: 1.25rem; font-size: 0.95rem; color: #2c2c2c; max-width: 62ch; }
.setkani-note a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 0.15em; }
.setkani-note a:hover, .setkani-note a:focus-visible { color: var(--blue-dark-deep); }

/* ---------- Jak volit ---------- */
.jak-volit { padding-block: clamp(3rem, 8vw, 5.5rem); }
.jak-volit-panel {
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-l);
  padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1.5rem;
}
.jak-volit-panel p { font-size: 1.12rem; line-height: 1.65; max-width: 68ch; }
.jak-volit-tag {
  display: inline-block; background: var(--blue-light); color: var(--black);
  font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 4px;
}
.jak-volit-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark-deep); color: var(--white); padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.75rem; }
.footer-top { display: grid; gap: 1.75rem; grid-template-columns: 1fr; margin-bottom: 1.75rem; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.1fr 1fr 1fr; } }
.footer-brand-name { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.6rem; }
.footer p { font-size: 0.98rem; line-height: 1.6; color: rgba(255,255,255,0.88); max-width: 42ch; }
.footer-heading { font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 0.98rem; }
.footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.16); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.85rem; color: rgba(255,255,255,0.72);
}
.footer-privacy { max-width: 62ch; }
