/* Reading and directory components adapted from Chumei's public interface. */
.page-heading { margin: 8px 0 22px; padding: 0; gap: 18px; align-items: center; }
.page-heading h1 { margin: 0 0 7px; font: 700 clamp(1.35rem, 2.2vw, 1.75rem)/1.3 var(--font-sans); letter-spacing: 0; }
.page-heading p:not(.eyebrow) { max-width: 720px; margin: 0; font-size: .9rem; line-height: 1.65; color: var(--color-text-secondary); }
.eyebrow { font-size: .75rem; letter-spacing: 0; text-transform: none; }
.section-heading { margin: 24px 0 10px; }
.section-heading h2 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.section-heading p:not(.eyebrow) { font-size: .82rem; margin: 5px 0 0; }
.filter-bar { gap: 10px; padding: 12px 0; border: 0; border-radius: 0; background: transparent; }
.filter-bar label { min-width: 130px; font-size: .76rem; letter-spacing: 0; }
.filter-bar .search-label { min-width: 180px; }
.filter-bar input, .filter-bar select { font-size: .84rem; min-height: 40px; }
.results-bar { margin: 12px 0; font-size: .8rem; gap: 12px; }
.results-bar > span { font-size: .76rem; }
.tag { padding: 2px 7px; border-radius: 999px; font-size: .7rem; background: var(--color-surface-soft); color: var(--color-text-secondary); border: 0; }
.post-grid { display: block; max-width: var(--layout-reading, 720px); columns: auto; }
.post-card.feed-post { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; padding: 14px 0 8px; margin: 0; border: 0; border-bottom: 1px solid var(--color-border-subtle); border-radius: 0; background: transparent; box-shadow: none; break-inside: auto; }
.feed-avatar-wrap { min-width: 0; }
.feed-avatar-wrap .avatar { width: 36px; height: 36px; border: 1px solid var(--color-border-subtle); border-radius: 50%; background: var(--color-surface-soft); color: var(--color-text-secondary); font-size: .8rem; }
.feed-content { min-width: 0; }
.feed-head { display: flex; align-items: baseline; gap: 7px; min-width: 0; line-height: 1.3; }
.feed-name { min-width: 0; flex: 1; font-size: .95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-name a { color: var(--color-text-primary); }
.feed-time { flex-shrink: 0; color: var(--color-text-muted); font-size: .78rem; white-space: nowrap; }
.feed-meta { display: flex; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: .75rem; line-height: 1.4; margin-top: 3px; flex-wrap: wrap; }
.feed-topic { font-weight: 500; }
.feed-plat { color: var(--color-text-muted); font-size: .75rem; }
.feed-plat .external { display: none; }
.feed-title { font: 600 .95rem/1.5 var(--font-sans); margin: 5px 0 0; }
.feed-text.post-text { margin: 3px 0 0; font-size: .95rem; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: var(--color-text-primary); }
.feed-text.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.feed-expand { display: block; padding: 5px 0; min-height: 32px; color: var(--color-text-muted); border: 0; background: none; font-size: .82rem; cursor: pointer; }
.post-image.feed-img { display: block; margin: 12px 0 0 -48px; width: calc(100% + 48px); max-width: calc(100% + 48px); height: auto; max-height: none; border-radius: 4px; object-fit: contain; border: 0; }
.feed-evs { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.feed-ev { display: flex; gap: 10px; align-items: baseline; min-width: 0; padding: 10px 14px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); color: var(--color-text-primary); font-size: .88rem; font-weight: 600; }
.feed-ev-date { flex-shrink: 0; color: var(--color-text-secondary); font-size: .82rem; }
.feed-ev-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-content > .feed-actions { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 0 -10px; justify-content: flex-start; }
.feed-action { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; min-width: 40px; padding: 0 10px; border: 0; background: none; cursor: pointer; border-radius: var(--radius-pill); color: var(--color-text-secondary); font-family: inherit; font-size: .8rem; }
.feed-action svg { width: 19px; height: 19px; }
.feed-action:hover, .feed-ev:hover { background: var(--color-surface-soft); text-decoration: none; }
.feed-action.is-following { color: var(--color-bell-on); }
.story-expired { font-size: .8rem; margin: 8px 0; }
.source-grid { display: block; margin-top: 10px; border-top: 1px solid var(--color-border-subtle); }
.source-card.src-row, .src-head { display: grid; grid-template-columns: minmax(180px, 1.8fr) minmax(70px, .65fr) minmax(90px, .85fr) minmax(90px, 1fr) 55px 82px 100px; align-items: center; gap: 10px; padding: 10px 6px; border: 0; border-bottom: 1px solid var(--color-border-subtle); border-radius: 0; background: transparent; box-shadow: none; margin: 0; transform: none; }
.src-head { font-size: .75rem; color: var(--color-text-muted); min-height: 42px; background: var(--color-canvas); }
.src-head > *, .src-row > * { min-width: 0; }
.src-sort { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border: 0; font: inherit; color: inherit; background: transparent; cursor: pointer; }
.src-sort.active { color: var(--color-text-primary); font-weight: 600; }
.source-card.src-row:hover { background: var(--color-surface-soft); transform: none; }
.source-card.src-row h3 { margin: 0; font: 600 .9rem/1.4 var(--font-sans); }
.src-c-name a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--color-text-primary); }
.source-card.src-row .avatar { width: 34px; height: 34px; flex-shrink: 0; font-size: .8rem; background: var(--color-surface-soft); color: var(--color-text-secondary); border: 1px solid var(--color-border-subtle); }
.src-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-country { font-size: .8rem; color: var(--color-text-secondary); }
.src-c-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.src-links { display: flex; gap: 5px 10px; flex-wrap: wrap; min-width: 0; }
.src-link { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; white-space: nowrap; color: var(--color-text-brand); }
.src-upd, .src-count { text-align: right; font-size: .75rem; color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-count { font-weight: 600; }
.follow-button.src-c-follow { position: static; display: inline-flex; justify-content: center; align-items: center; gap: 5px; width: 100%; min-width: 44px; height: 40px; border: 1px solid var(--color-border-strong); border-radius: 999px; color: var(--color-text-primary); background: none; font-size: .8rem; }
.src-c-follow svg { width: 17px; height: 17px; flex-shrink: 0; }
.src-c-follow[aria-pressed="true"] { border-color: var(--color-bell-on); color: var(--color-bell-on); background: var(--color-bell-on-surface); }
.src-th-follow { text-align: center; }
.org-page { width: 100%; min-width: 0; margin-inline: auto; }
.org-page > .back-link, .org-page > .source-profile { max-width: var(--layout-reading, 720px); margin-inline: auto; }
/* Source updates share the page scrollbar and keep each complete post together. */
.org-page .source-updates-grid { width: 100%; max-width: none; columns: 1; column-gap: 24px; }
.source-updates-grid > .post-card.feed-post { break-inside: avoid; margin-bottom: 18px; }
.source-updates-grid > .empty-state { column-span: all; }
@media (min-width: 700px) { .org-page .source-updates-grid { columns: 2; } }
@media (min-width: 1080px) { .org-page .source-updates-grid { columns: 3; } }
.back-link { margin: 4px 0 20px; }
.source-profile { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 24px; padding: 0 0 20px; border-bottom: 1px solid var(--color-border-subtle); }
.source-profile .profile-avatar .avatar { width: 84px; height: 84px; font-size: 1.6rem; }
.source-profile h1 { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--font-sans); margin: 0 0 8px; letter-spacing: 0; }
.source-profile p { font-size: .9rem; line-height: 1.7; margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.source-profile > .button { grid-column: 2; justify-self: start; }
.profile-name-en { color: var(--color-text-muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.profile-links .button { min-height: 34px; padding: 5px 12px; font-size: .82rem; }
.event-list, .event-grid { display: block; }
.event-card, .event-grid .event-card, .event-list .event-card { display: flex; gap: 16px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--color-border-subtle); border-radius: 0; background: transparent; }
.event-date, .event-list .event-date { width: 48px; min-width: 48px; padding: 5px 0; background: transparent; border: 0; color: var(--color-text-secondary); }
.event-date strong { font: 700 1.3rem/1.25 var(--font-sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.event-date span { font-size: .75rem; }
.event-content { min-width: 0; flex: 1; }
.event-content h3, .event-list .event-content h3 { font: 600 1rem/1.5 var(--font-sans); margin: 3px 0 5px; }
.event-content .eyebrow { font-size: .73rem; }
.event-time, .event-location { margin: 5px 0; font-size: .82rem; color: var(--color-text-secondary); }
.event-content .card-bottom { margin: 10px 0 0; padding: 0; gap: 10px; }
.event-details { margin-top: 8px; font-size: .85rem; }
.event-details p { white-space: pre-line; overflow-wrap: anywhere; }
.score-list { border-top: 1px solid var(--color-border-subtle); }
.score-row { display: flex; gap: 13px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color-border-subtle); }
.score-icon { width: 36px; height: 36px; flex-shrink: 0; background: var(--color-surface-soft); color: var(--color-text-secondary); border-radius: 50%; }
.score-main h3 { font: 600 .95rem/1.5 var(--font-sans); margin: 2px 0; }
.score-main p { font-size: .8rem; line-height: 1.6; margin: 3px 0; }
.score-main .eyebrow { font-size: .72rem; }
.collection-grid { display: block; }
.collection-card { display: flex; align-items: start; gap: 14px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--color-border-subtle); border-radius: 0; background: transparent; }
.collection-art { width: 36px; height: 36px; min-height: 0; border-radius: 50%; background: var(--color-surface-soft); color: var(--color-text-secondary); flex-shrink: 0; }
.collection-art svg { width: 21px; height: 21px; }
.collection-art > span { display: none; }
.collection-copy { padding: 0; min-width: 0; flex: 1; }
.collection-copy h3 { font: 600 .95rem/1.5 var(--font-sans); margin: 3px 0; }
.collection-copy > p { margin: 5px 0; font-size: .83rem; }
.collection-copy .card-bottom { margin-top: 10px; }
.feed-grid { display: block; max-width: var(--layout-reading, 720px); }
.feed-card { display: flex; align-items: center; gap: 12px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--color-border-subtle); border-radius: 0; background: transparent; }
.feed-card .feed-icon { width: 30px; height: 30px; margin: 0; flex-shrink: 0; color: var(--color-text-secondary); background: transparent; }
.feed-card h2 { flex: 1; margin: 0; min-width: 0; font: 600 .92rem/1.5 var(--font-sans); }
.feed-card > .tag { order: 3; }
.feed-card .feed-actions { display: flex; gap: 12px; margin: 0; padding: 0; border: 0; flex-wrap: wrap; }
.feed-card .copy-button { font-size: .8rem; min-height: 36px; }
.about-layout { display: block; max-width: var(--layout-reading, 720px); margin: 24px 0; }
.faq-section h2 { font: 700 1.1rem/1.4 var(--font-sans); }
.faq { padding: 13px 0; border-bottom: 1px solid var(--color-border-subtle); }
.faq summary { font-size: .9rem; }
.faq p { font-size: .88rem; line-height: 1.8; color: var(--color-text-secondary); }
.community-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 30px 0 0; padding: 18px 0; background: transparent; color: var(--color-text-primary); border: 0; border-top: 1px solid var(--color-border-subtle); border-radius: 0; }
.community-banner h2 { font: 700 1rem/1.4 var(--font-sans); margin: 0 0 5px; }
.community-banner p:not(.eyebrow) { max-width: 600px; margin: 0; color: var(--color-text-secondary); font-size: .82rem; line-height: 1.7; }
.community-actions { display: flex; gap: 12px; flex-shrink: 0; align-items: center; }
.community-actions > .text-link { color: var(--color-text-primary); }
.status-hero { display: flex; align-items: center; gap: 15px; background: transparent; border: 0; padding: 16px 0; margin: 0; }
.status-hero h2 { font: 700 1.2rem/1.4 var(--font-sans); }
.status-hero p { font-size: .84rem; }
.status-metrics { border-top: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); background: transparent; margin: 10px 0 20px; }
.status-metrics strong { font: 600 1rem/1.5 var(--font-sans); }
.prose { max-width: var(--layout-reading, 720px); }
.prose h2 { font: 700 1.1rem/1.4 var(--font-sans); }
.prose p { font-size: .9rem; line-height: 1.8; }
@media (max-width: 1250px) {
  .source-card.src-row, .src-head { grid-template-columns: minmax(150px, 1.5fr) minmax(65px, .7fr) minmax(80px, 1fr) 48px 76px 44px; gap: 8px; }
  .src-c-chips, .src-head > :nth-child(3) { display: none; }
  .follow-button.src-c-follow { width: 44px; height: 44px; padding: 0; }
  .src-c-follow > span { display: none; }
}
@media (max-width: 699px) {
  .page-heading { margin: 8px 0 14px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 1.35rem; }
  .page-heading p:not(.eyebrow) { font-size: .84rem; }
  .page-heading > .button { min-height: 36px; font-size: .8rem; }
  .filter-bar { gap: 10px 8px; padding: 8px 0; }
  .filter-bar .search-label { flex-basis: 100%; }
  .filter-bar label { min-width: 0; flex-basis: calc(50% - 8px); }
  .filter-bar .checkbox-filter { flex-basis: auto; padding-top: 0; min-height: 40px; }
  .results-bar { align-items: start; flex-direction: column; gap: 2px; }
  .results-bar > p { margin: 0; }
  .post-card.feed-post { padding: 14px 0 8px; gap: 0 10px; }
  .post-image.feed-img { margin-left: -46px; width: calc(100% + 46px); max-width: calc(100% + 46px); max-height: none; }
  .feed-action { padding: 0 8px; font-size: .76rem; }
  .feed-card { flex-wrap: wrap; gap: 8px; }
  .feed-card h2 { flex-basis: calc(100% - 46px); }
  .feed-card .feed-actions { margin-left: 38px; }
  .src-head { display: flex; flex-wrap: wrap; gap: 7px 15px; padding: 6px 0; }
  .src-head > :nth-child(3) { display: block; }
  .src-head > :nth-child(4), .src-th-follow { display: none; }
  .source-card.src-row { grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "name count follow" "country updated follow" "links links follow"; padding: 9px 0; gap: 2px 8px; }
  .src-c-name { grid-area: name; overflow: hidden; }
  .source-card.src-row h3 { font-size: .85rem; }
  .src-c-name a { gap: 8px; }
  .source-card.src-row .avatar { width: 26px; height: 26px; font-size: .68rem; }
  .src-country { grid-area: country; padding-left: 34px; font-size: .73rem; }
  .src-links { grid-area: links; padding-left: 34px; gap: 4px 10px; }
  .src-link { font-size: .72rem; }
  .src-count { grid-area: count; font-size: .75rem; }
  .src-upd { grid-area: updated; font-size: .68rem; max-width: 68px; overflow: hidden; text-overflow: ellipsis; }
  .src-c-follow { grid-area: follow; }
  .source-profile { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .source-profile .profile-avatar .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
  .source-profile h1 { font-size: 1.4rem; }
  .source-profile p { font-size: .85rem; }
  .event-card, .event-grid .event-card, .event-list .event-card { gap: 12px; }
  .event-date, .event-list .event-date { min-width: 42px; width: 42px; }
  .community-banner { align-items: start; flex-direction: column; gap: 12px; }
  .community-actions { flex-wrap: wrap; }
  .status-metrics { grid-template-columns: 1fr; }
}
/* Component layout is explicit so it does not depend on the retired card theme. */
.avatar { position: relative; overflow: hidden; }
.avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-bar { display: flex; justify-content: space-between; color: var(--color-text-muted); }
.profile-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.score-icon, .collection-art { display: flex; align-items: center; justify-content: center; }
.score-main { min-width: 0; flex: 1; }
.event-date { display: flex; flex-direction: column; align-items: center; line-height: 1.4; }
.event-time, .event-location { display: flex; align-items: baseline; gap: 6px; }
.event-time svg, .event-location svg { width: 15px; height: 15px; }
.event-details summary, .score-main details summary { cursor: pointer; color: var(--color-text-muted); }
.feed-card .copy-button { background: transparent; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); padding: 4px 10px; color: var(--color-text-secondary); }
.status-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status-metrics > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 12px; }
.status-metrics > div > span { font-size: .8rem; color: var(--color-text-muted); }
.status-orb { display: block; width: 12px; height: 12px; flex-shrink: 0; border-radius: 50%; background: var(--color-warning-text); }
.status-orb.ok { background: var(--color-success-text); }
@media (max-width: 699px) { .status-metrics { grid-template-columns: 1fr; } }
.src-country-mobile { display: none; }
@media (max-width: 699px) {
  .filter-bar > label.search-label { flex: 1 0 100%; }
  .source-card.src-row { grid-template-areas: "name count follow" "links updated follow"; }
  .src-country { display: none; }
  .src-country-mobile { display: inline-flex; flex-shrink: 0; padding: 2px 5px; border-radius: 999px; font-size: .63rem; font-weight: 600; background: var(--color-surface-soft); color: var(--color-text-secondary); }
}

@media (max-width: 699px) { .event-date strong { font-size: 1.125rem; } }

/* Multilingual identities remain readable, including their original spelling. */
.source-translation-note { margin: 12px 0 8px; color: var(--color-text-secondary); font-size: .75rem; line-height: 1.6; }
.source-card.src-row, .src-head { grid-template-columns: minmax(280px, 3fr) minmax(55px, .55fr) minmax(150px, 1.3fr) minmax(128px, .9fr) 65px 84px 94px; }
.source-card.src-row { align-items: center; padding-block: 8px; }
.src-c-name a { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 8px 14px; }
.source-card.src-row .avatar { width: 44px; height: 44px; border-radius: 50%; font-size: .9rem; }
.src-sort { max-width: 100%; text-align: start; white-space: normal; }
.src-name { overflow: visible; text-overflow: clip; white-space: normal; flex: 1; overflow-wrap: anywhere; }
.source-names, .source-types { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.source-name-line, .source-type-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; min-width: 0; font-weight: 400; font-size: .76rem; line-height: 1.45; color: var(--color-text-secondary); }
.source-name-line.is-primary { font-size: .9rem; font-weight: 600; color: var(--color-text-primary); }
.source-language-label { font-size: .61rem; font-weight: 500; color: var(--color-text-muted); white-space: normal; overflow-wrap: anywhere; }
.source-name-value { overflow-wrap: anywhere; min-width: 0; }
.source-type-line { font-size: .73rem; }
.source-type-line.is-primary { color: var(--color-text-primary); }
.src-c-chips { display: block; }
.source-profile .source-names { gap: 6px; }
.source-profile .source-name-line { font-size: .87rem; }
.source-profile .source-translation-note { font-size: .73rem; }
.profile-types { border-block: 1px solid var(--color-border-subtle); margin-block: 12px; padding-block: 10px; }
.profile-types .source-types { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 700px) and (max-width: 1250px) {
  .source-card.src-row, .src-head { grid-template-columns: minmax(255px, 2.6fr) minmax(55px, .55fr) minmax(120px, 1.2fr) minmax(70px, .8fr) 60px 75px 44px; }
  .src-head > :nth-child(3) { display: block; }
  .src-c-name a { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; }
  .source-card.src-row .avatar { width: 40px; height: 40px; border-radius: 50%; }
}
@media (max-width: 899px) and (min-width: 700px) {
  .source-card.src-row, .src-head { grid-template-columns: minmax(185px, 2.2fr) 50px minmax(95px, 1.1fr) minmax(60px, .7fr) 60px 44px; }
  .src-upd, .src-head > :nth-child(6) { display: none; }
}
@media (max-width: 699px) {
  .source-card.src-row { grid-template-columns: minmax(0, 1fr) 36px 55px; grid-template-areas: "name name follow" "types types types" "links count updated"; gap: 4px 8px; padding-block: 8px; }
  .src-c-name { overflow: visible; }
  .src-c-name a { grid-template-columns: 60px minmax(0, 1fr); gap: 8px 12px; }
  .source-card.src-row .avatar { width: 40px; height: 40px; border-radius: 50%; font-size: .9rem; }
  .src-c-name .src-name { grid-column: 2; min-width: 0; }
  .src-c-chips { grid-area: types; padding-left: 50px; }
  .src-c-chips .source-types { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .src-country-mobile { grid-column: 2; justify-self: start; margin-left: 0; }
  .src-links { padding-left: 50px; }
  .src-c-follow { justify-self: end; }
  .src-count { align-self: center; }
  .src-upd { align-self: center; font-size: .65rem; }
  .source-name-line.is-primary { font-size: .85rem; }
  .source-name-line { font-size: .75rem; }
  .source-profile { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .source-profile .profile-avatar .avatar { width: 44px; height: 44px; }
  .source-profile h1 { overflow-wrap: anywhere; }
}
/* An older activity date must keep its year, including on narrow screens. */
.src-upd { white-space: normal; overflow: visible; text-overflow: clip; max-width: none; line-height: 1.45; }

/* Keep the familiar identity visible; additional translations are optional. */
.src-c-name { position: relative; display: flex; align-items: center; min-height: 44px; }
.source-card.src-row .src-c-name h3 { flex: 1; min-width: 0; margin-left: 54px; }
.src-c-name a { display: block; }
.src-c-name .avatar { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
.source-alternatives { margin: 5px 0 0; font-weight: 400; }
.source-alternatives > summary { padding-block: 4px; min-height: 28px; cursor: pointer; color: var(--color-text-secondary); font-size: .73rem; line-height: 1.4; overflow-wrap: anywhere; }
.source-alternatives > summary:hover { color: var(--color-text-primary); }
.source-alternatives-content { padding: 5px 0 8px; }
.source-alternatives-content h4 { margin: 8px 0 5px; color: var(--color-text-secondary); font: 600 .73rem/1.4 var(--font-sans); }
.source-alternative-names, .source-alternative-types { display: flex; flex-direction: column; gap: 6px; }
.source-alternatives .source-name-line.is-primary { font-size: .76rem; font-weight: 400; }
.source-alternatives .source-translation-note { margin: 10px 0 0; font-size: .7rem; }
.profile-types { border: 0; margin-block: 8px; padding: 0; }
.source-profile > div > .source-alternatives { margin-block: 8px 12px; }
@media (min-width: 700px) and (max-width: 1250px) {
  .src-c-name { min-height: 40px; }
  .source-card.src-row .src-c-name h3 { margin-left: 50px; }
}
@media (max-width: 699px) {
  .src-c-name { min-height: 40px; }
  .source-card.src-row .src-c-name h3 { margin-left: 50px; }
  .src-country-mobile { margin-top: 5px; }
}

.source-biography p { white-space: pre-wrap; overflow-wrap: anywhere; }
.source-summary-original > summary { color: var(--color-text-secondary); font-size: .78rem; cursor: pointer; padding-block: 4px; }
.source-summary-original > p { color: var(--color-text-secondary); font-size: .86rem; }

/* Center headings and row contents even when names or links wrap. */
.src-head { align-items: center; padding-block: 6px; }
.src-head > * { padding-block: 4px; line-height: 20px; }
.src-head .src-sort { padding: 0; line-height: inherit; align-items: center; }
.src-head .src-sort > span { flex-shrink: 0; }
.src-row .source-names { gap: 2px; }
.src-row .source-name-line, .src-row .source-type-line,
.src-row .src-country, .src-row .src-link, .src-row .src-count, .src-row .src-upd { line-height: 20px; }
@media (min-width: 700px) {
  .src-head > :first-child { padding-left: 54px; }
  .src-head > :nth-child(5), .src-head > :nth-child(6) { text-align: right; }
}
@media (min-width: 700px) and (max-width: 1250px) {
  .src-head > :first-child { padding-left: 50px; }
}

/* Small, labelled platform marks keep directory links compact. */
.src-row .src-links { gap: 2px; align-items: center; }
.src-links .src-link-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 28px; padding: 0; border-radius: 6px; overflow: visible; }
.src-links .src-link-icon svg { width: 18px; height: 18px; }
.src-links .src-link-icon .external { display: none; }
.src-links .src-link-icon:hover { background: var(--color-surface-soft); text-decoration: none; }
.src-links .src-link-icon:focus-visible { outline: 2px solid var(--color-text-brand); outline-offset: 2px; }
@media (max-width: 699px) {
  .src-row .src-links { gap: 4px; }
  .src-links .src-link-icon { flex-basis: 32px; width: 32px; height: 32px; }
}

/* Desktop column dividers resize the adjacent pair, preserving the table width. */
.src-column-resize, .src-columns-reset { display: none; }
@media (min-width: 900px) {
  .source-card.src-row, .src-head { grid-template-columns: var(--directory-columns, minmax(180px, 3fr) minmax(70px, .55fr) 100px minmax(128px, .9fr) 65px 84px 94px); }
  .src-head > * { position: relative; }
  .src-head .src-column-resize { display: block; position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 10px; height: 30px; cursor: col-resize; touch-action: none; z-index: 1; }
  .src-column-resize::after { content: ''; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 2px; background: var(--color-border-strong); border-radius: 2px; }
  .src-column-resize:hover::after, .src-column-resize:focus-visible::after { background: var(--color-text-brand); }
  .src-column-resize:focus-visible { outline: 2px solid var(--color-text-brand); outline-offset: 1px; }
  .src-head.is-resizing, .src-head.is-resizing * { cursor: col-resize; user-select: none; }
  .src-columns-reset { display: inline-flex; padding: 4px 8px; border: 0; background: transparent; color: var(--color-text-secondary); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 900px) and (max-width: 1250px) {
  .source-card.src-row, .src-head { grid-template-columns: var(--directory-columns, minmax(180px, 2.6fr) minmax(65px, .55fr) 90px minmax(104px, .8fr) 60px 75px 44px); }
  .src-head .src-column-resize { right: -9px; }
}
