/* =========================================================
   AGENDA – shared styles (bw-agenda-shared-styles.css)
   Loaded the same way as pricing-shared-styles.css:
   <link rel="stylesheet"> in the RainFocus branding footer AND at the top
   of each agenda code block. (Never <script> – that fails silently.)

   Conventions carried over from the pricing rows:
   - Every selector is scoped under .ag-wrap so nothing collides with
     other sections or RainFocus template CSS.
   - Each modifier class has exactly ONE meaning.
   ========================================================= */

/* ---------- Row-level (RainFocus row class: homepage-agenda) ----------
   Set "homepage-agenda" as the row's CSS class in Page Builder.
   Same pattern as the pricing section: 60px grid tile embedded as a data URI,
   plus 61px top/bottom padding. Only background-image/repeat/size/position are
   set, so the row's own background colour (the RainFocus bg-color-[#F8F8F8]
   class) stays underneath the grid lines. Keep that colour class on the row.
   Row-level rules live out here, NOT inside the code block's iframe.

   Alignment with the page content: the site's content column is 1168px wide and
   centred (.flex-box-section-full-interior in the main stylesheet). The Figma grid
   assumed 1200px (20 x 60px cells), so with 60px cells the outer edges of the tile and
   the first/last cards missed the grid lines. Here the cell is 58.4px wide (1168 / 20),
   so 20 cells span the content column exactly. Cell height stays 60px so the rows keep
   their vertical alignment with the design. Horizontal position: a line sits at the
   centre of the section (50% + half a cell), which also puts a line on the content's
   left and right edges. Same values as .homepage-pricing. */
.flex-box-section-full.homepage-agenda {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAkElEQVR42u3SsQ2AMBADwIct2AC2yMwI6YkoIrEWFFSMQEPOlVvLF5lHiYjIbOXvfduOJbpLZiu9bK21zWPE3c2513UPSCONNNJII4000kgjjTTSSCONNNJII4000kgjjTTSSCONNNJII4000kgjjTTSSCONNNJII4000kgjjTTSSCON9PdZa53fu//e9/OcHnWyYxwgdkfBAAAAAElFTkSuQmCC") !important;
  background-repeat: repeat !important;
  background-size: 58.4px 60px !important;
  background-position: calc(50% + 29.2px) 0 !important;
  padding-top: 61px !important;
  padding-bottom: 61px !important;
}

/* Below 1232px the content column is no longer centred at a fixed 1168px: it fills the
   viewport minus the 32px gutters (24px under 600px). The two outer edges can't both land
   on a line at those widths, so the left edge is kept on a line and the right edge is not. */
@media (max-width: 1231px) {
  .flex-box-section-full.homepage-agenda {
    background-position: 32px 0 !important;
  }
}
@media (max-width: 599px) {
  .flex-box-section-full.homepage-agenda {
    background-position: 24px 0 !important;
  }
}

/* ---------- Component ---------- */
.ag-wrap,
.ag-wrap *,
.ag-wrap *::before,
.ag-wrap *::after {
  box-sizing: border-box;
}

/* Row container: one tile today; later rows can hold several tiles side by side */
.ag-wrap {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 32px;
  width: 100%;
  margin: 0;
  padding: 0;
  isolation: isolate; /* keeps the hover ribbon (z-index:-1) behind the cards but above the page */
}

/* Modifier: tile block sitting under another block in the same RainFocus row
   (adds the 61px gap above it; same approach as .ag-wrap--days) */
.ag-wrap.ag-wrap--spaced {
  padding-top: 61px;
}

/* Agenda Day Tile (Figma: 1199px wide, 32px padding, 32px gap, #FFFFFF) */
.ag-wrap .ag-tile {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  max-width: 1199px;
  min-height: 179px; /* Figma tile height; content is ~151px, remainder is bottom whitespace */
  padding: 32px;
  background: #FFFFFF;
}

/* Text Group (outer): column, gap 16px */
.ag-wrap .ag-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
}

/* Text Group (inner): lozenge + date */
.ag-wrap .ag-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  align-self: stretch;
  padding: 0;
}

/* Lozenge */
.ag-wrap .ag-lozenge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5.6px;
  min-height: 28px;
  padding: 2.8px 5.6px;
  background: #CFE1FD;
  border: 1.4px solid #8FB8F6;
  border-radius: 5.6px;
}

.ag-wrap .ag-lozenge__text {
  margin: 0;
  font-family: 'Atlassian Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 16.8px;
  line-height: 21.01px;
  font-feature-settings: 'liga' off, 'calt' off;
  color: #123263;
  white-space: nowrap;
}

/* Date */
.ag-wrap .ag-date {
  margin: 0;
  padding: 0;
  font-family: 'Charlie Display', 'Charlie Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
  color: #101214;
}

/* Horizontal Divider (Figma: 2px, #DDDEE1) */
.ag-wrap .ag-divider {
  align-self: stretch;
  flex: none;
  width: 100%;
  height: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #DDDEE1;
}

/* Description */
.ag-wrap .ag-desc {
  align-self: stretch;
  margin: 0;
  padding: 0;
  font-family: 'Charlie Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #101214;
}

/* =========================================================
   ROW 2 – Day cards (3 cards, 61px gap)
   ========================================================= */

/* Row container modifier: 3 equal cards, 61px gap (Figma: 3 x 359 + 2 x 61 = 1199) */
.ag-wrap.ag-wrap--days {
  align-items: stretch;
  justify-content: flex-start;
  gap: 61px;
  padding-top: 61px; /* space between row 1's tile and these cards; both blocks share one RainFocus row */
  max-width: 1199px;
  margin-left: auto;
  margin-right: auto;
}

/* Day card (Figma: 359 x 539, 32px padding, 16px gap, #FFFFFF) */
.ag-wrap .ag-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 419px; 
  padding: 32px;
  background: #FFFFFF;
}

/* Hover ribbon (Figma "movement" layer): 1px larger than the card on every side,
   conic gradient, 50% opacity, 2.5px blur. Hidden until the card is hovered.
   Shared by the row 1 tile (.ag-tile) and the row 2 cards (.ag-card). */
.ag-wrap .ag-tile::before,
.ag-wrap .ag-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(from 38.61deg at 50% 50%, #FCA700 0deg, #FCA700 72.69deg, #6A9A23 72.73deg, #6A9A23 167.89deg, #1868DB 167.93deg, #1868DB 252.67deg, #AF59E0 252.7deg, #AF59E0 360deg);
  filter: blur(2.5px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* Keyboard users: show it when anything inside the card has focus */
.ag-wrap .ag-tile:focus-within::before,
.ag-wrap .ag-card:focus-within::before {
  opacity: 0.5;
}

/* Pointer users only, so a tap on touch screens doesn't leave it stuck on */
@media (hover: hover) {
  .ag-wrap .ag-tile:hover::before,
  .ag-wrap .ag-card:hover::before {
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-wrap .ag-tile::before,
  .ag-wrap .ag-card::before {
    transition: none;
  }
}

/* Card header: lozenge stacked above the date (column, not the row 1 layout) */
.ag-wrap .ag-card .ag-head {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 16px;
}

/* Date in the cards is 24px line-height (row 1 tile is 28px) */
.ag-wrap .ag-card .ag-date {
  align-self: stretch;
  line-height: 24px;
}

/* Lozenge colour variants (base .ag-lozenge is the blue one used in row 1) */
.ag-wrap .ag-lozenge--saffron {
  background: #FCE4A6;
  border-color: #FBC828;
}
.ag-wrap .ag-lozenge--saffron .ag-lozenge__text {
  color: #693200;
}

.ag-wrap .ag-lozenge--green {
  background: #D3F1A7;
  border-color: #B3DF72;
}
.ag-wrap .ag-lozenge--green .ag-lozenge__text {
  color: #37471F;
}

.ag-wrap .ag-lozenge--purple {
  background: #EED7FC;
  border-color: #D8A0F7;
}
.ag-wrap .ag-lozenge--purple .ag-lozenge__text {
  color: #48245D;
}

/* Agenda list: each item = time (eyebrow) + title; 1px #DDDEE1 divider between items
   (16px above and below the line, per Figma's 16px column gap) */
.ag-wrap .ag-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-wrap .ag-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.ag-wrap .ag-item + .ag-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #DDDEE1;
}

/* Time: Eyebrow/Small */
.ag-wrap .ag-item__time {
  margin: 0;
  font-family: 'Charlie Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.04px;
  text-transform: uppercase;
  color: #6C6F77;
}

/* Title: Body/Large/Medium, Blue 700 */
.ag-wrap .ag-item__title {
  align-self: stretch;
  margin: 0;
  font-family: 'Charlie Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  color: #1868DB;
  text-decoration: none;
}

/* Mobile: ASSUMED values (no mobile Figma yet) */
@media (max-width: 900px) {
  .ag-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .ag-wrap .ag-tile {
    flex: none;
    min-height: 0;
    padding: 24px 20px;
    gap: 16px;
  }
  .ag-wrap .ag-head {
    gap: 12px;
  }
  /* Row 2: stack the day cards (24px gap, same as the pricing rows) */
  .ag-wrap.ag-wrap--days {
    gap: 24px;
  }
  .ag-wrap .ag-card {
    flex: none;
    width: 100%;
    min-height: 0;
    padding: 24px 20px;
  }
  .ag-wrap .ag-card .ag-head {
    gap: 12px;
  }
}
