:root {
  --ps-blue: #283778;
  --ps-blue-2: #326eb4;
  --ps-blue-950: #121844;
  --ps-blue-900: #19204f;
  --ps-yellow: #ffe600;
  --ps-gold: #ffc300;
  --ps-orange: #f59b00;
  --ps-grey: #a5aaaa;
  --white: #ffffff;
  --paper: #f7f8fb;
  --paper-2: #eef2f7;
  --text: #171b2f;
  --muted: #657086;
  --line: rgba(40, 55, 120, 0.16);
  --shadow: 0 22px 70px rgba(18, 24, 68, 0.18);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.section-pad { padding: clamp(72px, 9vw, 126px) 0; }

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ps-blue);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header[data-elevated="true"] { border-bottom-color: var(--line); }
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ps-blue);
  text-decoration: none;
}
.brand img { width: 74px; height: auto; }
.brand strong, .brand small { display: block; }
.brand strong { line-height: 1.1; }
.brand small { color: var(--muted); font-size: 0.82rem; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a, .text-button, .menu-toggle, .chip { min-height: 44px; border: 0; border-radius: 999px; font: inherit; }
.site-nav a {
  padding: 10px 14px;
  color: var(--ps-blue);
  text-decoration: none;
  font-weight: 700;
}
.site-nav a:hover { background: rgba(40, 55, 120, 0.08); }
.menu-toggle { display: none; padding: 10px 16px; background: var(--ps-blue); color: var(--white); font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--ps-blue-950), var(--ps-blue));
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 230, 0, 0.24), transparent 28%),
    linear-gradient(115deg, rgba(50, 110, 180, 0.42), transparent 45%),
    url("../img/jani-wide.webp") right center / cover no-repeat;
  opacity: 0.34;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--ps-yellow), var(--ps-gold), var(--ps-orange));
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--ps-gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .contact-card h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.section-heading h2, .contact-card h2 { color: var(--ps-blue-950); font-size: clamp(2rem, 4vw, 4.1rem); }
.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ps-yellow); color: var(--ps-blue-950); box-shadow: 0 12px 34px rgba(255, 230, 0, 0.24); }
.button.secondary { background: rgba(255,255,255,0.12); color: var(--white); border: 1px solid rgba(255,255,255,0.34); }
.contact-card .button.secondary, .media-item .button.secondary { color: var(--ps-blue); border-color: var(--line); background: var(--white); }
.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}
.fact-strip div {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
}
.fact-strip dt { color: rgba(255,255,255,0.66); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
.fact-strip dd { margin: 4px 0 0; color: var(--white); font-weight: 900; }
.hero-card {
  position: relative;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -22px;
  right: -22px;
  width: 140px;
  aspect-ratio: 1;
  background: var(--ps-yellow);
  border-radius: 999px;
  z-index: -1;
}
.hero-card img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 22px; }
.hero-card figcaption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18,24,68,0.82);
  backdrop-filter: blur(10px);
}
.hero-card figcaption span, .hero-card figcaption strong { display: block; }
.hero-card figcaption span { color: var(--ps-yellow); font-weight: 900; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-card figcaption strong { color: var(--white); }

.status-band { background: var(--ps-yellow); color: var(--ps-blue-950); }
.status-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.status-inner strong { margin-right: 10px; }
.text-button { background: var(--ps-blue); color: var(--white); padding: 10px 16px; font-weight: 900; cursor: pointer; }

.section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.section-heading.left { margin: 0; text-align: left; }
.section-heading p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; }
.inverse h2, .inverse p:not(.eyebrow) { color: var(--white); }
.inverse p:not(.eyebrow) { opacity: 0.82; }
.tools-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  color: var(--text);
  background: var(--white);
  font: inherit;
  box-shadow: 0 12px 34px rgba(18,24,68,0.07);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 15px; color: var(--ps-blue); background: var(--white); font-weight: 900; border: 1px solid var(--line); cursor: pointer; }
.chip.active { background: var(--ps-blue); color: var(--white); }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card, .theme-card, .contact-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(18,24,68,0.08);
}
.news-card { padding: 22px; min-height: 260px; display: flex; flex-direction: column; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.86rem; }
.pill { padding: 4px 9px; border-radius: 999px; background: rgba(255,230,0,0.42); color: var(--ps-blue-950); font-weight: 900; }
.news-card h3 { margin: 16px 0 8px; color: var(--ps-blue-950); font-size: 1.25rem; line-height: 1.2; }
.news-card p { margin: 0 0 18px; color: var(--muted); }
.card-link { margin-top: auto; color: var(--ps-blue); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.empty-state { grid-column: 1 / -1; padding: 24px; color: var(--muted); }

.x-posts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.x-post-card, .x-posts-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(18,24,68,0.08);
}
.x-post-card { display: flex; min-height: 190px; padding: 24px; flex-direction: column; }
.x-post-card > p { margin: 0; color: var(--text); font-size: 1.05rem; }
.x-post-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.x-post-meta time { color: var(--muted); font-size: 0.9rem; }
.x-post-meta a { color: var(--ps-blue); font-weight: 900; text-underline-offset: 4px; }
.x-posts-empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); }
.x-fallback { margin: 20px 0 0; text-align: center; }
.x-fallback a { color: var(--ps-blue); font-weight: 800; }

.blue-section { background: linear-gradient(135deg, var(--ps-blue), var(--ps-blue-950)); color: var(--white); }
.split-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.link-panel { display: grid; gap: 12px; }
.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  text-decoration: none;
}
.official-link:hover { background: rgba(255,255,255,0.14); }
.official-link span span { color: rgba(255,255,255,0.74); }

.cards.three { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.theme-card { padding: 26px; position: relative; overflow: hidden; }
.theme-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 230, 0, 0.5);
}
.theme-number { color: var(--ps-blue); font-weight: 950; letter-spacing: -0.04em; font-size: 2.8rem; }
.theme-card h3 { margin: 10px 0 8px; color: var(--ps-blue-950); }
.theme-card p { margin: 0; color: var(--muted); }
.muted-section { background: var(--paper-2); }
.media-list { display: grid; gap: 12px; }
.media-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}
.media-item strong { color: var(--ps-blue-950); }
.media-item p { margin: 4px 0 0; color: var(--muted); }
.contact-section { background: linear-gradient(180deg, var(--paper), var(--white)); }
.contact-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; padding: clamp(26px, 5vw, 48px); }
.contact-card p:not(.eyebrow) { color: var(--muted); max-width: 760px; }
.contact-card .button.primary { background: var(--ps-blue); color: var(--white); box-shadow: none; }
.site-footer { padding: 34px 0; background: var(--ps-blue-950); color: rgba(255,255,255,0.78); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner img { width: 92px; margin-bottom: 10px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ps-yellow); font-weight: 900; }

@media (max-width: 930px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute;
    inset: 78px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { color: var(--ps-blue); }
  .hero-grid, .split-grid, .contact-card { grid-template-columns: 1fr; }
  .content-grid, .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-row { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brand img { width: 58px; }
  .brand small { display: none; }
  .section-pad { padding: 60px 0; }
  .content-grid, .cards.three { grid-template-columns: 1fr; }
  .status-inner, .footer-inner, .media-item { align-items: stretch; flex-direction: column; }
  .hero-card figcaption { position: static; margin-top: 10px; }
  .x-posts-list { grid-template-columns: 1fr; }
}
