/* VQC 2027 — CAV 2027 palette and type, brutalist treatment: solid colour blocks,
   square corners, no borders, no shadows, no gradients. Orange is an accent only
   (thin rules, small icons, link underlines); large fills are deep blue / teal / grey.
   (conferences.i-cav.org/2027): Public Sans for UI/headings, Source Serif 4
   for prose, a deep-blue brand with a warm orange accent, card surfaces with
   soft shadows and 4px accent edges. */

:root {
  --bg: #F5F7F8;
  --surface: #FFFFFF;
  --surface-soft: #EEF3F5;
  --surface-muted: #DDE6EA;
  --text: #15262E;
  --text-soft: #34454E;
  --muted: #63727A;
  --rule: #CBD6DC;
  --rule-strong: #9DAEB8;
  --brand: #123247;
  --brand-rgb: 18, 50, 71;
  --brand-2: #0D5C73;
  --brand-link: #006D80;
  --brand-link-dark: #004E5D;
  --accent: #E8752A;
  --accent-strong: #C7501F;
  --accent-warm: #FBE7D7;
  --body-font: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --header-font: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ui-font: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono-font: 'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body { font-size: 1.0625rem; line-height: 1.68; }
code, pre, kbd, samp { font-family: var(--mono-font); }
code { background: var(--surface-soft); color: var(--brand-2); padding: 0.1em 0.35em; }

/* --- Navigation --- */
.navbar-custom {
  font-family: var(--ui-font);
  font-size: 0.9375rem;
}
.navbar-custom .navbar-brand { font-weight: 800; letter-spacing: 0.01em; color: var(--brand) !important; }
.navbar-custom .nav-link { font-weight: 600; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus { color: var(--brand-link) !important; }

/* --- Hero card --- */
.vqc-hero { margin-top: 5.5rem; margin-bottom: 1.5rem; }
.vqc-hero__card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  overflow: hidden;
  min-height: 22rem;
}
.vqc-hero--compact .vqc-hero__card { grid-template-columns: 1fr; min-height: 0; }
.vqc-hero__text { padding: 2.5rem 2.5rem 2.25rem; font-family: var(--ui-font); }
.vqc-hero--compact .vqc-hero__text { padding: 2rem 2.5rem; }
.vqc-hero__kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-
  color: var(--accent-warm); margin: 0 0 0.75rem;
}
.vqc-hero__text h1 {
  font-family: var(--header-font); font-weight: 800; font-size: 2.25rem; line-height: 1.12;
  color: #fff; margin: 0 0 1rem;
}
.vqc-hero--compact .vqc-hero__text h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.vqc-hero__dateline { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.vqc-hero__date, .vqc-hero__place {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0.75rem 1.1rem; min-width: 8.5rem;
  background: rgba(255,255,255,0.12); color: #fff; text-decoration: none;
}
.vqc-hero__date:hover, .vqc-hero__place:hover { background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }
.vqc-hero__date-month, .vqc-hero__date-year, .vqc-hero__place-detail { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: rgba(255,255,255,0.8); }
.vqc-hero__date-days, .vqc-hero__place-city { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.vqc-hero__media { position: relative; min-height: 14rem; }
.vqc-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vqc-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--brand-rgb), 0.35), rgba(var(--brand-rgb), 0)); }
@media (max-width: 991px) {
  .vqc-hero { margin-top: 4.5rem; }
  .vqc-hero__card { grid-template-columns: 1fr; }
  .vqc-hero__media { order: -1; min-height: 12rem; }
  .vqc-hero__media::after { background: linear-gradient(0deg, rgba(var(--brand-rgb), 0.45), rgba(var(--brand-rgb), 0)); }
  .vqc-hero__text { padding: 1.75rem 1.5rem; }
  .vqc-hero__text h1 { font-size: 1.75rem; }
}

/* --- Content card --- */
.vqc-main { margin-bottom: 3rem; }
.page-content-card {
  background: var(--surface); padding: 2rem 2.25rem 2.25rem;
}
@media (max-width: 575px) { .page-content-card { padding: 1.5rem 1.1rem; } }
.page-content-card > :first-child { margin-top: 0; }
.page-content-card h2, .page-content-card h3, .page-content-card h4 {
  font-family: var(--header-font); color: var(--brand); font-weight: 800;
}
.page-content-card h2 { font-size: 1.7rem; margin: 2.25rem 0 0.9rem; padding-bottom: 0.4rem; scroll-margin-top: 5rem; }
.page-content-card h3 { font-size: 1.35rem; margin: 1.6rem 0 0.6rem; }
.page-content-card h4 { font-size: 1.125rem; margin: 1.2rem 0 0.4rem; }
.page-content-card a { color: var(--brand-link); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.16em; }
.page-content-card a:hover { color: var(--brand-link-dark); }
.page-content-card ul { padding-left: 1.3rem; }
.page-content-card li { margin-bottom: 0.3rem; }
.lead-copy { font-size: 1.125rem; line-height: 1.6; color: var(--text-soft); }
.lead-copy p { margin-bottom: 0.9rem; }

/* --- Call-to-action tiles --- */
.vqc-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.9rem; margin: 0 0 1.75rem; font-family: var(--ui-font); }
.vqc-cta__item {
  display: flex; gap: 0.9rem; align-items: center;
  padding: 0.9rem 1rem; background: var(--surface-soft);
  color: var(--text) !important; text-decoration: none !important;
}
.vqc-cta__item:hover { }
.vqc-cta__icon {
  flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 0.95rem;
}
.vqc-cta__item--accent .vqc-cta__icon { background: var(--accent-strong); }
.vqc-cta__title { display: block; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }

/* --- Important dates --- */
.vqc-dates { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.5rem 0 1rem; font-family: var(--ui-font); }
.vqc-dates__item {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  padding: 0.65rem 1rem; background: var(--surface-soft);
}
.vqc-dates__label { color: var(--muted); font-size: 0.9375rem; }
.vqc-dates__value { font-weight: 700; color: var(--text); }
.vqc-dates__value s { color: var(--muted); font-weight: 400; margin-right: 0.4rem; }

/* --- People lists --- */
.vqc-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.35rem 1.5rem; padding-left: 0 !important; list-style: none; font-family: var(--ui-font); }
.vqc-people li { padding: 0.35rem 0; }
.vqc-people .affil { color: var(--muted); font-size: 0.9rem; }

/* --- Footer --- */
footer { font-family: var(--ui-font); }
footer .copyright { color: #DDE6EA !important; }


/* ===== Brutalist treatment ===== */
* { border-radius: 0 !important; box-shadow: none !important; }
.navbar-custom { background: var(--surface) !important; }
.navbar-custom .navbar-brand { background: var(--brand); color: #fff !important; padding: 0.55rem 0.9rem; font-weight: 800; }
.navbar-custom .nav-link { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; font-weight: 700; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus { background: var(--brand); color: #fff !important; }

.vqc-hero__card { background: var(--brand); }
.vqc-hero__kicker { display: inline-block; background: none; color: var(--accent); padding: 0 0 0.3rem; border-bottom: 3px solid var(--accent); margin-bottom: 1rem; }
.vqc-hero__date, .vqc-hero__place { background: var(--brand-2); border: 0; }
.vqc-hero__date { background: var(--brand-2); border-top: 4px solid var(--accent); }
.vqc-hero__date:hover { background: var(--brand-link); }
.vqc-hero__place:hover { background: var(--brand-link); }
.vqc-hero__date-month, .vqc-hero__date-year, .vqc-hero__place-detail { color: rgba(255,255,255,0.9); }
.vqc-hero__media::after { background: none; }

.page-content-card { background: var(--surface); border: 0; }
.page-content-card h2 {
  display: inline-block; background: var(--brand); color: #fff; padding: 0.35rem 0.75rem;
  border: 0; margin-bottom: 1rem;
}
.page-content-card h3 { color: var(--brand-2); }
.page-content-card a { text-decoration: none; border-bottom: 3px solid var(--accent); }
.page-content-card a:hover { background: var(--surface-soft); color: var(--brand); }

.vqc-cta { gap: 0.6rem; }
.vqc-cta__item { background: var(--brand-2); color: #fff !important; border: 0; padding: 1rem 1.1rem; }
.vqc-cta__item:hover { background: var(--brand-link); }
.vqc-cta__item--accent { background: var(--brand); }
.vqc-cta__item--accent:hover { background: var(--brand-2); }
.vqc-cta__icon { background: rgba(255,255,255,0.18); color: #fff; }
.vqc-cta__item--accent .vqc-cta__icon { background: var(--accent); }

.vqc-dates { gap: 0.4rem; }
.vqc-dates__item { background: var(--surface-soft); border: 0; padding: 0.8rem 1rem; }
.vqc-dates__item--brand { background: var(--surface-muted); }
.vqc-dates__label { color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; }
a.vqc-dates__item { border-bottom: 0 !important; }
a.vqc-dates__item:hover { background: var(--surface-muted); }
.vqc-people li { border: 0; background: var(--surface-soft); padding: 0.5rem 0.75rem; }
footer { background: var(--brand); }
