/* CAN Annual Meeting 2027 — shared styles (v2)
   Drop this in the site root alongside the HTML files.
   Pages link via <link rel="stylesheet" href="styles.css"> */

:root {
  /* CAN brand palette */
  --can-red:    #e21f26;
  --can-yellow: #fee601;
  --can-green:  #75b843;
  --can-blue:   #4765ae;
  --can-purple: #bb90c2;

  /* Primary theme = CAN blue (red kept reserved for warnings/errors only) */
  --teal:       #4765ae;          /* primary */
  --teal-dark:  #2e4a8a;          /* darker primary, used for nav */
  --teal-mid:   #8fa3d1;          /* lighter primary */
  --teal-light: #e6ebf6;          /* pale primary tint */
  --teal-tint:  #f3f5fb;          /* very pale primary background */
  --accent:     #75b843;          /* CAN green for accents/pinned */
  --text: #15201F;
  --text-muted: #5a6a6e;
  --text-light: #8a9499;
  --border: #d8dfe1;
  --border-light: #ececec;
  --bg: #FAF8F4;
  --bg-white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(15,63,77,.04);
  --shadow-md: 0 4px 16px -6px rgba(15,63,77,.08);
  --shadow-lg: 0 12px 32px -12px rgba(15,63,77,.15);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--teal); }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
nav.site-nav {
  background: var(--teal-dark);
  color: #fff;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand {
  font-family: var(--serif);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-brand .year {
  font-size: 10.5px;
  opacity: .7;
  font-family: var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-tabs { display: flex; align-items: stretch; margin-left: auto; gap: .25rem; }
.nav-tabs a, .nav-tabs button {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.7);
  text-decoration: none; font-size: 13px;
  font-family: var(--sans);
  padding: 0 .9rem;
  display: flex; align-items: center;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.nav-tabs a:hover, .nav-tabs button:hover { color: #fff; }
.nav-tabs a.active, .nav-tabs button.active {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.7);
}
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: 13px;
  text-decoration: none;
  margin-left: auto;
  padding: 6px 10px;
}
.nav-link:hover { color: #fff; }
.nav-toggle {
  display: none;
  background: none; border: none; color: #fff;
  margin-left: auto; padding: 8px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-tabs {
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--teal-dark);
    flex-direction: column;
    margin: 0;
    padding: .25rem 0 .75rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: none;
  }
  .nav-tabs.open { display: flex; }
  .nav-tabs a, .nav-tabs button {
    padding: 12px 1.25rem;
    width: 100%;
    justify-content: flex-start;
    border-bottom: none;
    border-left: 3px solid transparent;
  }
  .nav-tabs a.active, .nav-tabs button.active {
    border-bottom: none;
    border-left-color: #fff;
    background: rgba(255,255,255,.05);
  }
}

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 70%);
  color: #fff;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.08), transparent 50%),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(255,255,255,.02) 60px, rgba(255,255,255,.02) 120px);
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .75; margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  line-height: 1.1; margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: italic; opacity: .9; }
.hero p.lede { font-size: 16px; opacity: .85; margin-bottom: 2rem; line-height: 1.7; }
.hero-meta {
  display: flex; justify-content: center; gap: 1.5rem 2.5rem;
  flex-wrap: wrap; font-size: 13px; opacity: .8;
  margin-bottom: 2.25rem; letter-spacing: .02em;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 12px 1.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  min-height: 44px;
  line-height: 1;
}
.btn-primary { background: #fff; color: var(--teal-dark); }
.btn-primary:hover { background: #f3f3f3; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-teal:disabled, .btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: var(--teal-light); color: var(--teal-dark); border-color: #b0d4e0; }
.btn-ghost:hover { background: #d6ebf2; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); }
.btn-sm { padding: 8px 1rem; font-size: 13px; min-height: 36px; }

/* ── LAYOUT / CONTAINERS ───────────────────────────────────────────────── */
.container { max-width: 1040px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.section { padding: 3rem 1.5rem; max-width: 1040px; margin: 0 auto; }
@media (max-width: 600px) { .section { padding: 2rem 1.25rem; } }

.divider { border: none; border-top: 1px solid var(--border-light); }

/* ── CARDS ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.1rem; color: var(--teal-dark);
  margin-bottom: .5rem;
}
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); font-weight: 500;
}
.h-serif {
  font-family: var(--serif); font-weight: 400;
  color: var(--teal-dark);
  letter-spacing: -.005em;
}
h1.h-serif { font-size: clamp(1.6rem, 4vw, 2rem); }
h2.h-serif { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h3.h-serif { font-size: 1.15rem; }

/* ── FORM CONTROLS (shared) ────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field-row.full { grid-template-columns: 1fr; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .field-row, .field-row.three { grid-template-columns: 1fr; } }
label.field-label { font-size: 13px; font-weight: 500; }
label.field-label .opt { font-weight: 400; color: var(--text-light); font-size: 12px; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 44px;
}
textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,100,120,.12);
}
input:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; background: var(--bg); }

.radio-opt, .check-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 14px; margin-bottom: 7px;
  min-height: 44px;
}
.radio-opt:hover, .check-opt:hover { border-color: var(--teal-mid); background: var(--teal-tint); }
.radio-opt input, .check-opt input { width: auto; margin-top: 3px; flex-shrink: 0; accent-color: var(--teal); }
.check-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }

/* ── BANNERS / FEEDBACK ─────────────────────────────────────────────────── */
.banner {
  display: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 14px; line-height: 1.5;
}
.banner.show { display: block; }
.banner.success { background: #eaf5ef; border: 1px solid #a3d4b8; color: #2d7a4f; }
.banner.error   { background: #fef0f0; border: 1px solid #f5b8b8; color: #8a2222; }
.banner.info    { background: var(--teal-tint); border: 1px solid #c2e0e8; color: var(--teal-dark); }

.spinner {
  display: inline-block; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -2px; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
footer.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 12.5px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
}

/* ── LOGO ──────────────────────────────────────────────────────────────── */
.nav-brand img.logo {
  height: 32px; width: auto; display: block;
  background: #fff; padding: 3px 4px; border-radius: 4px;
  flex-shrink: 0;
}
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand-text .org { font-size: 13px; font-weight: 400; }
.nav-brand-text .year { font-size: 10px; opacity: .7; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); margin-top: 2px; }

/* CAN accent stripe (top of nav, subtle) */
nav.site-nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(to right,
    var(--can-blue) 0%, var(--can-blue) 25%,
    var(--can-green) 25%, var(--can-green) 50%,
    var(--can-yellow) 50%, var(--can-yellow) 75%,
    var(--can-purple) 75%, var(--can-purple) 100%);
}
nav.site-nav { position: sticky; }

/* Visa info callout */
.callout-info {
  background: var(--teal-tint);
  border-left: 3px solid var(--can-blue);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 1rem 0;
}
.callout-info a { color: var(--can-blue); font-weight: 500; }
.callout-info strong { color: var(--text); font-weight: 500; }

/* Status pill: "Not yet invited" */
.status-Notyetinvited { background:#eef0f3; color:#566; }
