/* Brainwave: tutors' posts (the feed, a post's page, the posts on a profile). Crisp type like X, cards like LinkedIn. */
:root { --bw-bg: #f3f5f9; --bw-ink: #0f1419; --bw-mute: #536471; --bw-line: #e7ecf0; --bw-blue: #1a73e8; --bw-card: #fff; }   /* also on profiles, which show posts */
.bw-page { background: var(--bw-bg); }
.bw-page main { background: var(--bw-bg); }
.bw-shell { display: grid; grid-template-columns: 236px minmax(0, 620px) 320px; gap: 24px; justify-content: center; align-items: start; padding: 18px 0 60px; }
.bw-left, .bw-right { position: sticky; top: 82px; }

/* ---------- left menu ---------- */
.bw-nav { display: grid; gap: 2px; }
.bw-brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; color: var(--bw-ink); text-decoration: none; }
.bw-brand b { font: 700 1.3rem var(--head-font); letter-spacing: -.01em; }
.bw-nav > a:not(.bw-brand) { display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 999px; color: var(--bw-ink); font: 500 1.02rem var(--head-font); text-decoration: none; transition: background .15s; }
.bw-nav > a:not(.bw-brand) i { width: 22px; text-align: center; font-size: 1.1rem; }
.bw-nav > a:not(.bw-brand):hover { background: rgba(15,20,25,.06); }
.bw-nav > a.on { font-weight: 700; } .bw-nav > a.on i { color: var(--bw-blue); }
.bw-cta { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; padding: 13px; background: linear-gradient(135deg, #1a73e8, #6c3fd8);
          color: #fff; font: 700 1.02rem var(--head-font); box-shadow: 0 10px 24px -10px rgba(26,115,232,.7); transition: transform .15s, box-shadow .15s; }
.bw-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(26,115,232,.8); }

/* ---------- the feed column ---------- */
.bw-main { min-width: 0; }
.bw-head { position: sticky; top: 64px; z-index: 20; background: rgba(243,245,249,.86); backdrop-filter: saturate(1.6) blur(14px); margin: -18px 0 12px; padding: 12px 2px 0; }
.bw-title { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; }
.bw-title h1 { font: 700 1.35rem/1.2 var(--head-font); color: var(--bw-ink); margin: 0; letter-spacing: -.01em; }
.bw-title small { display: block; color: var(--bw-mute); font-size: .84rem; }
.bw-h-sm { font: 700 1.2rem var(--head-font); color: var(--bw-ink); }
.bw-back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--bw-ink); text-decoration: none; transition: background .15s; }
.bw-back:hover { background: rgba(15,20,25,.08); }
.bw-tabs { display: flex; border-bottom: 1px solid var(--bw-line); }
.bw-tabs a { flex: 1; text-align: center; padding: 12px 0 13px; color: var(--bw-mute); font: 500 .98rem var(--head-font); text-decoration: none; position: relative; transition: background .15s, color .15s; }
.bw-tabs a:hover { background: rgba(15,20,25,.04); color: var(--bw-ink); }
.bw-tabs a.on { color: var(--bw-ink); font-weight: 700; }
.bw-tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--bw-blue); }

/* the "What's on your mind?" box */
.bw-start { background: var(--bw-card); border: 1px solid var(--bw-line); border-radius: 18px; padding: 14px 16px 8px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(15,20,25,.04); }
.bw-start-row { display: flex; gap: 12px; align-items: center; }
.bw-start-row .t-photo { border-radius: 50%; flex: none; }
.bw-start-btn { flex: 1; text-align: left; border: 1px solid #cfd9de; border-radius: 999px; background: #fff; padding: 12px 18px; color: var(--bw-mute); font: 500 .98rem var(--head-font); transition: background .15s, border-color .15s; }
.bw-start-btn:hover { background: #f7f9fa; border-color: #b9c6cd; }
.bw-start-tools { display: flex; justify-content: space-around; margin-top: 8px; }
.bw-start-tools button { border: 0; background: none; border-radius: 10px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 9px; color: var(--bw-mute); font: 500 .9rem var(--head-font); transition: background .15s; }
.bw-start-tools button:hover { background: rgba(15,20,25,.05); color: var(--bw-ink); }
.bw-start-tools i { font-size: 1.1rem; }
.bw-join { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #eef4ff, #f6efff); border: 1px solid #dfe7fb; border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.bw-join-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: #6c3fd8; flex: none; box-shadow: 0 4px 12px rgba(108,63,216,.15); }
.bw-join div { flex: 1; display: grid; } .bw-join b { color: var(--bw-ink); font-family: var(--head-font); } .bw-join span { color: var(--bw-mute); font-size: .88rem; }

/* ---------- a post ---------- */
.bw-feed { display: grid; gap: 12px; }
.bw-post { background: var(--bw-card); border: 1px solid var(--bw-line); border-radius: 18px; padding: 14px 16px 6px; box-shadow: 0 1px 2px rgba(15,20,25,.04);
           transition: box-shadow .2s, border-color .2s; animation: bw-in .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bw-in { from { opacity: 0; transform: translateY(8px); } }
.bw-post[data-open] { cursor: pointer; }
.bw-post[data-open]:hover { border-color: #d6dee5; box-shadow: 0 6px 22px -12px rgba(15,20,25,.25); }
.bw-ph { display: flex; gap: 12px; align-items: flex-start; }
.bw-av img.t-photo { border-radius: 50%; display: block; }
/* a tutor without a photo: their initial on Brainwave's colours */
:is(.bw-post, .bw-start, .bw-modal, .bw-people, .bw-about, .bw-author, .bw-c) .t-photo-i { background: linear-gradient(135deg, #1a73e8, #8430ce); color: #fff; font-weight: 700; font-size: 1.15rem; border-radius: 50%; }
.bw-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.bw-name { color: var(--bw-ink); font: 700 1rem var(--head-font); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; width: max-content; max-width: 100%; }
.bw-name:hover { text-decoration: underline; }
.bw-tick { color: var(--bw-blue); font-size: .9rem; }
.bw-sub { color: var(--bw-mute); font-size: .84rem; display: flex; align-items: center; flex-wrap: wrap; }
.bw-sub a { color: inherit; text-decoration: none; } .bw-sub a:hover { text-decoration: underline; }
.bw-sub i { font-size: .72rem; }
.bw-dot { margin: 0 6px; }
.bw-ic { width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--bw-mute); display: grid; place-items: center; transition: background .15s, color .15s; }
.bw-ic:hover { background: rgba(26,115,232,.1); color: var(--bw-blue); }
.bw-body { margin: 10px 0 2px; color: var(--bw-ink); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.bw-body p { margin: 0 0 .7em; } .bw-body p:last-child { margin-bottom: 0; }
.bw-body a { color: var(--bw-blue); text-decoration: none; } .bw-body a:hover { text-decoration: underline; }
.bw-detail .bw-body { font-size: 1.12rem; line-height: 1.6; }
.bw-clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bw-clamp.open { display: block; }
.bw-seemore { border: 0; background: none; padding: 0; color: var(--bw-mute); font-weight: 500; font-size: .95rem; }
.bw-seemore:hover { color: var(--bw-blue); text-decoration: underline; }

/* pictures and video */
.bw-media { display: grid; gap: 3px; margin: 12px -2px 4px; border-radius: 16px; overflow: hidden; border: 1px solid var(--bw-line); }
.bw-media.bw-n1 { max-height: 560px; }
.bw-media.bw-n2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 10; }
.bw-media.bw-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; } .bw-media.bw-n3 .bw-img:first-child { grid-row: span 2; }
.bw-media.bw-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; }
.bw-img { display: block; min-height: 0; overflow: hidden; background: #eef1f4; }
.bw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bw-media.bw-n1 .bw-img { max-height: 560px; } .bw-img:hover img { transform: scale(1.02); }
.bw-video { margin: 12px -2px 4px; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--bw-line); }
.bw-video video { width: 100%; max-height: 560px; display: block; background: #000; }

/* counts and actions */
.bw-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 8px; color: var(--bw-mute); font-size: .86rem; border-bottom: 1px solid var(--bw-line); min-height: 38px; }
.bw-sum { display: inline-flex; align-items: center; }
.bw-rx { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c); color: #fff; font-size: .62rem; margin-right: -5px; box-shadow: 0 0 0 2px #fff; font-style: normal; }
.bw-rx:last-of-type { margin-right: 6px; }
.bw-sum b { font-weight: 500; color: var(--bw-mute); }
.bw-meta a { color: inherit; text-decoration: none; } .bw-meta a:hover { color: var(--bw-blue); text-decoration: underline; }
.bw-actions { display: flex; justify-content: space-between; padding: 2px 0; }
.bw-act { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: none; border-radius: 10px; padding: 10px 6px; color: var(--bw-mute);
          font: 500 .92rem var(--head-font); text-decoration: none; transition: background .15s, color .15s; }
.bw-act:hover { background: rgba(15,20,25,.05); color: var(--bw-ink); }
.bw-act i { font-size: 1.08rem; }
.bw-react.on { color: var(--c, var(--bw-blue)); font-weight: 700; }
.bw-react.pop i { animation: bw-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes bw-pop { 40% { transform: scale(1.5) rotate(-12deg); } }
.bw-react-wrap { flex: 1; position: relative; display: flex; }
.bw-palette { position: absolute; left: 4px; bottom: calc(100% + 6px); z-index: 30; display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: #fff;
              box-shadow: 0 12px 36px -8px rgba(15,20,25,.35), 0 0 0 1px rgba(15,20,25,.06); opacity: 0; transform: translateY(8px) scale(.9); transform-origin: left bottom;
              pointer-events: none; transition: opacity .18s, transform .22s cubic-bezier(.3,1.4,.5,1); }
.bw-react-wrap.show .bw-palette { opacity: 1; transform: none; pointer-events: auto; }
.bw-palette button { position: relative; width: 42px; height: 42px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
                     display: grid; place-items: center; font-size: 1.15rem; transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
.bw-palette button:hover, .bw-palette button:focus-visible { transform: translateY(-6px) scale(1.25); outline: none; }
.bw-palette button span { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--bw-ink); color: #fff;
                          font: 500 .72rem var(--head-font); padding: 3px 8px; border-radius: 999px; opacity: 0; transition: opacity .12s; pointer-events: none; }
.bw-palette button:hover span, .bw-palette button:focus-visible span { opacity: 1; }

/* ---------- writing a post ---------- */
.bw-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.bw-modal .modal-dialog { max-width: 620px; }
.bw-modal .modal-header { border: 0; padding: 18px 20px 6px; }
.bw-ch { display: flex; align-items: center; gap: 12px; } .bw-ch .t-photo { border-radius: 50%; }
.bw-ch b { display: block; font: 700 1.02rem var(--head-font); color: var(--bw-ink); }
.bw-ch span { color: var(--bw-mute); font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; }
.bw-modal .modal-body { padding: 6px 20px 10px; }
#bwBody { width: 100%; border: 0; outline: none; resize: none; font-size: 1.15rem; line-height: 1.5; color: var(--bw-ink); min-height: 140px; padding: 6px 0; }
#bwBody::placeholder { color: #8b98a5; }
.bw-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.bw-sugg button { border: 1px solid #d6e4fb; background: #f2f7ff; color: var(--bw-blue); border-radius: 999px; padding: 4px 11px; font: 500 .82rem var(--head-font); transition: background .15s; }
.bw-sugg button:hover { background: #e3eeff; } .bw-sugg button.used { opacity: .4; }
.bw-tray { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bw-tray:empty { display: none; }
.bw-item { position: relative; border: 1px solid var(--bw-line); border-radius: 14px; overflow: hidden; background: #f7f9fa; }
.bw-item.video { grid-column: 1 / -1; }
.bw-item img, .bw-item video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #000; }
.bw-item .x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(15,20,25,.75); color: #fff; display: grid; place-items: center; }
.bw-item label { display: block; padding: 8px 10px 10px; font-size: .78rem; color: var(--bw-mute); font-weight: 500; }
.bw-item input { width: 100%; margin-top: 4px; border: 1px solid #cfd9de; border-radius: 8px; padding: 6px 9px; font-size: .86rem; color: var(--bw-ink); }
.bw-item input:focus { outline: none; border-color: var(--bw-blue); box-shadow: 0 0 0 3px rgba(26,115,232,.15); }
.bw-item.missing input { border-color: #e8384f; }
.bw-item .ok { color: #1e8e3e; margin-left: 4px; }
.bw-meter { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #f7f9fa; border: 1px solid var(--bw-line); }
.bw-ring { --v: 0; --col: #e8384f; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
           background: radial-gradient(closest-side, #f7f9fa 76%, transparent 78% 100%), conic-gradient(var(--col) calc(var(--v) * 1%), #e3e8ec 0); transition: --v .4s; }
.bw-ring span { font: 700 1rem var(--head-font); color: var(--bw-ink); }
.bw-meter-t b { font: 700 .92rem var(--head-font); color: var(--bw-ink); }
.bw-meter-t ul { margin: 2px 0 0; padding-left: 16px; color: var(--bw-mute); font-size: .8rem; }
.bw-err { margin: 10px 0 0; color: #c5221f; font-size: .88rem; font-weight: 500; }
.bw-cfoot { border-top: 1px solid var(--bw-line); padding: 10px 14px; display: flex; justify-content: space-between; flex-wrap: nowrap; }
.bw-tools { display: flex; gap: 2px; }
.bw-tool { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; font-size: 1.15rem; cursor: pointer; margin: 0; transition: background .15s; }
.bw-tool:hover { background: rgba(26,115,232,.1); }
.bw-emo-wrap { position: relative; }
.bw-emo { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 5; display: grid; grid-template-columns: repeat(6, 38px); gap: 2px; padding: 8px; border-radius: 16px; background: #fff;
          box-shadow: 0 16px 40px -10px rgba(15,20,25,.35), 0 0 0 1px rgba(15,20,25,.06); }
.bw-emo button { width: 38px; height: 38px; border: 0; background: none; border-radius: 10px; font-size: 1.25rem; transition: background .12s, transform .12s; }
.bw-emo button:hover { background: #f2f4f6; transform: scale(1.15); }
.bw-cright { display: flex; align-items: center; gap: 12px; }
.bw-size, .bw-count { font-size: .78rem; color: var(--bw-mute); font-variant-numeric: tabular-nums; }
.bw-count.warn { color: #e37400; } .bw-count.over, .bw-size.over { color: #c5221f; font-weight: 700; }
.bw-post-btn { border: 0; border-radius: 999px; padding: 9px 22px; background: var(--bw-ink); color: #fff; font: 700 .95rem var(--head-font); transition: opacity .15s, transform .15s; }
.bw-post-btn:hover:not(:disabled) { transform: translateY(-1px); }
.bw-post-btn:disabled { opacity: .35; }
.bw-progress { height: 4px; background: #e3e8ec; } .bw-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1a73e8, #6c3fd8); transition: width .2s; }

/* ---------- a post's page: comments ---------- */
.bw-comments { background: var(--bw-card); border: 1px solid var(--bw-line); border-radius: 18px; padding: 14px 16px; margin-top: 12px; }
.bw-comments h2 { font: 700 1.05rem var(--head-font); color: var(--bw-ink); margin: 0 0 12px; }
.bw-cform { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--bw-line); }
.bw-cform textarea { flex: 1; border: 1px solid #cfd9de; border-radius: 20px; padding: 9px 16px; resize: none; font-size: .95rem; line-height: 1.4; min-height: 42px; max-height: 200px; }
.bw-cform textarea:focus { outline: none; border-color: var(--bw-blue); box-shadow: 0 0 0 3px rgba(26,115,232,.12); }
.bw-cbtn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bw-blue); color: #fff; flex: none; transition: transform .15s; } .bw-cbtn:hover { transform: scale(1.06); }
.bw-cav { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: #e8f0fe; color: var(--bw-blue); font: 700 .95rem var(--head-font); flex: none; }
.bw-cav.r-parent { background: #e6f4ea; color: #1e8e3e; } .bw-cav.r-student { background: #f3e8fd; color: #8430ce; }
.bw-c .t-photo { border-radius: 50%; }
.bw-cnote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--bw-mute); font-size: .9rem; padding-bottom: 14px; border-bottom: 1px solid var(--bw-line); margin: 0; }
.bw-csign span { flex: 1; min-width: 200px; }
.bw-clist { list-style: none; margin: 0; padding: 0; }
.bw-c { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--bw-line); }
.bw-c:last-child { border-bottom: 0; }
.bw-c:target .bw-cbody { background: #fff8e1; }
.bw-cbody { flex: 1; min-width: 0; background: #f4f6f8; border-radius: 4px 16px 16px 16px; padding: 8px 12px; transition: background 1s; }
.bw-chead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .84rem; }
.bw-chead b { color: var(--bw-ink); font-family: var(--head-font); }
.bw-chead time { color: var(--bw-mute); margin-left: auto; }
.bw-role { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #e8f0fe; color: var(--bw-blue); text-transform: uppercase; letter-spacing: .04em; }
.bw-role.r-parent { background: #e6f4ea; color: #1e8e3e; } .bw-role.r-student { background: #f3e8fd; color: #8430ce; } .bw-role.r-author { background: var(--bw-ink); color: #fff; }
.bw-cbody p { margin: 4px 0 0; color: var(--bw-ink); font-size: .95rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.bw-cdel { border: 0; background: none; color: var(--bw-mute); padding: 0 2px; } .bw-cdel:hover { color: #c5221f; }
.bw-cnone { color: var(--bw-mute); margin: 12px 0 0; font-size: .92rem; }
.bw-more-h { font: 700 1.05rem var(--head-font); color: var(--bw-ink); margin: 26px 2px 10px; }

/* ---------- loading more, the end, nothing yet ---------- */
.bw-loader { display: grid; gap: 12px; margin-top: 12px; }
.bw-skel { background: #fff; border: 1px solid var(--bw-line); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: 48px 1fr; gap: 8px 12px; }
.bw-skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef1f4 25%, #f7f9fa 50%, #eef1f4 75%); background-size: 200% 100%; animation: bw-sh 1.2s infinite linear; }
.bw-skel .a { width: 48px; height: 48px; border-radius: 50%; grid-row: span 2; } .bw-skel .b { height: 14px; width: 40%; } .bw-skel .c { height: 12px; width: 25%; } .bw-skel .d { grid-column: 1 / -1; height: 90px; }
@keyframes bw-sh { to { background-position: -200% 0; } }
.bw-next { display: block; text-align: center; margin: 14px 0; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--bw-line); color: var(--bw-blue); font-weight: 500; text-decoration: none; }
.bw-end { text-align: center; color: var(--bw-mute); margin: 22px 0; font-size: .9rem; } .bw-end i { color: #1e8e3e; margin-right: 6px; }
.bw-empty { text-align: center; background: #fff; border: 1px solid var(--bw-line); border-radius: 18px; padding: 40px 20px; display: grid; justify-items: center; gap: 6px; }
.bw-empty b { font: 700 1.15rem var(--head-font); color: var(--bw-ink); margin-top: 8px; } .bw-empty p { color: var(--bw-mute); margin: 0 0 8px; }

/* ---------- the right column ---------- */
.bw-box { background: #fff; border: 1px solid var(--bw-line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; }
.bw-box h2 { font: 700 1.12rem var(--head-font); color: var(--bw-ink); margin: 0 0 8px; }
.bw-trend { list-style: none; margin: 0 -16px; padding: 0; }
.bw-trend a { display: grid; padding: 9px 16px; text-decoration: none; transition: background .15s; }
.bw-trend a:hover { background: #f7f9fa; }
.bw-trend small { color: var(--bw-mute); font-size: .76rem; } .bw-trend b { color: var(--bw-ink); font-family: var(--head-font); }
.bw-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bw-people li { display: flex; align-items: center; gap: 10px; } .bw-people .t-photo { border-radius: 50%; flex: none; }
.bw-people div { flex: 1; min-width: 0; display: grid; line-height: 1.25; } .bw-people a { color: var(--bw-ink); text-decoration: none; } .bw-people a:hover b { text-decoration: underline; }
.bw-people b { font-family: var(--head-font); font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bw-people small { color: var(--bw-mute); font-size: .78rem; }
.bw-follow { border: 1px solid #cfd9de; border-radius: 999px; padding: 5px 12px; font: 700 .8rem var(--head-font); color: var(--bw-ink) !important; transition: background .15s; }
.bw-follow:hover { background: #f2f4f6; }
.bw-promo { background: linear-gradient(160deg, #0f2a5f, #1a73e8); color: #fff; border: 0; display: grid; gap: 4px; }
.bw-promo i { font-size: 1.4rem; color: #ffd166; } .bw-promo b { font: 700 1.05rem var(--head-font); } .bw-promo p { margin: 0 0 8px; opacity: .85; font-size: .9rem; }
.bw-promo .btn { justify-self: start; background: #fff; color: #0f2a5f; border: 0; }
.bw-fine { color: var(--bw-mute); font-size: .78rem; padding: 0 8px; } .bw-fine a { color: inherit; }
.bw-about { text-align: center; padding-top: 0; overflow: hidden; }
.bw-about-cover { height: 56px; margin: 0 -16px -32px; background: linear-gradient(120deg, #1a73e8, #8430ce); }
.bw-about .t-photo { border-radius: 50%; border: 3px solid #fff; position: relative; }
.bw-about a { color: var(--bw-ink); text-decoration: none; } .bw-about b { display: block; margin-top: 6px; font: 700 1.02rem var(--head-font); }
.bw-about p { color: var(--bw-mute); font-size: .86rem; margin: 4px 0 10px; }
.bw-about-acts { display: flex; gap: 8px; justify-content: center; }
.bw-tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.bw-tagcloud a { padding: 5px 11px; border-radius: 999px; background: #f2f7ff; color: var(--bw-blue); font-weight: 500; font-size: .86rem; text-decoration: none; }

/* a tutor's posts page: their card */
.bw-author { background: #fff; border: 1px solid var(--bw-line); border-radius: 18px; overflow: hidden; margin-bottom: 12px; padding: 0 16px 14px; }
.bw-author-cover { height: 96px; margin: 0 -16px; background: linear-gradient(120deg, #1a73e8, #8430ce); }
.bw-author-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -42px; }
.bw-author-row .t-photo { border-radius: 50%; border: 4px solid #fff; }
.bw-author-acts { display: flex; gap: 8px; }
.bw-author-name { display: flex; align-items: center; gap: 6px; font: 700 1.25rem var(--head-font); color: var(--bw-ink); margin-top: 8px; }
.bw-author p { color: var(--bw-mute); margin: 2px 0 0; }

/* posts on a profile */
.bw-pf .bw-pf-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bw-pf .bw-pf-h a { font-weight: 500; font-size: .92rem; }
.bw-pf .bw-start { box-shadow: none; }
.bw-pf-feed { display: grid; gap: 12px; }
.bw-pf .bw-post { box-shadow: none; }

/* the picture viewer */
.bw-zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; animation: bw-fade .2s; }
.bw-zoom[hidden] { display: none; }
.bw-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.bw-zoom button { position: absolute; top: 16px; left: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.2rem; }
@keyframes bw-fade { from { opacity: 0; } }
.bw-fab { position: fixed; right: 18px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; background: linear-gradient(135deg, #1a73e8, #6c3fd8); color: #fff;
          font-size: 1.3rem; box-shadow: 0 12px 28px -8px rgba(26,115,232,.75); }
.t-bw-link::after { content: "New"; margin-left: 6px; font-size: .62rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: #e8f0fe; color: #1a73e8; vertical-align: 2px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1199px) { .bw-shell { grid-template-columns: 76px minmax(0, 620px) 300px; } .bw-nav span, .bw-brand b { display: none; } .bw-nav > a:not(.bw-brand) { justify-content: center; padding: 12px; } .bw-cta { padding: 13px 0; } }
@media (max-width: 991px) { .bw-shell { grid-template-columns: minmax(0, 620px); } .bw-left, .bw-right { display: none; } .bw-head { margin-top: -18px; } }
@media (max-width: 575px) {
  .bw-shell { padding-top: 10px; gap: 0; } .bw-page .t-wrap.bw-shell { width: 100%; }
  .bw-head { padding: 10px 14px 0; }
  .bw-post, .bw-start, .bw-join, .bw-comments, .bw-author, .bw-empty { border-radius: 0; border-left: 0; border-right: 0; }
  .bw-feed { gap: 8px; }
  .bw-start-tools button { padding: 8px 6px; font-size: .82rem; gap: 6px; }
  .bw-act span { display: none; } .bw-act { padding: 11px 4px; }
  .bw-react-wrap .bw-palette { left: 0; }
  .bw-palette button { width: 38px; height: 38px; }
  .bw-tray { grid-template-columns: 1fr; }
  .bw-cfoot { flex-wrap: wrap; gap: 8px; } .bw-size { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bw-post, .bw-zoom { animation: none; } .bw-palette, .bw-palette button, .bw-img img { transition: none; } }

/* ---------- for a signed-in tutor: how their posts are doing, and ideas for the next one ---------- */
.bw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 2px; }
.bw-kpis div { display: grid; text-align: center; padding: 8px 2px; border-radius: 12px; background: #f7f9fa; }
.bw-kpis b { font: 700 1.15rem var(--head-font); color: var(--bw-ink); } .bw-kpis small { color: var(--bw-mute); font-size: .72rem; }
.bw-best { display: grid; gap: 2px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, #fff8e1, #fff3f6); text-decoration: none; }
.bw-best small { color: #b06000; font-weight: 700; font-size: .74rem; } .bw-best span { color: var(--bw-ink); font-weight: 500; font-size: .9rem; }
.bw-kpi-note { margin: 10px 0 0; color: var(--bw-mute); font-size: .86rem; }
.bw-ideas-sub { margin: -4px 0 8px; color: var(--bw-mute); font-size: .84rem; }
.bw-ideas { display: grid; gap: 6px; }
.bw-ideas button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--bw-line); border-radius: 12px; background: #fff; padding: 10px 12px; text-align: left;
                   color: var(--bw-ink); font: 500 .9rem var(--head-font); transition: background .15s, border-color .15s, transform .15s; }
.bw-ideas button:hover { background: #f5f8ff; border-color: #cfdcf8; transform: translateX(2px); }
.bw-ideas button > i:first-child { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, #e8f0fe, #f3e8fd); color: #5b3df5; flex: none; }
.bw-ideas span { flex: 1; } .bw-ideas .bw-go { color: #9aa6b2; font-size: .75rem; }
