/* CCTSS · an editorial home for research and conversation */
:root {
  --ink: #252725;
  --muted: #73786d;
  --red: #9f292d;
  --red-dark: #7f1f23;
  --red-soft: #f7eeee;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #e1e3d9;
  --green: #56624b;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 5px;
  --shadow: 0 12px 38px rgb(37 39 37 / 5%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
body, input, button, textarea, select { font-family: var(--sans); }
::selection { background: #edd5d2; color: #642024; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--red); }
button, input, select, textarea { font-size: inherit; }
button, summary, input[type="submit"] { cursor: pointer; }
button { line-height: 1.5; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .6; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #ae5255; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--serif); }
h1 { font-size: clamp(32px, 3.7vw, 46px); }
h2 { font-size: 29px; }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
small { font-size: 12px; }
hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
ul, ol { padding-inline-start: 1.5em; }
.container { width: min(100% - 88px, 1176px); margin-inline: auto; }
.site-main { min-height: 57vh; }
.site-main > .container:not(.home):not(.error-page) { padding-block: 42px 64px; }
.site-main:focus { outline: none; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 20px; padding: 12px 18px; background: white; color: var(--red); border: 1px solid var(--red); border-radius: var(--radius); }
.skip-link:focus { top: 16px; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }

/* Masthead and navigation */
.site-header { background: white; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 91px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 23px; min-width: 0; }
.brand:hover { color: var(--ink); }
.wordmark { display: block; flex-shrink: 0; padding-inline-end: 23px; border-inline-end: 1px solid var(--line); color: var(--red); font: 700 30px/1 Georgia, serif; letter-spacing: -1.6px; }
.wordmark > span { display: block; margin-top: 9px; font: 11px/1.2 var(--sans); letter-spacing: 6.4px; padding-inline-start: 1px; }
.brand-name { display: block; min-width: 0; overflow-wrap: anywhere; font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: 1.15px; }
.brand-name small { display: block; margin-top: 9px; font: 8px/1.5 var(--sans); letter-spacing: 1.5px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.header-login { font-size: 13px; padding-block: 10px; }
.main-nav { position: sticky; z-index: 30; top: 0; background: rgb(255 255 255 / 97%); border-block: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-inner { display: flex; align-items: center; gap: 37px; min-height: 57px; }
.nav-inner > a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 57px; padding-block: 13px; color: #5f655c; font-size: 14px; white-space: nowrap; }
.nav-inner > a:hover, .nav-inner > a.is-active { color: var(--red); }
.nav-inner > a.is-active::after { content: ""; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: var(--red); }
.nav-inner .nav-ai { margin-inline-start: auto; }
.nav-ai > span { font-size: 22px; font-family: Georgia, serif; line-height: 1; }
.nav-toggle, .nav-inner > .nav-mobile-account { display: none; }
.nav-toggle { width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.nav-toggle > span { display: block; height: 1px; width: 21px; margin: 6px 0; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 10px; list-style: none; font-size: 13px; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-name { max-width: 120px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.chevron { font-size: 17px; color: var(--muted); }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 18px); z-index: 50; width: 234px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px #25272516; }
.account-caption { padding: 7px 10px; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.account-dropdown > a, .account-dropdown button { display: flex; justify-content: space-between; width: 100%; padding: 11px 10px; text-align: start; border: 0; border-radius: 3px; background: transparent; font-size: 13px; }
.account-dropdown > a:hover, .account-dropdown button:hover { background: var(--paper); color: var(--red); }
.account-dropdown form { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 8px; }
.demo-notice { color: #746b59; background: #f0eee5; font-size: 11px; }
.demo-notice > .container { display: flex; align-items: center; gap: 11px; padding-block: 9px; }
.demo-label { flex-shrink: 0; color: #786443; letter-spacing: .6px; font-size: 10px; border: 1px solid #d8cfbc; border-radius: 2px; padding: 0 6px; }
.member-notice { background: #edf0e7; color: #59664a; font-size: 12px; }
.member-notice > .container { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; }
.member-notice a { white-space: nowrap; text-decoration: underline; }

/* Shared typography and actions */
.eyebrow { margin: 0 0 16px; font: 500 10px/1.6 var(--sans); color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.button, button.button, input[type="submit"].button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 47px; padding: 12px 23px; border: 1px solid var(--red); border-radius: 3px; color: white; background: var(--red); font: 500 13px/1.6 var(--sans); letter-spacing: .25px; text-align: center; transition: background .18s, border-color .18s, box-shadow .18s; }
.button:hover { color: white; background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 4px 10px #9f292d16; }
.button.secondary, .button.outline, .button.button-secondary { background: transparent; color: var(--ink); border-color: #c8ccbf; }
.button.secondary:hover, .button.outline:hover, .button.button-secondary:hover { background: white; color: var(--red); border-color: #b28784; }
.button.tertiary { color: var(--red); background: var(--red-soft); border-color: transparent; }
.button.danger { color: #97312f; background: #fcf0ee; border-color: #e6c5c0; }
.button.button-small { min-height: 41px; padding: 9px 16px; font-size: 12px; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 17px; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.7; }
.text-link:hover { color: var(--red); }
.text-link > span { font-size: 17px; }
.muted, .text-muted, .help-text { color: var(--muted); }
.text-red { color: var(--red); }
.actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-header .eyebrow { margin-bottom: 13px; }
.section-note { font-size: 12px; color: #8b9084; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 32px; padding-bottom: 29px; border-bottom: 1px solid var(--line); }
.page-header .eyebrow { margin-bottom: 11px; }
.page-header h1 { margin-bottom: 12px; }
.page-header p:not(.eyebrow) { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.page-header > .button { flex-shrink: 0; margin-bottom: 6px; }
.page-header > .actions { flex-shrink: 0; }
.breadcrumb, .breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; color: var(--muted); font-size: 12px; }
.page-intro { max-width: 760px; font-size: 15px; color: var(--muted); }

/* Homepage */
.hero { display: grid; grid-template-columns: 1.21fr 1fr; gap: 50px; align-items: center; padding: 65px 0 63px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { margin-bottom: 23px; }
.hero h1 { margin-bottom: 26px; font: 500 clamp(43px, 4.8vw, 62px)/1.27 var(--serif); letter-spacing: 1.8px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-lead { margin-bottom: 32px; color: #73796d; font-size: 15px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 27px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 36px; color: #868b7f; font-size: 10px; letter-spacing: .3px; }
.hero-note > span { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--red); }
.hero-art { position: relative; height: 372px; border-inline-start: 1px solid var(--line); isolation: isolate; }
.art-kicker { position: absolute; right: 0; top: 3px; font-size: 10px; color: #8b9383; letter-spacing: 4px; }
.culture-orbits { position: absolute; width: 100%; height: 100%; inset: 0; }
.culture-character { position: absolute; top: 45%; left: 52%; transform: translate(-50%,-50%); color: var(--red); font: 400 132px/1 var(--serif); }
.culture-character small { display: block; margin-top: 16px; color: #626d57; text-align: center; font: 8px/1.7 Georgia, serif; letter-spacing: 2px; }
.art-caption { position: absolute; display: flex; justify-content: space-between; bottom: 0; left: 32px; right: 0; font: 10px/1.8 Georgia, serif; color: #777e6e; }
.art-caption > span:last-child { font-family: var(--sans); letter-spacing: 2px; }
.explore-section { padding-top: 45px; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow-wrap: anywhere; }
a.card { display: block; transition: border-color .2s, transform .2s, box-shadow .2s; }
a.card:hover { color: var(--ink); border-color: #cba3a0; box-shadow: var(--shadow); transform: translateY(-3px); }
.card h2 { font-size: 25px; }
.card h3 { margin-bottom: 13px; }
.card p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.card .eyebrow { font-size: 9px; }
.card > .meta { margin-top: 20px; }
.card > .tag { margin-bottom: 15px; }
.explore-card { padding: 27px 28px 23px; }
.explore-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 29px; }
.glyph { color: var(--red); font: 31px/1 var(--serif); }
.arrow { color: #8a9280; font-size: 22px; }
.explore-card .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: 1.5px; }
.explore-card h3 { margin-bottom: 15px; font-size: 25px; }
.explore-card > p:last-of-type { min-height: 48px; font-size: 13px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 17px; margin-top: 23px; border-top: 1px solid #eceee6; font-size: 11px; color: #757c6b; }
.card-foot span { font-size: 17px; color: var(--red); }
.home-conversations { display: grid; grid-template-columns: minmax(0,1.72fr) minmax(0,1fr); gap: 48px; padding-block: 57px; margin-top: 1px; border-bottom: 1px solid var(--line); }
.home-feed .section-header { min-height: 77px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-row { padding-block: 25px; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; padding-bottom: 0; }
.topic-row-top { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.topic-row-top time { margin-inline-start: auto; color: #93998b; font-size: 11px; font-variant-numeric: tabular-nums; }
.topic-row h3 { margin-bottom: 11px; font-size: 24px; line-height: 1.5; }
.topic-row > p { color: var(--muted); font-size: 13px; line-height: 1.9; }
.topic-row-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; }
.author { display: inline-flex; align-items: center; gap: 9px; color: #717a64; font-size: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 45px; height: 45px; border-radius: 50%; color: #7a423e; background: #f0eae3; font: 21px/1 var(--serif); object-fit: cover; }
.avatar-small { width: 33px; height: 33px; font-size: 17px; }
.avatar-tiny { width: 26px; height: 26px; font-size: 14px; }
.avatar-large { width: 62px; height: 62px; font-size: 28px; }
.topic-read { font-size: 11px; white-space: nowrap; color: var(--muted); }
.topic-read span { margin-inline-start: 9px; }
.home-events { align-self: start; padding: 29px 28px 26px; margin-top: 6px; border: 1px solid #e2e4d8; border-radius: var(--radius); background: #eff1e9; }
.event-heading { padding-bottom: 20px; border-bottom: 1px solid #d9ddcf; }
.event-heading .eyebrow { font-size: 9px; margin-bottom: 14px; }
.event-heading h2 { margin-bottom: 14px; font-size: 30px; }
.event-heading p:last-child { color: #7b826f; font-size: 13px; line-height: 1.9; }
.event-row { display: flex; align-items: center; gap: 17px; padding-block: 23px; border-bottom: 1px solid #dce0d2; }
.event-row:last-child { border-bottom: 0; }
.event-date { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 47px; color: #636f54; }
.event-date strong { font: 31px/1.1 Georgia, var(--serif); }
.event-date small { margin-top: 6px; font: 9px/1.4 var(--sans); letter-spacing: .5px; }
.event-description { flex-grow: 1; min-width: 0; }
.event-description strong { display: block; font-size: 13px; line-height: 1.8; font-weight: 500; }
.event-description > span:last-child:not(.demo-tag) { font-size: 10px; color: #828b76; }
.event-description > .demo-tag { margin-bottom: 5px; }
.event-row > span:last-child { color: #7f8b71; }
.event-all { display: flex; justify-content: space-between; margin-top: 11px; font-size: 12px; }
.event-empty { padding: 30px 0; text-align: center; color: #818b73; }
.event-empty > span { display: block; font: 34px Georgia,serif; margin-bottom: 11px; }
.event-empty > p { font-size: 12px; }
.home-scholars { padding-block: 45px 49px; }
.scholar-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 19px; }
.scholar-card { padding: 24px 22px 18px; }
.scholar-card-top { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin-bottom: 22px; }
.scholar-card h3 { margin-bottom: 4px; font-size: 23px; }
.scholar-card .scholar-name-latin { color: #949989; font: 11px/1.7 Georgia, serif; margin-bottom: 11px; }
.scholar-card .scholar-institution { margin-bottom: 13px; font-size: 12px; }
.scholar-card .scholar-fields { min-height: 41px; color: #8b9181; font-size: 11px; }
.scholar-card-bottom { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 14px; border-top: 1px solid #eceee6; font-size: 11px; color: #8b9380; }
.scholar-card:nth-child(4n+2) .avatar { background: #eaeee5; color: #6f7d59; }
.scholar-card:nth-child(4n+3) .avatar { background: #ecebe6; color: #746e60; }
.scholar-card:nth-child(4n) .avatar { background: #f3e7e4; color: #98584f; }
.community-strip { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 35px; padding: 34px 38px; border: 1px solid #e7e5db; background: #f0eee7; border-radius: var(--radius); }
.community-strip-copy .eyebrow { font-size: 9px; margin-bottom: 12px; }
.community-strip-copy h2 { font-size: 26px; line-height: 1.55; }
.community-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
.community-stats > div { display: flex; flex-direction: column-reverse; gap: 11px; padding-inline-start: 26px; border-inline-start: 1px solid #dcded1; }
.community-stats dt { font-size: 11px; color: #7f8477; }
.community-stats dd { margin: 0; color: var(--red); font: 37px/1.3 Georgia, serif; }
.community-stats dd small { color: #8d9383; font: 11px var(--sans); margin-inline-start: 11px; }
.join-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 45px 49px; }
.join-strip .eyebrow { margin-bottom: 12px; }
.join-strip h2 { margin-bottom: 11px; font-size: 28px; }
.join-strip p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.join-strip > .button { flex-shrink: 0; }

/* Reusable list, detail and form surfaces */
.panel { padding: 30px 32px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; min-width: 0; }
.panel h2, .panel h3 { margin-bottom: 20px; }
.panel > .eyebrow + h2 { margin-top: -4px; }
.panel-header, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-heading h2 { margin: 0; font-size: 24px; }
.panel-body { min-width: 0; }
.panel-footer { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.split-layout { display: grid; grid-template-columns: minmax(0,1fr) 292px; gap: 28px; align-items: start; }
.split-layout > * { min-width: 0; }
.sidebar .panel { padding: 24px; }
.sidebar h2, .sidebar h3 { font-size: 21px; }
.sidebar p, .sidebar li { font-size: 13px; color: var(--muted); }
.sidebar nav { display: flex; flex-direction: column; }
.sidebar nav a { padding: 11px 13px; font-size: 13px; border-radius: 3px; }
.sidebar nav a.is-active, .sidebar nav a[aria-current] { background: var(--red-soft); color: var(--red); }
.sidebar .button { width: 100%; }
.sidebar dl, dl.metadata { margin: 0; }
.sidebar dt, dl.metadata dt { color: #8a917e; font-size: 11px; margin-top: 17px; }
.sidebar dd, dl.metadata dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; padding: 20px; background: #f0f1ea; border: 1px solid #e3e6da; border-radius: var(--radius); }
.filters .field { flex: 1 1 170px; margin: 0; }
.filters input[type="search"], .filters input[type="text"] { flex: 1 1 220px; min-width: 150px; }
.filters select { width: auto; min-width: 140px; flex: 1 1 140px; }
.filters > .button { flex-shrink: 0; min-height: 45px; }
.filters label { font-size: 12px; }
.filters .field input, .filters .field select { width: 100%; }
.filter-tabs, .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.filter-tabs a, .tabs a { display: inline-block; padding: 8px 15px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; background: white; }
.filter-tabs a.is-active, .tabs a.is-active, .tabs a[aria-current] { color: var(--red); border-color: #dec1bd; background: #f7eded; }
.meta { display: flex; align-items: center; gap: 10px 17px; flex-wrap: wrap; color: #858d79; font-size: 12px; }
.meta time { font-variant-numeric: tabular-nums; }
.tag, .badge, .status { display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%; padding: 3px 9px; border-radius: 3px; background: #f0f2ea; color: #707d60; font-size: 10px; line-height: 1.6; font-weight: 400; }
.tag.red, .badge.red, .status.pending { color: #9f514f; background: #f7eded; }
.status.approved, .status.published, .badge.success { color: #536e49; background: #eef4e9; }
.demo-tag { display: inline-flex; width: fit-content; max-width: 100%; color: #9b8a66; border: 1px solid #e1d9c6; padding: 1px 5px; border-radius: 2px; font-size: 9px; line-height: 1.6; font-family: var(--sans); font-weight: 400; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 12px; }
.empty-state { grid-column: 1/-1; padding: 48px 30px; border: 1px dashed #d7dccb; border-radius: var(--radius); text-align: center; background: #fdfdfb; }
.empty-state h2, .empty-state h3 { margin-bottom: 13px; font-size: 25px; }
.empty-state p { max-width: 560px; margin: 0 auto 22px; font-size: 13px; color: #858e77; }
.empty-glyph { display: block; margin-bottom: 20px; color: #aca58c; font: 45px/1 var(--serif); }
.empty-state .button { margin-top: 3px; }
.prose, .article-body, .content-body { color: #4b5245; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.prose h2, .article-body h2, .content-body h2 { margin: 1.65em 0 .7em; font-size: 28px; }
.prose h3, .article-body h3 { margin: 1.5em 0 .6em; font-size: 23px; }
.prose p, .article-body p { margin-bottom: 1.25em; }
.prose a, .article-body a, .content-body a { color: var(--red); text-decoration: underline; }
.prose ul, .prose ol, .article-body ul, .article-body ol { margin-block: 1em 1.5em; }
.prose li + li { margin-top: .35em; }
.prose blockquote, blockquote { margin: 25px 0; padding: 16px 22px; border-inline-start: 3px solid #b0b59f; background: #f2f3ec; color: #6b755c; }
.prose pre, pre { padding: 20px; overflow-x: auto; background: #f2f3ee; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; line-height: 1.7; }
code { padding: 2px 4px; border-radius: 2px; background: #f0f1ea; font-size: .88em; }
pre code { padding: 0; background: none; }
.article-title { font-size: clamp(29px,3.4vw,42px); line-height: 1.5; }
.article-header { margin-bottom: 31px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin-bottom: 20px; }
.article-header > .meta { margin-top: 17px; }
.detail-meta { margin-block: 20px 25px; }
.reading-width, .narrow { max-width: 820px; margin-inline: auto; }
.form-container { max-width: 800px; margin-inline: auto; }
.auth-container, .auth-card { max-width: 520px; margin-inline: auto; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; max-width: 1060px; margin-inline: auto; padding-block: 36px; }
.auth-story h1 { font-size: 44px; margin-bottom: 25px; }
.auth-story h1 em { color: var(--red); font-style: normal; }
.auth-story p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.auth-layout .panel { width: 100%; }
form { min-width: 0; }
.field, form > p { margin-bottom: 20px; }
label { display: block; margin-bottom: 7px; color: #535d49; font-size: 13px; font-weight: 500; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]), textarea, select { display: block; width: 100%; min-height: 45px; padding: 11px 13px; border: 1px solid #d8ddcf; border-radius: 3px; background: white; color: var(--ink); font: 14px/1.6 var(--sans); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a0a795; }
input:focus, textarea:focus, select:focus { border-color: #af7370; box-shadow: 0 0 0 3px #9f292d0c; }
textarea { resize: vertical; min-height: 150px; }
textarea[name="body"], textarea[name="content"] { min-height: 260px; line-height: 1.9; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 2px 7px 2px 0; vertical-align: middle; accent-color: var(--red); }
input[type="file"] { padding: 9px !important; background: #fcfcf9 !important; }
input[type="file"]::file-selector-button { padding: 6px 10px; margin-inline-end: 12px; border: 1px solid #d7dccd; border-radius: 2px; background: #eef0e6; color: #657151; font-size: 12px; cursor: pointer; }
select { padding-inline-end: 28px; }
select[multiple] { min-height: 120px; }
.helptext, .help-text, form > p > small { display: block; margin-top: 7px; color: #87907b; font-size: 11px; line-height: 1.8; }
.helptext ul { padding-inline-start: 18px; margin: 7px 0 0; }
.helptext a { text-decoration: underline; }
.errorlist { margin: 0 0 8px; padding: 10px 14px; list-style: none; color: #9c3937; background: #fcf0ed; border-radius: 3px; font-size: 12px; }
.errorlist.nonfield { margin-bottom: 22px; padding: 14px 17px; border: 1px solid #e6c5bd; }
[aria-invalid="true"] { border-color: #b86058 !important; }
.field-grid, .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field.full, .full-width { grid-column: 1/-1; }
fieldset { margin: 0 0 28px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); }
legend { padding-inline: 8px; color: var(--green); font-size: 14px; }
.form-actions { margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.date-entry-fields.with-time { display: grid; grid-template-columns: minmax(0,2fr) minmax(130px,1fr); gap: 18px; }
.date-entry-row { display: flex; align-items: stretch; gap: 9px; }
.date-entry-row input { min-width: 0; flex: 1; }
.date-entry-row .date-picker-trigger { flex-shrink: 0; padding-inline: 14px; }
.date-entry .date-part-label { font-size: 12px; color: var(--muted); margin-block: 0 6px; }
.date-entry small { display: block; margin-top: 7px; }
.date-picker-popup { width: min(100%, 360px); margin-block: 14px 6px; padding: 14px; border: 1px solid #c9cdbf; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.date-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.date-picker-heading { margin: 0; font-weight: 600; font-size: 14px; text-align: center; }
.date-nav { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--paper); font-size: 20px; }
.date-picker-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; margin: 0; }
.date-picker-grid th, .date-picker-grid td { padding: 0; border: 0; text-align: center; }
.date-picker-grid th { color: var(--muted); background: transparent; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; padding-bottom: 7px; }
.date-day { width: 100%; min-height: 36px; padding: 4px 0; border: 1px solid transparent; border-radius: 3px; background: white; color: var(--ink); font-size: 12px; }
.date-day:hover { background: var(--paper); }
.date-day.outside-month { color: #a6ac9e; }
.date-day[aria-current="date"] { border-color: #b9c0ad; }
.date-day[aria-pressed="true"] { color: white; background: var(--red); border-color: var(--red); }
.date-picker-footer { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; margin-top: 10px; border-top: 1px solid var(--line); }
.date-picker-footer .button { flex: 1; min-width: 65px; font-size: 11px; padding: 8px; }
.localized-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.localized-file .file-name { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; min-width: 0; }
.localized-file input[type="file"][hidden] { display: none !important; }
.form-error-summary a { text-decoration: underline; }
@media (max-width: 560px) {
  .date-entry-fields.with-time { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .date-picker-popup { padding: 10px; }
  .date-entry-row .date-picker-trigger { max-width: 125px; font-size: 11px; padding-inline: 9px; }
}
.checkbox-field, .checkbox-row { display: flex; align-items: start; gap: 8px; }
.checkbox-field label, .checkbox-row label { margin: 0; }
.messages { padding-top: 20px; }
.message { padding: 13px 18px; margin-bottom: 13px; border: 1px solid #dce2d2; border-inline-start: 3px solid #8b9a73; border-radius: 3px; background: #f0f4e9; color: #58694a; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.message.error, .message.danger, .alert-error { color: #963f37; border-color: #e7cac2; border-inline-start-color: #ab5b52; background: #fcf0ec; }
.message.warning, .alert-warning { color: #8c6b33; border-color: #e9dcbf; border-inline-start-color: #b3965f; background: #fbf6e9; }
.message.success, .alert-success { color: #526e43; border-color: #d9e3ce; border-inline-start-color: #89a374; background: #f1f6ec; }
.message.info { color: #536b73; border-color: #d5e2e5; border-inline-start-color: #839da5; background: #f0f5f5; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 32px; font-size: 12px; }
.pagination a, .pagination > span { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; min-width: 39px; padding: 7px 12px; border: 1px solid var(--line); background: white; border-radius: 3px; }
.pagination .current, .pagination [aria-current] { background: var(--red); color: white; border-color: var(--red); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table, .table { width: 100%; border-collapse: collapse; text-align: start; font-size: 13px; background: white; }
th, td { padding: 14px 17px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: #626e54; background: #f0f2e9; font-size: 12px; font-weight: 500; }
tr:last-child td { border-bottom: 0; }
caption { text-align: start; padding: 14px; color: var(--muted); }
.comment { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.comment-header time { font-size: 11px; color: #8c9481; }
.comment-body { color: #626b58; font-size: 14px; line-height: 1.95; overflow-wrap: anywhere; }
.comment .meta { margin-bottom: 12px; }
.comment-form { margin-top: 25px; }
.comment-form textarea { min-height: 130px; }
.profile-header { display: flex; align-items: center; gap: 25px; margin-bottom: 27px; padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: #eff1e8; }
.profile-header > .avatar { width: 85px; height: 85px; font-size: 39px; }
.profile-header h1 { margin-bottom: 9px; }
.profile-header p { color: var(--muted); font-size: 13px; }
.profile-header > .button { margin-inline-start: auto; flex-shrink: 0; }
.profile-id { color: #8d947f; font-family: ui-monospace, monospace; font-size: 11px; }
.resource-list, .list-stack { display: grid; gap: 16px; }
.resource-card, .list-card { padding: 25px 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.resource-card h3, .list-card h3 { margin: 10px 0; }
.resource-card p, .list-card p { font-size: 13px; color: var(--muted); }
.inline-form { display: inline; }
.inline-form button { vertical-align: middle; }
.conversation-history { display: grid; gap: 16px; margin-bottom: 24px; }
.chat-message { padding: 21px 24px; background: #f2f4ed; border: 1px solid #e0e5d6; border-radius: var(--radius); font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.chat-message.user { margin-inline-start: 36px; background: #f9efed; border-color: #eedbd5; }
.chat-message.assistant { margin-inline-end: 36px; }
.chat-message .role { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
details.disclosure { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
details.disclosure > summary { color: #647157; font-size: 13px; }
details.disclosure[open] > summary { margin-bottom: 15px; }

/* Footer and error pages */
.site-footer { border-top: 1px solid var(--line); background: #eff1e9; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: start; padding-block: 37px 31px; }
.footer-wordmark { color: var(--red); font: 700 25px/1.2 Georgia,serif; letter-spacing: -1px; }
.footer-wordmark > span { margin-inline-start: 12px; font: 9px/1 var(--sans); letter-spacing: 3px; }
.footer-main > div:first-child > p { margin-top: 13px; color: #7c856f; font-size: 11px; }
.footer-statement { color: #667256; font: 18px/1.6 var(--serif); }
.footer-statement span { display: block; margin-top: 10px; font: 10px/1.9 var(--sans); color: #8d9681; }
.footer-links { display: grid; gap: 9px; min-width: 150px; font-size: 11px; color: #727f62; }
.footer-links > a { display: flex; justify-content: space-between; gap: 25px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 17px 20px; border-top: 1px solid #dfe3d4; color: #8f9782; font-size: 9px; letter-spacing: .3px; }
.error-page { min-height: 65vh; padding-block: 72px 88px; text-align: center; }
.error-code { color: #d6c5be; font: 90px/1 Georgia,serif; margin-bottom: 24px; letter-spacing: 5px; }
.error-page h1 { margin-bottom: 21px; font-size: clamp(27px,3.7vw,39px); }
.error-page > p:not(.eyebrow):not(.error-code) { max-width: 620px; margin: 0 auto 29px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.error-page > .actions { justify-content: center; }

@media (min-width: 1440px) { .hero { padding-block: 79px; } }
@media (max-width: 1120px) {
  .container { width: calc(100% - 64px); }
  .nav-inner { gap: 28px; }
  .brand-name { font-size: 17px; }
  .brand-name small { font-size: 7px; letter-spacing: 1.2px; }
  .hero { gap: 26px; }
  .hero h1 { font-size: 51px; }
  .hero-art { height: 350px; }
  .culture-character { font-size: 116px; }
  .home-conversations { gap: 30px; }
  .scholar-grid { gap: 15px; }
  .scholar-card { padding: 21px 18px 17px; }
  .scholar-card-top { flex-wrap: wrap; }
  .community-strip { padding: 30px; }
}
@media (max-width: 960px) {
  .nav-inner { gap: 25px; }
  .nav-inner > a { font-size: 12px; }
  .brand { gap: 17px; }
  .wordmark { padding-inline-end: 17px; font-size: 27px; }
  .brand-name { font-size: 16px; letter-spacing: .6px; }
  .header-actions { gap: 17px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 13px; }
  .hero-art { height: 320px; }
  .culture-character { font-size: 109px; }
  .art-caption { left: 20px; font-size: 8px; }
  .card-grid { gap: 16px; }
  .explore-card { padding: 24px 21px 20px; }
  .explore-card h3 { font-size: 23px; }
  .home-conversations { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 25px; }
  .home-events { padding: 24px 21px; }
  .event-row { gap: 12px; }
  .scholar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scholar-card-top { flex-wrap: nowrap; }
  .scholar-card .scholar-fields { min-height: 0; }
  .split-layout { grid-template-columns: minmax(0,1fr) 245px; gap: 22px; }
  .panel { padding: 26px; }
  .sidebar .panel { padding: 20px; }
  .auth-layout { gap: 35px; }
  .auth-story h1 { font-size: 36px; }
  .community-strip { grid-template-columns: 1fr 1.4fr; gap: 25px; }
  .community-stats > div { padding-inline-start: 18px; }
  .community-stats dd { font-size: 32px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 22px; }
  body { font-size: 14px; }
  .container { width: calc(100% - 40px); }
  .masthead { min-height: 78px; gap: 10px; }
  .brand { gap: 12px; }
  .wordmark { font-size: 23px; padding-inline-end: 12px; letter-spacing: -1px; }
  .wordmark > span { margin-top: 7px; font-size: 9px; letter-spacing: 4px; }
  .brand-name { max-width: 190px; font-size: 13px; letter-spacing: .3px; }
  .brand-name small { display: none; }
  .header-actions { gap: 13px; }
  .header-join, .account-name, .chevron { display: none !important; }
  .header-login { font-size: 12px; }
  .avatar-small { width: 29px; height: 29px; font-size: 15px; }
  .js .nav-toggle { display: block; }
  .main-nav { position: relative; }
  .nav-inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; gap: 0 25px; padding-block: 7px 11px; }
  .nav-inner > a { min-height: 45px; padding-block: 10px; font-size: 13px; }
  .nav-inner > a.is-active::after { display: none; }
  .nav-inner > a.is-active { color: var(--red); }
  .nav-inner .nav-ai { margin-inline-start: 0; }
  .nav-inner > .nav-mobile-account { display: inline-flex; }
  .js .main-nav:not(.is-open) .nav-inner { display: none; }
  .account-dropdown { right: -48px; }
  .demo-notice { font-size: 10px; }
  .demo-notice > .container { gap: 8px; padding-block: 8px; }
  .demo-label { font-size: 9px; }
  .member-notice > .container { display: block; }
  .member-notice a { display: inline-block; margin-top: 7px; }
  .hero { display: block; padding: 38px 0 32px; }
  .hero .eyebrow { font-size: 9px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(38px,7vw,51px); letter-spacing: 1px; margin-bottom: 22px; }
  .hero-lead { font-size: 13px; margin-bottom: 26px; }
  .hero-actions { gap: 23px; }
  .hero-actions .button { padding-inline: 18px; }
  .hero-actions .text-link { font-size: 12px; gap: 13px; }
  .hero-note { margin-top: 28px; font-size: 9px; }
  .hero-art { max-width: 470px; height: 260px; margin: 30px auto 0; padding-top: 15px; border-inline-start: 0; border-top: 1px solid var(--line); }
  .art-kicker { top: 14px; font-size: 8px; letter-spacing: 2.5px; }
  .culture-orbits { width: 310px; left: 50%; transform: translateX(-50%); }
  .culture-character { top: 47%; left: 51.8%; font-size: 91px; }
  .culture-character small { margin-top: 11px; font-size: 6px; letter-spacing: 1.8px; }
  .art-caption { bottom: 7px; left: 0; right: 0; font-size: 8px; }
  .explore-section { padding-top: 31px; }
  .section-header { align-items: start; gap: 20px; margin-bottom: 22px; }
  .section-header h2 { font-size: 25px; }
  .section-header .eyebrow { font-size: 9px; letter-spacing: 1.7px; margin-bottom: 11px; }
  .section-header > .text-link { margin-top: 33px; font-size: 11px; gap: 8px; white-space: nowrap; }
  .section-note { display: none; }
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 23px; }
  .explore-card { position: relative; padding: 23px 22px; }
  .explore-card-top { position: absolute; top: 24px; right: 23px; margin: 0; }
  .explore-card-top .arrow { display: none; }
  .explore-card .eyebrow { margin-bottom: 9px; font-size: 8px; letter-spacing: 1.3px; padding-inline-end: 35px; }
  .explore-card h3 { font-size: 25px; margin-bottom: 11px; }
  .explore-card > p:last-of-type { min-height: 0; margin-bottom: 0; max-width: 95%; }
  .card-foot { margin-top: 17px; padding-top: 12px; }
  .home-conversations { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }
  .home-feed .section-header { min-height: 0; }
  .topic-row { padding-block: 21px; }
  .topic-row h3 { font-size: 23px; }
  .topic-row > p { font-size: 12px; }
  .home-events { padding: 25px; margin-top: 0; }
  .event-heading h2 { font-size: 28px; }
  .event-heading p:last-child br { display: none; }
  .event-row { gap: 22px; padding-block: 20px; }
  .home-scholars { padding-block: 33px; }
  .scholar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .scholar-card { padding: 19px 17px 15px; }
  .scholar-card-top { display: block; margin-bottom: 13px; }
  .scholar-card-top .demo-tag { display: block; margin-top: 10px; }
  .avatar-large { width: 49px; height: 49px; font-size: 25px; }
  .scholar-card h3 { font-size: 21px; }
  .scholar-card .scholar-name-latin { font-size: 10px; }
  .scholar-card .scholar-institution { font-size: 11px; }
  .scholar-card .scholar-fields { min-height: 40px; font-size: 10px; }
  .scholar-card-bottom { margin-top: 16px; font-size: 10px; }
  .community-strip { display: block; padding: 27px 23px; }
  .community-strip-copy h2 { font-size: 25px; }
  .community-strip-copy h2 br { display: none; }
  .community-stats { margin-top: 28px; }
  .community-stats > div { padding-inline-start: 19px; gap: 7px; }
  .community-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
  .community-stats dd { font-size: 32px; }
  .community-stats dd small { margin-inline-start: 6px; font-size: 9px; }
  .community-stats dt { font-size: 10px; }
  .join-strip { display: block; padding-block: 33px; }
  .join-strip h2 { font-size: 26px; }
  .join-strip p:not(.eyebrow) { font-size: 12px; }
  .join-strip > .button { margin-top: 23px; }
  .site-main > .container:not(.home):not(.error-page) { padding-block: 29px 44px; }
  .page-header { align-items: start; flex-direction: column; gap: 21px; margin-bottom: 25px; padding-bottom: 24px; }
  .page-header h1 { font-size: 32px; }
  .page-header p:not(.eyebrow) { font-size: 13px; }
  .page-header > .button { margin-bottom: 0; }
  .page-header .eyebrow { font-size: 9px; }
  .split-layout { grid-template-columns: 1fr; gap: 0; }
  .panel, .sidebar .panel { padding: 23px; }
  .panel h2 { font-size: 24px; }
  .filters { padding: 16px; gap: 10px; }
  .filters .field { flex-basis: 140px; }
  .filters input[type="search"], .filters input[type="text"] { flex-basis: 100%; }
  .filters select { min-width: 110px; }
  .filter-tabs, .tabs { gap: 6px; }
  .filter-tabs a, .tabs a { font-size: 11px; padding: 7px 12px; }
  .empty-state { padding: 37px 23px; }
  .empty-state h2, .empty-state h3 { font-size: 23px; }
  .empty-state p { font-size: 12px; }
  .auth-layout { display: block; padding-top: 8px; }
  .auth-story { padding-bottom: 24px; }
  .auth-story h1 { font-size: 34px; }
  .auth-story p { font-size: 13px; }
  .field-grid, .form-grid { grid-template-columns: 1fr; }
  .prose, .article-body, .content-body { font-size: 15px; }
  .prose h2, .article-body h2 { font-size: 25px; }
  .prose h3, .article-body h3 { font-size: 22px; }
  .article-title { font-size: 29px; }
  .profile-header { flex-wrap: wrap; gap: 19px; padding: 24px; }
  .profile-header h1 { font-size: 30px; }
  .profile-header > .avatar { width: 63px; height: 63px; font-size: 30px; }
  .profile-header > .button { margin-inline-start: 0; }
  .chat-message { padding: 18px; }
  .chat-message.user { margin-inline-start: 20px; }
  .chat-message.assistant { margin-inline-end: 20px; }
  th, td { padding: 11px 12px; font-size: 12px; }
  .footer-main { grid-template-columns: 1fr auto; gap: 27px 20px; padding-block: 30px 25px; }
  .footer-statement { grid-column: 1; font-size: 17px; }
  .footer-links { grid-column: 2; grid-row: 1 / span 2; min-width: 120px; gap: 14px; font-size: 10px; }
  .footer-wordmark { font-size: 25px; }
  .footer-wordmark > span { display: block; margin: 9px 0 0; font-size: 9px; }
  .footer-bottom { display: block; font-size: 8px; line-height: 1.9; }
  .footer-bottom > span { display: block; }
  .footer-bottom > span + span { margin-top: 5px; }
  .error-page { padding-block: 54px 65px; }
  .error-code { font-size: 75px; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  .brand-name { max-width: 126px; font-size: 12px; }
  .brand { gap: 9px; }
  .wordmark { padding-inline-end: 10px; font-size: 21px; }
  .header-actions { gap: 6px; }
  .nav-toggle { width: 35px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 12px; }
  .hero-actions { gap: 17px; }
  .hero-actions .button { padding-inline: 14px; gap: 12px; }
  .hero-actions .text-link { gap: 9px; font-size: 11px; }
  .scholar-card { padding-inline: 14px; }
  .community-strip { padding-inline: 20px; }
  .community-stats > div { padding-inline-start: 13px; }
  .community-stats dt { font-size: 9px; }
  .footer-links { min-width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .main-nav, .site-footer, .demo-notice, .member-notice, .messages, .sidebar, .form-actions, .nav-toggle { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .container { width: 100%; }
  .site-main { min-height: 0; }
  .split-layout { display: block; }
  .panel { border: 0; padding: 0; }
  .prose a { color: black; }
}

/* International interfaces: native language names, long labels and RTL. */
.language-switch { display: flex; align-items: center; gap: 6px; }
.demo-switch { position: relative; margin-inline-start: auto; flex-shrink: 0; }
.demo-switch > summary { color: #87724e; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.demo-switch > form { position: absolute; z-index: 45; inset-inline-end: 0; top: calc(100% + 13px); width: 270px; padding: 19px; border: 1px solid #ded7c8; border-radius: 4px; background: #fffcf5; box-shadow: 0 13px 30px #36322417; }
.demo-switch > form > .button { margin-top: 12px; width: 100%; }
.language-switch #site-language { width: auto; max-width: 116px; min-width: 76px; min-height: 36px; border-color: transparent; background: transparent; color: #6f7864; padding: 7px 21px 7px 7px; font-size: 11px; }
.language-submit { border: 1px solid var(--line); border-radius: 2px; padding: 5px 8px; background: white; color: var(--muted); font-size: 11px; }
.js .language-submit { display: none; }
.nav-inner { flex-wrap: wrap; column-gap: clamp(15px, 2.2vw, 30px); row-gap: 0; }
.nav-inner > a { white-space: normal; }
.nav-inner > .nav-publish { color: var(--red); font-weight: 500; }
.nav-publish > span { font-size: 17px; }
.event-description > time { display: block; font-size: 10px; line-height: 1.8; color: #78816d; }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; background: #eee9e0; color: #8c4c42; font: 29px/1 var(--serif); }
.page-header:has(> h1) { display: block; }
.page-header:has(> h1) > .button, .page-header:has(> h1) > .actions { margin-top: 20px; }
.filters > label { flex: 1 1 170px; margin-bottom: 0; }
.filters > label > input, .filters > label > select { margin-top: 8px; width: 100%; }
.notice { padding: 14px 18px; margin-bottom: 20px; border: 1px solid #e3d9bd; border-radius: 3px; color: #8b744a; background: #fbf7ed; font-size: 13px; }
.panel details > summary { color: #6c785e; font-size: 13px; }
.panel details[open] > summary { margin-bottom: 20px; }
.panel details.optional-section > summary { color: var(--ink); font: 500 22px/1.45 var(--serif); }
.profile-form p > small { display: block; margin-top: 7px; color: #87907b; font-size: 11px; }
.card.scholar-card > .avatar { margin-bottom: 17px; }
.card.scholar-card > h2 { margin-block: 9px 12px; }
.card.scholar-card > .text-link { margin-top: 16px; font-size: 12px; }
.affiliation-form { padding: 20px 22px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcf8; }
.affiliation-form h3 { font-size: 20px; margin-bottom: 20px; }
.checkbox-options, .checkbox-grid, [id$="research_fields"], [id$="languages"] { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 9px 16px; }
div[id$="research_topics"] { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 9px 16px; }
div[id$="research_topics"] label { display: flex; align-items: start; gap: 5px; margin: 0; font-size: 12px; line-height: 1.8; }
.checkbox-options label, .checkbox-grid label, [id$="research_fields"] label, [id$="languages"] label { display: flex; align-items: start; gap: 5px; margin: 0; font-size: 12px; line-height: 1.8; }
.checkbox-options input, .checkbox-grid input { flex-shrink: 0; margin-top: 4px; }
.searchable-options { display: block; border: 1px solid #dce1d2; border-radius: 4px; background: #fcfdf9; overflow: hidden; }
.searchable-options .chip-search, .searchable-options input[type="search"] { margin: 12px; width: calc(100% - 24px); min-height: 40px; padding: 9px 12px; background: white; font-size: 12px; }
.searchable-options .option-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); align-content: start; gap: 0; max-height: 265px; overflow-y: auto; overscroll-behavior: contain; padding: 5px 12px 13px; border-top: 1px solid #edf0e5; scrollbar-color: #bac3aa #f5f7f0; scrollbar-width: thin; }
.searchable-options .option-list label { display: flex; gap: 7px; align-items: start; min-height: 38px; padding: 8px; margin: 0; border-radius: 3px; color: #606c51; font-size: 12px; line-height: 1.7; }
.searchable-options .option-list label:hover { background: #eff2e7; }
.searchable-options .option-list label:has(input:checked) { color: var(--red); background: #f7eeea; }
.searchable-options .option-list input { margin-top: 3px; flex-shrink: 0; }
.searchable-options .option-list [hidden] { display: none !important; }
.searchable-options .selection-summary { padding: 9px 14px; border-top: 1px solid var(--line); color: #7e896e; font-size: 11px; }
html:not([lang^="zh"]) { --serif: Georgia, "Times New Roman", serif; }
html:not([lang^="zh"]) .brand-name { max-width: 350px; font-size: 17px; letter-spacing: 0; }
html:not([lang^="zh"]) .brand-name small { font-size: 7px; letter-spacing: 1.1px; }
html:not([lang^="zh"]) .hero h1 { font-size: clamp(39px,4.4vw,56px); line-height: 1.19; letter-spacing: -.9px; }
html:not([lang^="zh"]) .culture-character, html:not([lang^="zh"]) .glyph, html:not([lang^="zh"]) .empty-glyph { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif; }
html:not([lang^="zh"]) .art-kicker { font-size: 8px; letter-spacing: 1.5px; }
html:not([lang^="zh"]) .wordmark > span { letter-spacing: 6px; }
html:not([lang^="zh"]) .nav-inner > a { font-size: 12px; }
html:not([lang^="zh"]) .hero-note { font-size: 10px; }
html:not([lang^="zh"]) .demo-tag { white-space: normal; }
html:not([lang^="zh"]) .community-stats dt { line-height: 1.6; }
html[lang="ar"] { --sans: Tahoma, Arial, sans-serif; --serif: "Noto Naskh Arabic", "Geeza Pro", Tahoma, serif; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[dir="rtl"] .account-dropdown { right: auto; left: 0; }
html[dir="rtl"] .wordmark { direction: ltr; }
html[dir="rtl"] .hero-art { direction: ltr; }
html[dir="rtl"] .art-kicker, html[dir="rtl"] .art-caption { direction: rtl; }
html[dir="rtl"] .art-caption > span:last-child { text-align: end; }
html[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.45; }
html[dir="rtl"] .language-switch #site-language { padding-inline: 7px 21px; }
html[dir="rtl"] .explore-card-top { right: auto; left: 23px; }
html[dir="rtl"] .event-date { direction: rtl; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"] { direction: ltr; text-align: start; }
@media (max-width: 960px) {
  html:not([lang^="zh"]) .header-actions { gap: 13px; }
  html:not([lang^="zh"]) .brand-name { font-size: 15px; max-width: 285px; }
  html:not([lang^="zh"]) .nav-inner { gap: 0 22px; }
  html:not([lang^="zh"]) .nav-inner > a { min-height: 45px; font-size: 11px; }
}
@media (max-width: 760px) {
  .demo-notice > .container { flex-wrap: wrap; }
  .demo-notice > .container > span:nth-child(2) { flex: 1; }
  .header-actions { gap: 7px; }
  .language-switch #site-language { min-width: 62px; max-width: 82px; font-size: 10px; padding-inline: 2px 12px; }
  .nav-inner { gap: 0 22px; }
  .nav-inner > .nav-publish { padding-inline: 9px; margin-inline: -9px; border-radius: 3px; background: #f7eded; }
  html:not([lang^="zh"]) .brand-name { font-size: 12px; max-width: 160px; line-height: 1.5; }
  html:not([lang^="zh"]) .brand { gap: 10px; }
  html:not([lang^="zh"]) .hero h1 { font-size: clamp(37px,7vw,49px); line-height: 1.23; }
  html:not([lang^="zh"]) .hero-note { font-size: 9px; }
  html:not([lang^="zh"]) .section-header > .text-link { white-space: normal; min-width: 62px; max-width: 105px; }
  html:not([lang^="zh"]) .section-header > div { flex: 1; }
  html:not([lang^="zh"]) .community-strip-copy h2 br { display: block; }
  html:not([lang^="zh"]) .community-stats dd small { display: block; margin: 3px 0 0; font-size: 9px; }
  html[dir="rtl"] .account-dropdown { right: auto; left: -48px; }
  .affiliation-form { padding: 18px; }
}
@media (max-width: 450px) {
  .masthead { gap: 6px; }
  .brand-name, html:not([lang^="zh"]) .brand-name { max-width: 125px; font-size: 11px; }
  .wordmark { font-size: 21px; padding-inline-end: 9px; }
  .brand { gap: 9px; }
  .header-actions { gap: 3px; }
  .nav-toggle { width: 33px; padding-inline: 6px; }
  .header-login { font-size: 11px; }
  .language-switch #site-language { min-width: 49px; max-width: 65px; font-size: 9px; }
  html:not([lang^="zh"]) .brand { gap: 8px; }
  .language-submit { padding: 4px; font-size: 9px; }
  .checkbox-options, .checkbox-grid, [id$="research_fields"], [id$="languages"] { grid-template-columns: 1fr; }
  .demo-switch { flex-basis: 100%; margin-inline-start: 0; }
  .demo-switch > summary { width: fit-content; }
  .demo-switch > form { inset-inline-start: 0; inset-inline-end: auto; }
}
@media (max-width: 360px) {
  .brand-name, html:not([lang^="zh"]) .brand-name { display: none; }
  .wordmark { padding-inline-end: 0; border-inline-end: 0; }
  .header-actions { gap: 8px; }
  .language-switch #site-language { max-width: 78px; }
}
