/*
 * Talim demo journey — the start screen of the Talim UI Design
 * deck (14 November 2026; supersedes the Duolingo ruling of 30
 * October 2026), rendered on the platform design tokens.
 *
 * Owner review, 16 November 2026: the page stays airy. One
 * question — "Where do you start?" — and the three spheres of
 * action as three circles arranged as a triquetra: three
 * interlocking circles, one per sphere colour. The persona
 * dropdown beneath is the demo's difference on the shared start
 * screen (the demo start is the home page for all personas).
 *
 * Owner ruling (16 November 2026): each sphere carries its own
 * colour — Learn lila, Contribute yellow, Grow petrol — so the
 * three actions are told apart at a glance; the interlocks of the
 * triquetra mix them where the circles meet.
 *
 * Slice 6 (issue #265): the page renders under the platform
 * chrome, so this stylesheet speaks the platform design tokens
 * (talim-design assets/design.css): the body text and the question
 * inherit the platform Fira Code, the circle labels take Manrope,
 * and the sphere colours arrive through the design variables with
 * literal fallbacks — the same appearance standalone, on WordPress
 * and on Moodle.
 */

.talim-journey {
	color: var(--talim-ink, #2a2a2a);
	max-width: 680px;
	margin: 0 auto;
	padding: 0 4px 2rem;
	line-height: 1.5;
	/* The platform wrapper owns the family (Fira Code) and the
	   size; the journey never re-declares a font of its own. */
}

.talim-journey-header {
	text-align: center;
	padding: 1.5rem 0 0;
}

.talim-mark svg {
	display: block;
	margin: 0 auto;
}

.talim-journey-header h2 {
	color: var(--talim-plum, #7d2c6e);
	font-weight: 800;
	font-size: 1.9rem;
	letter-spacing: -0.01em;
	margin: 0.5rem 0 0;
}

/* The persona's first stage (owner review, 16 November 2026): a
   single line under the question naming where this persona
   starts, before the figure. */
.talim-journey-suggestion {
	margin: 0.35rem 0 0;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--talim-deep, #442e66);
}

/* The suggested circle carries a ring so the suggestion is told
   apart without breaking the triquetra figure: a white inner ring
   (paper) clears the interlocks, a soft dark outer ring marks the
   circle on any sphere colour. */
.talim-circle-suggested {
	box-shadow:
		0 0 0 4px var(--talim-paper, #ffffff),
		0 0 0 9px rgba(42, 42, 42, 0.32);
}

/* The triquetra: three interlocking circles. The container fixes
   the figure's geometry (three centres in an equilateral triangle
   with a centre distance of 140px at a 85px radius, so each pair
   interlocks), and the labels sit at the outer reach of each
   circle so the interlocks stay legible. */
.talim-start {
	position: relative;
	width: 320px;
	height: 320px;
	margin: 1.75rem auto 0;
}

.talim-circle {
	position: absolute;
	box-sizing: border-box;
	width: 170px;
	height: 170px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 800;
	font-size: 1.2rem;
	letter-spacing: 0.01em;
	padding: 1rem;
	border: 3px solid;
	transition: transform 0.06s ease-in;
}

/* The labels lean outward: each circle keeps its label in its own
   outer half, clear of the interlocks. */
.talim-circle-learn .talim-circle-label { transform: translateY(-24px); }
.talim-circle-contribute .talim-circle-label { transform: translate(-20px, 20px); }
.talim-circle-grow .talim-circle-label { transform: translate(20px, 20px); }

/* Geometry: centres at (160,100), (90,221) and (230,221) in the
   320px figure; the 140px centre distance interlocks each pair at
   a 85px radius. */
.talim-circle-learn      { left: 75px;  top: 15px;  }
.talim-circle-contribute { left: 5px;   top: 136px; }
.talim-circle-grow       { left: 145px; top: 136px; }

.talim-circle:active {
	transform: translateY(3px);
}

.talim-circle-label {
	/* Long labels stay centred inside the circle. */
	max-width: 100%;
}

/* Learn: lila. */
.talim-circle-learn {
	background: rgba(125, 44, 110, 0.88);
	border-color: #4c1a42;
	color: var(--talim-paper, #ffffff);
}

.talim-circle-learn:hover,
.talim-circle-learn:focus {
	background: rgba(106, 36, 93, 0.92);
	color: var(--talim-paper, #ffffff);
}

/* Contribute: yellow. */
.talim-circle-contribute {
	background: rgba(255, 213, 0, 0.88);
	border-color: #a37f00;
	color: #4c1a42;
}

.talim-circle-contribute:hover,
.talim-circle-contribute:focus {
	background: rgba(230, 192, 0, 0.92);
	color: #33112c;
}

/* Grow: petrol. */
.talim-circle-grow {
	background: rgba(0, 100, 110, 0.88);
	border-color: #00444b;
	color: var(--talim-paper, #ffffff);
}

.talim-circle-grow:hover,
.talim-circle-grow:focus {
	background: rgba(0, 82, 91, 0.92);
	color: var(--talim-paper, #ffffff);
}

/* The persona dropdown: the demo's difference on the shared start
   screen. One select, one full-width primary button, on the
   platform tokens. */
.talim-journey-persona {
	max-width: 380px;
	margin: 2rem auto 0;
}

.talim-journey-persona-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.talim-journey-persona-label {
	flex-basis: 100%;
	text-align: center;
	color: var(--talim-deep, #442e66);
	font-weight: 700;
}

.talim-journey-persona-select {
	flex: 1 1 200px;
	padding: 0.7rem 1rem;
	font-size: 1rem;
	color: inherit;
	background: var(--talim-paper, #ffffff);
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-radius: 14px;
}

.talim-journey-persona-go {
	flex: 1 1 100%;
	padding: 0.85rem 1.2rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 800;
	font-size: 1.05rem;
	background: var(--talim-sun, #ffd500);
	color: #4c1a42;
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-bottom-width: 5px;
	border-radius: 16px;
	cursor: pointer;
	transition: transform 0.06s ease-in;
}

.talim-journey-persona-go:hover,
.talim-journey-persona-go:focus {
	background: var(--talim-sun-hover, #e6c000);
	color: #33112c;
}

.talim-journey-persona-go:active {
	transform: translateY(3px);
	border-bottom-width: 2px;
}

.talim-journey-persona-desc {
	flex-basis: 100%;
	margin: 0.25rem 0 0;
	min-height: 1.4em;
	text-align: center;
	font-size: 0.9rem;
	color: var(--talim-deep, #442e66);
}

/* Narrow phones: the triquetra shrinks as one figure. */
@media (max-width: 599px) {
	.talim-start {
		transform: scale(0.85);
		transform-origin: top center;
		margin-bottom: -3rem;
	}
}

/* Owner ruling (16 November 2026, review): the circles are three
   forms of starting. The per-sphere start pages speak the same
   tokens: the sphere colour frames the page, the steps carry one
   action each (the deck's single-action discipline), and the
   persona choice comes first. */

.talim-startpage {
	color: var(--talim-ink, #2a2a2a);
	max-width: 680px;
	margin: 0 auto;
	padding: 1.5rem 4px 2rem;
	line-height: 1.5;
	border-top: 6px solid;
}

.talim-startpage-learn      { border-top-color: var(--talim-plum, #7d2c6e); }
.talim-startpage-contribute { border-top-color: var(--talim-sun, #ffd500); }
.talim-startpage-grow      { border-top-color: #00646e; }

.talim-startpage-header h1 {
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 800;
	font-size: 1.9rem;
	margin: 0;
	letter-spacing: -0.01em;
}

.talim-startpage-learn .talim-startpage-header h1      { color: var(--talim-plum, #7d2c6e); }
.talim-startpage-contribute .talim-startpage-header h1 { color: #a37f00; }
.talim-startpage-grow .talim-startpage-header h1       { color: #00646e; }

.talim-startpage-lead {
	margin: 0.5rem 0 0;
}

.talim-startpage-persona {
	margin-top: 0.75rem;
	font-size: 0.95rem;
}

.talim-startpage-persona a {
	color: var(--talim-plum, #7d2c6e);
}

.talim-startpage-persona-first {
	margin: 1.5rem 0;
	padding: 1.25rem;
	background: var(--talim-paper, #ffffff);
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-radius: 16px;
}

.talim-startpage-persona-first h2 {
	margin: 0 0 0.5rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
}

.talim-startpage-persona-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.talim-startpage-persona-form .talim-journey-persona-select {
	flex: 1 1 200px;
	padding: 0.7rem 1rem;
	font-size: 1rem;
	background: var(--talim-paper, #ffffff);
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-radius: 14px;
}

.talim-startpage-persona-form .talim-journey-persona-go {
	flex: 1 1 100%;
	padding: 0.85rem 1.2rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 800;
	font-size: 1.05rem;
	background: var(--talim-sun, #ffd500);
	color: #4c1a42;
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-bottom-width: 5px;
	border-radius: 16px;
	cursor: pointer;
}

.talim-startpage-note {
	margin: 0.5rem 0 0;
	font-size: 0.85rem;
	color: var(--talim-deep, #442e66);
}

/* The flow steps: numbered stages, one action each. */
.talim-flow {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}

.talim-flow-step {
	padding: 1rem 1.25rem;
	background: var(--talim-paper, #ffffff);
	border: 2px solid rgba(125, 44, 110, 0.35);
	border-radius: 16px;
}

.talim-flow-step h3 {
	margin: 0 0 0.25rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-size: 1.05rem;
}

.talim-flow-step p {
	margin: 0 0 0.75rem;
}

.talim-flow-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.talim-flow-search input[type="search"] {
	flex: 1 1 180px;
	padding: 0.6rem 0.9rem;
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-radius: 12px;
	font-size: 1rem;
}

.talim-flow-go {
	padding: 0.6rem 1.1rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	background: var(--talim-sun, #ffd500);
	color: #4c1a42;
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-bottom-width: 4px;
	border-radius: 12px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.talim-flow-go:active {
	transform: translateY(2px);
	border-bottom-width: 2px;
}

.talim-flow-results {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.talim-flow-results a {
	color: var(--talim-plum, #7d2c6e);
	font-weight: 700;
}

.talim-flow-esco {
	display: block;
	font-size: 0.8rem;
	color: var(--talim-deep, #442e66);
}

.talim-flow-none {
	color: var(--talim-deep, #442e66);
}

.talim-flow-step textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6rem 0.9rem;
	border: 2px solid var(--talim-plum, #7d2c6e);
	border-radius: 12px;
	font: inherit;
	margin-bottom: 0.5rem;
}

/* The Aha: the realisation that the prompt is already a
   contribution, in the Contribute yellow. */
.talim-aha {
	margin-top: 0.75rem;
	padding: 1rem 1.25rem;
	background: rgba(255, 213, 0, 0.25);
	border: 2px solid var(--talim-sun, #ffd500);
	border-radius: 16px;
}

.talim-aha-text {
	margin: 0 0 0.75rem;
	font-weight: 700;
}

/* The persona's next stages, in the persona's order. */
.talim-startpage-next {
	margin-top: 2rem;
}

.talim-startpage-next h2 {
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

.talim-startpage-next-link {
	display: inline-block;
	margin: 0 0.5rem 0.5rem 0;
	padding: 0.6rem 1.1rem;
	font-family: var(--talim-font-head, "Manrope", "Segoe UI", system-ui, sans-serif);
	font-weight: 800;
	text-decoration: none;
	border: 2px solid;
	border-radius: 999px;
}

.talim-startpage-next-link.talim-circle-learn {
	background: rgba(125, 44, 110, 0.12);
	border-color: var(--talim-plum, #7d2c6e);
	color: var(--talim-plum, #7d2c6e);
}

.talim-startpage-next-link.talim-circle-contribute {
	background: rgba(255, 213, 0, 0.2);
	border-color: #a37f00;
	color: #4c1a42;
}

.talim-startpage-next-link.talim-circle-grow {
	background: rgba(0, 100, 110, 0.12);
	border-color: #00646e;
	color: #00646e;
}

