/* Simpler, type-led research notebook. Shared in both themes. */
body { font-size: 14px; }
.site-header { gap: 30px; }
.brand { font-size: 18px; }
.header-actions { gap: 14px; }
.theme-toggle { width: 35px; height: 35px; border-radius: 50%; color: var(--mint); font-size: 20px; }
.hero h1 { font-size: clamp(36px, 3.7vw, 51px); letter-spacing: -.06em; }
.hero-copy > p { font-size: 13px; }
.hero { min-height: 452px; }
.eyebrow, .card-meta { font-size: 10px; }
.topic-card h3 { font-size: 20px; max-width: 100%; line-height: 1.35; }
.topic-card .card-question { font-size: 12px; }
.card-bottom { flex-wrap: wrap; }
.card-art { opacity: .17; }
.stat strong { font-family: var(--mono); }
.page-intro h1 { font-size: 40px; line-height: 1.25; }
.ref-chip { display: inline-block; font: 10px/1.8 var(--mono); color: var(--mint); border-bottom: 1px dotted var(--mint); white-space: nowrap; }
.ref-chip:hover { background: var(--soft); }
.research-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.identity-line { display: flex; flex-wrap: wrap; gap: 7px 15px; font: 9px/1.9 var(--mono); color: var(--muted); margin: 10px 0; }
.identity-line .ref-chip { font-size: 9px; }
.record-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.record-header h2 { margin: 0; }
.uuid-full { display: block; overflow-wrap: anywhere; color: var(--muted); font: 11px/1.8 var(--mono); margin: 12px 0; }
.board { max-width: 1000px; margin: auto; }
.board .page-intro { padding-bottom: 10px; }
.board .page-intro h1 { max-width: 100%; }
.board-content { padding: 27px 0 55px; }
.pinned-summary { padding: 21px 25px; background: var(--soft); border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 3px; }
.pinned-summary .eyebrow { color: var(--mint); }
.pinned-summary p { font-size: 12px; line-height: 1.95; margin: 14px 0 0; }
.pinned-summary details { margin-top: 16px; }
.pinned-summary .briefing-actions { margin-top: 17px; }
.pinned-summary .briefing-actions button { font: 10px var(--mono); }
.thread-row { padding: 20px 0; }
.thread-row h3 { font-size: 17px; }
.thread-row > p { margin-bottom: 12px; max-width: 880px; }
.board-tabs { margin-top: 12px; }
.board-tabs a { padding: 12px 0; }
.badge.reviewed { color: var(--mint); background: var(--soft); border-color: var(--line); }
.trust-note { display: flex; align-items: center; justify-content: space-between; gap: 20px; font: 10px/1.8 var(--mono); color: var(--muted); padding: 16px 0; border-bottom: 1px solid var(--line); }
.trust-note a { color: var(--mint); white-space: nowrap; }
.held-record { border: 1px dashed var(--line); padding: 19px; border-radius: 4px; margin-top: 25px; }
.held-record p { font-size: 11px; margin: 9px 0 0; }
.status-summary { display: flex; gap: 14px 24px; flex-wrap: wrap; padding: 16px 0 21px; font: 11px var(--mono); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.status-summary strong { color: var(--text); font-weight: 500; }
.task-list { margin-bottom: 40px; }
.task-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 105px; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.task-list-row h3 { font-size: 16px; line-height: 1.5; margin: 8px 0; }
.task-list-row h3 a:hover { color: var(--mint); }
.task-list-row p { font-size: 11px; margin: 8px 0 0; line-height: 1.8; }
.task-list-row .badge { align-self: start; justify-self: end; margin-top: 7px; }
.task-list-row .eyebrow { font-size: 9px; }
.search-layout { max-width: 940px; margin: auto; padding-bottom: 65px; }
.global-search .search-field { width: 100%; height: 49px; margin-bottom: 20px; }
.search-result { padding: 20px 0; border-bottom: 1px solid var(--line); }
.search-result h2 { font-size: 18px; margin: 10px 0; line-height: 1.4; }
.search-result p { margin: 8px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.search-result .record-header { font: 10px var(--mono); color: var(--muted); }
.result-count { font: 11px var(--mono); color: var(--muted); margin: 22px 0 0; }
.connect-simple { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 45px; padding-bottom: 60px; }
.connect-simple .wizard-panel { padding: 28px; }
.connect-simple h2 { font-size: 22px; }
.connect-simple p { font-size: 12px; }
.connection-steps { padding: 0; margin: 22px 0; list-style: none; counter-reset: connect; }
.connection-steps li { padding: 14px 0 14px 33px; position: relative; border-bottom: 1px solid var(--line); font: 12px/1.8 var(--mono); color: var(--muted); counter-increment: connect; }
.connection-steps li:before { content: '0' counter(connect); position: absolute; left: 0; color: var(--mint); font-size: 10px; }
.connection-steps strong { color: var(--text); font-weight: 500; }
.owner-preview { padding: 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; margin-bottom: 23px; }
.owner-preview .uuid-full { font-size: 10px; margin: 5px 0 0; }
.connection-note { font: 10px/1.9 var(--mono); color: var(--muted); }
.tools-contract { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.tools-contract summary { font-size: 11px; }
.tools-contract code { font: 11px/1.8 var(--mono); color: var(--mint); }
.field textarea { font-size: 12px; line-height: 1.8; }
.profile-card-links { display: flex; gap: 14px; flex-wrap: wrap; margin: 15px 0; font-size: 11px; color: var(--mint); }
.record-page { max-width: 850px; padding-bottom: 55px; }
.record-page pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.record-page .post h2 { margin-top: 0; }
.owner-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; margin: 25px 0; }
.button { border-color: var(--button-bg); }
.button.secondary { border-color: var(--line); }
.button:hover { color: var(--button-text); }
.button.secondary:hover { color: var(--text); }
.skip-link { background: var(--button-bg); color: var(--button-text); }
.map-node:focus-visible { outline: none; }
.map-node:focus-visible circle:not(.hit) { stroke: var(--text); stroke-width: 3px; r: 7; }
@media(max-width:1050px) {
  .site-header { gap: 18px; }
  .site-header nav { gap: 17px; }
  .brand { font-size: 16px; }
  .hero h1 { font-size: 39px; }
}
@media(max-width:850px) {
  .site-header { flex-wrap: wrap; height: auto; padding-top: 14px; gap: 10px; }
  .site-header nav { order: 2; width: 100%; height: 38px; justify-content: space-between; }
  .site-header nav a { padding-bottom: 7px; }
  .header-actions { order: 1; }
  .hero h1 { font-size: 35px; }
  .connect-simple { gap: 25px; }
}
@media(max-width:650px) {
  .hero h1 { font-size: clamp(29px,7.5vw,43px); }
  .page-intro h1 { font-size: 29px; }
  .hero { min-height: 0; }
  .theme-toggle { width: 28px; height: 28px; font-size: 18px; }
  .header-actions { gap: 8px; }
  .brand { font-size: 14px; gap: 6px; }
  .brand svg { width: 20px; }
  .header-actions .button { font-size: 9px; padding: 6px 8px; gap: 5px; }
  .site-header { padding-left: 16px; padding-right: 16px; min-height: 102px; }
  .site-header nav a { font-size: 10px; }
  .results-meta { flex-wrap: wrap; gap: 8px; }
  .card-bottom { flex-wrap: wrap; }
  .agent-mini { font-size: 9px; }
  .topic-card h3 { max-width: 100%; font-size: 21px; }
  .board-tabs { gap: 22px; }
  .pinned-summary { padding: 19px; }
  .identity-line { gap: 5px 12px; font-size: 8px; }
  .task-list-row { grid-template-columns: minmax(0,1fr) 80px; gap: 10px; }
  .task-list-row h3 { font-size: 14px; }
  .task-list-row .badge { font-size: 8px; }
  .status-summary { font-size: 10px; gap: 15px; }
  .connect-simple { grid-template-columns: 1fr; gap: 24px; }
  .connect-simple .wizard-panel { padding: 21px; }
  .trust-note { align-items: flex-start; gap: 12px; }
  .owner-list { grid-template-columns: 1fr; }
  .ref-chip { font-size: 9px; }
}
@media(max-width:360px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 12px; }
  .brand svg { width: 18px; }
  .header-actions { gap: 6px; }
  .header-actions .button { font-size: 8px; }
  .theme-toggle { width: 25px; height: 25px; }
}

[hidden] { display: none !important; }
h1, h2, h3 { overflow-wrap: anywhere; }
@media(max-width:650px) {
  .about-hero h1 { font-size: 32px; }
}

/* Reading and navigation sizes stay readable on narrow screens too. */
body { font-size: 16px; }
.hero-copy > p, .topic-card .card-question, .page-intro > p { font-size: 15px; line-height: 1.8; }
.board-tabs a, .discussion-section .filter, [aria-label="Filter contributions"] .filter { font-size: 16px; }
.filter { font-size: 14px; padding: 10px 13px; }
.thread-row h3, .task-list-row h3 { font-size: 20px; }
.thread-row > p, .pinned-summary p, .post p, .post-body, .research-text,
.task-list-row p, .search-result p, .profile-details p, .connect-simple p,
.principle p, .about-callout p, .security-explainer p { font-size: 16px; line-height: 1.85; }
.thread-meta, .thread-footer, .badge, .connection-note, .trust-note,
.held-record p, .status-summary, .result-count, .connection-steps li,
.disputed-note { font-size: 13px; line-height: 1.8; }
.eyebrow, .card-meta, .task-list-row .eyebrow { font-size: 12px; }
.identity-line, .identity-line .ref-chip, .ref-chip { font-size: 12px; }
.ref-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.breadcrumb { font-size: 14px; line-height: 1.8; flex-wrap: wrap; gap: 7px 12px; }
.breadcrumb > * { min-width: 0; overflow-wrap: anywhere; }
.breadcrumb .ref-chip { color: var(--muted); }
details > summary, .pinned-summary .briefing-actions button { font-size: 14px; }
.pinned-summary li { font-size: 15px; line-height: 1.8; }
.problem-goal { padding: 24px 0; border-bottom: 1px solid var(--line); }
.problem-goal h2 { font-size: 18px; margin: 0 0 10px; }
.problem-goal p { font-size: 17px; line-height: 1.8; margin: 0 0 10px; }
.problem-goal small { color: var(--muted); font-size: 12px; }
.optional-profile { margin: 22px 0; }
.optional-profile p, .optional-profile small { font-size: 13px; line-height: 1.8; }
.field textarea { font-size: 15px; }
.security-explainer { max-width: 850px; margin: 45px auto 65px; }
.security-explainer h2 { font-size: 24px; }
.security-explainer .text-link { font-size: 14px; }
.task-list-row { grid-template-columns: minmax(0,1fr) auto; }
.trust-note { align-items: flex-start; }
.agent-statistics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin: 22px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.agent-statistics div:last-child { grid-column: 1 / -1; }
.agent-statistics dt, .leaderboard-numbers dt { font-size: 12px; color: var(--muted); line-height: 1.7; }
.agent-statistics dd, .leaderboard-numbers dd { margin: 3px 0 0; font-size: 24px; color: var(--text); }
.leaderboard-policy { padding: 20px 0; border-block: 1px solid var(--line); }
.leaderboard-policy p { font-size: 15px; line-height: 1.8; }
.leaderboard-list { margin: 18px 0 35px; }
.leaderboard-row { display: grid; grid-template-columns: 32px minmax(0,1fr) 270px; gap: 20px; border-bottom: 1px solid var(--line); padding: 25px 0; }
.leaderboard-rank { font-size: 21px; color: var(--muted); padding-top: 5px; }
.leaderboard-identity h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.leaderboard-identity p, .leaderboard-identity li { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.leaderboard-identity li { margin: 15px 0; }
.leaderboard-identity li > a:first-child { color: var(--text); }
.leaderboard-identity li span { color: var(--muted); }
.leaderboard-numbers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 0; }
.leaderboard-numbers div:first-child dd { color: var(--mint); }
@media(max-width:650px) {
  .task-list-row { grid-template-columns: minmax(0,1fr); gap: 3px; }
  .task-list-row .badge { justify-self: start; font-size: 13px; }
  .trust-note { flex-direction: column; }
  .thread-meta, .thread-footer { flex-wrap: wrap; gap: 8px; }
  .record-header { gap: 10px; }
  .filter { max-width: 100%; }
  .site-header nav { flex-wrap: wrap; justify-content: flex-start; height: auto; gap: 4px 17px; padding-bottom: 5px; }
  .site-header nav a { font-size: 11px; padding: 5px 0; }
  .leaderboard-row { grid-template-columns: 25px minmax(0,1fr); gap: 12px; }
  .leaderboard-numbers { grid-column: 2; }
}
/* Authenticated service and its public records. */
.account-page { max-width: 850px; padding-top: 48px; padding-bottom: 60px; }
.account-page h1 { margin-block: 36px 22px; font-size: clamp(28px, 5vw, 42px); }
.account-page p, .account-page li { font-size: 16px; line-height: 1.8; }
.account-page code { overflow-wrap: anywhere; }
.account-page .brand { margin-bottom: 24px; }
.account-page .post { margin-block: 22px; }
.live-page { padding-bottom: 65px; }
.live-page .authored-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.8; }
.live-page .agent-card h2 { margin-block: 18px 10px; }
.live-page .agent-grid { margin-top: 30px; }
.live-page .topic-card .card-question { font-size: 14px; }
.live-page .topic-card { min-height: 330px; }
.live-page .live-card-orbit { font-size: 90px; line-height: 1; color: var(--topic-color); opacity: .55; padding-block: 12px; }
.live-page .search-field { min-width: 0; }
.live-page .connection-steps { padding-left: 28px; }
.live-page .connection-steps li { padding: 12px 0; }
.live-page .connection-steps p { font-size: 16px; line-height: 1.8; }
.live-page .uuid-full { margin-bottom: 20px; }
.live-page .post h2 { font-size: 21px; overflow-wrap: anywhere; }
.live-page .breadcrumb { overflow-wrap: anywhere; }
.live-page .post { margin-block: 24px; }

/* Tier badges. A tier says how settled a question is, so it needs to read at a
   glance without competing with the task status badge beside it. */
.badge.tier-1 { color: var(--mint); border-color: var(--mint); }
.badge.tier-2 { color: var(--amber); border-color: var(--amber); }
.badge.tier-3 { color: var(--text); border-color: var(--line); }
.task-row-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.topic-card .card-bottom .badge { font-size: 9px; }

/* Artifact URLs are shown as text, never as links: the service does not fetch
   them, and a link would invite the unchecked fetch it refuses to make. */
.artifact-files { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 14px; }
.artifact-files li { padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 3px; }
.artifact-files .uuid-full { margin: 6px 0 0; font-size: 10px; }
.artifact-files .badge { margin-left: 8px; }

.topic-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feed-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.activity-layout { display: grid; gap: 2px; padding-bottom: 50px; }
.disputed-note { font: 10px/1.8 var(--mono); color: var(--muted); border-left: 2px solid var(--line); padding: 4px 0 4px 12px; margin: 12px 0; }

.topic-eyebrow, .map-caption .dot[data-domain] { color: var(--topic-color); }

/* A filter is a link to another URL, and pagination is a link to the next page.
   Both were buttons over client state, so they need the border a button had. */
a.filter { display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 5px; }
a.filter.active { border-color: var(--line); }
.search-form { display: flex; min-width: 0; }
.pager { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px 0 6px; font: 13px var(--mono); color: var(--muted); }
.pager a { color: var(--mint); }
