/* International C3 Summit, Chapter 2: app styles.
   Colours and shapes follow the approved summit slide template (rounded boxes, no side bars). */
:root{
  --deep:#2D5E77; --deep-d:#234B60; --teal:#4CA1A6; --orange:#EB9200; --amber:#FCB813; --red:#F15A22;
  --mist:#ABBFC9; --ink:#33373A; --muted:#5F6B72; --rule:#C9D6DC;
  --bg:#F4F8F9; --card:#FFFFFF; --tint-teal:#E6F2F3; --tint-deep:#D5E3EA; --tint-amber:#FDF1D9; --amber-ink:#7A4A00;
  --r:18px; --tabs-h:64px;
  --font:Aptos,"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"SF Pro Text",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#E3EBEE;color:var(--ink);font:16px/1.45 var(--font);-webkit-font-smoothing:antialiased}
button,input{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
img{max-width:100%;display:block}
h1,h2,h3,h4,p{margin:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--amber);outline-offset:2px;border-radius:8px}

.app{max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--bg);display:flex;flex-direction:column;
  padding-bottom:calc(var(--tabs-h) + env(safe-area-inset-bottom) + 12px)}
body.gated .app{padding-bottom:0;background:#fff}
main{flex:1;outline:none}
main.pad{padding:14px 16px 4px}

/* top bar (every screen except Home) */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);
  padding:calc(env(safe-area-inset-top) + 10px) 14px 10px;border-bottom:1px solid var(--rule)}
.top .mark{width:38px;height:38px;border-radius:11px;flex:none}
.top .back{width:38px;height:38px;border-radius:50%;border:0;background:var(--tint-teal);color:var(--deep);font-size:22px;line-height:1;flex:none}
.top .ttl{flex:1;min-width:0;font-weight:700;font-size:19px;color:var(--deep);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top .me{width:38px;height:38px;border-radius:50%;border:0;background:var(--deep);color:#fff;font-weight:700;font-size:14px;flex:none}

/* shared pieces */
.card{background:var(--card);border-radius:var(--r);padding:16px;margin:0 0 12px;box-shadow:0 1px 2px rgba(45,94,119,.08),0 6px 18px rgba(45,94,119,.06)}
.sec{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--deep);margin:20px 4px 10px}
.muted{color:var(--muted)} .small{font-size:14px} .grow{flex:1;min-width:0}
.row{display:flex;align-items:center;gap:12px}
.note{background:var(--tint-teal);color:var(--deep-d);border-radius:14px;padding:11px 14px;font-size:14.5px;margin:0 0 12px}
.tag{display:inline-block;background:var(--tint-teal);color:var(--deep-d);font-size:12px;font-weight:700;letter-spacing:.03em;padding:3px 10px;border-radius:999px}
.tag.o{background:var(--tint-amber);color:var(--amber-ink)}
.tag.d{background:var(--deep);color:#fff}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 18px;border-radius:14px;border:0;font-weight:700;text-decoration:none;text-align:center}
.btn.primary{background:var(--deep);color:#fff;width:100%}
.btn.primary:disabled{background:var(--mist);cursor:not-allowed}
.btn.ghost{background:var(--tint-teal);color:var(--deep-d)}
.btn.link{background:none;color:var(--deep);font-weight:600;min-height:44px;padding:8px 10px;text-decoration:underline}
.btn.danger{background:#FCE9E2;color:#9A2E0A;width:100%}
.soon{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border-radius:12px;border:1.5px dashed var(--rule);color:var(--muted);font-size:14px;font-weight:600}
.soon i{width:8px;height:8px;border-radius:50%;background:var(--mist);flex:none}

/* sign-in and consent */
.gate{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;padding:calc(env(safe-area-inset-top) + 34px) 22px 0;background:#fff}
.gate-logo{width:min(78%,320px)}
.gate-ch{width:150px;margin-top:14px}
.gate-date{margin-top:10px;color:var(--deep);font-weight:600}
.gate-card{width:100%;max-width:420px;margin-top:22px;position:relative;z-index:1;border:1px solid var(--tint-deep)}
.gate-card h1{font-size:22px;color:var(--deep)}
.gate-card>p{margin-top:6px}
.gate label.fl{display:block;margin:16px 0 6px;font-weight:700;font-size:14px;color:var(--deep-d)}
.gate input.code{width:100%;height:56px;border:2px solid var(--rule);border-radius:14px;padding:0 14px;font-size:24px;font-weight:700;letter-spacing:.14em;text-align:center;text-transform:uppercase;color:var(--deep);background:#fff}
.gate input.txt{width:100%;height:52px;border:2px solid var(--rule);border-radius:14px;padding:0 14px;font-size:17px;color:var(--ink);background:#fff}
.gate input.txt::placeholder{color:var(--mist)}
.gate input.txt:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px var(--tint-teal)}
.gate input.code::placeholder{color:var(--mist);font-weight:600}
.gate input.code:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px var(--tint-teal)}
.err{color:#9A2E0A;background:#FCE9E2;border-radius:12px;padding:10px 12px;font-size:14.5px;margin-top:10px}
.gate .btn.primary{margin-top:14px}
.gate .help{text-align:center;margin-top:12px}
.gate-sky{flex:1;min-height:150px;width:calc(100% + 44px);margin-top:-6px;background:url(../assets/skyline-light.jpg) right bottom/cover no-repeat;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 45%);mask-image:linear-gradient(180deg,transparent,#000 45%)}
.demo{margin-top:14px;padding:10px 12px;border-radius:12px;background:var(--tint-amber);color:var(--amber-ink);font-size:13.5px}
.demo button{border:0;background:#fff;border-radius:8px;padding:4px 9px;margin:4px 4px 0 0;font-weight:700;color:var(--amber-ink)}
.pv{margin:14px 0 4px}
.pv div{padding:10px 0;border-top:1px solid var(--tint-deep)}
.pv dt{font-weight:700;color:var(--deep-d);font-size:14.5px}
.pv dd{margin:2px 0 0;color:var(--muted);font-size:14.5px}
.tick{display:flex;gap:12px;align-items:flex-start;margin-top:14px;padding:12px;border-radius:14px;background:var(--tint-teal);font-weight:600;color:var(--deep-d)}
.tick input{width:24px;height:24px;flex:none;accent-color:var(--deep);margin:0}
.spin{width:38px;height:38px;border-radius:50%;border:4px solid var(--tint-deep);border-top-color:var(--deep);animation:sp 0.9s linear infinite;margin:60px auto 14px}
@keyframes sp{to{transform:rotate(360deg)}}

/* Home */
.hero{position:relative;color:#fff;overflow:hidden;border-radius:0 0 28px 28px;
  background:linear-gradient(180deg,rgba(35,75,96,.93) 0%,rgba(45,94,119,.66) 48%,rgba(45,94,119,0) 82%),#4CA1A6 url(../assets/skyline-teal.jpg) 84% bottom/auto 62% no-repeat;
  padding:calc(env(safe-area-inset-top) + 24px) 22px 176px}
.hero .logo{width:min(74%,300px)}
.hero .ch{width:150px;margin-top:14px}
.hero .meta{margin-top:18px;display:grid;gap:8px;font-weight:600;font-size:15.5px}
.hero .meta div{display:flex;align-items:center;gap:9px}
.cd{display:flex;gap:10px;margin-top:20px}
.cd div{min-width:74px;padding:10px 8px 8px;border-radius:16px;text-align:center;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(4px)}
.cd b{display:block;font-size:28px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
.cd small{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;opacity:.92}
.home{padding:0 16px 4px;margin-top:-40px;position:relative}
.hello h2{font-size:20px;color:var(--deep)}
.hello .mine{margin-top:12px;padding-top:12px;border-top:1px solid var(--tint-deep)}
.hello .mine h3{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--deep);margin-bottom:6px}
.ses{display:flex;gap:12px;padding:7px 0;font-size:14.5px}
.ses .t{flex:none;width:92px;font-weight:700;color:var(--deep);font-variant-numeric:tabular-nums}
.nn + .nn{margin-top:14px;padding-top:14px;border-top:1px solid var(--tint-deep)}
.nn b{display:block;margin-top:6px;font-size:16.5px;line-height:1.3}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}
.tile{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px 12px;border:0;border-radius:var(--r);background:var(--card);font-weight:700;font-size:13.5px;color:var(--deep-d);
  box-shadow:0 1px 2px rgba(45,94,119,.08),0 6px 18px rgba(45,94,119,.06)}
.tile .ic{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--tint-teal)}
.tile .ic.o{background:var(--tint-amber)}
.ann + .ann{margin-top:12px;padding-top:12px;border-top:1px solid var(--tint-deep)}
.install{display:flex;align-items:center;gap:12px;background:var(--deep);color:#fff}
.install img{width:46px;height:46px;border-radius:12px;flex:none}
.install .go{border:0;border-radius:12px;background:var(--amber);color:#3A2600;font-weight:800;padding:10px 12px;flex:none}
.install .x{border:0;background:none;color:#fff;opacity:.8;font-size:22px;width:36px;height:36px;flex:none}

/* Agenda */
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;border:1.5px solid var(--rule);background:#fff;color:var(--deep-d);border-radius:999px;padding:8px 14px;font-weight:600;font-size:14.5px;min-height:40px}
.chip.on{background:var(--deep);border-color:var(--deep);color:#fff}
.sh{margin:18px 4px 10px}
.sh h2{font-size:17px;color:var(--deep);line-height:1.3}
.sh .ch{font-size:14px;color:var(--muted);margin-top:3px}
.ag{display:flex;gap:14px}
.ag .tm{flex:none;width:52px;font-weight:800;color:var(--deep);font-variant-numeric:tabular-nums;line-height:1.2}
.ag .tm small{display:block;font-weight:600;color:var(--muted);font-size:13px;margin-top:2px}
.ag h3{font-size:16px;line-height:1.3}
.ag.brk{background:transparent;box-shadow:none;border:1.5px dashed var(--rule);padding:11px 16px}
.ag.brk h3{font-weight:600;color:var(--muted)}
.ag.now{background:var(--tint-amber)}
.ppl{font-size:14.5px;color:var(--muted);margin-top:6px}
.ppl .lb{font-weight:700;color:var(--deep-d)}
.ppl button,.sh .ch button{border:0;background:none;padding:0;color:var(--deep);font-weight:600;text-decoration:underline;text-decoration-color:var(--mist);text-underline-offset:3px}
.wsg{display:grid;gap:10px;margin-top:12px}
.wsb{background:var(--bg);border-radius:14px;padding:12px}
.wsb h4{display:flex;align-items:center;gap:8px;font-size:15.5px;color:var(--deep)}
.num{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--orange);color:#fff;font-weight:800;font-size:14px}

/* Faculty */
.search{width:100%;height:48px;border:1.5px solid var(--rule);border-radius:14px;padding:0 14px;background:#fff;margin-bottom:10px}
.search:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 4px var(--tint-teal)}
.fgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.fc{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;border:0;background:var(--card);border-radius:var(--r);padding:16px 8px 14px;
  box-shadow:0 1px 2px rgba(45,94,119,.08),0 6px 18px rgba(45,94,119,.06)}
.fc b{font-size:14.5px;line-height:1.25;color:var(--ink)}
.fc small{color:var(--muted);font-size:13px}
.av{position:relative;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:18px;flex:none}
.av .fl{position:absolute;right:-6px;bottom:-4px;font-size:18px;line-height:1}

/* lists (More, posters) */
.lr{display:flex;align-items:center;gap:12px;width:100%;padding:13px 0;border:0;background:none;text-align:left;border-top:1px solid var(--tint-deep);text-decoration:none;color:inherit}
.lr:first-child{border-top:0}
.lr .ic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--tint-teal);flex:none}
.lr b{display:block;font-size:15.5px}
.lr .chev{color:var(--mist);font-size:24px;flex:none}
.steps{margin:10px 0 0;padding:0;list-style:none;counter-reset:s}
.steps li{counter-increment:s;display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--tint-deep)}
.steps li:first-child{border-top:0}
.steps li::before{content:counter(s);flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--deep);color:#fff;font-weight:800;font-size:14px}

/* footer, tabs, sheet */
.foot{text-align:center;font-size:12.5px;color:var(--muted);padding:18px 16px 6px}
.foot img{height:22px;margin:10px auto 0;opacity:.9}
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:30;pointer-events:none}
.tabs .in{pointer-events:auto;max-width:560px;margin:0 auto;display:flex;background:rgba(255,255,255,.97);backdrop-filter:blur(10px);border-top:1px solid var(--rule);
  padding:6px 6px calc(6px + env(safe-area-inset-bottom))}
.tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;color:var(--muted);font-size:11.5px;font-weight:700;padding:4px 0;min-height:52px}
.tabs button .pill{display:grid;place-items:center;width:52px;height:30px;border-radius:999px}
.tabs button.on{color:var(--deep)}
.tabs button.on .pill{background:var(--tint-teal)}
.shade{position:fixed;inset:0;z-index:50;background:rgba(35,75,96,.5);display:none;align-items:flex-end;justify-content:center}
.shade.open{display:flex}
.sheet{width:100%;max-width:560px;max-height:88vh;overflow:auto;background:var(--bg);border-radius:24px 24px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));animation:up .22s ease-out}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
.grab{width:40px;height:5px;border-radius:5px;background:var(--rule);margin:0 auto 14px}
.sheet h2{font-size:20px;color:var(--deep)}
@media (prefers-reduced-motion:reduce){.sheet,.spin{animation:none}}
@media (min-width:600px){.app{box-shadow:0 0 40px rgba(45,94,119,.12)}.fgrid{grid-template-columns:repeat(3,1fr)}}
