/* Global CIO Forum — World Mental Health Day 2026 campaign palette */
:root {
  --navy: #0A1020;
  --panel: #101A2E;
  --panel-2: #142039;
  --line: #22304A;
  --teal: #02BC94;
  --gold: #C6A15B;
  --ivory: #F7F5F0;
  --silver: #C7CDD6;
  --danger: #F08A7E;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
a { color: var(--teal); }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px 72px; }
.wrap.narrow { max-width: 640px; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ivory); }
.brand img { width: 56px; height: 56px; display: block; }
.brand span { font-size: 15px; color: var(--silver); line-height: 1.35; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* type */
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(42px, 6.4vw, 80px); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 16px; }
h1 .date { color: var(--gold); font-style: italic; font-weight: 400; white-space: nowrap; }
h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; margin: 0 0 12px; }
.lede { font-size: 19px; color: var(--silver); max-width: 58ch; margin: 0 0 32px; }
.muted { color: var(--silver); }
.small { font-size: 14px; }
.count { display: inline-flex; align-items: baseline; gap: 10px; margin: 0 0 40px; color: var(--silver); font-size: 16px; }
.count b { font-family: var(--serif); font-size: 40px; font-weight: 500; color: var(--teal); line-height: 1; }

/* buttons */
.btn {
  font: inherit; font-weight: 500; font-size: 16px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ivory); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--silver); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.linkedin { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* layout */
.grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; gap: 32px; } .preview { order: -1; position: static !important; } }

/* sign-in panel */
.signin { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.signin p { margin: 0; }
.who { display: flex; align-items: center; gap: 14px; }
.who img, .who .ph { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--gold); }
.who b { font-weight: 500; }

/* form */
form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--silver); }
input[type=text], textarea {
  font: inherit; font-weight: 400; font-size: 17px; color: var(--ivory);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
input[type=text]:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 1px var(--teal); }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
textarea.post { min-height: 220px; font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 15px; color: var(--silver); padding: 0; margin-bottom: 10px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; height: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ivory); font-size: 15px; }
.choice input:checked + span { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ivory); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hint { font-size: 14px; color: var(--silver); margin: 0; }

/* preview */
.preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.card { width: 100%; max-width: 560px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.card img { display: block; width: 100%; height: 100%; }
.code { margin: 0; font-size: 15px; color: var(--silver); }
.code b { color: var(--gold); font-weight: 500; letter-spacing: 0.06em; }
.status { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--teal); }
.status.error { color: var(--danger); }
.success { background: var(--panel); border: 1px solid var(--teal); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.success p { margin: 0; }

/* wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0 0 32px; }
.leader { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.leader .av { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--ivory); }
.leader .nm { font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.1; margin: 4px 0 0; }
.leader .rl { font-size: 14px; color: var(--silver); margin: 0; }
.leader .pr { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--teal); line-height: 1.25; margin: 4px 0 0; }
.empty { background: var(--panel); border: 1px dashed var(--line); border-radius: 16px; padding: 32px; text-align: center; }

/* share page */
.share-card { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin: 0 0 28px; }

/* prose (privacy) */
.prose { max-width: 66ch; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--silver); }

footer.site { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--silver); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { color: var(--silver); }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* event walls */
.wall-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.wall-tabs button { font: inherit; font-size: 14px; color: var(--silver); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.wall-tabs button[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--navy); }
.leader .logo-av { object-fit: contain; background: #fff; padding: 10px; }
.leader .rtag { align-self: flex-start; margin: 2px 0 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(198,161,91,.45); border-radius: 999px; padding: 2px 9px; }
.leader .rtag.r-speaker { color: var(--teal); border-color: var(--teal); }
