/* Shared chrome for Documentation, News, and Contact-adjacent pages */

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

:root {
  --blue: #2a5f7a;
  --blue-dark: #1a3d52;
  --navy: #2b2118;
  --barn: #8b3a2f;
  --brass: #a67c1f;
  --brass-light: #f5edd8;
  --bg: #f7f2ea;
  --bg-card: #fcfaf6;
  --text: #2b2118;
  --text-muted: #6b5f54;
  --border: #d4c4b0;
  --flash-bg: linear-gradient(90deg, #6b2d22 0%, #8b3a2f 45%, #a67c1f 100%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.has-flash-banner { padding-top: 0; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

/* ── Flash banner (site-wide) ── */
.flash-banner {
  display: none;
  background: var(--flash-bg);
  color: #fff;
  border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.flash-banner.is-visible { display: block; }

.flash-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.flash-banner-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.flash-banner-text {
  flex: 1 1 12rem;
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 0;
}

.flash-banner-text strong { font-weight: 700; }

.flash-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.flash-banner-link {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.flash-banner-link:hover { color: var(--brass-light); }

.flash-banner-dismiss {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.flash-banner-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ── Site header ── */
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 56px;
  width: auto;
  border-radius: 6px;
}

.site-top nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-top nav > a,
.site-nav-trigger {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.site-top nav > a:hover,
.site-top nav > a[aria-current="page"],
.site-nav-trigger:hover,
.site-nav-group.open .site-nav-trigger { color: var(--blue); }

.site-nav-group { position: relative; }

.site-nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 11rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(43, 33, 24, 0.12);
  padding: 0.35rem 0;
  z-index: 50;
}

.site-nav-group.open .site-nav-dropdown,
.site-nav-group:focus-within .site-nav-dropdown { display: block; }

.site-nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  white-space: nowrap;
}

.site-nav-dropdown a:hover {
  background: var(--brass-light);
  color: var(--blue-dark);
}

.site-nav-dropdown a[aria-current="page"] {
  font-weight: 600;
  color: var(--blue);
}

/* ── Main content ── */
.site-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 4rem;
}

.site-main.wide { max-width: 64rem; }

.site-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.site-lede {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 42rem;
}

.notice {
  background: var(--brass-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

/* ── News / feed lists ── */
.feed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feed-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.35rem;
}

.feed-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.feed-item h2 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0;
}

.feed-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.feed-summary {
  color: var(--text);
  margin-bottom: 0.65rem;
}

.feed-body {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

.feed-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.feed-badge.active {
  background: #d4edda;
  color: #1e5631;
}

.feed-badge.expired {
  background: #ede4d4;
  color: var(--text-muted);
}

.feed-empty {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem 0;
}

/* ── Press release article ── */
.press-release-article {
  max-width: 44rem;
}

.press-release-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.press-release-deck {
  font-size: 1.0625rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.press-release-dateline {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.press-release-article h2 {
  font-size: 1.125rem;
  margin: 2rem 0 0.75rem;
}

.press-release-body > :last-child {
  margin-bottom: 0;
}

.press-release-article p,
.press-release-body p {
  margin-bottom: 1rem;
}

.press-release-article ul,
.press-release-body ul {
  margin: 0 0 1rem 1.25rem;
}

.press-release-article li,
.press-release-body li {
  margin-bottom: 0.5rem;
}

.press-release-body a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.press-release-body strong {
  color: var(--text);
}

.press-release-quote {
  border-left: 3px solid var(--brass);
  margin: 1.25rem 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  color: var(--text);
  font-style: italic;
}

.press-release-quote p {
  margin: 0;
}

.press-release-end {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 2rem;
}

.press-release-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.press-release-back a {
  font-weight: 600;
  text-decoration: none;
}

.press-release-back a:hover {
  text-decoration: underline;
}

/* ── Docs catalog ── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-card h2 {
  font-size: 1rem;
  margin: 0;
}

.doc-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.doc-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.doc-card-actions a {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-foot p + p { margin-top: 0.5rem; }

.site-foot a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-foot a:hover { color: var(--blue); }

.site-foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
  .flash-banner-inner { flex-direction: column; align-items: flex-start; }
  .site-top { flex-direction: column; align-items: flex-start; }
}
