/* TY child — design improvements (content unchanged) */

:root {
  --section-pad: 3.25rem;
  --body-size: 1.0625rem;
  --line-height: 1.72;
}

body {
  font-size: var(--body-size);
  line-height: var(--line-height);
}

.hero {
  min-height: 440px;
  background:
    linear-gradient(105deg, rgba(92, 24, 40, 0.9) 0%, rgba(122, 32, 53, 0.75) 45%, rgba(122, 32, 53, 0.4) 100%),
    var(--hero-image) center/cover no-repeat;
}

.hero-content {
  padding: 3.25rem 0;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.hero-actions .btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.hero-actions .btn-outline:hover {
  background: var(--white);
  color: var(--burgundy);
}

.home-section {
  padding: var(--section-pad) 0;
}

.section-title {
  font-size: 1.1rem;
}

.primary-menu a {
  font-size: 0.95rem;
}

.feature-card h3 {
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.875rem;
}

.founder-card h3 {
  font-size: 0.95rem;
}

.doc-info strong {
  font-size: 0.9rem;
}

.doc-info small {
  font-size: 0.8rem;
}

.page-hero {
  padding: 2.5rem 0;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.content-area {
  padding: 2.5rem 0 3.5rem;
}

/* News cards */
.archive-list.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.archive-list.news-cards .archive-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.archive-list.news-cards .archive-item:hover {
  border-color: var(--burgundy-light);
  transform: translateY(-2px);
}

.archive-list.news-cards .archive-item time {
  color: var(--burgundy);
  font-size: 0.875rem;
  font-weight: 700;
}

.archive-list.news-cards .archive-item h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0;
}

.archive-list.news-cards .archive-item p {
  flex: 1;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-numbers.current {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--white);
}

/* PDF links in page content — unified document style */
.content-area .entry-content a[href$=".pdf"],
.content-area .entry-content a[href*=".pdf?"],
.content-area .entry-content a[href*=".PDF"] {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  color: var(--burgundy-dark);
  font-weight: 600;
  line-height: 1.4;
}

.content-area .entry-content a[href$=".pdf"]::before,
.content-area .entry-content a[href*=".pdf?"]::before,
.content-area .entry-content a[href*=".PDF"]::before {
  content: "PDF";
  background: #c0392b;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
  border-radius: 4px;
}

.content-area .entry-content a[href$=".pdf"]:hover,
.content-area .entry-content a[href*=".pdf?"]:hover {
  background: var(--cream-dark);
  color: var(--burgundy-dark);
}

.content-area .entry-content ul {
  padding-left: 0;
  list-style: none;
}

.content-area .entry-content ul li {
  margin-bottom: 0.35rem;
}

/* Navigation */
@media (max-width: 992px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
    align-items: start;
  }

  .nav-toggle {
    display: flex;
    justify-self: end;
  }

  .primary-nav {
    grid-column: 1 / -1;
    order: 4;
    display: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: var(--cream);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    gap: 0.1rem;
    align-items: stretch;
  }

  .primary-menu a {
    display: block;
    padding: 0.55rem 0.25rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--cream-dark);
  }

  .header-contact {
    display: none;
  }
}

.mobile-phone-bar {
  display: none;
}

@media (max-width: 992px) {
  .mobile-phone-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--burgundy);
    text-align: center;
    padding: 0.65rem 1rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  }

  .mobile-phone-bar a {
    color: var(--white);
    font-weight: 700;
    font-size: 1.05rem;
  }

  body {
    padding-bottom: 3rem;
  }
}

@media (max-width: 600px) {
  .archive-list.news-cards {
    grid-template-columns: 1fr;
  }
}
