/* ============================================================
   FILE: /var/www/sunapeealumni.com/public/style.css
   TITLE: Sunapee Alumni Shared Stylesheet
   VERSION: 10
   DATE: 2026-03-31 GMT
   PURPOSE:
   Shared public styling for the Sunapee Alumni homepage and
   alumni finder pages.
   ============================================================ */

:root {
  --sa-blue: #003b73;
  --sa-blue-dark: #002b57;
  --sa-blue-light: #0b4f94;
  --sa-bg: #f3f5f9;
  --sa-card: #ffffff;
  --sa-border: #d9dee7;
  --sa-text: #1e2430;
  --sa-muted: #667085;
  --sa-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  --sa-radius: 14px;
  --sa-radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sa-bg);
  color: var(--sa-text);
  min-height: 100vh;
}

/* ============================================================
   HEADER / TOP BAR
   ============================================================ */
.site-header {
  background: var(--sa-blue);
  color: #fff;
  padding: 22px 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  min-height: 52px;
}

.site-home-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  background: #fff;
  color: var(--sa-blue);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: var(--sa-radius-sm);
  border: 1px solid rgba(255,255,255,0.45);
}

.site-home-btn:hover {
  background: #eef4fb;
}

.site-title {
  margin: 0;
  text-align: center;
  font-size: 2.15rem;
  line-height: 1.15;
  font-weight: 700;
}

.site-subtitle {
  margin: 10px 0 0 0;
  text-align: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
}

/* ============================================================
   NAV
   ============================================================ */
.top-nav {
  background: var(--sa-blue-dark);
  padding: 10px 14px;
}

.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.top-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin: 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
}

.top-nav a:hover {
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   LAYOUT / CARDS
   ============================================================ */
.page-wrap {
  max-width: 1100px;
  margin: 26px auto 50px auto;
  padding: 0 16px;
}

.card {
  background: var(--sa-card);
  border: 1px solid var(--sa-border);
  border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow);
  padding: 22px;
}

.card h2 {
  margin-top: 0;
  color: var(--sa-blue-dark);
}

.center-card {
  max-width: 860px;
  margin: 0 auto;
}

.finder-card {
  max-width: 980px;
  margin: 0 auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #2a3240;
}

.muted {
  color: var(--sa-muted);
}

.empty-message {
  text-align: center;
  color: var(--sa-muted);
  margin: 14px 0 6px 0;
  font-size: 1rem;
}

/* ============================================================
   FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  margin-bottom: 14px;
}

.search-form input[type="text"],
.search-form input[type="number"] {
  width: 100%;
  max-width: 380px;
  padding: 13px 14px;
  font-size: 1rem;
  border: 1px solid #bcc6d6;
  border-radius: 10px;
  background: #fff;
  color: var(--sa-text);
}

.search-form input[type="text"]:focus,
.search-form input[type="number"]:focus {
  outline: none;
  border-color: var(--sa-blue-light);
  box-shadow: 0 0 0 3px rgba(11, 79, 148, 0.12);
}

.search-form button,
.button-link {
  display: inline-block;
  background: var(--sa-blue);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--sa-blue-dark);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.search-form button:hover,
.button-link:hover {
  background: var(--sa-blue-light);
}

/* Remove browser arrows on number field */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* ============================================================
   TABLE
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--sa-border);
  border-radius: 12px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}

.results-table thead th {
  background: #edf2f8;
  color: #334155;
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--sa-border);
}

.results-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid #e7ebf2;
}

.results-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.results-table a {
  color: var(--sa-blue);
  text-decoration: none;
  font-weight: bold;
}

.results-table a:hover {
  text-decoration: underline;
}

.actions {
  text-align: center;
  margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  color: #6b7280;
  padding: 20px 16px 28px 16px;
  font-size: 0.96rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .site-home-btn {
    position: static;
    transform: none;
    margin-bottom: 14px;
  }

  .site-title {
    font-size: 1.7rem;
  }

  .site-header-inner {
    text-align: center;
  }

  .search-form {
    flex-wrap: wrap;
  }

  .search-form input[type="text"],
  .search-form input[type="number"] {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    margin-top: 18px;
  }

  .card {
    padding: 16px;
  }

  .site-title {
    font-size: 1.45rem;
  }

  .top-nav a {
    display: block;
    margin: 6px auto;
    width: fit-content;
  }
}
