/* RealPath public theme tokens mirrored from dta_webapp (palette.ts / colors.ts / typography.ts). */

:root {
  --navy: #2d4a4a;
  --navy-dark: #1b2c2c;
  --teal: #2d4a4a;
  --text: #000000;
  --text-muted: #797d82;
  --bg: #f5f7f9;
  --paper: #ffffff;
  --divider: #cbd5e0;
  --chip-bg: #f5f5f5;
  --radius-card: 12px;
  --radius-pill: 30px;
  --shadow-card: 0px 4px 10px 2px rgba(0, 0, 0, 0.2);
  --shadow-featured: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  --font-head: "IBM Plex Sans", "Poppins", sans-serif;
  --font-body: "Poppins", "IBM Plex Sans", sans-serif;
  --header-h: 72px;
  --accent-bar: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  min-height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: 170px;
  height: auto;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accent-bar {
  height: var(--accent-bar);
  background: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  line-height: 1.2;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--navy-dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  padding: 8px 0;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  color: var(--navy-dark);
}

.page {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.container--article {
  max-width: 900px;
  padding: 48px 24px 64px;
}

.featured {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-featured);
  margin-bottom: 48px;
}

.featured__media {
  min-height: 220px;
  background: var(--navy-dark);
}

.featured__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.featured__body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.overline {
  margin: 0 0 4px;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-date {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
}

.featured__title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 16px;
  background: var(--chip-bg);
  color: rgba(0, 0, 0, 0.87);
  font-family: var(--font-body);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.chip:hover {
  background: #ececec;
}

.featured__excerpt {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.featured__cta {
  margin-top: auto;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
}

.card__media {
  height: 180px;
  background: var(--navy-dark);
}

.card__media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 8px;
  flex: 1;
}

.card__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
  flex: 1;
}

.card__chips {
  padding: 0 16px 16px;
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.empty {
  margin: 48px 0;
  text-align: center;
  color: var(--text-muted);
}

.article-hero {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.article-title {
  margin: 8px 0 16px;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}

.back-link {
  margin-bottom: 24px;
}

.prose {
  color: var(--text);
  font-size: 14px;
}

.prose p {
  margin: 0 0 1.25em;
  line-height: 1.6;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.5em 0 0.75em;
}

.prose h2 {
  font-size: 1.2rem;
}

.prose h3 {
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin: 1em 0;
}

.prose li {
  margin-bottom: 0.35em;
}

.prose a {
  font-weight: 600;
}

.prose strong {
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  padding: 32px 0 24px;
  border-top: 1px solid var(--divider);
  background: #f5f5f5;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.site-footer__brand h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
}

.site-footer__brand p,
.site-footer a,
.site-footer address,
.site-footer .fineprint {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-head);
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 24px 0;
}

.site-footer address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    flex-direction: row;
    justify-content: space-between;
  }

  .site-footer__brand {
    max-width: 420px;
  }
}

@media (min-width: 900px) {
  .site-logo img {
    width: 170px;
  }

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

  .featured__media,
  .featured__media img {
    height: 100%;
    min-height: 320px;
  }

  .featured__body {
    padding: 32px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .container--article {
    padding-top: 48px;
  }
}

@media (max-width: 599px) {
  .site-logo img {
    width: 130px;
  }

  .site-header__inner {
    padding: 12px 16px;
  }

  .container,
  .container--article {
    padding: 32px 16px;
  }

  .article-title {
    font-size: 1.6rem;
  }

  .featured__title {
    font-size: 1.4rem;
  }
}
