/* Web material inspired by Liquid Glass; native selects preserve keyboard and OS pickers. */
body.product-active {
  --glass-fill: rgba(255,255,255,.82);
  --glass-edge: rgba(255,255,255,.95);
  --glass-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(58,43,32,.04), 0 3px 12px rgba(58,43,32,.05);
  background: var(--bg);
  background-attachment: fixed;
}
html body.product-active .topbar { background: var(--brand); border-bottom-color: rgba(255,255,255,.2); box-shadow: 0 3px 16px #58211b14; -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
body.product-active .left-rail { background: rgba(255,255,255,.5); border-right-color: rgba(255,255,255,.8); }
body.product-active .nav-link { border: 1px solid transparent; border-radius: 14px; }
body.product-active .nav-link.active { background: linear-gradient(145deg,rgba(255,255,255,.96),rgba(249,229,225,.85)); border-color: rgba(255,255,255,.95); box-shadow: var(--glass-shadow); color: var(--brand-strong); }
body.product-active .global-search { border-radius: 999px; background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.8); box-shadow: inset 0 1px 1px #fff,0 2px 8px #46140f0a; }
body.product-active .top-actions .icon-button { border-radius: 50%; }
body.product-active .top-actions .icon-button:hover { background: #ffffff24; box-shadow: inset 0 1px 0 #ffffff50; }
html body.product-active :is(.people-filters select,.founder-campus-switch select,.form-field select,.button.secondary,.button.ghost,.grouped-section-tabs,.profile-tabs,.connect-section-tabs) {
  background-color: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}
html body.product-active .people-filters select { height: 44px; padding-left: 18px; padding-right: 36px; background-position: right 14px center; font-size: 13px; font-weight: 500; }
html body.product-active .people-filters select:hover { background-color: #fff; border-color: #d4d8df; }
html body.product-active .people-filters { gap: 14px 20px; border-bottom: 0; margin-bottom: 14px; padding-bottom: 8px; }
html body.product-active .people-filters .form-field { gap: 8px; }
body.product-active .people-filters .form-field>span { font-size: 11px; font-weight: 500; }
html body.product-active :is(.connect-section-tabs,.grouped-section-tabs,.profile-tabs) { display: flex; width: fit-content; max-width: 100%; padding: 4px; gap: 4px; overflow-x: auto; }
html body.product-active :is(.connect-section-tabs,.grouped-section-tabs,.profile-tabs) button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); white-space: nowrap; }
html body.product-active :is(.connect-section-tabs,.grouped-section-tabs,.profile-tabs) button:is([aria-current='page'],[aria-pressed='true']) { background: #fff; color: var(--brand-strong); box-shadow: 0 2px 7px #26304012,inset 0 1px 0 #fff; }
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow],.button.primary) { border-radius: 999px; box-shadow: inset 0 1px 0 #ffffff40,0 3px 8px #8f2d2814; }
html body.product-active :is(.people-grid .person-identity .follow-button,.profile-page .profile-actions .button.follow-button,.social-follow-button,.home-person-follow,.follow-button,[data-directory-follow])[data-following='true'] { background: linear-gradient(145deg,#fff6f4,#f4ddda); border-color: #e5bcb7; color: var(--brand-strong); box-shadow: inset 0 1px 0 #fff,0 2px 7px #8f2d2808; }
body.product-active .people-grid .person-actions .button.secondary { padding-inline: 16px; }
body.product-active :is(.mobile-nav,.mobile-section-tabs) { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-color: #ffffffc9; }
body.product-active :is(.modal,.dropdown-menu) { background: #fffffff5; border: 1px solid #fff; border-radius: 20px; box-shadow: 0 16px 50px #242c4026,inset 0 1px 0 #fff; }
html body.product-active :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; }
html body.product-active .topbar :is(button,a):focus-visible { outline-color: white; }
@media(max-width:780px) {
  html body.product-active .people-filters select { font-size: 16px; padding-left: 14px; }
  html body.product-active .people-filters { gap: 10px; }
  html body.product-active .people-filters .form-field { gap: 6px; }
  html body.product-active .connect-section-tabs { margin-bottom: 20px; }
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body.product-active { --glass-fill: #fff; }
  html body.product-active .topbar { background: var(--brand); }
  body.product-active :is(.left-rail,.mobile-nav,.mobile-section-tabs) { background: #fff; }
}
@media(prefers-reduced-transparency:reduce), (prefers-contrast:more) {
  body.product-active { --glass-fill: #fff; --glass-edge: #b5bcc6; --glass-shadow: none; background: var(--bg); }
  html body.product-active .topbar { background: var(--brand); }
  html body.product-active :is(.left-rail,.mobile-nav,.mobile-section-tabs) { background: #fff; }
  html body.product-active * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
html body.product-active .people-grid .person-actions .button.primary { padding-inline: 14px; box-shadow: none; }
html body.product-active .people-grid .person-actions .button.secondary { padding-inline: 16px; border: 1px solid var(--glass-edge); background: var(--glass-fill); box-shadow: var(--glass-shadow); border-radius: 999px; }

/* Warm neutrals and a restrained type scale unify the older feature styles. */
body.product-active { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html body.product-active :is(h1,h2,h3,h4,button,input,select,textarea,.section-title,.home-section-title h2,.feed-section-head h2,.campus-buzz-composer>label) { font-family: Inter,system-ui,sans-serif; }
html body.product-active :is(.page-header h1,.home-heading h1,.buzz-page-heading h1) { font-size: clamp(24px,2.2vw,30px); line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
html body.product-active :is(.people-results-heading h2,.home-section-title h2,.feed-section-head h2,.panel-heading h2) { font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
html body.product-active :is(.nav-link,.connect-section-tabs button,.grouped-section-tabs button,.profile-tabs button) { font-size: 13px; letter-spacing: 0; }
html body.product-active .people-grid .person-card h3 { font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; }
html body.product-active :is(.page-header p,.buzz-page-heading p,.people-grid .person-card .course) { font-size: 14px; line-height: 1.55; }
html body.product-active :is(.people-grid .person-details,.people-grid .person-identity .handle,.people-filters .form-field>span) { font-size: 12px; line-height: 1.5; color: var(--muted); }
html body.product-active .people-grid .person-social { color: var(--muted); }
html body.product-active .nav-link.active { background: var(--brand-soft); border-color: #f4dcd7; box-shadow: inset 0 1px 0 #ffffffb3; }
html body.product-active :is(.people-filters select,.founder-campus-switch select) { border-color: var(--line); }
html body.product-active .global-search { background: #fffcf8; }

/* Profile tabs own their geometry; old underline-tab rules must not clip the pill. */
html body.product-active .profile-page .profile-tabs {
  display: flex; flex-wrap: nowrap; width: fit-content; max-width: 100%;
  gap: 4px; margin: 24px 0 20px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass-fill); box-shadow: var(--glass-shadow);
  overflow-x: auto; scrollbar-width: none;
}
html body.product-active .profile-page .profile-tabs button {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap;
}
html body.product-active .profile-page .profile-tabs button.active,
html body.product-active .profile-page .profile-tabs button[aria-pressed='true'] {
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 600;
  box-shadow: inset 0 1px 0 #fff;
}
html body.product-active .profile-page .profile-tabs button::after { content: none; display: none; }
html body.product-active .profile-page .profile-tabs button span { margin: 0; font-size: 12px; color: inherit; font-weight: 500; }
html body.product-active .profile-page .profile-tabs button:focus-visible { outline-offset: -3px; }
html body.product-active .profile-page .profile-actions .button { min-height: 44px; padding-inline: 18px; border-radius: 999px; font-size: 13px; }

/* Anchor section navigation to the profile content instead of a floating pill. */
html body.product-active .profile-page .profile-tabs {
  width: 100%; box-sizing: border-box; margin: 20px 0 16px;
  border-radius: 16px; gap: 4px; padding: 5px;
}
html body.product-active .profile-page .profile-tabs button {
  flex: 1 0 auto; min-width: 0; border-radius: 11px; padding-inline: 14px;
}
html body.product-active .profile-page .profile-activity { margin-top: 0; padding-top: 0; }
@media(max-width:380px) {
  html body.product-active .profile-page .profile-tabs button { padding-inline: 10px; gap: 5px; font-size: 12px; }
}

/* Profile: one aligned surface, quiet navigation, and a compact action menu. */
html body.product-active .profile-page { max-width: 920px; margin-inline: auto; }
html body.product-active .profile-page .profile-hero { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: visible; box-shadow: none; }
html body.product-active .profile-page .profile-main { padding: 24px; }
html body.product-active .profile-page .profile-identity-row { display: flex; align-items: center; gap: 16px; }
html body.product-active .profile-page .profile-avatar { width: 68px; height: 68px; flex: 0 0 68px; margin: 0; }
html body.product-active .profile-page .profile-name-block { flex: 1; min-width: 0; }
html body.product-active .profile-page h1 { font-size: 25px; line-height: 1.25; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
html body.product-active .profile-page .profile-handle-line { gap: 8px; margin-top: 6px; font-size: 12px; flex-wrap: wrap; }
html body.product-active .profile-page .verified-label { font-size: 11px; }
html body.product-active .profile-page .profile-actions { gap: 8px; margin: 0; align-items: center; }
html body.product-active .profile-page .profile-actions .button { min-height: 40px; padding-inline: 14px; font-size: 12px; box-shadow: none; }
html body.product-active .profile-page .profile-more { position: relative; }
html body.product-active .profile-page .profile-more summary { display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; list-style: none; }
html body.product-active .profile-page .profile-more summary::-webkit-details-marker { display: none; }
html body.product-active .profile-page .profile-more-word { display: none; }
html body.product-active .profile-page .profile-more-dots { display: block; width: 18px; height: 18px; fill: currentColor; }
html body.product-active .profile-page .profile-more-list { right: 0; top: calc(100% + 8px); width: 190px; min-width: 190px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px #29252214; z-index: 30; }
html body.product-active .profile-page .profile-more-list button { display: block; width: 100%; min-height: 40px; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 12px; font-weight: 500; }
html body.product-active .profile-page .profile-more-list button:hover { background: var(--surface-2); }
html body.product-active .profile-page .profile-meta { margin-top: 18px; gap: 6px 14px; font-size: 12px; line-height: 1.6; }
html body.product-active .profile-page .profile-social { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); gap: 18px; flex-wrap: wrap; font-size: 12px; }
html body.product-active .profile-page .profile-social button { font-size: 12px; }
html body.product-active .profile-page .profile-social strong { color: var(--brand-strong); }
html body.product-active .profile-page .profile-tabs { margin-top: 16px; box-shadow: none; background: var(--surface); border-radius: 12px; }
html body.product-active .profile-page .profile-tabs button { border-radius: 8px; }
html body.product-active .profile-page :is(.profile-empty,.profile-reply-empty) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 180px; padding: 32px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; }
html body.product-active .profile-page .profile-empty h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
html body.product-active .profile-page .profile-empty p { margin: 0; max-width: 320px; font-size: 13px; color: var(--muted); }
@media(max-width:700px) {
 html body.product-active .profile-page .profile-main { padding: 18px; }
 html body.product-active .profile-page .profile-identity-row { flex-wrap: wrap; gap: 12px; }
 html body.product-active .profile-page .profile-avatar { width: 56px; height: 56px; flex-basis: 56px; }
 html body.product-active .profile-page h1 { font-size: 22px; }
 html body.product-active .profile-page .profile-actions { width: 100%; justify-content: flex-start; }
 html body.product-active .profile-page .profile-actions .button { min-height: 44px; }
 html body.product-active .profile-page .profile-more { margin-left: auto; }
 html body.product-active .profile-page .profile-more summary { width: 44px; height: 44px; }
 html body.product-active .profile-page .profile-more-list button { min-height: 44px; }
 html body.product-active .profile-page .profile-social { gap: 10px 16px; }
}

/* Keep post navigation on one row rather than inheriting the auth back-button gap. */
html body.product-active .post-detail-heading { display:flex; align-items:center; gap:16px; margin:0 0 14px; min-height:44px; }
html body.product-active .post-detail-heading .back-button { flex:0 0 auto; min-height:44px; margin:0; padding:0 8px 0 0; font-size:13px; }
html body.product-active .post-detail-heading h1 { margin:0; padding:0; font-size:20px; line-height:1.3; font-weight:600; letter-spacing:-.025em; }
