/* Rio Hondo HAMs — shared styles */
:root {
  --color-bg: #f6f1ea;
  --color-surface: #ffffff;
  --color-text: #0a0a0a;
  --color-muted: #3d3d3d;
  --color-primary: #f98125;
  --color-primary-dark: #000000;
  --color-accent: #ff8c00;
  --color-border: #d9cfc3;
  --color-focus: #f98125;
  --color-cream: #f6f1ea;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(26, 29, 35, 0.08), 0 4px 12px rgba(26, 29, 35, 0.04);
  --max-width: 68rem;
  --nav-height: 3.75rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* Header / Nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 3px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  line-height: 1.25;
  padding: 0.35rem 0;
}
.brand-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}

.brand:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.brand-name {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-call {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.site-nav a[aria-current="page"] {
  background: rgba(11, 95, 138, 0.1);
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* Main content */
main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(135deg, #f98125 0%, #000000 100%);
  color: #fff;
  padding: 2.75rem 1.25rem;
}

.hero .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero .lede {
  margin: 0;
  font-size: 1.15rem;
  color: #ffffff;
  opacity: 1;
  max-width: 38rem;
  line-height: 1.55;
}

.hero .callsign {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-primary-dark);
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--color-border);
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--color-muted);
}

/* Cards / grids */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
  border: none;
  padding: 0;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Info list / definition-style */
.fact-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  gap: 0.15rem;
}

.fact-list li:last-child {
  border-bottom: none;
}

.fact-list .label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

.fact-list .value {
  color: var(--color-text);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th, td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  background: rgba(249, 129, 37, 0.12);
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

/* Buttons / CTAs */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--color-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.4;
}

.btn:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(249, 129, 37, 0.12);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

/* Callout */
.callout {
  background: rgba(196, 92, 38, 0.08);
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.note {
  background: rgba(11, 95, 138, 0.06);
  border: 1px solid rgba(11, 95, 138, 0.2);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
  font-size: 0.98rem;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Board list */
.board-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.board-member {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.board-member .role {
  font-weight: 600;
  color: var(--color-primary-dark);
  min-width: 6.5rem;
}

.board-member .name {
  font-weight: 500;
}

.board-member .call {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  color: var(--color-muted);
  font-weight: 600;
}

@media (min-width: 640px) {
  .board-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.site-footer {
  background: #111111;
  color: #f0f0f0;
  padding: 2rem 1.25rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.site-footer .container {
  padding: 0;
}

.site-footer a {
  color: #ffc078;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.site-footer h2 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.footer-formal {
  color: #d0d4dc;
  font-size: 0.9rem;
}

.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #333842;
  font-size: 0.85rem;
  color: #c5cad3;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.1rem;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
  }
}

/* Print */
@media print {
  .site-header,
  .nav-toggle,
  .skip-link {
    position: static;
  }

  .site-nav {
    display: none !important;
  }

  .hero {
    background: none;
    color: #000;
    border-bottom: 2px solid #000;
  }

  .site-footer {
    background: none;
    color: #000;
    border-top: 1px solid #ccc;
  }
}
