/* Refined with unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
@font-face {
  font-family: "DM Sans";
  src: url("./dm-sans.d4c68940b772.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("./newsreader.0a301b6df4c7.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
:root {
  --page: #f8f6f3;
  --surface: #fffefd;
  --text: #262326;
  --secondary: #565155;
  --muted: #6e666a;
  --line: #e5dedb;
  --control-line: #c4b8b7;
  --nav: #262426;
  --nav-hover: #303033;
  --nav-text: #efeff1;
  --nav-muted: #b0b0b8;
  --accent: #a33e37;
  --accent-hover: #87312c;
  --coral: #eea28e;
  --selection: #3d302f;
  --bot: #28724f;
  --display: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #cdced3 transparent; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { font: 400 15px/1.5 "DM Sans", sans-serif; color: var(--text); background: var(--page); }
button, input, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; transition: color 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease); }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: #efd0c6; color: #242426; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.app { height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr) 216px; grid-template-rows: 72px minmax(0, 1fr); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.brand { width: 248px; align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--nav); color: var(--nav-text); font-size: 26px; font-weight: 600; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; fill: var(--coral); stroke: var(--coral); }
.brand:focus-visible, .sidebar :focus-visible { outline-color: var(--coral); outline-offset: -3px; }
.top-links { display: flex; align-items: center; gap: 28px; margin-left: auto; padding: 0 28px; }
.top-links a, .top-links button { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--secondary); font-size: 14px; }
.top-links a:hover, .top-links button:hover { color: var(--accent); }
.age { font-size: 12px; font-weight: 500; color: var(--secondary); }
.sidebar { min-height: 0; display: flex; flex-direction: column; padding: 32px 16px 24px; background: var(--nav); color: var(--nav-text); }
.nav-group h2 { display: flex; align-items: center; gap: 12px; margin: 0 12px 12px; font-size: 12px; font-weight: 500; color: var(--nav-muted); }
.nav-group h2 .icon { width: 16px; height: 16px; }
.sidebar nav { display: grid; gap: 4px; }
.room { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 8px; color: #c6c6cc; text-align: left; }
.room .hash { width: 18px; text-align: center; font-size: 18px; color: #a1a1aa; }
.room.active { background: var(--selection); color: #f5ded7; font-weight: 500; }
.room.active .hash { color: var(--coral); }
.room:not(.active):hover { background: var(--nav-hover); color: var(--nav-text); }
.private-group { margin-top: 40px; }
.new-message { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid #454548; border-radius: 8px; font-size: 14px; text-align: left; color: #d4d4d9; }
.new-message:hover { background: var(--nav-hover); border-color: #5d5d63; color: #fff; }
.identity { display: flex; align-items: center; gap: 12px; margin: auto 8px 0; padding: 20px 4px 0; border-top: 1px solid #3b3b3f; font-size: 14px; font-weight: 500; }
.identity .icon { color: var(--nav-muted); }
.conversation { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.room-header { display: flex; align-items: center; gap: 16px; height: 72px; flex: 0 0 auto; padding: 0 32px; border-bottom: 1px solid var(--line); }
.room-header h1 { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; font-size: 22px; font-weight: 500; white-space: nowrap; }
.channel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.title-hash { display: grid; place-items: center; width: 24px; flex-shrink: 0; color: var(--accent); font-size: 22px; font-weight: 400; }
.room-guideline { margin: 0; padding: 8px clamp(16px, 3vw, 32px); color: var(--secondary); background: var(--page); font-size: 14px; }
.room-kind { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.timeline { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; outline-offset: -4px !important; }
.messages { display: grid; gap: 4px; margin-top: auto; padding: 24px 32px; }
.message { display: grid; grid-template-columns: 44px 128px minmax(0, 1fr); gap: 16px; align-items: baseline; min-height: 44px; padding: 8px 0; border-radius: 8px; }
.message:hover { background: var(--page); }
.message time { font-size: 12px; line-height: 28px; color: var(--muted); font-variant-numeric: tabular-nums; }
.author { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 28px; font-weight: 500; white-space: nowrap; }
.message p { min-width: 0; margin: 0; font-size: 16px; line-height: 28px; overflow-wrap: anywhere; }
.is-bot { color: var(--bot); }
.bot-badge { display: inline-block; height: 20px; padding: 2px 6px; border-radius: 4px; color: var(--bot); background: #e8f2ed; font-size: 10px; line-height: 16px; font-weight: 500; }
.composer-wrap { flex: 0 0 auto; padding: 0 32px 28px; }
.composer { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--page); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.composer:has(.attach) { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.composer:focus-within { border-color: var(--accent); background: var(--surface); }
.composer input { width: 100%; min-width: 0; height: 44px; padding: 0 8px; border: 0; outline: none; color: var(--text); background: transparent; font-size: 16px; caret-color: var(--accent); }
.composer input:focus-visible { outline: none; }
.composer input::placeholder { color: var(--muted); }
.attach, .send { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; }
.attach { color: var(--secondary); }
.attach:hover { background: #eeeef1; color: var(--text); }
.send { color: white; background: var(--accent); }
.send:hover { background: var(--accent-hover); }
.send:active { transform: scale(.98); }
.people { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line); background: var(--page); }
.people h2 { display: flex; align-items: center; height: 72px; margin: 0; padding: 0 8px; font-size: 14px; font-weight: 500; color: var(--secondary); }
.people ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0; padding: 0 8px; list-style: none; }
.people li { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.participant-name { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.people .bot-badge { flex-shrink: 0; margin-left: auto; }
.self { flex-shrink: 0; margin-left: auto; font-size: 11px; color: var(--muted); }
.mobile-toggle { display: none; }
.scrim { position: fixed; inset: 64px 0 0; background: #17171730; z-index: 2; }
.scrim[hidden] { display: none; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); z-index: 9; padding: 12px; background: white; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masked-word { position: relative; white-space: nowrap; cursor: help; }
.masked-word-tooltip { display: none; position: absolute; z-index: 6; left: 0; bottom: calc(100% + 6px); padding: 6px 10px; border-radius: 4px; background: var(--nav); color: var(--nav-text); font: 400 14px/1.4 "DM Sans", sans-serif; box-shadow: 0 2px 6px #0002; }
.masked-word:focus > .masked-word-tooltip, a:focus-visible .masked-word > .masked-word-tooltip { display: block; }
dialog { width: calc(100% - 32px); max-width: 400px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); background: white; }
dialog::backdrop { background: #17171740; }
.dialog-top { display: flex; align-items: center; gap: 16px; }
.dialog-top h2 { flex: 1; min-width: 0; margin: 0; font-size: 20px; font-weight: 500; overflow-wrap: anywhere; }
.dialog-close { display: grid; place-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding-inline: 8px; border-radius: 8px; }
.dialog-close:hover { background: var(--page); }
dialog p { margin: 16px 0 0; color: var(--secondary); font-size: 15px; line-height: 24px; }
@media (max-width: 1120px) and (min-width: 801px) {
  .app { grid-template-columns: 216px minmax(0, 1fr) 176px; }
  .brand { width: 216px; padding: 0 20px; font-size: 24px; }
  .room-header { padding: 0 24px; }
  .messages { padding-inline: 24px; gap: 12px; }
  .message { grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; }
  .message .author, .message p { grid-column: 2; }
  .composer-wrap { padding-inline: 24px; }
  .people { padding: 0 8px; }
}
@media (max-width: 800px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); }
  .topbar { padding: 0 16px; border-color: #333336; background: var(--nav); color: var(--nav-text); }
  .brand { width: auto; padding: 0; gap: 8px; font-size: 22px; }
  .brand .icon { width: 20px; height: 20px; }
  .top-links { padding: 0; gap: 16px; }
  .top-links a, .top-links button, .age { color: #c5c5cd; }
  .top-links a:hover, .top-links button:hover { color: var(--coral); }
  .top-links a span, .top-links button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .age { font-size: 11px; }
  .conversation { grid-column: 1; grid-row: 2; }
  .room-header { height: 64px; padding: 0 16px; gap: 12px; }
  .room-header h1 { gap: 8px; font-size: 18px; }
  .title-hash { width: 18px; font-size: 18px; }
  .room-kind { font-size: 11px; }
  .mobile-toggle { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px; color: var(--secondary); }
  .mobile-toggle:hover { color: var(--text); }
  .mobile-toggle[aria-expanded="true"] { background: var(--page); color: var(--accent); }
  .people-toggle { margin-left: auto; }
  .sidebar { position: fixed; top: 64px; bottom: 0; left: 0; width: 248px; z-index: 3; transform: translateX(-100%); visibility: hidden; transition: transform 180ms var(--ease), visibility 180ms; }
  .sidebar.open { transform: none; visibility: visible; }
  .room { height: 44px; }
  .people { display: none; position: fixed; top: 64px; bottom: 0; right: 0; width: 224px; z-index: 3; }
  .people.open { display: block; }
  .messages { padding: 16px 16px 20px; gap: 12px; }
  .message { grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; padding: 0; }
  .message .author, .message p { grid-column: 2; }
  .message p { font-size: 16px; line-height: 24px; }
  .composer-wrap { padding: 0 12px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .composer { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Application extensions, preserving the approved conversation layout. */
html:has(.site-shell), body:has(.site-shell) { height: auto; min-height: 100%; overflow: auto; }
.site-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.site-shell .topbar {
  min-height: 72px;
  gap: 24px;
  padding-inline: max(40px, calc((100% - 1120px) / 2));
  border-color: var(--line);
  background: var(--page);
}
.site-shell .brand { width: auto; padding: 0; background: none; color: var(--text); font-size: 24px; letter-spacing: -.03em; }
.site-shell .brand:focus-visible { outline-color: var(--accent); outline-offset: 4px; }
.site-shell .brand-mark { fill: var(--accent); stroke: var(--accent); }
.site-shell .top-links { gap: 24px; padding: 0; }
.top-links .test-mode { font-size: 11px; color: var(--accent); }
.content-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 56px 40px 72px; }
.content-page.narrow { max-width: 760px; }
h1,h2,h3 { font-weight: 500; line-height: 1.2; }
.content-page h1 { font: 400 clamp(38px, 4.8vw, 58px)/1.05 var(--display); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 24px; }
.content-page h2 { font-size: 26px; margin: 40px 0 16px; }
.content-page h3 { font-size: 20px; margin: 0 0 12px; }
.content-page p { max-width: 72ch; }
.lede { font-size: 20px; line-height: 1.6; color: var(--secondary); margin: 0 0 32px; }
.content-page a:not(.button) { text-decoration: underline; text-underline-offset: 4px; }
.content-page a:hover { color: var(--accent); }
.content-page form { max-width: 720px; }
input,textarea,select { max-width: 100%; font: inherit; color: var(--text); caret-color: var(--accent); }
.content-page label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.content-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.content-page textarea,.content-page select { display: block; width: 100%; border: 1px solid var(--control-line); border-radius: 8px; background: var(--surface); padding: 12px; min-height: 48px; }
.content-page textarea { min-height: 120px; resize: vertical; }
.content-page input[type=checkbox] { width: 18px; height: 18px; vertical-align: middle; margin: 0 8px 0 0; accent-color: var(--accent); }
.content-page .helptext,.help { display: block; font-size: 13px; color: var(--secondary); margin-top: 8px; }
.content-page form p { margin: 0 0 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; min-height: 48px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: white; font-weight: 500; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-hover); color: white !important; }
.button.secondary { background: var(--surface); border-color: var(--control-line); color: var(--text); }
.button.secondary:hover { background: var(--line); color: var(--text) !important; }
.error,.errorlist { color: #a13423; }
.errorlist { padding-left: 20px; font-size: 14px; }
.notice,.flash { padding: 16px 24px; background: #f4ece8; border: 1px solid #ead7cf; border-radius: 8px; color: #6b392e; margin: 0 0 24px; }
.flash { position: fixed; right: 24px; top: 88px; max-width: 400px; z-index: 5; }
.flash p { margin: 0; }
.article-row,.list-row { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); }
.article-list { display: grid; }
.article-row p { color: var(--secondary); margin: 8px 0; }
.article-row h2,.article-row h3 { margin: 0 0 12px; }
.content-page .article-row h2 a, .content-page .article-row h3 a { text-decoration: none; }
.meta,.article-meta { color: var(--secondary); font-size: 13px; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin: 32px 0; }
.filters p { margin: 0 !important; flex: 1; }
.prose { max-width: 72ch; font-size: 18px; line-height: 1.8; }
.prose p { margin: 0 0 24px; white-space: pre-line; }
.sources { margin-top: 40px; font-size: 14px; }
.pagination { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.back-link { display: inline-block; margin-top: 32px; }
.inline-form { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.text-button { min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; padding: 8px 0; }
.identity { justify-content: space-between; }
.identity-safety { color: var(--nav-muted); font-size: 12px; }
.sidebar { overflow-y: auto; }
.sidebar .room { width: 100%; }
.sidebar .unread { margin-left: auto; color: var(--coral); font-size: 12px; }
.private-group { margin-top: 32px; }
.private-group .room { font-size: 13px; overflow-wrap: anywhere; }
.new-message { margin-top: 12px; height: auto; min-height: 40px; }
.chat-status { min-height: 28px; padding: 4px 32px; color: var(--secondary); font-size: 12px; background: #fafafa; }
.message { position: relative; }
.message .author { max-width: 128px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.message .message-body { min-width: 0; }
.message p { white-space: pre-wrap; }
.message .report-link { display: inline-block; margin-top: 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.message .withdrawn { color: var(--muted); font-size: 14px; }
.older { min-height: 44px; color: var(--accent); flex-shrink: 0; }
.empty-conversation { padding: 24px 0; color: var(--secondary); }
.media-card { margin: 12px 0 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; max-width: 360px; }
.media-card p { font-size: 14px; line-height: 1.6; }
.media-card img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; margin-bottom: 12px; object-fit: contain; }
.media-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.media-actions button,.media-actions a { min-height: 40px; font-size: 13px; padding: 8px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.people button { text-align: left; min-height: 40px; overflow-wrap: anywhere; }
.people ul { max-height: calc(100% - 180px); overflow-y: auto; }
.presence-note { font-size: 11px; line-height: 1.6; color: var(--muted); padding: 16px 8px; }
.action-list { display: grid; gap: 12px; margin-top: 24px; }
.action-list a,.action-list button { padding: 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; text-align: left; }
.upload-controls { padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; }
.upload-controls[hidden] { display: none; }
.upload-controls input[type=file] { max-width: 100%; }
.upload-controls input[type=checkbox] { accent-color: var(--accent); }
.chat-error { margin-bottom: 12px; }
.random-leave { display: grid; padding: 0 8px; }
#random-form { display: flex; flex-wrap: wrap; gap: 12px; }
#random-status { min-height: 48px; padding: 16px 0; color: var(--secondary); }
.video-thumbnail { max-width: 320px; width: 100%; border-radius: 8px; }
@media(max-width:800px) {
 .site-shell .topbar { min-height: 0; flex-wrap: wrap; padding: 0 20px; gap: 0 16px; }
 .site-shell .brand { min-height: 56px; }
 .site-shell .top-links { width: 100%; margin: 0; gap: 16px; order: 2; }
 .site-shell .top-links a { color: var(--secondary); }
 .top-links a { font-size: 13px; min-height: 44px; padding-block: 8px; }
 .chat-page .topbar { gap: 12px; }
 .chat-page .brand { font-size: 19px; }
 .chat-page .brand-mark { width: 18px; }
 .chat-page .top-links { gap: 12px; min-width: 0; }
 .chat-page .top-links a:not(.identity-link) { flex-shrink: 0; }
 .chat-page .top-links a { font-size: 11px; }
 .chat-page .top-links a:first-child { display: none; }
 .content-page { padding: 32px 20px 64px; }
 .content-page h2 { font-size: 24px; }
 .lede { font-size: 18px; }
 .chat-status { padding-inline: 16px; }
 .message .message-body { grid-column: 2; }
 .message .author { max-width: none; }
 .chat-page .flash { left: 16px; right: 16px; top: 72px; }
 .filters { align-items: stretch; }
 .filters p { min-width: 100%; }
}
@media(max-width:370px) {
 .chat-page .top-links { gap: 8px; }
 .chat-page .brand { font-size: 17px; gap: 4px; }
 .chat-page .topbar { padding-inline: 12px; }
 .chat-page .top-links a { font-size: 10px; }
}

.public-ad { max-width: 1040px; margin: 24px auto 0; padding: 16px 24px; display: flex; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--secondary); font-size: 13px; }
.public-ad a { text-decoration: underline; text-underline-offset: 4px; }
.filters > div { flex: 1; min-width: 180px; }
.reading-page { max-width: 840px; }
.lexicon { max-width: 72ch; }
.lexicon dt { margin-top: 32px; font-size: 22px; font-weight: 500; }
.lexicon dd { margin: 12px 0 0; font-size: 18px; line-height: 1.8; }
.video-row img { max-width: 240px; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.journal-page .page-heading, .catalogue-page .page-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.journal-page .page-heading h1, .catalogue-page .page-heading h1 { margin-bottom: 0; }
.catalogue-page .page-heading .actions { align-items: center; gap: 12px 20px; }
.reading-page .page-heading { margin-top: 28px; }
.journal-page .article-list { border-top: 1px solid var(--line); }
.journal-page .article-row h2 { font: 400 clamp(26px, 3.2vw, 34px)/1.14 var(--display); overflow-wrap: anywhere; margin: 8px 0; }
.journal-page .article-row .meta { margin-top: 0; }
.content-page .filters { max-width: none; }
@media(max-width:800px) {
  .public-ad { margin: 20px; }
  .filters > div { flex-basis: 100%; min-width: 0; }
}

.message .author:not(.is-bot) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message .message-body { padding-right: 40px; }
.message .report-link { position: absolute; right: 0; top: 4px; width: 36px; height: 36px; margin: 0; display: grid; place-items: center; border-radius: 8px; opacity: 0; }
.message:hover .report-link, .message:focus-within .report-link { opacity: 1; }
.message .report-link:hover { color: var(--accent); background: #f4ece8; }
@media(hover:none), (max-width:800px) { .message .report-link { opacity: 1; width: 44px; height: 44px; top: 0; } .message .message-body { padding-right: 36px; } }

@media(max-width:800px) { .top-links .test-mode { color: var(--coral); } }

.site-footer { width: 100%; max-width: 1200px; margin: auto auto 0; padding: 0 40px 24px; display: flex; flex-wrap: wrap; gap: 0 24px; color: var(--secondary); font-size: 13px; }
.site-footer a { display: flex; align-items: center; min-height: 44px; }
.contact-details { overflow-wrap: anywhere; }
.site-footer a, .sidebar-policy a { text-decoration: underline; text-underline-offset: 4px; }
.sidebar .sidebar-policy { display: flex; gap: 16px; padding: 20px 12px 0; margin-top: auto; font-size: 12px; color: var(--nav-muted); }
.sidebar-policy + .identity { margin-top: 20px; }
.identity > a:first-child { min-width: 0; overflow-wrap: anywhere; }
@media(max-width:800px) { .site-footer { padding-inline: 20px; } .sidebar-policy a { display: flex; align-items: center; min-height: 44px; } }

/* Public entrance and account wayfinding. */
.top-links a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.top-links .identity-link { display: block; align-content: center; max-width: 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.top-links .identity-link:hover { color: var(--accent); }
.preview-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.app .preview-label { margin-right: 28px; }
.community-home { max-width: none; padding: 0 0 64px; }
.home-lobby {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-areas: "print heading" "print rooms" "print entry";
  column-gap: clamp(40px, 6vw, 88px);
  align-content: center;
  padding: 48px max(40px, calc((100% - 1120px) / 2));
  color: #faf5ed;
  background: #282624;
}
.home-heading { grid-area: heading; }
.home-heading h1 { margin: 0 0 8px; font: 500 clamp(38px, 3.6vw, 54px)/1.05 "DM Sans", sans-serif; letter-spacing: -.04em; }
.home-heading > p { max-width: 48ch; margin: 0; color: #d7cfc7; line-height: 1.5; }
.lobby-print { grid-area: print; position: relative; min-height: 272px; }
.lobby-print img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-rooms { grid-area: rooms; margin-top: 22px; border-top: 1px solid #665f59; }
.content-page a.home-room { display: flex; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #514b46; color: inherit; text-decoration: none; }
.home-room-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.home-room-text strong { display: block; font: 400 clamp(25px, 2vw, 31px)/1.12 var(--display); }
.home-room-text > span { display: block; margin-top: 4px; font-size: 14px; color: #d7cfc7; }
.home-room > .icon { color: #f3aa89; }
.home-room:hover, .home-room:focus-visible { background: #383431; }
.home-entry { grid-area: entry; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-top: 20px; }
.home-entry .button { background: #f2dfc4; border-color: transparent; color: #292421; }
.home-entry .button:hover { background: #fff0da; color: #292421 !important; }
.home-lobby a:focus-visible { outline-color: #ffc19c; }
.home-lobby .entry-secondary { display: inline-flex; align-items: center; min-height: 44px; color: #eee4da; font-size: 14px; }
.home-lobby .entry-secondary:hover { color: white; }
.community-home > section:not(.home-lobby) { margin-inline: max(40px, calc((100% - 1120px) / 2)); }
.community-home h2 { font: 400 clamp(30px, 3.4vw, 42px)/1.1 var(--display); margin: 0; }
.home-journal { margin-top: 44px; }
.home-journal .section-heading { align-items: center; margin-bottom: 20px; }
.home-journal .section-heading > a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; }
.home-journal-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4.5vw, 64px); }
.journal-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.home-article + .home-article { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.home-article h3 { font: 400 clamp(23px, 2.4vw, 30px)/1.12 var(--display); overflow-wrap: anywhere; margin: 4px 0 6px; }
.content-page .home-article h3 a { text-decoration: none; }
.home-article > p { font-size: 14px; line-height: 22px; color: var(--secondary); margin: 0; }
.home-article > .meta { font-size: 13px; color: var(--muted); }
.home-catalogue { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-catalogue > div:first-child { flex: 1; min-width: 200px; }
.home-catalogue p { font-size: 15px; color: var(--secondary); max-width: 52ch; margin: 8px 0 0; }
.home-video-list { width: 100%; }
.entry-page { max-width: 640px; }
.entry-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; color: var(--secondary); font-size: 14px; }
.preview-notice { margin-bottom: 24px; padding: 12px 16px; border-left: 1px solid var(--accent); color: var(--secondary); background: #f0eae6; }
.preview-notice strong { font-size: 13px; font-weight: 500; }
.preview-notice p { margin: 4px 0 0; font-size: 13px; line-height: 20px; }
.entry-links { display: flex; gap: 24px; margin: 24px 0; font-size: 13px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; font-size: 14px; }
.account-nav a { min-height: 32px; padding-block: 4px; }
.account-nav a[aria-current] { font-weight: 500; color: var(--accent); text-decoration: none; }
.account-invite { margin: 0 0 32px; padding: 20px; background: #f0eeec; border-radius: 8px; }
.account-invite a { font-size: 14px; }
.profile-form fieldset { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.profile-form legend { margin-bottom: 12px; padding: 0; font-size: 22px; font-weight: 500; }
.profile-form fieldset > p { color: var(--secondary); font-size: 14px; }
.profile-form .check-label { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 8px; line-height: 24px; }
.profile-form .check-label input { margin: 4px 0 0; flex-shrink: 0; }
.profile-form .help { margin-bottom: 0; font-size: 13px; }
.account-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.catalogue-empty { padding: 40px 0; max-width: 560px; }
.catalogue-empty h2 { margin-top: 0; font-size: 24px; }
.catalogue-empty p { font-size: 16px; line-height: 26px; color: var(--secondary); }
.identity-safety { max-width: 120px; text-align: right; }
@media(max-width:800px) {
  .site-shell .top-links .identity-link { margin-left: auto; max-width: 140px; }
  .site-shell .top-links a[aria-current="page"] { color: var(--accent); }
  .site-shell .preview-label { margin-left: auto; }
  .chat-page .preview-label { display: none; }
  .chat-page .top-links .identity-link { color: var(--nav-text); max-width: min(26vw, 140px); }
  .chat-page .top-links a:hover, .chat-page .top-links a:focus-visible { color: var(--coral); }
  .chat-page .top-links a:focus-visible { outline-color: var(--coral); }
  .community-home { padding: 0 0 48px; }
  .home-lobby { padding: 32px 20px; column-gap: 24px; }
  .community-home > section:not(.home-lobby) { margin-inline: 20px; }
  .home-journal { margin-top: 32px; }
  .home-catalogue { margin-top: 32px; padding: 24px 0; gap: 20px; }
  .account-nav { gap: 4px 16px; }
}
@media(max-width:640px) {
  .home-lobby {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "entry" "print" "rooms";
    padding-block: 24px;
  }
  .home-heading h1 { font-size: 38px; }
  .home-heading > p { max-width: 40ch; }
  .home-entry { margin-top: 12px; }
  .lobby-print { min-height: 0; height: clamp(110px, 34vw, 175px); margin-top: 20px; }
  .lobby-print img { object-position: center 46%; }
  .home-rooms { margin-top: 14px; }
  .home-journal-content { grid-template-columns: minmax(0, 1fr); }
  .journal-photo { aspect-ratio: 16 / 9; }
}

.room-starter { margin: 1rem 0; padding: 0 1rem; border-inline-start: 2px solid currentColor; }
.room-starter h2 { margin: 0 0 .6rem; font-size: .9rem; }
.room-starter p { margin: .25rem 0; font-size: .875rem; }
.room-starter b { font-family: monospace; }

.relay-consent { display: block; margin: 0 0 .65rem; line-height: 1.5; }
.composer[hidden] { display: none; }
