/* COS NATCA — colors taken from the NATCA logo */
:root {
  --red: #C8102E;
  --red-dark: #A00D25;
  --navy: #14284B;
  --navy-light: #1F3A68;
  --ink: #1C2333;
  --muted: #5A6475;
  --line: #DDE2EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F9;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy); }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  /* Keep the footer at the bottom of the window on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }
a { color: var(--navy-light); }
a:hover { color: var(--red); }
h1, h2, h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.6rem; margin: 0; }
h2 { font-size: 1.8rem; margin: 2.2rem 0 0.8rem; }
h3 { font-size: 1.35rem; margin: 1.6rem 0 0.4rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.red { color: var(--red); }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700;
  font-size: 1.9rem; color: var(--navy); letter-spacing: 0.02em;
}
.brand-sub { font-size: 0.85rem; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  font-family: "Barlow Condensed", sans-serif; font-weight: 600;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--navy); text-decoration: none;
  padding: 6px 12px; border-radius: 4px;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--red); }
.main-nav a.active { background: var(--navy); color: #fff; }
.stripe { height: 5px; background: linear-gradient(to right, var(--red) 0 70%, var(--navy) 70% 100%); }

/* Home hero */
.hero { background: var(--navy); color: #fff; padding: 56px 0 60px; }
.hero h1 { color: #fff; font-size: 3.4rem; }
.eyebrow {
  margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.85rem; font-weight: 700; color: #C8102E;
}
.lede { font-size: 1.2rem; max-width: 640px; margin: 12px 0 0; color: #DCE3EE; }

/* Page title band */
.page-title { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 32px 0; }
.page-title .meta { margin: 6px 0 0; color: var(--muted); }

.content { padding-top: 28px; padding-bottom: 56px; }
.content table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.content th, .content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.content th { background: var(--bg-soft); color: var(--navy); }

/* Cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 28px 0;
}
.card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: 6px; padding: 18px 20px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-top-color: var(--red); box-shadow: 0 4px 14px rgba(20,40,75,.10); color: var(--ink); }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card.members { border-top-color: var(--red); }

/* Lists */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.post-list .post-meta { color: var(--muted); font-size: 0.9rem; margin-left: 8px; }
.post-list p { margin: 4px 0 0; color: var(--muted); }

.notice {
  border-left: 4px solid var(--red); background: #FDF2F4;
  padding: 12px 16px; border-radius: 4px; margin: 1rem 0;
}
.back { margin-top: 2.5rem; }
.more { margin: 10px 0 0; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #C9D3E3; padding: 32px 0 20px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #F2A3B0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.footer-note { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--navy-light); font-size: 0.8rem; color: #93A1B8; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 2.1rem; }
  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 2.6rem; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.6rem; }
  .main-nav a { font-size: 1.05rem; padding: 5px 9px; }
}

/* Page layout with right sidebar */
.layout.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.sidebar { padding: 28px 0 56px; }
.side-block { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 6px; background: var(--bg-soft); padding: 14px 16px; margin-bottom: 18px; }
.side-block h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.side-block ul { list-style: none; margin: 0; padding: 0; }
.side-block li { border-top: 1px solid var(--line); }
.side-block li:first-child { border-top: 0; }
.side-block li a { display: block; padding: 6px 0; text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.side-block .ext { font-size: 0.8em; color: var(--muted); }
.side-text { font-size: 0.95rem; }
.side-text p { margin: 0 0 6px; }
@media (max-width: 860px) {
  .layout.has-sidebar { display: block; }
  .sidebar { padding-top: 0; }
}
/* Home cards: 2 x 2 next to the sidebar, 1 column on small phones */
.has-sidebar .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .has-sidebar .cards { grid-template-columns: 1fr; } }
/* Let long emails/links in tables wrap instead of widening the page */
.content td { overflow-wrap: anywhere; }
/* Line up the first thing on the page with the top of the sidebar */
.content > :first-child, .content > p:first-child { margin-top: 0; }
