:root {
  --bg: #f3efe6; /* cream paper to match logo art */
  --card: #fffdf8;
  --ink: #172331;
  --muted: #546576;
  --brand: #1a2744; /* navy from phoenix mark */
  --accent: #175b8e;
  --line: #ddd4c4;
  --soft: #f7f1e6;
  --ok: #2f6b3c; /* green from house scene */
  --warn: #8a5a16;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.site-header {
  background: var(--brand);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
}
.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #f3efe6;
  border-radius: 10px;
  padding: 4px;
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: .01em;
}
.brand-tag {
  opacity: .85;
  font-weight: 500;
  font-size: .78rem;
  line-height: 1.25;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1.3fr .7fr;
}
.hero-logo-card {
  background: #f3efe6;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  justify-self: end;
  max-width: 320px;
}
.hero-logo-card img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo-card { justify-self: start; max-width: 260px; }
}
.nav { display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
.nav a {
  color: #d7e4f0;
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; }

.hero {
  background: linear-gradient(145deg, #1d334a 0%, #2f5273 55%, #3d6b8f 100%);
  color: #fff;
  padding: 3.2rem 0 2.8rem;
}
.hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 42rem;
  opacity: .95;
}
.hero .status {
  display: inline-block;
  margin-top: 1rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: .9rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  border-radius: 10px;
  padding: .7rem 1.05rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid transparent;
}
.btn-primary { background: #fff; color: var(--brand); }
.btn-primary:hover { background: #eef5fb; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: #1b2f42; }

main.page { padding: 2rem 0 3rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(23,35,49,.04);
}
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card h2, .card h3 { margin-top: 0; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .4rem;
}
.note {
  border-left: 4px solid var(--warn);
  background: #fff8eb;
  padding: .9rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #5c4318;
}
.oknote {
  border-left: 4px solid var(--ok);
  background: #eefaf3;
  padding: .9rem 1rem;
  border-radius: 0 10px 10px 0;
  color: #184833;
}
ul.clean { padding-left: 1.15rem; }
ul.clean li { margin: .45rem 0; }
table.docs {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
table.docs th, table.docs td {
  text-align: left;
  padding: .85rem .7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.docs th { background: var(--soft); }

.site-footer {
  background: #152433;
  color: #c7d3de;
  padding: 2rem 0;
  font-size: .92rem;
}
.site-footer a { color: #9ec4e6; }
.site-footer .wrap { display: grid; gap: 1rem; }
.disclaimer { opacity: .85; max-width: 50rem; }

@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding: .85rem 20px; }
  .hero { padding: 2.2rem 0; }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; outline: 3px solid #f5c542; }

.status-banner {
  background: #fff4d6;
  color: #5c4318;
  border-bottom: 1px solid #e6d2a0;
  font-size: .95rem;
  padding: .7rem 0;
}
.status-banner strong { font-weight: 700; }

.callout {
  background: #fff8eb;
  border: 1px solid #e6d2a0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.4rem;
}
.badge {
  display: inline-block;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .8rem;
  font-weight: 650;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.text-link { font-weight: 650; }
.footer-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-mark {
  background: #f3efe6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: .5rem;
}
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid #f5c542;
  outline-offset: 2px;
}
.site-header .nav a:focus-visible { outline-color: #f5c542; }

/* Footer readability (dark background) */
.site-footer { color: #e8eef4; }
.site-footer .footer-desc,
.site-footer .footer-updated,
.site-footer .disclaimer,
.site-footer .muted { color: #d5e0ea !important; opacity: 1; }
.site-footer a { color: #9ec8ef; }
.site-footer a:hover { color: #fff; }
.site-footer strong { color: #fff; }

/* Document library cards */
.doc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
@media (min-width: 800px) {
  .doc-grid { grid-template-columns: 1fr 1fr; }
}
.doc-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.doc-card h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.doc-card h3 a { color: var(--brand); text-decoration: none; }
.doc-card h3 a:hover { text-decoration: underline; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0 .35rem; }
.contact-card p { margin: .35rem 0; }

.doc-card .doc-actions { margin-top: 0.85rem; }
.doc-card .btn {
  display: inline-block;
  margin-top: 0.25rem;
}
/* Ensure document library links are obviously interactive on mobile */
.doc-card a.btn-dark {
  background: #1B3A4B;
  color: #fff !important;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.doc-card a.btn-dark:hover { background: #152f3c; }

/* Document pages: if they load site.css, keep readable */
.pf-doc-banner a, .pf-doc-nav a {
  text-decoration: underline;
  font-weight: 600;
}
