/* Women in Tech Events: shared styles
   Body type is Atkinson Hyperlegible, designed for low-vision readability. */

:root {
  /* Michelle Brenner brand: teal, navy, red, lilac, plum as peers */
  --brand-teal: #177e89;
  --brand-navy: #003049;
  --brand-red: #db3a34;
  --brand-lilac: #9178b5;
  --brand-plum: #3a2449;

  --ink: #003049;
  --ink-soft: #385e71;
  --paper: #f6f8f9;
  --card: #ffffff;
  --line: #d8dfe3;
  --control-border: #7a93a0;
  --plum: #003049;
  --plum-dark: #003049;
  --plum-tint: #e0e6e9;
  --coral: #db3a34;
  --coral-tint: #fae5e5;
  --teal: #177e89;
  --teal-tint: #dfedee;
  --gold-tint: #f1edf5;
  --danger: #b42318;
  --danger-tint: #fae5e5;
  --success: #0f5f68;
  --success-tint: #dfedee;
  --focus: #9178b5;
  --link: #14707a;
  /* Text and button shades of the brand teal and red, darkened just enough for WCAG AA contrast */
  --teal-text: #14707a;
  --red-action: #c8322d;
  --red-action-hover: #a92a26;
  --radius: 12px;
  --radius-small: 6px;
  --shadow: 0 1px 3px rgba(0, 48, 73, 0.06);
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Josefin Sans", "Lato", sans-serif;
  --font-ui: "Montserrat", "Lato", sans-serif;
  --font-numeral: "Bebas Neue", Impact, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 6px;
}

.brand-strip span:nth-child(1) { background: var(--brand-teal); }
.brand-strip span:nth-child(2) { background: var(--brand-navy); }
.brand-strip span:nth-child(3) { background: var(--brand-red); }
.brand-strip span:nth-child(4) { background: var(--brand-lilac); }
.brand-strip span:nth-child(5) { background: var(--brand-plum); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  color: var(--teal-text);
  margin: 0 0 0.4rem;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--plum-dark);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 2rem 0 0.75rem;
}

h3 {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1.25rem 0 0.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--plum);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-small);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
}

/* ---------- Header and footer ---------- */

.site-header {
  background: var(--plum-dark);
  color: #fff;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  padding-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--red-action);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}

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

.site-nav a {
  color: #f4ecf7;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  display: inline-block;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--plum-dark);
  font-weight: 700;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--ink-soft);
}

/* ---------- Layout ---------- */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.narrow {
  max-width: 820px;
}

.hero {
  padding: 2rem 0 1rem;
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0 0 1.25rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-small);
  border: 2px solid var(--red-action);
  background: var(--red-action);
  color: #fff;
  font: inherit;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--red-action-hover);
  border-color: var(--red-action-hover);
  color: #fff;
}

.button.secondary {
  background: transparent;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.button.secondary:hover {
  background: var(--plum-tint);
  color: var(--brand-navy);
}

.button.small {
  min-height: 36px;
  padding: 0.3rem 0.85rem;
  font-size: 0.95rem;
}

.button.danger {
  background: var(--danger);
  border-color: var(--danger);
}

.button.success {
  background: var(--success);
  border-color: var(--success);
}

.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.notice {
  border-radius: var(--radius-small);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  background: var(--gold-tint);
  border: 1px solid #ecd9a3;
}

.notice.success {
  background: var(--success-tint);
  border-color: #b9e1c8;
}

.notice.error {
  background: var(--danger-tint);
  border-color: #f5c2bd;
}

.notice.info {
  background: var(--teal-tint);
  border-color: #b9dfdb;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.92rem;
}

/* ---------- Badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0;
  padding: 0;
  list-style: none;
}

.badge {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--plum-tint);
  color: var(--plum-dark);
}

.badge.free {
  background: var(--success-tint);
  color: var(--brand-navy);
}

.badge.paid {
  background: var(--gold-tint);
  color: var(--brand-plum);
}

.badge.virtual {
  background: #e0d9ea;
  color: var(--brand-plum);
}

.badge.hybrid {
  background: var(--coral-tint);
  color: #8f1f1a;
}

.badge.access {
  background: #eef0fb;
  color: #2b3a8f;
  font-weight: 400;
}

.badge.pending {
  background: var(--gold-tint);
  color: #6b4b00;
}

.badge.approved {
  background: var(--success-tint);
  color: var(--success);
}

.badge.rejected {
  background: var(--danger-tint);
  color: var(--danger);
}

/* ---------- Events page ---------- */

.events-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .events-layout {
    grid-template-columns: 1fr;
  }
}

.filters {
  position: sticky;
  top: 1rem;
}

@media (max-width: 900px) {
  .filters {
    position: static;
  }
}

.filters details {
  border-top: 1px solid var(--line);
  padding: 0.6rem 0;
}

.filters details:first-of-type {
  border-top: 0;
}

.filters summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.filters fieldset {
  border: 0;
  margin: 0;
  padding: 0.25rem 0 0;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.filter-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

.filters .toggle-filters {
  display: none;
}

@media (max-width: 900px) {
  .filters .toggle-filters {
    display: inline-flex;
  }
  .filters.collapsed .filter-body {
    display: none;
  }
}

.check-option {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.2rem 0;
  font-size: 0.97rem;
}

.check-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.25rem;
  accent-color: var(--plum);
  flex-shrink: 0;
}

.view-tabs {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
  gap: 0.2rem;
}

.view-tabs button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-soft);
  min-height: 40px;
}

.view-tabs button[aria-selected="true"] {
  background: var(--brand-navy);
  color: #fff;
}

.results-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.month-heading {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--line);
}

.month-heading:first-child {
  margin-top: 0;
}

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.event-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.date-block {
  background: var(--brand-navy);
  color: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 0.5rem 0.25rem;
  line-height: 1.1;
}

.date-block .month {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.date-block .day {
  display: block;
  font-family: var(--font-numeral);
  font-size: 2.3rem;
  font-weight: 400;
  line-height: 1;
  margin: 0.15rem 0;
}

.date-block .weekday {
  display: block;
  font-size: 0.8rem;
}

.event-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.event-card h3 a {
  text-decoration: none;
  color: var(--plum-dark);
}

.event-card h3 a:hover {
  text-decoration: underline;
  color: var(--coral);
}

.event-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.event-summary {
  margin: 0.4rem 0 0;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

#map-view {
  height: 600px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}

@media (max-width: 600px) {
  #map-view {
    height: 440px;
  }
}

#calendar-view .fc {
  --fc-border-color: var(--line);
  --fc-button-bg-color: var(--brand-navy);
  --fc-button-border-color: var(--brand-navy);
  --fc-button-hover-bg-color: #385e71;
  --fc-button-hover-border-color: #385e71;
  --fc-button-active-bg-color: var(--brand-teal);
  --fc-button-active-border-color: var(--brand-teal);
  --fc-today-bg-color: var(--gold-tint);
  --fc-event-bg-color: var(--brand-navy);
  --fc-event-border-color: var(--brand-navy);
  background: var(--card);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

#calendar-view .fc .fc-toolbar-title {
  font-family: var(--font-display);
  color: var(--plum-dark);
}

#calendar-view .fc-event {
  cursor: pointer;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.92rem;
  margin: 0.5rem 0 1rem;
}

.legend-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: -1px;
}

/* ---------- Detail pages ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.fact-list dt {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.fact-list dd {
  margin: 0.1rem 0 0;
}

#detail-map {
  height: 240px;
  border-radius: var(--radius-small);
  margin-top: 1rem;
}

.description {
  white-space: pre-line;
}

/* ---------- Forms ---------- */

form .field {
  margin-bottom: 1.15rem;
}

form label,
form legend {
  font-weight: 700;
  display: block;
  margin-bottom: 0.3rem;
}

form .hint {
  display: block;
  color: var(--ink-soft);
  font-size: 0.93rem;
  font-weight: 400;
  margin-top: -0.15rem;
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--control-border);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.7rem;
  min-height: 44px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--plum);
}

[aria-invalid="true"] {
  border-color: var(--danger) !important;
}

.field-error {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

fieldset.group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 0.25rem;
  margin: 0 0 1.5rem;
  background: var(--card);
}

fieldset.group > legend {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--plum-dark);
  padding: 0 0.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1rem;
}

@media (max-width: 640px) {
  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.15rem 1rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.talk-entry {
  border: 1px dashed #cfc6bb;
  border-radius: var(--radius-small);
  padding: 0.85rem 1rem 0.25rem;
  margin-bottom: 1rem;
  background: #fffdfa;
}

.talk-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.talk-entry-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.copy-box {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.copy-box input {
  flex: 1 1 260px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

/* ---------- Speakers ---------- */

.speaker-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.speaker-card h3 {
  margin: 0;
}

.speaker-card h3 a {
  color: var(--plum-dark);
  text-decoration: none;
}

.speaker-card h3 a:hover {
  text-decoration: underline;
}

.speaker-card .headline {
  margin: 0.1rem 0 0.4rem;
  color: var(--ink-soft);
}

.talk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.talk-list li {
  border-left: 4px solid var(--brand-lilac);
  padding-left: 0.9rem;
}

.talk-list h3 {
  margin: 0 0 0.25rem;
}

/* ---------- Host guide ---------- */

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

.guide-toc {
  position: sticky;
  top: 1rem;
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .guide-toc {
    position: static;
  }
}

.guide-toc ol {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

.guide-toc li {
  margin: 0.25rem 0;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.checklist li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

.checklist label {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  cursor: pointer;
}

.checklist input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.25rem;
  accent-color: var(--plum);
  flex-shrink: 0;
}

.checklist input:checked + span {
  color: var(--ink-soft);
  text-decoration: line-through;
}

.progress {
  height: 10px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 0.25rem;
}

.progress-fill {
  height: 100%;
  background: var(--brand-teal);
  width: 0;
  transition: width 0.2s ease;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1.5rem;
}

.tool-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.75rem 0.9rem;
}

.tool-grid a {
  font-weight: 700;
}

.tool-grid p {
  margin: 0.2rem 0 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.callout {
  border: 1px solid #e3cfe0;
  background: var(--gold-tint);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  margin: 1rem 0;
}

/* ---------- Moderation ---------- */

.queue-item {
  margin-bottom: 1rem;
}

.queue-item header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.queue-item h3 {
  margin: 0;
}

.queue-item pre {
  white-space: pre-wrap;
  font-family: inherit;
  background: var(--paper);
  border-radius: var(--radius-small);
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.queue-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.queue-tabs button {
  font: inherit;
  font-weight: 700;
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  min-height: 40px;
}

.queue-tabs button[aria-selected="true"] {
  border-color: var(--plum);
  background: var(--plum-tint);
}

.count-pill {
  display: inline-block;
  background: var(--red-action);
  color: #fff;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0 0.45rem;
  margin-left: 0.3rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .filters,
  .button-row {
    display: none;
  }
}

/* ---------- About page cost ---------- */

.cost-total {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--ink-soft);
}

.cost-amount {
  font-family: var(--font-numeral);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--brand-navy);
}
