/* ======== brand v3: the center's own colors and rounded lettering. White canvas, teal structure, cyan for action, pink and lime in small doses. Questions and answers read like a reference page, not a chat. ======== */
:root {
  --teal: #0b424a; --cyan: #00b9d1; --cyan-dk: #00a2b7; --pink: #ee3281; --lime: #d1de4c;
  --pale-cyan: #e8f8fb; --pale-teal: #eff5f5; --muted: #53747a; --ink: #16363b;
  --bg: #ffffff; --surface: #ffffff; --surface2: #eff5f5; --mute: #53747a; --line: #d6e4e5;
  --brand: #0b424a; --brand2: #00b9d1; --accent: #00b9d1; --coral: #ee3281; --deep: #0b424a; --grad: #00b9d1;
  --state: #0b424a; --center: #c4175f; --warn: #8a5a00; --danger: #b42342;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --shadow: none; --shadow-lg: none; --r: 10px;
}
html { color-scheme: light; }
body { background: #fff; color: var(--ink); font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--teal); letter-spacing: -.01em; }
h1 i, h2 i { font-style: normal; color: var(--pink); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 5px; border-radius: 3px; background: var(--lime); }

/* controls */
.btn { border: 1.5px solid var(--teal); background: #fff; color: var(--teal); border-radius: 999px; font-weight: 700; padding: 10px 20px; }
.btn:hover { background: var(--pale-teal); box-shadow: none; transform: none; }
.btn.primary { background: var(--cyan); border-color: var(--cyan); color: var(--teal); }
.btn.primary:hover { background: var(--cyan-dk); border-color: var(--cyan-dk); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, #fff); }
input, select, textarea { border-radius: 10px; background: #fff; border: 1.5px solid var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--pale-cyan); background: #fff; }
.tag.state { background: var(--pale-teal); color: var(--teal); }
.tag.center { background: color-mix(in srgb, var(--pink) 10%, #fff); color: var(--center); }
.panel, .doc, .stat { box-shadow: none; }
.panel { border: 1px solid var(--line); border-radius: 12px; }

/* sidebar: white, teal type, cyan marks the page you are on */
.side { background: #fff; border-right: 1px solid var(--line); }
.side .cname { color: var(--teal); font-family: var(--display); font-weight: 500; font-size: 18px; }
.side .mark { background: var(--pale-teal); color: var(--teal); }
.nav { color: var(--teal); font-weight: 500; border-radius: 10px; }
.nav:hover { background: var(--pale-teal); color: var(--teal); }
.nav.on { background: var(--pale-cyan); color: var(--teal); box-shadow: inset 4px 0 0 var(--cyan); font-weight: 700; }
.who { background: var(--pale-teal); }
.who b { color: var(--teal); } .who small { color: var(--muted); }
.who .out { color: var(--muted); } .who .out:hover { background: #fff; color: var(--teal); }
.avatar { background: var(--teal); color: #fff; }

/* welcome */
#welcome { padding-top: 3vh; }
#welcome h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; margin-bottom: 14px; }
#welcome h1 em { color: var(--pink); font-style: normal; }
#welcome p { color: var(--muted); font-size: 17px; max-width: 34em; margin-bottom: 18px; }
.stats { margin-bottom: 26px; }
.stat { border-right-color: var(--line); color: var(--muted); }
.stat .tag { color: var(--teal); background: none; font-weight: 700; }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.topic { background: none; border: 0; border-top: 2px solid var(--teal); border-radius: 0; box-shadow: none; padding: 14px 0 6px; }
.topic h3 { display: flex; align-items: center; gap: 10px; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.topic h3::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--tc, var(--cyan)); flex: none; }
.topic .q { border-top: 1px solid var(--line); padding: 13px 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.topic .q::after { content: "\2192"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--teal); font-size: 14px; flex: none; transition: background .15s; }
.topic .q:hover { color: var(--teal); }
.topic .q:hover::after { background: var(--cyan); transform: none; }

/* question and answer thread */
.m.user { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--teal); border-top: 0; padding: 26px 0 0; }
.m.user:first-child { padding-top: 6px; }
.m.user::before { content: "Question"; color: var(--muted); font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .14em; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card { background: #fff; border: 0; border-top: 3px solid var(--cyan); border-radius: 0; padding: 16px 0 0; box-shadow: none; }
.sum::before { content: "Short answer"; display: block; font: 700 11px/1 "DM Sans", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.sum p, .sum li { font-size: 18px; }
.card .lbl { color: var(--teal); font-family: "DM Sans", sans-serif; }
.card .lbl.s { color: var(--teal); } .card .lbl.c { color: var(--center); } .card .lbl.w { color: var(--warn); }
.conf { background: var(--pale-teal) !important; color: var(--ink) !important; border-left: 4px solid var(--cyan); border-radius: 4px; }
.conf.high { border-left-color: var(--cyan); } .conf.medium { border-left-color: var(--lime); } .conf.low { border-left-color: var(--pink); }
.cite, .num { background: var(--pale-cyan); color: var(--teal); border-radius: 6px; }
.cite:hover { background: var(--cyan); color: var(--teal); }
.srctoggle { background: var(--pale-teal); border-radius: 10px; color: var(--teal); }
.srctoggle:hover { background: var(--pale-cyan); }
.srclink { background: var(--pale-cyan); color: var(--teal); border-radius: 999px; }
.srclink:hover { background: var(--cyan); color: var(--teal); }
.srcmain { background: var(--pale-teal); border-radius: 10px; }
.srcmain:hover { background: var(--pale-cyan); }
.expand { border: 1.5px solid var(--teal); background: #fff; color: var(--teal); border-radius: 999px; }
.expand:hover { background: var(--cyan); border-color: var(--cyan); }
.notfound { background: color-mix(in srgb, var(--lime) 35%, #fff); color: var(--teal); }
.scrubbed { background: var(--pale-cyan); border-radius: 8px; }
.dots i, .dots i:nth-child(2), .dots i:nth-child(3) { background: var(--cyan); }
.dock { background: #fff; }
.dock .in { border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.dock .in:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--pale-cyan); }
.dock .send { background: var(--cyan); color: var(--teal); border-radius: 50%; }
.warnbar { background: #fff4f7; }

/* sign-in: teal panel with the circle-and-rule device */
#land { background: #fff; }
.split { grid-template-columns: 44fr 56fr; }
.panel-brand { background: var(--teal); position: relative; overflow: hidden; }
.panel-brand .cname { color: #fff; font-family: var(--display); font-weight: 500; }
.panel-brand .mark { background: rgba(255,255,255,.14); }
.pitch { position: relative; z-index: 1; }
.pitch h1 { color: #fff; font-size: clamp(44px, 5.6vw, 78px); line-height: .98; font-weight: 500; margin-bottom: 22px; }
.pitch h1 i { color: var(--pink); font-style: normal; }
.pitch .lead { color: rgba(255,255,255,.82); font-size: 18px; }
.plain { display: none; }
.panel-brand .foot { position: relative; z-index: 1; color: rgba(255,255,255,.65); }
.device { position: absolute; right: -90px; bottom: 70px; width: 340px; height: 340px; pointer-events: none;
  background: radial-gradient(circle at 78% 22%, var(--lime) 0 14px, transparent 15px), radial-gradient(circle at 18% 78%, var(--pink) 0 18px, transparent 19px); }
.device::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--cyan); }
.device::after { content: ""; position: absolute; left: -140px; right: -140px; top: 50%; height: 3px; background: #fff; opacity: .9; }
.login h2 { font-size: 44px; line-height: 1.05; }
.login .eyebrow { margin-bottom: 14px; }
.login input { background: #fff; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .device { display: none; }
  .pitch h1 { font-size: 44px; }
  .login h2 { font-size: 36px; }
}
@media (max-width: 600px) {
  .m.user { font-size: 24px; }
  .ideas { grid-template-columns: 1fr; }
}

/* keep the welcome screen on one screen */
#welcome h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.08; }
#welcome p { margin-bottom: 14px; font-size: 16px; }
.stats { margin-bottom: 18px; }
.topic { padding-top: 12px; }
.topic .q { padding: 10px 0; font-size: 16px; }
@media (max-height: 940px) and (min-width: 861px) { .topic .q:nth-child(4) { display: none; } }
.device { right: -110px; bottom: -70px; width: 320px; height: 320px; }
.device::after { left: -170px; right: -110px; }
.panel-brand .foot { max-width: 20em; }
.device::after { left: -70px; }

/* rule text in the section viewer: normal type, rejoined paragraphs */
.secttext { font-family: "DM Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--pale-teal); padding: 6px 18px; border-radius: 12px; max-height: 52vh; max-height: 52dvh; overflow: auto; margin: 14px 0; }
.secttext p { margin: .7em 0; }
dialog a.btn { text-decoration: none; }
dialog .tag { font-family: "DM Sans", sans-serif; }
