/* UPSC Club · Print Your Notes */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500..800&display=swap');

#ucpn, .ucpn-faq {
	--navy: #0b3a52; --blue: #2a8bc6; --aqua: #33c3c4; --yellow: #fcc80a;
	--ink: #183847; --muted: #5f7480; --line: #e2eaef; --paper: #f5f8fa;
	--display: 'Bricolage Grotesque', var(--global-heading-font-family, system-ui), sans-serif;
	--wrap: var(--global-content-width, 1300px);
	--edge: var(--global-content-edge-padding, 1.5rem);
	--inset: 8px; /* sits just inside the logo and header icons */
	box-sizing: border-box; width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto;
	padding-left: calc(var(--edge) + var(--inset)); padding-right: calc(var(--edge) + var(--inset)); color: var(--ink);
}
#ucpn *, #ucpn *::before, #ucpn *::after { box-sizing: border-box; }
/* Reset theme list/heading spacing so every block lines up on one edge. */
#ucpn ul, #ucpn ol, #ucpn dl, #ucpn dd, #ucpn p, #ucpn h1, #ucpn h2 { margin: 0; padding: 0; }
#ucpn ul, #ucpn ol { list-style: none; }
#ucpn h1, #ucpn h2, #ucpn strong, #ucpn output, #ucpn .ucpn-pay { font-family: var(--display); }
#ucpn { font-size: 16px; line-height: 1.55; margin-bottom: 56px; }

/* ---------- Hero ---------- */
#ucpn .ucpn-hero {
	display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 48px; align-items: center;
	padding: 48px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 32px;
}
#ucpn .ucpn-hero h1 {
	font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800;
	color: var(--navy); max-width: 20ch; text-wrap: balance;
}
#ucpn .ucpn-lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 58ch; }
#ucpn .ucpn-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; counter-reset: s; }
#ucpn .ucpn-steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
#ucpn .ucpn-steps li::before {
	content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center; font: 700 13px/1 var(--display); color: #fff; background: var(--navy);
}
#ucpn .ucpn-steps b { color: var(--navy); font-weight: 600; }

/* Price list in the hero: same card language as the option cards. */
#ucpn .ucpn-prices { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 8px; }
#ucpn .ucpn-prices h2 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
#ucpn .ucpn-prices li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 10px 0; }
#ucpn .ucpn-prices li + li { border-top: 1px solid var(--line); }
#ucpn .ucpn-prices b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.25; }
#ucpn .ucpn-prices small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
#ucpn .ucpn-prices .chip { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--navy); background: var(--paper); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
#ucpn .ucpn-prices .chip i { font-family: var(--global-body-font-family, system-ui), sans-serif; font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
#ucpn .ucpn-prices .chip.is-free { background: var(--navy); color: var(--yellow); }

/* ---------- Layout ---------- */
#ucpn .ucpn-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
#ucpn .ucpn-work { display: grid; gap: 24px; }
#ucpn .ucpn-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
#ucpn .ucpn-panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
#ucpn .ucpn-panel-head h2 { font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
#ucpn .ucpn-panel-head span { font-size: 14px; color: var(--muted); text-align: right; }

/* Drop zone */
#ucpn .ucpn-drop {
	position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 16px;
	padding: 18px 20px; border: 1.5px dashed #b9d3e2; border-radius: 12px; background: var(--paper); cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
#ucpn .ucpn-drop:hover, #ucpn .ucpn-drop.is-over { border-color: var(--blue); background: #eef6fb; }
#ucpn .ucpn-drop input { position: absolute; inset: 0; opacity: 0; width: 1px; height: 1px; }
#ucpn .ucpn-drop:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
#ucpn .ucpn-drop-ic { width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); }
#ucpn .ucpn-drop-ic svg { width: 24px; height: 24px; }
#ucpn .ucpn-drop-txt strong { display: block; font-size: 17px; font-weight: 700; color: var(--navy); }
#ucpn .ucpn-drop-txt small { display: block; font-size: 14px; color: var(--muted); }
#ucpn .ucpn-drop-btn { font: 600 15px/1 var(--display); color: #fff; background: var(--blue); border-radius: 999px; padding: 11px 18px; white-space: nowrap; }

/* File list */
#ucpn .ucpn-files { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
#ucpn .ucpn-files:empty { display: none; }
#ucpn .ucpn-file { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 32px; gap: 14px; align-items: center; padding: 12px 14px; }
#ucpn .ucpn-file + .ucpn-file { border-top: 1px solid var(--line); }
#ucpn .ucpn-file .ic { width: 36px; height: 44px; border-radius: 6px; background: #fff; border: 1px solid #f0c9c4; color: #c0392b; display: grid; place-items: end center; padding-bottom: 6px; font: 700 10px/1 var(--display); }
#ucpn .ucpn-file .nm { min-width: 0; }
#ucpn .ucpn-file .nm b { display: block; font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ucpn .ucpn-file .nm small { display: block; font-size: 13px; color: var(--muted); }
#ucpn .ucpn-file .bar { height: 4px; background: var(--line); border-radius: 999px; margin-top: 6px; overflow: hidden; }
#ucpn .ucpn-file .bar i { display: block; height: 100%; width: 0; background: var(--aqua); transition: width .2s; }
#ucpn .ucpn-file .pg { font: 700 15px/1 var(--display); color: var(--navy); white-space: nowrap; text-align: right; }
#ucpn .ucpn-file .st-ok { color: #16805a; }
#ucpn .ucpn-file.is-error { background: #fff7f6; }
#ucpn .ucpn-file.is-error .nm small { color: #b3261e; }
#ucpn .ucpn-file .rm { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
#ucpn .ucpn-file .rm:hover, #ucpn .ucpn-file .rm:focus-visible { background: var(--paper); color: #b3261e; }

/* Binding and print: picture cards */
#ucpn .ucpn-group { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
#ucpn .ucpn-group legend { padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); }
#ucpn .ucpn-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#ucpn .ucpn-opt-card { position: relative; display: block; margin: 0; cursor: pointer; container-type: inline-size; }
#ucpn .ucpn-opt-card input { position: absolute; opacity: 0; pointer-events: none; }
#ucpn .ucpn-opt-card .box {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "art txt chip"; align-items: center; column-gap: 14px; height: 100%; padding: 13px 15px;
	background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, background-color .15s;
}
#ucpn .ucpn-opt-card:hover .box { border-color: #b9d3e2; }
#ucpn .ucpn-opt-card input:checked + .box { border: 2px solid var(--blue); padding: 12px 14px; background: #eef6fb; }
#ucpn .ucpn-opt-card input:focus-visible + .box { outline: 2px solid var(--yellow); outline-offset: 2px; }
#ucpn .ucpn-opt-card .txt { grid-area: txt; min-width: 0; }
#ucpn .ucpn-opt-card .art { grid-area: art; }
#ucpn .ucpn-opt-card b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.25; }
#ucpn .ucpn-opt-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
#ucpn .ucpn-opt-card .chip { grid-area: chip; justify-self: end; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: var(--paper); color: var(--navy); transition: background-color .15s, color .15s; }
#ucpn .ucpn-opt-card input:checked + .box .chip { background: var(--navy); color: var(--yellow); }
/* Narrow cards (phones, small tablets, 2-up at mid widths): price chip moves under the text. */
@container (max-width: 360px) {
	#ucpn .ucpn-opt-card .box { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "art txt" "art chip"; align-items: start; row-gap: 8px; column-gap: 12px; }
	#ucpn .ucpn-opt-card .art { align-self: center; width: 40px; height: 50px; }
	#ucpn .ucpn-opt-card .chip { justify-self: start; }
	#ucpn .ucpn-opt-card b { font-size: 16px; }
}
/* The little sheet drawings */
#ucpn .art { position: relative; flex: none; width: 44px; height: 54px; background: #fff; border: 1px solid #cfdde6; border-radius: 6px; }
#ucpn .art::after { content: ''; position: absolute; left: 16px; right: 7px; top: 13px; height: 26px;
	background: linear-gradient(var(--l1), var(--l1)) 0 0 / 100% 3px no-repeat, linear-gradient(var(--l2), var(--l2)) 0 9px / 100% 2px no-repeat,
	linear-gradient(var(--l3), var(--l3)) 0 16px / 72% 2px no-repeat, linear-gradient(var(--l4), var(--l4)) 0 23px / 100% 2px no-repeat; }
#ucpn .art { --l1: #c3ced5; --l2: #e2eaef; --l3: #e2eaef; --l4: #e2eaef; }
#ucpn .art-punched::before { content: ''; position: absolute; left: 6px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #cfdde6; box-shadow: 0 22px 0 #cfdde6; }
#ucpn .art-spiral::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 5px; background: repeating-linear-gradient(var(--blue) 0 3px, transparent 3px 6px); border-radius: 2px; }
#ucpn .art-bw::after, #ucpn .art-colour::after { left: 8px; }
#ucpn .art-bw { --l1: #5f7480; --l2: #b7c4cc; --l3: #b7c4cc; --l4: #b7c4cc; }
#ucpn .art-colour { --l1: var(--blue); --l2: var(--aqua); --l3: var(--yellow); --l4: var(--navy); }
#ucpn .art-sm { width: 36px; height: 44px; border-radius: 5px; }
#ucpn .art-sm::after { top: 10px; right: 6px; height: 24px; }
#ucpn .art-sm.art-punched::before { left: 5px; top: 10px; width: 5px; height: 5px; box-shadow: 0 18px 0 #cfdde6; }
#ucpn .art-sm.art-punched::after { left: 14px; }
#ucpn .art-sm.art-spiral::after { left: 13px; }
#ucpn .art-sm.art-bw::after, #ucpn .art-sm.art-colour::after { left: 7px; }
#ucpn .art-parcel { height: 36px; margin: 4px 0; border-color: #e3c97a; background: linear-gradient(var(--yellow), var(--yellow)) 50% 0 / 6px 100% no-repeat, #fdf6df; }
#ucpn .art-parcel::after { display: none; }
#ucpn .art-parcel::before { content: ''; position: absolute; right: 4px; bottom: 4px; width: 11px; height: 7px; border-radius: 1px; background: var(--navy); }
#ucpn .ucpn-copies-row { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
#ucpn .ucpn-row-label { font-size: 15px; font-weight: 600; color: var(--navy); }
#ucpn .ucpn-stepper { display: inline-flex; align-items: center; justify-self: start; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 4px; }
#ucpn .ucpn-stepper button { width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
#ucpn .ucpn-stepper button:hover, #ucpn .ucpn-stepper button:focus-visible { background: #fff; }
#ucpn .ucpn-stepper output { min-width: 44px; text-align: center; font-size: 18px; font-weight: 700; color: var(--navy); }

/* ---------- Order ticket ---------- */
#ucpn .ucpn-ticket { position: sticky; top: 96px; background: var(--navy); color: #d7e7f0; border-radius: 18px; padding: 24px; }
#ucpn .ucpn-ticket h2 { font-size: 22px; font-weight: 700; color: #fff; }
#ucpn .ucpn-books { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; min-height: 52px; margin-top: 18px; }
#ucpn .ucpn-book { position: relative; width: 30px; height: 42px; border-radius: 3px 6px 6px 3px; background: #fff; }
#ucpn .ucpn-book::before { content: ''; position: absolute; left: 3px; top: 5px; bottom: 5px; width: 3px; background: repeating-linear-gradient(to bottom, var(--blue) 0 3px, transparent 3px 6px); }
#ucpn .ucpn-book:nth-child(4n+2) { background: #dff4f4; }
#ucpn .ucpn-book:nth-child(4n+3) { background: #fff3c4; }
#ucpn .ucpn-book:nth-child(4n+4) { background: #dcecf7; }
#ucpn .ucpn-stack { width: 46px; height: 42px; border-radius: 4px; background: repeating-linear-gradient(to bottom, #fff 0 4px, #c9dbe5 4px 5px); }
#ucpn .ucpn-more { font: 700 14px/42px var(--display); color: #fff; padding-left: 4px; }
#ucpn .ucpn-books-cap { font-size: 14px; color: #9fbccc; margin-top: 8px; }
#ucpn .ucpn-rows { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
#ucpn .ucpn-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
#ucpn .ucpn-rows dt { font-size: 14px; color: #a9c4d2; }
#ucpn .ucpn-rows dd { font: 600 15px/1.3 var(--display); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
#ucpn .ucpn-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; }
#ucpn .ucpn-total span { font-size: 16px; color: #fff; font-weight: 600; }
#ucpn .ucpn-total strong { font-size: 36px; line-height: 1; font-weight: 800; color: var(--yellow); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
#ucpn .ucpn-pay {
	width: 100%; border: 0; border-radius: 999px; padding: 15px 20px; cursor: pointer;
	background: var(--yellow); color: var(--navy); font-size: 18px; font-weight: 700; transition: background-color .15s;
}
#ucpn .ucpn-pay:hover:not(:disabled) { background: #ffd739; }
#ucpn .ucpn-pay:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#ucpn .ucpn-pay:disabled { background: rgba(255, 255, 255, .1); color: #9fbccc; cursor: not-allowed; font-size: 16px; }
#ucpn .ucpn-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fff1ef; color: #9f1f17; font-size: 14px; }
#ucpn .ucpn-note { margin-top: 14px; font-size: 13px; color: #9fbccc; }

/* ---------- WhatsApp help box (above the FAQ) ---------- */
#ucpn .ucpn-help { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 32px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
#ucpn .ucpn-help-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e7f8ee; color: #1a9e51; }
#ucpn .ucpn-help-ic svg { width: 28px; height: 28px; }
#ucpn .ucpn-help h2 { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
#ucpn .ucpn-help p { margin-top: 2px; font-size: 15px; color: var(--muted); max-width: 62ch; }
#ucpn .ucpn-help-btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 12px 22px; border-radius: 999px; background: #1a9e51; color: #fff; font: 600 16px/1 var(--display); text-decoration: none; transition: background-color .15s; }
#ucpn .ucpn-help-btn:hover { background: #158544; color: #fff; }
#ucpn .ucpn-help-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* No site footer on the print page (this stylesheet loads only here). */
footer.ucn-footer { display: none !important; }

/* ---------- FAQ (page blocks below the tool) ---------- */
.ucpn-faq { margin-bottom: 0; padding-bottom: 96px; }
.ucpn-faq > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.ucpn-faq h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; color: #0b3a52; margin: 0 0 16px; }
.ucpn-faq details { border-top: 1px solid #e2eaef; padding: 16px 0; margin: 0; }
.ucpn-faq details:last-child { border-bottom: 1px solid #e2eaef; }
.ucpn-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 18px; color: #0b3a52; }
.ucpn-faq summary::-webkit-details-marker { display: none; }
.ucpn-faq summary::after { content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f5f8fa; color: #2a8bc6; font-size: 20px; line-height: 1; }
.ucpn-faq details[open] summary::after { content: '−'; }
.ucpn-faq details p { margin: 10px 0 0; max-width: 75ch; color: #5f7480; }

@media (max-width: 1024px) {
	#ucpn .ucpn-hero { grid-template-columns: 1fr; gap: 28px; }
	#ucpn .ucpn-prices { max-width: 560px; }
	#ucpn .ucpn-grid { grid-template-columns: 1fr; }
	#ucpn .ucpn-ticket { position: static; }
}
@media (max-width: 600px) {
	#ucpn .ucpn-hero { padding: 28px 0 28px; margin-bottom: 24px; }
	#ucpn .ucpn-lede { font-size: 16px; }
	#ucpn .ucpn-panel, #ucpn .ucpn-ticket { padding: 18px; }
	#ucpn .ucpn-prices { padding: 16px 16px 6px; }
	#ucpn .ucpn-prices li { column-gap: 12px; }
	#ucpn .ucpn-prices .chip:not(.is-free) { background: none; padding: 0; text-align: right; line-height: 1.15; }
	#ucpn .ucpn-prices .chip i { display: block; margin: 2px 0 0; }
	#ucpn .ucpn-panel-head { flex-direction: column; gap: 2px; }
	#ucpn .ucpn-panel-head span { text-align: left; }
	#ucpn .ucpn-drop { grid-template-columns: 44px minmax(0, 1fr); }
	#ucpn .ucpn-drop-btn { display: none; }
	#ucpn .ucpn-opts { grid-template-columns: 1fr; gap: 10px; }
	#ucpn .ucpn-help { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
	#ucpn .ucpn-help-ic { width: 44px; height: 44px; }
	#ucpn .ucpn-help-btn { grid-column: 1 / -1; width: 100%; }
	#ucpn .ucpn-file { grid-template-columns: 32px minmax(0, 1fr) auto 28px; gap: 10px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { #ucpn * { transition: none !important; } }
