/* AI Engineer Melbourne 2026 — Speakers section
   Sits inside @layer theme alongside colors.css.
   Inherits typography from the site (Plus Jakarta Sans for headings, Inter for body).
   Uses design tokens from colors.css.
*/
@layer theme {

  /* --------------------------------------------------------
     Section wrapper
     -------------------------------------------------------- */
  .speakers-section {
    padding-block: 5rem 6rem;
    padding-inline: 1.5rem;
    background: var(--color-bg);
  }

  .speakers-section > h2 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin-block-end: 3.5rem;
    color: var(--color-ink);
    letter-spacing: -0.02em;
  }
  
    .speakers-section > p {
  	width: 60%;
  	margin-inline: auto;
  }
  
  .speaker-session-info {
	  margin-top: 0.5em;
	  font-size: 0.9em;
	  color: #666;
	}

  /* --------------------------------------------------------
     Card grid — responsive, no media-query breakpoints
     -------------------------------------------------------- */
  .speakers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin-inline: auto;
  }

  /* --------------------------------------------------------
     Individual card
     -------------------------------------------------------- */
  .speaker-card {
    list-style: none;
    width: 20%;                 /* fixed card width — no grow */
  }
  
  @media (max-width: 1200px) {
  	.speaker-card {
		width: 40%
		}
	}

  .speaker-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    background: transparent;
  }

  .speaker-card a:hover,
  .speaker-card a:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgb(0 0 0 / 0.08);
  }

  .speaker-card a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
  }

  /* --------------------------------------------------------
     Photo
     -------------------------------------------------------- */
  .speaker-photo {
    width: 180px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin-block-end: 2rem;
    background: var(--color-panel);
    transition: transform 0.25s ease;
  }

  .speaker-card a:hover .speaker-photo {
    transform: scale(1.04);
  }

  /* "More to come" placeholder card — same column layout as a speaker card,
     with a dashed circle in place of the photo. */
  .speaker-card--more .speaker-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    height: 100%;
  }
  .speaker-photo--placeholder {
    display: grid;
    place-items: center;
    background: transparent;
    border: 2px dashed var(--color-rule);
    color: var(--color-ink-muted);
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
  }
  .speaker-card--more .speaker-name { color: var(--color-ink-muted); }
  .speaker-more-note {
    font-size: 0.95rem;
    color: var(--color-ink-muted);
    margin: 0;
    max-width: 18ch;
  }

  /* --------------------------------------------------------
     Text
     -------------------------------------------------------- */
  .speaker-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-ink);
    margin: 0 0 0.35rem;
    line-height: 1.3;
  }

  .speaker-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    margin: 0 0 0.2rem;
    line-height: 1.4;
  }

  .speaker-company {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--color-ink-weak);
    margin: 0 0 0.85rem;
    line-height: 1.4;
  }

  .speaker-talk-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--color-ink-weak);
    margin: 0 0 1.25rem;
    line-height: 1.5;
  }

  /* --------------------------------------------------------
     Track tags — hidden until programme is fuller
     -------------------------------------------------------- */
  .speaker-tags {
    display: none;               /* re-enable when programme set */
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: auto 0 0;            /* push tags to card bottom */
  }

  .speaker-tags li {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.85em;
    border-radius: 9999px;
    background: var(--color-panel);
    color: var(--color-ink-muted);
  }

  .speaker-tags li[data-track="keynote"] {
    background: var(--color-accent);
    color: var(--color-on-accent);
  }

  .speaker-tags li[data-track="leadership"] {
    background: transparent;
    color: var(--color-ink-muted);
    border: 1px solid var(--color-rule);
  }


  /* ============================================================
     INDIVIDUAL SPEAKER PAGE
     ============================================================ */

  /* --------------------------------------------------------
     Page wrapper — two-column grid on wide screens
     -------------------------------------------------------- */
  #session-details {
    max-width: 1100px;
    margin-inline: auto;
    padding: 3rem 1.5rem 4rem;
  }

  @media (min-width: 768px) {
    #session-details {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 0 3.5rem;
      align-items: start;
      padding-block: 4rem 5rem;
    }
  }

  /* --------------------------------------------------------
     Left column — speaker hero card
     -------------------------------------------------------- */
  .speaker-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    margin-block-end: 2.5rem;
  }

  @media (min-width: 768px) {
    .speaker-hero {
      position: sticky;
      top: 2rem;
      margin-block-end: 0;
      padding: 2.5rem 1rem 2rem;
    }
  }

  .speaker-hero .speaker-photo {
    width: 180px;
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--color-panel);
    margin-block-end: 2rem;
  }

  .speaker-hero .speaker-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .speaker-hero .speaker-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-ink);
    margin: 0 0 0.35rem;
    line-height: 1.3;
  }

  .speaker-hero .speaker-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: var(--color-ink-muted);
    margin: 0 0 0.2rem;
    line-height: 1.4;
  }

  .speaker-hero .speaker-company {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--color-ink-weak);
    margin: 0 0 1rem;
    line-height: 1.4;
  }

  .speaker-hero .speaker-talk-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: normal;
    color: var(--color-ink);
    margin: 0.5rem 0 1.25rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
  }

  .speaker-hero > p {
    margin-block-start: 0.5rem;
  }

  .speaker-hero > p a {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: color 0.2s ease;
  }

  .speaker-hero > p a:hover {
    color: var(--color-ink);
  }

  /* --------------------------------------------------------
     Right column — abstract + bio
     -------------------------------------------------------- */
  #session-details main {
    min-width: 0;                      /* prevent grid blowout */
  }

  #session-abstract h3,
  .session-speaker-and-name > h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-ink);
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
  }

  .abstract-details p,
  #speaker-details p, .abstract-details ul,
  #speaker-details ul {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-ink-muted);
    margin: 0 0 1rem;
  }

  .abstract-details p:last-child,
  #speaker-details p:last-child {
    margin-block-end: 0;
  }

  #session-abstract {
    margin-block-end: 2.5rem;
    padding-block-end: 2.5rem;
    border-block-end: 1px solid var(--color-rule);
  }

  .session-speaker-and-name {
    /* bio section — sits below abstract */
  }
  
  .session-speaker-and-name + .session-speaker-and-name {
  	margin-block-start: 1em;
  }
}

/* --- promoted from conference theme to shared components --- */
/* Sub-site bindings of roles to specific components */
@layer components {

	
	
/* narrow */

	@media all and (max-width: 720px) {
	
		.speakers-grid {width: 100%}
		.speaker-card {width: 48%}
	}	
	

}
