/* ============================================================
   Ansonia City Website — Boards & Commissions Shared Stylesheet
   Apply by linking this file and wrapping page content in:
   <div class="ans-page">...</div>
   ============================================================ */

/* ── Base wrapper ── */
.ans-page {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
  max-width: 1000px;
}

/* ── Typography ── */
.ans-page h1 {
  font-size: 26px;
  color: #1a3a5c;
  border-bottom: 2px solid #1a3a5c;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.ans-page h2 {
  font-size: 20px;
  color: #1a3a5c;
  margin-top: 28px;
  margin-bottom: 8px;
}

.ans-page h3 {
  font-size: 15px;
  color: #1a3a5c;
  margin: 14px 0 4px 0;
}

.ans-page p {
  margin: 6px 0;
  font-size: 14px;
}

.ans-page ul {
  margin: 8px 0;
  padding-left: 20px;
  list-style: disc;
}

.ans-page li {
  margin: 4px 0;
  font-size: 14px;
}

.ans-page a {
  color: #1a3a5c;
}

/* ── Horizontal rule divider ── */
.ans-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 24px 0;
}

/* ── Two-column layout table helper ── */
/* Usage: <table class="ans-cols"><tr><td class="ans-col-l">…</td><td class="ans-col-r">…</td></tr></table> */
.ans-cols {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

.ans-col-l {
  width: 50%;
  vertical-align: top;
  padding-right: 20px;
  border: none;
}

.ans-col-r {
  width: 50%;
  vertical-align: top;
  padding-left: 20px;
  border: none;
}

/* ── Info / callout box ── */
.ans-info-box {
  background: #eef3f8;
  border: 1px solid #b0c4d8;
  padding: 14px 18px;
}

.ans-info-box p {
  margin: 4px 0;
}

/* ── Buttons ── */

/* Solid navy — primary actions (Minutes, YouTube, etc.) */
.ans-btn {
  display: inline-block;
  background: #1a3a5c;
  color: #fff !important;
  padding: 7px 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  margin: 4px 4px 4px 0;
}

.ans-btn:hover {
  background: #255080;
}

/* Outline navy — secondary actions (Charter link, Comcast, etc.) */
.ans-btn-outline {
  display: inline-block;
  border: 2px solid #1a3a5c;
  color: #1a3a5c !important;
  background: #fff;
  padding: 5px 13px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  margin: 4px 4px 4px 0;
}

.ans-btn-outline:hover {
  background: #eef3f8;
}

/* ── Member / ward panel cards ── */

/* Primary accent (navy left border) */
.ans-card {
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #f7f9fb;
  border-left: 4px solid #1a3a5c;
}

/* Secondary accent (lighter border — secretary, ex-officio, support roles) */
.ans-card-secondary {
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #eef3f8;
  border-left: 4px solid #b0c4d8;
}

/* Alternating shade variant — same primary border, slightly deeper bg */
.ans-card-alt {
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #dce8f2;
  border-left: 4px solid #1a3a5c;
}

.ans-card h3,
.ans-card-secondary h3,
.ans-card-alt h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ans-card p,
.ans-card-secondary p,
.ans-card-alt p {
  margin: 3px 0;
  font-size: 14px;
}

/* ── Auto-alternating member list ── */
/* Wrap individual member cards in <div class="ans-member-list"> and
   use <div class="ans-member-card"> for each entry.
   Odd children get the lighter shade; even children get the deeper shade.
   The Chair/V-Chair cards sit outside this list and use .ans-card directly. */
.ans-member-list {
  margin: 0;
  padding: 0;
}

.ans-member-card {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-left: 4px solid #1a3a5c;
}

.ans-member-list .ans-member-card:nth-child(odd) {
  background: #f7f9fb;
}

.ans-member-list .ans-member-card:nth-child(even) {
  background: #dce8f2;
}

.ans-member-card h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #1a3a5c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ans-member-card p {
  margin: 3px 0;
  font-size: 14px;
}

/* ── Card with inline Visit Page button (used in board/commission lists) ── */
/* Usage: <div class="ans-card-row"><span class="ans-card-row-name">Name</span><a class="ans-btn ans-card-row-btn" href="…">Visit Page ›</a></div> */
.ans-card-row {
  display: table;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  margin-bottom: 8px;
  border-left: 4px solid #1a3a5c;
}

.ans-card-row-name {
  display: table-cell;
  vertical-align: middle;
  font-size: 14px;
  font-weight: bold;
  color: #222;
}

.ans-card-row-btn {
  display: table-cell;
  vertical-align: middle;
  text-align: right;
  white-space: nowrap;
}

/* ── Profile block (Mayor, Board President, etc.) ── */
/* Usage: <table class="ans-profile"><tr><td class="ans-profile-photo">…</td><td class="ans-profile-bio">…</td></tr></table> */
.ans-profile {
  width: 100%;
  border: none;
  border-collapse: collapse;
}

.ans-profile-photo {
  width: 180px;
  vertical-align: top;
  padding-right: 24px;
  border: none;
}

.ans-profile-photo img {
  width: 160px;
  height: auto;
  display: block;
  border: 3px solid #1a3a5c;
}

.ans-profile-photo .ans-photo-credit {
  margin: 5px 0 0 0;
  font-size: 11px;
  color: #888;
}

.ans-profile-photo .ans-photo-credit a {
  color: #888;
}

.ans-profile-bio {
  vertical-align: top;
  border: none;
}

.ans-profile-bio h3 {
  font-size: 22px;
  color: #1a3a5c;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 2px 0;
}

.ans-profile-bio .ans-profile-subtitle {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin: 0 0 12px 0;
}

/* ── Emergency / alert callout ── */
.ans-alert {
  background: #fff3cd;
  border: 1px solid #e6b800;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 14px;
  font-weight: bold;
}

/* ── Video list items ── */
.ans-video-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ans-video-list li {
  margin: 6px 0;
  padding: 8px 10px;
  background: #f7f9fb;
  border-left: 3px solid #1a3a5c;
  font-size: 14px;
}

.ans-video-list li a {
  color: #1a3a5c;
  text-decoration: underline;
}

/* ── Utility: small muted note text ── */
.ans-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* ── Member role badges (CHAIR, V-CHAIR, etc.) ── */
.ans-role-badge {
  display: inline-block;
  background: #1a3a5c;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ans-role-badge-outline {
  display: inline-block;
  border: 1px solid #1a3a5c;
  color: #1a3a5c;
  font-size: 11px;
  font-weight: bold;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Term date — muted inline text ── */
.ans-term {
  font-size: 12px;
  color: #666;
  margin-left: 4px;
}