
body {
  margin: 0;
  padding: 0;
  background: #d2c4b7;
  color: #27211d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
}

a:link {
  color: #8a3f12;
}

a:visited {
  color: #92592a;
}

a:hover {
  color: #fff;
  background: #8a3f12;
}

.pagecont {
  width: min(94%, 1280px);
  margin: 0 auto 2.5rem;
  background: #fff;
  border: 1px solid #875038;
  border-top-width: 0.7rem;
  border-bottom-width: 0.45rem;
  box-shadow: 0 0.8rem 2.4rem rgba(74, 44, 28, 0.12);
}

.site-head {
  background: #763e22;
  color: #fff;
  padding: 0.8rem 1.35rem 0.85rem;
}

.site-head-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  margin: 0;
  color: #fff;
  font: italic 700 1.65rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.brand a {
  color: #fff;
  text-decoration: none;
}

.tagline {
  margin: 0;
  color: #e7e7f0;
  font-size: 0.9em;
  font-weight: bold;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.8rem;
  background: #a8693c;
  border-top: 1px solid #efe8df;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.topnav-links,
.topnav-actions {
  display: flex;
  align-items: stretch;
  gap: 0.15em;
  white-space: nowrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  color: #fff;
  padding: 0.315rem 0.385rem;
  text-decoration: none;
}

.topnav a[aria-current="page"] {
  background: #5c3019;
  color: #fff;
  text-decoration: none;
}

.topnav-actions {
  gap: 0.5em;
  margin-left: auto;
}

.auth-nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.28rem 0.385rem;
  font: inherit;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.auth-nav-button:hover {
  background: #fff;
  color: #763e22;
}

.auth-nav-button[hidden] {
  display: none;
}

.nav-icon {
  font-size: 1em;
  line-height: 1;
}

.profile-page .daybody {
  padding-top: 1em;
}

.profile-hero h2 {
  margin-bottom: 0.35em;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* Grids consecutivos (as cartas de conta e depois as do MCP) ficavam colados:
   o gap só separa colunas dentro do mesmo grid, não um grid do seguinte. */
.profile-grid + .profile-grid {
  margin-top: 1.6rem;
}

.auth-card {
  padding: 0.85em 0.95em 0.95em;
  background: #f8f1e6;
  border-left: 0.28em solid #8a6650;
}

.auth-card h3 {
  margin: 0 0 0.45em;
  color: #5b4333;
}

.auth-card p {
  margin: 0.18em 0 0;
  color: #3d2f25;
  line-height: 1.35;
}

.auth-spam-hint {
  padding: 0.5em 0.6em;
  background: #fff9ef;
  border: 1px solid #e0d0bc;
}

.auth-form {
  display: grid;
  gap: 0.65em;
  margin-top: 0.75em;
}

.auth-field {
  display: grid;
  gap: 0.25em;
  color: #4e3a2e;
  font-weight: bold;
}

.auth-field input,
.auth-field select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.45em 0.55em;
  border: 1px solid #bea995;
  background: #fff;
  color: #201814;
  font: inherit;
}

.auth-form button,
.auth-card button {
  align-self: start;
  padding: 0.45em 0.8em;
  border: 1px solid #7b4e2c;
  background: #8a3f12;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.auth-status {
  min-height: 1.25em;
  color: #5a4332;
  font-weight: bold;
}

.auth-status-error {
  color: #8a1f12;
}

.auth-note {
  color: #6d5845;
  font-size: 0.9em;
}

.auth-email {
  font-weight: bold;
  color: #2e241e;
}

.auth-card-hidden {
  display: none;
}

.auth-card-badge {
  display: inline-block;
  margin-bottom: 0.6em;
  padding: 0.15em 0.55em;
  background: #8a6650;
  color: #fff;
  font-size: 0.72em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.tier-badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tier-badge-free {
  background: #e7ded0;
  color: #5b4333;
}

.tier-badge-basic {
  background: #c9dcd0;
  color: #2c4a3a;
}

.tier-badge-pro {
  background: #8a3f12;
  color: #fff;
}

/* A carta do MCP é larga e tem várias secções empilhadas, ao contrário das
   cartas curtas do topo — daí padding próprio, mais generoso. */
.mcp-card {
  grid-column: 1 / -1;
  padding: 1.25em 1.35em 1.4em;
}

.mcp-card > .cluster-summary {
  margin-bottom: 1.1em;
  max-width: 68ch;
  line-height: 1.5;
}

.mcp-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
  color: #4e3a2e;
  margin: 0 0 1.5em;
  padding-bottom: 1.1em;
  border-bottom: 1px solid #e7ded0;
}

.mcp-dot {
  width: 0.65em;
  height: 0.65em;
  border-radius: 999px;
  flex: 0 0 auto;
  background: #b6a898;
}

.mcp-dot-on {
  background: #3f7d4f;
  box-shadow: 0 0 0 3px rgba(63, 125, 79, 0.18);
}

.mcp-dot-off {
  background: #b6a898;
}

.mcp-connections {
  margin: 0 0 1.6em;
}

.mcp-client-list {
  list-style: none;
  margin: 0 0 0.75em;
  padding: 0;
  font-size: 0.94em;
}

.mcp-client {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0;
  border-bottom: 1px solid #e7ded0;
}

.mcp-client:last-child {
  border-bottom: none;
}

.mcp-client-name {
  color: #7a6555;
  font-weight: bold;
}

.mcp-client-active .mcp-client-name {
  color: #4e3a2e;
}

.mcp-client-state {
  margin-left: auto;
  font-size: 0.85em;
  color: #7a6555;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.mcp-url-row {
  display: flex;
  align-items: flex-end;
  gap: 0.7em;
  flex-wrap: wrap;
  margin: 0 0 1.8em;
}

.mcp-url-field {
  flex: 1 1 22em;
}

.mcp-url-field input {
  width: 100%;
  padding: 0.5em 0.6em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}

/* O h3 do bloco de subtítulo herdava a margem do .auth-card h3, apertada
   demais para separar secções dentro desta carta. */
.mcp-card .mcp-subtitle {
  font-size: 0.9em;
  margin: 0 0 0.7em;
  color: #7a6555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mcp-howto {
  margin: 0;
  padding-left: 1.2em;
  color: #4e3a2e;
  font-size: 0.94em;
  line-height: 1.55;
}

.mcp-howto li + li {
  margin-top: 0.6em;
}

.mcp-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2em;
  margin: 0.2em 0 1.2em;
}

.mcp-counter {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.mcp-counter-value {
  font-size: 1.9em;
  font-weight: bold;
  color: #8a3f12;
  line-height: 1;
}

.mcp-counter-label {
  font-size: 0.8em;
  color: #7a6555;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Separa a nota do limite da lista por ferramenta que vem a seguir. */
.mcp-card > .stats-meta {
  margin: 0 0 1.8em;
}

.mcp-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92em;
}

.mcp-tool-list li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 0.5em 0;
  border-bottom: 1px solid #e7ded0;
}

.mcp-tool-list li:last-child {
  border-bottom: none;
}

.mcp-tool-list code {
  color: #4e3a2e;
}

.mcp-tool-list span {
  color: #7a6555;
  white-space: nowrap;
}

.auth-checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: #4e3a2e;
  font-weight: bold;
  cursor: pointer;
}

.auth-checkbox-field input {
  width: auto;
  margin: 0;
}

.auth-logout-button {
  margin-top: 0.65em;
}

.language-fallback {
  color: #8a6650;
  font-size: 0.86em;
  font-weight: normal;
}

.gdpr-banner {
  position: fixed;
  left: 50%;
  bottom: 0.75rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(80%, 1023px);
  padding: 0.75rem 0.9rem;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid #c7b39d;
  box-shadow: 0 10px 30px rgba(56, 31, 16, 0.2);
  color: #4e3c2f;
  transform: translateX(-50%);
}

.gdpr-banner p {
  margin: 0;
  line-height: 1.35;
}

.gdpr-banner-ack {
  margin-left: auto;
  padding: 0.4em 0.8em;
  border: 1px solid #7b4e2c;
  background: #8a3f12;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.gdpr-banner[hidden] {
  display: none;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 23, 14, 0.55);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  max-height: calc(100vh - 3rem);
  overflow: auto;
  padding: 1rem 1rem 1.1rem;
  background: #fff7ee;
  border: 1px solid #9d765f;
  box-shadow: 0 20px 50px rgba(29, 16, 9, 0.35);
}

.auth-modal-dialog h2 {
  margin: 0 0 0.35em;
}

.auth-modal-dialog p {
  margin-top: 0.18em;
}

.auth-modal-close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #9d765f;
  background: #fff;
  color: #4d3324;
  font: inherit;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.daybody {
  padding: 1.35rem 1.5rem 2.4rem;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
  gap: 2.25rem;
  align-items: start;
}

.home-discussions {
  min-width: 0;
}

.home-river {
  min-width: 0;
  padding-left: 1.4rem;
  border-left: 1px solid #e4d7ca;
}

.home-river-title {
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #8a4a22;
  color: #63351f;
  font-size: 0.73rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-river .river-day {
  margin: 0;
  padding: 0.7rem 0 0.85rem;
  border-top: 1px solid #eee4da;
}

.home-river .river-day:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-river .river-day h2 {
  margin: 0 0 0.45rem;
  color: #70635a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-river .river-day ul {
  margin: 0;
  padding: 0;
}

.home-river .river-line {
  display: block;
  padding: 0.26rem 0;
  font-size: 0.82rem;
  line-height: 1.32;
}

.home-river .river-line time {
  display: inline;
  margin-right: 0.28rem;
  color: #82766e;
  font-size: 0.9em;
}

.home-river .river-line .dot {
  display: inline;
  margin-right: 0.28rem;
}

.home-river .river-copy {
  display: inline;
}

.home-river .river-source {
  font-size: 0.9em;
}

.home-river-more {
  margin: 0.2rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e4d7ca;
  font-size: 0.78rem;
  font-weight: 700;
}

.blinks {
  border-top: solid 3px #8a4a22;
  width: 100%;
  margin-bottom: 1.2em;
  padding: 0.3em 0;
  text-align: center;
  font-weight: bold;
}

.summary-strip {
  background: #f0e6d8;
  border: 1px solid #f7f1e8;
  margin-bottom: 0.9em;
  padding: 0.35em 0.55em;
  color: #6b5644;
  font-weight: bold;
}

.cluster {
  padding: 0.22em 0 0.9em;
}

.cluster + .cluster {
  margin-top: 0.35em;
}

.cluster-main,
.river-item {
  display: grid;
  grid-template-columns: 5.7em minmax(0, 1fr);
  column-gap: 0.8em;
  padding: 0.08em 0;
}

.cluster-main-stack {
  display: block;
}

.rtime {
  color: #666;
  text-align: right;
  font-size: 0.9em;
  padding-top: 0.1em;
}

.rtime-inline {
  margin: 0 0 0.12em;
  text-align: left;
  font-size: 0.82em;
  padding-top: 0;
}

.headline {
  font-size: 1.08em;
  line-height: 1.25;
}

.headline strong {
  font-weight: bold;
}

cite {
  color: #8a4a22;
  font-weight: bold;
  font-size: 0.9em;
  font-style: normal;
}

cite a:link,
cite a:visited {
  color: #8a4a22;
}

cite a:hover {
  color: #fff;
  background: #8a3f12;
}

.meta {
  color: #666;
  font-size: 0.9em;
}

.cluster-summary {
  margin: 0.08em 0 0;
  color: #444;
  font-size: 0.95em;
  line-height: 1.3;
}

.cluster-micro-meta {
  margin: 0.16em 0 0;
  color: #7a6858;
  font-size: 0.78em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cluster-page-back {
  margin: 0 0 0.7em;
  font-size: 0.95em;
}

.cluster-standalone {
  margin-bottom: 1.2em;
}

.cluster-context {
  margin: 0.7em 0 1em;
  padding: 0.75em 0.85em 0.8em;
  background: #fbf6ef;
  border-left: 0.28em solid #b2865d;
}

.cluster-context-block + .cluster-context-block,
.cluster-context-block + .cluster-context-grid,
.cluster-context-grid + .cluster-context-block {
  margin-top: 0.75em;
}

.cluster-context-label {
  margin-bottom: 0.16em;
  font-size: 0.76em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a5419;
}

.cluster-context-block p,
.cluster-context-value {
  margin: 0;
  color: #3e3026;
  line-height: 1.35;
}

.cluster-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7em;
}

.cluster-context-meta {
  padding: 0.45em 0.55em 0.5em;
  background: #f3ebdf;
  border: 1px solid #dfcfbc;
}

.cluster-entity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.cluster-entity-tag {
  display: inline-block;
  padding: 0.16em 0.5em;
  background: #efe2d1;
  border-radius: 999px;
  color: #5f442f;
  font-size: 0.88em;
}

.discussion {
  margin: 0.08em 0 0 1.2em;
  color: #333;
  line-height: 1.25;
}

.discussion summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.discussion summary::-webkit-details-marker {
  display: none;
}

.discussion summary:before {
  content: "+";
  display: inline-block;
  width: 1em;
  margin-left: -1.25em;
  margin-right: 0.25em;
  border: 1px solid #777;
  background: #eee;
  color: #111;
  font-size: 0.9em;
  font-weight: bold;
  line-height: 1;
  text-align: center;
}

.discussion[open] summary:before {
  content: "-";
}

.discussion-label {
  color: #6b5219;
  font-weight: bold;
}

.discussion-sources a {
  font-weight: normal;
}

.discussion-panel {
  margin-top: 0.24em;
  padding: 0.38em 0.55em 0.42em;
  border-left: 0.32em solid #aa8170;
  background: #f7f0ea;
}

.discussion-list + .discussion-list {
  margin-top: 0.5em;
}

.discussion-list {
  padding: 0.22em 0.45em 0.3em;
}

.discussion-list-cluster {
  background: #f8f1e6;
  border-left: 0.26em solid #a3722e;
}

.discussion-list-related {
  background: #f0e6dc;
  border-left: 0.26em solid #8a6650;
}

.discussion-list ul {
  margin: 0.16em 0 0;
  padding: 0;
  list-style: none;
}

.discussion-list li {
  padding: 0.08em 0;
  line-height: 1.25;
}

.discussion-list li time {
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.discussion-list li .dot {
  margin: 0 0.28em;
  color: #8b7768;
}

.discussion-list li:before {
  content: "↳ ";
  color: #666;
}

.discussion-list .source {
  color: #8a4a22;
  font-weight: bold;
  font-size: 0.9em;
}

.discussion-note {
  margin: 0.22em 0 0 1.15em;
  color: #534336;
  font-size: 0.9em;
  line-height: 1.35;
}

.discussion-note-label {
  color: #6c4c1c;
  font-weight: bold;
}

.related-label {
  font-size: 0.84em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discussion-list-cluster .related-label {
  color: #7a5419;
}

.discussion-list-related .related-label {
  color: #6b5645;
}

.discussion-list-cluster li:before {
  color: #a3722e;
}

.discussion-list-related li:before {
  color: #8a6650;
}

.discussion-list-cluster .source {
  color: #6c4c1c;
}

.discussion-list-related .source {
  color: #5c4736;
}

.discussion-drift {
  margin: 1.2em 0 0;
  padding-top: 0.6em;
  border-top: 1px solid #d5c6bb;
}

.discussion-drift h2 {
  margin: 0 0 0.45em;
  font-size: 1.05em;
  color: #443225;
}

.discussion-drift-intro {
  margin: 0 0 0.7em;
  color: #5f442f;
  line-height: 1.35;
}

/* Linha temporal vertical: a deriva lê-se de cima para baixo, ao contrário da
   cascata linguística, que é horizontal. A distinção visual evita que as duas
   secções se confundam. */
.discussion-drift-track {
  margin: 0;
  padding: 0 0 0 1.1em;
  border-left: 2px solid #dfcfbc;
  list-style: none;
}

.discussion-drift-stage {
  position: relative;
  padding: 0 0 0.85em;
}

.discussion-drift-stage:last-child {
  padding-bottom: 0;
}

.discussion-drift-stage::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: -1.45em;
  width: 0.5em;
  height: 0.5em;
  background: #c9b6a2;
  border-radius: 50%;
}

.discussion-drift-stage-current::before {
  background: #8a6650;
}

.discussion-drift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  color: #8a6650;
  font-size: 0.88em;
}

.discussion-drift-marker {
  font-weight: 600;
}

.discussion-drift-contention {
  margin: 0.12em 0 0;
  color: #3e3026;
  line-height: 1.35;
}

.discussion-drift-stage-current .discussion-drift-contention {
  color: #2f241b;
  font-weight: 500;
}

.discussion-spread {
  margin: 1.2em 0 0;
  padding-top: 0.6em;
  border-top: 1px solid #d5c6bb;
}

.discussion-spread h2 {
  margin: 0 0 0.45em;
  font-size: 1.05em;
  color: #443225;
}

.discussion-spread-headline {
  margin: 0 0 0.6em;
  color: #5f442f;
  line-height: 1.35;
}

.discussion-spread-badge {
  display: inline-block;
  padding: 0.12em 0.5em;
  background: #efe2d1;
  border-radius: 999px;
  font-size: 0.85em;
}

/* Pista horizontal: a cascata lê-se da esquerda para a direita e faz scroll
   próprio em ecrãs estreitos, para o corpo da página nunca deslizar. */
.discussion-spread-track {
  display: flex;
  gap: 0.4em;
  margin: 0;
  padding: 0 0 0.3em;
  overflow-x: auto;
  list-style: none;
}

.discussion-spread-stage {
  flex: 0 0 auto;
  min-width: 8.5em;
  padding: 0.45em 0.6em 0.5em;
  background: #f3ebdf;
  border: 1px solid #dfcfbc;
  border-left: 0.22em solid #8a6650;
}

.discussion-spread-lang {
  display: block;
  color: #443225;
  font-weight: 600;
}

.discussion-spread-offset {
  display: block;
  color: #8a6650;
  font-size: 0.9em;
}

.discussion-spread-source {
  display: block;
  color: #6d5648;
  font-size: 0.88em;
}

.cluster-editorial-layers {
  margin: 1.2em 0 0;
  padding-top: 0.6em;
  border-top: 1px solid #d5c6bb;
}

.cluster-editorial-layers h2 {
  margin: 0 0 0.65em;
  font-size: 1.05em;
  color: #443225;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9em;
}

.editorial-locale {
  padding: 0.7em 0.8em 0.8em;
  background: #f7f0ea;
  border-left: 0.28em solid #8a6650;
}

.editorial-locale h3 {
  margin: 0 0 0.55em;
  font-size: 0.95em;
  color: #5b4333;
}

.editorial-field + .editorial-field {
  margin-top: 0.55em;
}

.editorial-label {
  margin-bottom: 0.16em;
  font-size: 0.76em;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a5419;
}

.editorial-field p,
.editorial-list {
  margin: 0;
  color: #2e241e;
  line-height: 1.35;
}

.editorial-list {
  padding-left: 1.1em;
}

.editorial-list li + li {
  margin-top: 0.22em;
}

.stance-voices {
  display: block;
  font-size: 0.86em;
  color: #7a6a58;
  margin-top: 0.12em;
}

.stance-voices a {
  color: #8a4a1f;
}

.stance-unmapped {
  font-size: 0.86em;
  color: #7a6a58;
  margin-top: 0.45em;
}

.stance-unmapped .stance-voices {
  display: inline;
}

.argument-spread,
.stance-posture {
  display: inline-block;
  font-size: 0.78em;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #7a5419;
  background: #f0e2cf;
  border-radius: 2px;
  padding: 0.02em 0.35em;
}

.argument-spread {
  margin-left: 0.35em;
}

.thread-age {
  display: inline-block;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a4a1f;
  background: #f0e2cf;
  border-radius: 2px;
  padding: 0.05em 0.5em;
  margin-left: 0.35em;
  vertical-align: 0.12em;
}

.river-day {
  margin: 0 0 1.2em;
}

.river-day h2 {
  margin: 0.25em 0 0.45em;
  color: #333;
  font-size: 1.05em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.15em;
}

.river-day-count {
  color: #7b7b7b;
  font-size: 0.76em;
  font-weight: normal;
}

.river-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.river-line {
  display: grid;
  grid-template-columns: 5.6em 1.1em minmax(0, 1fr);
  gap: 0.25em;
  align-items: baseline;
  padding: 0.18em 0;
  line-height: 1.22;
}

.river-line > * {
  min-width: 0;
}

.river-line time {
  color: #555;
  font-size: 0.92em;
  text-align: right;
  white-space: nowrap;
}

.river-line .dot {
  color: #777;
  text-align: center;
}

.river-source,
.river-title {
  font-weight: bold;
}

.river-author {
  font-style: italic;
}

.river-copy {
  min-width: 0;
}

.detail-line {
  display: grid;
  grid-template-columns: minmax(10.25em, 10.25em) 1.1em minmax(0, 1fr);
  gap: 0.35em;
  align-items: start;
  padding: 0.2em 0;
  line-height: 1.28;
}

.detail-line > * {
  min-width: 0;
}

.detail-line time {
  color: #555;
  font-size: 0.92em;
  text-align: right;
  white-space: nowrap;
  padding-top: 0.08em;
}

.detail-line .dot {
  color: #777;
  text-align: center;
  padding-top: 0.08em;
}

.detail-line .river-copy,
.detail-line .river-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.stats-meta {
  margin: 0.2em 0 0;
  color: #666;
  font-size: 0.9em;
}

.stats-table-wrap {
  overflow-x: auto;
}

.stats-section + .stats-section {
  margin-top: 1.2em;
}

.stats-section h3 {
  margin: 0 0 0.4em;
  color: #5b4333;
  font-size: 0.98em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.stats-table th,
.stats-table td {
  padding: 0.32em 0.45em;
  border-bottom: 1px solid #e1d5c8;
}

.stats-table thead th {
  position: sticky;
  top: 0;
  background: #f4eadf;
  color: #573a28;
  font-size: 0.9em;
  text-align: right;
  z-index: 1;
}

.stats-table thead th:first-child,
.stats-table tbody th {
  text-align: left;
}

.stats-table thead th:first-child,
.stats-table tbody th {
  position: sticky;
  left: 0;
  background: #fbf6f0;
}

.stats-table thead th:first-child {
  z-index: 2;
}

.stats-table tbody td {
  text-align: right;
}

.leaderboard-table td,
.leaderboard-table th {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.leaderboard-table thead th:first-child,
.leaderboard-table tbody td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fbf6f0;
}

.leaderboard-table thead th:first-child {
  background: #f4eadf;
  z-index: 2;
}

.leaderboard-table thead th:nth-child(2),
.leaderboard-table tbody th {
  position: static;
  text-align: left;
}

.stats-table tbody tr:nth-child(even) td,
.stats-table tbody tr:nth-child(even) th {
  background: #fcfaf7;
}

.stats-source-name,
.stats-source-id {
  display: block;
}

.stats-source-name {
  font-weight: bold;
  color: #2e241e;
}

.stats-source-id {
  color: #7a756f;
  font-size: 0.88em;
  font-weight: normal;
}

.stats-zero {
  color: #9d9388;
}

.item-detail-table th,
.item-detail-table td {
  text-align: left;
}

.item-detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.item-detail-raw {
  max-height: 32em;
  overflow: auto;
  background: #f4eadf;
  border: 1px solid #e1d5c8;
  border-radius: 4px;
  padding: 0.6em;
  font-size: 0.82em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.item-detail-raw + .item-detail-raw {
  margin-top: 0.6em;
}

.stats-count {
  color: #201814;
  font-weight: bold;
}

.empty {
  color: #666;
  font-weight: bold;
}

@media (max-width: 720px) {
  .pagecont {
    width: auto;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .topnav {
    flex-wrap: wrap;
    align-items: flex-start;
    overflow-x: auto;
  }

  .topnav-links,
  .topnav-actions {
    flex-wrap: wrap;
  }

  .topnav-actions {
    justify-content: flex-start;
  }

  .cluster-main {
    grid-template-columns: 4.6em minmax(0, 1fr);
  }

  .home-layout {
    display: block;
  }

  .home-river {
    margin-top: 1.75rem;
    padding: 1.25rem 0 0;
    border-top: 1px solid #e4d7ca;
    border-left: 0;
  }

  .cluster-main-stack {
    display: block;
  }

  .river-line {
    grid-template-columns: 4.9em 0.9em minmax(0, 1fr);
    row-gap: 0.05em;
  }

  .detail-line {
    grid-template-columns: 8.8em 0.9em minmax(0, 1fr);
    row-gap: 0.05em;
  }

  .discussion {
    margin-left: 5.4em;
  }

  .site-head-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .gdpr-banner {
    width: calc(100vw - 1rem);
    bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .gdpr-banner-ack {
    margin-left: 0;
  }
}
