:root {
  --brand:          #2D7DD2;
  --brand-600:      #1F6ABB;
  --brand-700:      #185796;
  --brand-50:       #EAF2FB;
  --brand-100:      #D4E4F5;
  --brand-light:    #8EB8E0;
  --green-soft:     #E6F4EC;
  --green:          #2E9E5F;
  --green-dark:     #1F7A46;
  --ink:            #1A2330;
  --ink-soft:       #5B6B7C;
  --muted:          #8A98A8;
  --line:           #E4E9EE;
  --bg:             #f5f7fa;
  --gold:           #E1A93A;
  --ok:             #2AA97A;
  --shadow-1:       0 1px 2px rgba(20,36,60,.05);
  --shadow-2:       0 8px 28px -8px rgba(20,36,60,.18), 0 2px 6px rgba(20,36,60,.05);
  --header-h:       60px;
  --footer-h:       52px;
  --sidebar-w:      250px;
  --sidebar-icon-w: 56px;
  /* One page width and one gutter for the whole main site (S24). Read by
     .ts-shell and .ts-adstrip so the content column and the advert strip
     above it can never drift apart. */
  --shell-max:      1720px;
  --shell-pad:      20px;
  --primary:   #2D7DD2;
  --secondary: #8EB8E0;
  --accent:    #185796;
  --light:     #EAF2FB;
  --dark:      #1A2330;
  --sn-accent: var(--brand);
  --sn-accent-2: var(--brand-600);
  --sn-accent-soft: var(--brand-50);
  --sn-green-soft: var(--green-soft);
  --sn-surface: rgba(255,255,255,.92);
  --sn-surface-strong: #ffffff;
  --sn-border: var(--line);
  --sn-text: var(--ink);
  --sn-text-soft: var(--ink-soft);
  --sn-muted: var(--muted);
  --sn-shadow: 0 8px 30px -10px rgba(20,36,60,.14), 0 2px 8px rgba(20,36,60,.05);
  --sn-radius: 18px;
  --sn-radius-sm: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  background: linear-gradient(160deg,#ddeaf8 0%,#eef4fb 35%,#f7fafd 100%) !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.table-foot-section {
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
}



.fq-no-results .fq-reset-btn:hover { background: #dceaf8; }
.fq-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 18px;
    padding: 22px 24px;
    background: linear-gradient(160deg, var(--brand, #3777bc) 0%, #1f5fa3 100%);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(31, 95, 163, .55);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.fq-cta::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(255, 255, 255, .1);
    border-radius: 50%;
    pointer-events: none;
}
.fq-cta > * { position: relative; }
/* ⚠️ AdSense Auto ads was injecting a unit INSIDE this card, between the
   heading and the button, which wrecks the layout (owner's screenshot).
   Google publishes NO html attribute or class that excludes a region from
   Auto ads. The proper fix is in the AdSense console: edit the site under
   Ads, and either remove that placement in the visual preview or lower the
   ad load. This rule is the stopgap, and it has a caveat worth knowing:
   hiding a unit Google has already served can count an impression that is
   never viewable, which AdSense policy discourages. `display:none` is used
   rather than `visibility` or clipping so the slot is not rendered at all
   and no impression is recorded. Delete these four lines once the console
   exclusion is in place. */
.fq-cta .google-auto-placed,
.fq-cta ins.adsbygoogle[data-anchor-status],
.fq-cta > ins.adsbygoogle {
  display: none !important;
}
@media (max-width: 600px) { .fq-cta { grid-template-columns: 1fr; text-align: center; } }
.fq-cta-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
@media (max-width: 600px) { .fq-cta-icon { margin: 0 auto; } }
.fq-cta-body { min-width: 0; }
.fq-cta-body h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.005em;
}
.fq-cta-body p {
    margin: 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
}
.fq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    background: #fff;
    color: var(--brand, #3777bc);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    flex-shrink: 0;
}
.fq-cta-btn:hover {
    color: var(--brand-dark, #1f6abb);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .25);
}


.profile-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f4ff;
    border-bottom: 1px solid #d0deff;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #444;
    flex-wrap: nowrap;
}
.profile-link-label {
    color: #5566aa;
    font-weight: 700;            
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.profile-link-text {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #555;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
}
.profile-link-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.copy-btn,
.share-btn {
    color: #1a73e8;
    background: transparent;
    border: 1px solid #1a73e8;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 0.78rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.copy-btn:hover,
.share-btn:hover { background: #1a73e8; color: #fff; }
.share-btn { background: #1a73e8; color: #fff; }
.share-btn:hover { background: #1558c0; }
.copy-btn.copied {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}
.error-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: #fff3f3;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #c00;
    flex-wrap: wrap;
}
.error-contact-row span {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.contact-link { color: #1a73e8; font-weight: 600; text-decoration: none; flex-shrink: 0; }
.contact-link:hover { color: #1558c0; text-decoration: underline; }
@media (max-width: 575.98px) {
    .profile-link-row { padding: 8px 10px; gap: 5px; }
    .profile-link-icon { display: none; }
    .profile-link-label .full-label { display: none; }
    .profile-link-label::after { content: "Link:"; }
    .profile-link-text { font-size: 0.72rem; }
    .copy-btn .btn-text,
    .share-btn .btn-text { display: none; }
    .copy-btn, .share-btn { padding: 4px 7px; font-size: 0.72rem; }
}
.results-section {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: none;
}
.has-results .results-section { display: block; }
.flag-img{
    height: auto;
    width: 24px !important;
    vertical-align: middle;
    border-radius: 2px;
   box-shadow: 0 0 0 1px rgba(0,0,0,0.08) !important;
}
.results-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.results-info    { justify-self: start; font-size: 13.5px; color: var(--ink-soft); }
.entries-label   { justify-self: center; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.tbl-search-wrap { justify-self: end; }
@media (max-width: 600px) {
  .results-toolbar { grid-template-columns: 1fr; }
  .results-info, .entries-label, .tbl-search-wrap { justify-self: stretch; }
  .tbl-search { width: 100%; }
}
.results-section {
  padding: 15px;
  border-radius: 15px;
  background: radial-gradient(600px 180px at 12% -20%, rgba(37, 99, 235, .06), transparent 60%), radial-gradient(500px 180px at 92% 0%, rgb(3 169 244 / 13%), transparent 60%);
  box-shadow: 0 2px 8px rgba(20, 36, 60, .06), 0 12px 32px -8px rgba(20, 36, 60, .10);
}
.results-section > * { position: relative; z-index: 1; }
.results-info {
  font-size: 13.5px; color: var(--ink-soft);
}
.results-info strong { color: var(--ink); }
.toolbar-right {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.tbl-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tbl-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.tbl-search {
  height: 36px;
  padding: 0 12px 0 34px;  
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  outline: 0;
  background: #fff;
  width: 200px;
  transition: border-color .18s, box-shadow .18s;
}
.tbl-search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45,125,210,.08);
}
.entries-select {
  height: 36px; padding: 0 28px 0 10px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--ink-soft);
  outline: 0; background: #fff; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A98A8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.results-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.sci-table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px;
}
.sci-table thead th {
  background: #F8FAFC;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  user-select: none;
}
.sci-table thead th.sortable { cursor: pointer; }
.sci-table thead th.sortable:hover { color: var(--brand); background: var(--brand-50); }
.sort-btns {
  display: inline-flex; flex-direction: column;
  margin-left: 5px; gap: 1px; vertical-align: middle;
}
.sort-btns span {
  display: block; width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: .3;
}
.sort-btns span.up   { border-bottom: 5px solid var(--ink); }
.sort-btns span.down { border-top:    5px solid var(--ink); }
.sort-btns span.active { opacity: 1; }
.sci-table thead th.asc  .sort-btns span.up   { opacity: 1; }
.sci-table thead th.desc .sort-btns span.down { opacity: 1; }
.sci-table tbody tr { border-bottom: 1px solid #F0F3F7; transition: background .12s; }
.sci-table tbody tr:last-child { border-bottom: 0; }
.sci-table tbody tr:hover { background: #F7FAFD; }
.sci-table td { padding: 11px 16px; color: var(--ink-soft); vertical-align: middle; }
.sci-table td:first-child { color: var(--muted); font-size: 13px; font-weight: 500; width: 70px; }
.sci-name { color: var(--ink); font-weight: 500; text-decoration: none; transition: color .15s; }
.sci-name:hover { color: var(--brand); text-decoration: underline; }
.sci-inst { color: var(--ink-soft); text-decoration: none; transition: color .15s; display: inline-flex; align-items: center; gap: 6px; }
.sci-inst:hover { color: var(--brand); }
.sci-inst img { border-radius: 2px; flex-shrink: 0; }
.results-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
  background-color: #f8fafc;
}
.pagination-btns { display: flex; gap: 4px; align-items: center; }
.pg-btn {
  height: 32px; min-width: 32px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: 13px;
  font-family: inherit; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  display: grid; place-items: center;
}
.pg-btn:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.pg-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.upsell-bar {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--green-soft);
  border: 1px solid #2e9e5f1a;
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: darkgreen;
  flex-wrap: wrap;
}
.upsell-bar i { font-size: 15px; flex-shrink: 0; }
.upsell-bar a { color: var(--brand); font-weight: 600; text-decoration: underline; }
.upsell-bar a:hover { color: var(--brand-700); }
@media (max-width: 600px) {
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .results-toolbar { flex-direction: column; align-items: flex-start; }
  .tbl-search { width: 100%; }
  .sci-table thead th, .sci-table td { padding: 9px 10px; font-size: 12.5px; }
}
.modes {
  display: flex; 
  padding-top: 10px;
  gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.modes label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-soft); cursor: pointer; font-weight: 500;
  user-select: none; transition: color .15s;
}
.modes label:hover { color: var(--brand); }
.modes input[type=radio] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
  cursor: pointer; position: relative; margin: 0; flex-shrink: 0;
  transition: border-color .15s;
}
.modes input[type=radio]:checked { border-color: var(--brand); }
.modes input[type=radio]:checked::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand);
}
.modes label:has(input:checked) { color: var(--brand); }
.ts-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-h);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.ts-hamburger {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
  cursor: pointer;
}
.ts-hamburger:hover {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand-100);
}
/* S24: one tooltip look. .ts-tip is CSS-only (no JS); the Bootstrap
   variables below retune its tooltip to match the same chip. */
.ts-hamburger::after,
.ts-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.35;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s;
  z-index: 80;
}
.ts-hamburger::after {
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
}
.ts-hamburger:hover::after { opacity: 1; }

/* Opt-in CSS tooltip. The host must carry data-tooltip (NOT title, or the
   browser draws its native one on top of this) and must be able to hold an
   absolutely-positioned child. */
.ts-tip { position: relative; }
.ts-tip::after {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
}
.ts-tip:hover::after,
.ts-tip:focus-visible::after { opacity: 1; }
/* For content that is genuinely long (a 118-character institute name). The
   plain chip is nowrap, which would run such a label off the screen. */
.ts-tip-wrap::after {
  white-space: normal;
  width: max-content;
  max-width: min(320px, 70vw);
  text-align: left;
}

/* Bootstrap's tooltip, matched to the chip above so the two are
   indistinguishable. Default is .875rem at 90% opacity with a .375rem
   radius, which read noticeably bigger and softer than the chip. */
.tooltip {
  --bs-tooltip-bg: #000;
  --bs-tooltip-color: #fff;
  --bs-tooltip-opacity: 1;
  --bs-tooltip-font-size: 12px;
  --bs-tooltip-border-radius: 6px;
  --bs-tooltip-padding-x: 10px;
  --bs-tooltip-padding-y: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
}
.ts-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ts-brand img { height: 38px; width: auto; display: block; }
.ts-social-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.ts-social-search {
  flex: 0 1 440px;
  max-width: 440px;
  min-width: 220px;
  position: relative;
}
.ts-social-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 40px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #f3f6fb;
  font-size: .875rem;
  font-family: inherit;
  color: var(--ink);
  outline: 0;
  transition: border-color .18s, box-shadow .18s;
}
.ts-social-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45,125,210,.1);
}
.ts-search-ic {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
#search-suggestions {
  position: absolute;
  background-color: #fff;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
/* S17: the name in each search-suggestion row had no visible affordance
   that it was clickable beyond the row background. The row itself already
   gets Bootstrap's .list-group-item-action hover; this makes the NAME react
   too, since that's the part of the row a reader's eye is on. */
.ts-search-suggest-row:hover .ts-search-suggest-name {
  color: var(--brand);
  text-decoration: underline;
}
.ts-social-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.ts-stab {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-soft);
  padding: 4px 8px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.ts-stab:hover {
  color: var(--brand);
  background: var(--brand-50);
}
.ts-stab.active {
  color: var(--brand);
  font-weight: 600;
}
.ts-stab i {
  font-size: 1.05rem;
  margin-bottom: 1px;
}
.ts-notif-badge {
  position: absolute;
  top: 0;
  left: 50%;
  font-size: .6rem;
  transform: translateX(-50%);
}

/* SCINET Social sub-brand header — added S21 branding pass.
   Reversible: delete this block, drop the "ts-header-social" class from
   navs.html's <header>, and revert the logo/sidebar-badge edits noted there. */
:root {
  --scinet-violet:      #8224E3;
  --scinet-violet-dark: #63189F;
  --scinet-violet-soft: #F3E7FC;
}
.ts-header.ts-header-social {
  background: var(--scinet-violet);
  border-bottom-color: var(--scinet-violet-dark);
}
.ts-header.ts-header-social .ts-brand {
  align-self: stretch;
  padding: 0 16px;
}
.ts-header.ts-header-social .ts-hamburger {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.ts-header.ts-header-social .ts-stab {
  color: rgba(255,255,255,.75);
}
.ts-header.ts-header-social .ts-stab:hover {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.ts-header.ts-header-social .ts-stab.active {
  color: #fff;
  background: rgba(255,255,255,.22);
}
.ts-header.ts-header-social .ts-notice-btn {
  color: rgba(255,255,255,.85);
}
.ts-header.ts-header-social .ts-notice-btn:hover {
  color: #fff;
}
.ts-header.ts-header-social .ts-btn-primary {
  background: var(--scinet-violet-dark);
  border-color: var(--scinet-violet-dark);
}
.ts-header.ts-header-social .ts-btn-ghost {
  color: var(--scinet-violet-dark);
}

@media (max-width: 900px) {
  .ts-header {
    height: auto;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 10px;
  }
  .ts-social-center {
    order: 10;
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 4px;
  }
  .ts-social-search {
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .ts-social-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ts-social-tabs::-webkit-scrollbar {
    display: none;
  }
  .ts-stab {
    flex: 0 0 auto;
  }
}
@media (max-width: 600px) {
  .ts-header {
    padding: 8px 10px;
  }
  .ts-social-search input {
    height: 36px;
    font-size: .82rem;
  }
  .ts-stab {
    font-size: 10.5px;
    padding: 4px 7px;
  }
  .ts-stab i {
    font-size: .98rem;
  }
}
.ts-nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ts-avatar-btn { display: flex; align-items: center; }
.ts-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-100);
  display: block;
}
.ts-dropdown {
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  min-width: 200px !important;
  padding: 8px !important;
  box-shadow: var(--shadow-2) !important;
}
.ts-dd-item {
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-dd-item i { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.ts-dd-item:hover { background: var(--brand-50) !important; color: var(--brand) !important; }
.ts-dd-item.text-warning { color: #e6a817 !important; }
.ts-dd-item.text-danger  { color: #d9534f !important; }
.ts-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--brand); border: 1px solid var(--brand-100); background: #fff;
  transition: background .15s; cursor: pointer; white-space: nowrap;
}
.ts-btn-ghost:hover { background: var(--brand-50); color: var(--brand); }
.ts-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  transition: background .15s; cursor: pointer; white-space: nowrap;
}
.ts-btn-primary:hover { background: var(--brand-600); color: #fff; }
/* Phones: the logged-out Login + Sign Up pair drops its icons to save header
   space. Below ~380px it also tightens, or it wraps onto a second header row
   that is taller than --header-h and covers the top of every page. */
@media (max-width: 600px) {
  .ts-nav-auth .ts-btn-ghost i,
  .ts-nav-auth .ts-btn-primary i { display: none; }
}
@media (max-width: 380px) {
  .ts-nav-auth { gap: 6px; }
  .ts-nav-auth .ts-btn-ghost,
  .ts-nav-auth .ts-btn-primary { padding: 0 10px; }
}
@media (max-width: 340px) {
  .ts-brand img { height: 30px; }
}
.ts-sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: var(--footer-visible, 0px);                     
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;        
  overflow-x: hidden;                 
  transform: translateX(-100%);      
  transition: transform .28s ease, width .22s ease;
}
.ts-sidebar::-webkit-scrollbar { width: 4px; }
.ts-sidebar::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.ts-sidebar::-webkit-scrollbar-track { background: transparent; }
.ts-sidebar.open {
  transform: translateX(0);
  width: var(--sidebar-icon-w);      
}
.ts-sidebar.open:hover {
  width: var(--sidebar-w);
}
/* S24: sized so 14 links + 3 dividers fit without scrolling. */
.ts-snav {
  flex-shrink: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.ts-snav-bottom {
  padding-top: 0;
}
.ts-grow {
  flex: 1 1 auto;
  min-height: 8px;
}
.ts-slink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  transition: background .15s, color .15s, padding .22s ease, gap .22s ease;
}
/* One 20px box for every mark so the collapsed icon column lines up.
   .ts-scinet-badge keeps its own two-line column, width only. */
.ts-slink > i,
.ts-slink > b:not(.ts-scinet-badge),
.ts-slink > span:not(.ts-label) {
  flex-shrink: 0;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .98rem;
}
.ts-slink > b.ts-scinet-badge { flex-shrink: 0; width: 20px; align-items: center; }
.ts-slink > span:not(.ts-label) > svg { width: 20px; height: 20px; }
.ts-slink:hover { background: var(--brand-50); color: var(--brand); }
.ts-slink.active { background: var(--brand); color: #fff; }
.ts-slink.active:hover { background: var(--brand); color: #fff; }
.ts-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  transition: opacity .18s ease, width .18s ease;
}
.ts-sidebar.open:hover .ts-label {
  opacity: 1;
  width: auto;
}
.ts-sidebar.open .ts-slink {
  padding: 10px 0;
  justify-content: center;
  gap: 0;
}
.ts-sidebar.open:hover .ts-slink {
  padding: 10px 12px;
  gap: 14px;
  justify-content: flex-start;
}
.ts-sep {
  height: 1px;
  background: #EFF2F6;
  margin: 5px 4px;
  flex-shrink: 0;
}
.ts-social-net {
  /* was --green-soft / --green-dark, recolored to the SCINET violet identity, S21 */
  background: var(--scinet-violet-soft);
  color: var(--scinet-violet-dark);
}
.ts-social-net:hover,
.ts-social-net.active {
  background: var(--scinet-violet) !important;
  color: #fff !important;
}
.ts-scinet-badge {
  display: flex;
  flex-direction: column;
  font-size: 9px;
  line-height: 1;
  vertical-align: middle;
}
/* "SCI" is optically narrower than "NET" at the same size, because I is the
   narrowest capital.  Tracking the top line out (and pulling the same amount
   back off the right margin so it stays centred) makes the two lines read as
   one block.  scaleX() would blur the glyphs at 9px, so it is not used. */
.ts-scinet-badge .ts-scinet-sci { letter-spacing: 1.5px; margin-right: -1.5px; }
.ts-scinet-badge .ts-scinet-net { letter-spacing: .3px; }

/* Scopus, which has no icon-font glyph anywhere.  Their own mark is the two
   letters in a square, so this is one.

   ⚠️ IT IS AN <svg> WITH FONT AWESOME'S OWN VIEWBOX AND FONT AWESOME'S OWN
   METRICS, and that is the whole reason it lines up.  The first version was a
   styled <b> and it sat visibly low beside its neighbours, because an inline
   box 1em tall covers the ascender and the descender while a glyph's ink
   covers neither: no amount of vertical-align guessing makes a box agree with
   a typeface.  Borrowing the geometry settles it instead.  `0 0 448 512` is
   the brands viewBox, the square is drawn at y=32..480 where fa-linkedin's
   own square sits, and `height:1em; vertical-align:-.125em` is the rule Font
   Awesome applies to its own inline SVGs.  Rendered beside fa-linkedin the two
   squares share a top edge, a bottom edge and a size.

   currentColor keeps the rest of the trick: the mark inherits every colour and
   every hover of the row around it, on the ranking profile, on the social
   profile and in the settings field, without any of the three needing to know
   it is not an <i>. */
.ts-mark-sc {
  height: 1em;
  width: .875em;
  vertical-align: -.125em;
  overflow: visible;
}

/* The SCINET Social ID on the profile name line. `margin-left:auto` pushes it
   to the right edge of the flex row the name already is, so it lands in the
   top-right corner under the cover photo without needing its own row. */
.ts-scinet-id {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--scinet-violet-soft);
  color: var(--scinet-violet-dark);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: default;
}
.ts-scinet-id .ts-scinet-badge-id {
  align-items: center;
  width: 22px;
  padding: 3px 0;
  border-radius: 5px;
  background: var(--scinet-violet);
  color: #fff;
  font-size: 6.5px;
  font-weight: 800;
}
@media (max-width: 575.98px) {
  /* On a narrow screen the name wraps anyway, so let the chip sit under it
     rather than squeezing the name to nothing. */
  .ts-scinet-id { margin-left: 0; }
}

/* Same mark, chip-sized, for the top-right account dropdown. */
.ts-dd-item .ts-scinet-badge-dd {
  flex: none;
  align-items: center;
  width: 20px;
  padding: 3px 0;
  border-radius: 4px;
  background: var(--scinet-violet-soft);
  color: var(--scinet-violet-dark);
  font-size: 6.5px;
  font-weight: 800;
}
.ts-dd-item.ts-dd-scinet { color: var(--scinet-violet-dark); font-weight: 600; }
.ts-dd-item.ts-dd-scinet:hover {
  background: var(--scinet-violet-soft) !important;
  color: var(--scinet-violet-dark) !important;
}
.ts-dd-item.ts-dd-scinet:hover .ts-scinet-badge-dd {
  background: var(--scinet-violet);
  color: #fff;
}
.ts-sidebar-social {
  border-top: 1px solid var(--line);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.ts-sidebar-social a {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.ts-sidebar-social a:hover {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand-100);
}
.ts-sidebar-social a i { font-size: 14px; }
.ts-social-mini { display: flex; }
.ts-social-full { display: none; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-start; width: 100%; }
.ts-sidebar.open .ts-social-mini  { display: flex; }
.ts-sidebar.open .ts-social-full  { display: none; }
.ts-sidebar.open:hover .ts-social-mini { display: none; }
.ts-sidebar.open:hover .ts-social-full { display: flex; }
.ts-sidebar.open:hover .ts-sidebar-social {
  justify-content: flex-start;
  padding: 12px 14px;
}
.ts-main {
  flex: 1;
  margin-top: var(--header-h);
  margin-left: var(--sidebar-icon-w);   
  transition: margin-left .22s ease;
  padding-bottom: calc(var(--footer-h) + 20px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}
.ts-footer {
  background: #0E1724;
  color: #B3BDCC;
  padding: 14px 24px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: var(--footer-h);
  position: relative;
  z-index: 55;
}
.ts-footer a { color: #D8DFEC; display: inline-flex; align-items: center; gap: 4px; }
.ts-footer a:hover { color: #fff; }
/* Three equal columns, so the copyright sits in the TRUE centre of the bar.
   space-between alone centres nothing: it only spaces the three blocks
   evenly, and because the Support Us line and the link row are different
   widths, the middle block lands wherever they leave it. Giving each block
   the same flex basis fixes the middle to the centre of the viewport whatever
   the other two do. min-width:0 lets them shrink instead of forcing a wrap. */
.ts-footer > div { flex: 1 1 0; min-width: 0; }
.ts-footer > div:nth-child(1) { text-align: left; }
/* ⚠️ THESE RULES LIVE HERE, NOT IN topsci_pages.css, because the footer is on
   every page and that stylesheet is loaded by 9 templates out of 46. Put a
   footer rule there and it applies on About Us and nowhere else.
   justify-content is flex-start rather than center: the block is its own flex
   container, so centring inside it would park the link in the middle of the
   left third rather than at the left edge of the bar, which is where the
   owner wants it (2026-08-17). */
.ts-footer .ts-footer-support {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  font-weight: 700;
}
.ts-footer .ts-footer-support i { color: #d9534f; }
.ts-footer > div:nth-child(2) { text-align: center; }
.ts-footer > div:nth-child(3) { text-align: right; }
.pipe { color: #384357; margin: 0 6px; }
#global-messages {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  min-width: 320px;
  max-width: 90vw;
  width: auto;
}
@media (max-height: 600px) {
  .ts-sidebar,
  .sidebar {
    overflow-y: auto;
     bottom: var(--footer-visible, 0px);
    -webkit-overflow-scrolling: touch;
  }
 .ts-sidebar {
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 900px) {
  .ts-sidebar {
    width: var(--sidebar-w);
    bottom: var(--footer-visible, 0px);
    top: var(--header-h);
    transform: translateX(-100%);
    overflow-y: auto;         
    overflow-x: hidden;
  }
  .ts-sidebar.open {
    width: var(--sidebar-w);
    transform: translateX(0);
    padding-top: 5%;
  }
  .ts-sidebar.open:hover { width: var(--sidebar-w); }  
  .ts-label { opacity: 1; width: auto; }
  .ts-sidebar.open .ts-label { opacity: 1; width: auto; }
  .ts-sidebar.open:hover .ts-label { opacity: 1; width: auto; }
  .ts-slink { padding: 10px 12px; gap: 14px; justify-content: flex-start; }
  .ts-sidebar.open .ts-slink { padding: 10px 12px; gap: 14px; justify-content: flex-start; }
  .ts-sidebar.open:hover .ts-slink { padding: 10px 12px; }
  .ts-social-mini { display: none !important; }
  .ts-social-full { display: flex !important; }
  .ts-sidebar-social { justify-content: flex-start; padding: 14px 16px; }
  .ts-sidebar.open .ts-sidebar-social { justify-content: flex-start; padding: 14px 16px; }
  .ts-sidebar.open:hover .ts-sidebar-social { justify-content: flex-start; padding: 14px 16px; }
  .ts-grow { display: none; }
  .ts-main { margin-left: 0; }
  .ts-footer { font-size: 11.5px; padding: 14px 16px; justify-content: center; text-align: center; }
  /* Stacked on a phone, so every block is centred and none of them keeps a
     third of a row to itself. */
  .ts-footer > div { flex: 1 1 100%; text-align: center !important; }
  .ts-footer .ts-footer-support { justify-content: center; }
}
.btn-outline-primary {
  color: var(--brand); border-color: var(--brand-100); background: #fff;
}
.btn-outline-primary:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.btn-primary {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.dropdown-item { font-size: 13.5px; padding: 9px 14px; color: var(--ink-soft); }
.dropdown-item:hover { background: var(--brand-50); color: var(--brand); }
.social-tab {
  display: flex; flex-direction: column; align-items: center;
  font-size: 11.5px; color: var(--ink-soft); padding: 4px 8px;
  border-radius: 8px; transition: color .15s, background .15s;
  text-decoration: none; position: relative; white-space: nowrap;
}
.social-tab:hover { color: var(--brand); background: var(--brand-50); }
.social-tab.active { color: var(--brand); font-weight: 600; }
.social-tab i { font-size: 1.05rem; margin-bottom: 1px; }
.hero {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  padding: 5rem 0;
  margin-bottom: 2rem;
}
.hero h1 { font-weight: 700; font-size: 2.8rem; margin-bottom: 1.5rem; letter-spacing: -.02em; }
.hero p  { font-size: 1.1rem; opacity: .9; }
@media (max-width: 768px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
  .hero { padding-top: 20% !important; }
}
.sci-table tbody tr {
  border-bottom: 1px solid #F0F3F7;
  transition: background .12s;
  background:  radial-gradient(600px 180px at 35% 60%, rgba(45, 125, 210, .10), transparent 60%)
}
.sci-table tbody tr:hover {
  background: white;
}
.search-box { position: relative; }
.search-box .form-control {
    padding: .75rem 60px .75rem 1.5rem;
    height: 60px;
    border-radius: 30px;
    font-size: 1.1rem;
    border: 1.5px solid var(--line);
    transition: all .3s ease;
    outline: 0;
}
.search-box .form-control:focus {
    box-shadow: 0 0 0 4px rgba(45,125,210,.1);
    border-color: var(--brand);
}
.search-box .btn {
    position: absolute; right: 5px; top: 5px;
    border-radius: 50%; width: 50px; height: 50px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    background: var(--brand-light); color: #fff; border: 0;
}
.search-box .btn:hover, 
.search-box .btn:focus,
.search-box .btn.active { background: var(--brand-700);  color: #fff;}
.search-title { color: var(--brand); font-weight: 600; margin-bottom: 1.5rem; }
.data-option { margin-top: 1.5rem; }
.data-option .form-check { display: inline-block; margin-right: 1.5rem; }
.data-option .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.result-container {
    padding: 20px; margin-top: 10px;
    margin-left: 157px; margin-right: 157px; margin-bottom: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
@media (max-width: 600px) {
    .result-container { margin-left: 1px !important; margin-right: 1px !important; }
}
/* S24: one shell + one rail for the whole main site. Replaced four
   layouts (col-lg-8 + 360px aside, col-lg-9/3, .two-col-layout,
   .pr-layout) whose ratio drifted with viewport width. Rail is a FIXED
   320px, content is the fluid side. Rationale in TOPSCINET_PROGRESS.md. */
.ts-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: 28px;
}
/* Reproduces .ts-shell geometry without inheriting its padding, so the
   strip's border lands on the content edge at every width. */
.ts-adstrip {
  width: calc(100% - var(--shell-pad) * 2);
  max-width: calc(var(--shell-max) - var(--shell-pad) * 2);
  margin: 14px auto 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}
/* Compound selectors needed: .promo-box small is two classes deep and
   would otherwise win and render the rail copy at 14px. */
.ts-ad-label,
.promo-box .ts-ad-label,
.content-sidebar .ts-ad-label,
.footer-ad-label,
.footer-ad-strip .footer-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
/* An advert strip immediately above the page body already provides the
   top breathing room, so the shell under it does not add its own. */
.ts-adstrip + .ts-shell { padding-top: 14px; }
/* An ad slot with no ad takes no space. AdSense marks every <ins> it has
   decided on with data-ad-status="filled" or "unfilled"; the unfilled ones
   hide, with their label and card. When the AdSense script never ran at all
   (blocked, or a local copy of the site) navs.html adds .ts-ads-off to <html>
   after the page has loaded, and every slot hides. A slot is never hidden
   BEFORE AdSense answers: a slot with no width cannot be filled. */
:is(.ts-adstrip, .footer-ad-strip, .promo-box, .ad-section):has(ins.adsbygoogle[data-ad-status="unfilled"]),
.ts-ads-off :is(.ts-adstrip, .footer-ad-strip, .promo-box, .ad-section):has(ins.adsbygoogle) {
  display: none !important;
}
@media (max-width: 991.98px) {
  :root { --shell-pad: 14px; }
}
@media (max-width: 575.98px) {
  :root { --shell-pad: 10px; }   /* .ts-adstrip follows it automatically */
  .ts-shell { padding-block: 14px; }
}
.ts-rail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-w, 320px);
  gap: 28px;
  align-items: start;
}
/* minmax(0,1fr), not 1fr: a bare 1fr is min-content sized and one wide
   table would push the grid past the viewport. */
.ts-rail-main { min-width: 0; }
/* Profile-page banners are siblings of the two columns; span them. */
.ts-rail-layout > .alert,
.ts-rail-layout > .ts-rail-full { grid-column: 1 / -1; }

/* 1024, not Bootstrap's 992: 320 rail + 640 reading column + gap + gutters. */
@media (max-width: 1024px) {
  .ts-rail-layout { grid-template-columns: minmax(0, 1fr); }
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .two-col-layout { grid-template-columns: 1fr; } }
.content-sidebar, .rail {
  display: flex; flex-direction: column; gap: 18px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: flex-start;
}
@media (max-width: 1024px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .content-sidebar, .rail { position: static; }
}
.promo-box, .rail-card, .ad-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-1);
  padding: 18px;
  margin-bottom: 0;
  transition: box-shadow .2s;
}
.promo-box:hover, .rail-card:hover, .ad-section:hover { box-shadow: var(--shadow-2); }
.promo-box h4, .rail-card h3, .ad-section h4 { font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.promo-box p, .promo-box small, .rail-card p, .ad-section p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin-bottom: 0; }
.promo-box .italic-text, .rail-muted { font-style: italic; color: var(--muted); margin-top: 10px; font-size: 13.5px; }
.promo-box .bold-line { font-weight: 600; color: var(--ink); margin-bottom: 8px; margin-top: 10px; }
.promo-box a.email-link, .rail-mail {
  display: block; margin: 14px 0 8px; padding: 11px 14px;
  border-radius: 12px; text-align: center;
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100); font-weight: 600;
  word-break: break-all; font-size: 13.5px; text-decoration: none; transition: background .15s;
}
.promo-box a.email-link:hover, .rail-mail:hover { background: #dceefb; }
.rail-submail { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.rail-submail a { color: var(--brand); text-decoration: underline; }
/* The claim prompt was a generic Bootstrap `alert alert-success`, the same
   green bar the site uses for every routine confirmation, sitting below the
   top advert strip on the busiest page. It is the single most important
   action an unclaimed scientist can take, so it gets its own treatment and
   it STAYS ON SCREEN while the reader scrolls their own numbers, which is
   exactly when they decide to claim. Still dismissible. */
/* S25: genuinely sticky now. It could not be while it was a grid item in
   .ts-rail-layout, because a grid item's containing block is its own grid
   area, which is exactly its own height, so it had zero travel and the rule
   would have been inert while looking correct. The banner chain moved above
   .ts-rail-layout in scientist_profile.html, so the containing block is now
   .ts-shell, the full height of the page. Do not put it back inside the grid
   without removing the three sticky lines below.

   Three columns, the outer two both 1fr, so the middle one lands on the TRUE
   horizontal centre of the bar no matter how long the name is. The third
   column stays empty; it exists only to balance the first. A plain flex row
   cannot do this: the button would sit wherever the copy left it. */
.ts-claim-cta {
  position: sticky;
  top: calc(var(--header-h) + 8px);
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 46px 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #badbcc;
  border-radius: 14px;
  background: var(--green-soft);
  box-shadow: none;
}
.ts-claim-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.ts-claim-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 15px;
}
.ts-claim-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ts-claim-title { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ts-claim-sub   { color: var(--ink-soft); font-size: 13px; }
.ts-claim-action {
  display: flex;
  justify-content: center;
}
.ts-claim-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 18px;
  border-radius: 9px;
  background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.ts-claim-btn:hover { background: var(--brand-600); color: #fff; }
@media (max-width: 767.98px) {
  /* One column below tablet: the three-column balance needs room the bar
     does not have on a phone, and a centred button under the copy reads
     the same way. */
  .ts-claim-cta { grid-template-columns: 1fr; padding: 12px 40px 12px 12px; gap: 10px; }
  .ts-claim-icon { width: 32px; height: 32px; font-size: 13px; }
  .ts-claim-title { font-size: 14px; }
  .ts-claim-sub { font-size: 12.5px; }
  .ts-claim-btn { width: 100%; }
}

.ts-collab .carousel-inner { border-radius: 14px; overflow: hidden; }
.ts-collab-slide { display: block; text-decoration: none; }
/* NO object-fit and NO fixed aspect-ratio here. These banners are artwork
   with text baked into them, and `object-fit: cover` crops whichever edge
   does not fit, which is how the TeXpress logo and the "F" of "Focus" were
   being sliced off as the rail width changed. width:100% + height:auto
   scales the whole image and can never crop it; the width/height attributes
   on the <img> give the browser the ratio up front, so there is still no
   layout shift while it loads. */
.ts-collab-slide .promo-ad-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px 14px 0 0;
  border-bottom: 0;
}
.ts-collab-slide .promo-button { margin-top: 0; border-radius: 0 0 14px 14px; }
.ts-collab-slide:hover .promo-button { background: var(--brand-600); transform: none; }
.ts-collab-slide:hover .promo-ad-image { transform: none; }
.ts-collab-dots {
  position: static;
  margin: 10px 0 0;
  justify-content: center;
}
.ts-collab-dots [data-bs-target] {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-100);
  border: 0;
  opacity: 1;
  margin: 0 3px;
  transition: background .18s, width .18s;
}
.ts-collab-dots .active { background: var(--brand); width: 18px; border-radius: 999px; }

/* Prev / next arrows. Bootstrap's defaults are 15%-wide invisible hit areas
   with 2rem white SVG icons, which on a 320px rail cover a third of the
   artwork and vanish against a light banner. These are compact, always
   visible, and sit on the IMAGE only: `bottom` clears the Visit button
   strip so they centre on the picture rather than on the whole card. */
.ts-collab-arrow {
  width: 30px;
  height: 30px;
  top: 0;
  bottom: 52px;
  margin: auto 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 24, 38, .48);
  color: #fff;
  font-size: 13px;
  opacity: 1;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.ts-collab-arrow:hover,
.ts-collab-arrow:focus-visible {
  background: rgba(16, 24, 38, .78);
  color: #fff;
  opacity: 1;
  transform: scale(1.08);
}
.ts-collab-arrow.carousel-control-prev { left: 0; right: auto; }
.ts-collab-arrow.carousel-control-next { right: 0; left: auto; }
@media (max-width: 575.98px) {
  .ts-collab-arrow { width: 34px; height: 34px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-collab .carousel-item { transition: none; }
}
.promo-ad-image, .rail-visual {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  display: block; background: #F7FAFD; transition: transform .3s ease;
}
.promo-ad-image:hover, .rail-visual:hover { transform: scale(1.02); }
.promo-button, .rail-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  text-decoration: none; width: 100%; transition: background .15s, transform .15s; border: 0; cursor: pointer;
}
.promo-button:hover, .rail-btn:hover { background: var(--brand-600); transform: translateY(-1px); color: #fff; }
.ad-slot, .advertisement {
  margin-top: 10px; min-height: 200px;
  border: 1px dashed var(--brand-100); border-radius: 14px;
  background: linear-gradient(180deg, #FCFEFF, #F6FAFE);
  display: flex; align-items: center; justify-content: center;
  padding: 18px; text-align: center; color: var(--ink-soft); font-size: 13px; line-height: 1.7;
}
.page-hero, .about-content {
  background: linear-gradient(180deg, #fff, #FBFDFF);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-1); padding: 24px 24px 20px; margin-bottom: 22px;
}
.page-kicker, .faq-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
  font-size: 12px; font-weight: 600; margin-bottom: 14px; border: 1px solid var(--brand-100);
}
.page-title, .about-content h1 {
  margin: 0; font-size: 32px; line-height: 1.15;
  letter-spacing: -.025em; color: var(--ink); font-weight: 700;
}
.page-note { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.content-card, .faq-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-1); padding: 22px 24px; margin-bottom: 18px;
}
.content-card h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
.content-card h3 { margin: 16px 0 8px; font-size: 16px; color: var(--ink); font-weight: 600; }
.content-card p  { margin: 0 0 12px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; }
.content-card a  { color: var(--brand); text-decoration: underline; }
.content-card ul, .content-card ol { margin: 8px 0 12px; padding-left: 22px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; }
.note-block { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 16px 18px; }
.note-block p { margin: 0 0 8px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }
.note-block a { color: var(--brand); text-decoration: underline; }
/* S24: one page header card for every main-site title, nobel included.
   Was split between here, five aliases in topsci_pages.css and a
   separate .nobel-header-card. margin-bottom was 2%, which resolves
   against container WIDTH. */
.faq-header-card,
.nobel-header-card {
  background: #fff;
  padding: 18px 24px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.faq-header-card::after,
.nobel-header-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(45, 125, 210, .12) 1px, transparent 0);
  background-size: 18px 18px;
  pointer-events: none;
  mask-image: linear-gradient(to left, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 100%);
}
.faq-header-card > *,
.nobel-header-card > * {
  position: relative;
  z-index: 1;
}
.faq-header-card h1,
.nobel-header-card h1 {
  /* was the literal #3777bc, which is NOT --brand (#2D7DD2). Two blues were
     in circulation and the off-brand one was on almost every page title. */
  color: var(--brand);
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.faq-header-card p,
.nobel-header-card p {
  color: var(--ink-soft);
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.9;
}
.faq-container { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: #fff; }
.faq-search input, .faq-searchbar input {
  width: 100%; height: 50px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff;
  padding: 0 16px 0 46px; font-size: 14.5px; color: var(--ink); outline: 0;
  transition: border-color .18s, box-shadow .18s; font-family: inherit;
}
.faq-search {
 margin-bottom: 1%; 
}
.faq-search input:focus, .faq-searchbar input:focus {
  border-color: var(--brand); box-shadow: 0 0 0 4px rgba(45,125,210,.08);
}
.faq-item, .qa-block { border: 1px solid transparent; border-radius: 14px; transition: border-color .18s, background .18s; margin-bottom: 8px; }
.faq-item:hover, .qa-block:hover { background: #FCFDFF; border-color: #EEF3F8; }
.faq-question, .qa-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left; padding: 18px 16px;
  background: #f8fafc; border-radius: 10px;
  color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.55;
  cursor: pointer; transition: background .15s, color .15s; border: 0; font-family: inherit;
}
.faq-question:hover, .qa-trigger:hover { background: var(--brand-50); color: var(--brand); }
.faq-question.open, .qa-block.open .qa-trigger { color: var(--brand); }
.faq-arrow, .qa-icon {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
  border: 1px solid var(--brand-100); font-size: 14px;
  transition: transform .18s, background .18s, color .18s; flex-shrink: 0;
}
.faq-question.open .faq-arrow, .qa-block.open .qa-icon { transform: rotate(180deg); background: var(--brand); color: #fff; }
.faq-answer, .qa-content { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p, .qa-inner { padding: 0 16px 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; }
.username-link { color: var(--ink) !important; text-decoration: none !important; transition: color .3s ease; }
.username-link:hover { color: var(--brand) !important; }
@media (max-width: 600px) {
  .page-title, .about-content h1 { font-size: 1.5rem; }
  .page-hero, { padding: 18px 14px; }
  .content-card { padding: 16px; }
  .faq-question, .qa-trigger { padding: 14px 12px; font-size: 14px; }
  --sidebar-w: 240px;
  --sidebar-icon-w: 48px;
}
main.container-fluid {
    padding-left: 18px;
    padding-right: 18px;
    max-width: 1500px;
}
main.container-fluid > .row {
    align-items: start;
}
.ts-mobile-profilebar {
    display: none;
}
@media (max-width: 767.98px) {
    /* Not sticky, and no backdrop-filter, since 2026-10-03. It was pinned at
       --header-h + 8px (68px) while the phone social header is 165px, so it
       stuck half under the header and kept ~200px of every screen while the
       feed scrolled beneath it. On the owner's iPhone (WebKit) the pinned,
       blurred layer also painted the page wrongly while scrolling: the footer
       showed mid-screen with a post's PDF preview drawn over it.
       backdrop-filter on a sticky layer is a known WebKit painting hazard,
       and with nothing behind a static card there is nothing left to blur. */
    .ts-mobile-profilebar {
        display: block;
        margin: 0 0 12px 0;
        padding: 12px;
        border: 1px solid var(--sn-border);
        border-radius: 16px;
        background:
            radial-gradient(circle at top right, rgba(45,125,210,.10), transparent 34%),
            linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(247,250,252,.96) 100%);
        box-shadow: 0 10px 28px -12px rgba(20,36,60,.18), 0 2px 8px rgba(20,36,60,.05);
    }
    .ts-mobile-profilebar-main {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 12px;
        align-items: center;
    }
    .ts-mobile-profilebar-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255,255,255,.95);
        box-shadow: 0 8px 18px -8px rgba(45,125,210,.22);
    }
    .ts-mobile-profilebar-info {
        min-width: 0;
    }
    .ts-mobile-profilebar-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .ts-mobile-profilebar-top h6 {
        color: var(--sn-text);
        font-weight: 800;
        font-size: .95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ts-mobile-profilebar-role {
        color: var(--sn-text-soft);
        font-size: .8rem;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ts-mobile-profilebar-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 6px;
        font-size: .78rem;
        color: var(--sn-text-soft);
    }
    .ts-mobile-profilebar-stats strong {
        color: var(--sn-text);
    }
    .ts-mobile-plan-badge {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 5px 10px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(225,169,58,.16), rgba(45,125,210,.10));
        border: 1px solid rgba(225,169,58,.18);
        color: #9b6a06;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .02em;
    }
    /* Groups and, for claimed accounts, New Group. The Plan button left on
       2026-10-03 (Basic members get the link under the card instead), so
       the columns follow however many buttons there are. */
    .ts-mobile-profilebar-actions {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        gap: 8px;
        margin-top: 12px;
    }
    .ts-mobile-upgrade-link {
        display: block;
        margin: -4px 0 12px;
        text-align: center;
        font-size: .82rem;
        font-weight: 600;
        color: var(--sn-accent-2);
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .ts-mobile-mini-btn {
        min-height: 40px;
        border: 1px solid var(--sn-border);
        border-radius: 12px;
        background: #fff;
        color: var(--sn-text-soft);
        font-size: .8rem;
        font-weight: 700;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px;
        transition: .18s ease;
    }
    .ts-mobile-mini-btn:hover {
        background: var(--sn-accent-soft);
        border-color: var(--brand-100);
        color: var(--sn-accent-2);
    }
    .ts-mobile-profilebar-note {
        margin-top: 10px;
        padding: 9px 10px;
        border-radius: 12px;
        background: rgba(45,125,210,.07);
        border: 1px solid rgba(45,125,210,.10);
        color: var(--sn-accent-2);
        font-size: .78rem;
        font-weight: 600;
        text-align: center;
    }
}
@media (max-width: 575.98px) {
    .ts-mobile-profilebar {
        padding: 10px;
        border-radius: 14px;
    }
    .ts-mobile-profilebar-main {
        grid-template-columns: 44px 1fr;
        gap: 10px;
    }
    .ts-mobile-profilebar-avatar {
        width: 44px;
        height: 44px;
    }
    .ts-mobile-mini-btn {
        min-height: 42px;
        font-size: .78rem;
    }
    .ts-mobile-plan-badge {
        font-size: .68rem;
        padding: 5px 8px;
    }
}
.card {
    border: 1px solid var(--sn-border);
    border-radius: var(--sn-radius);
    background: var(--sn-surface);
    box-shadow: var(--sn-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    border-color: rgba(45,125,210,.20);
    box-shadow: 0 14px 34px -14px rgba(20,36,60,.20), 0 3px 12px rgba(20,36,60,.06);
}
.card-body {
    padding: 18px 18px;
}
.content-sidebar .card:first-child .card-body {
    text-align: center;
    background:
        radial-gradient(circle at top center, rgba(45,125,210,.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.content-sidebar .rounded-circle.border {
    width: 84px !important;
    height: 84px !important;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.95) !important;
    box-shadow: 0 10px 22px -8px rgba(45,125,210,.28);
}
.card-title,
h5.card-title {
    color: var(--sn-text);
    font-weight: 800;
    letter-spacing: -.01em;
}
.content-sidebar .text-muted,
.card .text-muted,
small.text-muted {
    color: var(--sn-text-soft) !important;
}
.content-sidebar .border-top,
.content-sidebar .border-bottom {
    border-color: var(--sn-border) !important;
}
.content-sidebar .text-primary,
.card .text-primary {
    color: var(--sn-accent) !important;
}
/* P2.8: the compact icon `{% verified_badge person %}` renders next to an
   inline name (feed post author, comment, message header, notification).
   Sized off the surrounding text rather than a fixed px value so it scales
   with wherever it is dropped -- a post author's h6 and a comment's small
   byline are not the same font-size. */
.ts-badge-icon {
    font-size: .85em;
    margin-left: 6px;
    vertical-align: -1px;
}
.ts-badge-icon-verified { color: var(--brand); }
/* S17 owner's request: the "Top 2% Profile" action button used a star icon,
   which is reserved for the Elite Researcher subscription badge elsewhere on
   the site (same reason the admin badge stopped being a star). Replaced with
   the stacked text mark the side nav already uses for its "TOP 10" link
   (navs.html), same shape, different digits.

   ⚠️ Found live after the first version shipped: a plain .btn is
   display:inline-block, so normal inline flow put "TOP" on its own line and
   let "Profile" wrap onto the SAME line as "2%" after the <br>, making the
   button visibly taller and unevenly wrapped next to its single-line
   siblings (Message/Share/Connect/Follow). .ts-top2-btn makes this ONE
   button an inline-flex row instead, the same fix the side nav's .ts-slink
   already uses for the identical two-line-mark-next-to-a-label shape. */
.ts-top2-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
}
.ts-top2-mark {
    font-size: 9px;
    line-height: 1;
    text-align: center;
}
.ts-top2-label {
    line-height: 1.2;
}
/* S17: was --gold (matched the separate Elite Researcher star, a different
   claim about the account). Shield-vs-tick is now the distinguishing shape,
   both blue, for one consistent "verified in some way" color site-wide. */
.ts-badge-icon-admin { color: var(--brand); }

.content-sidebar .d-flex.align-items-center.text-warning {
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(225,169,58,.12), rgba(45,125,210,.08));
    border: 1px solid rgba(225,169,58,.18);
    border-radius: 12px;
    padding: 10px 12px;
    color: #9b6a06 !important;
}
.content-sidebar .badge.bg-primary {
    background: linear-gradient(135deg, var(--sn-accent), var(--sn-accent-2)) !important;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
}
.alert {
    border-radius: 14px;
    border: 1px solid var(--sn-border);
    box-shadow: var(--shadow-1);
}
.col-12.col-md-6 > .card:first-of-type .card-body {
    background:
        radial-gradient(circle at top right, rgba(45,125,210,.08), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.col-12.col-md-6 > .card:first-of-type .d-flex > .rounded-circle {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px -8px rgba(45,125,210,.22);
}
.col-12.col-md-6 > .card:first-of-type .btn-outline-secondary {
    border-radius: 999px;
    border: 1px solid var(--sn-border);
    background: #fff;
    color: var(--sn-text-soft);
    font-weight: 600;
    padding: 12px 16px;
}
.col-12.col-md-6 > .card:first-of-type .btn-outline-secondary:hover {
    border-color: var(--brand-light);
    color: var(--sn-accent-2);
    background: var(--sn-accent-soft);
}
.col-12.col-md-6 > .card:first-of-type .btn-light {
    border: 1px solid transparent;
    background: #f7fafc;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px 14px;
}
.col-12.col-md-6 > .card:first-of-type .btn-light:hover {
    background: var(--sn-accent-soft);
    border-color: var(--brand-100);
}
.col-12.col-md-6 .card.mt-4 .card-body:first-child {
    padding-bottom: 10px;
}
.col-12.col-md-6 .rounded-circle.me-3 {
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 8px 18px -8px rgba(45,125,210,.22);
    object-fit: cover;
}
.dropdown-toggle.btn-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    text-decoration: none;
}
.dropdown-toggle.btn-link:hover {
    background: var(--sn-accent-soft);
    color: var(--sn-accent) !important;
}
.dropdown-menu {
    border: 1px solid var(--sn-border);
    border-radius: 14px;
    box-shadow: var(--sn-shadow);
    padding: 8px;
}
.dropdown-item {
    border-radius: 10px;
    font-weight: 600;
    color: var(--sn-text);
}
.dropdown-item:hover {
    background: var(--sn-accent-soft);
    color: var(--sn-accent-2);
}
.col-12.col-md-6 .card.mt-4 p.mt-3 {
    color: var(--sn-text);
    font-size: .96rem;
    line-height: 1.65;
    margin-top: 14px !important;
    margin-bottom: 10px;
}
.img-fluid.rounded,
.card-img-top,
video.card-img-top {
    border-radius: 14px !important;
    border: 1px solid var(--sn-border);
    background: #f4f7fb;
}
.position-absolute.top-0.start-0.w-100.h-100.d-flex.align-items-center.justify-content-center.bg-dark.bg-opacity-50.text-white.fw-bold.rounded {
    border-radius: 14px !important;
    backdrop-filter: blur(2px);
    font-size: 1rem;
    letter-spacing: .02em;
}
.pdf-viewer-container {
    border: 1px solid var(--sn-border);
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
    padding: 14px;
}
.pdf-viewer-container canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    border: 1px solid var(--sn-border);
    box-shadow: var(--shadow-1);
    background: #fff;
}
.pdf-viewer-container .btn.btn-primary {
    background: linear-gradient(135deg, var(--sn-accent), var(--sn-accent-2));
    border: none;
    border-radius: 10px;
    font-weight: 700;
}
.pdf-viewer-container .btn.btn-primary:hover {
    filter: brightness(.97);
}
.like-count {
    color: var(--sn-text-soft);
    font-weight: 600;
}
.col-12.col-md-6 .card.mt-4 .card-body:last-child {
    padding-top: 10px;
    border-top: 1px solid rgba(228,233,238,.7);
    background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(249,252,255,.9));
}
.col-12.col-md-6 .card.mt-4 .btn.btn-light {
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 700;
    color: var(--sn-text-soft);
    min-height: 42px;
}
.col-12.col-md-6 .card.mt-4 .btn.btn-light:hover {
    background: var(--sn-accent-soft);
    border-color: var(--brand-100);
    color: var(--sn-accent-2);
}
.col-12.col-md-6 .card.mt-4 .btn.btn-light.text-center {
    width: 100%;
    background: #f7fafc;
    border: 1px dashed var(--sn-border);
}
.comments-section {
    margin-top: 14px !important;
    border-top: 1px solid var(--sn-border);
    padding-top: 14px;
}
aside.col-md-3 .card.mt-4,
aside.col-md-3 .promo-box {
    border-radius: var(--sn-radius);
    box-shadow: var(--sn-shadow);
}
aside.col-md-3 .card-body h6.fw-bold {
    color: var(--sn-text);
    font-weight: 800 !important;
}
aside.col-md-3 .row.align-items-center.mb-3 {
    margin: 0 0 10px 0 !important;
    padding: 10px;
    border-radius: 14px;
    transition: background .18s ease;
}
aside.col-md-3 .row.align-items-center.mb-3:hover {
    background: var(--sn-accent-soft);
}
aside.col-md-3 .btn-outline-primary.btn-sm {
    border-radius: 999px;
    font-weight: 700;
    padding: 8px 14px;
    border-color: var(--brand-100);
    color: var(--sn-accent-2);
}
aside.col-md-3 .btn-outline-primary.btn-sm:hover {
    background: linear-gradient(135deg, var(--sn-accent), var(--sn-accent-2));
    border-color: transparent;
    color: #fff;
}
.modal-content {
    border: 1px solid var(--sn-border);
    border-radius: 18px;
    box-shadow: var(--sn-shadow);
    overflow: hidden;
}
.modal-header {
    border-bottom-color: var(--sn-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
}
.modal-body,
.modal-body-img {
    background: #fff;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
.carousel-item {
    text-align: center;
}
.carousel-item img {
    max-height: 60vh;
    max-width: 100%;
    object-fit: contain;
    cursor: pointer;
    display: inline-block;
}
.card .btn:focus,
.promo-box .btn:focus,
.dropdown-toggle:focus,
button:focus {
    box-shadow: 0 0 0 3px rgba(45,125,210,.12) !important;
}
.italic-text {
    font-style: italic;
}
@media (max-width: 991.98px) {
    main.container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    .card-body {
        padding: 16px;
    }
    .content-sidebar .rounded-circle.border {
        width: 72px !important;
        height: 72px !important;
    }
}
@media (max-width: 767.98px) {
    .social-page .content-sidebar,
    .d-none.d-md-block {
        display: none !important;
    }
    .content-sidebar {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        position: static;
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 767.98px) {
    .content-sidebar.rail,
    .rail.content-sidebar {
        display: flex !important;
        flex-direction: column;
        gap: 16px;
        margin-top: 20px;
        position: static;
        max-width: 100%;
        width: 100%;
    }
}
/* Social pages under 900px: the header wraps to its search box and tab bar
   (165px on phones, far less when signed out), but every social template
   pushed its content down by a PERCENTAGE of the screen width plus its own
   inline 60-90px, so content started 15-105px underneath the header and the
   gap shrank as the phone got narrower. navs.html measures the real header
   into --ts-social-hdr; this is the one offset, and the per-page ones are
   zeroed. The class selector plus !important outranks the pages' own
   `.ts-main { margin-top: 20% !important }` blocks. Desktop is untouched. */
@media (max-width: 900px) {
    body.ts-social-side .ts-main {
        margin-top: calc(var(--ts-social-hdr, 165px) + 12px) !important;
    }
    body.ts-social-side .ts-main > main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    body.ts-social-side .ts-main > main > .row:first-child {
        margin-top: calc(-1 * var(--bs-gutter-y)) !important;
        padding-top: 0 !important;
    }
}
/* Phones: the "your profile" card (name, followers, plan) filled the first
   screen of Network, Alerts, Groups, Jobs, Search and My Posts, so the page's
   own content started below the fold. It moves below the content instead.
   .ts-side-jobtitle exists only in that card; the group page's card, which
   IS that page's content, does not carry it and keeps its place. */
@media (max-width: 767.98px) {
    body.ts-social-side .row > aside.content-sidebar:has(.ts-side-jobtitle) {
        order: 2;
    }
}
/* Phones: the post composer's Photo / PDF / Write article row (feed, My
   Posts, group page). The rules written for it above select
   `.card:first-of-type`, which never matches: the composer is a div that
   follows another div. The buttons fell back to Bootstrap's 16px block
   buttons and "Write article" broke over two lines. Sized by their own
   labels, the three fit one row from ~360px; narrower, the last one wraps
   to a full-width row of its own instead of breaking its label. */
@media (max-width: 575.98px) {
    body.ts-social-side .d-flex.justify-content-between:has(> .btn-light > .bi-pencil-square) {
        flex-wrap: wrap;
        gap: 6px;
    }
    body.ts-social-side .d-flex.justify-content-between:has(> .btn-light > .bi-pencil-square) > .btn-light {
        flex: 1 1 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 8px 6px;
        font-size: .85rem;
        font-weight: 600;
        white-space: nowrap;
    }
    body.ts-social-side .d-flex.justify-content-between:has(> .btn-light > .bi-pencil-square) > .btn-light > i {
        margin: 0 !important;
    }
}
/* Social header under 900px.
   Tabs: centred. justify-content stays flex-start because the row scrolls
   sideways when it overflows, and a centred overflowing row cuts off its
   first tab with no way to scroll back to it. Auto margins on the ends centre
   it when it fits and fall back to flush-left when it does not.
   Search row: collapses while scrolling down, back on any scroll up
   (navs.html toggles body.ts-hdr-compact), giving ~45px of every screen to
   the page. The content offset (--ts-social-hdr) is measured only while the
   header is full height, so collapsing it moves nothing under it; the freed
   strip just shows more page. Overflow is clipped only while collapsed, so
   the suggestions list under the search box is never cut off in use. */
@media (max-width: 900px) {
    body.ts-social-side .ts-social-tabs > .ts-stab:first-child { margin-left: auto; }
    body.ts-social-side .ts-social-tabs > .ts-stab:last-child { margin-right: auto; }
    body.ts-social-side .ts-header-social .ts-social-search {
        max-height: 60px;
        transition: max-height .2s ease, opacity .2s ease, margin .2s ease;
    }
    body.ts-social-side.ts-hdr-compact .ts-header-social .ts-social-search {
        max-height: 0;
        opacity: 0;
        margin-top: -10px;
        overflow: hidden;
        pointer-events: none;
    }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    body.ts-social-side .ts-header-social .ts-social-search { transition: none; }
}
/* Own social profile: an empty section says what to add, and the line is
   itself the add button (same dialog as the section's + icon). */
body.ts-social-side .ts-empty-add {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 4px;
    padding: 12px 14px;
    border: 1px dashed var(--brand-100);
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--sn-accent-2);
    font-size: .875rem;
    font-weight: 600;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}
body.ts-social-side .ts-empty-add:hover,
body.ts-social-side .ts-empty-add:focus-visible {
    background: var(--sn-accent-soft);
    border-color: var(--brand-light);
}
/* These rules apply at EVERY width. They were written as the body of a
   tablet-and-phone media query that closed early, and desktop has been
   laid out against them ever since: the 8px page gutter, the 66px space
   under the fixed header, 16px card corners and 14px card padding. Kept
   global on purpose; scoping them now would re-lay out every desktop page.
   The stray closing brace that followed them was removed 2026-09-28: it
   silently discarded the whole 575.98px block below on every phone. */
main.container-fluid {
    padding-left: 8px;
    padding-right: 8px;
}
main.container-fluid > .row {
    padding-top: 66px !important;
    margin-left: 0;
    margin-right: 0;
}
.col-12.col-md-6,
.col-md-3,
.col-12 {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}
.card {
    border-radius: 16px;
    margin-bottom: 14px;
}
.card-body {
    padding: 14px;
}
.col-12.col-md-6 > .card:first-of-type .d-flex.justify-content-between.mt-3 {
    gap: 8px;
    flex-wrap: wrap;
}
.col-12.col-md-6 > .card:first-of-type .btn-light {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 96px;
    min-height: 44px;
    padding: 10px 8px;
    font-size: .88rem;
}
.col-12.col-md-6 .card.mt-4 .d-flex.justify-content-between.mt-2 {
    gap: 8px;
    flex-wrap: wrap;
}
.col-12.col-md-6 .card.mt-4 .btn.btn-light {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 94px;
    min-height: 44px;
    font-size: .88rem;
    padding: 10px 8px;
}
.card-body .row.align-items-center > div {
    margin-bottom: 0.4rem;
}
.card-body .row.align-items-center > div:last-child {
    margin-bottom: 0;
}
.modal-body-img {
    height: 42vh;
    min-height: 180px;
}
.carousel-item img {
    max-height: 42vh;
}
.pdf-viewer-container {
    padding: 10px;
}
@media (max-width: 575.98px) {
    .modal-dialog {
        max-width: 98vw;
        margin: 0.5rem auto;
    }
    .modal-content {
        border-radius: 14px;
    }
    .modal-body-img {
        height: 34vh;
        min-height: 120px;
    }
    .carousel-item img:not(.promo-ad-image) {
        max-height: 34vh;
    }
    .col-12.col-md-6 .card.mt-4 .d-flex.justify-content-between,
    .col-12.col-md-6 .card.mt-4 .d-flex {
        gap: 10px;
    }
    .col-12.col-md-6 .card.mt-4 .btn.btn-light,
    .col-12.col-md-6 > .card:first-of-type .btn-light {
        flex: 1 1 100%;
        width: 100%;
    }
    .dropdown-toggle.btn-link {
        width: 34px;
        height: 34px;
    }
    .like-count {
        font-size: .84rem;
    }
    .col-12.col-md-6 .card.mt-4 p.mt-3 {
        font-size: .93rem;
    }
}
.ts-check-card{
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg,#fff 0%,#f8fbfe 100%);
}
.ts-btn-lg{
  min-height: 48px;
  border-radius: 14px;
  font-weight: 700;
}
.ts-form-wrap{
  max-width: 860px;
}
.ts-form-card{
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.ts-form-title{
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}
.ts-form-grid{
  display: grid;
  gap: 18px;
}
.ts-form-field{
  display: grid;
  gap: 8px;
}
.ts-input{
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}
.ts-input:focus,
.form-select.ts-input:focus,
textarea.ts-input:focus{
  border-color: var(--brand-light);
  box-shadow: 0 0 0 .2rem rgba(45,125,210,.12);
}
.ts-textarea{
  min-height: 130px;
  resize: vertical;
}
.ts-help{
  color: var(--muted);
  font-size: .86rem;
}
.ts-form-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.ts-btn-save{
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
}
.ts-section-block{
  margin-bottom: 24px;
}
@media (max-width: 767.98px){
  .ts-form-card{
    padding: 16px;
    border-radius: 16px;
  }
}
@media (max-width: 900px) {
    .ts-main {
        margin-left: 0 !important;
        padding: 0 var(--space-1, 1rem);
    }
}


/* Side Bar */

                 

.gradient-icon {
  background: linear-gradient(75deg, #FAB005, #b28f04 );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;        
  display: inline-block;
    margin-left: auto; 
      transition: transform 0.2s, color 0.2s;
   line-height: 1.5 !important;   

}

.gradient-blue-icon {
  background: linear-gradient(75deg, #42a5f5, #0d6efd); /* primary + lighter blue */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1.5 !important;
  /* The circle is drawn a hair wider than the icon's box, and the gradient
     only paints inside the box, so without this its right edge showed flat. */
  padding: 0 1px;
}

.data-section.related-profiles.compact ul li:hover .gradient-icon {
  transform: scale(1.5);
  color: #FAB005;
  text-decoration: none !important;
}


 /* Compact Related/Featured Profiles */
.data-section.related-profiles.compact {
  padding: 0.5rem;
  margin-bottom: 1rem;
}

.data-section.related-profiles.compact h6 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor;
}

.data-section.related-profiles.compact ul {
  padding: 0.5rem !important;
  margin: 0;
}

.data-section.related-profiles.compact ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.data-section.related-profiles.compact ul li:hover img {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.data-section.related-profiles.compact ul li:hover {
  background: rgba(26,115,232,0.05);  /* very light blue */
  border-radius: 4px;
}

/* Underline the NAME on row hover, not the row: an underline set on the li
   is passed down to every item in it, the verified tick and the gold star
   included, and no rule on the icon can take it off again. !important
   because the profile rail's links carry Bootstrap's .text-decoration-none. */
.data-section.related-profiles.compact ul li:hover a {
  text-decoration: underline !important;
}

/* Elite star right after the name in the profile's Trending rail, the
   verified tick keeping the right-hand edge. The name link normally grows to
   fill the row, which would push the star over to the tick; in a row with a
   star the link fits the name and the star's auto right margin takes the
   space instead. */
.data-section.related-profiles.compact ul li:has(> .ts-rail-elite) > a {
  flex-grow: 0;
}
.data-section.related-profiles.compact .ts-rail-elite {
  margin: 0 auto 0 .4rem;
  font-size: .8rem;
}
/* A name long enough to wrap leaves no space for the auto margin, and the
   star would touch the tick. */
.data-section.related-profiles.compact .ts-rail-elite + .gradient-blue-icon {
  margin-left: .4rem;
}
/* A name long enough to wrap leaves the auto margin nothing, so the tick
   keeps its own gap from the star. */
.data-section.related-profiles.compact ul li:has(> .ts-rail-elite) > .gradient-blue-icon {
  margin-left: .5rem;
}


.data-section.related-profiles.compact ul li:last-child {
  margin-bottom: 0;
}

.data-section.related-profiles.compact ul li img {
  width: 32px !important;
  height: 32px !important;
  margin-right: 0.5rem !important;
}

.data-section.related-profiles.compact ul li a {
  color: #1a73e8;
  text-decoration: none;
  line-height: 1.2;
  flex-grow: 1;             
}

.data-section.related-profiles.compact ul li a:hover {
  text-decoration: underline;
}

.colorgold {
  color: #b28f04 !important;
}


  .side-more { display:inline-flex; align-items:center; gap:6px; margin-top:10px;
               font-size:13px; font-weight:600; color: var(--dark) !important; text-decoration:none; margin-bottom: 10px;}
  .side-more:hover { text-decoration:underline; color: var(--brand) !important; }
  .side-flags { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
  .side-flags a { display:inline-flex; align-items:center; justify-content:center;
                  width:40px; height:30px; border-radius:5px; overflow:hidden;
                  box-shadow:0 0 0 1px rgba(0,0,0,.08); transition:transform .12s; }
  .side-flags a:hover { transform:translateY(-2px); box-shadow:0 4px 10px rgba(0,0,0,.15); }
  .side-flags img { width:100%; height:100%; object-fit:cover; }

/* The Countries rail card, main/templates/partials/rail_countries.html, drawn
   by {% countries_rail %} in main/templatetags/country_tags.py. */
.ts-crail { padding: 14px 16px 22px; }
/* Ocean and sun glints behind the map. The CSS gradient is the water until
   static/js/ts-crail-water.js paints the same ocean into a canvas and adds
   .ts-crail-live; the canvas then ripples under the pointer. The land is the
   same world-rail.svg, lightened by a filter so it reads as frosted land.
   The CSS animations are transform or opacity only (compositor). */
.ts-crail-map { position: relative; overflow: hidden; display: block; margin: -2px -4px 22px; border-radius: 10px; background: #0b5f93; padding: 10px 8px 8px; }
.ts-crail-map::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 65% at 86% 86%, #02c1db 0%, rgba(2,174,207,.6) 40%, rgba(1,138,179,0) 75%),
    radial-gradient(48% 42% at 46% 22%, rgba(1,58,108,.75) 0%, rgba(1,58,108,0) 70%),
    radial-gradient(30% 28% at 18% 84%, rgba(1,74,120,.6) 0%, rgba(1,74,120,0) 70%),
    radial-gradient(38% 32% at 32% 58%, rgba(120,190,210,.22) 0%, rgba(120,190,210,0) 70%),
    linear-gradient(160deg, #02619b 0%, #016a9c 45%, #0176a3 100%);
  animation: ts-crail-water 40s ease-in-out infinite alternate;
}
.ts-crail-wave { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; z-index: 0; display: block; pointer-events: none; animation: ts-crail-water 40s ease-in-out infinite alternate; }
.ts-crail-map.ts-crail-live::before { display: none; }
.ts-crail-map::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 80% 74%, #fff, transparent),
    radial-gradient(1px 1px at 86% 81%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 91% 70%, #fff, transparent),
    radial-gradient(1px 1px at 76% 88%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 94% 86%, #fff, transparent);
  animation: ts-crail-glint 3.5s ease-in-out infinite alternate;
}
.ts-crail-map img { position: relative; z-index: 2; display: block; width: 100%; height: auto; filter: brightness(1.35) saturate(.35) drop-shadow(0 1px 1.5px rgba(0,35,70,.45)); transition: transform .25s ease, filter .25s ease; }
/* On hover only the map lifts; the water behind it stays put. The shadow
   follows the land outline (drop-shadow, not box-shadow). */
.ts-crail-map:hover img, .ts-crail-map:focus-visible img { transform: translateY(-4px); filter: brightness(1.35) saturate(.35) drop-shadow(0 6px 6px rgba(0,30,60,.45)); }
@keyframes ts-crail-water { from { transform: scale(1.02) translate(-3%, -2%); } to { transform: scale(1.1) translate(3%, 2%); } }
@keyframes ts-crail-glint { from { opacity: .25; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .ts-crail-map img { transition: none; }
  .ts-crail-map::before, .ts-crail-map::after, .ts-crail-wave { animation: none; }
}
.rail-card.ts-crail h3 { font-size: 15.5px; margin-bottom: 22px; }
.ts-crail h3 a { color: var(--ink); text-decoration: none; }
.ts-crail h3 a:hover { color: var(--brand); }

.ts-crail-here { display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.ts-crail-here:hover { border-color: var(--brand); background: var(--brand-50, #eef5fd); color: var(--ink); }
.ts-crail-here img { width: 28px; height: 20px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex-shrink: 0; }
.ts-crail-here-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.ts-crail-here-text b { font-size: 14px; }
.ts-crail-here-text small { font-size: 12.5px; color: var(--ink-soft); }
.ts-crail-here i { color: var(--brand); font-size: 12px; }
.side-flags.ts-crail-flags { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-bottom: 20px; }
.side-flags.ts-crail-flags a { width: auto; height: auto; aspect-ratio: 4 / 3; }
.ts-crail-all { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.ts-crail-all:hover { text-decoration: underline; }
/* The profile's country (flag and name) links to its country page. It must
   read like the text around it: the profile page's own `.profile-subtext a`
   rule sets 18px brand-blue for the social icons, so every property it sets
   is put back here. Only a small lift on hover says it is a link. */
.profile-subtext a.ts-cntry-link, a.ts-cntry-link { display: inline-flex; align-items: center; gap: 4px; font-size: inherit; margin-right: 0; text-decoration: none; transition: transform .15s ease; transform-origin: left center; }
.profile-subtext a.ts-cntry-link:hover, a.ts-cntry-link:hover { transform: scale(1.06); text-decoration: none; }
a.ts-cntry-link .flag-img { margin-right: 2px; }

/* Initials in place of the default avatar in rail lists (Trending, Featured,
   Related) and the disambiguation list. images/user.jpg is a square with
   corner brackets; cropped to a small circle the brackets read as a broken
   ring. Same look as .sci-avatar-fallback in topsci_rankings.css. The
   profile and institute headers keep user.jpg on purpose. */
.ts-initials { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-light, #5b9be0), var(--brand, #2d7dd2)); color: #fff; font-weight: 700; font-size: 13px; line-height: 1; text-transform: uppercase; box-shadow: 0 2px 6px rgba(20, 36, 60, .08); }
.ts-initials.ts-initials-sm,
.data-section.related-profiles.compact .ts-initials { width: 32px; height: 32px; font-size: 11.5px; margin-right: .5rem !important; }
  .tr-note { font-size:12px; color:var(--muted); margin:6px 2px 16px; font-style:italic; }

span.sci-name:hover      { color: var(--ink); text-decoration: none; cursor: default; }
span.sci-inst:hover      { color: var(--ink-soft); text-decoration: none; cursor: default; }
span.username-link:hover { color: var(--ink) !important; text-decoration: none !important; cursor: default; }
span.profile-name:hover  { color: inherit; text-decoration: none; cursor: default; }

/* ==========================================================================
   SCINET SOCIAL — violet sub-brand theme.  Added in the S21 branding pass.

   Everything here is scoped to `body.ts-social-side`, a class navs.html adds
   only when 'top_social' is in the request path.  The ranking site keeps the
   blue identity untouched.

   The first block is the whole trick: the social side re-points the shared
   brand ramp at violet, so every existing rule that already reads
   var(--brand*) / var(--sn-accent*) follows automatically.  That is why this
   is a token swap rather than several hundred hand-edited declarations, and
   why reverting is one deletion.

   TO REVERT: delete this block, the `.ts-header-social` block above, and the
   `ts-social-side` / `ts-header-social` classes in main/templates/navs.html.
   ========================================================================== */
body.ts-social-side {
  --brand:       #8224E3;
  --brand-600:   #63189F;
  --brand-700:   #4E1280;
  --brand-50:    #F7EFFE;
  --brand-100:   #E9D5FB;
  --brand-light: #C79BF0;

  --sn-accent:      #8224E3;
  --sn-accent-2:    #63189F;
  --sn-accent-soft: #F7EFFE;

  --primary:   #8224E3;
  --secondary: #C79BF0;
  --accent:    #4E1280;
  --light:     #F7EFFE;

  /* Bootstrap 5 reads these at runtime, so links and .text-primary follow. */
  --bs-primary:          #8224E3;
  --bs-primary-rgb:      130, 36, 227;
  --bs-link-color:       #63189F;
  --bs-link-color-rgb:   99, 24, 159;
  --bs-link-hover-color: #4E1280;
}

/* --- Bootstrap components -------------------------------------------------
   .btn-primary and friends compile their colours into --bs-btn-* at build
   time, so the :root token swap above does not reach them.  These do. */
body.ts-social-side .btn-primary {
  --bs-btn-bg:                  var(--brand);
  --bs-btn-border-color:        var(--brand);
  --bs-btn-hover-bg:            var(--brand-600);
  --bs-btn-hover-border-color:  var(--brand-600);
  --bs-btn-active-bg:           var(--brand-700);
  --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-bg:         var(--brand-light);
  --bs-btn-disabled-border-color: var(--brand-light);
  --bs-btn-focus-shadow-rgb:    130, 36, 227;
}
body.ts-social-side .btn-outline-primary {
  --bs-btn-color:               var(--brand-600);
  --bs-btn-border-color:        var(--brand);
  --bs-btn-hover-bg:            var(--brand);
  --bs-btn-hover-border-color:  var(--brand);
  --bs-btn-active-bg:           var(--brand-600);
  --bs-btn-active-border-color: var(--brand-600);
  --bs-btn-focus-shadow-rgb:    130, 36, 227;
}
/* S22, owner's request: ONE button on the social profile keeps the MAIN brand
   blue while everything around it is SCINET violet. It is the only control in
   that row that leaves the social sub-brand entirely and lands on the Top 2%
   ranking site, so wearing that site's colour is what the button is telling
   you. The values are literal rather than var(--brand), because --brand is
   deliberately shadowed to violet by the body.ts-social-side block above, and a
   token would resolve to exactly the colour this rule exists to escape.
   Hover and active are set too, or the button flipped back to violet on the
   way in. */
/* S25: the variables below were being beaten in the browser even though the
   cascade said they should win, so the two properties that actually matter
   are now stated DIRECTLY on the element as well. A --bs-btn-* variable only
   takes effect if Bootstrap's own rule for that button is the one computing
   the property; a direct declaration does not depend on that. */
body.ts-social-side a.ts-top2-btn,
body.ts-social-side .ts-top2-btn {
  color: #1F6ABB !important;
  border-color: #2D7DD2 !important;
  background-color: transparent !important;
}
body.ts-social-side a.ts-top2-btn:hover,
body.ts-social-side a.ts-top2-btn:focus-visible,
body.ts-social-side .ts-top2-btn:hover,
body.ts-social-side .ts-top2-btn:focus-visible {
  color: #fff !important;
  background-color: #2D7DD2 !important;
  border-color: #2D7DD2 !important;
}
body.ts-social-side .ts-top2-btn {
  --bs-btn-color:               #1F6ABB;
  --bs-btn-border-color:        #2D7DD2;
  --bs-btn-hover-color:         #fff;
  --bs-btn-hover-bg:            #2D7DD2;
  --bs-btn-hover-border-color:  #2D7DD2;
  --bs-btn-active-color:        #fff;
  --bs-btn-active-bg:           #1F6ABB;
  --bs-btn-active-border-color: #1F6ABB;
  --bs-btn-focus-shadow-rgb:    45, 125, 210;
}

body.ts-social-side .text-primary   { color: var(--brand) !important; }
body.ts-social-side .bg-primary     { background-color: var(--brand) !important; }
body.ts-social-side .border-primary { border-color: var(--brand) !important; }
body.ts-social-side .link-primary   { color: var(--brand-600) !important; }
body.ts-social-side .btn-link       { color: var(--brand-600); }
body.ts-social-side .btn-link:hover { color: var(--brand-700); }

/* Form controls, switches and focus rings.  Focus is a visible violet ring
   rather than Bootstrap's default blue, so keyboard users get the same
   identity signal as everyone else. */
body.ts-social-side .form-control:focus,
body.ts-social-side .form-select:focus,
body.ts-social-side .form-check-input:focus {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 .2rem rgba(130, 36, 227, .18);
}
body.ts-social-side .form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
body.ts-social-side .btn:focus-visible,
body.ts-social-side a:focus-visible,
body.ts-social-side button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Progress / completion meters (the "Complete your profile" ring and bar). */
body.ts-social-side .progress-bar { background-color: var(--brand); }

/* Dropdowns, nav pills, pagination, list groups. */
/* .dropdown-menu resolves its own --bs-dropdown-* variables, which are
   compiled from $primary and therefore stayed BLUE after the token swap --
   the post three-dots menu was painting a solid blue Repost row inside an
   otherwise violet page. Setting them on the menu is what actually reaches
   the item, rather than restyling .dropdown-item and being overridden. */
body.ts-social-side .dropdown-menu {
  --bs-dropdown-link-hover-bg:   var(--brand-50);
  --bs-dropdown-link-hover-color: var(--brand-700);
  --bs-dropdown-link-active-bg:  var(--brand);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-border-color:    var(--sn-border);
  --bs-dropdown-border-radius:   12px;
  --bs-dropdown-box-shadow:      var(--sn-shadow);
  padding: 6px;
}
body.ts-social-side .dropdown-menu .dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .875rem;
  font-weight: 500;
}
body.ts-social-side .dropdown-menu .dropdown-item i { width: 18px; }
body.ts-social-side .dropdown-menu .dropdown-item.text-danger:hover {
  background-color: #FDECEA;
  color: #C0392B !important;
}
body.ts-social-side .nav-pills .nav-link.active,
body.ts-social-side .nav-pills .show > .nav-link { background-color: var(--brand); }
body.ts-social-side .page-item.active .page-link { background-color: var(--brand); border-color: var(--brand); }
body.ts-social-side .page-link { color: var(--brand-600); }
body.ts-social-side .list-group-item.active { background-color: var(--brand); border-color: var(--brand); }

/* --- Sidebar --------------------------------------------------------------
   On the social side the sidebar's job flips: SCINET is where you already
   are, and Home is the doorway back.  So Home takes the highlighted-pill
   treatment that SCINET carries on the main site, in the BLUE of the world it
   leads to, so the pill colour always previews the destination. */
body.ts-social-side .ts-slink.ts-main-site {
  background: #EAF2FB;
  color: #1F6ABB;
}
body.ts-social-side .ts-slink.ts-main-site:hover {
  background: #2D7DD2 !important;
  color: #fff !important;
}
/* ...and SCINET itself stops shouting, because you are already in it. */
body.ts-social-side .ts-slink.ts-social-net {
  background: var(--scinet-violet) !important;
  color: #fff !important;
}

/* --- Feed cards -----------------------------------------------------------
   A social feed lives or dies on the action row, so it gets real states
   instead of Bootstrap's grey .btn-light default. */
body.ts-social-side .ts-action-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
body.ts-social-side .ts-action-row .btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 600;
  transition: background .15s ease, color .15s ease;
}
body.ts-social-side .ts-action-row .btn:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
body.ts-social-side .ts-action-row .btn.is-on {
  color: var(--brand);
}
body.ts-social-side .ts-action-row .btn i { font-size: 1.05rem; }

/* Read more / read less on long posts. */
.ts-post-body { position: relative; }
.ts-post-body.is-clamped .ts-post-text {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  line-clamp: 7;
  overflow: hidden;
}
.ts-post-more {
  display: none;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-600);
  cursor: pointer;
}
.ts-post-more:hover { text-decoration: underline; }
.ts-post-body.has-overflow .ts-post-more { display: inline-block; }

/* Hashtags and links inside post bodies. */
.ts-post-text a,
.ts-hashtag {
  color: var(--brand-600);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}
.ts-post-text a:hover,
.ts-hashtag:hover { text-decoration: underline; }

/* --- Profile pages: one link style and one heading colour -----------------
   public_profile.html and profile.html both carry their own <style> block
   that paints section titles with var(--ink) and leaves body links on the
   browser default, so a DOI read as a different kind of thing from a link in
   a post. These selectors outrank those page-level rules (0-2-1 vs 0-1-0)
   and give the whole social side one link treatment. */
body.ts-social-side .ts-profile-section-title,
body.ts-social-side .ts-complete-title { color: var(--brand-700); }

body.ts-social-side .ts-profile-section-body a,
body.ts-social-side .ts-entity-text a,
body.ts-social-side .ts-entity-item a,
body.ts-social-side .ts-publication-link a,
body.ts-social-side .ts-profile-about a {
  color: var(--brand-600);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
body.ts-social-side .ts-profile-section-body a:hover,
body.ts-social-side .ts-entity-text a:hover,
body.ts-social-side .ts-entity-item a:hover,
body.ts-social-side .ts-publication-link a:hover,
body.ts-social-side .ts-profile-about a:hover { text-decoration: underline; }

/* A DOI is the one link on the page a researcher actually came to click, so
   it gets a chip rather than a muted meta line the eye skips. */
body.ts-social-side .ts-publication-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 11px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: var(--brand-50);
  font-size: .8rem;
  line-height: 1.2;
  max-width: 100%;
}
body.ts-social-side .ts-publication-link i { color: var(--brand); flex: none; }
body.ts-social-side .ts-publication-link a { font-variant-numeric: tabular-nums; }
body.ts-social-side .ts-publication-link:hover {
  border-color: var(--brand-light);
  background: var(--brand-100);
}

/* --- Post media: moved to ts-post-media.css (feeds only), 2026-10-11. */

/* --- Right rail: one card system across every social page ------------------
   All twelve social templates already emit identical `.ts-suggest-row` markup
   for "Add to your feed", and none of it had a single CSS rule -- the rows
   were rendering on bare Bootstrap, which is why the rail looked different on
   every page. Styling the classes the templates already carry makes all
   twelve consistent without editing twelve files. */
body.ts-social-side .content-sidebar .card,
body.ts-social-side .promo-box {
  border: 1px solid var(--sn-border);
  border-radius: var(--sn-radius-sm);
  box-shadow: var(--sn-shadow);
}

/* Gaps. Every rail card was flush against the next one because .promo-box
   ships `margin-bottom: 0` and the suggestion card carried an inline
   `margin-bottom: 10%` (a PERCENTAGE, so its size depended on rail width and
   it disagreed with itself between breakpoints). One rhythm instead. */
body.ts-social-side .content-sidebar > *,
body.ts-social-side .ts-public-side > *,
body.ts-social-side aside .card,
body.ts-social-side aside .promo-box,
body.ts-social-side aside .ts-side-card {
  margin-bottom: 18px !important;
}
body.ts-social-side .content-sidebar > *:last-child,
body.ts-social-side .ts-public-side > *:last-child { margin-bottom: 0 !important; }

/* The analytics page's rail treatment, re-toned violet: a small coloured
   heading sitting ABOVE its box, and the box itself carrying a tinted
   gradient with a matching 1px border. `:has()` finds the card that holds the
   suggestion rows without needing a new class in twelve templates. */
body.ts-social-side .card:has(.ts-suggest-row),
body.ts-social-side .ts-side-card:has(.ts-suggest-row) {
  background: linear-gradient(135deg, var(--brand-50), #ffffff);
  border: 1px solid var(--brand-light);
  box-shadow: 0 1px 8px rgba(20, 6, 36, .06);
}
body.ts-social-side .card:has(.ts-suggest-row) .card-body > h6.fw-bold,
body.ts-social-side .ts-side-card:has(.ts-suggest-row) .card-body > h6.fw-bold,
body.ts-social-side .ts-side-card:has(.ts-suggest-row) > h6.fw-bold,
body.ts-social-side .content-sidebar .card-body > h6.fw-bold,
body.ts-social-side .promo-box h4 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-100);
}

/* The institution line under each suggested name. Hidden, not deleted: it is
   `profile.reason` from the S10 suggestion ranker, and the ranker still
   computes and orders by it -- this only stops it being drawn, so restoring
   it is deleting these three lines rather than rebuilding a feature. */
body.ts-social-side .ts-suggest-reason { display: none; }

/* One suggestion row: avatar, name + reason, Follow. The row is a grid rather
   than the template's Bootstrap columns so the Follow button keeps its width
   and the name truncates instead, which is the behaviour that survives a long
   institution name in a 320px rail. */
/* Three columns: avatar, name, Follow hard right. The row is deliberately
   the same height as a row in the analytics page's Trending Researchers box,
   which is the reference for this card.

   The Follow button is NOT a direct child of the row in any of the
   templates -- it is nested in a wrapper alongside the name -- and the two
   families of markup nest it differently (Bootstrap `.col-md .flex-grow-1`
   in ten templates, a plain `.ms-2` div in profile.html). `display: contents`
   dissolves whichever wrapper it is so the name and the button become grid
   items in their own right, which is what lets one rule put Follow in the
   third column everywhere without editing twelve files. */
/* `display: grid` needs !important because one of the two markup families
   puts Bootstrap's .d-flex on this row, and every Bootstrap display utility
   ships !important -- without it that page silently stayed flex and the
   column rules below did nothing. */
body.ts-social-side .ts-suggest-row {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 4px 9px;
  align-items: center;
  margin: 0 !important;
  padding: 7px 0;
  text-align: left;
}
body.ts-social-side .ts-suggest-row + .ts-suggest-row {
  border-top: 1px solid var(--sn-border);
}
/* Neutralise the Bootstrap column boxes, but NOT the one holding the name and
   the Follow button. The text wrapper is `col-12 col-md flex-grow-1`, so it
   matches [class*="col-"] as well as .flex-grow-1, and both selectors score
   an identical 0-3-1 -- the later rule simply won, forced it back to
   display:block, and kept Follow nested under the name. :not() makes the two
   rules disjoint instead of relying on source order. */
body.ts-social-side .ts-suggest-row > [class*="col-"]:not(.flex-grow-1),
body.ts-social-side .ts-suggest-row > .ts-profile-mini {
  padding: 0;
  margin: 0;
  width: auto;
  max-width: none;
  flex: initial;
  display: block;
  text-align: left;
}
/* Dissolve the wrapper so the name and Follow become grid items themselves.
   Last, and !important, so nothing above can put it back to a box.

   There are THREE wrapper shapes across the twelve templates, not two:
     home.html          -> .col-12.col-md.flex-grow-1
     profile / public   -> .ms-2
     the other nine     -> a BARE <div> carrying no class whatsoever
   The bare div is why only the feed page looked right: no class selector can
   match it, so on nine pages the wrapper survived and kept Follow stacked
   under the name. `div:not([class])` is the only thing that reaches it.

   Everything here is a DIRECT child of the row, so this cannot leak into the
   name or button markup itself. */
body.ts-social-side .ts-suggest-row > .flex-grow-1,
body.ts-social-side .ts-suggest-row > .ms-2,
body.ts-social-side .ts-suggest-row > div:not([class]) {
  display: contents !important;
}

/* In those same nine templates the avatar is a direct child of the row rather
   than sitting in a column box, and it carries Bootstrap's me-3. Left alone
   that margin is added on top of the grid gap and pushes the name out of its
   column. */
body.ts-social-side .ts-suggest-row > img {
  margin: 0 !important;
}
body.ts-social-side .ts-suggest-row img {
  width: 34px !important;
  height: 34px !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
body.ts-social-side .ts-suggest-row h6 {
  grid-column: 2;
  margin: 0 !important;
  min-width: 0;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.ts-social-side .ts-suggest-row h6 a { color: var(--ink); }
body.ts-social-side .ts-suggest-row h6 a:hover { color: var(--brand-600); }
body.ts-social-side .ts-suggest-reason {
  font-size: .75rem;
  line-height: 1.35;
  color: var(--muted);
  margin-bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Pill Follow button, outline until pressed. min-height 32 on desktop and 36
   on touch, so it stays tappable if this becomes an app shell. */
body.ts-social-side .ts-suggest-follow-btn {
  --bs-btn-padding-y: 0;
  --bs-btn-padding-x: 0;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin: 0 !important;
  padding: 3px 12px;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-600);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
  transition: background .15s ease, color .15s ease;
}
body.ts-social-side .ts-suggest-follow-btn:hover,
body.ts-social-side .ts-suggest-follow-btn:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
body.ts-social-side .ts-suggest-follow-btn.is-following,
body.ts-social-side .ts-suggest-follow-btn[disabled] {
  border-color: var(--sn-border);
  background: transparent;
  color: var(--muted);
}
@media (max-width: 575.98px) {
  body.ts-social-side .ts-suggest-follow-btn { min-height: 36px; }
}

/* --- The viewer's own identity card, top of the left rail on every social
   page.  Takes the .pr-contact-card treatment from topsci_pages.css (gradient
   ground, white type, one oversized translucent circle bleeding off the top
   corner) and re-tones it violet, so the card a member sees on every single
   page is the strongest statement of the sub-brand.

   It is the FIRST card in .content-sidebar on all twelve templates, which is
   what makes :first-child a safe hook: the markup is identical everywhere. */
body.ts-social-side .content-sidebar .card:first-child {
  border: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(78, 18, 128, .55);
}
body.ts-social-side .content-sidebar .card:first-child .card-body {
  position: relative;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
}
body.ts-social-side .content-sidebar .card:first-child .card-body::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
body.ts-social-side .content-sidebar .card:first-child .card-body > * {
  position: relative;
}
body.ts-social-side .content-sidebar .card:first-child img {
  border-color: rgba(255, 255, 255, .55) !important;
  box-shadow: 0 8px 20px -10px rgba(10, 4, 20, .7);
}
body.ts-social-side .content-sidebar .card:first-child .card-title {
  color: #fff;
  font-weight: 700;
}
/* Bootstrap's utility colours are unreadable on this ground, so each one is
   restated as a tint of white rather than left to fight the gradient. */
body.ts-social-side .content-sidebar .card:first-child .text-muted,
body.ts-social-side .content-sidebar .card:first-child .ts-side-jobtitle {
  color: rgba(255, 255, 255, .82) !important;
}
body.ts-social-side .content-sidebar .card:first-child .text-primary {
  color: #fff !important;
}
body.ts-social-side .content-sidebar .card:first-child .text-warning {
  color: #FFD98A !important;
}
body.ts-social-side .content-sidebar .card:first-child .border-top,
body.ts-social-side .content-sidebar .card:first-child .border-bottom {
  border-color: rgba(255, 255, 255, .22) !important;
}
body.ts-social-side .content-sidebar .card:first-child .ts-sidelink {
  border-radius: 8px;
  transition: background .15s ease;
}
body.ts-social-side .content-sidebar .card:first-child .ts-sidelink:hover {
  background: rgba(255, 255, 255, .14);
}
body.ts-social-side .content-sidebar .card:first-child a,
body.ts-social-side .content-sidebar .card:first-child .ts-sidelink-inline {
  color: #fff;
}
body.ts-social-side .content-sidebar .card:first-child .ts-sidelink-inline {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- "Get your Top 2% badge" card ----------------------------------------
   Carries .pr-contact-card in the markup, but that class lives in
   topsci_pages.css which social pages do NOT load -- so the treatment is
   restated here, violet, rather than the class silently doing nothing. */
body.ts-social-side .pr-contact-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  padding: 22px 20px;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(78, 18, 128, .55);
}
body.ts-social-side .pr-contact-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
body.ts-social-side .pr-contact-card > * { position: relative; }
body.ts-social-side .pr-contact-card .ts-complete-title,
body.ts-social-side .pr-contact-card h2,
body.ts-social-side .pr-contact-card summary { color: #fff; }
body.ts-social-side .pr-contact-card .ts-publish-copy,
body.ts-social-side .pr-contact-card p,
body.ts-social-side .pr-contact-card label,
body.ts-social-side .pr-contact-card .form-label {
  color: rgba(255, 255, 255, .88);
}
body.ts-social-side .pr-contact-card a { color: #fff; text-decoration: underline; }
/* The embed-code box has to stay legible AND selectable, so it gets a solid
   light ground rather than a translucent one over the gradient. */
body.ts-social-side .pr-contact-card textarea,
body.ts-social-side .pr-contact-card input[type="text"] {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .5);
  color: var(--ink);
}
body.ts-social-side .pr-contact-card .btn {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
}
body.ts-social-side .pr-contact-card .btn:hover {
  background: rgba(255, 255, 255, .28);
  color: #fff;
}
body.ts-social-side .pr-contact-card .form-check-input {
  background-color: rgba(255, 255, 255, .25);
  border-color: rgba(255, 255, 255, .6);
}
body.ts-social-side .pr-contact-card .form-check-input:checked {
  background-color: #fff;
  border-color: #fff;
}

/* Profile-completion card, moved out from under the avatar into the rail. */
body.ts-social-side .ts-complete-ring {
  display: block;
  margin: 0 auto 10px;
}
body.ts-social-side .ts-complete-ring .ts-ring-track { stroke: var(--brand-100); }
body.ts-social-side .ts-complete-ring .ts-ring-fill  { stroke: var(--brand); }
body.ts-social-side .ts-complete-ring .ts-ring-label {
  font-size: 26px;
  font-weight: 700;
  fill: var(--ink);
}
body.ts-social-side .ts-complete-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  font-size: .84rem;
  color: var(--ink-soft);
  text-decoration: none;
}
body.ts-social-side .ts-complete-step:hover { color: var(--brand-600); }
body.ts-social-side .ts-complete-step .bi { font-size: 1.05rem; flex: none; }
body.ts-social-side .ts-complete-step.is-done { color: var(--ink); }
body.ts-social-side .ts-complete-step.is-done .bi { color: var(--brand); }
body.ts-social-side .ts-complete-step.is-todo .bi { color: var(--brand-100); }
body.ts-social-side .ts-complete-count {
  margin-left: auto;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

/* --- Responsive ----------------------------------------------------------
   The rail drops under the feed rather than shrinking, and touch targets
   stay at 44px, which is the floor if this ever becomes a mobile app. */
@media (max-width: 991.98px) {
  body.ts-social-side .content-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 0 !important;
  }
}
@media (max-width: 575.98px) {
  body.ts-social-side .ts-action-row .btn {
    min-height: 44px;
    font-size: .8rem;
    gap: 5px;
  }
  body.ts-social-side .ts-action-row .btn .ts-action-label { display: none; }
  body.ts-social-side .ts-action-row .btn i { font-size: 1.15rem; }
  body.ts-social-side .ts-rail-card { padding: 14px; }
}


/* ==========================================================================
   FACE STRIP - the weekly digest's row of researchers who just published.

   HOVER IS NOT AVAILABLE EVERYWHERE, so the name is not hidden behind it.
   Under `(hover: hover) and (pointer: fine)` the strip is faces only and the
   name rises as a chip on hover or keyboard focus, which is the effect asked
   for.  Every other device - phone, tablet, a laptop in touch mode - gets the
   name printed under the face permanently, because a name that only exists
   on hover does not exist at all on a touch screen.

   The track is CSS scroll-snap rather than a carousel library: no dependency,
   swipe works natively, and it degrades to a plain scrollable row if the
   script never loads.  The arrows are hidden wherever the pointer is coarse.
   ========================================================================== */
body.ts-social-side .ts-faces {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #e6e8eb);
}

body.ts-social-side .ts-faces-track {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 4px 2px 6px;
  list-style: none;
  flex: 1 1 auto;
  /* Without this a flex child refuses to shrink below its content and the
     strip pushes the whole card wider than the phone. */
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

body.ts-social-side .ts-faces-track::-webkit-scrollbar { display: none; }

body.ts-social-side .ts-face {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

body.ts-social-side .ts-face-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  text-decoration: none;
  color: inherit;
}

body.ts-social-side .ts-face-ring {
  position: relative;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand, #8224E3), var(--brand-light, #C79BF0));
  transition: transform .18s ease, box-shadow .18s ease;
}

body.ts-social-side .ts-face-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #fff;
  border: 2px solid #fff;
}

body.ts-social-side .ts-face-name {
  font-size: .72rem;
  line-height: 1.2;
  text-align: center;
  color: #5a6570;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

body.ts-social-side .ts-faces-nav {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line, #e6e8eb);
  background: #fff;
  color: #5a6570;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s ease, color .15s ease, opacity .15s ease;
}

body.ts-social-side .ts-faces-nav:hover {
  background: var(--brand, #8224E3);
  border-color: var(--brand, #8224E3);
  color: #fff;
}

body.ts-social-side .ts-faces-nav[hidden] { display: none !important; }

body.ts-social-side .ts-face-link:focus-visible .ts-face-ring,
body.ts-social-side .ts-faces-nav:focus-visible {
  outline: 2px solid var(--brand, #8224E3);
  outline-offset: 2px;
}

/* Pointer devices: faces only, the name arrives as a chip above the avatar. */
@media (hover: hover) and (pointer: fine) {
  body.ts-social-side .ts-faces-nav { display: inline-flex; }

  body.ts-social-side .ts-face-link { width: 68px; }

  body.ts-social-side .ts-face-name {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translate(-50%, 4px);
    z-index: 3;
    width: max-content;
    max-width: 180px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #2b2f36;
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    display: block;
    -webkit-line-clamp: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }

  body.ts-social-side .ts-face { position: relative; }

  body.ts-social-side .ts-face-link:hover .ts-face-ring,
  body.ts-social-side .ts-face-link:focus-visible .ts-face-ring {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(130, 36, 227, .28);
  }

  body.ts-social-side .ts-face-link:hover .ts-face-name,
  body.ts-social-side .ts-face-link:focus-visible .ts-face-name {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Phones: slightly smaller faces so five fit in the swipe, names stay on. */
@media (max-width: 575.98px) {
  body.ts-social-side .ts-faces { gap: 0; }
  body.ts-social-side .ts-faces-track { gap: 10px; }
  body.ts-social-side .ts-face-link { width: 64px; }
  body.ts-social-side .ts-face-ring { width: 56px; height: 56px; }
  body.ts-social-side .ts-face-name { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.ts-social-side .ts-faces-track { scroll-behavior: auto; }
  body.ts-social-side .ts-face-ring,
  body.ts-social-side .ts-face-name { transition: none; }
}

/* Every hover tooltip: black box, white text (static/js/ts-tips.js).
   ⚠️ Deliberately NOT .ts-tip: that name is the CSS-only tooltip above (S24),
   and reusing it hid every element carrying it, the /analytics/ institute
   cells and the social icons on profile pages among them. */
.ts-hovertip { position: fixed; z-index: 3000; display: none; max-width: 300px; padding: 6px 10px; border-radius: 6px; background: rgba(0,0,0,.88); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; pointer-events: none; transition: opacity .12s; }
.tooltip { --bs-tooltip-bg: rgba(0,0,0,.88); --bs-tooltip-color: #fff; }

/* "Your SCINET profile is ready": the one-time dialog for claimed scientists
   whose social profile is still unpublished (navs.html, scinet_ready_card). */
.ts-scinet-ready { border-radius: 18px; }
.ts-scinet-ready .modal-title { font-weight: 800; color: var(--brand-700, #4c1d95); }
.ts-scinet-ready-lead { color: var(--ink-soft); margin-bottom: 14px; }
.ts-scinet-ready-share {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft);
}
.ts-scinet-ready-share .form-check-input { float: none; margin: 0; }
.ts-scinet-ready-share.form-switch { padding-left: 0; }
.ts-scinet-ready-share.form-switch .form-check-input { width: 2em; cursor: pointer; }
.ts-scinet-ready-people { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.ts-scinet-ready-people-title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.ts-scinet-ready-person {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0;
}
.ts-scinet-ready-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; }
.ts-scinet-ready-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 40px; }
.ts-scinet-ready-who span { display: flex; flex-direction: column; min-width: 0; }
.ts-scinet-ready-who strong, .ts-scinet-ready-who small {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ts-scinet-ready-who small { color: var(--ink-soft); font-size: .78rem; }
.ts-scinet-ready-follow { flex: 0 0 auto; min-width: 86px; }

/* Default social profile banner, 2026-10-03: drawn by the browser from
   fields the page already has, for the ~98% of profiles with no cover photo
   (56 of 3,157 live profiles had one). Nothing generated, stored or fetched.
   An uploaded cover still replaces it. Same footprint as .ts-profile-cover. */
body.ts-social-side .ts-profile-hero { position: relative; }
body.ts-social-side .ts-default-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  aspect-ratio: 4 / 1;
  min-height: 112px;
  margin-bottom: 18px;
  padding: 16px 22px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.6px) 0 0 / 18px 18px,
    radial-gradient(circle at 88% 15%, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(120deg, #4c1d95 0%, #7c3aed 55%, #2d7dd2 100%);
}
body.ts-social-side .ts-default-cover-logo {
  display: block;
  height: 38px;
  width: auto;
}
body.ts-social-side .ts-default-cover-main {
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 767.98px) {
  body.ts-social-side .ts-default-cover { aspect-ratio: auto; padding: 14px 16px; }
  body.ts-social-side .ts-default-cover-logo { height: 32px; }
}

/* Own social profile: camera buttons on the banner and the photo, both
   leading to the matching section of Settings, where the uploads live. */
body.ts-social-side .ts-cover-edit,
body.ts-social-side .ts-avatar-edit {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 16px -6px rgba(20,36,60,.45);
  transition: transform .15s ease;
}
body.ts-social-side .ts-cover-edit:hover,
body.ts-social-side .ts-avatar-edit:hover { transform: scale(1.06); }
body.ts-social-side .ts-cover-edit {
  top: 32px;
  right: 34px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.94);
  color: var(--brand-700, #4c1d95);
}
body.ts-social-side .ts-avatar-wrap {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  line-height: 0;
}
body.ts-social-side .ts-avatar-edit {
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  font-size: .8rem;
  background: var(--brand);
  color: #fff;
  border: 2px solid #fff;
}
@media (max-width: 767.98px) {
  body.ts-social-side .ts-cover-edit { top: 24px; right: 24px; width: 34px; height: 34px; }
}
@media (min-width: 768px) and (max-width: 900px) {
    body.ts-social-side main.container-fluid > .row > .col-md-3 { display: none !important; }
    body.ts-social-side main.container-fluid > .row > .col-md-6 { flex: 0 0 100%; max-width: 100%; width: 100%; }
}
body.ts-social-side main.container-fluid > .row > .col-md-6 .card { --bs-card-border-radius: 6px; --bs-card-inner-border-radius: 5px; border-radius: 6px; }
body.ts-social-side .form-switch .form-check-input { cursor: pointer; }
body.ts-social-side .form-switch .form-check-input:checked, .ts-scinet-ready-share.form-switch .form-check-input:checked { background-color: #8224e3; border-color: #8224e3; }
body.ts-social-side .form-switch .form-check-input:focus, .ts-scinet-ready-share.form-switch .form-check-input:focus { border-color: #c79bf0; box-shadow: 0 0 0 .2rem rgba(130, 36, 227, .18); }

/* The lab on the feed (session 103, top_social/lab_feed.py): a post or a
   comment written as a lab, "Like as lab", and the "Liked by" list. */
.ts-lab-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #8224e3, #5b2bd6); color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.ts-lab-avatar:hover { color: #fff; }
.ts-lab-avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.ts-lab-avatar.is-small { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; }
.ts-lab-pill { background: #f1e8fd; color: #6a1fc0; border: 1px solid #dcc6f7; font-weight: 500; }
.ts-lab-head { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.input-group > .ts-as-lab { flex: 0 0 auto; width: auto; max-width: 42%; }
body.ts-social-side .like-count[data-post-id] { cursor: pointer; }
body.ts-social-side .like-count[data-post-id]:hover { text-decoration: underline; }
.ts-likedby-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f0eef6; }
.ts-likedby-row:last-child { border-bottom: 0; }
.ts-likedby-pic { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #ede7f9; color: #5b2bd6; font-weight: 700; font-size: .9rem; }
.ts-likedby-pic.is-lab { border-radius: 10px; background: linear-gradient(135deg, #8224e3, #5b2bd6); color: #fff; }
.ts-likedby-text { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.ts-likedby-name { font-weight: 600; color: #1a2330; text-decoration: none; }
a.ts-likedby-name:hover { color: #6a1fc0; text-decoration: underline; }
.ts-likedby-tick { color: #2d7dd2; font-size: .8rem; }
.ts-likedby-text small { flex: 0 0 100%; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Endorsements on a SCINET profile (session 103, top_social/endorsements.py). */
.ts-endo-count { margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: #f1e8fd; color: #6a1fc0; font-size: .78rem; font-weight: 600; }
.ts-endo-switch { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #ebe6f5; border-radius: 6px; background: #fcfbff; }
.ts-endo-switch .form-check-label { font-weight: 600; }
.ts-endo-switch small { display: block; margin-top: 4px; color: #6b7280; }
.ts-endo-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f0eef6; }
.ts-endo-item:last-of-type { border-bottom: 0; }
.ts-endo-item.is-hidden { opacity: .62; }
.ts-endo-pic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #ede7f9; color: #5b2bd6; font-weight: 700; }
.ts-endo-main { min-width: 0; flex: 1 1 auto; }
.ts-endo-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ts-endo-name { font-weight: 600; color: #1a2330; text-decoration: none; }
a.ts-endo-name:hover { color: #6a1fc0; text-decoration: underline; }
.ts-endo-tick { color: #2d7dd2; font-size: .82rem; }
.ts-endo-flag { padding: 0 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; font-size: .72rem; font-weight: 600; }
.ts-endo-standing { color: #6b7280; font-size: .84rem; }
.ts-endo-text { margin: 8px 0 6px; line-height: 1.55; overflow-wrap: anywhere; }
.ts-endo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: #6b7280; font-size: .8rem; }
.ts-endo-foot form, .ts-endo form[data-endo-confirm] { margin: 0; display: inline; }
.ts-endo-link { border: 0; background: none; padding: 0; color: #6a1fc0; font-size: .8rem; font-weight: 600; cursor: pointer; }
.ts-endo-link:hover { text-decoration: underline; }
.ts-endo-link.is-danger { color: #b42318; }
.ts-endo-empty { color: #6b7280; margin: 6px 0 0; }
.ts-endo-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0eef6; }
.ts-endo-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.ts-endo-form textarea { width: 100%; border: 1px solid #d9d4e7; border-radius: 6px; padding: 10px 12px; font: inherit; resize: vertical; }
.ts-endo-form textarea:focus { outline: 2px solid #c79bf0; outline-offset: 1px; border-color: #8224e3; }
.ts-endo-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.ts-endo-form-foot small { color: #6b7280; }

/* The spotlight post (session 103, top_social/spotlight.py): the featured
   researchers on a card, and the picker in the post box. */
.ts-spot { margin-top: 14px; padding: 12px 14px; border: 1px solid #e6dcf7; border-radius: 6px; background: linear-gradient(180deg, #fbf8ff, #fff); }
.ts-spot-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6a1fc0; margin-bottom: 6px; }
.ts-spot-person { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #f0eaf9; color: inherit; text-decoration: none; }
.ts-spot-person:first-of-type { border-top: 0; }
.ts-spot-item { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid #f0eaf9; }
.ts-spot-label + .ts-spot-item { border-top: 0; }
.ts-spot-item .ts-spot-person { flex: 1 1 auto; min-width: 0; border-top: 0; }
.ts-spot-remove { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 10px; display: grid; place-items: center; border: 1px solid #e6dcf7; border-radius: 50%; background: #fff; color: #8a98a8; font-size: 12px; cursor: pointer; }
.ts-spot-remove:hover { background: #fdf3f0; border-color: #f1c7bd; color: #b3402a; }
.ts-spot-remove:focus-visible { outline: 2px solid #c79bf0; outline-offset: 2px; }
.ts-spot-person:hover .ts-spot-name { color: #6a1fc0; text-decoration: underline; }
.ts-spot-pic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center; background: #ede7f9; color: #5b2bd6; font-weight: 700; font-size: 1.1rem; }
.ts-spot-text { display: flex; flex-direction: column; min-width: 0; }
.ts-spot-name { font-weight: 700; color: #1a2330; }
.ts-spot-tick { color: #2d7dd2; font-size: .82rem; }
.ts-spot-inst { color: #6b7280; font-size: .85rem; }
.ts-spot-line { margin-top: 4px; line-height: 1.5; overflow-wrap: anywhere; }
.ts-spot-compose { margin-top: 12px; border: 1px solid #e6dcf7; border-radius: 6px; padding: 8px 12px; background: #fcfbff; }
.ts-spot-compose summary { cursor: pointer; font-weight: 600; color: #6a1fc0; }
.ts-spot-help { margin: 8px 0; font-size: .85rem; color: #6b7280; }
.ts-spot-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; margin-bottom: 8px; }
.ts-spot-row.is-chosen [data-spot-search] { border-color: #8224e3; background: #f7f1ff; font-weight: 600; }
.ts-spot-hits { position: absolute; z-index: 20; top: 100%; left: 0; width: min(100%, 420px); margin-top: 2px; background: #fff; border: 1px solid #d9d4e7; border-radius: 6px; box-shadow: 0 10px 28px rgba(26, 35, 48, .16); max-height: 260px; overflow-y: auto; }
.ts-spot-hit { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; }
.ts-spot-hit:hover, .ts-spot-hit:focus { background: #f4eefd; outline: 0; }
.ts-spot-hit b { display: block; font-weight: 600; }
.ts-spot-hit small { color: #6b7280; }
@media (max-width: 600px) { .ts-spot-row { grid-template-columns: minmax(0, 1fr); } }
