/* Blue Praha upgrade layer v2. Tokens match live navy/terracotta.
   No extra font files, no third-party widgets, no animation libraries. */

:root {
  --bp-ink: #122033;
  --bp-navy: #1a3a5c;
  --bp-navy-deep: #0e2238;
  --bp-accent: #c45520;
  --bp-accent-dark: #a34418;
  --bp-muted: #5b6b7c;
  --bp-line: #e2e8f0;
  --bp-paper: #f4f1ea;
  --bp-white: #fffcf7;
  --bp-radius: 14px;
  --bp-shadow: 0 18px 40px rgba(18, 32, 51, 0.12);
  --bp-serif: Georgia, "Times New Roman", serif;
  --bp-sans: system-ui, "Segoe UI", Roboto, sans-serif;
}

.bp-home,
.bp-archive,
.bp-single,
body.wp-theme-hello-elementor,
body.bp-site {
  color: var(--bp-ink);
  background: var(--bp-white);
  font-family: var(--bp-sans);
}

.bp-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.bp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  background: rgb(14 34 56 / 0.94);
}

.bp-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.bp-logo {
  font-family: var(--bp-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.bp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  flex: 1;
}

.bp-nav a,
.bp-nav-aux {
  color: #dbe4ee;
  text-decoration: none;
  font-size: 0.92rem;
}

.bp-nav a:hover,
.bp-nav-aux:hover {
  color: #fff;
}

.bp-silo-nav a,
.bp-footer a,
.bp-breadcrumbs a,
.bp-card-link,
.bp-trust-more a,
.bp-silo-children a,
.bp-toc a,
.bp-post-body h3 a {
  color: var(--bp-navy);
  text-decoration: none;
}

.bp-card-link,
.bp-post-body h3 a:hover {
  color: var(--bp-accent);
  font-weight: 600;
}

.bp-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  background: var(--bp-navy-deep);
  color: #fff;
}

.bp-hero-figure {
  margin: 0;
  position: absolute;
  inset: 0;
}

.bp-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bp-hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(14 34 56 / 0.15) 0%, rgb(14 34 56 / 0.82) 78%);
}

.bp-hero-figure .bp-ai-badge {
  z-index: 2;
}

.bp-hero-figure figcaption {
  display: none;
}

.bp-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.bp-hero h1,
.bp-archive-head h1,
.bp-single h1,
.bp-section h2 {
  font-family: var(--bp-serif);
  color: inherit;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 12px;
  font-weight: 600;
}

.bp-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 16ch;
  color: #fff;
}

.bp-section h2,
.bp-archive-head h1,
.bp-single h1 {
  color: var(--bp-navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.bp-hero-lead,
.bp-lede {
  max-width: 62ch;
  color: var(--bp-muted);
  line-height: 1.6;
}

.bp-hero-lead {
  color: #e8eef4;
  font-size: 1.1rem;
}

.bp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.bp-btn,
.bp-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.bp-btn {
  background: var(--bp-accent);
  color: #fff;
}

.bp-btn:hover {
  background: var(--bp-accent-dark);
  color: #fff;
}

.bp-btn-ghost {
  border: 1.5px solid rgb(255 255 255 / 0.7);
  color: #fff;
  background: transparent;
}

.bp-section {
  padding: 56px 0;
}

.bp-silo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.bp-silo-card,
.bp-post-card,
.bp-trust-grid article {
  background: #fff;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: var(--bp-shadow);
  overflow: hidden;
}

.bp-silo-copy,
.bp-post-body,
.bp-trust-grid article {
  padding: 18px 20px 20px;
}

.bp-silo-media img,
.bp-post-media img,
.bp-silo-head-media img,
.bp-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.bp-silo-card h3,
.bp-trust-grid h3,
.bp-post-body h3 {
  margin: 0 0 8px;
  font-family: var(--bp-serif);
  font-size: 1.25rem;
}

.bp-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--bp-accent);
  margin: 0 0 6px;
}

.bp-silo-count {
  color: var(--bp-muted);
  font-size: 0.9rem;
}

.bp-silo-children,
.bp-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.bp-silo-children li {
  margin: 0 0 6px;
}

.bp-latest-featured,
.bp-post-grid,
.bp-latest-grid,
.bp-trust-grid {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.bp-latest-featured {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.bp-latest-grid,
.bp-post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.bp-trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.bp-post-card.is-featured h3 {
  font-size: 1.45rem;
}

.bp-silo-head {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 8px;
}

.bp-silo-head-media {
  display: block;
  border-radius: var(--bp-radius);
  overflow: hidden;
}

.bp-silo-posts:nth-child(even) {
  background: var(--bp-paper);
}

.bp-trust {
  background: var(--bp-navy-deep);
  color: #dbe4ee;
}

.bp-trust h2,
.bp-trust h3,
.bp-trust a {
  color: #fff;
}

.bp-trust .bp-lede,
.bp-trust p {
  color: #c5d2df;
}

.bp-figure {
  position: relative;
  margin: 16px 0 24px;
}

.bp-hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.bp-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.bp-ai-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgb(14 34 56 / 0.78);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
}

.bp-figure figcaption {
  font-size: 0.82rem;
  color: var(--bp-muted);
  margin-top: 8px;
}

.bp-faq-item {
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 10px;
  background: #fff;
}

.bp-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bp-navy);
}

.bp-silo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.bp-silo-nav a,
.bp-toc a {
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.9rem;
}

.bp-silo-nav a.is-active {
  background: var(--bp-navy);
  color: #fff;
  border-color: var(--bp-navy);
}

.bp-breadcrumbs {
  font-size: 0.85rem;
  color: var(--bp-muted);
  margin-bottom: 8px;
}

.bp-sep {
  margin: 0 6px;
  color: #94a3b8;
}

.bp-archive-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 24px 0 8px;
}

.bp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.bp-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0 28px;
}

.bp-pager-link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  background: #fff;
  color: var(--bp-navy);
  text-decoration: none;
}

.bp-pager-link span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bp-accent);
  margin-bottom: 6px;
}

.bp-pager-link.is-empty {
  color: var(--bp-muted);
}

.bp-footer {
  background: var(--bp-navy-deep);
  color: #dbe4ee;
  padding: 48px 0 20px;
}

.bp-footer a {
  color: #dbe4ee;
}

.bp-footer a:hover {
  color: #fff;
}

.bp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.bp-footer-brand,
.bp-footer-label {
  color: #fff;
  font-weight: 700;
}

.bp-copy {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #9fb0c3;
}

@media (max-width: 980px) {
  .bp-latest-featured,
  .bp-latest-grid,
  .bp-post-grid,
  .bp-trust-grid,
  .bp-silo-head,
  .bp-archive-hero,
  .bp-pager,
  .bp-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .bp-header-inner {
    display: block;
    padding: 12px 0;
  }

  .bp-nav {
    margin: 10px 0;
  }

  .bp-hero {
    min-height: 70vh;
  }

  .bp-latest-featured,
  .bp-latest-grid,
  .bp-post-grid,
  .bp-trust-grid,
  .bp-silo-head,
  .bp-archive-hero,
  .bp-pager,
  .bp-footer-grid {
    grid-template-columns: 1fr;
  }

  .bp-section {
    padding: 36px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
