/* Photon Results — every rule is scoped under .pisr so nothing leaks into the
   shared header, footer or other Photon pages. */

.pisr {
	--pisr-primary: #BC2549;
	--pisr-deep: #6E0F2D;
	--pisr-wine: #520A22;
	--pisr-ink: #1E060E;
	--pisr-gold: #EFA719;
	--pisr-white: #FFFFFF;
	--pisr-warm: #FFF9F6;
	--pisr-blush: #FBEDF0;
	--pisr-blush-2: #FCF3F5;
	--pisr-line: #F1DEE3;
	--pisr-muted: #6A555C;
	--pisr-radius: 22px;
	--pisr-shadow: 0 18px 50px rgba(82, 10, 34, .08);
	--pisr-gutter: clamp(16px, 4vw, 40px);
	--pisr-gutter: clamp(16px, 4cqi, 40px);

	position: relative;
	width: 100%;
	max-width: 100%;
	overflow-x: clip;
	container-type: inline-size;
	container-name: pisr;
	background: var(--pisr-warm);
	color: var(--pisr-ink);
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.pisr *, .pisr *::before, .pisr *::after { box-sizing: border-box; }
.pisr ul, .pisr ol { list-style: none; margin: 0; padding: 0; }
.pisr li { margin: 0; }
.pisr p { margin: 0; }
.pisr h1, .pisr h2, .pisr h3, .pisr h4 { margin: 0; font-family: inherit; text-transform: none; letter-spacing: normal; }
.pisr img { display: block; max-width: 100%; }
.pisr button {
	-webkit-appearance: none; appearance: none;
	font: inherit; text-transform: none; letter-spacing: normal;
	margin: 0; border-radius: 0; cursor: pointer; line-height: 1.2;
}
.pisr a:focus-visible, .pisr button:focus-visible, .pisr [tabindex]:focus-visible {
	outline: 3px solid var(--pisr-gold);
	outline-offset: 3px;
}
.pisr [hidden] { display: none !important; }

.pisr .pisr-wrap {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: var(--pisr-gutter);
}
.pisr .pisr-narrow { max-width: 860px; }
.pisr .pisr-sr {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pisr .pisr-rule {
	display: block; width: 56px; height: 4px; border-radius: 4px;
	background: var(--pisr-gold); margin-bottom: 14px;
}
.pisr .pisr-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--pisr-deep); margin-bottom: 10px;
}
.pisr .pisr-h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.15; color: var(--pisr-primary); }
.pisr .pisr-h2 { font-size: clamp(26px, 3cqi, 38px); font-weight: 800; line-height: 1.15; color: var(--pisr-primary); }
.pisr .pisr-h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 700; line-height: 1.25; color: var(--pisr-primary); margin-bottom: 18px; }
.pisr .pisr-h3 { font-size: clamp(19px, 2cqi, 22px); font-weight: 700; line-height: 1.25; color: var(--pisr-primary); margin-bottom: 18px; }
.pisr .pisr-h3 .pisr-rule { margin-bottom: 10px; }
.pisr .pisr-sub { color: var(--pisr-muted); margin-top: 6px; }
.pisr .pisr-np {
	display: inline-block; margin: 6px 4px 0; padding: 2px 8px; border-radius: 999px;
	font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
	color: #6B4100; background: #FFF4DA; border: 1px dashed var(--pisr-gold);
	vertical-align: middle;
}
.pisr .pisr-preview-bar {
	padding: 10px var(--pisr-gutter); font-size: 14px;
	background: #FFF4DA; border-bottom: 2px dashed var(--pisr-gold); color: #4A2E00;
}

/* ---------------------------------------------------------------- Hero */
.pisr .pisr-hero {
	position: relative; isolation: isolate; overflow: hidden;
	/* Top space keeps everything clear of the site's floating header (set in Page Settings → Hero). */
	padding: calc(var(--pisr-hero-top, 140px) + clamp(20px, 3cqi, 40px)) 0 clamp(64px, 7.5cqi, 104px);
	min-height: min(780px, calc(100vh - 20px));
	display: flex; flex-direction: column; justify-content: center;
	color: #FBEFF2;
	background: radial-gradient(120% 95% at 85% 0%, #8E1738 0%, var(--pisr-deep) 40%, var(--pisr-wine) 76%, #3E0719 100%);
}
.pisr .pisr-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, rgba(239, 167, 25, 0), var(--pisr-gold) 18%, #F7D27A 50%, var(--pisr-gold) 82%, rgba(239, 167, 25, 0));
}
.pisr .pisr-hero__bg { position: absolute; inset: 0; z-index: -1; }
.pisr .pisr-hero__img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pisr .pisr-hero--photo .pisr-hero__bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(24, 6, 12, .86) 0, rgba(40, 8, 20, .62) 42%, rgba(40, 8, 20, .18) 75%, rgba(40, 8, 20, .08));
}
.pisr .pisr-hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pisr .pisr-hero__grid {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
	gap: clamp(28px, 5cqi, 80px); align-items: center;
}
.pisr .pisr-hero--solo .pisr-hero__grid { grid-template-columns: minmax(0, 1fr); }
.pisr .pisr-crumbs { margin-bottom: clamp(26px, 4cqi, 50px); }
.pisr .pisr-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(251, 239, 242, .72); }
.pisr .pisr-crumbs li + li::before { content: "\203A"; margin-right: 8px; color: var(--pisr-gold); }
.pisr .pisr-crumbs a { color: #fff; text-decoration: none; }
.pisr .pisr-crumbs a:hover, .pisr .pisr-crumbs a:focus { color: var(--pisr-gold); text-decoration: underline; }
.pisr .pisr-hero__eyebrow { margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--pisr-gold); }
.pisr .pisr-hero__title {
	font-size: clamp(40px, 6.4cqi, 86px); font-weight: 800; line-height: 1; letter-spacing: -.025em; color: #fff;
}
.pisr .pisr-hero__line { display: block; }
.pisr .pisr-hero__title::after {
	content: ""; display: block; width: 88px; height: 4px; margin-top: clamp(18px, 2.4cqi, 28px);
	border-radius: 4px; background: var(--pisr-gold);
}
.pisr .pisr-hero__desc { max-width: 34em; margin-top: clamp(16px, 2cqi, 22px); font-size: clamp(16px, 1.5cqi, 19px); line-height: 1.6; color: rgba(251, 239, 242, .86); }
.pisr .pisr-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3cqi, 36px); }
.pisr .pisr-btn.pisr-btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.pisr .pisr-btn.pisr-btn--line:hover, .pisr .pisr-btn.pisr-btn--line:focus { background: #fff; color: var(--pisr-deep); box-shadow: none; }
.pisr .pisr-hero__note {
	position: absolute; z-index: 2; right: 12px; bottom: 14px;
	padding: 2px 8px; border-radius: 6px; font-size: 11px; color: #fff; background: rgba(30, 6, 14, .55);
}

/* Roll of Honour: a gilt-framed school honours board. */
.pisr .pisr-honour__frame {
	position: relative; text-align: center;
	padding: clamp(24px, 3cqi, 38px) clamp(20px, 3cqi, 36px) clamp(16px, 2cqi, 24px);
	background: linear-gradient(165deg, rgba(30, 6, 14, .58), rgba(30, 6, 14, .22));
	border: 1px solid rgba(239, 167, 25, .8); border-radius: 3px;
	box-shadow: inset 0 0 0 6px rgba(62, 7, 25, .55), inset 0 0 0 7px rgba(239, 167, 25, .42), 0 30px 60px rgba(20, 2, 8, .35);
}
.pisr .pisr-honour__title {
	padding-bottom: 14px; border-bottom: 1px solid rgba(239, 167, 25, .45);
	font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-size: clamp(16px, 1.6cqi, 20px); font-weight: 600;
	letter-spacing: .16em; color: var(--pisr-gold);
}
.pisr .pisr-honour__row { padding: clamp(14px, 1.8cqi, 20px) 0; border-bottom: 1px solid rgba(239, 167, 25, .2); }
.pisr .pisr-honour__row:last-child { border-bottom: 0; }
.pisr .pisr-honour__value {
	display: block; font-family: "Cinzel", "Trajan Pro", Georgia, serif; font-weight: 700;
	font-size: clamp(30px, 3.6cqi, 46px); line-height: 1.05; letter-spacing: .02em; color: #F5C451;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.pisr .pisr-honour__value {
		color: transparent;
		background: linear-gradient(180deg, #FFE9AE 0%, #EFA719 58%, #C98A0E 100%);
		-webkit-background-clip: text; background-clip: text;
	}
}
.pisr .pisr-honour__label { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; color: rgba(251, 239, 242, .82); }
.pisr .pisr-honour__laurel { display: block; width: 104px; margin: 10px auto 0; color: var(--pisr-gold); opacity: .85; }

/* ------------------------------------------------------------- Intro */
.pisr .pisr-intro-block { padding-block: clamp(36px, 5cqi, 64px); }
.pisr .pisr-intro-block p { margin-top: 12px; color: #3A2329; }

/* ----------------------------------------------------------- Results */
.pisr .pisr-results { padding: clamp(48px, 6cqi, 88px) 0 clamp(40px, 5cqi, 72px); }
.pisr .pisr-results__head .pisr-h2 { font-size: clamp(30px, 3.6cqi, 46px); color: var(--pisr-deep); }
.pisr .pisr-results__head .pisr-sub { margin-top: 8px; font-size: 17px; }
.pisr .pisr-empty { padding: 28px 10px; text-align: center; font-weight: 500; color: var(--pisr-muted); }

/* Year selector: a centred segmented track */
.pisr .pisr-results__head { max-width: 720px; margin: 0 auto clamp(22px, 3cqi, 32px); text-align: center; }
.pisr .pisr-results__head .pisr-rule { margin-inline: auto; }
.pisr .pisr-years { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 4px; border-radius: 999px; background: var(--pisr-blush); }
.pisr--pills-outline .pisr-years { background: #fff; box-shadow: inset 0 0 0 1px #E7C6CF; }
.pisr .pisr-year-pill {
	padding: 10px 22px; border: 0; border-radius: 999px; background: transparent;
	font-size: 16px; font-weight: 700; color: var(--pisr-deep); transition: background-color .2s, color .2s;
}
.pisr .pisr-year-pill:hover, .pisr .pisr-year-pill:focus { background: rgba(255, 255, 255, .75); color: var(--pisr-deep); }
.pisr .pisr-year-pill.is-active,
.pisr .pisr-year-pill.is-active:hover,
.pisr .pisr-year-pill.is-active:focus { background: var(--pisr-deep); color: #fff; box-shadow: 0 6px 14px rgba(110, 15, 45, .25); }
.pisr .pisr-year-pill .pisr-np { margin: 0 0 0 6px; }

/* Category switcher (Board / JEE / NEET) inside the selected year */
.pisr .pisr-year { margin-top: clamp(18px, 2.4cqi, 26px); }
.pisr .pisr-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(26px, 3.4cqi, 40px); }
.pisr .pisr-switch__tab {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
	border: 1px solid #EBD7DC; background: #fff; color: var(--pisr-deep); font-size: 15px; font-weight: 700;
	transition: background-color .2s, color .2s, border-color .2s;
}
.pisr .pisr-switch__tab .pisr-icon { width: 20px; height: 20px; color: var(--pisr-primary); }
.pisr .pisr-switch__tab:hover, .pisr .pisr-switch__tab:focus { border-color: #DDB3BF; background: #FFF7F9; color: var(--pisr-deep); }
.pisr .pisr-switch__tab.is-active,
.pisr .pisr-switch__tab.is-active:hover,
.pisr .pisr-switch__tab.is-active:focus { background: var(--pisr-deep); border-color: var(--pisr-deep); color: #fff; }
.pisr .pisr-switch__tab.is-active .pisr-icon { color: var(--pisr-gold); }

/* Category section header — no year here; the year selector already says it */
.pisr .pisr-cat-sec + .pisr-cat-sec { margin-top: var(--pr-space, 56px); }
.pisr .pisr-cat-sec:focus-visible { outline-offset: 6px; }
.pisr .pisr-cat-sec__head { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #EBD7DC; }
.pisr .pisr-cat-sec__icon { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #7A0F33; color: var(--pisr-gold); }
.pisr .pisr-cat-sec__icon .pisr-icon { width: 30px; height: 30px; }
.pisr .pisr-cat-sec__title { font-size: calc(clamp(26px, 3cqi, 40px) * var(--pr-hscale, 1)); font-weight: 800; line-height: 1.1; color: #7A0F33; }
.pisr .pisr-cat-sec__sub { margin-top: 4px; font-size: 16px; color: #5E4A50; }
.pisr .pisr-cat-sec__desc { max-width: 760px; margin: 16px auto 0; text-align: center; color: #4A3238; }
.pisr .pisr-top { margin: calc(var(--pr-space, 56px) * .5) auto calc(var(--pr-space, 56px) * .45); text-align: center; }
.pisr .pisr-top__rule { display: block; width: 64px; height: 4px; margin: 0 auto 18px; border-radius: 4px; background: var(--pisr-gold); }
.pisr .pisr-top__title { font-size: calc(clamp(26px, 3cqi, 40px) * var(--pr-hscale, 1)); font-style: italic; font-weight: 800; line-height: 1.15; color: #7A0F33; }
.pisr .pisr-top__sub { margin-top: 8px; font-size: clamp(15px, 1.4cqi, 18px); color: #5E4A50; }

/* Student result cards */
.pisr .pisr-rcards { --pr-cols: var(--pr-cols-d, 5); --pr-g: var(--pr-gap, 20px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pr-g); }
.pisr .pisr-rc {
	flex: 0 0 calc((100% - (var(--pr-cols) - 1) * var(--pr-g)) / var(--pr-cols));
	display: flex; flex-direction: column; min-width: 0; padding: 12px 12px 18px; text-align: center;
	background: linear-gradient(180deg, #FDF0F3 0%, #FFF8FA 58%, #FFFFFF 100%); border: 1px solid #F3DCE2; border-radius: var(--pr-radius, 16px);
	box-shadow: 0 10px 26px rgba(110, 15, 45, .06);
}
.pisr .pisr-rc.is-draft { border-style: dashed; border-color: var(--pisr-gold); }
.pisr .pisr-rc__photo { position: relative; aspect-ratio: var(--pr-ratio, 4 / 3); overflow: hidden; isolation: isolate; border-radius: max(0px, calc(var(--pr-radius, 16px) - 6px)); background: radial-gradient(120% 90% at 50% 100%, #FBE3E9 0%, #FDF0F3 60%, #FDF0F3 100%); }
.pisr .pisr-rc__photo.has-petals::before,
.pisr .pisr-rc__photo.has-petals::after {
	content: ""; position: absolute; bottom: -4%; width: 44%; height: 70%; background: #F6CFD9; opacity: .7;
	border-radius: 0 100% 0 100%; pointer-events: none;
}
.pisr .pisr-rc__photo.has-petals::before { left: 6%; transform: rotate(-14deg); }
.pisr .pisr-rc__photo.has-petals::after { right: 6%; transform: scaleX(-1) rotate(-14deg); }
.pisr .pisr-rc__img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none; object-fit: var(--pr-fit, contain); object-position: var(--pr-pos, center bottom); mix-blend-mode: multiply; }
.pisr .pisr-rc__mono { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: clamp(28px, 3cqi, 44px); font-weight: 800; letter-spacing: .04em; color: rgba(188, 37, 73, .45); }
.pisr .pisr-rc__body { display: flex; flex-direction: column; align-items: center; flex: 1; padding-top: 12px; }
.pisr .pisr-rc__metric {
	max-width: 100%; padding: 4px 14px; border-radius: 999px; background: #FBE6EB;
	font-size: 11.5px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; text-transform: uppercase; color: #8E1238;
}
.pisr .pisr-rc__value { margin-top: 8px; font-size: clamp(26px, 2.5cqi, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; color: #8E1238; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pisr .pisr-rc__name { margin: 8px 0 0; padding: 0; font-size: clamp(12.5px, 1.05cqi, 14px); font-weight: 700; line-height: 1.35; letter-spacing: .06em; text-transform: var(--pr-name-case, uppercase); color: #3A2A2E; overflow-wrap: anywhere; }
.pisr .pisr-rc__rank { margin-top: 6px; padding: 2px 10px; border: 1px solid #EBC3CE; border-radius: 999px; font-size: 12px; font-weight: 700; color: #8E1238; }
.pisr .pisr-rc__achv { margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: #FFF3D9; font-size: 12px; font-weight: 600; color: #6B4100; }
.pisr .pisr-rc__details { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: #5E4A50; }
.pisr .pisr-rc__value--year { font-size: clamp(24px, 2.2cqi, 32px); }
.pisr .pisr-rc__caption { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8A6A73; }
.pisr .pisr-rc__line { display: block; width: 34px; height: 3px; margin-top: 12px; border-radius: 3px; background: var(--pisr-gold); }
/* Featured achievers */
.pisr .pisr-featured { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pisr .pisr-featured { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(20px, 3cqi, 40px); align-items: start; }
.pisr .pisr-featured--solo { grid-template-columns: minmax(0, 1fr); }
.pisr .pisr-exam-head { position: relative; padding-bottom: 8px; }
.pisr .pisr-exam-title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.1; color: #A51E43; }
.pisr .pisr-exam-title { font-size: clamp(28px, 3cqi, 40px); font-weight: 800; line-height: 1.1; color: #A51E43; }
.pisr .pisr-exam-tagline { margin-top: 10px; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; color: #3A2329; line-height: 1.4; }
.pisr .pisr-exam-tagline { margin-top: 10px; font-size: clamp(16px, 1.5cqi, 19px); font-weight: 500; color: #3A2329; line-height: 1.4; }
.pisr .pisr-exam-desc { margin-top: 10px; font-size: 15px; color: var(--pisr-muted); }
.pisr .pisr-summit { display: block; width: min(220px, 70%); height: auto; margin-top: 18px; }
.pisr .pisr-featured--solo .pisr-summit { display: none; }

.pisr .pisr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.pisr .pisr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(18px, 2.4cqi, 28px); }
.pisr .pisr-ach { display: flex; flex-direction: column; min-width: 0; }
.pisr .pisr-ach__media {
	position: relative; aspect-ratio: 1 / 1; border-radius: 20px;
	background: radial-gradient(circle at 50% 38%, #FFFFFF 0, #FBEAEE 62%, #F6DDE3 100%);
}
.pisr .pisr-ach__media .pisr-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.pisr .pisr-monogram {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	font-size: clamp(36px, 4vw, 56px); font-weight: 800; color: rgba(188, 37, 73, .38); letter-spacing: .04em;
	font-size: clamp(36px, 4cqi, 56px); font-weight: 800; color: rgba(188, 37, 73, .38); letter-spacing: .04em;
}
.pisr .pisr-rank {
	position: absolute; left: -8px; bottom: -16px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 76px; height: 76px; border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, #FFFFFF, #FFF2D2);
	border: 3px solid var(--pisr-gold); box-shadow: 0 6px 16px rgba(110, 15, 45, .16);
	color: var(--pisr-ink); line-height: 1; text-align: center;
}
.pisr .pisr-rank__pre { font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-bottom: 3px; }
.pisr .pisr-rank__num { font-size: 22px; font-weight: 800; }
.pisr .pisr-rank--lg .pisr-rank__num { font-size: 17px; }
.pisr .pisr-rank--xl { width: 88px; height: 88px; }
.pisr .pisr-rank--xl .pisr-rank__num { font-size: 14px; }
.pisr .pisr-badge {
	position: absolute; right: 10px; top: 10px; max-width: calc(100% - 20px);
	padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
	background: var(--pisr-deep); color: #fff; box-shadow: 0 0 0 2px rgba(239, 167, 25, .8);
}
.pisr .pisr-ach__body { padding-top: 14px; text-align: center; }
.pisr .pisr-ach.has-rank .pisr-ach__body { padding-top: 24px; }
.pisr .pisr-ach__name { font-size: 17px; font-weight: 700; color: var(--pisr-ink); line-height: 1.3; }
.pisr .pisr-ach__meta { margin-top: 4px; font-size: 13px; color: var(--pisr-muted); }
.pisr .pisr-ach__achv { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--pisr-primary); }
.pisr .pisr-ach__score { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--pisr-deep); }
.pisr .pisr-ach__desc { margin-top: 6px; font-size: 13px; color: #4A3238; }
.pisr .pisr-ach__cap { margin-top: 6px; font-size: 12px; font-style: italic; color: var(--pisr-muted); }

/* Statistics */
.pisr .pisr-stats-wrap { margin-top: clamp(26px, 3.6vw, 40px); }
.pisr .pisr-stats-wrap { margin-top: clamp(26px, 3.6cqi, 40px); }
.pisr .pisr-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	background: var(--pisr-blush); border-radius: 20px; padding: 8px;
}
.pisr .pisr-stat { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px clamp(14px, 2vw, 26px); min-width: 0; }
.pisr .pisr-stat { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px clamp(14px, 2cqi, 26px); min-width: 0; }
.pisr .pisr-stat + .pisr-stat::before {
	content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: #EBCCD5;
}
.pisr .pisr-stat__icon { flex: none; display: flex; color: var(--pisr-primary); }
.pisr .pisr-stat__icon .pisr-icon { width: 44px; height: 44px; stroke-width: 1.5; }
.pisr .pisr-stat__text { display: flex; flex-direction: column; min-width: 0; }
.pisr .pisr-stat__value { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; color: #A51E43; overflow-wrap: anywhere; }
.pisr .pisr-stat__value { font-size: clamp(26px, 2.6cqi, 34px); font-weight: 800; line-height: 1.1; color: #A51E43; overflow-wrap: anywhere; }
.pisr .pisr-stat__label { font-size: 14px; color: #3A2329; line-height: 1.35; }

/* More achievers */
.pisr .pisr-more { margin-top: clamp(28px, 4vw, 44px); }
.pisr .pisr-more { margin-top: clamp(28px, 4cqi, 44px); }
.pisr .pisr-more__frame { position: relative; }
.pisr .pisr-more__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.pisr .pisr-more--carousel .pisr-more__frame { padding-inline: 52px; }
.pisr .pisr-more--carousel .pisr-more__list {
	grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 160px;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: thin;
}
.pisr .pisr-more--carousel .pisr-mini { scroll-snap-align: start; }
.pisr .pisr-mini { background: var(--pisr-white); border: 1px solid var(--pisr-line); border-radius: 16px; overflow: hidden; min-width: 0; }
.pisr .pisr-mini__media { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 38%, #FFFFFF 0, #FBEAEE 70%); }
.pisr .pisr-mini__media .pisr-photo { width: 100%; height: 100%; object-fit: cover; }
.pisr .pisr-mini__media .pisr-monogram { font-size: 36px; }
.pisr .pisr-mini__body { padding: 10px 10px 12px; text-align: center; }
.pisr .pisr-mini__name { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--pisr-ink); }
.pisr .pisr-mini__achv { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--pisr-primary); }
.pisr .pisr-mini__meta { margin-top: 2px; font-size: 12px; color: var(--pisr-muted); }
.pisr .pisr-mini__desc { margin-top: 4px; font-size: 12px; color: #4A3238; }
.pisr .pisr-nav {
	position: absolute; top: 34%; z-index: 2; width: 40px; height: 40px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%; border: 1px solid var(--pisr-line); background: var(--pisr-white); color: var(--pisr-ink);
	box-shadow: 0 6px 16px rgba(82, 10, 34, .12);
}
.pisr .pisr-nav:hover, .pisr .pisr-nav:focus { background: var(--pisr-white); color: var(--pisr-primary); border-color: #E7C6CF; }
.pisr .pisr-nav[disabled] { opacity: .35; cursor: default; }
.pisr .pisr-nav .pisr-icon { width: 20px; height: 20px; }
.pisr .pisr-nav--prev { left: 0; }
.pisr .pisr-nav--next { right: 0; }
.pisr .pisr-more.is-static .pisr-nav { display: none; }
.pisr .pisr-more.is-static .pisr-more__frame { padding-inline: 0; }

/* Custom sections */
.pisr .pisr-sec { padding-block: clamp(36px, 5vw, 64px); }
.pisr .pisr-sec { padding-block: clamp(36px, 5cqi, 64px); }
.pisr .pisr-sec__inner { display: grid; gap: clamp(20px, 3vw, 44px); }
.pisr .pisr-sec__inner { display: grid; gap: clamp(20px, 3cqi, 44px); }
.pisr .pisr-sec--text_image.pisr-sec--img-right .pisr-sec__inner,
.pisr .pisr-sec--text_image.pisr-sec--img-left .pisr-sec__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.pisr .pisr-sec--img-left .pisr-sec__media { order: -1; }
.pisr .pisr-sec__text p { margin-top: 12px; color: #3A2329; }
.pisr .pisr-sec__media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--pisr-radius); box-shadow: var(--pisr-shadow); }
.pisr .pisr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pisr .pisr-gallery figure { margin: 0; }
.pisr .pisr-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.pisr .pisr-gallery figcaption { margin-top: 6px; font-size: 13px; color: var(--pisr-muted); }

/* CTA */
.pisr .pisr-cta { padding: 0 0 clamp(40px, 6vw, 72px); }
.pisr .pisr-cta { padding: 0 0 clamp(40px, 6cqi, 72px); }
.pisr .pisr-cta__inner {
	position: relative; overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
	padding: clamp(24px, 3.4vw, 40px) clamp(20px, 4vw, 48px);
	padding: clamp(24px, 3.4cqi, 40px) clamp(20px, 4cqi, 48px);
	border-radius: 24px; color: #fff;
	background: linear-gradient(120deg, var(--pisr-wine), var(--pisr-deep) 45%, var(--pisr-primary));
}
.pisr .pisr-cta__inner::before { content: ""; position: absolute; left: clamp(20px, 4vw, 48px); top: 0; width: 64px; height: 4px; border-radius: 0 0 4px 4px; background: var(--pisr-gold); }
.pisr .pisr-cta__inner::before { content: ""; position: absolute; left: clamp(20px, 4cqi, 48px); top: 0; width: 64px; height: 4px; border-radius: 0 0 4px 4px; background: var(--pisr-gold); }
.pisr .pisr-cta__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: #fff; }
.pisr .pisr-cta__title { font-size: clamp(22px, 2.4cqi, 30px); font-weight: 800; color: #fff; }
.pisr .pisr-cta__text { margin-top: 6px; color: #FBE7EC; max-width: 640px; }
.pisr .pisr-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
	font-weight: 700; font-size: 16px; text-decoration: none;
	background: var(--pisr-gold); color: var(--pisr-ink); transition: transform .2s, box-shadow .2s;
}
.pisr .pisr-btn:hover, .pisr .pisr-btn:focus { color: var(--pisr-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transform: translateY(-1px); }
.pisr .pisr-btn .pisr-icon { width: 20px; height: 20px; }


/* Result posters (uploaded images) */
.pisr .pisr-featured--cards-only { grid-template-columns: minmax(0, 1fr); margin-top: clamp(22px, 3cqi, 34px); }
.pisr .pisr-posters { display: grid; gap: clamp(18px, 2.6cqi, 30px); margin-top: clamp(18px, 2.4cqi, 28px); }
.pisr .pisr-poster { width: 100%; max-width: var(--pisr-poster-max, 100%); margin: 0 auto; }
/* Keep result images centred even if the theme or Elementor sets figure margins. */
.pisr .pisr-posters { justify-items: center; }
.pisr .pisr-posters > .pisr-poster { justify-self: center; margin-left: auto !important; margin-right: auto !important; }
.pisr .pisr-catyear .pisr-exam-head { text-align: center; }
.pisr .pisr-poster__btn {
	position: relative; display: block; width: 100%; padding: clamp(6px, 1.2cqi, 14px);
	background: var(--pisr-white); border: 1px solid var(--pisr-line); border-radius: 20px;
	box-shadow: 0 10px 30px rgba(82, 10, 34, .06); cursor: zoom-in; color: inherit; text-align: left;
	transition: box-shadow .2s, border-color .2s;
}
.pisr .pisr-poster__btn:hover, .pisr .pisr-poster__btn:focus { background: var(--pisr-white); border-color: #E7C6CF; box-shadow: 0 14px 36px rgba(82, 10, 34, .12); color: inherit; }
.pisr .pisr-poster__img { width: 100%; height: auto; border-radius: 12px; }
/* Sits below the image so it never covers names or scores on the poster. */
.pisr .pisr-poster__zoom {
	display: flex; width: max-content; margin: clamp(8px, 1.2cqi, 12px) auto 2px;
	align-items: center; gap: 6px; padding: 7px 16px 7px 12px; border-radius: 999px;
	background: var(--pisr-deep); color: #fff; font-size: 13px; font-weight: 600;
	transition: background-color .2s;
}
.pisr .pisr-poster__btn:hover .pisr-poster__zoom, .pisr .pisr-poster__btn:focus-visible .pisr-poster__zoom { background: var(--pisr-primary); }
.pisr .pisr-poster__zoom .pisr-icon { width: 18px; height: 18px; }
.pisr .pisr-poster__hint { display: none; margin-top: 4px; text-align: center; font-size: 12px; color: var(--pisr-muted); }
.pisr .pisr-poster figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--pisr-deep); }

/* Full-size viewer */
.pisr .pisr-lightbox {
	width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
	background: rgba(30, 6, 14, .94); color: #fff; overflow: hidden;
}
.pisr .pisr-lightbox[open] { display: flex; flex-direction: column; }
.pisr .pisr-lightbox::backdrop { background: rgba(30, 6, 14, .7); }
.pisr .pisr-lb__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: none; }
.pisr .pisr-lb__cap { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pisr .pisr-lb__btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 14px; font-weight: 600;
}
.pisr .pisr-lb__btn:hover, .pisr .pisr-lb__btn:focus { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.pisr .pisr-lb__btn[aria-pressed="true"] { background: var(--pisr-gold); color: var(--pisr-ink); border-color: var(--pisr-gold); }
.pisr .pisr-lb__btn .pisr-icon { width: 18px; height: 18px; }
.pisr .pisr-lb__close { padding: 8px; }
.pisr .pisr-lb__body { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 8px 12px 16px; -webkit-overflow-scrolling: touch; }
.pisr .pisr-lb__body img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-in; }
.pisr .pisr-lightbox.is-zoomed .pisr-lb__body { display: block; }
.pisr .pisr-lightbox.is-zoomed .pisr-lb__body img { max-width: none; max-height: none; cursor: zoom-out; }

/* ----------------------------------------------------------- Responsive */
@container pisr (max-width: 1100px) {
	.pisr .pisr-rcards { --pr-cols: var(--pr-cols-t, 3); }
}
@container pisr (max-width: 900px) {
	.pisr .pisr-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.pisr .pisr-honour { max-width: 560px; }
	.pisr .pisr-featured { grid-template-columns: minmax(0, 1fr); }
	.pisr .pisr-summit { display: none; }
	.pisr .pisr-exam-head { text-align: center; }
	.pisr .pisr-exam-head .pisr-rule { margin-inline: auto; }
	.pisr .pisr-sec--text_image.pisr-sec--img-right .pisr-sec__inner,
	.pisr .pisr-sec--text_image.pisr-sec--img-left .pisr-sec__inner { grid-template-columns: minmax(0, 1fr); }
	.pisr .pisr-sec--img-left .pisr-sec__media { order: 0; }
}
@container pisr (max-width: 767px) {
	.pisr .pisr-years { border-radius: 22px; }
	.pisr .pisr-year-pill { padding: 9px 14px; font-size: 15px; }
	.pisr .pisr-switch { gap: 8px; }
	.pisr .pisr-switch__tab { padding: 9px 14px; font-size: 14px; }
	.pisr .pisr-cat-sec__icon { width: 52px; height: 52px; }
	.pisr .pisr-cat-sec__icon .pisr-icon { width: 26px; height: 26px; }
	.pisr .pisr-hero { padding-top: calc(var(--pisr-hero-top-m, 100px) + 20px); min-height: 0; }
	.pisr .pisr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	.pisr .pisr-rank { width: 62px; height: 62px; left: -4px; bottom: -14px; border-width: 2px; }
	.pisr .pisr-rank__pre { font-size: 10px; }
	.pisr .pisr-rank__num { font-size: 17px; }
	.pisr .pisr-rank--lg .pisr-rank__num { font-size: 14px; }
	.pisr .pisr-rank--xl { width: 70px; height: 70px; }
	.pisr .pisr-rank--xl .pisr-rank__num { font-size: 12px; }
	.pisr .pisr-ach.has-rank .pisr-ach__body { padding-top: 20px; }
	.pisr .pisr-ach__name { font-size: 15px; }
	.pisr .pisr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pisr .pisr-stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
	.pisr .pisr-stat + .pisr-stat::before { display: none; }
	.pisr .pisr-stat__icon .pisr-icon { width: 34px; height: 34px; }
	.pisr .pisr-more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pisr .pisr-more--carousel .pisr-more__frame { padding-inline: 0; }
	.pisr .pisr-more--carousel .pisr-more__list { grid-auto-columns: 46%; }
	.pisr .pisr-nav { top: auto; bottom: 100%; margin-bottom: 14px; width: 36px; height: 36px; }
	.pisr .pisr-nav--prev { left: auto; right: 44px; }
	.pisr .pisr-cta__inner { flex-direction: column; align-items: flex-start; }
	.pisr .pisr-poster__btn { border-radius: 14px; }
	.pisr .pisr-poster__hint { display: block; }
	.pisr .pisr-lb__btn span { display: none; }
	.pisr .pisr-lb__btn { padding: 8px; }
}
@container pisr (max-width: 600px) {
	.pisr .pisr-rcards { --pr-cols: var(--pr-cols-m, 2); --pr-g: min(var(--pr-gap, 20px), 14px); }
	.pisr .pisr-rc { padding: 10px 10px 14px; }
	.pisr .pisr-rc__metric { padding: 3px 8px; font-size: 10px; }
}
@container pisr (max-width: 520px) {
	.pisr .pisr-hero__actions .pisr-btn { flex: 1 1 auto; justify-content: center; }
}
@container pisr (max-width: 360px) {
	.pisr .pisr-cards { grid-template-columns: minmax(0, 1fr); }
	.pisr .pisr-cards .pisr-ach { max-width: 260px; margin-inline: auto; width: 100%; }
	.pisr .pisr-stats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.pisr *, .pisr *::before, .pisr *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------ 3.0: main navigation */
.pisr .pisr-main-switch {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
	width: fit-content; max-width: 100%; margin: 0 auto clamp(30px, 4cqi, 48px); padding: 6px;
	border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(110, 15, 45, .10), inset 0 0 0 1px #EBD7DC;
}
.pisr .pisr-main-switch__tab {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
	padding: 12px clamp(18px, 2.4cqi, 30px); border: 0; border-radius: 999px; background: transparent;
	font-size: clamp(15px, 1.4cqi, 17px); font-weight: 700; color: var(--pisr-primary);
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.pisr .pisr-main-switch__tab .pisr-icon { width: 20px; height: 20px; }
.pisr .pisr-main-switch__tab:hover, .pisr .pisr-main-switch__tab:focus { background: var(--pisr-blush); color: var(--pisr-deep); }
.pisr .pisr-main-switch__tab.is-active,
.pisr .pisr-main-switch__tab.is-active:hover,
.pisr .pisr-main-switch__tab.is-active:focus { background: var(--pisr-primary); color: #fff; box-shadow: 0 8px 18px rgba(188, 37, 73, .28); }
.pisr .pisr-main-switch__tab.is-active .pisr-icon { color: var(--pisr-gold); }
.pisr .pisr-view__head { margin-bottom: clamp(20px, 2.6cqi, 30px); }
.pisr .pisr-view .pisr-years { margin-bottom: clamp(22px, 3cqi, 34px); }
.pisr .pisr-byear .pisr-posters { margin-top: 0; }
.pisr .pisr-board-note { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--pisr-muted); }
.pisr .pisr-view .pisr-switch { margin-bottom: clamp(24px, 3cqi, 36px); }
.pisr .pisr-empty-state {
	display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: clamp(26px, 3cqi, 40px);
	padding: clamp(28px, 4cqi, 48px) 20px; border: 1px dashed #E3C3CC; border-radius: 18px; background: #fff;
	text-align: center; font-weight: 500; color: var(--pisr-muted);
}
.pisr .pisr-empty-state__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--pisr-blush); color: var(--pisr-primary); }
.pisr .pisr-empty-state__icon .pisr-icon { width: 26px; height: 26px; }
@container pisr (max-width: 520px) {
	.pisr .pisr-main-switch { width: 100%; flex-wrap: nowrap; }
	.pisr .pisr-main-switch__tab { flex: 1 1 0; min-width: 0; padding-inline: 10px; gap: 6px; font-size: 14px; }
	.pisr .pisr-main-switch__tab .pisr-icon { width: 18px; height: 18px; }
	.pisr .pisr-hero--photo .pisr-hero__bg::after { background: linear-gradient(180deg, rgba(24, 6, 12, .72), rgba(40, 8, 20, .80)); }
}
@container pisr (max-width: 360px) {
	.pisr .pisr-main-switch__tab .pisr-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pisr .pisr-main-switch__tab, .pisr .pisr-switch__tab, .pisr .pisr-year-pill { transition: none; }
}

/* Results note (e.g. "All academic results featured here are associated with Photon School.") */
.pisr .pisr-disclaimer {
	display: flex; align-items: flex-start; justify-content: center; gap: 8px;
	max-width: 760px; margin: clamp(28px, 3.5cqi, 44px) auto 0; padding: 12px 18px;
	border-top: 1px solid var(--pisr-line); text-align: center;
	font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--pisr-muted);
}
.pisr .pisr-disclaimer .pisr-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--pisr-primary); }
.pisr .pisr-disclaimer--top {
	width: fit-content; max-width: 100%; margin: 0 auto clamp(18px, 2.4cqi, 26px); padding: 8px 18px;
	border-top: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--pisr-line);
	color: #5A3F47;
}
@container pisr (max-width: 520px) {
	.pisr .pisr-disclaimer--top { border-radius: 14px; padding: 8px 14px; font-size: 13px; text-align: left; }
}
/* 3.0.3: larger note in the Board Results heading colour */
.pisr .pisr-disclaimer--top {
	gap: 10px; padding: 10px 22px;
	font-size: clamp(17px, 1.7cqi, 22px); font-weight: 700; line-height: 1.4; color: #7A0F33;
}
.pisr .pisr-disclaimer--top .pisr-icon { width: 22px; height: 22px; margin-top: 2px; color: #7A0F33; }
@container pisr (max-width: 520px) {
	.pisr .pisr-disclaimer--top { font-size: 16px; padding: 10px 14px; }
	.pisr .pisr-disclaimer--top .pisr-icon { width: 20px; height: 20px; }
}
/* 3.0.4: heading-size note (h3/h4 scale) */
.pisr .pisr-disclaimer--top {
	gap: 12px; padding: 12px 28px;
	font-size: clamp(24px, 2.4cqi, 30px); font-weight: 700; line-height: 1.3; letter-spacing: -.005em;
}
.pisr .pisr-disclaimer--top .pisr-icon { width: 28px; height: 28px; margin-top: 2px; }
@container pisr (max-width: 767px) {
	.pisr .pisr-disclaimer--top { font-size: 21px; padding: 12px 18px; border-radius: 18px; }
	.pisr .pisr-disclaimer--top .pisr-icon { width: 24px; height: 24px; }
}
@container pisr (max-width: 400px) {
	.pisr .pisr-disclaimer--top { font-size: 19px; }
}

/* 3.0.5: note on the right of the section heading row, on one line */
.pisr .pisr-cat-sec__head { flex-wrap: wrap; }
.pisr .pisr-disclaimer--head {
	display: inline-flex; align-items: center; gap: 10px;
	max-width: none; margin: 0 0 0 auto; padding: 0; border: 0; background: none;
	white-space: nowrap; text-align: right;
	font-size: clamp(17px, 1.75cqi, 22px); font-weight: 700; line-height: 1.3; color: #7A0F33;
}
.pisr .pisr-disclaimer--head .pisr-icon { flex: none; width: 24px; height: 24px; margin: 0; color: #7A0F33; }
/* Not enough room for one line beside the heading: it moves under the heading. */
@container pisr (max-width: 1100px) {
	.pisr .pisr-disclaimer--head { flex-basis: 100%; margin: 12px 0 0; white-space: normal; text-align: left; align-items: flex-start; font-size: clamp(16px, 2.4cqi, 20px); }
	.pisr .pisr-disclaimer--head .pisr-icon { width: 20px; height: 20px; margin-top: 2px; }
}
