/* Seminars for All — accessible, high-contrast stylesheet */

.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; margin: 24px 0; }
.benefit-grid article { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.benefit-grid h2, .benefit-grid h3 { margin-top: 0; }
.draft-notice { background: #fff4df; border: 2px solid #8a3f06; color: #5b2d0d; border-radius: 10px; padding: 20px; margin-bottom: 24px; }
.draft-notice p { margin: 8px 0 0; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.price-table caption { text-align: left; font-weight: 700; padding: 12px 0; }
.price-table td, .price-table th { border: 1px solid var(--border); padding: 16px; text-align: left; vertical-align: top; }
.price-table thead { background: var(--brand-light); }
.prose-wide { padding-bottom: 40px; }
.account-panel { max-width: 700px; margin: 0 auto 48px; }
.account-form { display: grid; gap: 10px; margin: 20px 0 28px; }
.account-form label { font-weight: 600; }
.account-form input:not([type=checkbox]), .account-form select, .account-form textarea { font: inherit; padding: 12px; width: 100%; border: 1px solid #707c8b; border-radius: 6px; background: white; color: var(--text); }
.account-form textarea { resize: vertical; }
.account-form .check-label { font-weight: 400; margin: 12px 0; }
.account-form button { justify-self: start; }
.account-form .form-note { margin: 0 0 8px; }
.form-error { background: #fff1f0; color: #8c1919; border: 1px solid #8c1919; padding: 16px; margin-bottom: 20px; border-radius: 6px; }
.account-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.saved-list { padding-left: 24px; }
.saved-list li { margin: 12px 0; }
.saved-list form { display: inline; margin-left: 20px; }
.recovery-code { display: block; padding: 20px; background: var(--bg-alt); border: 1px solid var(--border); overflow-wrap: anywhere; font-size: 1.1rem; margin: 20px 0; }
textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

:root {
  --brand: #0f4c81;
  --brand-dark: #0a3457;
  --brand-light: #eaf1f8;
  --accent: #b45309;
  --accent-dark: #8a3f06;
  --text: #1c2430;
  --muted: #475467;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --border: #d5dde5;
  --focus: #b45309;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.link-button { border: 0; padding: 0; background: none; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.footer-nav .link-button { color: #cfe0f2; }
.event-actions { display: flex; gap: 12px; flex-wrap: wrap; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; top: 0; color: #fff; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

h1, h2, h3 { line-height: 1.25; color: var(--brand-dark); }
h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 1.75rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
p { margin: 0 0 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--brand);
  color: #fff;
  border-bottom: 4px solid var(--accent);
}
.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: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--accent); flex: 0 0 auto; }
.brand-name { letter-spacing: -0.01em; }

.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.site-nav a.active { background: #fff; color: var(--brand-dark); }

/* Footer */
.site-footer { background: var(--brand-dark); color: #d7e2ee; margin-top: 48px; padding: 32px 0; }
.footer-brand { font-weight: 700; color: #fff; }
.footer-nav ul { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; }
.footer-nav a { color: #cfe0f2; text-decoration: underline; }
.footer-nav a:hover { color: #fff; }
.footer-legal { font-size: 0.85rem; color: #9fb4c9; margin: 0; }

/* Hero */
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 2.4rem; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 12px; max-width: 620px; }
.hero-search input { flex: 1; min-width: 220px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* Sections */
.section { margin-top: 36px; }
.section-alt { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.featured-section { padding: clamp(18px, 3vw, 30px); background: var(--brand-light); border: 1px solid #bdcede; border-top: 4px solid var(--accent); border-radius: var(--radius); }
.featured-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.featured-heading > div { flex: 1 1 400px; }
.featured-heading h2 { margin-bottom: 8px; }
.featured-heading p { margin-bottom: 0; max-width: 44rem; }
.featured-heading > a { font-weight: 700; }
.eyebrow { color: var(--accent-dark); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-section .featured-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.featured-section .listing-card { background: white; }
.featured-grid > .listing-card:only-child { display: grid; grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr); column-gap: 32px; }
.featured-grid > .listing-card:only-child > :is(.feature-label, h3, .listing-meta) { grid-column: 1 / -1; }
.featured-grid > .listing-card:only-child .listing-desc { grid-row: span 2; max-width: 48rem; }
.featured-grid > .listing-card:only-child .card-link { justify-self: start; align-self: end; }
.listing-grid .listing-card-featured { border-color: var(--accent); border-top-width: 3px; }
.feature-label { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 14px; }
.featured-badge { display: inline-block; background: #fff0d7; color: #713900; border: 1px solid #d2a66b; border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 800; }
.feature-disclosure { color: var(--muted); font-size: .8rem; }
@media (max-width: 640px) {
  .featured-grid > .listing-card:only-child { display: block; }
  .featured-section .listing-card { padding: 18px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.3;
}
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 0; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-light); color: var(--brand-dark); }
button.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Forms */
input[type="search"], input[type="email"], input[type="text"], select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: #fff;
  width: 100%;
}
label { font-weight: 600; display: block; margin-bottom: 4px; font-size: 0.9rem; }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 16px; }
.listing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.listing-card h3 a { color: var(--brand-dark); text-decoration: none; }
.listing-card h3 a:hover { text-decoration: underline; }
.listing-meta { font-size: 0.85rem; margin: 0 0 8px; color: var(--muted); }
.listing-meta span { display: inline-block; margin-right: 10px; }
.listing-meta .org { font-weight: 700; color: var(--brand); }
.listing-desc { margin: 0 0 10px; }
.listing-details { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.listing-details span { display: inline-block; margin-right: 10px; }
.card-link { font-weight: 700; margin-top: auto; }

/* Filter bar */
.filter-bar { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 20px 0 4px; }
.filter-field { flex: 1; min-width: 170px; }
.filter-actions { display: flex; gap: 8px; align-items: center; }
.result-count { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; }

/* Calendar */
.cal-month { margin-top: 28px; }
.cal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.cal-event { display: flex; gap: 14px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cal-date { font-weight: 800; color: var(--brand); min-width: 56px; font-variant-numeric: tabular-nums; }
.cal-meta { color: var(--muted); font-size: 0.85rem; }

/* Blog */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.post-card h2 { margin: 0 0 6px; }
.post-card h2 a { color: var(--brand-dark); text-decoration: none; }
.post-card h2 a:hover { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 10px; }
.post-excerpt { margin: 0 0 12px; }

/* Prose */
.prose { max-width: 44rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.page-head { padding-top: 24px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46rem; }
.org-line { color: var(--muted); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 16px 0 0; }
.breadcrumb a { color: var(--brand); }

/* Event facts */
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.event-facts > div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.event-facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.event-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }

/* Profession list */
.prof-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.prof-list a { display: inline-block; background: var(--brand-light); color: var(--brand-dark); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.prof-list a:hover { background: var(--brand); color: #fff; }

/* Digest form */
.digest-form { max-width: 420px; margin-top: 12px; }
.digest-form input:disabled { background: #eceff3; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--brand-dark);
  color: #e7eef6;
  z-index: 300;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.28);
}
.cookie-banner-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.cookie-text { margin: 0; flex: 1; min-width: 240px; font-size: 0.95rem; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-banner[hidden] { display: none; }
#cookie-accept { background: var(--accent); border-color: var(--accent); color: #fff; }
#cookie-accept:hover { background: var(--accent-dark); }
#cookie-reject { background: transparent; border-color: #fff; color: #fff; }
#cookie-reject:hover { background: rgba(255,255,255,0.14); }

/* Error page */
.error-page h1 { font-size: 2.2rem; }

.note { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.9rem; }
  .site-nav a { padding: 6px 8px; }
  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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