/* Agenda layout options (programme-1.php / programme-2.php). Uses the site's existing colour variables. */
.ag { --d1: var(--deep-navy, #0B1F3B); --d2: var(--hgm-blue, #0056BB); --d3: var(--genomics-blue, #2196F3); --d4: var(--genome-light, #8BD7FF); }
.ag-day-1 { --c: var(--d1); --ct: #fff; --tint: #E8EDF4; }
.ag-day-2 { --c: var(--d2); --ct: #fff; --tint: #E3EDF9; }
.ag-day-3 { --c: var(--d3); --ct: var(--deep-navy, #0B1F3B); --tint: #E5F2FD; }
.ag-day-4 { --c: var(--d4); --ct: var(--deep-navy, #0B1F3B); --tint: #EAF7FF; }
.ag-tag { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
.ag-note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ag-room { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); }
.ag-title { font-family: var(--display); font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.ag-time { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.ag-intro { max-width: 70ch; color: var(--muted); }

/* ===== Option 1: day columns x time bands ===== */
.ag1 { margin-top: 40px; overflow-x: auto; }
.ag1-grid { display: grid; grid-template-columns: 110px repeat(4, minmax(210px, 1fr)); gap: 12px; min-width: 1000px; }
.ag1-head { border-radius: 10px; padding: 14px 16px; background: var(--c); color: var(--ct); }
.ag1-head strong { display: block; font-family: var(--display); font-size: 16px; }
.ag1-head span { display: block; font-size: 12px; opacity: .85; }
.ag1-band { align-self: stretch; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 10px; padding: 14px 8px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 13.5px; }
.ag1-band small { display: block; font-family: var(--sans); font-weight: 500; font-size: 11px; opacity: .7; }
.ag1-cell { display: flex; flex-direction: column; gap: 8px; }
.ag1-card { background: var(--tint); border-radius: 8px; padding: 10px 12px; border-left: 3px solid var(--c); }
.ag1-card.is-break { background: transparent; border: 1px dashed var(--line); border-left: 3px solid var(--line); }
.ag1-card.is-break .ag-title { font-weight: 600; color: var(--muted); }
.ag1-card .ag-time { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--muted); }
.ag1-card .ag-title { font-size: 13px; }
.ag1-empty { opacity: .5; font-size: 12px; color: var(--faint); padding: 10px 12px; }
.ag1-hint { display: none; }
@media (max-width: 1060px) { .ag1-hint { display: block; margin-top: 12px; font-size: 13px; color: var(--faint); } }

/* ===== Option 2: vertical timeline per day ===== */
.ag2-tabs { display: none; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.js .ag2-tabs { display: flex; }
.ag2-tab { appearance: none; border: 0; cursor: pointer; flex: 1 1 160px; text-align: left; padding: 14px 18px; border-radius: 10px; font-family: inherit; background: var(--c); color: var(--ct); opacity: .55; transition: opacity .2s, transform .2s; }
.ag2-tab strong { display: block; font-family: var(--display); font-size: 16px; }
.ag2-tab span { font-size: 12px; opacity: .85; }
.ag2-tab[aria-selected="true"] { opacity: 1; transform: translateY(-2px); }
.ag2-tab:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.ag2-panel[hidden] { display: none; }
.ag2-panel { margin-top: 28px; }
.js .ag2-panel + .ag2-panel { margin-top: 28px; }
.ag2-dayhead { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; background: var(--c); color: var(--ct); }
.js .ag2-dayhead { display: none; }
.ag2-dayhead strong { font-family: var(--display); font-size: 18px; }
.ag2-title-main { margin: 0 0 4px; font-family: var(--display); font-size: 22px; }
.ag2-sub { margin: 0 0 22px; color: var(--muted); }
.ag2-rooms { display: grid; grid-template-columns: 150px 1fr; gap: 0 22px; margin-bottom: 8px; }
.ag2-rooms-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.ag2-rooms-cols span { font-size: 11.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); }
.ag2-list { list-style: none; margin: 0; padding: 0; position: relative; }
.ag2-list::before { content: ""; position: absolute; left: 150px; margin-left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ag2-row { display: grid; grid-template-columns: 150px 1fr; gap: 0 22px; padding: 8px 0; position: relative; }
.ag2-row > .ag-time { padding-top: 12px; text-align: right; padding-right: 0; }
.ag2-row::before { content: ""; position: absolute; left: 150px; margin-left: 5px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--c); }
.ag2-row.is-break::before { background: var(--bg); box-shadow: 0 0 0 1px var(--faint); }
.ag2-body { margin-left: 22px; display: grid; gap: 10px; }
.ag2-body.cols-2, .ag2-body.cols-3 { grid-template-columns: repeat(2, 1fr); }
.ag2-body.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ag2-card { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 8px; padding: 12px 14px; }
.ag2-row.is-break .ag2-card { background: transparent; border: 1px dashed var(--line); border-radius: 8px; padding: 9px 14px; }
.ag2-row.is-break .ag-title { font-weight: 600; color: var(--muted); }
@media (max-width: 760px) {
  .ag2-rooms { display: none; }
  .ag2-list::before { left: 8px; margin: 0; }
  .ag2-row { grid-template-columns: 1fr; padding: 8px 0 8px 28px; }
  .ag2-row::before { left: 3px; margin: 0; }
  .ag2-row > .ag-time { text-align: left; padding: 0 0 4px; }
  .ag2-body { margin-left: 0; }
  .ag2-body.cols-2, .ag2-body.cols-3 { grid-template-columns: 1fr; }
}

/* Homepage "Program at a glance" (sits on the --bg2 band) */
.program .ag2-row::before { border-color: var(--bg2); }
.program .ag2-row.is-break::before { background: var(--bg2); }
.program .ag2-tabs { margin-top: 28px; }
.ag-more { margin: 14px 0 0 194px; font-size: 13.5px; color: var(--muted); }
.ag-more a { color: var(--indigo); font-weight: 600; }
@media (max-width: 760px) { .ag-more { margin-left: 28px; } }
