/*
Theme Name: Governmentpress2026
Author: WordPress Telex
Description: A modern government informational block theme inspired by the US Web Design System, featuring the Federal Clarity design direction with authoritative typography, institutional color palette, and structured editorial layouts.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: governmentpress2026
Tags: block-theme, full-site-editing, government, accessibility-ready

Governmentpress2026 — Federal Clarity design direction
*/

/* Equal-height card columns */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* Remove top margin from site-block direct children */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Disclaimer banner */
.disclaimer-banner {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.disclaimer-banner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.disclaimer-banner .us-flag-icon {
  width: 18px;
  height: 13px;
  flex-shrink: 0;
}

/* Disclaimer toggle button */
.disclaimer-toggle {
  cursor: pointer;
  padding: 0.125rem 0.5rem;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  position: relative;
}
.disclaimer-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.disclaimer-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #ffffff;
  margin-left: 0.375rem;
  vertical-align: middle;
  transition: transform 0.25s ease;
}
.disclaimer-toggle.is-open::after {
  transform: rotate(180deg);
}

/* Disclaimer dropdown panel */
.disclaimer-dropdown-panel {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 700px;
}
.disclaimer-dropdown-panel.is-open {
  display: flex;
}

/* Header search */
.federal-search .wp-block-search__inside-wrapper {
  border-radius: 0;
}
.federal-search .wp-block-search__input {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  min-width: 0;
  width: 180px;
}
.federal-search .wp-block-search__button {
  background-color: var(--wp--preset--color--primary-blue);
  color: var(--wp--preset--color--white);
  border: none;
  padding: 0.5rem 0.75rem;
  margin: 0;
  transition: background-color 0.2s ease;
}
.federal-search .wp-block-search__button:hover {
  background-color: var(--wp--preset--color--cool-blue-light);
}
.federal-search .wp-block-search__button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Navigation link hover underline effect */
.federal-nav .wp-block-navigation-item a {
  position: relative;
  transition: color 0.2s ease;
}
.federal-nav .wp-block-navigation-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--primary-blue);
  transition: width 0.3s ease;
}
.federal-nav .wp-block-navigation-item a:hover::after {
  width: 100%;
}

/* Hero section */
.hero-cover .wp-block-cover__inner-container {
  width: 100%;
}

/* Floating sidebar nav */
.floating-sidebar-nav {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  min-width: 280px;
}
.floating-sidebar-nav .wp-block-navigation-item a {
  display: block;
  padding: 0.875rem 2rem 0.875rem 1.75rem;
  border-left: 4px solid transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 1.05rem;
}
.floating-sidebar-nav .wp-block-navigation-item a:hover {
  background-color: var(--wp--preset--color--bg-gray);
}
.floating-sidebar-nav .wp-block-navigation-item.current-menu-item a,
.floating-sidebar-nav .wp-block-navigation-item:first-child a {
  border-left-color: var(--wp--preset--color--primary-blue);
  background-color: var(--wp--preset--color--bg-gray);
  font-weight: 600;
}

/* Eyebrow badge */
.eyebrow-badge {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Primary button style */
.btn-federal .wp-block-button__link {
  font-family: 'Source Serif 4', 'Georgia', serif;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.125rem 2.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 0;
}
.btn-federal .wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* Gold accent line */
.gold-accent-line {
  width: 80px;
  height: 4px;
  background-color: var(--wp--preset--color--accent-gold);
  border: none;
}

/* Stat card hover */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* News card */
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.news-card img {
  transition: transform 0.4s ease;
}
.news-card:hover img {
  transform: scale(1.03);
}

/* Program card left border accent */
.program-card-blue {
  border-left: 4px solid var(--wp--preset--color--primary-blue);
}
.program-card-red {
  border-left: 4px solid var(--wp--preset--color--accent-red);
}
.program-card-gold {
  border-left: 4px solid var(--wp--preset--color--accent-gold);
}

/* CTA band diagonal stripe */
.cta-band {
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(253, 184, 30, 0.08) 8px,
    rgba(253, 184, 30, 0.08) 16px
  );
  z-index: 1;
}

/* Footer links */
.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Scroll animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-on-scroll {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 782px) {
  .floating-sidebar-nav {
    display: none;
  }
  .hero-grid-layout {
    grid-template-columns: 1fr !important;
  }
}