/* Kotai event pages. Colours and type follow kotai.team (DM Sans body, Sora headings, slate accent). */
:root {
  --slate: #767fa6;
  --slate-dark: #5c6489;
  --slate-tint: #eef0f6;
  --peach: #ffcbb5;
  --peach-dark: #ffb89f;
  --charcoal: #333333;
  --muted: #5d5d66;
  --line: rgba(51, 51, 51, 0.1);
  --bg: #ffffff;
  --bg-soft: #f8f8fa;
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--charcoal); font: 17px/1.65 var(--font-sans); }
img { max-width: 100%; height: auto; }
a { color: var(--slate-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top img { height: 30px; width: auto; display: block; }
.top a.back { font-size: 0.9rem; color: var(--muted); text-decoration: none; }

.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--slate-tint) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--slate-dark); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }
.sub { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.event-line { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; margin: 20px 0 8px; }
.event-line span::before { content: "•"; color: var(--slate); margin-right: 8px; }
.event-line span:first-child::before { content: none; }
.local-time { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; min-height: 1.4em; }

.method-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; }
.method-strip span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 0.92rem; }
.method-strip span + span::before { content: "→"; color: var(--slate); margin: 0 8px 0 -2px; font-weight: 700; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 10px 30px rgba(51, 51, 70, 0.08); }
.form-card h2 { font-size: 1.3rem; margin-bottom: 0.3em; }
.form-card .form-note { color: var(--muted); font-size: 0.95rem; }
.form-embed { min-height: 200px; }
/* OntraPort Smart Form (renders into #op-form). #op-form outranks the form's own stylesheet. */
#op-form form:not(.is-ready) { visibility: hidden; }
#op-form .moonray-form { width: 100%; max-width: none; border: 0; padding: 0; background: none; box-shadow: none; }
#op-form .moonray-form-element-wrapper { width: 100%; float: none; padding: 0 0 14px; margin: 0; }
#op-form .moonray-form-label { display: block; width: auto; float: none; margin: 0 0 6px; padding: 0; font: 600 0.92rem/1.3 var(--font-sans); color: var(--charcoal); }
#op-form .moonray-form-input-type-text .moonray-form-input,
#op-form .moonray-form-input-type-email .moonray-form-input,
#op-form .moonray-form-input-type-tel .moonray-form-input,
#op-form .moonray-form-input-type-select .moonray-form-input,
#op-form .moonray-form-input-type-textarea .moonray-form-input { width: 100%; max-width: none; height: auto; margin: 0; padding: 12px; border: 1px solid #b9bccb; border-radius: 10px; background: #fff; box-shadow: none; font: 1rem/1.4 var(--font-sans); color: var(--charcoal); }
#op-form .moonray-form-input:focus { border-color: var(--slate); outline: 3px solid var(--slate-tint); outline-offset: 0; }
#op-form .moonray-form-element-sub-text { margin-top: 4px; font: normal 0.82rem/1.4 var(--font-sans); color: var(--muted); }
#op-form .moonray-form-input-type-submit { padding-top: 6px; }
#op-form .moonray-form-input-type-submit input.moonray-form-input[type="submit"] { display: block; width: 100% !important; height: auto; margin: 0; padding: 14px 24px; border: 0; border-radius: 10px; background: var(--slate); background-image: none; color: #fff; font: 600 1.05rem var(--font-sans); text-shadow: none; box-shadow: none; cursor: pointer; }
#op-form .moonray-form-input-type-submit .moonray-form-input:hover { background: var(--slate-dark); }
#op-form .moonray-form-input-type-hidden { display: none; padding: 0; }
#op-form .moonray-form-error-message, #op-form label.error { color: #a01f1f; font-size: 0.85rem; font-weight: 600; }
.consent { font-size: 0.82rem; color: var(--muted); margin: 12px 0 0; }
.notice { border-left: 4px solid var(--slate); background: var(--slate-tint); padding: 14px 16px; border-radius: 8px; }

.btn { display: inline-block; background: var(--slate); color: #fff; border: 0; border-radius: 10px; padding: 14px 24px; font: 600 1rem var(--font-sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--slate-dark); }
.btn.secondary { background: #fff; color: var(--charcoal); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--bg-soft); }
.small { font-size: 0.88rem; color: var(--muted); }

ul.ticks, ol.learn { padding: 0; margin: 0 0 1em; list-style: none; }
ul.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--slate); }
ol.learn { counter-reset: n; display: grid; gap: 14px; }
ol.learn li { counter-increment: n; position: relative; padding: 16px 16px 16px 60px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
ol.learn li::before { content: counter(n); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--peach); color: var(--charcoal); font: 700 0.95rem/30px var(--font-head); text-align: center; }
blockquote { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--peach-dark); background: #fff; font: 600 1.15rem/1.5 var(--font-head); }

.phases { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 20px 0; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phases div { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.phases b { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.rule { font-weight: 600; }

.presenters { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .presenters { grid-template-columns: 1fr 1fr; } }
.presenter { display: flex; gap: 16px; align-items: flex-start; }
.presenter img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.presenter p { margin: 0; }
.presenter .role { color: var(--muted); font-size: 0.92rem; margin-bottom: 6px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--slate); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

.final { text-align: center; }
.event-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-soft); margin: 20px 0; }
.cal-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 240px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }

form.plain label { display: block; font-weight: 600; margin: 0 0 6px; }
form.plain textarea, form.plain input[type="email"] { width: 100%; padding: 12px; border: 1px solid #b9bccb; border-radius: 10px; font: inherit; margin-bottom: 14px; }
form.plain textarea { min-height: 140px; resize: vertical; }
.error { color: #a01f1f; font-weight: 600; }

.video { position: relative; background: #111; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; display: block; }
.cal-embed { width: 100%; min-height: 680px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); }

footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 0.88rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--muted); }
[hidden] { display: none !important; }
