:root {
  --pt-bg: #f4f7fb;
  --pt-surface: #ffffff;
  --pt-ink: #0f172a;
  --pt-muted: #5b6b82;
  --pt-accent: #0f4c81;
  --pt-accent-soft: #e8f1fa;
  --pt-ok: #0d7a55;
  --pt-warn: #b45309;
  --pt-danger: #b42318;
  --pt-radius: 16px;
  --pt-shadow: 0 12px 40px rgba(15, 76, 129, 0.08);
  --pt-shell: min(1120px, calc(100% - 2rem));
  --pt-focus: 0 0 0 3px rgba(15, 76, 129, 0.35);
  --pt-blur: blur(10px);
  --pt-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--pt-ink);
  background: radial-gradient(circle at top left, #eef5fc, var(--pt-bg) 45%);
  line-height: 1.6;
}

.pt-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.pt-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  background: var(--pt-surface);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: var(--pt-shadow);
}

.pt-shell {
  width: var(--pt-shell);
  margin-inline: auto;
}

.pt-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: var(--pt-blur);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.pt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.pt-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.pt-logo__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f4c81, #1d7ab8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.pt-nav__list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-nav__list a {
  color: var(--pt-muted);
  text-decoration: none;
  font-weight: 500;
}

.pt-nav__list a:hover,
.pt-nav__list a:focus-visible {
  color: var(--pt-accent);
}

.pt-main {
  min-height: 70vh;
}

.pt-hero {
  padding: 4.5rem 0 3rem;
}

.pt-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--pt-accent);
  font-weight: 600;
}

.pt-hero__title {
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0.4rem 0 1rem;
}

.pt-hero__lead {
  max-width: 52ch;
  color: var(--pt-muted);
  font-size: 1.08rem;
}

.pt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--pt-ease), box-shadow 0.2s var(--pt-ease), background 0.2s var(--pt-ease);
}

.pt-btn:focus-visible {
  outline: none;
  box-shadow: var(--pt-focus);
}

.pt-btn--primary {
  background: var(--pt-accent);
  color: #fff;
}

.pt-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--pt-shadow);
}

.pt-btn--ghost {
  background: transparent;
  border-color: rgba(15, 76, 129, 0.18);
  color: var(--pt-accent);
}

.pt-reveal[hidden] {
  display: none;
}

.pt-reveal:not([hidden]) {
  animation: pt-fade-in 0.45s var(--pt-ease);
}

@keyframes pt-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pt-values {
  padding: 1rem 0 3rem;
}

.pt-values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pt-card {
  background: var(--pt-surface);
  border-radius: var(--pt-radius);
  padding: 1.25rem;
  box-shadow: var(--pt-shadow);
  border: 1px solid rgba(15, 76, 129, 0.06);
}

.pt-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.pt-cta {
  padding: 2rem 0 4rem;
}

.pt-cta__box {
  background: linear-gradient(135deg, #0f4c81, #16679f);
  color: #fff;
  border-radius: calc(var(--pt-radius) + 4px);
  padding: 2rem;
  box-shadow: var(--pt-shadow);
}

.pt-cta__box h2 {
  margin-top: 0;
}

.pt-footer {
  border-top: 1px solid rgba(15, 76, 129, 0.08);
  padding: 2rem 0;
  background: rgba(255, 255, 255, 0.7);
}

.pt-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pt-footer__brand {
  font-weight: 700;
  margin: 0;
}

.pt-footer__tagline {
  color: var(--pt-muted);
  margin: 0.25rem 0 0;
}

.pt-footer__links {
  display: flex;
  gap: 1rem;
}

.pt-footer__links a {
  color: var(--pt-accent);
}

.pt-prose {
  max-width: 68ch;
}

.pt-hero--compact {
  padding: 2.5rem 0 1.5rem;
}

.pt-hero__title--compact {
  max-width: 24ch;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.pt-hero__social {
  margin-top: 1.25rem;
}

.pt-feed-layout {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 3rem;
  position: relative;
}

@media (min-width: 900px) {
  .pt-feed-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.pt-feed-list__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.pt-feed-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pt-feed-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(15, 76, 129, 0.1);
  background: var(--pt-surface);
  border-radius: var(--pt-radius);
  padding: 1rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--pt-shadow);
  transition: border-color 0.2s var(--pt-ease), transform 0.2s var(--pt-ease);
}

.pt-feed-card:hover,
.pt-feed-card:focus-visible {
  border-color: var(--pt-accent);
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.pt-feed-card__date {
  display: block;
  font-size: 0.78rem;
  color: var(--pt-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pt-feed-card__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.35rem 0;
}

.pt-feed-card__excerpt {
  display: block;
  color: var(--pt-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.pt-feed-card__cta {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pt-accent);
}

.pt-reader-wrap {
  position: relative;
  min-height: 320px;
  z-index: 2;
}

.pt-reader {
  background: var(--pt-surface);
  border-radius: calc(var(--pt-radius) + 4px);
  border: 1px solid rgba(15, 76, 129, 0.08);
  box-shadow: var(--pt-shadow);
  padding: 1.25rem;
  min-height: 320px;
  position: relative;
  z-index: 2;
}

.pt-reader.is-active {
  border-color: rgba(15, 76, 129, 0.22);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.pt-reader-placeholder {
  color: var(--pt-muted);
  padding: 2rem 1rem;
  text-align: center;
}

.pt-reader-indicator {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: calc(var(--pt-radius) + 4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.htmx-request .pt-reader-indicator {
  opacity: 1;
}

.pt-skeleton__bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8eef5, #f7fafc, #e8eef5);
  background-size: 200% 100%;
  animation: pt-shimmer 1.2s infinite;
  margin-bottom: 0.5rem;
}

.pt-skeleton__bar--short {
  width: 60%;
}

@keyframes pt-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.pt-article-view__head h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.pt-article-view__body {
  line-height: 1.65;
  font-size: 1rem;
  color: var(--pt-ink);
  white-space: pre-wrap;
}

.pt-channels {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pt-channel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pt-accent-soft);
  color: var(--pt-accent);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.pt-article-view__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 76, 129, 0.08);
}

.pt-empty-feed {
  padding: 1.5rem;
  border: 1px dashed rgba(15, 76, 129, 0.2);
  border-radius: var(--pt-radius);
  background: rgba(255, 255, 255, 0.7);
}

.pt-feed-list {
  position: relative;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.pt-feed-list.is-dimmed {
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
