:root {
  color-scheme: light;
  --ink: #2e2e2e;
  --muted: #626262;
  --line: #dcdcdc;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --brand: #294a96;
  --brand-dark: #17366f;
  --link: #294a96;
  --accent: #d9061c;
  --accent-dark: #b00518;
  --shadow: 0 8px 20px rgba(41, 74, 150, .12);
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Roboto, Arial, sans-serif; font-size: 16px; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.topbar { position: sticky; top: 0; z-index: 10; min-height: 100px; display: flex; align-items: center; gap: 30px; padding: 12px max(24px, calc((100vw - 1180px) / 2)); background: #fff; box-shadow: 0 1px 2px rgba(10,10,10,.1); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--brand); text-decoration: none; }
.agency-placeholder { position: relative; display: flex; flex-direction: column; justify-content: center; width: 84px; height: 50px; padding: 3px 6px 6px 8px; border-left: 4px solid var(--accent); color: var(--accent); line-height: 1; text-transform: uppercase; }
.agency-placeholder::after { content: ""; position: absolute; left: 7px; right: 4px; bottom: 3px; height: 3px; background: var(--accent); transform: skewX(-28deg); }
.agency-placeholder span { font-family: Arial, sans-serif; font-size: 27px; font-style: italic; font-weight: 900; letter-spacing: -.08em; transform: skewX(-7deg); }
.agency-placeholder small { margin-top: 3px; padding-left: 2px; font-size: 7px; font-style: normal; font-weight: 800; letter-spacing: .13em; }
.agency-name { padding-right: 14px; border-right: 1px solid #999; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.15; }
.programme-brand { padding-left: 2px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 21px; font-weight: 700; }
.brand small { margin-top: 3px; color: var(--muted); }
nav { display: flex; gap: 4px; }
.nav-item, .menu-button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--brand-dark); cursor: pointer; padding: 12px 8px; }
.nav-item:hover, .nav-item.active { border-bottom-color: var(--accent); color: var(--brand); }
.menu-button { display: none; border: 1px solid var(--line); }

main { width: min(1180px, calc(100% - 40px)); margin: 24px auto 64px; }
.demo-notice { display: flex; justify-content: space-between; gap: 18px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid #b9c8e8; border-radius: 5px; background: var(--soft); color: var(--brand-dark); font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.6fr .8fr; gap: 32px; align-items: center; min-height: 390px; padding: clamp(28px, 6vw, 72px); overflow: hidden; border-top: 5px solid var(--accent); border-bottom: 5px solid var(--accent); color: var(--ink); background: #fff; }
.hero h1 { max-width: 720px; margin: 4px 0 16px; color: var(--brand); font-size: clamp(38px, 5vw, 60px); font-weight: 500; line-height: 1.08; }
.lead { max-width: 650px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.hero .eyebrow { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary, .secondary { min-height: 44px; border-radius: 10px; cursor: pointer; padding: 8px 35px; font-weight: 700; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.hero .primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.hero .primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.secondary { border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.secondary:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.hero .secondary { border-color: var(--accent); background: #fff; color: var(--accent); }
.hero .secondary:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.next-card { display: grid; gap: 11px; padding: 25px; border: 1px solid #b9c8e8; border-radius: 5px; background: var(--soft); }
.next-card strong { font-size: 24px; line-height: 1.2; }
.status, .tag { width: fit-content; border-radius: 999px; background: var(--accent); color: #fff; padding: 5px 9px; font-size: 12px; font-weight: 800; }

.view + .view[data-view-panel="overview"] { margin-top: 50px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 20px; }
.section-heading h1, .section-heading h2 { margin: 0; color: var(--brand); font-size: clamp(30px, 4vw, 42px); font-weight: 400; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 48px; }
.feature-card, .session-list article, .people-grid article, .feedback-form, .discussion-compose, .discussion-list article, .timeline article { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); box-shadow: 0 3px 10px rgba(41,74,150,.06); }
.feature-card { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; padding: 18px 0; border: 0; box-shadow: none; }
.feature-card h3 { grid-column: 2; margin: 0 0 6px; color: var(--brand); }
.feature-card p { grid-column: 2; margin: 0; }
.feature-card p, .session-list p, .people-grid p, .timeline p { color: var(--muted); line-height: 1.5; }
.icon { grid-row: 1 / 3; display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); font-size: 22px; font-weight: 800; }

.day-picker, .search, .feedback-form label, .discussion-compose label { display: grid; gap: 8px; color: #555; font-size: 14px; font-weight: 700; }
select, input, textarea { width: 100%; border: 1px solid #bdbdbd; border-radius: 9px; background: #fff; color: var(--ink); padding: 11px 12px; }
.day-picker select { min-width: 140px; }
.search { max-width: 520px; margin-bottom: 20px; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline article { display: grid; grid-template-columns: 190px 1fr; padding: 20px; }
.timeline time { display: grid; align-content: start; gap: 4px; color: var(--brand); font-weight: 850; }
.schedule-date { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.25; }
.schedule-time { font-size: 19px; }
.timeline h3, .session-list h3, .people-grid h3 { margin: 8px 0 2px; }
.text-button { border: 0; background: transparent; color: var(--link); cursor: pointer; padding: 0; font-weight: 700; text-decoration: underline; }
.text-button:hover { color: var(--brand-dark); }

.session-list { display: grid; gap: 14px; }
.session-list article { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; padding: 22px; }
.materials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.materials button { border: 1px solid var(--accent); border-radius: 10px; background: #fff; color: var(--accent); cursor: pointer; padding: 8px 14px; font-weight: 700; }
.materials button:hover { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.empty { padding: 25px; text-align: center; color: var(--muted); }

.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.people-grid article { display: flex; gap: 16px; padding: 20px; }
.people-grid a { color: var(--link); font-weight: 700; }
.people-grid a:hover { color: var(--brand-dark); }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 850; }

.feedback-form, .discussion-compose { display: grid; gap: 20px; padding: clamp(20px, 4vw, 34px); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { margin-bottom: 10px; color: #555; font-size: 14px; font-weight: 700; }
.rating { display: grid; grid-template-columns: repeat(5, 48px); gap: 8px; }
.rating label { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.rating input { position: absolute; opacity: 0; pointer-events: none; }
.rating label:has(input:checked) { border-color: var(--accent); background: var(--accent); color: #fff; }
.save-state { color: var(--muted); font-size: 13px; }
.discussion-compose { grid-template-columns: 1fr auto; align-items: end; }
.discussion-list { display: grid; gap: 14px; margin-top: 18px; }
.discussion-list article { display: flex; gap: 15px; padding: 20px; }
.discussion-list p { line-height: 1.55; }
.like-button { border: 0; background: transparent; color: var(--link); cursor: pointer; padding: 0; font-weight: 700; }
.like-button:hover { color: var(--brand-dark); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
footer a { color: var(--link); }
footer a:hover { color: var(--brand-dark); }
.toast { position: fixed; right: 22px; bottom: 22px; max-width: 320px; transform: translateY(130%); opacity: 0; border-radius: 10px; background: var(--ink); color: #fff; padding: 12px 16px; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  nav { display: none; position: absolute; left: 20px; right: 20px; top: 70px; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  .nav-item { text-align: left; }
  .hero { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .agency-placeholder { width: 72px; height: 42px; }
  .agency-placeholder span { font-size: 23px; }
  .agency-placeholder small { font-size: 7px; }
  .agency-name { display: none; }
  .programme-brand { display: none; }
  main { width: min(100% - 24px, 1180px); margin-top: 12px; }
  .demo-notice { display: grid; }
  .hero { min-height: 0; padding: 28px 22px; border-radius: 5px; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .hero-actions { display: grid; }
  .card-grid, .people-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .timeline time { display: flex; align-items: baseline; gap: 8px; }
  .session-list article { grid-template-columns: 1fr; }
  .materials { justify-content: flex-start; }
  .materials button { width: 100%; text-align: left; }
  .discussion-compose { grid-template-columns: 1fr; }
  .rating { grid-template-columns: repeat(5, 1fr); }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
