/* biome-ignore-all lint/style/noDescendingSpecificity: rules are grouped by component, not by specificity; the flagged pairs never match the same element. */
/* Summit (WS-11 stage 5, D-267): corporate and B2B conferences. Loaded after theme.css only while
   the Summit style variation (styles/summit.json) is active. Presets, fonts and the radii come from
   the variation; this file adds what theme.json can't express: mono labels, cards, the dense room
   table, the blueprint grid and the header and announcement as the design draws them
   (docs/design/templates-src/summit.py). */
:root {
  --amx-sm-mono: var(--wp--preset--font-family--mono);
  --amx-sm-card: var(--wp--custom--radius--card);
}

/* No italic accents: headings are one weight and one colour. */
h1 em,
h2 em {
  font-style: normal;
  color: inherit;
}

/* Eyebrows: mono, uppercase, an accent square before them. */
.amx-sm-eyebrow,
.amx-kicker {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font: 500 0.78rem / 1.3 var(--amx-sm-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--amx-color-primary-text);
}
.amx-sm-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--amx-color-accent);
}
.amx-sm-lead,
.amx-lead {
  font: 400 var(--wp--preset--font-size--large) / 1.5 var(--wp--preset--font-family--body);
  color: var(--amx-color-text-muted);
  max-width: 60ch;
}

/* Announcement bar as the dark utility strip. */
.wp-block-amx-announcement {
  background: var(--amx-color-text);
  color: var(--amx-color-background);
  border: 0;
  font-family: var(--amx-sm-mono);
  font-size: 0.78rem;
}
.wp-block-amx-announcement .amx-tag {
  color: inherit;
}

/* Header B: logo left with the four-square mark, menu and button right. */
.amx-header {
  border-bottom: 1px solid var(--amx-color-border);
}
.amx-header-row.is-centered {
  grid-template-columns: auto 1fr auto;
}
.amx-header-row.is-centered .amx-wordmark {
  order: -1;
  text-align: left;
}
.amx-header-row.is-centered .amx-nav {
  justify-self: end;
}
.amx-header-row .amx-from {
  display: none;
}
.amx-wordmark a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}
.amx-wordmark a::before {
  content: "";
  width: 25px;
  height: 25px;
  flex: none;
  background:
    linear-gradient(var(--amx-color-primary), var(--amx-color-primary)) 0 0 / 11px 11px no-repeat,
    linear-gradient(var(--amx-color-accent), var(--amx-color-accent)) 14px 0 / 11px 11px no-repeat,
    linear-gradient(var(--amx-color-text), var(--amx-color-text)) 0 14px / 11px 11px no-repeat,
    linear-gradient(var(--amx-color-primary), var(--amx-color-primary)) 14px 14px / 11px 11px
    no-repeat;
}
@media (max-width: 781px) {
  .amx-header-row.is-centered {
    grid-template-columns: 1fr auto auto;
  }
}

/* Sections: a hairline between them instead of the ink rule. */
.amx-section {
  border-top: 1px solid var(--amx-color-border);
}
.amx-sm-head {
  gap: 1rem 2rem;
  margin-bottom: 2.25rem;
}
.amx-sm-head-text > * {
  margin-block: 0.75rem 0;
}
.amx-sm-head-text > :first-child {
  margin-top: 0;
}
.amx-sm-head h2,
.amx-subsection .amx-section-head h2 {
  font-size: var(--wp--preset--font-size--xx-large);
}
.amx-section-head,
.amx-page-head {
  border-bottom-color: var(--amx-color-border);
}
.amx-section-head .amx-section-number {
  font: 500 0.78rem / 1 var(--amx-sm-mono);
  color: var(--amx-color-primary-text);
}
.amx-more,
.amx-section-head .amx-more {
  font-weight: 600;
}
.amx-more a {
  text-decoration: none;
}

/* Hero with the blueprint grid and the "At a glance" card. */
.amx-sm-hero {
  position: relative;
  isolation: isolate;
  padding-top: var(--wp--preset--spacing--70);
  padding-bottom: var(--wp--preset--spacing--70);
}
.amx-sm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--amx-color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--amx-color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
  mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.amx-sm-hero-cols {
  gap: 2rem 4rem;
}
.amx-hero .amx-event-title {
  margin-block: 1.25rem;
  letter-spacing: -0.03em;
}
.amx-hero .amx-event-description {
  font: 400 var(--wp--preset--font-size--large) / 1.5 var(--wp--preset--font-family--body);
  color: var(--amx-color-text-muted);
}
.amx-sm-glance {
  background: var(--amx-color-background);
  border: 1px solid var(--amx-color-border-strong);
  border-radius: var(--amx-sm-card);
  overflow: hidden;
}
.amx-sm-glance > * {
  margin: 0;
}
.amx-sm-glance-head {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--amx-color-border);
  background: var(--amx-color-surface);
}
.amx-sm-glance-head > * {
  margin: 0;
}
.amx-sm-glance-title {
  font: 500 0.78rem / 1.3 var(--amx-sm-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.amx-sm-glance .amx-event-facts > div {
  padding: 0.8rem 1.25rem;
  border-top: 0;
  border-bottom: 1px solid var(--amx-color-border);
}
.amx-sm-buy {
  padding: 1.1rem 1.25rem;
}
.amx-sm-buy .amx-ticket-button {
  flex-direction: column;
  align-items: stretch;
}
.amx-sm-buy .amx-from {
  display: inline;
}

/* Facts and tags in mono. */
.amx-event-facts dt,
.amx-facts dt {
  font: 400 0.78rem / 1.6 var(--amx-sm-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.amx-tag {
  font: 500 0.75rem / 1 var(--amx-sm-mono);
  padding: 0.3rem 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.amx-zone,
.amx-event-datetime {
  font-family: var(--amx-sm-mono);
  font-size: 0.8125rem;
}

/* Ticket types as cards. */
.amx-tiers {
  border: 0;
  gap: 1rem;
}
.amx-tier {
  background: var(--amx-color-background);
  border: 1px solid var(--amx-color-border);
  border-radius: var(--amx-sm-card);
  padding: 1.5rem;
}
@media (min-width: 64rem) {
  .is-layout-columns .amx-tier,
  .is-layout-columns .amx-tier:first-child {
    border: 1px solid var(--amx-color-border);
    padding: 1.5rem;
  }
}
.amx-tier-name {
  font-size: var(--wp--preset--font-size--large);
}
.amx-price {
  font: 600 2rem / 1 var(--wp--preset--font-family--body);
  letter-spacing: -0.02em;
}
.is-layout-list .amx-tier {
  padding: 1rem 1.25rem;
}

/* Programme: mono times, the dense room table, square save buttons. */
.amx-slot-time,
.amx-saved time {
  font: 400 0.8125rem / 1.9 var(--amx-sm-mono);
  font-variant-numeric: normal;
}
.amx-slot-title {
  font: 600 1.0625rem / 1.35 var(--wp--preset--font-family--body);
}
.amx-day-head h3 {
  font: 500 0.78rem / 1.4 var(--amx-sm-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.amx-rooms {
  border: 1px solid var(--amx-color-border);
  border-radius: var(--amx-sm-card);
  background: var(--amx-color-background);
}
.amx-rooms th,
.amx-rooms td {
  border-right: 1px solid var(--amx-color-border);
  padding: 0.875rem 1rem;
}
.amx-rooms thead th {
  background: var(--amx-color-surface);
  border-bottom-color: var(--amx-color-border);
  font: 500 0.75rem / 1.3 var(--amx-sm-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amx-color-text-muted);
}
.amx-rooms tbody th {
  font: 400 0.8125rem / 1.3 var(--amx-sm-mono);
  color: var(--amx-color-text-muted);
}
.amx-rooms td a {
  font: 600 0.97rem / 1.35 var(--wp--preset--font-family--body);
  text-decoration: none;
}
.amx-rooms .is-break {
  background: var(--amx-color-surface);
  font-weight: 600;
}
.amx-my-agenda,
.amx-box {
  border-color: var(--amx-color-border-strong);
  border-radius: var(--amx-sm-card);
}

/* People: square tiles with the grid and initials, an accent bar. */
.amx-tile {
  aspect-ratio: 1;
  background:
    linear-gradient(var(--amx-color-border) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--amx-color-border) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--amx-color-surface);
  color: var(--amx-color-primary-text);
  border: 1px solid var(--amx-color-border);
  border-radius: var(--amx-sm-card);
}
.amx-tile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  height: 6px;
  background: var(--amx-color-accent);
}
.amx-tile .amx-monogram {
  inset: 0;
  display: grid;
  place-items: center;
  font: 600 2.5rem / 1 var(--wp--preset--font-family--body);
  letter-spacing: -0.02em;
}
.amx-person-name {
  font: 600 1.0625rem / 1.3 var(--wp--preset--font-family--body);
}
.amx-monogram,
.amx-person img {
  border-radius: var(--wp--custom--radius--control);
}

.amx-speakers.is-layout-grid .amx-people {
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 40%), 1fr));
  gap: 1.5rem 0.875rem;
}

/* Venue: the block's own label as the eyebrow, the name as a heading. */
.wp-block-amx-event-venue .amx-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--amx-color-accent);
}
.amx-event-venue strong {
  font: 600 var(--wp--preset--font-size--xx-large) / 1.1 var(--wp--preset--font-family--heading);
  letter-spacing: -0.02em;
}

/* Sponsors: a wall of equal cells, names in bold. */
.amx-sponsors.is-layout-wall .amx-sponsor {
  min-height: 4.75rem;
  color: var(--amx-color-text-muted);
}
.amx-tier-row .amx-sponsor > *,
.amx-tier-row .amx-sponsor > a {
  border-radius: var(--amx-sm-card);
}

/* Questions */
.wp-block-details summary {
  font: 600 1.0625rem / 1.4 var(--wp--preset--font-family--body);
}

/* Closing band: one line beside the button. */
.amx-sm-cta {
  gap: 1.5rem 3rem;
  align-items: center;
}
.amx-sm-cta-text > * {
  margin-block: 0.5rem 0;
}
.amx-cta h2 {
  font-size: var(--wp--preset--font-size--xx-large);
  max-width: 22ch;
}

/* Quote without italics. */
.amx-quote-text {
  font: 600 var(--wp--preset--font-size--xx-large) / 1.2 var(--wp--preset--font-family--heading);
}

/* Cover art and maps get the card corners. */
.amx-cover-art svg {
  border-radius: var(--amx-sm-card);
}

/* The ticket button from embed.js: 46 px tall like the site's buttons. */
automatrix-tickets::part(button) {
  min-height: 46px;
}
