:root {
  /* Google News Partner Marketing Hub Light Palette (WCAG 2.2 AA Compliant) */
  --bg-page: #F1F3F4;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F3F4;
  --border-light: #9AA0A6;
  --border-subtle: #DADCE0;

  --text-primary: #202124;
  --text-secondary: #3C4043;
  --text-muted: #5F6368;

  --brand-blue: #4285F4;
  --brand-red: #EA4335;
  --brand-yellow: #FBBC04;
  --brand-green: #34A853;
  --brand-orange: #E37400;

  --google-blue: #174EA6;
  --google-blue-hover: #174EA6;
  --google-blue-tint: #D2E3FC;
  --google-blue-text: #174EA6;

  --google-green: #0D652D;
  --google-green-tint: #CEEAD6;
  --google-green-text: #0D652D;

  --google-yellow: #FBBC04;
  --google-yellow-tint: #FEEFC3;
  --google-yellow-text: #202124;

  --google-red: #A50E0E;
  --google-red-tint: #FAD2CF;
  --google-red-text: #A50E0E;

  --teal-tint: #E4F7FB;
  --teal-text: #007B83;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(60, 64, 67, 0.08), 0 1px 3px 1px rgba(60, 64, 67, 0.04);
  --shadow-hover: 0 2px 6px rgba(60, 64, 67, 0.12), 0 1px 2px rgba(60, 64, 67, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 108px;
}

/* Top Google 4-Color Accent Bar */
.google-accent-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg,
      #4285F4 0%, #4285F4 25%,
      #EA4335 25%, #EA4335 50%,
      #FBBC04 50%, #FBBC04 75%,
      #34A853 75%, #34A853 100%);
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 28px 0 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--google-blue);
  background: var(--google-blue-tint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.subtitle {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 700px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Controls Toolbar */
.controls-wrapper {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
}

.controls-row-main {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 34px 9px 38px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  outline: none;
  background: var(--bg-surface);
  border-color: var(--google-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  display: none;
}

.clear-search.visible {
  display: block;
}

.tz-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tz-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.select-control {
  padding: 8.5px 10px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.select-control:focus {
  outline: none;
  border-color: var(--google-blue);
}

/* Filter Chips Row */
.controls-row-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.day-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
}

.day-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.day-tab.active {
  background: var(--bg-surface);
  color: var(--google-blue);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.chip {
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.chip:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.chip.active {
  background: var(--google-blue-tint);
  border-color: #AECBFA;
  color: var(--google-blue-text);
  font-weight: 600;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

/* Event Registration & Live Stream Actions */
.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reg-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--google-blue);
  background: var(--bg-surface);
  border: 1px solid var(--brand-blue);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.reg-link:hover {
  background: var(--google-blue-tint);
  border-color: var(--google-blue);
  text-decoration: underline;
}

.reg-link:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
}

.btn-livestream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--google-red-text);
  background: var(--google-red-tint);
  border: 1px solid var(--brand-red);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-livestream:not([href="TBD"]):hover {
  background: var(--google-red);
  border-color: var(--google-red);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.btn-livestream:focus-visible {
  outline: 2px solid var(--google-red);
  outline-offset: 2px;
}

.btn-livestream[href="TBD"] {
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  cursor: default;
}

.btn-livestream[href="TBD"]:hover {
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
  box-shadow: none;
}

.btn-livestream[href="TBD"]:focus-visible {
  outline: 2px solid var(--text-secondary);
  outline-offset: 2px;
}

.countdown-badge {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--google-red-text);
  background: var(--bg-surface);
  border: 1px solid var(--brand-red);
  padding: 0.5px 6px;
  border-radius: 4px;
  line-height: 1.4;
}

.btn-livestream[href="TBD"] .countdown-badge {
  color: var(--text-secondary);
  background: var(--bg-surface);
  border-color: var(--border-subtle);
}

.btn-livestream:not([href="TBD"]):hover .countdown-badge {
  color: var(--google-red-text);
  background: var(--bg-surface);
  border-color: var(--bg-surface);
}

.countdown-badge.is-hidden {
  display: none;
}

/* Status & Utility Bar */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.utility-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-text {
  background: none;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-text:hover {
  color: var(--google-blue);
  border-color: var(--google-blue);
  background: var(--google-blue-tint);
}

/* Day Headers */
.day-section {
  margin-top: 24px;
}

.day-banner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--text-primary);
}

.day-banner h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.day-banner span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Break / Marker Row */
.marker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  margin: 8px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.55);
}

.marker-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 145px;
  color: var(--text-secondary);
}

/* Session Card */
.session-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 120px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.session-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-light);
}

.session-card.targeted {
  border-color: var(--google-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.18), var(--shadow-hover);
}

.session-card.bookmarked {
  border-left: 4px solid var(--google-yellow);
}

.session-card.cal-menu-open {
  position: relative;
  z-index: 25;
}

.card-grid {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 18px;
  align-items: start;
}

/* Left Time Column */
.time-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 2px;
}

.time-primary {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.time-date-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.format-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2.5px 8.5px;
  border-radius: 4px;
}

.fmt-talk {
  background: var(--google-blue-tint);
  color: var(--google-blue-text);
}

.fmt-workshop {
  background: var(--google-green-tint);
  color: var(--google-green-text);
}

.fmt-lightning {
  background: var(--google-yellow-tint);
  color: var(--google-yellow-text);
}

.fmt-custom {
  background: var(--google-red-tint);
  color: var(--google-red-text);
}

/* Right Content Column */
.content-col {
  min-width: 0;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.session-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  cursor: pointer;
}

.session-title:hover {
  color: var(--google-blue);
}

.card-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.link-btn,
.bookmark-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.link-btn:hover {
  background: var(--bg-subtle);
  color: var(--google-blue);
}

.link-btn.active {
  color: var(--google-blue);
}

.link-btn.copied {
  color: var(--google-green-text);
  background: var(--google-green-tint);
  font-size: 11.5px;
  font-weight: 600;
  gap: 3px;
  padding: 3px 7px;
}

.bookmark-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.bookmark-btn.active {
  color: var(--google-yellow);
}

.speaker-line {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.speaker-name {
  font-weight: 600;
  color: var(--text-primary);
}

.speaker-aff {
  color: var(--text-secondary);
}

.track-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.track-tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-secondary);
}

.track-tag[data-track="AI → Science"] {
  background: #D2E3FC;
  border-color: #4285F4;
  color: #174EA6;
}

.track-tag[data-track="Science → AI"] {
  background: #CEEAD6;
  border-color: #34A853;
  color: #0D652D;
}

.track-tag[data-track="DeepTech & Quantum"] {
  background: #FEEFC3;
  border-color: #E37400;
  color: #202124;
}

.track-tag[data-track="SciComm & Policy"] {
  background: #FAD2CF;
  border-color: #EA4335;
  color: #A50E0E;
}

.track-tag[data-track="Responsible AI"] {
  background: var(--teal-tint);
  border-color: #B2EBF2;
  color: var(--teal-text);
}

/* Abstract Preview & Full Body */
.abstract-wrap {
  margin-top: 11px;
  font-size: 14px;
  color: #3C4043;
  line-height: 1.62;
}

.abstract-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-card.expanded .abstract-preview {
  display: none;
}

.details-panel {
  display: none;
}

.session-card.expanded .details-panel {
  display: block;
}

.abstract-full p {
  margin-bottom: 10px;
}

.abstract-full p:last-child {
  margin-bottom: 0;
}

.abstract-full ul {
  margin: 6px 0 10px 20px;
}

.abstract-full li {
  margin-bottom: 4px;
}

/* Speaker Bio & Links inside Expanded Panel */
.bio-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bio-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--google-blue);
  background: var(--google-blue-tint);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}

.ext-link:hover {
  background: #D2E3FC;
  text-decoration: none;
}

.card-footer-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.toggle-btn {
  background: none;
  border: none;
  color: var(--google-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.toggle-btn:hover {
  color: var(--google-blue-hover);
  text-decoration: underline;
}

/* Session Calendar & Copy Details Actions */
.session-utility-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.cal-dropdown {
  position: relative;
  display: inline-flex;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4.5px 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.action-pill-btn:focus-visible {
  outline: 2px solid var(--google-blue);
  outline-offset: 2px;
}

.cal-trigger-btn {
  color: var(--google-blue);
  background: var(--bg-surface);
  border: 1px solid var(--brand-blue);
}

.cal-trigger-btn:hover,
.cal-dropdown.open .cal-trigger-btn {
  background: var(--google-blue-tint);
  border-color: var(--google-blue);
  color: var(--google-blue-text);
}

.cal-caret {
  transition: transform 0.15s ease;
}

.cal-dropdown.open .cal-caret {
  transform: rotate(180deg);
}

.cal-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 185px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(32, 33, 36, 0.14), 0 1px 3px rgba(32, 33, 36, 0.08);
  padding: 4px;
  z-index: 25;
}

.cal-dropdown.open .cal-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.cal-menu-item:hover,
.cal-menu-item:focus-visible {
  background: var(--google-blue-tint);
  color: var(--google-blue-text);
  outline: none;
}

.cal-menu-ext {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
}

.cal-menu-item:hover .cal-menu-ext,
.cal-menu-item:focus-visible .cal-menu-ext {
  color: var(--google-blue-text);
}

.copy-details-btn {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
}

.copy-details-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.copy-details-btn.copied {
  background: var(--google-green-tint);
  border-color: var(--brand-green);
  color: var(--google-green-text);
}

mark {
  background-color: #FEF08A;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* Empty State */
.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 44px 20px;
  text-align: center;
  margin-top: 20px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Responsive adjustments for embeds & mobile */
@media (max-width: 740px) {
  .controls-row-main {
    grid-template-columns: 1fr;
  }

  .tz-select-wrap {
    justify-content: space-between;
  }

  .select-control {
    flex: 1;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .format-badge {
    margin-top: 0;
  }

  .card-footer-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-utility-actions {
    margin-left: 0;
  }

  .marker-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}
