/* ==============================================================
   STYLE.CSS
   One file controls the look of the whole site. It is plain CSS —
   no build step, no framework, nothing to install or update.

   Quick things you can safely change:
   - Colors: edit the values in :root below.
   - Fonts: edit --font-heading / --font-body below.
   - Page width: edit --content-width below.
   Everything else follows from those variables.
   ============================================================== */

:root {
  /* Colors */
  --color-ink:      #2b2b2b;   /* headings, nav text — dark gray */
  --color-text:     #3d3d3d;   /* body text — dark gray */
  --color-paper:    #ffffff;   /* page background */
  --color-panel:    #f4f5f3;   /* subtle background panels */
  --color-accent:   #a4562f;   /* links, active tab, small accents */
  --color-button:   #6b7280;   /* button background — medium gray */
  --color-button-hover: #565d68; /* button background on hover, slightly darker */
  --color-rule:     #dfe1de;   /* thin dividing lines */


  /* Brand network colors, sampled from the logo */
  --brand-red:    #f01804;
  --brand-green:  #1e603b;
  --brand-gray:   #797d7e;
  --brand-gold:   #fdac00;
  --brand-navy:   #10066a;


  /* Type — a single elegant sans-serif, built into every major OS, so
     nothing has to load from the internet and nothing can go
     offline or disappear. Used for headings and body text alike. */
  --font-heading: Optima, "Segoe UI", -apple-system, BlinkMacSystemFont, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: Optima, "Segoe UI", -apple-system, BlinkMacSystemFont, "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --content-width: 960px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / nav ---- */

.site-header {
  border-bottom: 1px solid var(--color-rule);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 12px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo-img {
  display: block;
  height: 70px;
  width: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-ink);
}

.nav-link-active {
  color: var(--color-ink);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}

/* ---- Hero image ---- */
/* Every page shows a full-width banner right under the nav. If a page
   sets a "hero_image" in its front matter, that photo is shown. If not,
   a plain color banner is shown instead — so pages look right even
   before someone adds a real photo. */

.hero {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-fallback {
  background: linear-gradient(135deg, var(--color-ink), var(--color-accent));
}

@media (max-width: 560px) {
  .hero { height: 200px; }
}

/* ---- Page content ---- */

.page-content {
  padding: 48px 24px 64px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--color-ink);
  margin: 0 0 24px;
}

.page-content h2 {
  font-family: var(--font-heading);
  color: var(--color-ink);
  font-size: 24px;
  margin-top: 40px;
}

.page-content h3 {
  color: var(--color-ink);
  font-size: 19px;
}

.page-content a {
  color: var(--color-accent);
}

.page-content ul, .page-content ol {
  padding-left: 22px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

/* If a table has too many columns to fit a phone screen, let it scroll
   sideways on its own rather than forcing the whole page wider. */
@media (max-width: 560px) {
  .page-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.page-content th, .page-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-rule);
}

.page-content th {
  color: var(--color-ink);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--color-panel);
  border-left: 3px solid var(--color-accent);
}

/* ---- Side image: headline + text on the left, photo on the right ---- */

.side-image {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 40px 0;
}

.side-image-text {
  flex: 1 1 280px;
}

.side-image-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 14px;
}

.side-image-body {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}

.side-image-photo {
  flex-shrink: 0;
  height: var(--side-image-height, 260px);
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 0px;
}

@media (max-width: 700px) {
  .side-image {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .side-image-photo {
    height: auto;
    width: 100%;
    order: -1;
  }
}


/* ---- Past events: one card per event, with a photo grid and meta row ---- */

.event {
  padding: 32px 0;
  border-bottom: 1px solid var(--color-rule);
}

.event:first-of-type {
  padding-top: 8px;
}

.event:last-of-type {
  border-bottom: none;
}

.event-title {
  margin: 0 0 8px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--color-text);
}

.event-list {
  column-gap: 20px;
  row-gap: 4px;
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--color-text);
}

.event-meta strong {
  color: var(--color-ink);
}

.event-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.event-photos img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.button {
  display: inline-block;
  background: var(--color-button);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  padding: 12px 22px;
  border-radius: 3px;
  font-weight: 600;
}

.page-content a.button {
  color: #fff;
}

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

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-rule);
  padding: 28px 24px;
  color: #6b7683;
  font-size: 14px;
}

/* ---- Mobile ---- */

@media (max-width: 560px) {
  .page-title { font-size: 27px; }
  .header-row { flex-direction: column; align-items: flex-start; }
}

/* ---- People grid: round headshots + names ---- */

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 28px 20px;
  margin: 32px 0;
}

.person {
  text-align: center;
}

.person-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 12px;
}

.person-name {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink);
}

.person-role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--color-text);
}

/* ---- Features grid: showcase conference elements without numbers ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 560px) {
  .person-photo { width: 92px; height: 92px; }
}


.feature {
  padding: 22px 22px 24px;
  background: var(--color-panel);
  border-top: 3px solid var(--brand-gray);
  border-radius: 8px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-ink);
}

.feature-text {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.55;
}

/* Color variants for the top accent bar — cycle through the brand palette */
.feature.c-red   { border-top-color: var(--brand-red); }
.feature.c-green { border-top-color: var(--brand-green); }
.feature.c-gray  { border-top-color: var(--brand-gray); }
.feature.c-gold  { border-top-color: var(--brand-gold); }
.feature.c-navy  { border-top-color: var(--brand-navy); }



/* ---- Standout: large centered event title / date / location ---- */

.standout {
  text-align: center;
  margin: 48px 0;
  padding: 8px 24px;
}

.standout-title {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.15;
  margin: 0 0 14px;
}

.standout-meta {
  font-size: 20px;
  color: var(--color-text);
  margin: 4px 0;
}

.standout-meta.accent {
  color: var(--color-accent);
  font-weight: 600;
}

.standout-text {
  font-size: 18px;
  color: var(--color-text);
  margin: 4px 0;
  font-weight: 500;
}

@media (max-width: 560px) {
  .standout-title { font-size: 30px; }
  .standout-meta  { font-size: 16px; }
}

/* ---- Sponsor logo grid ---- */

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center;
  gap: 32px;
  margin: 32px 0;
}

.sponsor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.sponsor-logo {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.sponsor:hover .sponsor-logo {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 560px) {
  .sponsors-grid { gap: 24px; }
  .sponsor-logo { max-height: 48px; }
}


/* ---- Centered image: single picture, centered, width set per use ---- */

.centered-image {
  margin: 32px 0;
  text-align: center;
}

.centered-image img {
  display: inline-block;
  width: var(--image-width, 600px);
  max-width: 100%;      /* never wider than the column, even on phones */
  height: auto;
}

.centered-image figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text);
}

/* ---- Map: interactive embedded Google Map, full column width ---- */

.map-embed {
  margin: 32px 0;
  width: 100%;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: var(--map-height, 400px);
  border: 0;
  border-radius: 4px;
}

@media (max-width: 560px) {
  .map-embed iframe { height: 300px; }
}

/* ---- Callout: highlighted box with a colored accent bar ---- */

.callout {
  margin: 32px 0;
  padding: 20px 24px;
  background: var(--color-panel);
  border-left: 5px solid var(--callout-color, var(--color-accent));
  border-radius: 6px;
}

.callout-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
}

.callout p {
  margin: 0 0 10px;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Color variants, using your brand palette */
.callout.c-red   { --callout-color: var(--brand-red); }
.callout.c-green { --callout-color: var(--brand-green); }
.callout.c-gold  { --callout-color: var(--brand-gold); }
.callout.c-navy  { --callout-color: var(--brand-navy); }
.callout.c-gray  { --callout-color: var(--brand-gray); }

