/* =========================================================
   BridgeCo: clean, light interface
   Brand: navy #14213D (logo cap), indigo #1800AD (logo </>),
   sky #4AA3E0 and orange #F7941D (poster accents, used sparingly)
   ========================================================= */
:root {
  --navy: #14213d;
  --navy-700: #1d2e52;
  --navy-600: #2a3d66;
  --navy-50: #eef1f7;
  --indigo: #1800ad;
  --sky: #4aa3e0;
  --sky-50: #ecf6fd;
  --orange: #f7941d;
  --orange-50: #fef4e8;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #f6f7f9;
  --card: #ffffff;
  --ok: #0f9d68; --ok-50: #e8f7f0;
  --warn: #b26a00; --warn-50: #fdf4e3;
  --bad: #d92d3a; --bad-50: #fdeced;
  --info: #1f6fb2; --info-50: #eaf3fb;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: none;
  --shadow-md: 0 1px 2px rgba(17,24,39,.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --brand-font: "Fredoka", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration: none; font-weight: 500; }
a:hover { color: var(--indigo); }
img { max-width: 100%; display: block; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------------- brand / logo ---------------- */
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); text-decoration: none; }
.brand-cap { width: 34px; height: 21px; margin-bottom: 1px; }
.brand-word { font-family: var(--brand-font); font-weight: 700; font-size: 1.32rem; letter-spacing: -.01em; color: #000; white-space: nowrap; }
.brand-code { color: var(--indigo); font-weight: 700; }
.brand.lg .brand-cap { width: 56px; height: 35px; }
.brand.lg .brand-word { font-size: 2rem; }
.brand.light .brand-word { color: #fff; }
.brand.light .brand-code { color: #9db4ff; }
.logo-link { text-decoration: none !important; display: inline-flex; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem;
  border-radius: 8px; font: 600 .93rem/1 var(--font); border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; text-decoration: none !important; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd4dc; color: var(--ink); background: #fafbfc; }
.btn-soft { background: var(--navy-50); color: var(--navy); }
.btn-soft:hover { background: #e3e8f2; color: var(--navy); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #0b875a; color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--bad); border-color: #f2c9cd; }
.btn-danger-ghost:hover { background: var(--bad-50); color: var(--bad); }
.btn-sm { padding: .5rem .95rem; font-size: .84rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn.danger { color: var(--bad); }
.icon-btn.filled { background: var(--navy); color: #fff; }

/* =================== HEADER (public + portal) =================== */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header .inner { max-width: 1200px; margin: 0 auto; padding: .7rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.header .nav { display: flex; gap: .3rem; margin-left: 1rem; }
.header .nav a { color: var(--muted); font-weight: 550; font-size: .93rem; padding: .5rem .85rem; border-radius: 8px; }
.header .nav a:hover { color: var(--ink); background: var(--bg); }
.header .right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.header .menu-btn { display: none; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 1.6rem; overflow-x: auto; scrollbar-width: none; }
.subnav a { color: var(--muted); font-weight: 550; font-size: .93rem; padding: .95rem 0; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--navy); border-bottom-color: var(--navy); }
.subnav .count { background: var(--orange); color: #fff; font-size: .7rem; font-weight: 700; padding: .05rem .42rem; border-radius: 8px; }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .9rem .25rem .25rem; border: 1px solid var(--line); border-radius: 8px; }
.user-chip .name { font-weight: 600; color: var(--ink); font-size: .9rem; line-height: 1.1; }
.user-chip .role { font-size: .74rem; color: var(--muted); }

/* =================== PUBLIC SITE =================== */
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero .inner { max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.5rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 8px; background: var(--navy-50); color: var(--navy); font-size: .82rem; font-weight: 600; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 1.1rem 0 1rem; letter-spacing: -.035em; }
.hero h1 .hl { color: var(--sky); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; }
.hero .lead strong { color: var(--ink); }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero .facts { display: flex; gap: 2.2rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hero .facts div { font-size: .85rem; color: var(--muted); }
.hero .facts strong { display: block; font-size: 1.35rem; color: var(--ink); font-weight: 750; letter-spacing: -.02em; }
.poster-frame { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; box-shadow: var(--shadow-md); }
.poster-frame img { border-radius: 10px; }

.section { max-width: 1200px; margin: 0 auto; padding: 5rem 1.5rem; }
.section-head { max-width: 620px; margin: 0 auto 2.8rem; text-align: center; }
.section-head .kicker { color: var(--indigo); font-weight: 650; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: .4rem; }
.section-head p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.feature .ico { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 1.1rem; }
.feature p { color: var(--muted); margin: 0; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 1rem; }
.topics { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.topic-chip { padding: .55rem 1.05rem; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; font-weight: 500; }
.topic-chip b { color: var(--muted); font-weight: 600; margin-right: .4rem; }

.price-card { max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2.4rem; text-align: center; box-shadow: var(--shadow-md); }
.price-card .amount { font-size: 3.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.price-card .unit { color: var(--muted); font-size: 1rem; margin: .4rem 0 1.4rem; }
.check-list { list-style: none; padding: 0; margin: 0 auto 1.8rem; text-align: left; max-width: 340px; }
.check-list li { padding: .4rem 0 .4rem 1.9rem; position: relative; }
.check-list li svg { position: absolute; left: 0; top: .55rem; color: var(--ok); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.05rem 1.3rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.cta-band { background: var(--navy); border-radius: 10px; padding: 3rem; color: #c8d0e0; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 1.9rem; margin-bottom: .4rem; }
.cta-band p { margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy-50); }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 3rem 1.5rem 2rem; color: var(--muted); }
.site-footer .inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.site-footer h4 { font-size: .85rem; color: var(--ink); margin-bottom: .6rem; }
.site-footer a { color: var(--text); display: block; padding: .15rem 0; }
.site-footer .bottom { max-width: 1200px; margin: 2rem auto 0; border-top: 1px solid var(--line); padding-top: 1.2rem; font-size: .85rem; }

/* =================== AUTH =================== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-top { padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; width: 100%; margin: 0 auto; }
.auth-main { flex: 1; display: flex; justify-content: center; padding: 1rem 1.25rem 4rem; }
.auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2.2rem; box-shadow: var(--shadow-md); align-self: flex-start; }
.auth-card.wide { max-width: 760px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { margin-top: 1.4rem; text-align: center; color: var(--muted); font-size: .92rem; }

/* =================== FORMS =================== */
.field { margin-bottom: 1.05rem; }
.field label, .label { display: block; font-weight: 600; font-size: .87rem; color: var(--ink); margin-bottom: .4rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.field .errors { color: var(--bad); font-size: .83rem; margin-top: .35rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: .78rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font: 400 .95rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(20,33,61,.08); }
input[type=file] { font: .9rem var(--font); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; font-weight: 400 !important; }
.check input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.fieldset-title { grid-column: 1 / -1; font-weight: 650; color: var(--ink); margin: .6rem 0 1rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.fieldset-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.fieldset-title span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }

/* =================== PORTAL =================== */
.page { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head p { margin: 0; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.4rem 1.5rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card { margin-top: 1.25rem; }
.cols { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.25rem; align-items: start; }
.stack > * + * { margin-top: 1.25rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: var(--shadow); }
.stat .l { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.stat .l svg { color: var(--navy-600); }
.stat .v { font-size: 1.6rem; font-weight: 750; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin-top: .35rem; }

.greeting { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.greeting h1 { margin: 0 0 .2rem; }
.greeting p { margin: 0; color: var(--muted); }
.next-card { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--navy); color: #c8d0e0; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.25rem; }
.next-card .k { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0d6; font-weight: 600; }
.next-card .when { color: #fff; font-weight: 650; font-size: 1.1rem; }
.next-card .btn-primary { background: #fff; color: var(--navy); }

/* segmented control (CommHub "General / Following") */
.seg { display: inline-flex; gap: .25rem; padding: .3rem; background: #eef0f3; border-radius: 10px; max-width: 100%; overflow-x: auto; }
.seg a { padding: .55rem 1.15rem; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; gap: .45rem; align-items: center; }
.seg a:hover { color: var(--ink); }
.seg a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17,24,39,.1); }
.seg .n { font-size: .72rem; background: #e3e6ea; padding: .05rem .42rem; border-radius: 6px; color: var(--muted); }
.seg a.active .n { background: var(--navy-50); color: var(--navy); }

/* chips with checkbox look (CommHub categories) */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: .87rem; font-weight: 500; }
.chip::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c9ced6; background: #fff; flex: none; }
.chip.active { background: var(--navy-50); border-color: #c9d2e6; color: var(--navy); }
.chip.active::before { background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--navy); }

.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 8px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-50); color: var(--ok); }
.pill.warn { background: var(--warn-50); color: var(--warn); }
.pill.bad { background: var(--bad-50); color: var(--bad); }
.pill.info { background: var(--info-50); color: var(--info); }
.pill.muted { background: #f0f2f5; color: var(--muted); }
.tag { display: inline-block; padding: .18rem .6rem; border-radius: 8px; font-size: .75rem; font-weight: 600; background: var(--navy-50); color: var(--navy); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line-2); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--ink); }
.list .sub { font-size: .85rem; color: var(--muted); }
.list .actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.date-block { width: 52px; flex: none; text-align: center; border-radius: 8px; background: var(--navy-50); padding: .45rem 0; }
.date-block .d { font-size: 1.2rem; font-weight: 750; color: var(--navy); line-height: 1; }
.date-block .m { font-size: .68rem; font-weight: 650; color: var(--navy-600); text-transform: uppercase; letter-spacing: .06em; margin-top: .15rem; }
.date-block.past { background: #f0f2f5; } .date-block.past .d, .date-block.past .m { color: var(--muted); }

.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: var(--bg); color: #9aa3b0; }
.empty h3 { color: var(--ink); margin-bottom: .3rem; }
.empty p { margin: 0 auto .9rem; max-width: 26rem; }
.empty.compact { padding: 1.6rem 1.5rem; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: .8rem 1.5rem; background: #fafbfc; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: .95rem 1.5rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: .88rem; flex: none; background: var(--navy-50); color: var(--navy); }
.avatar.lg { width: 60px; height: 60px; font-size: 1.15rem; }
.avatar.navy { background: var(--navy); color: #fff; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.1rem; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow); }
.person .top { display: flex; gap: .9rem; align-items: center; }
.person .name { font-weight: 650; color: var(--ink); font-size: 1.02rem; }
.person dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; font-size: .87rem; }
.person dt { color: var(--muted); } .person dd { margin: 0; color: var(--ink); }
.person .btn { margin-top: auto; }

.search-bar { display: flex; gap: .6rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .35rem .35rem .35rem 1.15rem; }
.search-bar:focus-within { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(20,33,61,.08); }
.search-bar input { border: 0 !important; box-shadow: none !important; padding: .55rem 0; background: transparent; }
.search-bar svg { color: var(--muted); flex: none; }

.progress { height: 6px; background: #eceff3; border-radius: 8px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 8px; }
.roadmap { list-style: none; margin: 0; padding: 0; }
.roadmap li { display: flex; gap: .8rem; align-items: center; padding: .45rem 0; font-size: .9rem; color: var(--ink); }
.roadmap .b { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .72rem; font-weight: 650; background: #f0f2f5; color: var(--muted); }
.roadmap li.done .b { background: var(--ok); color: #fff; }
.roadmap li.done { color: var(--muted); }

/* session picker */
.qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; width: fit-content; background: #fff; overflow: hidden; }
.qty button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.4rem; color: var(--navy); cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input { width: 70px; text-align: center; border: 0 !important; box-shadow: none !important; font-size: 1.2rem; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.summary-row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line-2); font-size: .93rem; }
.summary-row:last-child { border-bottom: 0; }
.summary-row.total { font-size: 1.1rem; font-weight: 700; color: var(--ink); padding-top: .9rem; }
.amount-big { font-size: 2.1rem; font-weight: 750; color: var(--ink); letter-spacing: -.03em; }

/* EFT details */
.eft dl { display: grid; grid-template-columns: 150px 1fr; margin: 0; }
.eft dt { color: var(--muted); font-size: .88rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.eft dd { margin: 0; color: var(--ink); font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--line-2); }
.ref-box { margin-top: 1.2rem; background: var(--navy); border-radius: 10px; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ref-box .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #9fb0d6; font-weight: 600; }
.ref-box .code { font: 700 1.5rem var(--mono); color: #fff; letter-spacing: .06em; }
.copy { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: .3rem .75rem; font: 600 .76rem var(--font); cursor: pointer; }
.copy:hover { background: var(--bg); }
.copy.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.ref-box .copy { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: .9rem; padding-bottom: 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline .b { width: 22px; height: 22px; border-radius: 50%; flex: none; background: #fff; border: 2px solid var(--line); }
.timeline li.done .b { background: var(--ok); border-color: var(--ok); }
.timeline li.now .b { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(20,33,61,.1); }
.timeline strong { color: var(--ink); font-weight: 600; }

.notice { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 10px; font-size: .9rem; border: 1px solid transparent; }
.notice > svg { flex: none; margin-top: .1rem; }
.notice .grow { flex: 1; }
.notice.info { background: var(--info-50); color: #174e7d; border-color: #d6e7f6; }
.notice.warn { background: var(--warn-50); color: #6e4600; border-color: #f4e2bf; }
.notice.ok { background: var(--ok-50); color: #0a6343; border-color: #cdeedd; }

.messages { position: fixed; top: 1rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.msg { background: #fff; color: var(--ink); padding: .9rem 1.1rem; border-radius: 8px; box-shadow: var(--shadow-md); border: 1px solid var(--line); display: flex; gap: .7rem; align-items: center; font-size: .92rem; border-left: 4px solid var(--navy); }
.msg.success { border-left-color: var(--ok); } .msg.error { border-left-color: var(--bad); } .msg.warning { border-left-color: var(--orange); }
.msg button { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; }

details.inline-form > summary { list-style: none; cursor: pointer; }
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form[open] { flex-basis: 100%; }
.inline-form .panel { margin-top: .8rem; padding: 1rem; background: var(--bg); border-radius: 8px; }

dl.kv { display: grid; grid-template-columns: 160px 1fr; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); padding: .6rem 0; border-bottom: 1px solid var(--line-2); }
dl.kv dd { margin: 0; color: var(--ink); padding: .6rem 0; border-bottom: 1px solid var(--line-2); }

/* mobile floating bottom nav (CommHub style) */
.bottom-nav { display: none; }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; padding: 2.5rem 1.25rem 3rem; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .header .inner { padding: .6rem 1rem; min-height: 60px; }
  .header .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: #fff; padding: .8rem 1rem 1.2rem; border-bottom: 1px solid var(--line); margin: 0; }
  .header .nav.open { display: flex; }
  .header .menu-btn { display: grid; }
  .header .hide-sm { display: none !important; }
  .subnav { display: none; }
  .page { padding: 1.3rem 1rem 7.5rem; }
  .bottom-nav { display: flex; position: fixed; left: .8rem; right: .8rem; bottom: .8rem; z-index: 60; background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(17,24,39,.14); border: 1px solid var(--line); padding: .55rem .4rem; justify-content: space-around; align-items: center; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #9aa3b0; font-size: .66rem; font-weight: 600; padding: .25rem .5rem; position: relative; }
  .bottom-nav a.active { color: var(--navy); }
  .bottom-nav a.active::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); position: absolute; bottom: -5px; }
  .bottom-nav a.fab { width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: #fff; justify-content: center; margin-top: -30px; box-shadow: 0 10px 24px rgba(20,33,61,.35); border: 4px solid #fff; padding: 0; }
  .bottom-nav a .dot { position: absolute; top: 0; right: .45rem; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; border-radius: 10px; }
  .eft dl, dl.kv { grid-template-columns: 1fr; } .eft dt, dl.kv dt { border: 0; padding-bottom: 0; }
  .list > li { flex-wrap: wrap; }
  .list .actions { width: 100%; justify-content: flex-start; padding-left: calc(52px + 1rem); }
  .cta-band { padding: 2rem; }
  .messages { left: 1rem; right: 1rem; max-width: none; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .hero .facts { gap: 1.4rem; }
  .list .actions { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   CommHub-style layer (navy instead of teal)
   ========================================================= */
:root { --bg: #f5f5f7; --line: #e6e7eb; --line-2: #eeeff2; --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17,24,39,.04); --shadow-md: 0 2px 10px rgba(17,24,39,.06); }

/* header: [menu] [logo] [icons] */
.header { background: #fff; }
.header .inner { gap: 1rem; }
.menu-square { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; border: 0; place-items: center; cursor: pointer; flex: none; }
.menu-square:hover { background: var(--navy-700); }
.icon-btn.solid { background: var(--ink); color: #fff; width: 34px; height: 34px; }
.icon-btn.solid:hover { background: var(--navy); color: #fff; }
.menu-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17,24,39,.08); padding: .6rem 1rem 1rem; z-index: 70; }
.menu-panel.open { display: block; }
.menu-panel a { display: flex; align-items: center; gap: .75rem; padding: .85rem .6rem; color: var(--ink); font-weight: 550; border-bottom: 1px solid var(--line-2); }
.menu-panel a:last-child { border-bottom: 0; }
.menu-panel a svg { color: var(--muted); }

/* sub-navigation row: plain text links like "Our community / Apply as researcher" */
.subnav a { font-weight: 500; font-size: .98rem; }
.subnav a.active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--navy); }

/* buttons: filled pill like "Follow" */
.btn { border-radius: 999px; }
.btn-primary { background: var(--navy); }
.btn-primary:hover { background: var(--navy-700); }
.icon-circle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-grid; place-items: center; flex: none; }
.icon-circle:hover { background: var(--bg); color: var(--ink); }
.icon-circle.sm { width: 38px; height: 38px; }

/* inputs + search like "Search posts..." */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number],
input[type=datetime-local], input[type=search], select, textarea { border-radius: 14px; padding: .85rem 1.05rem; }
.search-bar { border-radius: 18px; padding: .45rem .45rem .45rem 1.2rem; background: #fff; }
.search-bar input { font-size: 1rem; }

/* segmented control like "General / Following" */
.seg { background: #ececf0; border-radius: 16px; padding: .3rem; gap: .3rem; }
.seg a { border-radius: 12px; padding: .65rem 1.3rem; font-size: .95rem; }
.seg a.active { box-shadow: 0 1px 4px rgba(17,24,39,.12); }
.seg.full { display: flex; width: 100%; }
.seg.full a { flex: 1; justify-content: center; }

/* icon filter row + checkbox chips */
.filter-icons { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.filter-pill { display: inline-flex; align-items: center; gap: .5rem; height: 46px; padding: 0 1.2rem; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; }
.filter-pill:hover { color: #fff; }
.chip { border-radius: 999px; padding: .55rem 1.05rem; }
.chip::before { border-radius: 5px; }
.chip.active { background: #eaf0fb; border-color: #c7d5ef; }

/* cards */
.card, .stat, .person, .feature, .faq details, .price-card, .auth-card { border-radius: var(--radius); }
.card-head { background: #fff; }
.pill { border-radius: 999px; }
.tag { border-radius: 999px; }
.date-block, .feature .ico { border-radius: 12px; }
.step-num { border-radius: 50%; }
.cta-band { border-radius: 22px; }
.progress, .progress > span { border-radius: 999px; }
.copy { border-radius: 999px; }
.eyebrow { border-radius: 999px; }

/* CommHub "post" card header: avatar | name + tick / meta | action pill | circle buttons */
.post-head { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; }
.post-head .who { flex: 1; min-width: 0; }
.post-head .who .name { font-weight: 650; color: var(--ink); font-size: 1.02rem; display: flex; align-items: center; gap: .35rem; }
.post-head .who .meta { color: var(--muted); font-size: .86rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.tick { width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-grid; place-items: center; flex: none; }
.post-body { background: #f8f9fb; border-top: 1px solid var(--line-2); }
.avatar.logo-av { background: #fff; border: 1px solid var(--line); }
.avatar.logo-av svg { width: 30px; height: 20px; }

/* people cards in CommHub style */
.person { padding: 0; gap: 0; overflow: hidden; }
.person .post-head { padding: 1.1rem 1.2rem; }
.person .details { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid var(--line-2); background: #fcfcfd; display: flex; flex-direction: column; gap: .8rem; flex: 1; }

/* ---------- landing hero with campus card ---------- */
.hero2 { background: #fff; border-bottom: 1px solid var(--line); }
.hero2 .wrap { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 4.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero2 h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; margin: 1rem 0; }
.hero2 h1 .hl { color: var(--sky); }
.hero2 .lead { font-size: 1.08rem; color: var(--muted); max-width: 34rem; }
.hero2 .lead strong { color: var(--ink); }
.hero2 .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero2 .facts { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero2 .facts div { font-size: .85rem; color: var(--muted); }
.hero2 .facts strong { display: block; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
.campus-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); }
.campus-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 190px 190px; gap: 6px; padding: 6px; }
.campus-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; background: #e9ebef; }
.campus-grid figure:first-child { grid-row: span 2; }
.campus-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.campus-grid figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.94); color: var(--ink); font-size: .78rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; }
.campus-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.2rem 1rem; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line-2); }
.credits { font-size: .76rem; color: var(--muted); line-height: 1.5; }
.credits a { color: var(--muted); text-decoration: underline; font-weight: 400; display: inline !important; padding: 0 !important; }

/* section headings: simple, like CommHub */
.section-head .kicker { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--navy-600); font-weight: 600; }

@media (max-width: 860px) {
  .menu-square { display: grid; }
  .header .inner { justify-content: space-between; }
  .header .logo-link { position: absolute; left: 50%; transform: translateX(-50%); }
  .header .right { margin-left: 0; }
  .header .nav { display: none !important; }
  .subnav { display: block; }
  .subnav .inner { gap: 1.4rem; padding: 0 1rem; }
  .hero2 .wrap { grid-template-columns: 1fr; padding: 2.2rem 1.1rem 2.6rem; gap: 2rem; }
  .campus-grid { grid-template-rows: 140px 140px; }
  .seg.full-sm { display: flex; width: 100%; } .seg.full-sm a { flex: 1; justify-content: center; }
  .bottom-nav { border-radius: 30px; padding: .7rem .5rem; }
  .bottom-nav a { font-size: 0; gap: 0; }
  .bottom-nav a svg { width: 26px; height: 26px; }
  .bottom-nav a.fab { width: 66px; height: 66px; margin-top: -34px; }
}
.card-head { border-radius: var(--radius) var(--radius) 0 0; }
.card { overflow: hidden; }
@media (max-width: 860px) {
  .hero2 .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
  .hero2 .facts strong { font-size: 1.05rem; }
  .hero2 .cta .btn { flex: 1 1 100%; }
}
.campus-grid figcaption { white-space: nowrap; }
.cap-short { display: none; }
.campus-grid img { color: transparent; font-size: 0; }
@media (max-width: 1100px) { .cap-long { display: none; } .cap-short { display: inline; } }
.post-head .who .meta { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* =========================================================
   Navy headline accents
   ========================================================= */
/* headline: navy highlights + navy badge */
.hero2 h1 .hl, .hero h1 .hl { color: var(--navy); }
.hero2 h1 { color: #0b0f19; }
.hero2 .eyebrow { background: var(--navy); color: #fff; }

/* about section with photo */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9ebef; aspect-ratio: 572 / 410; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.section-head.left { text-align: left; margin: 0 0 1.6rem; max-width: none; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.benefits li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.benefits .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.benefits h3 { margin: 0 0 .2rem; }
.benefits p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 860px) { .auth-page .header .logo-link { position: static; transform: none; } }

/* ---------- Sign in and register: studio backdrop, card stock, recessed fields ---------- */
.auth-page { background: radial-gradient(120% 70% at 30% 0%, #ffffff 0%, #eef1f6 45%, #dfe4ed 100%); }
.auth-page .header { background: transparent; border-bottom: 0; }
.auth-card { border: 0; border-radius: 18px; background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: 0 0 0 1px rgba(20, 33, 61, .06), 0 1px 1px rgba(20, 33, 61, .08), 0 4px 8px -2px rgba(20, 33, 61, .08), 0 18px 36px -12px rgba(20, 33, 61, .22), 0 50px 90px -40px rgba(20, 33, 61, .4); }
.auth-card input[type=text], .auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=tel],
.auth-card input[type=number], .auth-card select, .auth-card textarea {
  background: linear-gradient(180deg, #f3f5f9, #ffffff); border: 1px solid #d5dbe6; box-shadow: inset 0 1px 2px rgba(20, 33, 61, .1); }
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus { background: #ffffff; border-color: #1800ad; box-shadow: inset 0 1px 2px rgba(20, 33, 61, .08), 0 0 0 3px rgba(24, 0, 173, .14); }
.auth-card .btn-primary { background: linear-gradient(180deg, #24335c 0%, #14213d 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 1px 2px rgba(20, 33, 61, .4), 0 10px 20px -8px rgba(20, 33, 61, .55); }
.auth-card .btn-primary:active { transform: scale(.97); }
