/* Thought Academic Review — an academic register: white, dark grey, soft
 * blue. Serif reading typography, wide measure, no marketing color. Fully
 * namespaced under .thought-acad; never leaks into the rest of the theme.
 * Dark mode via prefers-color-scheme. */

.thought-acad {
	--acad-bg: #ffffff;
	--acad-surface: #f7f8fa;
	--acad-ink: #23272d;
	--acad-grey: #5b6470;
	--acad-blue: #3f5f8a;
	--acad-blue-soft: #eef3f9;
	--acad-line: #e3e7ec;
	--acad-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--acad-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	margin: 0 auto;
	padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 36px) 48px;
	max-width: 1200px;
	background: var(--acad-bg);
	color: var(--acad-ink);
	font: 400 18px/1.75 var(--acad-serif);
	box-sizing: border-box;
}

.thought-acad *, .thought-acad *::before, .thought-acad *::after { box-sizing: inherit; }

@media (prefers-color-scheme: dark) {
	.thought-acad {
		--acad-bg: #14171b;
		--acad-surface: #1a1e24;
		--acad-ink: #e6e8eb;
		--acad-grey: #9aa3ad;
		--acad-blue: #8fb0d9;
		--acad-blue-soft: #1d2530;
		--acad-line: #2a3038;
	}
}

/* ---- Type ------------------------------------------------------------- */
.thought-acad h1, .thought-acad h2, .thought-acad h3 {
	margin: 0;
	font-family: var(--acad-serif);
	font-weight: 400;
	color: var(--acad-ink);
	letter-spacing: 0;
}

.thought-acad h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; }
.thought-acad h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; }
.thought-acad h3 { font-size: 19px; line-height: 1.35; }

.thought-acad-eyebrow {
	margin: 0 0 14px;
	color: var(--acad-blue);
	font: 700 11px/1 var(--acad-sans);
	letter-spacing: .18em;
	text-transform: uppercase;
}

.thought-acad-sub { margin: 10px 0 0; color: var(--acad-grey); font-size: 16px; }

/* ---- Hero ------------------------------------------------------------- */
.thought-acad-hero { padding-bottom: clamp(26px, 4vw, 42px); border-bottom: 1px solid var(--acad-line); }

.thought-acad-lede { margin: 22px 0 0; max-width: 62ch; font-size: 20px; color: var(--acad-ink); }

.thought-acad-thesis {
	margin: 26px 0 0;
	padding-left: 18px;
	border-left: 2px solid var(--acad-blue);
	color: var(--acad-blue);
	font-size: 20px;
	font-style: italic;
}

/* ---- Sections ---------------------------------------------------------- */
.thought-acad-section { padding: clamp(28px, 4vw, 44px) 0 0; }

.thought-acad-prose { max-width: 66ch; }
.thought-acad-prose p { margin: 18px 0 0; }

/* ---- Principle / objective cards ---------------------------------------- */
.thought-acad-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
	margin-top: 26px;
}

.thought-acad-card {
	padding: 26px 28px;
	border: 1px solid var(--acad-line);
	border-radius: 6px;
	background: var(--acad-surface);
}

.thought-acad-card h3 { margin-bottom: 10px; }
.thought-acad-card p { margin: 0; color: var(--acad-grey); font-size: 16px; }

.thought-acad-card-accent { border-top: 2px solid var(--acad-blue); }

/* ---- Methodology timeline ------------------------------------------------ */
.thought-acad-timeline {
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.thought-acad-timeline::before {
	content: "";
	position: absolute;
	left: 17px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: var(--acad-line);
}

.thought-acad-timeline li {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 18px;
	padding: 0 0 26px;
}

.thought-acad-timeline li:last-child { padding-bottom: 0; }

.thought-acad-timeline-marker {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--acad-line);
	border-radius: 50%;
	background: var(--acad-bg);
	color: var(--acad-blue);
	font: 700 12px/1 var(--acad-sans);
}

.thought-acad-timeline h3 { padding-top: 6px; }
.thought-acad-timeline p { margin: 6px 0 0; color: var(--acad-grey); font-size: 16px; max-width: 62ch; }

/* ---- Limitations ---------------------------------------------------------- */
.thought-acad-limitations {
	margin-top: clamp(36px, 6vw, 64px);
	padding: clamp(28px, 4vw, 44px);
	border: 1px solid var(--acad-line);
	border-left: 3px solid var(--acad-blue);
	border-radius: 6px;
	background: var(--acad-blue-soft);
}

.thought-acad-limit-list { margin: 20px 0 0; padding: 0 0 0 20px; }
.thought-acad-limit-list li { margin: 0 0 14px; max-width: 68ch; }
.thought-acad-limit-list li:last-child { margin-bottom: 0; }

/* ---- Suggested debates ----------------------------------------------------- */
.thought-acad-debates { display: grid; gap: 18px; margin-top: 26px; }

.thought-acad-debate {
	padding: 30px 32px;
	border: 1px solid var(--acad-line);
	border-radius: 6px;
	background: var(--acad-bg);
}

.thought-acad-debate h3 { font-size: 24px; max-width: 30ch; }
.thought-acad-participants { margin: 10px 0 0; color: var(--acad-blue); font: 600 13px/1.5 var(--acad-sans); letter-spacing: .04em; }
.thought-acad-debate-opening { margin: 12px 0 0; color: var(--acad-grey); font-size: 16px; max-width: 68ch; }

/* ---- Buttons ---------------------------------------------------------------- */
.thought-acad-button {
	display: inline-block;
	margin-top: 18px;
	padding: 11px 22px;
	border: 1px solid var(--acad-blue);
	border-radius: 4px;
	background: transparent;
	color: var(--acad-blue);
	font: 600 14px/1 var(--acad-sans);
	letter-spacing: .04em;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.thought-acad-button:hover, .thought-acad-button:focus-visible {
	background: var(--acad-blue);
	color: var(--acad-bg);
}

.thought-acad-button-primary { background: var(--acad-blue); color: var(--acad-bg); }
.thought-acad-button-primary:hover, .thought-acad-button-primary:focus-visible { opacity: .92; }

/* ---- Feedback form ------------------------------------------------------------ */
.thought-acad-form { margin-top: 26px; }

.thought-acad-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.thought-acad-span { grid-column: 1 / -1; }

.thought-acad-form label > span {
	display: block;
	margin: 0 0 6px;
	color: var(--acad-ink);
	font: 600 13px/1.4 var(--acad-sans);
}

.thought-acad-form label > span em { color: var(--acad-grey); font-weight: 400; font-style: normal; }

.thought-acad-form input[type="text"],
.thought-acad-form input[type="url"],
.thought-acad-form select,
.thought-acad-form textarea {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 11px 13px;
	border: 1px solid var(--acad-line);
	border-radius: 4px;
	background: var(--acad-bg);
	color: var(--acad-ink);
	font: 400 16px/1.6 var(--acad-serif);
}

.thought-acad-form select { padding-right: 34px; }

.thought-acad-form input[type="text"]:focus-visible,
.thought-acad-form input[type="url"]:focus-visible,
.thought-acad-form select:focus-visible,
.thought-acad-form textarea:focus-visible {
	outline: 2px solid var(--acad-blue);
	outline-offset: 2px;
	border-color: var(--acad-blue);
	box-shadow: 0 0 0 2px var(--acad-blue-soft);
}

.thought-acad-form :disabled { cursor: not-allowed; opacity: .62; }

.thought-acad-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.thought-acad-ratings {
	margin: 26px 0 0;
	padding: 22px 24px;
	border: 1px solid var(--acad-line);
	border-radius: 6px;
}

.thought-acad-ratings legend { padding: 0 8px; color: var(--acad-grey); font: 700 11px/1 var(--acad-sans); letter-spacing: .14em; text-transform: uppercase; }

.thought-acad-rating {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid var(--acad-line);
}

.thought-acad-rating:last-child { border-bottom: 0; }

.thought-acad-rating-label { font: 600 14px/1.4 var(--acad-sans); }
.thought-acad-rating-label small { display: block; color: var(--acad-grey); font-weight: 400; font-size: 13px; }

.thought-acad-rating-scale { display: inline-flex; gap: 6px; }
.thought-acad-rating-scale input { position: absolute; opacity: 0; pointer-events: none; }
.thought-acad-rating-scale i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--acad-line);
	border-radius: 4px;
	color: var(--acad-grey);
	font: 600 13px/1 var(--acad-sans);
	font-style: normal;
	cursor: pointer;
	transition: all .12s ease;
}

.thought-acad-rating-scale label:hover i { border-color: var(--acad-blue); color: var(--acad-blue); }
.thought-acad-rating-scale input:checked + i { background: var(--acad-blue); border-color: var(--acad-blue); color: var(--acad-bg); }
.thought-acad-rating-scale input:focus-visible + i { outline: 2px solid var(--acad-blue); outline-offset: 2px; }

.thought-acad-feedback-field { display: block; margin-top: 22px; }

.thought-acad-fineprint { margin: 14px 0 0; color: var(--acad-grey); font: 400 13px/1.6 var(--acad-sans); }

.thought-acad-notice {
	padding: 18px 22px;
	border: 1px solid var(--acad-line);
	border-left: 3px solid var(--acad-blue);
	border-radius: 6px;
	background: var(--acad-blue-soft);
	margin-top: 20px;
}

.thought-acad-notice p { margin: 0; }
.thought-acad-notice-error { border-left-color: #a35252; }

/* ---- Advisory circle + footer ---------------------------------------------------- */
.thought-acad-advisors { margin: 20px 0 0; padding: 0 0 0 20px; }
.thought-acad-advisory-empty { margin: 18px 0 0; color: var(--acad-grey); font-style: italic; }

.thought-acad-footer {
	margin-top: clamp(44px, 7vw, 80px);
	padding-top: 28px;
	border-top: 1px solid var(--acad-line);
	color: var(--acad-grey);
	font-style: italic;
	text-align: center;
}

.thought-acad-footer p { margin: 0; max-width: 52ch; margin-inline: auto; }

/* ---- Reveal (quiet; opt-in via JS so no-JS readers see everything) ------------------ */
.thought-acad.acad-js .thought-acad-reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.thought-acad.acad-js .thought-acad-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.thought-acad.acad-js .thought-acad-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive --------------------------------------------------------------------- */
@media (max-width: 640px) {
	.thought-acad { font-size: 17px; }
	.thought-acad-rating { grid-template-columns: 1fr; }
	.thought-acad-debate { padding: 24px 20px; }
}

/* ============================================================================
 * V2 — Trust & Institutional Credibility. Additive styles only; every rule
 * uses the existing palette variables, so dark mode is inherited.
 * ========================================================================== */

/* -- Academic challenge -------------------------------------------------- */
.thought-acad-challenge-list {
	margin: 18px 0;
	padding: 0;
	list-style: none;
	columns: 2;
	column-gap: 40px;
	max-width: 56ch;
}

.thought-acad-challenge-list li {
	margin: 0 0 8px;
	padding-left: 18px;
	position: relative;
	break-inside: avoid;
}

.thought-acad-challenge-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--acad-blue);
}

.thought-acad-challenge-close { font-style: italic; color: var(--acad-blue); }

/* -- Research questions ---------------------------------------------------- */
.thought-acad-questions { margin: 26px 0 0; }

.thought-acad-questions > div {
	padding: 22px 0;
	border-bottom: 1px solid var(--acad-line);
}

.thought-acad-questions > div:last-child { border-bottom: 0; }

.thought-acad-questions dt {
	font-size: 21px;
	line-height: 1.35;
	color: var(--acad-ink);
	max-width: 34ch;
}

.thought-acad-questions dd {
	margin: 8px 0 0;
	color: var(--acad-grey);
	font-size: 16px;
	max-width: 62ch;
}

/* -- Evolution timeline (dots, not numbers: milestones, not versions) -------- */
.thought-acad-evolution {
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	position: relative;
}

.thought-acad-evolution::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 10px;
	bottom: 10px;
	width: 1px;
	background: var(--acad-line);
}

.thought-acad-evolution li {
	position: relative;
	display: grid;
	grid-template-columns: 14px minmax(0, 1fr);
	gap: 22px;
	padding: 0 0 24px;
}

.thought-acad-evolution li:last-child { padding-bottom: 0; }

.thought-acad-evolution-marker {
	position: relative;
	z-index: 1;
	width: 13px;
	height: 13px;
	margin-top: 8px;
	border: 1px solid var(--acad-blue);
	border-radius: 50%;
	background: var(--acad-bg);
}

.thought-acad-evolution li:last-child .thought-acad-evolution-marker { background: var(--acad-blue); }

.thought-acad-evolution h3 { font-size: 18px; }
.thought-acad-evolution p { margin: 4px 0 0; color: var(--acad-grey); font-size: 16px; max-width: 62ch; }

/* -- What Thought believes: numbered creed, large serif, no icons ------------- */
.thought-acad-beliefs {
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: belief;
	max-width: 46ch;
}

.thought-acad-beliefs li {
	counter-increment: belief;
	position: relative;
	padding: 18px 0 18px 58px;
	border-bottom: 1px solid var(--acad-line);
	font-size: 22px;
	line-height: 1.4;
}

.thought-acad-beliefs li:last-child { border-bottom: 0; }

.thought-acad-beliefs li::before {
	content: counter(belief, upper-roman);
	position: absolute;
	left: 0;
	top: 22px;
	color: var(--acad-blue);
	font: 400 15px/1 var(--acad-serif);
	letter-spacing: .06em;
}

/* -- Citation philosophy -------------------------------------------------------- */
.thought-acad-citation-list { margin: 24px 0 0; max-width: 66ch; }

.thought-acad-citation-list > div {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid var(--acad-line);
}

.thought-acad-citation-list > div:last-child { border-bottom: 0; }

.thought-acad-citation-list dt { font: 600 14px/1.6 var(--acad-sans); color: var(--acad-blue); }
.thought-acad-citation-list dd { margin: 0; color: var(--acad-grey); font-size: 16px; }

@media (max-width: 560px) {
	.thought-acad-citation-list > div { grid-template-columns: 1fr; gap: 4px; }
}

/* -- FAQ (native details; no JS) --------------------------------------------------- */
.thought-acad-faq { margin-top: 22px; border-top: 1px solid var(--acad-line); }

.thought-acad-faq details { border-bottom: 1px solid var(--acad-line); }

.thought-acad-faq summary {
	padding: 18px 30px 18px 2px;
	cursor: pointer;
	list-style: none;
	position: relative;
	font-size: 19px;
	color: var(--acad-ink);
}

.thought-acad-faq summary::-webkit-details-marker { display: none; }

.thought-acad-faq summary::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--acad-blue);
	font: 400 22px/1 var(--acad-serif);
}

.thought-acad-faq details[open] summary::after { content: "\2212"; }

.thought-acad-faq details > p {
	margin: 0;
	padding: 0 2px 20px;
	color: var(--acad-grey);
	font-size: 16.5px;
	max-width: 66ch;
}

/* -- Improvements register + collaborators: honest empty states ---------------------- */
.thought-acad-register-empty {
	margin-top: 22px;
	padding: 26px 30px;
	border: 1px dashed var(--acad-line);
	border-radius: 6px;
	color: var(--acad-grey);
}

.thought-acad-register-empty p { margin: 0 0 8px; }
.thought-acad-register-empty p:last-child { margin: 0; font-size: 15px; }

.thought-acad-improvements { margin: 22px 0 0; padding: 0 0 0 20px; }
.thought-acad-improvements li { margin: 0 0 12px; max-width: 68ch; }

.thought-acad-collab {
	width: 100%;
	margin-top: 22px;
	border-collapse: collapse;
	font-size: 16px;
}

.thought-acad-collab th {
	padding: 10px 14px;
	border-bottom: 2px solid var(--acad-ink);
	text-align: left;
	font: 700 12px/1.4 var(--acad-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--acad-grey);
}

.thought-acad-collab td { padding: 14px; border-bottom: 1px solid var(--acad-line); }

.thought-acad-collab-empty td { color: var(--acad-grey); font-style: italic; }

/* -- Public accountability ------------------------------------------------------------- */
.thought-acad-promise {
	margin-top: clamp(36px, 6vw, 64px);
	padding: clamp(28px, 4vw, 44px);
	border-top: 2px solid var(--acad-blue);
	background: var(--acad-surface);
	border-radius: 0 0 6px 6px;
}

.thought-acad-promise-list { margin: 16px 0 0; padding: 0; list-style: none; max-width: 40ch; }

.thought-acad-promise-list li {
	padding: 10px 0 10px 26px;
	position: relative;
	border-bottom: 1px solid var(--acad-line);
	font-size: 19px;
}

.thought-acad-promise-list li:last-child { border-bottom: 0; }

.thought-acad-promise-list li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--acad-blue);
}

.thought-acad-promise-note { margin: 18px 0 0; color: var(--acad-grey); font-style: italic; }

@media (max-width: 560px) {
	.thought-acad-challenge-list { columns: 1; }
}
