/* Good Company Learning — app styles.
   System type (SF Pro on Apple devices), Good Company cream and sunshine yellow.
   Mobile first. Light and dark. Respects reduced motion. */

:root {
	--paper: #FAF7F0;
	--paper-2: #F3EEE3;
	--surface: #FFFFFF;
	--ink: #1D1D1F;
	--ink-2: #5E5E63;
	--ink-3: #86868B;
	--line: rgba(29, 29, 31, .09);
	--line-strong: rgba(29, 29, 31, .16);
	--sun: #FDDE0B;
	--sun-deep: #F2C200;
	--sun-soft: #FFF6C2;
	--leaf: #24804F;
	--leaf-soft: #DDF2E3;
	--coral: #C8381F;
	--coral-soft: #FFE6DF;
	--focus: #0A66D6;
	--top-bg: rgba(250, 247, 240, .78);
	--shadow-1: 0 1px 2px rgba(29, 29, 31, .05);
	--shadow-2: 0 10px 30px -12px rgba(52, 40, 0, .22);
	--shadow-sheet: 0 -10px 40px rgba(0, 0, 0, .16);

	--t-sun-bg: #FDDE0B;   --t-sun-fg: #3D3200;
	--t-sky-bg: #DCEAFF;   --t-sky-fg: #1D4E8C;
	--t-leaf-bg: #DCF1E2;  --t-leaf-fg: #1E6A40;
	--t-coral-bg: #FFE2D9; --t-coral-fg: #9C3119;
	--t-plum-bg: #ECE2F7;  --t-plum-fg: #59308A;
	--t-sand-bg: #F0E7D5;  --t-sand-fg: #66502A;

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--r-sm: 10px;
	--r-md: 14px;
	--r-lg: 20px;
	--r-xl: 28px;
	--gutter: 16px;
	--tabs-h: 64px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #151514;
		--paper-2: #1D1D1B;
		--surface: #222220;
		--ink: #F5F5F2;
		--ink-2: #B4B4AE;
		--ink-3: #8C8C86;
		--line: rgba(255, 255, 255, .09);
		--line-strong: rgba(255, 255, 255, .18);
		--sun-soft: #3A3410;
		--leaf: #4CC283;
		--leaf-soft: #17382A;
		--coral: #FF7A5E;
		--coral-soft: #3D1E17;
		--focus: #5AA2FF;
		--top-bg: rgba(21, 21, 20, .74);
		--shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .6);
		--t-sky-bg: #1D2D45;   --t-sky-fg: #A9CBFF;
		--t-leaf-bg: #183526;  --t-leaf-fg: #9BE2B6;
		--t-coral-bg: #3E2019; --t-coral-fg: #FFB7A5;
		--t-plum-bg: #2E2240;  --t-plum-fg: #D5BDF4;
		--t-sand-bg: #332B1E;  --t-sand-fg: #E9D3A8;
	}
}

[data-colour="sun"]   { --tile-bg: var(--t-sun-bg);   --tile-fg: var(--t-sun-fg); }
[data-colour="sky"]   { --tile-bg: var(--t-sky-bg);   --tile-fg: var(--t-sky-fg); }
[data-colour="leaf"]  { --tile-bg: var(--t-leaf-bg);  --tile-fg: var(--t-leaf-fg); }
[data-colour="coral"] { --tile-bg: var(--t-coral-bg); --tile-fg: var(--t-coral-fg); }
[data-colour="plum"]  { --tile-bg: var(--t-plum-bg);  --tile-fg: var(--t-plum-fg); }
[data-colour="sand"]  { --tile-bg: var(--t-sand-bg);  --tile-fg: var(--t-sand-fg); }

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.gcl {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 17px/1.47 var(--font);
	letter-spacing: -.012em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	min-height: 100vh;
	min-height: 100dvh;
}
:where(.gcl) a { color: inherit; }
:where(.gcl) img, :where(.gcl) video, :where(.gcl) iframe { max-width: 100%; }
:where(.gcl) button { font: inherit; color: inherit; }
.gcl :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.gcl-main:focus { outline: none; }
.gcl-icon { width: 22px; height: 22px; flex: none; }

.gcl-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--ink); color: var(--paper) !important; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.gcl-skip:focus { top: 12px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.gcl-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.gcl-wrap--narrow { max-width: 680px; }

.gcl-large-title {
	font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.026em; margin: 0;
	text-wrap: balance;
}
.gcl-title-2 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.gcl-hint { color: var(--ink-2); font-size: 15px; line-height: 1.45; margin: 8px 0 0; }
.gcl-hint a { color: var(--ink); }

/* ------------------------------------------------------------------ Top bar */

.gcl-top {
	position: sticky; top: 0; z-index: 30;
	background: var(--top-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top);
}
.gcl-top__inner {
	max-width: 1040px; margin: 0 auto; height: 56px; padding: 0 var(--gutter);
	display: flex; align-items: center; gap: 24px;
}
.gcl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.gcl-brand__sun {
	width: 22px; height: 22px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #FFF08A 0 30%, var(--sun) 62%, var(--sun-deep) 100%);
	box-shadow: 0 0 0 4px rgba(253, 222, 11, .22);
}
.gcl-brand__name span { color: var(--ink-3); font-weight: 500; }
.gcl-top__nav { display: none; gap: 4px; margin-right: auto; }
.gcl-top__nav a {
	text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
	padding: 7px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.gcl-top__nav a:hover { color: var(--ink); background: var(--line); }
.gcl-top__nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }

.gcl-me { position: relative; margin-left: auto; }
.gcl-me summary { list-style: none; cursor: pointer; border-radius: 50%; display: block; }
.gcl-me summary::-webkit-details-marker { display: none; }
.gcl-me__menu {
	position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px;
	background: var(--surface); border-radius: var(--r-md); padding: 6px;
	box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .3), 0 0 0 1px var(--line);
	animation: gcl-pop .18s var(--ease);
}
.gcl-me__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.gcl-me__who strong { display: block; font-size: 15px; }
.gcl-me__who span { font-size: 13px; color: var(--ink-3); }
.gcl-me__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; text-decoration: none; font-size: 15px; }
.gcl-me__menu a:hover { background: var(--paper-2); }
.gcl-me__menu .gcl-icon { width: 19px; height: 19px; color: var(--ink-2); }

@keyframes gcl-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* Avatars */
.gcl-avatar {
	--av: 40px;
	width: var(--av); height: var(--av); border-radius: 50%; flex: none;
	display: inline-grid; place-items: center;
	font-size: calc(var(--av) * .38); font-weight: 650; letter-spacing: 0;
	background: var(--tile-bg, var(--t-sand-bg)); color: var(--tile-fg, var(--t-sand-fg));
}
.gcl-avatar[data-hue="sun"]   { --tile-bg: var(--t-sun-bg);   --tile-fg: var(--t-sun-fg); }
.gcl-avatar[data-hue="sky"]   { --tile-bg: var(--t-sky-bg);   --tile-fg: var(--t-sky-fg); }
.gcl-avatar[data-hue="leaf"]  { --tile-bg: var(--t-leaf-bg);  --tile-fg: var(--t-leaf-fg); }
.gcl-avatar[data-hue="coral"] { --tile-bg: var(--t-coral-bg); --tile-fg: var(--t-coral-fg); }
.gcl-avatar[data-hue="plum"]  { --tile-bg: var(--t-plum-bg);  --tile-fg: var(--t-plum-fg); }
.gcl-avatar[data-hue="sand"]  { --tile-bg: var(--t-sand-bg);  --tile-fg: var(--t-sand-fg); }
.gcl-avatar--xs { --av: 24px; }
.gcl-avatar--sm { --av: 32px; }
.gcl-avatar--xl { --av: 72px; }

/* Session banner */
.gcl-session { background: var(--ink); color: var(--paper); position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 29; }
.gcl-session__inner { max-width: 1040px; margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.gcl-session__inner p { margin: 0; flex: 1; line-height: 1.35; }
.gcl-session__end {
	background: var(--sun); color: #2A2200; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 650; font-size: 14px; cursor: pointer; white-space: nowrap;
}

/* Toast */
.gcl-toast {
	position: fixed; z-index: 60; left: 50%; top: calc(68px + env(safe-area-inset-top));
	transform: translateX(-50%);
	display: flex; align-items: center; gap: 10px;
	max-width: min(92vw, 520px); padding: 12px 18px 12px 14px;
	background: var(--ink); color: var(--paper); border-radius: 999px;
	font-size: 15px; font-weight: 500; line-height: 1.35;
	box-shadow: 0 12px 34px -10px rgba(0, 0, 0, .45);
	animation: gcl-toast-in .45s var(--ease);
}
.gcl-toast .gcl-icon { width: 20px; height: 20px; color: var(--sun); }
.gcl-toast--error { background: var(--coral); color: #fff; }
.gcl-toast--error .gcl-icon { color: #fff; }
.gcl-toast.is-leaving { opacity: 0; transform: translate(-50%, -10px); transition: opacity .3s, transform .3s; }
@keyframes gcl-toast-in { from { opacity: 0; transform: translate(-50%, -14px); } }

/* Bottom tabs (phones and small tablets) */
.gcl-main { padding: 20px 0 calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); }
.gcl--bare .gcl-main { padding: 0; }
.gcl-tabs {
	position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
	display: flex; justify-content: space-around;
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
	background: var(--top-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid var(--line);
}
.gcl-tabs a {
	flex: 1; max-width: 120px; min-height: 52px;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--ink-3);
	border-radius: 12px;
}
.gcl-tabs a[aria-current="page"] { color: var(--ink); }
.gcl-tabs a[aria-current="page"] .gcl-icon { stroke-width: 2.1; }
.gcl-tabs .gcl-icon { width: 25px; height: 25px; }

/* ------------------------------------------------------------------ Buttons */

.gcl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border-radius: 999px;
	font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	background: var(--surface); color: var(--ink);
	border: 1px solid var(--line-strong);
	transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s;
	-webkit-tap-highlight-color: transparent;
}
.gcl-btn:hover { background: var(--paper-2); }
.gcl-btn:active { transform: scale(.97); }
.gcl-btn .gcl-icon { width: 19px; height: 19px; }
.gcl-btn--primary { background: var(--ink); color: var(--paper); border-color: transparent; }
.gcl-btn--primary:hover { background: var(--ink); opacity: .88; }
.gcl-btn--quiet { background: transparent; border-color: transparent; color: var(--ink-2); }
.gcl-btn--quiet:hover { background: var(--line); color: var(--ink); }
.gcl-btn--danger { color: var(--coral); }
.gcl-btn--danger-solid { background: var(--coral); color: #fff; border-color: transparent; }
.gcl-btn--danger-solid:hover { background: var(--coral); opacity: .9; }
.gcl-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.gcl-btn--block { display: flex; width: 100%; }
.gcl-btn[disabled], .gcl-btn.is-busy { opacity: .5; pointer-events: none; }
.gcl-btn.is-busy::after {
	content: ""; width: 16px; height: 16px; border-radius: 50%;
	border: 2px solid currentColor; border-right-color: transparent; animation: gcl-spin .7s linear infinite;
}
@keyframes gcl-spin { to { transform: rotate(360deg); } }

.gcl-icon-btn {
	width: 44px; height: 44px; border-radius: 50%; flex: none;
	display: inline-grid; place-items: center;
	background: transparent; border: 0; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.gcl-icon-btn:hover { background: var(--line); color: var(--ink); }

.gcl-link-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: none; border: 0; padding: 6px 2px; cursor: pointer;
	color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none;
}
.gcl-link-btn .gcl-icon { width: 18px; height: 18px; }
.gcl-link-btn:hover { text-decoration: underline; }

.gcl-back {
	display: inline-flex; align-items: center; gap: 2px; margin: 0 0 12px -6px;
	color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; padding: 6px;
	border-radius: 999px;
}
.gcl-back:hover { color: var(--ink); }
.gcl-back .gcl-icon { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Badges, tiles, rings */

.gcl-badge {
	display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-right: 4px;
	border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: 0;
	background: var(--sun-soft); color: var(--t-sun-fg);
	vertical-align: 1px;
}
@media (prefers-color-scheme: dark) { .gcl-badge { color: var(--sun); } }
.gcl-badge--overdue { background: var(--coral-soft); color: var(--coral); }
.gcl-badge--quiet { background: var(--line); color: var(--ink-2); }

.gcl-tile {
	width: 44px; height: 44px; border-radius: 12px; flex: none;
	display: grid; place-items: center;
	background: var(--tile-bg, var(--t-sand-bg)); color: var(--tile-fg, var(--t-sand-fg));
}
.gcl-tile .gcl-icon { width: 24px; height: 24px; }

.gcl-ring { position: relative; display: inline-grid; place-items: center; width: var(--size); height: var(--size); flex: none; }
.gcl-ring svg { display: block; }
.gcl-ring__track { stroke: var(--line-strong); }
.gcl-ring__bar { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease); }
.gcl-ring.is-done .gcl-ring__bar { stroke: var(--leaf); }
.gcl-ring__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.gcl-ring__label small { font-size: 10px; font-weight: 600; margin-left: 1px; }
.gcl-ring__label .gcl-icon { width: 26px; height: 26px; color: var(--leaf); stroke-width: 2.4; }

.gcl-bar { display: block; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.gcl-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .8s var(--ease); }

/* ------------------------------------------------------------------ Grouped lists */

.gcl-section { margin-top: 36px; }
.gcl-section__title { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.018em; margin: 0 0 12px 4px; }
.gcl-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gcl-section__head .gcl-section__title { margin-bottom: 12px; }

.gcl-group {
	list-style: none; margin: 0; padding: 0;
	background: var(--surface); border-radius: var(--r-lg);
	box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
	overflow: hidden;
}
.gcl-group > li + li .gcl-row::before,
.gcl-group > li + li.gcl-row::before {
	content: ""; position: absolute; top: 0; right: 0; left: 72px; height: 1px; background: var(--line);
}
.gcl-row {
	position: relative;
	display: flex; align-items: center; gap: 14px;
	min-height: 68px; padding: 12px 16px;
	text-decoration: none; color: inherit;
	transition: background .15s;
	-webkit-tap-highlight-color: transparent;
}
a.gcl-row:hover, label.gcl-row:hover { background: var(--paper-2); }
a.gcl-row:active { background: var(--line); }
.gcl-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gcl-row__title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; text-decoration: none; }
a.gcl-row__title:hover { text-decoration: underline; }
.gcl-row__meta { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.gcl-row__chev { width: 18px; height: 18px; color: var(--ink-3); }
.gcl-row--static { cursor: default; }

/* ------------------------------------------------------------------ Dashboard */

.gcl-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 8px; }
.gcl-hello__text { min-width: 0; }
.gcl-hello__summary { margin: 10px 0 0; font-size: 18px; color: var(--ink-2); max-width: 34ch; line-height: 1.4; }

/* The rising sun: overall progress as a sunrise. */
.gcl-sunrise {
	--rise: 0;
	position: relative; flex: none; width: 104px; height: 104px; border-radius: 26px; overflow: hidden;
	background: linear-gradient(180deg, #FFF9DD 0%, #FFEFB0 58%, #FFE27A 100%);
	box-shadow: inset 0 0 0 1px rgba(150, 120, 0, .1);
}
@media (prefers-color-scheme: dark) {
	.gcl-sunrise { background: linear-gradient(180deg, #2C2A1F 0%, #3F3714 60%, #5C4A0A 100%); }
}
.gcl-sunrise__sun {
	position: absolute; left: 50%; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%;
	background: radial-gradient(circle at 38% 36%, #FFF4A3 0 22%, var(--sun) 56%, var(--sun-deep) 100%);
	box-shadow: 0 0 0 10px rgba(253, 222, 11, .18), 0 0 40px 10px rgba(253, 222, 11, .45);
	bottom: calc(-22px + var(--rise) * .48px);
	animation: gcl-rise 1.6s var(--ease) both;
}
.gcl-sunrise__ground {
	position: absolute; left: -10%; right: -10%; bottom: -30px; height: 58px; border-radius: 50% 50% 0 0;
	background: #E7D9A6;
}
@media (prefers-color-scheme: dark) { .gcl-sunrise__ground { background: #3B3524; } }
.gcl-sunrise__count {
	position: absolute; left: 0; right: 0; bottom: 8px; text-align: center;
	font-size: 12px; font-weight: 600; color: #5A4A00; letter-spacing: 0;
}
@media (prefers-color-scheme: dark) { .gcl-sunrise__count { color: #F2E3A0; } }
.gcl-sunrise__count strong { font-size: 15px; }
@keyframes gcl-rise { from { bottom: -64px; } }

.gcl-continue {
	display: grid; gap: 4px; margin-top: 28px; padding: 22px 22px 18px;
	border-radius: var(--r-xl); text-decoration: none; color: var(--tile-fg);
	background: var(--tile-bg);
	box-shadow: var(--shadow-2);
	transition: transform .25s var(--ease);
}
.gcl-continue:hover { transform: translateY(-2px); }
.gcl-continue:active { transform: scale(.99); }
.gcl-continue__label { font-size: 14px; font-weight: 600; opacity: .8; }
.gcl-continue__course { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
.gcl-continue__lesson { font-size: 16px; opacity: .85; margin-bottom: 14px; }
.gcl-continue .gcl-bar { background: rgba(0, 0, 0, .1); }
.gcl-continue .gcl-bar > span { background: currentColor; }
.gcl-continue__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; font-weight: 500; }
.gcl-continue .gcl-btn--primary { background: var(--tile-fg); color: var(--tile-bg); }
@media (prefers-color-scheme: dark) { .gcl-continue .gcl-bar { background: rgba(255, 255, 255, .15); } }

.gcl-section--split { display: grid; gap: 12px; }
.gcl-panel-link {
	display: flex; align-items: center; gap: 14px; padding: 16px;
	background: var(--surface); border-radius: var(--r-lg); text-decoration: none;
	box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
}
.gcl-panel-link:hover { background: var(--paper-2); }
.gcl-panel-link > span:not(.gcl-tile):not(.gcl-stack) { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcl-panel-link strong { font-size: 17px; letter-spacing: -.015em; }
.gcl-panel-link span span { font-size: 14px; color: var(--ink-2); }
.gcl-stack { display: flex; flex: none; }
.gcl-stack .gcl-avatar { box-shadow: 0 0 0 2px var(--surface); }
.gcl-stack .gcl-avatar + .gcl-avatar { margin-left: -10px; }

/* ------------------------------------------------------------------ Page heads, catalogue */

.gcl-page-head { padding-top: 4px; margin-bottom: 8px; }
.gcl-page-head__lead { color: var(--ink-2); font-size: 17px; margin: 10px 0 0; max-width: 60ch; }
.gcl-page-head--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.gcl-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gcl-cover {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; aspect-ratio: 4 / 5;
	padding: 16px; border-radius: var(--r-lg); text-decoration: none;
	background: var(--tile-bg); color: var(--tile-fg); position: relative; overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s;
}
.gcl-cover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.gcl-cover__art { position: absolute; top: 14px; left: 14px; }
.gcl-cover__art .gcl-icon { width: 40px; height: 40px; stroke-width: 1.4; }
.gcl-cover__title { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.018em; text-wrap: balance; }
.gcl-cover__meta { font-size: 13px; font-weight: 500; opacity: .78; }

/* ------------------------------------------------------------------ Course */

.gcl-course__hero { background: var(--tile-bg); color: var(--tile-fg); margin-top: -20px; padding: 20px 0 28px; }
.gcl-course__hero .gcl-back { color: inherit; opacity: .8; }
.gcl-course__head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.gcl-course__art {
	width: 64px; height: 64px; border-radius: 18px; flex: none; display: grid; place-items: center;
	background: rgba(255, 255, 255, .55); color: var(--tile-fg);
}
@media (prefers-color-scheme: dark) { .gcl-course__art { background: rgba(255, 255, 255, .08); } }
.gcl-course__art .gcl-icon { width: 34px; height: 34px; stroke-width: 1.5; }
.gcl-course__titles { min-width: 0; }
.gcl-course__lead { font-size: 18px; line-height: 1.45; margin: 10px 0 0; max-width: 56ch; opacity: .88; }
.gcl-course__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.gcl-course__facts span { display: inline-flex; align-items: center; gap: 6px; }
.gcl-course__facts .gcl-icon { width: 17px; height: 17px; }
.gcl-course__action {
	display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
	margin-top: 22px; padding: 16px; border-radius: var(--r-lg);
	background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
}
.gcl-course__status { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gcl-course__status strong { font-size: 17px; letter-spacing: -.015em; }
.gcl-course__status span { font-size: 14px; color: var(--ink-2); }
.gcl-course__buttons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; }
.gcl-course__buttons .gcl-btn--primary { flex: 1 1 200px; }
.gcl-course__body { padding-top: 8px; }
.gcl-course__about { margin-top: 28px; }

.gcl-lessons .gcl-row { padding-left: 16px; }
.gcl-step-dot {
	width: 34px; height: 34px; border-radius: 50%; flex: none;
	display: grid; place-items: center; font-size: 14px; font-weight: 650; letter-spacing: 0;
	color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.gcl-step-dot .gcl-icon { width: 18px; height: 18px; stroke-width: 2.4; }
.gcl-row.is-done .gcl-step-dot { background: var(--leaf); color: #fff; box-shadow: none; }
.gcl-row.is-next .gcl-step-dot { background: var(--ink); color: var(--paper); box-shadow: none; }
.gcl-row.is-next .gcl-row__title::after { content: "Up next"; margin-left: 8px; font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--sun-soft); color: var(--t-sun-fg); vertical-align: 2px; letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .gcl-row.is-next .gcl-row__title::after { color: var(--sun); } }
.gcl-group > li + li .gcl-lessons .gcl-row::before { left: 64px; }

/* ------------------------------------------------------------------ Lesson (immersive) */

.gcl--immersive .gcl-top { display: none; }
.gcl--immersive .gcl-main { padding: 0 0 calc(110px + env(safe-area-inset-bottom)); }
.gcl--immersive.gcl--session .gcl-session { top: 0; }

.gcl-lesson__bar {
	position: sticky; top: 0; z-index: 25;
	display: flex; align-items: center; gap: 12px;
	padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
	background: var(--top-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
}
.gcl--session .gcl-lesson__bar { top: 44px; }
.gcl-lesson__track { flex: 1; display: flex; gap: 4px; }
.gcl-lesson__track span { flex: 1; height: 5px; border-radius: 999px; background: var(--line-strong); }
.gcl-lesson__track span.done { background: var(--leaf); }
.gcl-lesson__track span.here { background: var(--ink); }
.gcl-lesson__count { font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 44px; text-align: right; letter-spacing: 0; }

.gcl-easy-toggle {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
	border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
	font-size: 14px; font-weight: 600; cursor: pointer;
}
.gcl-easy-toggle .gcl-icon { width: 18px; height: 18px; }
.gcl-easy-toggle[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: #2A2200; }

.gcl-lesson__with {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 6px auto 0; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.gcl-lesson__with .gcl-icon { width: 18px; height: 18px; }

.gcl-lesson__article { max-width: 680px; margin: 0 auto; padding: 24px var(--gutter) 0; }
.gcl-lesson__kicker { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--tile-fg); }
@media (prefers-color-scheme: dark) { .gcl-lesson__kicker { color: var(--ink-2); } }
.gcl-lesson__title { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0 0 24px; text-wrap: balance; }

.gcl-lesson__foot {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
	background: var(--top-bg);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid var(--line);
	padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.gcl-lesson__foot-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcl-lesson__primary { display: flex; justify-content: flex-end; flex: 1; }
.gcl-lesson__primary .gcl-btn { min-width: 160px; }
.gcl-lesson__note { font-size: 14px; color: var(--ink-2); text-align: right; }

/* Prose */
.gcl-prose { font-size: 18px; line-height: 1.6; letter-spacing: -.008em; }
.gcl-prose > * + * { margin-top: 1em; }
.gcl-prose > :first-child { margin-top: 0; }
.gcl-prose p { margin: 0; }
.gcl-prose h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; margin: 1.8em 0 .5em; }
.gcl-prose h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.016em; margin: 1.5em 0 .4em; }
.gcl-prose ul, .gcl-prose ol { padding-left: 1.3em; margin: 0; }
.gcl-prose li + li { margin-top: .4em; }
.gcl-prose li::marker { color: var(--ink-3); }
.gcl-prose a { color: var(--focus); text-underline-offset: 2px; }
.gcl-prose strong { font-weight: 650; }
.gcl-prose img, .gcl-prose video, .gcl-prose iframe { border-radius: var(--r-lg); display: block; height: auto; }
.gcl-prose figure { margin: 1.6em 0; }
.gcl-prose figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.gcl-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sun); font-size: 20px; line-height: 1.45; }
.gcl-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gcl-prose th, .gcl-prose td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gcl-prose .wp-block-embed__wrapper { position: relative; }
.gcl-prose .wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.gcl-prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

/* Easy Read versions */
.gcl-version--easy { display: none; }
.gcl-version > * + * { margin-top: 1em; }
.gcl-easy .gcl-version--easy { display: block; }
.gcl-easy .gcl-version--standard { display: none; }
.gcl-version--easy { font-size: 21px; line-height: 1.55; }
.gcl-version--easy p + p { margin-top: 1em; }
.gcl-version--easy img { max-width: 140px; border-radius: 16px; float: left; margin: 0 16px 8px 0; }
.gcl-version--easy p { overflow: hidden; }

/* ------------------------------------------------------------------ Interactive lesson pieces */

.gcl-eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: var(--ink-2); letter-spacing: -.005em; }

.gcl-reveal {
	background: var(--surface); border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); overflow: hidden;
}
.gcl-reveal + .gcl-reveal { margin-top: 10px !important; }
.gcl-reveal summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 18px; font-weight: 600; font-size: 17px; min-height: 56px;
}
.gcl-reveal summary::-webkit-details-marker { display: none; }
.gcl-reveal__icon { width: 20px; height: 20px; color: var(--ink-2); transition: transform .3s var(--ease); }
.gcl-reveal[open] .gcl-reveal__icon { transform: rotate(45deg); }
.gcl-reveal__body { padding: 0 18px 18px; font-size: 17px; color: var(--ink-2); }
.gcl-reveal__body > * + * { margin-top: .8em; }
.gcl-reveal[open] .gcl-reveal__body { animation: gcl-fade .3s var(--ease); }
@keyframes gcl-fade { from { opacity: 0; transform: translateY(-4px); } }

.gcl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.4em 0; }
.gcl-card { perspective: 900px; }
.gcl-card__inner {
	position: relative; width: 100%; min-height: 150px; border: 0; padding: 0; background: none; cursor: pointer;
	transform-style: preserve-3d; transition: transform .6s var(--ease); text-align: left;
}
.gcl-card__inner[aria-pressed="true"] { transform: rotateY(180deg); }
.gcl-card__face {
	position: absolute; inset: 0; border-radius: var(--r-md); padding: 16px;
	display: flex; flex-direction: column; justify-content: space-between;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.gcl-card__front { background: var(--tile-bg, var(--t-sun-bg)); color: var(--tile-fg, var(--t-sun-fg)); }
.gcl-card__title { font-size: 19px; font-weight: 700; letter-spacing: -.018em; line-height: 1.2; }
.gcl-card__hint { font-size: 13px; font-weight: 600; opacity: .7; }
.gcl-card__back { background: var(--surface); box-shadow: 0 0 0 1px var(--line); transform: rotateY(180deg); font-size: 15px; line-height: 1.45; justify-content: center; overflow: auto; }

.gcl-scenario, .gcl-check, .gcl-reflect, .gcl-steps {
	margin: 1.6em 0 !important; padding: 20px; border-radius: var(--r-lg);
	background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.gcl-scenario__q, .gcl-check__q { font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; margin: 0 0 14px; }
.gcl-scenario__choices { display: grid; gap: 8px; }
.gcl-choice {
	display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left;
	padding: 14px 16px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: transparent;
	font-size: 16px; line-height: 1.4; cursor: pointer; transition: border-color .2s, background .2s;
}
.gcl-choice:hover { border-color: var(--ink-3); }
.gcl-choice__mark { width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.gcl-choice.is-right { border-color: var(--leaf); background: var(--leaf-soft); }
.gcl-choice.is-right .gcl-choice__mark { background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.gcl-choice.is-wrong { border-color: var(--coral); background: var(--coral-soft); }
.gcl-choice.is-wrong .gcl-choice__mark { background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: none; }
.gcl-scenario__feedback:not(:empty), .gcl-check__feedback:not(:empty) {
	margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper-2); font-size: 16px; line-height: 1.45;
	animation: gcl-fade .3s var(--ease);
}
.gcl-feedback__title { display: block; font-weight: 700; margin-bottom: 2px; }

.gcl-check__buttons { display: flex; gap: 10px; }
.gcl-pill {
	flex: 1; min-height: 52px; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: transparent;
	font-size: 17px; font-weight: 650; cursor: pointer;
}
.gcl-pill.is-right { border-color: var(--leaf); background: var(--leaf-soft); color: var(--leaf); }
.gcl-pill.is-wrong { border-color: var(--coral); background: var(--coral-soft); color: var(--coral); }

.gcl-steps__list { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.gcl-step { counter-increment: s; position: relative; padding-left: 46px; }
.gcl-step + .gcl-step { margin-top: 18px; }
.gcl-step::before {
	content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; font-size: 15px; font-weight: 700; background: var(--sun); color: #2A2200;
}
.gcl-step__title { font-size: 18px; margin: 4px 0 6px; letter-spacing: -.015em; }
.gcl-step__body { font-size: 17px; color: var(--ink-2); }
.gcl-steps.is-enhanced .gcl-step { display: none; }
.gcl-steps.is-enhanced .gcl-step.is-current { display: block; animation: gcl-fade .3s var(--ease); }
.gcl-steps.is-enhanced .gcl-step + .gcl-step { margin-top: 0; }
.gcl-steps__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.gcl-steps__count { font-size: 14px; color: var(--ink-2); font-weight: 600; }

.gcl-callout {
	display: flex; gap: 14px; margin: 1.6em 0 !important; padding: 16px 18px; border-radius: var(--r-md);
	background: var(--sun-soft); font-size: 17px; line-height: 1.5;
}
.gcl-callout__icon { color: var(--t-sun-fg); margin-top: 2px; }
@media (prefers-color-scheme: dark) { .gcl-callout__icon { color: var(--sun); } }
.gcl-callout--important { background: var(--coral-soft); }
.gcl-callout--important .gcl-callout__icon { color: var(--coral); }
.gcl-callout--remember { background: var(--t-sky-bg); }
.gcl-callout--remember .gcl-callout__icon { color: var(--t-sky-fg); }
.gcl-callout__label { margin: 0 0 2px !important; font-weight: 700; }
.gcl-callout p { margin: 0; }
.gcl-callout p + p { margin-top: .6em; }

.gcl-reflect__prompt { display: block; font-size: 19px; font-weight: 650; line-height: 1.35; margin-bottom: 12px; }
.gcl-reflect textarea {
	width: 100%; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--paper);
	padding: 14px; font: inherit; font-size: 17px; color: var(--ink); resize: vertical;
}
.gcl-reflect__note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }

.gcl-activity { margin: 1.6em 0; }
.gcl-activity__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.gcl-activity iframe { display: block; width: 100%; height: min(var(--h), 80vh); border: 0; border-radius: 0; }
.gcl-activity figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* ------------------------------------------------------------------ Quiz */

.gcl-quiz { margin: 48px 0 0; padding: 24px 20px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); }
.gcl-quiz__intro { text-align: center; display: grid; justify-items: center; gap: 6px; }
.gcl-quiz__intro h2 { font-size: 24px; margin: 8px 0 0; letter-spacing: -.02em; }
.gcl-quiz__intro p { margin: 0 0 12px; color: var(--ink-2); max-width: 40ch; font-size: 16px; }
.gcl-quiz__prev { display: inline-flex; align-items: center; gap: 6px; color: var(--leaf) !important; font-weight: 600; }
.gcl-quiz__prev .gcl-icon { width: 18px; height: 18px; }
.gcl-quiz__dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.gcl-quiz__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .3s, transform .3s; }
.gcl-quiz__dots span.here { background: var(--ink); transform: scale(1.25); }
.gcl-quiz__dots span.seen { background: var(--ink-3); }
.gcl-quiz__q { font-size: 21px; line-height: 1.3; font-weight: 700; letter-spacing: -.018em; margin: 0 0 6px; }
.gcl-quiz__how { font-size: 14px; color: var(--ink-2); margin: 0 0 16px; }
.gcl-quiz__options { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.gcl-option {
	display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px;
	border-radius: var(--r-md); border: 1.5px solid var(--line-strong); cursor: pointer;
	font-size: 17px; line-height: 1.35; transition: border-color .15s, background .15s;
}
.gcl-option:hover { border-color: var(--ink-3); }
.gcl-option input { position: absolute; opacity: 0; pointer-events: none; }
.gcl-option__mark { width: 24px; height: 24px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: background .15s, box-shadow .15s; }
.gcl-option--multi .gcl-option__mark { border-radius: 7px; }
.gcl-option:has(input:checked) { border-color: var(--ink); background: var(--paper-2); }
.gcl-option:has(input:checked) .gcl-option__mark { box-shadow: inset 0 0 0 7px var(--ink); }
.gcl-option--multi:has(input:checked) .gcl-option__mark { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/16px no-repeat; box-shadow: none; }
.gcl-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.gcl-quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.gcl-quiz__nav .gcl-btn--primary { margin-left: auto; min-width: 140px; }

.gcl-result { text-align: center; display: grid; justify-items: center; gap: 6px; }
.gcl-result h3 { font-size: 26px; margin: 12px 0 0; letter-spacing: -.022em; }
.gcl-result p { margin: 0; color: var(--ink-2); }
.gcl-result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.gcl-review { list-style: none; margin: 22px 0 0; padding: 0; text-align: left; width: 100%; display: grid; gap: 8px; }
.gcl-review li { padding: 14px 16px; border-radius: var(--r-md); background: var(--paper-2); font-size: 15px; line-height: 1.45; }
.gcl-review strong { display: block; font-size: 16px; margin-bottom: 4px; }
.gcl-review .is-right { color: var(--leaf); font-weight: 650; }
.gcl-review .is-wrong { color: var(--coral); font-weight: 650; }

/* ------------------------------------------------------------------ Course-complete moment */

.gcl-celebrate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(20, 18, 10, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: gcl-fade-in .3s ease; }
.gcl-celebrate[hidden] { display: none; }
.gcl-celebrate__card { width: min(420px, 100%); padding: 36px 28px 28px; border-radius: var(--r-xl); background: var(--surface); text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: gcl-pop-up .5s var(--ease); }
.gcl-celebrate__card h2 { font-size: 28px; margin: 18px 0 6px; letter-spacing: -.024em; }
.gcl-celebrate__card p { margin: 0; color: var(--ink-2); }
.gcl-celebrate__actions { display: grid; gap: 10px; margin-top: 24px; }
.gcl-celebrate__sun { position: relative; width: 120px; height: 120px; margin: 0 auto; }
.gcl-celebrate__sun span {
	position: absolute; inset: 18px; border-radius: 50%;
	background: radial-gradient(circle at 38% 36%, #FFF4A3 0 22%, var(--sun) 56%, var(--sun-deep) 100%);
	box-shadow: 0 0 60px 16px rgba(253, 222, 11, .55);
	animation: gcl-sunburst 1.1s var(--ease) both;
}
.gcl-celebrate__sun::before {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	background: repeating-conic-gradient(from 0deg, rgba(253, 222, 11, .55) 0 6deg, transparent 6deg 30deg);
	-webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
	mask: radial-gradient(circle, transparent 46%, #000 47%, #000 70%, transparent 71%);
	animation: gcl-rays 1.4s var(--ease) both, gcl-turn 30s linear 1.4s infinite;
}
@keyframes gcl-fade-in { from { opacity: 0; } }
@keyframes gcl-pop-up { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes gcl-sunburst { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes gcl-rays { from { transform: scale(.6) rotate(-30deg); opacity: 0; } }
@keyframes gcl-turn { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Forms */

.gcl-form { display: grid; gap: 18px; }
.gcl-field { display: grid; gap: 7px; }
.gcl-field > label { font-size: 15px; font-weight: 600; }
.gcl input[type="text"], .gcl input[type="email"], .gcl input[type="password"], .gcl input[type="search"], .gcl input:not([type]) {
	width: 100%; height: 52px; padding: 0 16px; border-radius: 13px;
	border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
	font: inherit; font-size: 17px; letter-spacing: -.01em;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none; appearance: none;
}
.gcl input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(253, 222, 11, .5); }
.gcl input::placeholder { color: var(--ink-3); }

.gcl-password { position: relative; }
.gcl-password input { padding-right: 92px; }
.gcl-password__toggle {
	position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
	border: 0; background: transparent; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer;
	display: inline-flex; align-items: center;
}
.gcl-password__toggle span { display: inline-flex; align-items: center; gap: 6px; }
.gcl-password__toggle .gcl-icon { width: 18px; height: 18px; }
.gcl-password__hide { display: none !important; }
.gcl-password__toggle[aria-pressed="true"] .gcl-password__hide { display: inline-flex !important; }
.gcl-password__toggle[aria-pressed="true"] .gcl-password__show { display: none !important; }

.gcl-meter { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 2px; }
.gcl-meter span { display: block; height: 100%; width: 0; background: var(--coral); border-radius: inherit; transition: width .3s var(--ease), background .3s; }
.gcl-meter[data-level="2"] span { background: var(--sun-deep); }
.gcl-meter[data-level="3"] span { background: var(--leaf); }

.gcl-checkbox { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; min-height: 44px; }
.gcl-checkbox input { width: 22px; height: 22px; accent-color: var(--ink); }

.gcl-field-error {
	margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-md);
	background: var(--coral-soft); color: var(--coral); font-weight: 600; font-size: 15px; line-height: 1.4;
}

.gcl-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gcl-fieldset legend { font-size: 20px; font-weight: 700; letter-spacing: -.018em; padding: 0; margin: 0 0 10px 4px; }
.gcl-fieldset .gcl-hint { margin: -4px 0 12px 4px; }
.gcl-fieldset[hidden] { display: none; }

.gcl-group--form { overflow: visible; }
.gcl-field--inline { grid-template-columns: 110px 1fr; align-items: center; gap: 8px; padding: 0 0 0 16px; position: relative; }
.gcl-field--inline + .gcl-field--inline::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.gcl-field--inline label { font-weight: 500; font-size: 16px; }
.gcl .gcl-field--inline input { border: 0; background: transparent; border-radius: 0; padding-left: 0; height: 54px; }
.gcl .gcl-field--inline input:focus { box-shadow: none; }
.gcl-field--inline:focus-within label { color: var(--ink); font-weight: 650; }

.gcl-choices { display: grid; gap: 10px; }
.gcl-choice-card { position: relative; cursor: pointer; }
.gcl-choice-card input { position: absolute; opacity: 0; }
.gcl-choice-card__body {
	display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--r-md);
	background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong);
	transition: box-shadow .15s, background .15s;
}
.gcl-choice-card__body strong { font-size: 17px; }
.gcl-choice-card__body span { font-size: 14px; color: var(--ink-2); }
.gcl-choice-card input:checked + .gcl-choice-card__body { box-shadow: 0 0 0 2.5px var(--ink); }
.gcl-choice-card input:focus-visible + .gcl-choice-card__body { outline: 3px solid var(--focus); outline-offset: 3px; }

.gcl-pick label.gcl-row { cursor: pointer; min-height: 60px; }
.gcl-pick input { position: absolute; opacity: 0; }
.gcl-tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; flex: none; }
.gcl-tick .gcl-icon { width: 16px; height: 16px; stroke-width: 3; }
.gcl-pick input:checked ~ .gcl-tick { background: var(--ink); color: var(--paper); box-shadow: none; }
.gcl-radio { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); flex: none; }
.gcl-pick input:checked ~ .gcl-radio { box-shadow: inset 0 0 0 7px var(--ink); }
.gcl-pick input:focus-visible ~ .gcl-row__text { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.gcl-pick--scroll { max-height: 50vh; overflow-y: auto; }
.gcl-group.gcl-pick > li + li label.gcl-row::before { left: 62px; }

.gcl-switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; padding: 16px; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.gcl-switch input { position: absolute; opacity: 0; }
.gcl-switch__track { width: 51px; height: 31px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; transition: background .25s; }
.gcl-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.gcl-switch input:checked + .gcl-switch__track { background: var(--leaf); }
.gcl-switch input:checked + .gcl-switch__track::after { transform: translateX(20px); }
.gcl-switch input:focus-visible + .gcl-switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }
.gcl-switch__text { display: flex; flex-direction: column; gap: 3px; }
.gcl-switch__text span { font-size: 14px; color: var(--ink-2); line-height: 1.4; }

.gcl-form__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.gcl-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.gcl-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gcl-file input:focus-visible + .gcl-btn { outline: 3px solid var(--focus); outline-offset: 2px; }
.gcl-file__name { font-size: 14px; color: var(--ink-2); }
.gcl-upload .gcl-group { margin-bottom: 4px; }

/* Toolbar: search + segmented */
.gcl-toolbar { display: grid; gap: 12px; margin: 18px 0; }
.gcl-search { position: relative; display: block; }
.gcl-search .gcl-icon { position: absolute; left: 14px; top: 15px; width: 20px; height: 20px; color: var(--ink-3); }
.gcl .gcl-search input { padding-left: 44px; height: 48px; border-radius: 12px; background: var(--paper-2); border-color: transparent; }
.gcl-segmented {
	display: flex; padding: 3px; border-radius: 11px; background: var(--paper-2); overflow-x: auto; scrollbar-width: none;
}
.gcl-segmented::-webkit-scrollbar { display: none; }
.gcl-segmented a, .gcl-segmented label {
	flex: 1; text-align: center; white-space: nowrap; padding: 8px 12px; border-radius: 8px;
	font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; position: relative;
}
.gcl-segmented a[aria-current="true"], .gcl-segmented label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.gcl-segmented input { position: absolute; opacity: 0; }
.gcl-segmented label:has(input:focus-visible) { outline: 3px solid var(--focus); }

/* ------------------------------------------------------------------ People */

.gcl-person__id { display: flex; align-items: center; gap: 16px; }
.gcl-person__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.gcl-person__status { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.gcl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.gcl-actions form { display: contents; }
.gcl-inline-note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--sun-soft); font-size: 15px; font-weight: 500; }
.gcl-inline-note .gcl-icon { width: 20px; height: 20px; }

.gcl-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gcl-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-size: 15px; font-weight: 500; }
.gcl-chips a:hover { background: var(--paper-2); }

.gcl-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.gcl-timeline li { position: relative; display: flex; flex-direction: column; }
.gcl-timeline li::before { content: ""; position: absolute; left: -24px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--ink-3); }
.gcl-timeline__what { font-size: 15px; font-weight: 600; }
.gcl-timeline__when { font-size: 13px; color: var(--ink-3); }

/* Sheets (native dialog) */
.gcl-sheet {
	border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 100%;
	max-height: 92vh; border-radius: 24px 24px 0 0; background: var(--paper); color: var(--ink);
	box-shadow: var(--shadow-sheet);
}
.gcl-sheet[open] { animation: gcl-sheet-up .38s var(--ease); }
.gcl-sheet::backdrop { background: rgba(20, 18, 10, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.gcl-sheet > form, .gcl-sheet > .gcl-form { padding: 10px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.gcl-sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 8px auto 0; }
.gcl-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gcl-sheet__head h2 { font-size: 22px; margin: 0; letter-spacing: -.02em; line-height: 1.2; }
.gcl-sheet__lead { margin: 0; color: var(--ink-2); font-size: 16px; }
.gcl-sheet__more { border-top: 1px solid var(--line); }
.gcl-sheet__more h3 { margin: 6px 0 0; font-size: 17px; }
@keyframes gcl-sheet-up { from { transform: translateY(40px); opacity: 0; } }

/* ------------------------------------------------------------------ Reports */

.gcl-figures {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px;
	background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); overflow: hidden;
}
.gcl-figure { padding: 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 0 0 .5px var(--line); }
.gcl-figure strong { font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gcl-figure span { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.gcl-figure.is-alert strong { color: var(--coral); }

.gcl-matrix { overflow-x: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.gcl-matrix table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.gcl-matrix th, .gcl-matrix td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gcl-matrix thead th { font-size: 13px; color: var(--ink-2); font-weight: 600; max-width: 180px; white-space: normal; vertical-align: bottom; }
.gcl-matrix tbody th { position: sticky; left: 0; background: var(--surface); font-weight: 600; z-index: 1; }
.gcl-matrix tbody th a { text-decoration: none; }
.gcl-matrix tbody tr:last-child > * { border-bottom: 0; }
.gcl-cell { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.gcl-cell .gcl-icon { width: 16px; height: 16px; stroke-width: 2.6; }
.gcl-cell--done { color: var(--leaf); font-weight: 600; }
.gcl-cell--overdue { color: var(--coral); font-weight: 700; }

/* Empty states */
.gcl-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 20px; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); margin-top: 20px; }
.gcl-empty p { margin: 0; color: var(--ink-2); max-width: 40ch; }
.gcl-empty--page { background: none; box-shadow: none; padding-top: 18vh; }

.gcl-logout { margin-top: 32px; color: var(--coral); }

/* ------------------------------------------------------------------ Login and password pages */

.gcl-auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.gcl-auth__art {
	position: relative; overflow: hidden; height: 30vh; min-height: 200px; max-height: 300px;
	background: linear-gradient(180deg, #FFF8D6 0%, #FFE88A 70%, #FDDE0B 100%);
	display: flex; align-items: flex-end;
}
@media (prefers-color-scheme: dark) { .gcl-auth__art { background: linear-gradient(180deg, #23211A 0%, #4A3E0E 72%, #8A7000 100%); } }
.gcl-auth__tagline { display: none; }
.gcl-horizon { position: absolute; inset: 0; }
.gcl-horizon__sun {
	position: absolute; left: 50%; bottom: 22%; width: 150px; height: 150px; margin-left: -75px; border-radius: 50%;
	background: radial-gradient(circle at 38% 36%, #FFF6B8 0 20%, var(--sun) 55%, var(--sun-deep) 100%);
	box-shadow: 0 0 0 22px rgba(255, 255, 255, .25), 0 0 0 48px rgba(255, 255, 255, .14), 0 0 120px 40px rgba(253, 222, 11, .6);
	animation: gcl-dawn 2.2s var(--ease) both;
}
.gcl-horizon__hill { position: absolute; left: -20%; right: -20%; border-radius: 50% 50% 0 0; }
.gcl-horizon__hill--back { bottom: -64%; height: 100%; background: #EFD878; }
.gcl-horizon__hill--front { bottom: -78%; height: 100%; left: -40%; right: 10%; background: var(--paper); }
@media (prefers-color-scheme: dark) { .gcl-horizon__hill--back { background: #5A4B12; } }
@keyframes gcl-dawn { from { transform: translateY(90px); opacity: .4; } }

.gcl-auth__panel { display: flex; flex-direction: column; padding: 8px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--paper); }
.gcl-brand--auth { margin: 0 auto 0 0; }
.gcl-auth__body { width: 100%; max-width: 400px; margin: 24px auto 0; flex: 1; }
.gcl-auth__title { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.028em; margin: 0; }
.gcl-auth__lead { font-size: 17px; color: var(--ink-2); margin: 10px 0 26px; }
.gcl-auth__alt { text-align: center; margin: 22px 0 0; font-size: 16px; }
.gcl-auth__alt a { font-weight: 600; text-decoration: none; }
.gcl-auth__alt a:hover { text-decoration: underline; }
.gcl-auth .gcl-btn--block { margin-top: 4px; min-height: 54px; font-size: 17px; }
.gcl-auth__foot { max-width: 400px; width: 100%; margin: 40px auto 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.gcl-auth__foot p { margin: 0 0 8px; }
.gcl-auth__foot a { color: var(--ink-2); }

/* ------------------------------------------------------------------ Larger screens */

@media (min-width: 600px) {
	:root { --gutter: 24px; }
	.gcl-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gcl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gcl-sunrise { width: 128px; height: 128px; border-radius: 30px; }
	.gcl-sunrise__sun { width: 70px; height: 70px; margin-left: -35px; bottom: calc(-26px + var(--rise) * .6px); }
	.gcl-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gcl-toolbar { grid-template-columns: 1fr auto; align-items: center; }
	.gcl-choices { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
	.gcl-sheet { margin: auto; width: min(540px, 92vw); border-radius: 24px; }
	.gcl-sheet::before { display: none; }
	.gcl-sheet > form, .gcl-sheet > .gcl-form { padding: 22px 26px 26px; }
	.gcl-section--split { grid-template-columns: 1fr 1fr; }
	.gcl-course__head { flex-direction: row; gap: 18px; }
	.gcl-course__action { grid-template-columns: auto 1fr auto; }
	.gcl-course__buttons { grid-column: auto; justify-content: flex-end; }
	.gcl-course__buttons .gcl-btn--primary { flex: none; }
}

@media (min-width: 900px) {
	.gcl-top__nav { display: flex; }
	.gcl-me { margin-left: 0; }
	.gcl-tabs { display: none; }
	.gcl-main { padding: 36px 0 80px; }
	.gcl-large-title { font-size: 44px; }
	.gcl-hello__summary { font-size: 20px; }
	.gcl-shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gcl-course__hero { margin-top: -36px; padding: 32px 0 40px; }
	.gcl-course__art { width: 88px; height: 88px; border-radius: 24px; }
	.gcl-course__art .gcl-icon { width: 46px; height: 46px; }
	.gcl-lesson__article { padding-top: 48px; }
	.gcl-lesson__title { font-size: 44px; }
	.gcl-prose { font-size: 19px; }
	.gcl-continue { grid-template-columns: 1fr auto; column-gap: 32px; padding: 28px 32px 24px; }
	.gcl-continue > * { grid-column: 1; }
	.gcl-continue__course { font-size: 30px; }

	.gcl-auth { grid-template-rows: none; grid-template-columns: minmax(0, 1.1fr) minmax(440px, 1fr); }
	.gcl-auth__art { height: auto; max-height: none; min-height: 100vh; padding: 56px; align-items: flex-start; }
	.gcl-auth__tagline { display: block; position: relative; z-index: 2; margin: 0; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -.03em; color: #3D3200; max-width: 12ch; }
	@media (prefers-color-scheme: dark) { .gcl-auth__tagline { color: #FFF1B0; } }
	.gcl-horizon__sun { width: 260px; height: 260px; margin-left: -130px; bottom: 26%; }
	.gcl-horizon__hill--back { bottom: -70%; }
	.gcl-horizon__hill--front { bottom: -82%; background: #F6E9B8; }
	@media (prefers-color-scheme: dark) { .gcl-horizon__hill--front { background: #2C2715; } }
	.gcl-auth__panel { padding: 40px 56px; justify-content: center; }
	.gcl-auth__body { flex: none; margin-top: 10vh; }
	.gcl-brand--auth { position: absolute; top: 36px; }
	.gcl-auth__panel { position: relative; }
}

/* ------------------------------------------------------------------ Motion and print */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.gcl-card__inner[aria-pressed="true"] { transform: none; }
	.gcl-card__inner[aria-pressed="true"] .gcl-card__front { visibility: hidden; }
	.gcl-card__inner[aria-pressed="true"] .gcl-card__back { transform: none; }
}

@media print {
	.gcl-top, .gcl-tabs, .gcl-lesson__bar, .gcl-lesson__foot, .gcl-session, .gcl-toast { display: none !important; }
	body.gcl { background: #fff; }
}
