/* IELTS Gym student pages. Colours approximate the Figma designs; replace with exact hex values when available. */
:root {
	--ig-navy: #12355b;
	--ig-lime: #bfd84f;
	--ig-blue: #4ba6da;
	--ig-grey: #d9d9d9;
	--ig-ink: #111;
	--ig-band-ink: #3a3a3a;
	--ig-muted: #666;
	--ig-ok: #1e7e34;
	--ig-error: #b3261e;
	--ig-page-bg: #fff; /* Must match the theme's content background (used for the button notch). */
	--ig-radius: 14px;
}

.ig-portal,
.ig-auth {
	font-family: "IELTS Gym Inter", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ig-ink);
	box-sizing: border-box;
}

.ig-portal *,
.ig-auth * {
	box-sizing: border-box;
}

/* Themes style headings with their own fonts; keep the portal consistent. */
.ig-portal h1, .ig-portal h2, .ig-portal h3,
.ig-auth h1, .ig-auth h2 {
	font-family: inherit;
	letter-spacing: normal;
}

.ig-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: var(--ig-radius);
	padding: 28px;
}

.ig-muted { color: var(--ig-muted); }
.ig-small { font-size: 14px; }
.ig-portal a.ig-link,
.ig-auth a.ig-link { color: var(--ig-navy); font-weight: 600; }

/* Notices */
.ig-notice {
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 16px;
	font-size: 15px;
}
.ig-notice--error { background: #fdecea; color: var(--ig-error); }
.ig-notice--ok { background: #e8f5e9; color: var(--ig-ok); }
.ig-notice--demo { background: #fff8e1; color: #6d4c00; }
.ig-notice--demo a { color: inherit; font-weight: 600; }

/* Forms */
.ig-auth { max-width: 440px; margin: 24px auto; }
.ig-auth__title { margin: 0 0 6px; font-size: 26px; }
.ig-form { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.ig-form label { font-weight: 600; font-size: 15px; margin-top: 8px; }
.ig-form input[type="text"],
.ig-form input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	border: 1px solid #bbb;
	border-radius: 8px;
}
.ig-form input:focus { outline: 2px solid var(--ig-blue); border-color: var(--ig-blue); }
.ig-form .ig-check { font-weight: 400; display: flex; align-items: center; gap: 8px; }

/* ---------- Login: minimal, in the website's style (owner, 24 Oct 2026; replaced the cloud photo) ----------
   Off-white page with soft lime and lavender glows and a faint dot grid; a white card with the site's pill button. */
.ig-login {
	position: relative;
	isolation: isolate;
	display: grid;
	place-items: center;
	width: 100vw;
	margin-left: calc(50% - 50vw); /* Edge to edge, whatever the theme's content width. */
	min-height: max(640px, calc(100vh - 80px));
	padding: 56px 16px;
	background:
		radial-gradient(520px 420px at 12% 18%, rgba(214, 240, 94, 0.38), transparent 70%),
		radial-gradient(560px 460px at 88% 86%, rgba(233, 232, 251, 0.95), transparent 70%),
		#f7f8f9;
	box-sizing: border-box;
	overflow: hidden;
}
/* Astra's full-width layout is already edge to edge and centres its children with auto margins: just fill it,
   and drop the padding Astra puts around the article (20px at the sides on phones). */
body.ast-page-builder-template .entry-content .ig-login { width: 100%; max-width: none; margin: 0; }
.ig-login-page .site-content article,
.ig-login-page.ast-single-post.ast-page-builder-template .site-main > article, /* Beats Astra's own selector. */
.ig-login-page .site-content .entry-header { padding: 0; margin: 0; }
.ig-login__inner { display: flex; justify-content: center; width: 100%; }
/* A faint dot grid that fades out towards the edges. */
.ig-login::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(16, 17, 20, 0.09) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
	mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 80%);
}
.ig-login__card {
	width: 100%;
	max-width: 420px;
	margin: 0;
	padding: 34px 32px 26px;
	border: 1px solid #eceef1;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 18px 48px rgba(16, 17, 20, 0.08);
	text-align: center;
}
.ig-login__badge {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: #d6f05e;
	box-shadow: 0 6px 18px rgba(188, 217, 60, 0.35);
}
.ig-login__badge svg { width: 30px; height: 21px; fill: #101114; }
.ig-auth .ig-login__tag { display: inline-block; margin: 0 0 10px; padding: 4px 10px; border-radius: 6px; background: #f1f2f4; color: #6c717a; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.ig-auth .ig-login__title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #101114; }
.ig-auth .ig-login__sub { margin: 8px 0 24px; font-size: 14.5px; color: #6c717a; }
.ig-login .ig-notice { text-align: left; font-size: 14px; }

.ig-login__form { text-align: left; }
.ig-login__label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #222; }
.ig-auth .ig-login__input {
	display: block;
	width: 100%;
	margin: 0 0 16px;
	padding: 11px 14px;
	border: 1.5px solid #dfe2e6;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS zooming into the field */
	color: #101114;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ig-auth .ig-login__input::placeholder { color: #9aa0a8; }
.ig-auth .ig-login__input:focus { outline: none; background: #fff; border-color: #101114; box-shadow: 0 0 0 4px #f2f9d6; }
.ig-login__pass { position: relative; }
.ig-login__pass .ig-login__input { padding-right: 46px; }
.ig-auth .ig-login__eye {
	position: absolute;
	top: 6px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #666;
	cursor: pointer;
}
.ig-auth .ig-login__eye:hover { background: rgba(17, 17, 17, 0.06); color: #111; }
.ig-auth .ig-login__eye[aria-pressed="true"] { color: var(--ig-navy); }
.ig-login__eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ig-login__eye[hidden] { display: none; }

.ig-login__row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -2px 0 18px; font-size: 14px; }
.ig-login__check { display: inline-flex; align-items: center; gap: 8px; color: #333; cursor: pointer; }
.ig-login__check input { width: 16px; height: 16px; margin: 0; accent-color: #111; }
.ig-login__forgot summary { list-style: none; color: #333; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ig-login__forgot summary::-webkit-details-marker { display: none; }
.ig-login__forgot summary:hover { color: #111; }
.ig-auth .ig-login__forgot p {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 2;
	width: min(260px, 100%);
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font-size: 13px;
	line-height: 1.45;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.ig-auth .ig-login__submit {
	display: block;
	width: 100%;
	padding: 15px 22px;
	border: 0;
	border-radius: 999px;
	background: #101114;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
}
.ig-auth .ig-login__submit span { display: inline-block; margin-left: 4px; transition: transform 0.15s; }
.ig-auth .ig-login__submit:hover,
.ig-auth .ig-login__submit:focus-visible { background: #2a2d33; transform: translateY(-1px); }
.ig-auth .ig-login__submit:hover span { transform: translateX(3px); }
.ig-auth .ig-login__submit:active { transform: translateY(0); }
.ig-auth .ig-login__foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #eceef1; font-size: 13.5px; color: #6c717a; }

/* 100vw includes the scrollbar on Windows; don't let it add a sideways scroll. */
body.ig-login-page,
body:has(.ig-login) { overflow-x: clip; }

/* Gentle entrance for the card. */
@media (prefers-reduced-motion: no-preference) {
	.ig-login__card { animation: ig-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes ig-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
	.ig-login { min-height: calc(100vh - 60px); padding: 28px 14px; }
	.ig-login__card { padding: 28px 20px 20px; }
	.ig-auth .ig-login__title { font-size: 26px; }
}

/* Buttons (selectors are specific enough to beat theme button/link styles) */
.ig-portal .ig-btn,
.ig-auth .ig-btn {
	display: inline-block;
	border: 0;
	border-radius: 10px;
	padding: 16px 30px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.ig-portal .ig-btn--dark,
.ig-auth .ig-btn--dark { background: #111; color: #fff; }
.ig-portal a.ig-btn--dark:hover,
.ig-portal a.ig-btn--dark:focus,
.ig-portal button.ig-btn--dark:hover,
.ig-portal button.ig-btn--dark:focus-visible,
.ig-auth .ig-btn--dark:hover { background: var(--ig-navy); color: #fff; }
.ig-portal .ig-btn--disabled { opacity: 0.4; cursor: not-allowed; }
.ig-form .ig-btn { margin-top: 12px; width: 100%; }

/* ---------- Dashboard ---------- */
.ig-dash { max-width: 1310px; margin: 0 auto; padding: 8px 0 40px; }

.ig-dash__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 24px;
}
.ig-portal .ig-dash__greeting { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.1; color: var(--ig-ink); }
.ig-portal .ig-dash__sub { margin: 6px 0 0; font-size: 18px; }

.ig-portal .ig-dash__meta { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.ig-portal .ig-dash__meta li {
	background: #f2f2f2;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 14px;
	margin: 0;
}
.ig-portal .ig-dash__meta span { color: var(--ig-muted); }
.ig-portal .ig-dash__buy { margin-left: 6px; font-size: 0.85em; font-weight: 600; color: var(--ig-navy); text-decoration: underline; text-underline-offset: 2px; }
.ig-portal .ig-dash__buy:hover { text-decoration-thickness: 2px; }

/* Journey card with the "notch" cut out for the button (bottom-right, as in Figma) */
/* Journey card: soft blue-white surface with a glow that follows the pointer (--mx/--my from frontend.js). */
.ig-journey {
	--ig-surface: #f4f7fb;
	position: relative;
	background:
		radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(75, 166, 218, 0.16), transparent 70%),
		linear-gradient(160deg, #f9fbfd 0%, #eef3f9 100%);
	border: 1px solid #e3e9f1;
	border-radius: var(--ig-radius);
	min-height: 300px;
	padding: 24px 28px 0;
	overflow: visible;
	container-type: inline-size;
}
.ig-journey--empty { background: var(--ig-grey); border: 0; }

/* ---------- Band score journey chart ---------- */
.ig-chart {
	/* Skill colours: validated as a set (colour-blind safe neighbours) on --ig-surface. */
	--ig-c-overall: #12355b;
	--ig-c-listening: #2a78d6;
	--ig-c-reading: #eb6834;
	--ig-c-writing: #1baf7a;
	--ig-c-speaking: #eda100;
	--ig-ink-2: #52514e;
	--ig-ink-3: #7d828a;
	--ig-hair: #dfe5ee;
	padding-bottom: 96px; /* Room for the test labels and the Start button notch. */
}
.ig-chart__head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.ig-portal .ig-chart__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ig-ink); }
.ig-portal .ig-chart__sub { margin: 2px 0 0; font-size: 13.5px; color: var(--ig-ink-3); }

.ig-portal .ig-chart__legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ig-portal .ig-chart__key {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid var(--ig-hair);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--ig-ink-2);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.ig-portal .ig-chart__key:hover { border-color: #c5cfdc; background: #fff; }
.ig-portal .ig-chart__key:focus-visible { outline: 2px solid var(--ig-blue); outline-offset: 2px; }
.ig-portal .ig-chart__key[aria-pressed="false"] { opacity: 0.45; background: transparent; }
.ig-chart__swatch { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.ig-chart__key--overall .ig-chart__swatch { height: 4px; }

.ig-chart__plot { position: relative; height: 230px; margin-left: 30px; }

.ig-chart__grid,
.ig-chart__target { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--ig-hair); }
.ig-chart__grid span { position: absolute; right: calc(100% + 10px); top: -8px; font-size: 11.5px; line-height: 16px; color: var(--ig-ink-3); font-variant-numeric: tabular-nums; }
.ig-chart__target { border-top: 1.5px dashed #9aa6b5; }
.ig-chart__target span { position: absolute; right: 0; bottom: 4px; font-size: 12px; font-weight: 600; color: var(--ig-ink-2); background: var(--ig-surface); padding: 0 4px; border-radius: 4px; }

.ig-chart__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ig-chart__line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: opacity 0.2s, stroke-width 0.2s; }
.ig-chart__line--overall { stroke-width: 3.5; }
.ig-chart__area { fill: url(#ig-chart-fill); transition: opacity 0.2s; }

/* One colour variable per series, used by lines, dots, labels, legend and tooltip keys. */
[data-ig-series="overall"], .ig-chart__tip-row--overall { --c: var(--ig-c-overall); }
[data-ig-series="listening"], .ig-chart__tip-row--listening { --c: var(--ig-c-listening); }
[data-ig-series="reading"], .ig-chart__tip-row--reading { --c: var(--ig-c-reading); }
[data-ig-series="writing"], .ig-chart__tip-row--writing { --c: var(--ig-c-writing); }
[data-ig-series="speaking"], .ig-chart__tip-row--speaking { --c: var(--ig-c-speaking); }

.ig-chart__dot {
	position: absolute;
	width: 9px;
	height: 9px;
	margin: -4.5px 0 0 -4.5px;
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 2px var(--ig-surface);
	transition: transform 0.2s, opacity 0.2s;
}

.ig-chart__pt {
	position: absolute;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 50%;
	background: var(--ig-c-overall);
	box-shadow: 0 0 0 3px var(--ig-surface), 0 6px 14px rgba(18, 53, 91, 0.25);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	cursor: default;
	transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.6, 1), box-shadow 0.2s;
	z-index: 2;
}
.ig-chart__pt:focus-visible { outline: 2px solid var(--ig-blue); outline-offset: 3px; }
.ig-chart__pt--last { background: #111; }

.ig-chart__end {
	position: absolute;
	transform: translate(32px, -50%);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	font-size: 12.5px;
	color: var(--ig-ink-2);
	transition: opacity 0.2s;
}
.ig-chart__end::before { content: ""; width: 10px; height: 3px; border-radius: 2px; background: var(--c); }
.ig-chart__end b { color: var(--ig-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ig-chart__end-short { display: none; }

.ig-chart__here {
	position: absolute;
	transform: translate(-50%, calc(-100% - 30px));
	padding: 5px 10px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
	pointer-events: none;
	z-index: 3;
}
.ig-chart__here::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #111; }
.ig-chart__here--below { transform: translate(-50%, 30px); }
.ig-chart__here--below::after { top: -5px; bottom: auto; border-top: 0; border-bottom: 5px solid #111; }

.ig-chart__x { position: absolute; top: calc(100% + 30px); transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--ig-ink-3); white-space: nowrap; }

/* Hover / focus: crosshair at the nearest test, its marks lift, a tooltip lists every band. */
.ig-chart__cross { position: absolute; top: -8px; bottom: -8px; width: 0; border-left: 1px solid rgba(18, 53, 91, 0.35); opacity: 0; pointer-events: none; transition: left 0.15s ease-out, opacity 0.15s; }
.ig-chart.is-pointing .ig-chart__cross { opacity: 1; }
.ig-chart__pt.is-active { transform: scale(1.18); box-shadow: 0 0 0 3px var(--ig-surface), 0 8px 20px rgba(18, 53, 91, 0.35); }
.ig-chart__dot.is-active { transform: scale(1.6); }
.ig-chart__x.is-active { color: var(--ig-ink); }

.ig-chart__tip {
	position: absolute;
	top: 0;
	min-width: 168px;
	padding: 10px 12px;
	border: 1px solid #e3e8ef;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 10px 30px rgba(18, 53, 91, 0.16);
	font-size: 13px;
	color: var(--ig-ink-2);
	transform: translate(18px, 4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s, left 0.15s ease-out;
	z-index: 4;
}
.ig-chart__tip.is-left { transform: translate(calc(-100% - 18px), 4px); }
.ig-chart.is-pointing .ig-chart__tip { opacity: 1; }
.ig-chart__tip-head { margin-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--ig-ink); }
.ig-chart__tip-head span { font-weight: 500; color: var(--ig-ink-3); }
.ig-chart__tip-row { display: flex; align-items: center; gap: 8px; line-height: 1.7; }
.ig-chart__tip-row strong { min-width: 26px; color: var(--ig-ink); font-variant-numeric: tabular-nums; }
.ig-chart__tip-key { width: 12px; height: 3px; border-radius: 2px; background: var(--c); }
.ig-chart__tip-row--overall { margin-bottom: 2px; padding-bottom: 4px; border-bottom: 1px solid #edf0f4; }
.ig-chart__tip-row--overall strong { font-size: 15px; }

/* Legend: hovering a key fades the other lines; a switched-off key hides its line. */
.ig-chart[data-focus] .ig-chart__lines path,
.ig-chart[data-focus] .ig-chart__dot,
.ig-chart[data-focus] .ig-chart__end { opacity: 0.15; }
.ig-chart[data-focus="overall"] .ig-chart__plot .ig-chart__lines [data-ig-series="overall"],
.ig-chart[data-focus="listening"] .ig-chart__plot [data-ig-series="listening"],
.ig-chart[data-focus="reading"] .ig-chart__plot [data-ig-series="reading"],
.ig-chart[data-focus="writing"] .ig-chart__plot [data-ig-series="writing"],
.ig-chart[data-focus="speaking"] .ig-chart__plot [data-ig-series="speaking"] { opacity: 1; }
.ig-chart[data-focus="listening"] .ig-chart__line--listening,
.ig-chart[data-focus="reading"] .ig-chart__line--reading,
.ig-chart[data-focus="writing"] .ig-chart__line--writing,
.ig-chart[data-focus="speaking"] .ig-chart__line--speaking { stroke-width: 3.5; }
.ig-chart[data-focus]:not([data-focus="overall"]) .ig-chart__pt { opacity: 0.35; }
.ig-chart.hide-overall .ig-chart__plot [data-ig-series="overall"],
.ig-chart.hide-listening .ig-chart__plot [data-ig-series="listening"],
.ig-chart.hide-reading .ig-chart__plot [data-ig-series="reading"],
.ig-chart.hide-writing .ig-chart__plot [data-ig-series="writing"],
.ig-chart.hide-speaking .ig-chart__plot [data-ig-series="speaking"],
.ig-chart.hide-overall .ig-chart__here { opacity: 0 !important; visibility: hidden; }

/* Draw-in on page load (CSS only): lines sweep in left to right, points pop as the line reaches them. */
@media (prefers-reduced-motion: no-preference) {
	.ig-chart__lines { animation: ig-draw 1.5s cubic-bezier(0.45, 0, 0.2, 1) both; }
	.ig-chart__pt,
	.ig-chart__dot { animation: ig-pop 0.45s cubic-bezier(0.3, 1.6, 0.6, 1) var(--d, 0s) both; }
	.ig-chart__end,
	.ig-chart__here,
	.ig-chart__target span { animation: ig-fade 0.5s ease-out 1.5s both; }
	.ig-chart__here { animation-name: ig-here; }
	.ig-chart__grid,
	.ig-chart__target { animation: ig-fade 0.6s ease-out both; }
}
@keyframes ig-draw { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -2% -20% 0); } }
@keyframes ig-pop { from { opacity: 0; scale: 0.3; } to { opacity: 1; scale: 1; } }
@keyframes ig-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ig-here { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* Narrow cards: letters instead of skill names, smaller points; dense charts drop the numbers in older points. */
@container (max-width: 700px) {
	.ig-chart__head { margin-bottom: 20px; }
	.ig-chart__plot { height: 200px; margin-left: 26px; }
	.ig-chart__pt { width: 30px; height: 30px; margin: -15px 0 0 -15px; font-size: 11px; }
	.ig-chart__end { transform: translate(22px, -50%); font-size: 11.5px; }
	.ig-chart__end-full { display: none; }
	.ig-chart__end-short { display: inline; }
	.ig-chart__here { transform: translate(-50%, calc(-100% - 24px)); font-size: 11.5px; }
	.ig-chart__here--below { transform: translate(-50%, 24px); }
	.ig-chart__target span { right: auto; left: 0; }
	.ig-chart__x { top: calc(100% + 22px); font-size: 11px; }
	.ig-chart--dense .ig-chart__pt:not(.ig-chart__pt--last) { width: 14px; height: 14px; margin: -7px 0 0 -7px; font-size: 0; }
	.ig-chart--dense .ig-chart__x:not(.ig-chart__x--last) { display: none; }
	.ig-chart { padding-bottom: 52px; }
}

.ig-journey--empty { display: flex; align-items: center; padding: 32px 300px 32px 32px; }
.ig-journey__intro h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; color: var(--ig-ink); }
.ig-portal .ig-journey__intro p { margin: 0; max-width: 560px; font-size: 16px; }

.ig-journey__cta {
	position: absolute;
	right: 0;
	bottom: 0;
	background: var(--ig-page-bg);
	padding: 12px 0 0 12px;
	border-top-left-radius: var(--ig-radius);
}
/* Inverted corners that make the notch look carved out of the grey card. */
.ig-journey__cta::before,
.ig-journey__cta::after {
	content: "";
	position: absolute;
	width: var(--ig-radius);
	height: var(--ig-radius);
	background: radial-gradient(circle at 0 0, transparent calc(var(--ig-radius) - 0.5px), var(--ig-page-bg) var(--ig-radius));
}
.ig-journey__cta::before { top: calc(var(--ig-radius) * -1); right: 0; }
.ig-journey__cta::after { bottom: 0; left: calc(var(--ig-radius) * -1); }
.ig-journey__cta .ig-btn { min-width: 240px; padding: 22px 30px; }
/* Themes underline links on hover/focus; the button never is. */
.ig-dash .ig-journey__cta a.ig-btn,
.ig-dash .ig-journey__cta a.ig-btn:hover,
.ig-dash .ig-journey__cta a.ig-btn:focus { text-decoration: none; color: #fff; }

.ig-portal .ig-dash__hint { margin: 12px 0 0; color: var(--ig-muted); font-size: 14px; }
/* After the last mock of a package: progress or congratulations (IELTSGym_Attempts::package_outcome()). */
.ig-portal .ig-outcome { margin: 18px 0 0; padding: 22px 24px; border: 1px solid #e3e6ea; border-left: 5px solid var(--ig-blue); border-radius: var(--ig-radius); background: #f6f9fc; }
.ig-portal .ig-outcome--achieved { border-left-color: var(--ig-lime); background: #f7fae8; }
.ig-portal .ig-outcome h2 { margin: 0 0 8px; font-size: 20px; }
.ig-portal .ig-outcome p { margin: 0 0 10px; color: #333; line-height: 1.6; }
.ig-portal .ig-outcome .ig-outcome__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ig-portal .ig-btn--light { background: #fff; color: var(--ig-ink); border: 1.5px solid var(--ig-ink); }
.ig-portal a.ig-btn--light:hover, .ig-portal a.ig-btn--light:focus { background: var(--ig-ink); color: #fff; }
.ig-report .ig-report__next p { max-width: 760px; }

.ig-portal .ig-section-title { font-size: 24px; font-weight: 500; margin: 40px 0 14px; color: var(--ig-ink); }

/* Test cards: sized from the card's own width (container queries), so they fit any theme column. */
/* Five tiles per row, as in the Figma design (two on phones, see below). */
.ig-tests { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ig-test {
	position: relative;
	container-type: inline-size;
	aspect-ratio: 1 / 0.96;
	border-radius: var(--ig-radius);
	background: var(--ig-grey);
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: var(--ig-band-ink);
	text-decoration: none;
	overflow: hidden;
}
.ig-portal a.ig-test { color: var(--ig-band-ink); transition: transform 0.15s; }
.ig-portal a.ig-test:hover { transform: translateY(-2px); }

.ig-test__no { position: absolute; top: 10px; right: 12px; font-size: max(11px, 7cqi); font-weight: 600; }
.ig-test__band {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 2cqi;
	font-size: 42cqi;
	font-weight: 800;
	line-height: 0.8;
	letter-spacing: -0.04em;
	margin-bottom: 7cqi;
}
.ig-test__band small { font-size: max(12px, 9cqi); font-weight: 500; letter-spacing: 0; padding-bottom: 2cqi; }
.ig-test__skills {
	display: flex;
	justify-content: space-around;
	background: #fff;
	border-radius: 6px;
	padding: 5px 4px;
	font-size: max(10px, 6.5cqi);
	font-weight: 500;
	white-space: nowrap;
}
.ig-test__skills b { font-weight: 700; margin-right: 2px; }
.ig-test__state { font-size: max(18px, 13cqi); font-weight: 700; line-height: 1.1; }
.ig-test__note { font-size: max(12px, 7.5cqi); margin-top: 4px; }

.ig-test--completed { background: var(--ig-lime); }
.ig-test--marking { background: #e4efb4; }
.ig-test--in_progress { background: var(--ig-blue); }
.ig-portal a.ig-test--in_progress,
.ig-test--in_progress { color: #fff; }
.ig-test--available { background: var(--ig-grey); }
.ig-test--expired { background: #f0f0f0; color: var(--ig-muted); }

.ig-dash a.ig-test,
.ig-dash a.ig-test:hover,
.ig-dash a.ig-test:focus { text-decoration: none; }

/* ---------- Mock results (Figma "results") ---------- */
.ig-results { max-width: 1310px; margin: 0 auto; padding: 8px 0 40px; }
.ig-portal .ig-results__title { margin: 0 0 20px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.15; }
.ig-results__title strong { font-weight: 700; }

.ig-results__overall {
	position: relative;
	container-type: inline-size;
	display: flex;
	justify-content: flex-end;
	align-items: flex-end;
	gap: 2cqi;
	min-height: 220px;
	padding: 20px clamp(20px, 3vw, 36px) 16px;
	border-radius: var(--ig-radius);
	background: var(--ig-lime);
	color: var(--ig-band-ink);
	overflow: hidden;
}
.ig-results__estimate {
	position: absolute;
	top: 18px;
	left: clamp(20px, 3vw, 36px);
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	font-size: 13px;
	font-weight: 600;
	color: #3d4a12;
}
.ig-portal .ig-results__overall-label { margin: 0 0 3.2cqi; font-size: clamp(18px, 2.4cqi, 30px); line-height: 1.15; }
.ig-portal .ig-results__overall-band { margin: 0; font-size: clamp(96px, 17cqi, 230px); font-weight: 800; line-height: 0.78; letter-spacing: -0.05em; }
.ig-results__overall--marking { flex-direction: column; justify-content: center; align-items: flex-start; gap: 0; padding-top: 56px; background: #e4efb4; }
.ig-portal .ig-results__wait { margin: 24px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; }
.ig-portal .ig-results__wait-note { margin: 10px 0 0; font-size: 16px; color: #3a3a3a; }

@media (max-width: 800px) {
	.ig-results__overall { min-height: 170px; }
}

/* ---------- Exam area (Figma "Exam area") ---------- */
.ig-exam { max-width: 1310px; margin: 0 auto; padding: 8px 0 40px; }
.ig-portal .ig-exam__title { margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 500; line-height: 1.15; }
.ig-exam__title strong,
.ig-exam__ready strong { font-weight: 700; }
.ig-exam__start { max-width: 560px; margin: 0 auto 24px; }
.ig-exam__start .ig-exam__title { font-weight: 700; }

/* "Before You Begin" (shown before a mock starts) */
.ig-begin {
	max-width: 780px;
	margin: 0 auto 24px;
	padding: clamp(20px, 3vw, 28px) clamp(18px, 3vw, 28px) 16px;
	background: #fdfdfd;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
}
.ig-portal .ig-begin__title { margin: 0 0 16px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.ig-portal .ig-begin__intro { margin: 0 0 16px; font-size: 15px; color: #777; }
.ig-portal .ig-begin__rules { margin: 0; padding: 0; list-style: none; }
.ig-begin__rule,
.ig-begin__ready { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; margin: 0 0 16px; }
.ig-begin__icon { grid-row: 1; width: 22px; height: 22px; align-self: start; margin-top: 1px; fill: none; stroke: #222; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig-begin__dot,
.ig-begin__bars { fill: #222; stroke: none; }
.ig-portal .ig-begin__rule-title { grid-column: 2; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.ig-portal .ig-begin__rule-text { grid-column: 2; margin: 8px 0 0; font-size: 16.5px; line-height: 1.65; color: #333; }
.ig-portal .ig-begin__rule-text strong { color: #222; }
.ig-begin__ready { margin-top: 20px; padding-top: 22px; border-top: 1px solid #e5e5e5; }
.ig-begin__icon--ok { stroke: #22a55a; }
.ig-begin__form { margin: 0; }
.ig-begin__agree { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; color: #333; cursor: pointer; }
.ig-begin__agree input {
	appearance: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1.5px solid #c8c8c8;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.ig-begin__agree input:checked {
	border-color: #22a55a;
	background: #22a55a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ig-begin__agree input:focus-visible { outline: 2px solid var(--ig-blue); outline-offset: 2px; }
.ig-portal .ig-begin__start {
	display: block;
	width: 100%;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: #111;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.ig-portal .ig-begin__start:hover,
.ig-portal .ig-begin__start:focus-visible { background: var(--ig-navy); }
.ig-portal .ig-begin__start:disabled { background: #efefef; color: #a3a3a3; cursor: not-allowed; }
.ig-portal .ig-begin__credit { margin: 10px 0 0; font-size: 13px; color: #888; text-align: center; }

/* Tips slider: one full-width slide at a time. All slides shift together by --ig-slide (set in
   frontend.js) with a smooth ease; the shown slide's text and icon then glide in. */
.ig-tips { --ig-tip-a: #4aa6dc; --ig-tip-b: #4cbfe0; margin-bottom: 40px; }
.ig-tips__track {
	--ig-slide: 0;
	display: flex;
	overflow: hidden;
	border-radius: var(--ig-radius);
	touch-action: pan-y;
	user-select: none;
}
.ig-tip {
	position: relative;
	flex: 0 0 100%;
	min-height: clamp(300px, 34vw, 400px);
	display: flex;
	align-items: center;
	padding: 40px clamp(24px, 4vw, 56px);
	overflow: hidden;
	color: #fff;
	transform: translateX(calc(var(--ig-slide) * -100%));
	transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.ig-tip--a { background: var(--ig-tip-a); }
.ig-tip--b { background: var(--ig-tip-b); }
.ig-tip__body { position: relative; z-index: 1; max-width: min(620px, 60%); }
.ig-portal .ig-tip__title { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.15; color: #fff; }
.ig-portal .ig-tip__text { margin: 0; font-size: clamp(17px, 1.7vw, 23px); line-height: 1.5; }
.ig-tip__icon {
	position: absolute;
	right: 4%;
	top: 50%;
	height: 130%;
	width: auto;
	aspect-ratio: 1;
	transform: translateY(-50%);
}
.ig-tip__title, .ig-tip__text, .ig-tip__icon { transition: opacity 0.5s ease, translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), scale 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ig-tip:not(.is-active) .ig-tip__title,
.ig-tip:not(.is-active) .ig-tip__text { opacity: 0; translate: 0 14px; }
.ig-tip:not(.is-active) .ig-tip__icon { opacity: 0; scale: 0.85; translate: 30px 0; }
.ig-tip.is-active .ig-tip__title { transition-delay: 0.35s; }
.ig-tip.is-active .ig-tip__text { transition-delay: 0.45s; }
.ig-tip.is-active .ig-tip__icon { transition-delay: 0.3s; }

.ig-tips__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-top: 16px; }
.ig-tips__dots { display: flex; gap: 6px; }
.ig-portal .ig-tips__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: var(--ig-tip-a);
	opacity: 0.55;
	cursor: pointer;
	transition: width 0.3s, opacity 0.3s;
}
.ig-portal .ig-tips__dot[aria-current="true"] { width: 34px; opacity: 1; }

/* New mock: "Scroll to read the tips…" with a small mouse whose wheel moves; it fades once the time starts. */
.ig-portal .ig-tips__hint { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0; font-size: 16px; color: #4a5563; }
.ig-tips__mouse {
	position: relative;
	width: 22px;
	height: 34px;
	border: 2px solid currentColor;
	border-radius: 12px;
	opacity: 0.7;
}
.ig-tips__mouse::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 6px;
	width: 3px;
	height: 7px;
	margin-left: -1px;
	border-radius: 1px;
	background: currentColor;
	animation: ig-wheel 1.6s ease-in-out infinite;
}
@keyframes ig-wheel { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 7px; } }
.ig-portal .ig-tips__skip {
	padding: 8px 18px;
	border: 1px solid #c9d3df;
	border-radius: 999px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--ig-navy);
	cursor: pointer;
}
.ig-portal .ig-tips__skip:hover { border-color: var(--ig-navy); }
.ig-tips--gate.is-last .ig-tips__hint { color: var(--ig-navy); font-weight: 600; }
.ig-tips--started .ig-tips__hint { color: #2e7d32; font-weight: 600; animation: ig-fade 0.5s ease-out both; }
.ig-exam__timer.is-waiting strong { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
	.ig-tip, .ig-tip__title, .ig-tip__text, .ig-tip__icon { transition: none; }
	.ig-tips__mouse::after { animation: none; }
}

/* Icons (white shapes; a few lines/hands are drawn in blue on top) */
.ig-icon, .ig-tip__icon, .ig-skill__icon { fill: #fff; }
.ig-icon__line { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: round; }
.ig-icon__accent { fill: none; stroke: var(--ig-tip-a, #4aa6dc); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.ig-tip--b .ig-icon__accent { stroke: var(--ig-tip-b); }
.ig-skill .ig-icon__accent { stroke: var(--ig-grey); }

.ig-portal .ig-exam__ready { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.ig-exam__before { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.ig-portal .ig-exam__before-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.ig-portal .ig-exam__before p { margin: 0 0 0 16px; color: #333; }
.ig-portal .ig-exam__timer { margin: 0; white-space: nowrap; font-size: 17px; color: #333; }
.ig-exam__timer strong { font-weight: 700; color: var(--ig-ink); font-variant-numeric: tabular-nums; }

.ig-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ig-skill {
	position: relative;
	container-type: inline-size;
	min-height: 240px;
	border-radius: var(--ig-radius);
	background: var(--ig-grey);
	padding: 24px clamp(16px, 2.4vw, 28px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.ig-skill__icon { position: absolute; top: -8%; right: 4%; width: min(32%, 180px); height: auto; }
.ig-skill__body { position: relative; max-width: 78%; }
.ig-portal .ig-skill__title { margin: 0 0 6px; font-size: clamp(24px, 9cqi, 36px); font-weight: 700; line-height: 1.1; color: var(--ig-ink); }
.ig-portal .ig-skill__meta { margin: 0 0 8px; font-size: 15px; color: #666; }
.ig-portal .ig-skill__text { margin: 0; font-size: 16px; line-height: 1.4; color: #222; }
.ig-skill__state { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 6px; background: #fff; font-size: 13px; font-weight: 600; color: #555; }
.ig-skill__state--done { color: #3d5a00; }

/* A part the student can open: a dark button on a light blue card; a finished part turns green. */
.ig-portal .ig-skill__form { margin: 12px 0 0; }
.ig-portal .ig-skill__go,
.ig-portal a.ig-skill__go {
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	border: 0;
	border-radius: 8px;
	background: #111;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}
.ig-portal .ig-skill__form .ig-skill__go { margin-top: 0; }
.ig-portal .ig-skill__go:hover,
.ig-portal .ig-skill__go:focus-visible { background: var(--ig-navy); color: #fff; text-decoration: none; }
.ig-skill--ready, .ig-skill--in_progress { background: #e6edf5; }
.ig-skill--ready .ig-icon__accent, .ig-skill--in_progress .ig-icon__accent { stroke: #e6edf5; }
.ig-skill--submitted { background: #e4efb4; }
.ig-skill--submitted .ig-icon__accent { stroke: #e4efb4; }

.ig-portal .ig-exam__note { margin: 24px 0 0; font-size: 14px; line-height: 1.45; color: #333; }
.ig-portal .ig-exam__back { margin-top: 24px; }

.ig-portal .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

.ig-empty {
	border: 2px dashed var(--ig-grey);
	border-radius: var(--ig-radius);
	padding: 32px;
	text-align: center;
	color: var(--ig-muted);
}

/* IELTS Bites: two large cards per row, as in the Figma design */
.ig-bites { margin-top: 8px; }
.ig-bites__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.ig-portal .ig-bites__status { margin: 40px 0 14px; font-size: 14px; color: var(--ig-muted); }
.ig-portal .ig-bites__status--grace { color: #8a5a00; font-weight: 600; }
.ig-bites__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.ig-beta {
	display: inline-block;
	margin-left: 6px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ig-navy);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* Each game has its own colour (tone): a soft tile with its icon in a deeper shade. */
.ig-bite {
	--bite-bg: #eef1f4;
	--bite-icon: #d3dae2;
	--bite-ink: var(--ig-ink);
	--bite-text: #3b4350;
	--bite-pill: rgba(255, 255, 255, 0.75);
	--bite-btn: #111;
	--bite-btn-ink: #fff;
	position: relative;
	container-type: inline-size;
	min-height: 260px;
	border-radius: 18px;
	background: var(--bite-bg);
	padding: 26px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: var(--bite-ink);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ig-bite::after { /* A soft circle behind the icon. */
	content: "";
	position: absolute;
	top: -60px;
	right: -60px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	pointer-events: none;
}
.ig-bite:not(.ig-bite--locked):hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 35, 58, 0.12); }
.ig-bite--lime { --bite-bg: #eaf3c6; --bite-icon: #b6cf45; --bite-btn: #3d4a0e; }
.ig-bite--blue { --bite-bg: #dcebf8; --bite-icon: #6fb3e2; --bite-btn: #17375e; }
.ig-bite--orange { --bite-bg: #fde6da; --bite-icon: #f0956b; --bite-btn: #7a2f12; }
.ig-bite--aqua { --bite-bg: #d7f0ec; --bite-icon: #45b9ab; --bite-btn: #10524b; }
.ig-bite--yellow { --bite-bg: #fcf0c8; --bite-icon: #ecc23e; --bite-btn: #5c4600; }
.ig-bite--navy { --bite-bg: #17375e; --bite-icon: rgba(255, 255, 255, 0.28); --bite-ink: #fff; --bite-text: rgba(255, 255, 255, 0.86); --bite-pill: rgba(255, 255, 255, 0.14); --bite-btn: #bfd84f; --bite-btn-ink: #2f3a0a; }
.ig-bite__icon {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 1;
	width: min(32%, 150px);
	height: auto;
	fill: none;
	stroke: var(--bite-icon);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ig-bite__body { position: relative; z-index: 1; max-width: 72%; }
.ig-bite__meta { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bite-pill); font-size: 12px; font-weight: 700; color: var(--bite-ink); }
.ig-portal .ig-bite__title { margin: 10px 0 6px; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--bite-ink); }
.ig-portal .ig-bite__text { margin: 0 0 18px; font-size: 15px; line-height: 1.45; color: var(--bite-text); }
.ig-bite__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bite-btn);
	color: var(--bite-btn-ink);
	border-radius: 999px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.2s ease, filter 0.2s ease;
}
.ig-portal a.ig-bite__btn, .ig-portal a.ig-bite__btn:visited { color: var(--bite-btn-ink); text-decoration: none; }
.ig-portal a.ig-bite__btn:hover, .ig-portal a.ig-bite__btn:focus { gap: 12px; color: var(--bite-btn-ink); filter: brightness(1.15); text-decoration: none; }
.ig-bite__btn--locked { background: #8a929c; color: #fff; }
.ig-bite__best { margin-left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bite-pill); font-size: 13px; font-weight: 700; color: var(--bite-ink); }
.ig-bite--locked { filter: grayscale(1); opacity: 0.65; }
@media (prefers-reduced-motion: reduce) {
	.ig-bite, .ig-bite__btn { transition: none; }
	.ig-bite:not(.ig-bite--locked):hover { transform: none; }
}

@container (max-width: 420px) {
	.ig-bite__body { max-width: 100%; }
	.ig-bite__icon { width: 26%; opacity: 0.7; }
}

.ig-dash__foot { display: flex; gap: 24px; margin-top: 32px; font-size: 15px; }

@media (max-width: 800px) {
	.ig-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.ig-bites__grid { grid-template-columns: 1fr; gap: 12px; }
	.ig-bite { min-height: 0; padding: 20px; }
	.ig-portal .ig-bites__status { margin: 0 0 12px; }
	.ig-journey { padding: 16px 12px 12px; min-height: 0; }
	.ig-journey--empty { padding: 24px 20px; }
	/* On phones the button sits under the card instead of in the notch. */
	.ig-journey__cta { position: static; padding: 12px 0 0; background: none; }
	.ig-journey__cta::before,
	.ig-journey__cta::after { display: none; }
	.ig-journey__cta .ig-btn { width: 100%; min-width: 0; }
	.ig-journey--empty { flex-direction: column; align-items: stretch; }
	.ig-skills { grid-template-columns: 1fr; gap: 12px; }
	.ig-skill { min-height: 200px; }
	.ig-tip { min-height: 280px; }
	.ig-tip__body { max-width: 100%; }
	/* Smaller icon tucked into the corner, faded so the text stays readable over it. */
	.ig-tip__icon { top: auto; bottom: -18%; right: -12%; height: 70%; transform: none; opacity: 0.35; }
	.ig-exam__before { flex-direction: column; }
}

@media (max-width: 700px) {
	.ig-card { padding: 20px; }
}

/* ---------- Portal header and footer (replace Astra's on the portal pages) ---------- */
.igp-top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #eceef1; }
.igp-top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1310px, 100% - 40px); height: 68px; margin: 0 auto; }
.igp-logo { display: inline-flex; align-items: center; gap: 10px; color: #101114; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; text-decoration: none; }
.igp-logo:hover, .igp-logo:focus { color: #101114; }
.igp-logo svg { width: 32px; height: 22px; fill: #101114; flex: none; }
.igp-logo span { white-space: nowrap; }
.igp-logo em { padding: 2px 8px; border-radius: 6px; background: #d6f05e; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.igp-nav { display: flex; gap: 6px; }
.igp-nav a, .igp-tabs a { padding: 8px 16px; border-radius: 999px; color: #5b6170; font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.igp-nav a:hover, .igp-tabs a:hover { color: #101114; background: #f3f4f6; }
.igp-nav a.is-active, .igp-tabs a.is-active { background: #101114; color: #fff; }
.igp-top__right { display: flex; justify-content: flex-end; min-width: 150px; }
.igp-back { font-size: 14px; font-weight: 600; color: #101114; text-decoration: none; }
.igp-user { position: relative; }
.igp-user summary { display: flex; align-items: center; gap: 10px; padding: 5px 10px 5px 5px; border: 1px solid #e3e6ea; border-radius: 999px; background: #fff; cursor: pointer; list-style: none; }
.igp-user summary::-webkit-details-marker { display: none; }
.igp-user__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #d6f05e; color: #101114; font-size: 12.5px; font-weight: 800; }
.igp-user__id { font-size: 13.5px; font-weight: 700; color: #101114; }
.igp-user__caret { width: 16px; height: 16px; fill: none; stroke: #5b6170; stroke-width: 2; transition: transform 0.2s ease; }
.igp-user[open] .igp-user__caret { transform: rotate(180deg); }
.igp-user__menu { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 220px; padding: 8px; border: 1px solid #eceef1; border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(16, 17, 20, 0.12); }
.ig-portal-page .igp-user__menu p.igp-user__name { margin: 4px 10px 8px; padding-bottom: 8px; border-bottom: 1px solid #eceef1; font-size: 13px; color: #6c717a; }
.igp-user__menu a { padding: 9px 10px; border-radius: 8px; color: #101114; font-size: 14px; text-decoration: none; }
.igp-user__menu a:hover { background: #f3f4f6; color: #101114; }
.igp-user__menu a.igp-user__out { color: #b3261e; }
.igp-tabs { display: none; }

.igp-foot { margin-top: 56px; padding: 26px 0 30px; border-top: 1px solid #eceef1; background: #fff; }
.igp-foot__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; width: min(1310px, 100% - 40px); margin: 0 auto; }
.ig-portal-page .igp-foot p.igp-foot__help { margin: 0; font-size: 14px; color: #3b3f47; }
.igp-foot__help a, .igp-foot__links a { color: #101114; font-weight: 600; text-decoration: none; }
.igp-foot__help a:hover, .igp-foot__links a:hover { text-decoration: underline; }
.igp-foot__links { display: flex; gap: 20px; font-size: 14px; }
.ig-portal-page .igp-foot p.igp-foot__legal { width: min(1310px, 100% - 40px); margin: 14px auto 0; font-size: 12px; color: #9aa0a8; }

@media (max-width: 760px) {
	.igp-top__row { height: 60px; gap: 12px; }
	.igp-nav { display: none; }
	.igp-tabs { display: flex; justify-content: center; gap: 6px; padding: 0 12px 10px; }
	.igp-tabs a { padding: 7px 14px; font-size: 13.5px; }
	.igp-logo { font-size: 16px; }
	.igp-logo em { display: none; }
	.igp-top__right { min-width: 0; }
	.igp-user__id { display: none; }
	.igp-user summary { padding-right: 8px; }
}

/* ---------- Results menu: all mocks ---------- */
.ig-portal .ig-rlist__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ig-rlist__item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 230px; padding: 18px 20px 20px; border-radius: var(--ig-radius); background: #eef0f2; }
.ig-rlist__item--completed { background: var(--ig-lime); }
.ig-rlist__item--marking { background: #e4efb4; }
.ig-rlist__head { display: flex; justify-content: space-between; width: 100%; margin-bottom: auto; font-size: 13.5px; }
.ig-rlist__no { font-weight: 700; }
.ig-rlist__date { color: #4a4f57; }
.ig-portal .ig-rlist__band { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: #2c2f22; }
.ig-rlist__band small { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.ig-portal .ig-rlist__skills { display: flex; gap: 6px; margin: 4px 0 6px; }
.ig-rlist__skills span { padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.7); font-size: 12.5px; }
.ig-portal .ig-rlist__state { margin: 18px 0 0; font-size: 26px; font-weight: 700; }
.ig-portal .ig-rlist__note { margin: 0 0 8px; font-size: 14px; color: #3b3f47; }
.ig-rlist__empty { padding: 28px; border-radius: var(--ig-radius); background: #f4f6f8; }
.ig-portal .ig-rlist__empty p { margin: 0 0 4px; }

/* ---------- Performance report (results page): a plain, formal document – no graphics, no animation ---------- */
.ig-report-page { max-width: 920px; margin: 0 auto; padding: 8px 0 40px; }
.ig-report {
	padding: clamp(20px, 5vw, 56px);
	border: 1px solid #c9ccd1;
	background: #fff;
	color: #1a1a1a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 15.5px;
	line-height: 1.6;
	font-variant-numeric: lining-nums tabular-nums;
}
.ig-report__head { padding-bottom: 18px; border-bottom: 2px solid #1a1a1a; }
.ig-portal .ig-report__org { margin: 0 0 4px; font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #4a4f57; }
.ig-portal .ig-report .ig-report__title { margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.2; color: #1a1a1a; }
.ig-report table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 14.5px; }
.ig-report th,
.ig-report td { padding: 7px 10px; border: 1px solid #c9ccd1; text-align: left; vertical-align: top; }
.ig-report thead th,
.ig-report tfoot th,
.ig-report tfoot td { background: #f2f3f5; font-weight: 700; }
.ig-report tbody th { font-weight: 600; }
.ig-report .num { width: 1%; text-align: right; white-space: nowrap; }
.ig-report caption { padding: 0 0 6px; font-style: italic; text-align: left; caption-side: top; }
.ig-report .ig-report__meta { margin: 0; font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; font-size: 14px; }
.ig-report .ig-report__meta th { width: 18%; background: #f2f3f5; font-weight: 600; }
.ig-report__section { padding: 26px 0 8px; border-bottom: 1px solid #c9ccd1; }
.ig-report__section:last-of-type { border-bottom: 0; }
.ig-portal .ig-report h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; line-height: 1.3; color: #1a1a1a; }
.ig-portal .ig-report h3 { margin: 22px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 17.5px; font-weight: 700; color: #1a1a1a; }
.ig-portal .ig-report h4 { margin: 20px 0 8px; font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: #1a1a1a; }
.ig-portal .ig-report p { margin: 0 0 10px; }
.ig-portal .ig-report ul,
.ig-portal .ig-report ol { margin: 0 0 14px; padding-left: 1.4em; }
.ig-portal .ig-report li { margin: 0 0 6px; }
.ig-portal .ig-report .ig-report__overall { margin: 0 0 8px; font-size: 40px; line-height: 1.1; }
.ig-portal .ig-report .ig-report__small { font-size: 13.5px; color: #4a4f57; }
.ig-report__band { float: right; font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; font-size: 14px; font-weight: 700; }
.ig-report__meta-line { font-weight: 400; color: #4a4f57; }
.ig-report__part { margin-bottom: 18px; }
.ig-report__prompt { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid #8a8f98; background: #f7f7f8; }
.ig-portal .ig-report__prompt p { margin: 0 0 6px; }
.ig-report__prompt table { margin: 10px 0 4px; background: #fff; }
.ig-report__response { margin: 0 0 14px; padding: 14px 18px; border: 1px solid #c9ccd1; }
.ig-portal .ig-report__fixes > li { margin: 0 0 12px; }
.ig-portal .ig-report__fixes p { margin: 0 0 2px; }
.ig-report__label { font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.ig-portal .ig-report .ig-report__why { font-size: 14px; font-style: italic; color: #4a4f57; }
.ig-report__table--criteria th[scope="row"] { width: 28%; }
.ig-report__table--dialogue td:first-child { width: 1%; text-align: center; }
.ig-report__table--dialogue td:nth-child(2) { width: 32%; }
.ig-report__comment { margin: 16px 0 14px; padding: 12px 16px; border: 1px solid #c9ccd1; background: #f7f7f8; }
.ig-portal .ig-report__comment h4 { margin-top: 0; }
.ig-portal .ig-report__comment p:last-child { margin-bottom: 0; }
.ig-portal .ig-report__sign { margin-top: 18px; font-weight: 700; }
.ig-report__sign span { font-weight: 400; color: #4a4f57; }
.ig-report__foot { margin-top: 18px; padding-top: 14px; border-top: 2px solid #1a1a1a; font-family: "IELTS Gym Inter", "Inter", system-ui, sans-serif; }
.ig-portal .ig-report__foot p { margin: 0 0 4px; font-size: 12px; color: #4a4f57; }
@media (max-width: 640px) {
	.ig-report { font-size: 15px; }
	.ig-report table { display: block; overflow-x: auto; }
	.ig-report .ig-report__meta th { width: auto; }
	.ig-report__band { float: none; display: block; }
}

/* ---------- IELTS Bites page (/bites/) ---------- */
.ig-bites-page { max-width: 1310px; margin: 0 auto; padding: 8px 0 40px; }
.ig-portal .ig-bites-page__intro { max-width: 760px; margin: 0 0 8px; font-size: 16px; color: var(--ig-muted); }
.ig-bites-page .ig-portal .ig-bites__status, .ig-portal.ig-bites-page .ig-bites__status { margin-top: 24px; }

/* ---------- IELTS Bites banner on the dashboard (the games are on /bites/) ---------- */
.ig-beta--lime { background: var(--ig-lime); color: #2f3a0a; }
.ig-bitesbar {
	position: relative;
	margin-top: 40px;
	padding: clamp(22px, 3vw, 34px);
	border-radius: 20px;
	background: linear-gradient(135deg, #17375e 0%, #1f4d80 100%);
	color: #fff;
	overflow: hidden;
}
.ig-bitesbar::after { /* Soft lime glow in the corner. */
	content: "";
	position: absolute;
	top: -120px;
	right: -80px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(191, 216, 79, 0.28), rgba(191, 216, 79, 0) 70%);
	pointer-events: none;
}
.ig-bitesbar__head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.ig-portal .ig-bitesbar__title { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: #fff; }
.ig-portal .ig-bitesbar__lead { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
.ig-portal a.ig-bitesbar__cta, .ig-bitesbar__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	background: var(--ig-lime);
	color: #2f3a0a;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
	transition: gap 0.2s ease, filter 0.2s ease;
}
.ig-portal a.ig-bitesbar__cta:hover, .ig-portal a.ig-bitesbar__cta:focus { gap: 14px; filter: brightness(1.06); color: #2f3a0a; text-decoration: none; }
.ig-bitesbar__cta--locked { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ig-portal .ig-bitesbar__cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ig-bitesbar__card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.12); }
.ig-bitesbar__card .ig-bite__icon { position: static; width: 34px; height: 34px; margin-bottom: 6px; stroke: var(--ig-lime); stroke-width: 5; }
.ig-bitesbar__card strong { font-size: 15.5px; color: #fff; }
.ig-bitesbar__card span { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.78); }
.ig-bitesbar--locked .ig-bitesbar__card { opacity: 0.7; }
@media (max-width: 960px) {
	.ig-portal .ig-bitesbar__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.ig-portal .ig-bitesbar__cards { grid-template-columns: 1fr; }
	.ig-bitesbar__cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.ig-bitesbar__cta { transition: none; }
}

/* ---------- Weekly Guess (/weekly/, templates/weekly.php) ---------- */
.ig-portal.ig-weekly { max-width: 980px; margin: 0 auto; }
.ig-portal .ig-weekly__intro { max-width: 720px; margin: 8px 0 22px; color: var(--ig-muted); }
.ig-portal .ig-weekly__locked { padding: 28px; border: 1px solid #e6e9ee; border-radius: var(--ig-radius); background: #f7f8f9; }
.ig-portal .ig-weekly__locked h2 { margin: 0 0 8px; font-size: 20px; }
.ig-portal .ig-weekly__locked p { margin: 0 0 18px; color: var(--ig-muted); }
.ig-portal .ig-weekly__grace { margin: 0 0 14px; font-size: 14px; color: #6d4c00; }
.ig-weekly__weeks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ig-weekly__weeks a { padding: 6px 12px; border: 1px solid #e6e9ee; border-radius: 99px; font-size: 13px; color: var(--ig-ink); text-decoration: none; }
.ig-weekly__weeks a.is-active { border-color: var(--ig-ink); background: var(--ig-ink); color: #fff; }
.ig-portal .ig-weekly__week { margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ig-muted); }
.ig-weekly__draft { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff8e1; color: #6d4c00; font-size: 12px; }
.ig-wq { margin-bottom: 22px; padding: 24px; border: 1px solid #e6e9ee; border-radius: var(--ig-radius); background: #fff; }
.ig-wq__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.ig-wq__num { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f1f6dc; font-weight: 700; }
.ig-portal .ig-wq__kind { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ig-muted); }
.ig-portal .ig-wq__title { margin: 2px 0 0; font-size: 19px; font-weight: 700; }
.ig-wq__prompt { margin-bottom: 14px; padding: 14px 16px; border-left: 3px solid var(--ig-lime); border-radius: 0 10px 10px 0; background: #fafbf5; line-height: 1.6; }
.ig-wq__chart { margin: 0 0 14px; }
.ig-wq__chart svg { width: 100%; height: auto; max-width: 640px; }
.ig-portal .ig-wq__label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.ig-portal .ig-wq__list { margin: 0 0 14px; padding-left: 20px; }
.ig-portal .ig-wq__list li { margin-bottom: 4px; }
.ig-wq__help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 4px 0 14px; padding: 16px; border-radius: 12px; background: #f7f8f9; }
.ig-wq__count { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #fff; font-size: 12px; }
.ig-portal .ig-wq__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ig-wq__chip { position: relative; padding: 5px 10px; border: 1px solid #dfe3e8; border-radius: 99px; background: #fff; font-size: 13px; cursor: pointer; }
.ig-wq__chip strong { font-weight: 600; }
.ig-wq__chip span { position: absolute; z-index: 2; bottom: calc(100% + 6px); left: 0; width: max-content; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: var(--ig-ink); color: #fff; font-size: 12px; line-height: 1.4; opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }
.ig-wq__chip:hover span, .ig-wq__chip:focus span { opacity: 1; }
.ig-wq__chip.is-used { border-color: var(--ig-lime); background: #eef6cf; }
.ig-wq__chip.is-used strong::before { content: "✓ "; }
.ig-wq__answer { width: 100%; padding: 12px 14px; border: 1px solid #dfe3e8; border-radius: 10px; font: inherit; line-height: 1.6; resize: vertical; }
.ig-wq__answer:focus { outline: 2px solid var(--ig-lime); border-color: var(--ig-lime); }
.ig-portal .ig-wq__status { margin: 6px 0 0; font-size: 13px; color: var(--ig-muted); }
.ig-portal .ig-weekly__note { margin: 6px 0 0; font-size: 13px; color: var(--ig-muted); }
@media (max-width: 700px) {
	.ig-wq { padding: 16px; }
	.ig-wq__help { grid-template-columns: minmax(0, 1fr); }
}
