/*
Theme Name: Coordinates
Theme URI: https://coordinatesofthought.com/
Description: The theme of Coordinates of Thought — a home for philosophy. Navy and gold, dark by default with a light mode; a forum-style topic list with "where it stands" for every topic; debates in For and Against columns; accepted answers first; thinker profiles; a calm reading page for the Journal. Works with the Coordinates Core plugin. All fonts are served from the site itself.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Author: Coordinates of Thought
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coordinates
Tags: dark-mode, accessibility-ready, rtl-language-support, two-columns, left-sidebar, threaded-comments, translation-ready
*/

/* ---------- Fonts (SIL Open Font License; files in assets/fonts) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/cormorant-garamond-latin-ext-500-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-sans-3-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-4-latin-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(assets/fonts/source-serif-4-latin-ext-wght-italic.woff2) format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

/* ---------- Colour tokens: dark is the default; light on request ---------- */
:root,
[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0F1521;
	--head: #0B1019;
	--panel: #161E2C;
	--panel-2: #1A2333;
	--border: #263043;
	--border-strong: #34405A;
	--text: #DCE1EA;
	--muted: #9AA4B5;
	--title: #F3F5F8;
	--chip: #232C3C;
	--active: #1C2638;
	--gold: #D4AF6A;          /* accent fills and lines */
	--gold-text: #E2C27D;     /* accent used as text (contrast ≥ 7:1 on --bg) */
	--on-gold: #0E1420;
	--against: #6B7A93;
	--ok: #8FD1A6;
	--ok-bg: rgba(143, 209, 166, 0.09);
	--warn: #E7B76A;
	--danger: #F0A3A3;
	--mark-ground: #1B2A44;
	--mark-line: rgba(212, 175, 106, 0.38);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--essay-chip-bg: #1E2B44;
	--essay-chip-fg: #9DBCEB;
}
[data-theme="light"] {
	color-scheme: light;
	--bg: #F6F4EF;
	--head: #FFFFFF;
	--panel: #FFFFFF;
	--panel-2: #FBFAF6;
	--border: #E1DCD0;
	--border-strong: #CFC8B8;
	--text: #1C2433;
	--muted: #4F596C;
	--title: #0E1A2E;
	--chip: #ECE8DE;
	--active: #ECE8DE;
	--gold: #C59A45;
	--gold-text: #7A5A14;     /* darker gold for text on light backgrounds (≥ 6:1) */
	--on-gold: #0E1420;
	--against: #8C97AB;
	--ok: #1F6B3A;
	--ok-bg: rgba(31, 107, 58, 0.07);
	--warn: #8A5A00;
	--danger: #A42B2B;
	--mark-ground: #1B3A6B;
	--mark-line: rgba(212, 175, 106, 0.45);
	--shadow: 0 10px 30px rgba(14, 26, 46, 0.12);
	--essay-chip-bg: #E8EEF7;
	--essay-chip-fg: #1B4E8F;
}

:root {
	--font-ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Nastaliq Urdu", sans-serif;
	--font-title: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Naskh Arabic", serif;
	--font-read: "Source Serif 4", "Iowan Old Style", Georgia, "Noto Naskh Arabic", "Noto Serif", serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--radius: 6px;
	--wrap: 1400px;
	--side: 264px;
	--gutter: 24px;
	--measure: 68ch;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16.5px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; accent-color: var(--gold); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(212, 175, 106, 0.35); }
h1, h2, h3, h4 { color: var(--title); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.coord-skip {
	position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
	background: var(--gold); color: var(--on-gold); font-weight: 700; padding: 10px 16px; border-radius: var(--radius);
}
.coord-skip:focus { top: 12px; }
.coord-muted { color: var(--muted); }
.coord-eyebrow {
	font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--muted); margin: 0 0 6px;
}
.coord-h1 { font-family: var(--font-title); font-weight: 600; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.coord-section-title { font-family: var(--font-title); font-weight: 600; font-size: 26px; margin: 34px 0 12px; }
.coord-mini-heading { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.coord-icon { display: block; flex: none; }

/* ---------- Buttons ---------- */
.coord-button,
.cot-compose button[type="submit"],
.coord-app input[type="submit"],
.comment-form .submit,
.coord-searchform button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 0 16px; border-radius: var(--radius);
	background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold);
	font-weight: 700; font-size: 15px; line-height: 1; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.coord-button:hover, .comment-form .submit:hover { filter: brightness(1.07); text-decoration: none; }
.coord-button--small { min-height: 38px; padding: 0 14px; }
.coord-button--outline { background: transparent; color: var(--gold-text); border-color: var(--gold); }
.coord-button--quiet { background: var(--panel); color: var(--text); border-color: var(--border); font-weight: 600; }
.coord-icon-button {
	width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; flex: none;
}
.coord-icon-button:hover { background: var(--active); text-decoration: none; }
.cot-link-button, .coord-reply-actions button, .cot-report summary {
	background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.cot-link-button:hover, .coord-reply-actions button:hover, .cot-report summary:hover { color: var(--gold-text); }

/* ---------- Header ---------- */
.coord-header { background: var(--head); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.admin-bar .coord-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .coord-header { top: 0; position: relative; } }
.coord-header-inner {
	max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
	display: flex; align-items: center; gap: 14px;
}
.coord-brand { display: flex; align-items: center; gap: 11px; color: var(--gold); text-decoration: none; min-width: 0; }
.coord-brand:hover { text-decoration: none; }
.coord-brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.coord-brand-name { font-family: var(--font-title); font-size: 25px; font-weight: 600; color: var(--title); white-space: nowrap; }
.coord-brand-tagline { font-family: var(--font-title); font-style: italic; font-weight: 500; font-size: 15px; color: var(--gold-text); margin-top: 4px; white-space: nowrap; }
.coord-search {
	flex: 1 1 280px; max-width: 460px; min-width: 0; margin-inline-start: 12px;
	display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px;
	background: var(--panel); border: 1px solid var(--border); border-radius: 8px; color: var(--muted);
}
.coord-search:focus-within { border-color: var(--gold); }
.coord-search input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: var(--text); font-size: 15px; }
.coord-search input:focus { outline: none; }
.coord-search input::placeholder { color: var(--muted); }
.coord-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.coord-menu-button { display: none; }
.coord-badge {
	position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.coord-me { display: block; border-radius: 6px; line-height: 0; }

/* Member marks (drawn by Coordinates Core) */
.cot-mark { display: block; flex: none; border-radius: 5px; }
.cot-mark-ground { fill: var(--mark-ground); }
.cot-mark-cross { stroke: var(--mark-line); stroke-width: 1; fill: none; }
.cot-mark-point { fill: #D4AF6A; }

/* ---------- Layout: left menu + main ---------- */
.coord-layout {
	max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
	display: grid; grid-template-columns: var(--side) minmax(0, 1fr); gap: 0 32px; align-items: start;
	min-height: calc(100vh - 140px);
}
.coord-main { padding: 20px 0 56px; min-width: 0; }
.coord-main:focus { outline: none; }

.coord-side {
	position: sticky; top: 65px; max-height: calc(100vh - 65px); overflow-y: auto; overscroll-behavior: contain;
	padding: 18px 18px 32px 0; padding-inline: 0 18px; border-inline-end: 1px solid var(--border);
	scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.admin-bar .coord-side { top: 97px; }
.coord-side-top { display: none; }
.coord-side-group { padding: 4px 0 12px; }
.coord-side-group + .coord-side-group { border-top: 1px solid var(--border); padding-top: 12px; }
.coord-side-heading {
	font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--muted); padding: 8px 10px 6px;
}
.coord-side-list { list-style: none; margin: 0; padding: 0; }
.coord-side-link, .coord-side-list a {
	display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius);
	font-size: 15.5px; color: var(--text); text-decoration: none; min-height: 36px; padding-block: 7px;
}
.coord-side-link:hover, .coord-side-list a:hover { background: var(--active); text-decoration: none; }
.coord-side-link[aria-current="page"] { background: var(--active); color: var(--title); font-weight: 700; }
.coord-side-icon { width: 22px; display: inline-flex; justify-content: center; color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.coord-side-link--start { color: var(--gold-text); font-weight: 600; }
.coord-swatch { width: 11px; height: 11px; border-radius: 2px; flex: 0 0 11px; display: inline-block; }
.coord-h1 .coord-swatch { width: 16px; height: 16px; flex-basis: 16px; }
.coord-scrim { display: none; }

/* ---------- Page heads, notices, breadcrumbs ---------- */
.coord-page-head { padding: 6px 0 18px; }
.coord-page-head .coord-muted { margin: 8px 0 0; max-width: 62ch; }
.coord-term-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.coord-term-desc { color: var(--muted); max-width: 70ch; margin-top: 8px; }
.coord-term-desc p:last-child { margin: 0; }
.coord-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.coord-subbranches ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.coord-subbranches a { display: inline-block; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 14.5px; background: var(--panel); }
.coord-subbranches a:hover { border-color: var(--gold); text-decoration: none; }
.coord-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.coord-crumbs li + li::before { content: "›"; margin-inline-end: 4px; opacity: 0.7; }
[dir="rtl"] .coord-crumbs li + li::before { content: "‹"; }
.coord-notice, .cot-notice {
	border: 1px solid var(--border); border-inline-start: 3px solid var(--gold); background: var(--panel);
	padding: 12px 16px; border-radius: var(--radius); margin: 0 0 18px;
}
.coord-notice p:last-child, .cot-notice p:last-child { margin: 0; }
.coord-notice--ok, .cot-notice-ok { border-inline-start-color: var(--ok); }
.cot-notice-error { border-inline-start-color: var(--danger); }
.coord-welcome {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
	padding: 14px 18px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 8px;
	background: linear-gradient(90deg, rgba(212, 175, 106, 0.10), transparent 70%), var(--panel);
}
.coord-welcome p { margin: 0; max-width: 72ch; }
.coord-welcome-link { color: var(--gold-text); font-weight: 700; white-space: nowrap; }

/* ---------- Tabs and filters ---------- */
.coord-list-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 20px; border-bottom: 1px solid var(--border); }
.coord-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.coord-tabs a {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 2px; margin-bottom: -1px;
	border-bottom: 2px solid transparent; font-size: 16.5px; font-weight: 500; color: var(--text); text-decoration: none;
}
.coord-tabs a:hover { color: var(--title); border-bottom-color: var(--border-strong); }
.coord-tabs a.is-current { color: var(--gold-text); font-weight: 700; border-bottom-color: var(--gold); }
.coord-list-new { margin-inline-start: auto; margin-bottom: 8px; }
.coord-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0 6px; }
.coord-filter {
	display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 4px 0 12px; padding-inline: 12px 4px;
	border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); font-size: 14.5px;
}
.coord-filter:focus-within { border-color: var(--gold); }
.coord-filter span { color: var(--muted); }
.coord-filter select { border: 0; background: transparent; font-weight: 600; padding: 6px 4px; max-width: 220px; cursor: pointer; }
.coord-filter select:focus { outline: none; }
.coord-filter option { background: var(--panel); color: var(--text); }
.js .coord-filters-apply { display: none; }
.coord-filters-clear { font-size: 14px; color: var(--gold-text); margin-inline-start: 4px; }

/* ---------- Topic list ---------- */
.coord-list-head, .coord-row {
	display: grid; grid-template-columns: 36px minmax(0, 1fr) 150px 64px 70px; gap: 16px; align-items: center;
}
.coord-list-head {
	padding: 12px; border-bottom: 2px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted);
}
.coord-c, .coord-row-num { text-align: center; }
.coord-list { list-style: none; margin: 0; padding: 0; }
.coord-row { padding: 15px 12px; border-bottom: 1px solid var(--border); position: relative; }
.coord-row:hover { background: color-mix(in srgb, var(--panel) 55%, transparent); }
.coord-row.is-pinned { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.coord-row-mark { display: block; line-height: 0; align-self: start; margin-top: 2px; }
.coord-row-mark--thinker { color: var(--gold); }
.coord-row-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.coord-row-title { font-family: var(--font-ui); font-size: 18.5px; font-weight: 600; line-height: 1.3; color: var(--title); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.coord-row-title a { color: inherit; overflow-wrap: anywhere; }
.coord-row-title a::after { content: ""; position: absolute; inset: 0; } /* whole row is clickable */
.coord-row-title a:focus-visible { outline: none; }
.coord-row:has(.coord-row-title a:focus-visible) { outline: 2px solid var(--gold); outline-offset: -2px; }
.coord-row a:not(.coord-row-title a), .coord-row form, .coord-row button { position: relative; z-index: 1; }
.is-new .coord-row-title { font-weight: 700; }
.coord-new { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-gold); background: var(--gold); padding: 1px 6px; border-radius: 3px; }
.coord-pin { color: var(--muted); display: inline-flex; align-self: center; }
.coord-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; font-size: 14px; color: var(--muted); }
.coord-row-by { color: var(--muted); }
.coord-row-labels, .coord-labels { display: contents; }
.coord-row-excerpt { margin: 2px 0 0; font-size: 15.5px; color: var(--muted); max-width: 70ch; }
.coord-row-pulse { font-size: 13.5px; color: var(--muted); }
.coord-num { display: block; font-size: 15.5px; font-weight: 700; color: var(--text); }
.coord-num-label { display: none; }
.coord-row-activity { font-size: 14.5px; color: var(--text); }
.coord-row--simple { grid-template-columns: minmax(0, 1fr); }

/* Labels and chips */
.coord-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.coord-label--branch { color: var(--text); }
.coord-label--thinker { font-family: var(--font-title); font-size: 16.5px; font-weight: 600; color: var(--text); }
.coord-label--tag { font-family: var(--font-mono); font-size: 12.5px; }
.coord-chip {
	display: inline-block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 1px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted); line-height: 1.6; white-space: nowrap;
}
.coord-chip--question { color: var(--text); border-color: var(--muted); }
.coord-chip--debate { color: var(--gold-text); border-color: var(--gold); }
.coord-chip--journal { background: var(--essay-chip-bg); color: var(--essay-chip-fg); border-color: transparent; }
.coord-chip--reading-group { color: var(--text); }
.coord-chip--thinker { color: var(--gold-text); border-color: transparent; padding-inline: 0; }
.coord-chip--soft { border-style: dashed; }

/* Where it stands (markup from Coordinates Core) */
.cot-stance { display: flex; flex-direction: column; gap: 5px; }
.cot-stance-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--against); }
.cot-stance-for { background: var(--gold); display: block; height: 100%; }
.cot-stance-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.cot-stance-legend span:first-child { color: var(--gold-text); font-weight: 600; }
.cot-answered { color: var(--ok); font-weight: 700; }
.cot-open, .cot-last { color: var(--muted); }

/* Pagination */
.coord-pages { display: flex; justify-content: center; padding: 26px 0 0; }
.coord-pages ul, .coord-pages .page-numbers:is(ul) { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.coord-pages a, .coord-pages span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px;
	border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600;
}
.coord-pages .current { background: var(--active); color: var(--title); border-color: var(--border-strong); }
.coord-pages .dots { border: 0; }
.coord-empty { padding: 32px 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.coord-empty a { color: var(--gold-text); font-weight: 600; }

/* ---------- Reading text ---------- */
.coord-prose { font-family: var(--font-read); font-size: 18px; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.coord-prose > * { max-width: var(--measure); }
.coord-prose a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.coord-prose h2 { font-family: var(--font-title); font-weight: 600; font-size: 28px; margin: 1.6em 0 0.5em; }
.coord-prose h3 { font-family: var(--font-title); font-weight: 600; font-size: 23px; margin: 1.4em 0 0.4em; }
.coord-prose blockquote {
	margin: 1.3em 0; padding: 0.2em 0 0.2em 1.1em; padding-inline: 1.1em 0; border-inline-start: 3px solid var(--gold);
	color: var(--muted); font-style: italic;
}
.coord-prose ul, .coord-prose ol { padding-inline-start: 1.4em; }
.coord-prose li { margin: 0.3em 0; }
.coord-prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--chip); padding: 0.1em 0.35em; border-radius: 3px; }
.coord-prose pre { background: var(--panel); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius); overflow-x: auto; }
.coord-prose img { border-radius: 4px; }
.coord-prose figcaption, .wp-caption-text { font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.coord-prose table { border-collapse: collapse; width: 100%; font-family: var(--font-ui); font-size: 15.5px; }
.coord-prose th, .coord-prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: start; }
.coord-prose hr { max-width: 12ch; margin: 2em auto; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.coord-prose [dir="rtl"], [dir="rtl"] .coord-prose { font-family: "Noto Naskh Arabic", "Noto Nastaliq Urdu", var(--font-read); }

/* ---------- Topic page ---------- */
.coord-topic { max-width: 980px; }
.coord-topic-head { padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.coord-topic-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.coord-topic-title { font-family: var(--font-title); font-weight: 600; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.005em; }
.coord-thesis-label {
	display: inline-block; vertical-align: middle; margin-inline-end: 6px; transform: translateY(-4px);
	font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--gold-text); border: 1px solid var(--gold); border-radius: 3px; padding: 2px 7px;
}
.coord-byline { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.coord-byline-mark { line-height: 0; }
.coord-byline-name { font-weight: 700; color: var(--title); }
.coord-byline-meta { font-size: 14px; color: var(--muted); }
.coord-byline-meta a { color: var(--muted); }
.coord-level {
	display: inline-block; margin-inline-start: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--gold-text); vertical-align: 1px;
}
.coord-topic-head .coord-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 14.5px; }
.coord-topic-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; margin-top: 14px; }
.cot-follow {
	display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: var(--radius);
	border: 1px solid var(--gold); background: transparent; color: var(--gold-text); font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.cot-follow.is-on { background: var(--gold); color: var(--on-gold); }
.cot-follow-form, .cot-helpful-form, .cot-accept-form { display: inline; margin: 0; }
.coord-edit a { display: inline-flex; align-items: center; min-height: 38px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.cot-report { font-size: 14px; }
.cot-report summary { list-style: none; min-height: 38px; display: inline-flex; align-items: center; }
.cot-report summary::-webkit-details-marker { display: none; }
.cot-report[open] { flex-basis: 100%; }
.cot-report form {
	display: grid; gap: 10px; max-width: 420px; margin-top: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.cot-report label { display: grid; gap: 4px; color: var(--muted); }
.cot-report select, .cot-report textarea { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; color: var(--text); }
.cot-report button { justify-self: start; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; font-weight: 700; cursor: pointer; }
.coord-stance-panel { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); margin-bottom: 22px; max-width: 520px; }
.coord-stance-panel .cot-stance-bar { height: 10px; }
.coord-stance-panel .cot-stance-legend { font-size: 14px; }
.coord-topic-body { padding-bottom: 8px; }

/* ---------- Replies ---------- */
.coord-replies-section { max-width: 980px; border-top: 1px solid var(--border); margin-top: 26px; }
.coord-replies, .coord-replies .children { list-style: none; margin: 0; padding: 0; }
.coord-replies .children { margin-inline-start: 22px; padding-inline-start: 16px; border-inline-start: 1px solid var(--border); }
.coord-reply-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.coord-replies .children .coord-reply-body { border-bottom: 0; padding-bottom: 6px; }
.coord-reply-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.coord-reply-mark { line-height: 0; }
.coord-reply-name { font-weight: 700; color: var(--title); }
.coord-reply-time { color: var(--muted); font-size: 14px; }
.coord-reply-text { font-size: 17px; margin-top: 8px; }
.coord-reply-text p:last-child { margin-bottom: 0.4em; }
.coord-reply-held { font-size: 14px; color: var(--warn); margin: 8px 0 0; }
.coord-reply-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-top: 4px; font-size: 14px; }
.coord-reply-actions a { color: var(--muted); font-weight: 600; }
.coord-reply-actions a:hover { color: var(--gold-text); }
.cot-helpful { display: inline-flex; align-items: center; gap: 6px; }
.cot-helpful::before { content: "◆"; font-size: 10px; color: var(--muted); }
.cot-helpful.is-on { color: var(--gold-text); }
.cot-helpful.is-on::before { color: var(--gold); }
.cot-helpful-count { color: var(--muted); font-weight: 600; }
.cot-reply-badges { margin: 0 0 6px !important; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-ui); }
.cot-side, .cot-accepted, .cot-level {
	font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 1px 7px; border-radius: 3px; border: 1px solid var(--border); color: var(--muted);
}
.cot-side-for { color: var(--gold-text); border-color: var(--gold); }
.cot-side-against { color: var(--text); border-color: var(--against); }
.cot-side-revision, .cot-side-response { color: var(--essay-chip-fg); background: var(--essay-chip-bg); border-color: transparent; }
.cot-accepted { color: var(--ok); border-color: var(--ok); }
.cot-level { border-color: transparent; padding-inline: 0; }
.cot-mention { color: var(--gold-text); font-family: var(--font-ui); font-weight: 600; text-decoration: none !important; }
.coord-col-title { font-family: var(--font-title); font-weight: 600; font-size: 22px; margin: 22px 0 4px; display: flex; align-items: center; gap: 10px; }
.coord-col-count { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.coord-accepted-block { border: 1px solid var(--ok); background: var(--ok-bg); border-radius: 8px; padding: 0 16px 4px; margin: 14px 0 6px; }
.coord-accepted-block .coord-col-title { color: var(--ok); font-size: 19px; margin-top: 14px; }
.coord-accepted-block .coord-reply-body { border-bottom: 0; }
.coord-debate-author { border: 1px solid var(--border); border-radius: 8px; padding: 0 16px 4px; margin: 14px 0; background: var(--panel); }
.coord-debate-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.coord-debate-col--for > .coord-col-title { color: var(--gold-text); }
.coord-debate-col--for > .coord-col-title::before, .coord-debate-col--against > .coord-col-title::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--gold); }
.coord-debate-col--against > .coord-col-title::before { background: var(--against); }
.coord-empty-col { color: var(--muted); padding: 14px 0; }
.coord-closed { color: var(--muted); margin-top: 20px; }

/* Reply form */
#respond { margin-top: 26px; padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.coord-form-title { font-family: var(--font-title); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.coord-form-title small { font-family: var(--font-ui); font-size: 14px; margin-inline-start: 10px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label, .cot-side-choice label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .cot-side-choice select,
.coord-app input[type="text"], .coord-app input[type="search"], .coord-app input[type="email"], .coord-app textarea, .coord-app select,
.coord-searchform input {
	width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-size: 16px;
}
.comment-form textarea { font-family: var(--font-read); font-size: 17px; line-height: 1.6; min-height: 150px; resize: vertical; }
.comment-form textarea:focus, .coord-app input:focus, .coord-app textarea:focus, .coord-app select:focus, .cot-side-choice select:focus, .coord-searchform input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.cot-side-choice select { max-width: 320px; }
.coord-help { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.coord-respond-guest p:first-child { color: var(--muted); }
.coord-respond-guest .coord-button { margin-inline-end: 8px; }

/* Spam honeypot from Coordinates Core: never visible */
.cot-hp { position: absolute !important; left: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Thinker profile ---------- */
.coord-thinker { max-width: 980px; }
.coord-thinker-head { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 26px; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.coord-portrait img, .coord-portrait-blank { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); display: block; }
.coord-portrait-blank { display: flex; align-items: center; justify-content: center; background: var(--mark-ground); color: var(--gold); }
.coord-uid { font-family: var(--font-mono); }
.coord-thinker-lede { font-family: var(--font-read); font-size: 18.5px; color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.cot-profile-facts { font-family: var(--font-ui); font-size: 15.5px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); max-width: var(--measure); }
.cot-profile-facts p { margin: 0 0 6px; }
.cot-profile-facts p:last-child { margin: 0; }
.cot-native-name { font-family: var(--font-title); font-size: 24px; color: var(--title); }
.cot-aliases, .cot-dates { color: var(--muted); }
.cot-labels span { color: var(--muted); }
.cot-connected { list-style: none; padding: 0 !important; font-family: var(--font-ui); font-size: 16px; }
.cot-connected li { padding: 10px 0; border-bottom: 1px solid var(--border); margin: 0 !important; }
.cot-connected a { color: var(--title); font-weight: 600; text-decoration: none; }
.cot-connected .cot-format { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-inline-end: 6px; }
.cot-connected .cot-meta { display: block; color: var(--muted); font-size: 14px; }
.cot-portrait-credit { font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.cot-empty { color: var(--muted); font-family: var(--font-ui); font-size: 16px; }

/* Thinkers A–Z, indexes */
.coord-letters ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.coord-letters a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); font-family: var(--font-title); font-weight: 600; font-size: 19px; }
.coord-letter { scroll-margin-top: 80px; }
.coord-letter-heading { font-family: var(--font-title); font-size: 32px; color: var(--gold-text); margin: 22px 0 8px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.coord-thinker-grid, .coord-index-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.coord-thinker-card, .coord-index-grid a {
	display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); height: 100%;
}
.coord-index-grid a { flex-direction: row; justify-content: space-between; align-items: center; }
.coord-thinker-card:hover, .coord-index-grid a:hover { border-color: var(--gold); text-decoration: none; }
.coord-thinker-card-name { font-family: var(--font-title); font-weight: 600; font-size: 20px; color: var(--title); }
.coord-thinker-card-dates { font-size: 14px; color: var(--muted); }
.coord-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }
.coord-index-branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.coord-index-branch { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); padding: 14px 16px; }
.coord-index-title { font-family: var(--font-title); font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.coord-index-title a { display: inline-flex; align-items: center; gap: 10px; }
.coord-index-list { list-style: none; margin: 10px 0 0; padding: 0; }
.coord-index-list li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--border); font-size: 15.5px; }

/* ---------- Journal essay ---------- */
.coord-essay { max-width: 760px; margin-inline: auto; }
.coord-essay-head { padding: 10px 0 22px; }
.coord-essay-title { font-family: var(--font-title); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; }
.coord-essay-dek { font-family: var(--font-read); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.coord-essay-head .coord-labels { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 14.5px; }
.coord-essay-figure { margin: 0 0 26px; }
.coord-essay-figure img { width: 100%; border-radius: 6px; }
.coord-essay-body { font-size: 19.5px; line-height: 1.75; }
.coord-essay-body > p:first-of-type::first-letter { font-family: var(--font-title); font-size: 3.4em; float: left; line-height: 0.8; margin: 0.08em 0.08em 0 0; color: var(--gold-text); font-weight: 600; }
[dir="rtl"] .coord-essay-body > p:first-of-type::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; }
.coord-essay-foot { margin-top: 34px; }
.coord-author-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.coord-author-card > div { flex: 1 1 240px; }
.coord-author-card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.coord-essay ~ .coord-replies-section { margin-inline: auto; max-width: 760px; }

/* ---------- Pages, member area, composer (markup from Coordinates Core) ---------- */
.coord-page { max-width: 980px; }
.coord-page .coord-prose { max-width: none; }
.coord-app { font-size: 16px; }
.coord-app h2 { font-family: var(--font-title); font-size: 24px; margin: 22px 0 10px; }
.coord-app label { font-weight: 600; }
.coord-app fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin: 0 0 14px; }
.coord-app legend { font-weight: 700; padding: 0 6px; }
.coord-app details { margin: 10px 0; }
.coord-app summary { cursor: pointer; font-weight: 700; color: var(--gold-text); }
.cot-compose { display: grid; gap: 14px; }
.cot-compose p { margin: 0; }
.cot-check { display: inline-flex; align-items: center; gap: 6px; margin: 4px 14px 4px 0; margin-inline: 0 14px; font-weight: 400 !important; }
.cot-compose textarea { font-family: var(--font-read); font-size: 17px; line-height: 1.6; min-height: 260px; }
.cot-compose [role="toolbar"] { display: flex; flex-wrap: wrap; gap: 4px; }
.cot-compose [role="toolbar"] button, .cot-compose [data-cot-tab] {
	min-height: 36px; padding: 0 10px; border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); cursor: pointer; font-weight: 600;
}
.cot-compose [data-cot-tab][aria-selected="true"] { border-color: var(--gold); color: var(--gold-text); }
.cot-compose [data-cot-status] { color: var(--muted); font-size: 14px; }
.cot-member-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cot-member-name { font-family: var(--font-title); font-weight: 600; font-size: 36px; }
.cot-member-level { color: var(--muted); margin: 4px 0 0; }
.cot-tabs, .cot-member-tabs { display: flex; flex-wrap: wrap; gap: 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; list-style: none; padding: 0; }
.cot-tabs a, .cot-member-tabs a { display: inline-flex; min-height: 44px; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.cot-tabs a[aria-current="page"], .cot-member-tabs a[aria-current="page"] { color: var(--gold-text); border-bottom-color: var(--gold); }
.coord-app ul { padding-inline-start: 0; list-style: none; }
.coord-app li { padding: 9px 0; border-bottom: 1px solid var(--border); }

/* ---------- Member public page, search, 404 ---------- */
.coord-member-public { display: flex; gap: 20px; align-items: flex-start; padding: 6px 0 20px; border-bottom: 1px solid var(--border); }
.coord-member-about { font-family: var(--font-read); font-size: 17.5px; max-width: 62ch; margin: 10px 0 0; }
.coord-search-group .coord-section-title { margin-top: 22px; }
.coord-searchform { display: flex; gap: 8px; max-width: 560px; margin-top: 14px; }
.coord-searchform input { flex: 1; }
.coord-404 { max-width: 640px; padding: 30px 0; }
.coord-404 .coord-searchform { margin: 18px 0; }

/* ---------- Footer ---------- */
.coord-footer { border-top: 1px solid var(--border); background: var(--head); }
.coord-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; font-size: 14.5px; color: var(--muted); }
.coord-footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.coord-footer-note { margin: 0 0 0 auto; margin-inline-start: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.coord-list-head, .coord-row { grid-template-columns: 36px minmax(0, 1fr) 130px 56px 56px; gap: 12px; }
	.coord-brand-tagline { display: none; }
}
@media (max-width: 1024px) {
	.coord-layout { grid-template-columns: minmax(0, 1fr); }
	.coord-menu-button { display: inline-flex; }
	.js .coord-side {
		position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 50; width: min(320px, 86vw); max-height: none; height: 100%;
		background: var(--head); padding: 12px 16px 32px; border-inline-end: 1px solid var(--border); box-shadow: var(--shadow);
		transform: translateX(-105%); transition: transform 0.22s ease; visibility: hidden;
	}
	[dir="rtl"].js .coord-side { transform: translateX(105%); }
	.js .coord-side.is-open { transform: none; visibility: visible; }
	.js .coord-side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px; }
	.coord-side-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
	.coord-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(5, 8, 14, 0.55); }
	/* Without JavaScript the menu simply sits above the content. */
	.no-js .coord-side { position: static; max-height: none; border-inline-end: 0; border-bottom: 1px solid var(--border); padding: 12px 0; }
}
@media (max-width: 760px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.coord-header-inner { flex-wrap: wrap; gap: 8px 10px; padding-block: 8px; }
	.coord-brand-name { font-size: 21px; }
	.coord-brand .coord-logo { width: 28px; height: 28px; }
	.coord-search { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
	.coord-new-topic span { display: none; }
	.coord-new-topic { padding: 0 10px; }
	.coord-list-head { display: none; }
	.coord-row {
		grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "mark main main" "mark pulse stats";
		gap: 8px 12px; padding: 14px 4px;
	}
	.coord-row-mark { grid-area: mark; }
	.coord-row-mark .cot-mark { width: 32px; height: 32px; }
	.coord-row-main { grid-area: main; }
	.coord-row-pulse { grid-area: pulse; max-width: 220px; }
	.coord-row-replies { grid-area: stats; display: flex; gap: 4px; align-items: baseline; justify-self: end; }
	.coord-row-activity { grid-area: stats; justify-self: end; align-self: end; visibility: hidden; height: 0; }
	.coord-num { display: inline; font-size: 14.5px; }
	.coord-num-label { display: inline; font-size: 13.5px; color: var(--muted); }
	.coord-row-title { font-size: 17.5px; }
	.coord-list-new { display: none; }
	.coord-tabs ul { gap: 0 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.coord-tabs { max-width: 100%; }
	.coord-tabs a { white-space: nowrap; font-size: 15.5px; }
	.coord-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
	.coord-filter { flex: none; }
	.coord-debate-cols { grid-template-columns: minmax(0, 1fr); }
	.coord-thinker-head { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
	.coord-portrait img, .coord-portrait-blank { width: 96px; }
	.coord-prose { font-size: 17px; }
	.coord-essay-body { font-size: 18px; }
	.coord-replies .children { margin-inline-start: 8px; padding-inline-start: 10px; }
	.coord-member-public { flex-direction: column; }
	.coord-footer-note { margin-inline-start: 0; }
}
@media (max-width: 420px) {
	.coord-header-actions .coord-button--outline { padding: 0 10px; }
	.coord-brand-name { font-size: 19px; }
}

/* ---------- Motion, print ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.coord-header, .coord-side, .coord-footer, .coord-list-bar, .coord-filters, #respond, .coord-topic-actions, .coord-reply-actions, .coord-skip { display: none !important; }
	.coord-layout { display: block; }
	body { background: #fff; color: #000; }
	.coord-prose a { color: #000; }
}

/* ---------- Composer (Coordinates Core) ---------- */
.cot-compose { gap: 18px; }
.cot-step { border: 1px solid var(--border) !important; border-radius: 10px !important; padding: 16px 18px 18px !important; background: var(--panel); margin: 0 !important; }
.cot-step legend { font-family: var(--font-title); font-size: 22px; font-weight: 600; color: var(--title); padding: 0 8px !important; display: flex; align-items: center; gap: 10px; }
.cot-step legend label { font-weight: 600; }
.cot-step-n { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--gold); color: var(--on-gold); font-family: var(--font-ui); font-size: 14px; font-weight: 700; }
.cot-format-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cot-format-choice { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 42px; padding-inline: 42px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: var(--bg); }
.cot-format-choice input { position: absolute; inset-inline-start: 14px; top: 17px; accent-color: var(--gold); width: 16px; height: 16px; }
.cot-format-choice:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cot-format-choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.cot-format-title { font-weight: 700; color: var(--title); }
.cot-format-desc { font-size: 14px; color: var(--muted); font-weight: 400; }
.cot-essay-note, .cot-hint, .cot-rules { font-size: 14px; color: var(--muted); margin: 10px 0 0 !important; }
.cot-essay-note a, .coord-empty a, .coord-welcome-link { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.cot-question-kind { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.cot-question-kind label { font-weight: 400; }
.cot-label { display: block; font-weight: 700; margin-bottom: 6px !important; }
.cot-required { color: var(--muted); font-weight: 400; }
.cot-compose input[type="text"], .cot-compose textarea, .cot-compose select, .cot-settings-form input, .cot-settings-form textarea {
	width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-size: 16px;
}
.cot-compose input[type="text"]:focus, .cot-compose textarea:focus, .cot-compose select:focus, .cot-settings-form input:focus, .cot-settings-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
#cot_title { font-family: var(--font-title); font-size: 24px; font-weight: 600; padding: 8px 12px; }
.cot-editor { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cot-editor textarea { border: 0 !important; border-radius: 0 !important; }
.cot-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.cot-toolbar button { min-width: 36px; min-height: 34px; padding: 0 10px; border: 1px solid transparent; background: transparent; border-radius: 5px; cursor: pointer; color: var(--text); font-weight: 600; }
.cot-toolbar button:hover { background: var(--active); }
.cot-toolbar button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-text); }
.cot-toolbar-gap { flex: 1; }
.cot-preview { padding: 14px 16px; font-family: var(--font-read); font-size: 17px; line-height: 1.7; min-height: 200px; background: var(--bg); }
.cot-similar { margin-top: 10px; padding: 10px 14px; border-inline-start: 3px solid var(--gold); background: var(--bg); border-radius: 4px; }
.cot-similar ul { margin: 6px 0 0; padding-inline-start: 18px; list-style: disc; }
.cot-similar li { border: 0 !important; padding: 2px 0 !important; }
.cot-similar a { color: var(--gold-text); }
.cot-more-labels { border-top: 1px dashed var(--border); padding-top: 10px; }
.cot-more-labels summary { color: var(--gold-text); font-weight: 700; cursor: pointer; min-height: 32px; }
.cot-checks { margin: 12px 0; }
.cot-compose-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cot-compose-foot .cot-rules { flex-basis: 100%; margin: 0 !important; }
.cot-button-primary, .cot-button-quiet {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: var(--radius);
	font-weight: 700; font-size: 15.5px; cursor: pointer; border: 1px solid var(--gold);
}
.cot-button-primary { background: var(--gold); color: var(--on-gold); }
.cot-button-quiet { background: transparent; color: var(--gold-text); }
.cot-compose-status:empty { display: none; }
.cot-compose-status { color: var(--muted); font-size: 14px; }

/* ---------- Your page (Coordinates Core) ---------- */
.cot-member-home .cot-tabs { gap: 0 22px; }
.cot-tabs .cot-badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 10px; background: var(--gold); color: var(--on-gold); font-size: 12px; line-height: 20px; text-align: center; }
.cot-tab-panel h2 { display: flex; align-items: center; gap: 8px; }
.cot-count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 500; }
.cot-notifications li, .cot-my-topics li, .cot-following li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.cot-notifications li.is-new { border-inline-start: 3px solid var(--gold); padding-inline-start: 10px; }
.cot-notifications a, .cot-my-topics a, .cot-following a { color: var(--title); font-weight: 600; }
.cot-notifications time, .cot-meta { color: var(--muted); font-size: 14px; }
.cot-following .cot-follow-form { margin-inline-start: auto; }
.cot-settings-form { display: grid; gap: 14px; max-width: 560px; }
.cot-settings-form fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 0; }
.cot-radio { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-weight: 400 !important; }
.cot-radio input, .cot-check input { accent-color: var(--gold); }
.cot-inline-form { display: inline; }

/* ---------- Badges ---------- */
.coord-badge-tag {
	display: inline-block; margin-inline-start: 8px; padding: 1px 7px; border-radius: 3px; vertical-align: 2px;
	background: var(--gold); color: var(--on-gold); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}
.coord-h1 .coord-badge-tag { font-size: 12px; vertical-align: middle; }

/* ---------- Account pages: Join, Sign in, Forgot password ---------- */
.coord-page--account { max-width: 520px; margin-inline: auto; padding-top: 12px; }
.coord-page--account .coord-page-head { text-align: center; }
.cot-account { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px 18px; box-shadow: var(--shadow); }
.cot-account-lede { color: var(--muted); margin: 0 0 16px !important; }
.cot-account-form { display: grid; gap: 14px; margin-bottom: 8px; }
.cot-account-form p { margin: 0; }
.cot-account-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.cot-account-form input[type="text"], .cot-account-form input:not([type]), .cot-account-form input[type="email"], .cot-account-form input[type="password"] {
	width: 100%; min-height: 44px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; color: var(--text); font-size: 16px;
}
.cot-account-form input:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.cot-account-form .cot-hint { display: block; margin-top: 6px !important; }
.cot-check-line label { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.cot-check-line input { margin-top: 4px; accent-color: var(--gold); }
.cot-account-form .cot-button-primary { width: 100%; }
.cot-account-link { display: inline-block; margin-top: 10px; color: var(--gold-text); font-size: 14.5px; }
.cot-account-alt { text-align: center; color: var(--muted); margin: 14px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--border); }
.cot-account-alt a, .cot-account a:not(.cot-button-primary):not(.cot-button-quiet) { color: var(--gold-text); font-weight: 600; }
.cot-account h2 { font-family: var(--font-title); font-size: 21px; margin: 18px 0 8px; }
.cot-account-box p { margin: 0 0 12px; }

/* ---------- Members directory ---------- */
.coord-filter input[type="search"] { border: 0; background: transparent; font-weight: 600; padding: 6px 4px; min-width: 0; width: 180px; }
.coord-filter input[type="search"]:focus { outline: none; }
.coord-people { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.coord-person { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); height: 100%; }
.coord-person:hover { border-color: var(--gold); text-decoration: none; }
.coord-person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.coord-person-name { font-weight: 700; color: var(--title); font-size: 16.5px; }
.coord-person-meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.coord-person-meta .coord-badge-tag { font-size: 10px; }
.coord-person-stats { font-size: 13.5px; color: var(--muted); }

/* ---------- Branches overview (like a forum's category list) ---------- */
.coord-branch-head, .coord-branch-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 110px minmax(0, 1fr); gap: 20px; }
.coord-branch-head { padding: 10px 14px; border-bottom: 2px solid var(--border); font-size: 14px; font-weight: 600; color: var(--muted); }
.coord-branch-list { list-style: none; margin: 0; padding: 0; }
.coord-branch-row { padding: 16px 14px; border-bottom: 1px solid var(--border); border-inline-start: 4px solid var(--branch, var(--gold)); align-items: start; }
.coord-branch-name { font-family: var(--font-title); font-size: 24px; font-weight: 600; margin: 0; }
.coord-branch-name a { display: inline-flex; align-items: center; gap: 10px; }
.coord-branch-desc { margin: 6px 0 0; color: var(--text); }
.coord-branch-children { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.coord-branch-children a { color: var(--muted); }
.coord-branch-children a:hover { color: var(--gold-text); }
.coord-branch-count { text-align: center; display: flex; flex-direction: column; align-items: center; }
.coord-branch-count strong { font-size: 22px; color: var(--title); line-height: 1.1; }
.coord-branch-count span { font-size: 13px; color: var(--muted); }
.coord-branch-all { margin-top: 4px; }
.coord-branch-latest { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.coord-branch-latest a { color: var(--gold-text); }
.coord-side-heading a { color: inherit; }
@media (max-width: 760px) {
	.coord-branch-head { display: none; }
	.coord-branch-row { grid-template-columns: minmax(0, 1fr) auto; }
	.coord-branch-latest { grid-column: 1 / -1; }
	.coord-page--account { padding-top: 0; }
	.cot-account { padding: 18px 16px; }
}
.coord-page--account .coord-h1 { justify-content: center; }
