/* =====================================================================
   Grade 12 Past Exam Papers: app layer on top of the Escul theme
   Mega menu, mobile app shell, subject page tools. Uses theme tokens only.
   ===================================================================== */
:root {
	--g12-line: #ECE6FB;
	--g12-tint: var(--smoke-color3, #F5F0FF);
	--g12-yellow-soft: #FFF3C9;
	--g12-appbar: 64px;
	--g12-tabbar: 66px;
	--g12-safe: env(safe-area-inset-bottom, 0px);
}

/* ---------- Two-colour tiles (Font Awesome duotone + theme colours) ---------- */
.g12-tile {
	--fa-primary-color: var(--theme-color);
	--fa-secondary-color: var(--theme-color2);
	--fa-secondary-opacity: 1;
	flex: none; width: 44px; height: 44px; border-radius: 14px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--g12-tint); font-size: 20px; line-height: 1;
}
.g12-tile-sm { width: 36px; height: 36px; border-radius: 11px; font-size: 16px; }
.g12-tile-lang {
	background: var(--theme-color); color: #fff;
	font-family: var(--title-font); font-weight: 800; font-size: 14px; letter-spacing: .02em;
	box-shadow: inset 0 -5px 0 var(--theme-color2);
}
.fad { --fa-primary-color: var(--theme-color); --fa-secondary-color: var(--theme-color2); --fa-secondary-opacity: 1; }

.g12-quizdot { display: inline-block; padding: 1px 7px; border-radius: 20px; background: var(--g12-yellow-soft); color: #7A5600; font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.5; }
.g12-sep { opacity: .5; }

/* ---------- Desktop mega menu ---------- */
@media (min-width: 992px) {
	.main-menu ul li.g12-has-mega { position: static; }
	.g12-mega {
		position: absolute; top: 100%; left: 50%; z-index: 99;
		width: min(1180px, calc(100vw - 48px));
		transform: translate(-50%, 14px); opacity: 0; visibility: hidden;
		transition: opacity .25s ease, transform .3s ease, visibility .25s;
		background: #fff; border: 1px solid var(--g12-line); border-radius: 24px;
		box-shadow: 0 34px 70px -28px rgba(30, 22, 70, .32);
		text-align: left; overflow: hidden;
	}
	.g12-mega::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--theme-color); }
	.main-menu ul li.g12-has-mega:hover > .g12-mega,
	.main-menu ul li.g12-has-mega:focus-within > .g12-mega,
	.main-menu ul li.g12-has-mega.is-open > .g12-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
	.g12-mega-inner { display: grid; grid-template-columns: 272px 1fr; min-height: 440px; }
	.g12-mega-rail { background: var(--g12-tint); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; }
	.g12-rail-btn {
		display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
		padding: 10px 12px; border: 0; border-radius: 16px; background: transparent; cursor: pointer;
		font-family: var(--title-font); font-weight: 700; font-size: 15px; color: var(--title-color); transition: .2s;
	}
	.g12-rail-btn .g12-tile { background: #fff; }
	.g12-rail-txt { flex: 1; line-height: 1.25; }
	.g12-rail-txt small { display: block; font-family: var(--body-font); font-weight: 500; font-size: 12px; color: var(--body-color); }
	.g12-rail-btn > i { color: var(--body-color); opacity: 0; transition: .2s; }
	.g12-rail-btn:hover, .g12-rail-btn.is-on { background: #fff; box-shadow: 0 8px 24px -14px rgba(30, 22, 70, .35); }
	.g12-rail-btn.is-on .g12-tile { background: var(--g12-tint); }
	.g12-rail-btn.is-on > i { opacity: 1; color: var(--theme-color); }
	.main-menu .g12-mega a.g12-rail-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; font-family: var(--title-font); font-weight: 700; font-size: 14px; color: var(--theme-color); text-transform: none; }
	.g12-mega-main { padding: 24px 28px 26px; min-width: 0; }
	.g12-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
	.g12-mega-title { margin: 0; font-size: 22px; }
	.g12-find { position: relative; margin: 0; flex: 0 1 320px; }
	.g12-find i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--body-color); }
	.g12-find input { width: 100%; height: 44px; padding: 0 16px 0 42px; border: 1px solid var(--th-border-color); border-radius: 30px; background: #fff; font-size: 14px; }
	.g12-find input:focus { border-color: var(--theme-color); outline: 0; }
	.g12-mega-pane { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 380px; overflow: auto; padding-right: 4px; }
	.g12-mega-pane.is-lang { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g12-mega-pane[hidden] { display: none; }
	.g12-mega-empty { margin: 30px 0; color: var(--body-color); }
	.main-menu .g12-mega a { text-transform: none; }
	.main-menu .g12-mega a.g12-subj, .g12-sheet a.g12-subj { padding: 10px 12px; }
}
a.g12-subj { display: flex; align-items: center; gap: 12px; border-radius: 16px; color: var(--title-color); transition: background .15s; }
a.g12-subj:hover { background: var(--g12-tint); color: var(--title-color); }
.g12-subj-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.g12-subj-name { font-family: var(--title-font); font-weight: 700; font-size: 15px; }
.g12-subj-meta { font-size: 12.5px; color: var(--body-color); font-weight: 500; }
.g12-langrow { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 16px; }
.g12-langrow:hover { background: var(--g12-tint); }
.g12-langname { flex: 1; font-family: var(--title-font); font-weight: 700; font-size: 15px; color: var(--title-color); }
.g12-levels { display: flex; gap: 6px; }
.main-menu .g12-mega a.g12-level, a.g12-level {
	position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 34px; padding: 0 10px;
	border: 1.5px solid var(--theme-color); border-radius: 30px; color: var(--theme-color); background: #fff;
	font-family: var(--title-font); font-weight: 800; font-size: 12.5px; text-transform: none; transition: .15s;
}
a.g12-level:hover { background: var(--theme-color); color: #fff; }
.g12-lvquiz { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--theme-color2); border: 2px solid #fff; }

/* ---------- Subject page: intro fold ---------- */
.g12-intro { margin-bottom: 26px; }
.g12-intro-body { position: relative; }
.g12-intro.is-folded .g12-intro-body { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.g12-intro-btn {
	display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 9px 20px;
	border: 1.5px solid var(--theme-color); border-radius: 30px; background: #fff; color: var(--theme-color);
	font-family: var(--title-font); font-weight: 700; font-size: 14px; cursor: pointer; transition: .2s;
}
.g12-intro-btn:hover { background: var(--theme-color); color: #fff; }
.g12-intro-btn i { transition: transform .25s; }
.g12-intro-btn[aria-expanded="true"] i { transform: rotate(180deg); }

/* ---------- Subject page: contents (desktop sidebar) ---------- */
.g12-toc-card .widget_title { margin-bottom: 18px; }
.entry-content ol.g12-toc-list, ol.g12-toc-list { list-style: none; margin: 0; padding: 0; }
.g12-toc-list li { margin: 0; padding: 0; }
.g12-toc-list a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--title-color); font-weight: 600; font-size: 15px; line-height: 1.35; transition: .15s; }
.g12-toc-list a i { width: 18px; text-align: center; font-size: 16px; }
.g12-toc-list a:hover, .g12-toc-list a.is-on { background: var(--g12-tint); color: var(--theme-color); }
.g12-toc-list .g12-toc-h3 a { padding-left: 42px; font-weight: 500; font-size: 14px; }
.g12-toc-list .g12-toc-quiz a { background: var(--g12-yellow-soft); }
.g12-toc-years { padding: 8px 12px 6px !important; }
.g12-toc-label { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--title-color); margin-bottom: 10px; }
.g12-toc-label i { width: 18px; text-align: center; }
.g12-yearchips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 30px; }
.g12-yearchips a { display: inline-block; padding: 4px 11px; border: 1px solid var(--th-border-color); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--title-color); background: #fff; }
.g12-yearchips a:hover, .g12-yearchips a.is-on { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }

/* ---------- Subject page: paper search + filters ---------- */
.g12-tools { margin: 10px 0 34px; padding: 20px 22px; border: 1px solid var(--g12-line); border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -30px rgba(30, 22, 70, .35); }
.g12-tools-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.g12-tools-head strong { display: block; font-family: var(--title-font); font-size: 18px; color: var(--title-color); line-height: 1.2; }
.g12-tools-count { display: block; font-size: 13px; color: var(--body-color); }
.g12-tools-clear { margin-left: auto; border: 0; background: none; color: var(--theme-color); font-weight: 700; font-size: 14px; cursor: pointer; }
.g12-tools-search { position: relative; display: block; margin: 0 0 12px; }
.g12-tools-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--theme-color); }
.g12-tools-search input { width: 100%; height: 50px; padding: 0 18px 0 46px; border: 1.5px solid transparent; border-radius: 30px; background: var(--g12-tint); font-size: 15px; color: var(--title-color); }
.g12-tools-search input:focus { outline: 0; border-color: var(--theme-color); background: #fff; }
.g12-chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.g12-chip { flex: none; border: 1px solid var(--th-border-color); background: #fff; color: var(--title-color); border-radius: 30px; padding: 7px 15px; font-weight: 600; font-size: 14px; line-height: 1.3; cursor: pointer; transition: .15s; }
.g12-chip:hover { border-color: var(--theme-color); }
.g12-chip.is-on { background: var(--theme-color); border-color: var(--theme-color); color: #fff; }
.g12-chip-year.is-on, .g12-chip-term.is-on { background: var(--title-color); border-color: var(--title-color); }
.g12-tools-empty { margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--g12-tint); color: var(--title-color); font-weight: 600; }
.entry-content .g12-off { display: none !important; }
.entry-content mark.g12-hit { background: var(--g12-yellow-soft); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- App shell parts hidden on desktop ---------- */
.g12-tabbar, .g12-strip, .g12-sheet, .g12-scrim { display: none; }

/* =====================================================================
   Phones and tablets: app portal
   ===================================================================== */
@media (max-width: 991px) {
	html { -webkit-tap-highlight-color: transparent; }
	body.g12-app { padding-bottom: calc(var(--g12-tabbar) + var(--g12-safe)); overflow-x: hidden; }
	.preloader, #magic-cursor, .scroll-top { display: none !important; }

	/* Top app bar */
	.header-default .header-top { display: none; }
	.th-header { height: var(--g12-appbar); }
	.th-header .sticky-wrapper, .th-header .sticky-wrapper.sticky {
		position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--g12-appbar);
		background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--g12-line); filter: none; animation: none;
		-webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
	}
	.th-header .menu-area { padding: 0; height: var(--g12-appbar); display: flex; align-items: center; }
	.th-header .menu-area > .row { width: 100%; margin: 0; flex-wrap: nowrap; }
	.header-logo { padding: 0; }
	.header-logo img { max-height: 46px; }
	.th-header .th-menu-toggle {
		width: 44px; height: 44px; padding: 0; border-radius: 14px; font-size: 20px;
		background: var(--g12-tint); color: var(--theme-color); border: 0; box-shadow: none;
	}

	/* Page header (breadcrumb) as a compact app title */
	.breadcumb-wrapper { text-align: left; }
	.breadcumb-wrapper .breadcumb-content { padding: 22px 0 20px; }
	.breadcumb-title { font-size: 28px; line-height: 1.2; margin: 0; }
	.breadcumb-menu { margin: 8px 0 0; padding: 0; }
	.breadcumb-menu li, .breadcumb-menu a, .breadcumb-menu span { font-size: 13px; }

	/* Subject pages */
	.g12-subject.space-top { padding-top: 0; }
	.g12-subject .blog-single { margin-bottom: 20px; }
	.g12-subject .blog-img { margin: 18px 0; border-radius: 18px; overflow: hidden; }
	.g12-subject .blog-content { padding: 0 !important; }
	.g12-subject .th-blog.blog-single { border: 0; box-shadow: none; background: none; padding: 0; }
	.g12-toc-card { display: none; }
	.g12-intro.is-folded .g12-intro-body { max-height: 210px; }
	.g12-tools { padding: 16px; border-radius: 20px; margin-left: -4px; margin-right: -4px; }
	.g12-chiprow { flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px; scrollbar-width: none; }
	.g12-chiprow::-webkit-scrollbar { display: none; }

	/* Paper rows as app list items */
	.entry-content ul.g12-papers li { padding: 0; border-bottom: 1px solid var(--g12-line); }
	.entry-content ul.g12-papers li a { display: flex; align-items: center; gap: 10px; flex: 1; min-height: 48px; padding: 8px 0; color: var(--title-color); }
	.entry-content ul.g12-papers li a i { flex: none; width: 34px; height: 34px; margin: 0; border-radius: 10px; background: var(--g12-tint); display: inline-flex; align-items: center; justify-content: center; }
	.entry-content ul.g12-papers .g12-size { margin-left: 44px; margin-top: -10px; padding-bottom: 8px; }
	.entry-content table:has(.g12-papers) td:first-child, .entry-content table:has(.g12-soon) td:first-child { border-radius: 12px; padding: 10px 14px; }
	.entry-content table:has(.g12-soon) thead { display: none; }
	.entry-content table:has(.g12-soon), .entry-content table:has(.g12-soon) tbody,
	.entry-content table:has(.g12-soon) tr, .entry-content table:has(.g12-soon) td { display: block; width: 100%; }
	.entry-content table:has(.g12-soon) td { border-left: 0; border-right: 0; }
	.entry-content table:has(.g12-soon) td:first-child { font-weight: 600; color: var(--title-color); background: var(--smoke-color3); }
	.entry-content h3.wp-block-heading { scroll-margin-top: 130px; }

	/* Sticky jump strip (On this page) */
	.g12-strip {
		display: block; position: sticky; top: var(--g12-appbar); z-index: 30;
		background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--g12-line);
		-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	}
	.g12-strip-inner { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
	.g12-strip-inner::-webkit-scrollbar { display: none; }
	.g12-strip a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 20px; background: var(--g12-tint); color: var(--title-color); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
	.g12-strip a.is-quiz { background: var(--g12-yellow-soft); }
	.g12-strip a.is-on { background: var(--theme-color); color: #fff; }
	.g12-strip a.is-on .fad { --fa-primary-color: #fff; }
	[id] { scroll-margin-top: calc(var(--g12-appbar) + 62px); }

	/* Bottom tab bar */
	.g12-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
		height: calc(var(--g12-tabbar) + var(--g12-safe)); padding: 0 6px var(--g12-safe);
		background: #fff; border-top: 1px solid var(--g12-line); box-shadow: 0 -10px 30px -18px rgba(30, 22, 70, .25);
	}
	.g12-tab {
		--fa-primary-color: #6B7488; --fa-secondary-color: #C9CFDA;
		display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
		height: var(--g12-tabbar); border: 0; background: none; color: #6B7488; padding: 0;
		font-size: 11px; font-weight: 600; letter-spacing: .01em;
	}
	.g12-tab i { font-size: 21px; }
	.g12-tab .fad { --fa-primary-color: #6B7488; --fa-secondary-color: #C9CFDA; }
	.g12-tab.is-on, .g12-tab:active { color: var(--theme-color); }
	.g12-tab.is-on .fad, .g12-tab:active .fad { --fa-primary-color: var(--theme-color); --fa-secondary-color: var(--theme-color2); }
	.g12-tab-main span:last-child { margin-top: 2px; }
	.g12-tab-fab {
		width: 54px; height: 54px; margin-top: -26px; border-radius: 50%;
		display: flex; align-items: center; justify-content: center;
		background: var(--theme-color); color: #fff; font-size: 20px;
		border: 5px solid #fff; box-shadow: 0 10px 22px -8px rgba(116, 62, 249, .7);
	}
	.g12-tab-fab i { font-size: 19px; }

	/* Bottom sheets */
	.g12-scrim { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(20, 14, 48, .45); opacity: 0; transition: opacity .25s; }
	.g12-scrim.is-on { opacity: 1; }
	.g12-scrim[hidden] { display: none; }
	.g12-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; pointer-events: none; }
	.g12-sheet[hidden] { display: none; }
	.g12-sheet-panel {
		pointer-events: auto; display: flex; flex-direction: column;
		height: 90vh; height: 90dvh; background: #fff; border-radius: 26px 26px 0 0;
		transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
		padding-bottom: var(--g12-safe);
	}
	.g12-sheet-short { height: auto; max-height: 82vh; max-height: 82dvh; }
	.g12-sheet.is-on .g12-sheet-panel { transform: translateY(0); }
	.g12-sheet-grab { flex: none; width: 44px; height: 5px; margin: 10px auto 4px; border-radius: 5px; background: var(--th-border-color); }
	.g12-sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 10px; }
	.g12-sheet-head h3 { margin: 0; font-size: 22px; }
	.g12-sheet-x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--g12-tint); color: var(--title-color); font-size: 18px; }
	.g12-sheet-search { flex: none; position: relative; margin: 0 18px 10px; }
	.g12-sheet-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--theme-color); }
	.g12-sheet-search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1.5px solid transparent; border-radius: 30px; background: var(--g12-tint); font-size: 16px; color: var(--title-color); }
	.g12-sheet-search input:focus { outline: 0; border-color: var(--theme-color); background: #fff; }
	.g12-sheet-chips { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; scrollbar-width: none; border-bottom: 1px solid var(--g12-line); }
	.g12-sheet-chips::-webkit-scrollbar { display: none; }
	.g12-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 6px 12px 20px; }
	.g12-sheet-group h4 { display: flex; align-items: center; gap: 10px; margin: 16px 8px 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--body-color); }
	.g12-sheet-group[hidden], .g12-sheet-body [hidden] { display: none !important; }
	.g12-sheet .g12-subj, .g12-sheet .g12-langrow { padding: 9px 8px; }
	.g12-sheet-none { text-align: center; padding: 30px 10px; }
	.g12-sheet .g12-toc-list a { padding: 12px; font-size: 16px; }
	.g12-sheet .g12-yearchips { padding-left: 0; gap: 8px; }
	.g12-sheet .g12-yearchips a { padding: 7px 14px; font-size: 14px; }
	html.g12-lock, html.g12-lock body { overflow: hidden; }

	/* Home banner sits right under the app bar */
	.hero-5 { padding-top: 12px; }

	/* Quiz sits edge to edge like an app card */
	.g12q { margin-left: -4px; margin-right: -4px; border-radius: 20px; }
}

/* Home page on phones: shorter hero */
@media (max-width: 575px) {
	.hero-5 .hero-style5 { padding: 40px 0 46px; }
	.hero-5 .hero-title { font-size: 34px; line-height: 1.15; }
	.breadcumb-title { font-size: 25px; }
}

/* Guideline posts: practise box */
.g12-practise { display: flex; gap: 18px; align-items: flex-start; margin: 34px 0 10px; padding: 24px; border-radius: 22px; background: var(--g12-tint); border: 1px solid var(--g12-line); }
.g12-practise .g12-practise-ic { flex: 0 0 auto; width: 60px; height: 60px; border-radius: 18px; font-size: 26px; background: #fff; box-shadow: 0 10px 24px -16px rgba(30, 22, 70, .45); }
.g12-practise-kick { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--theme-color); margin-bottom: 4px; }
.g12-practise strong { display: block; font-family: var(--title-font); font-size: 22px; line-height: 1.25; color: var(--title-color); }
.g12-practise p { margin: 8px 0 16px; }
.g12-practise-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.g12-practise-btns .th-btn { padding: 14px 24px; }
@media (max-width: 575px) { .g12-practise { flex-direction: column; padding: 20px; } .g12-practise-btns .th-btn { width: 100%; justify-content: center; } }

/* ---------- Exam facts: glance strip ---------- */
.g12-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 6px 0 8px; }
.g12-glance-item { --fa-primary-color: var(--theme-color); --fa-secondary-color: var(--theme-color2); --fa-secondary-opacity: 1; padding: 14px 14px 12px; border-radius: 18px; background: #fff; border: 1px solid var(--g12-line); }
.g12-glance-item i { font-size: 20px; display: block; margin-bottom: 8px; }
.g12-glance-item strong { display: block; font-family: var(--title-font); font-size: 18px; line-height: 1.2; color: var(--title-color); }
.g12-glance-item span { display: block; font-size: 13px; line-height: 1.35; color: var(--body-color); margin-top: 2px; }
.g12-glance-src { font-size: 13px; margin: 0 0 28px; color: var(--body-color); }
.g12-glance-src a { color: var(--theme-color); font-weight: 600; }

/* ---------- Exam guide ---------- */
.g12-guide, .g12-faq { margin-top: 44px; }
.g12-paper-card { margin: 18px 0 22px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--g12-line); box-shadow: 0 18px 40px -34px rgba(30, 22, 70, .4); }
.g12-paper-card h3 { margin: 0 0 12px; font-size: 22px; }
.g12-paper-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.g12-paper-facts li { --fa-primary-color: var(--theme-color); --fa-secondary-color: var(--theme-color2); --fa-secondary-opacity: 1; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 13px; border-radius: 30px; background: var(--g12-tint); font-size: 14px; color: var(--title-color); }
.g12-paper-facts li strong { font-weight: 700; }
.g12-tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; border-radius: 16px; border: 1px solid var(--g12-line); }
.g12-exam-tbl { width: 100%; margin: 0; border-collapse: collapse; font-size: 14.5px; border: 0; }
.g12-exam-tbl th { background: var(--g12-tint); color: var(--title-color); font-weight: 700; text-align: left; padding: 10px 12px; border: 0; white-space: nowrap; font-size: 13px; }
.g12-exam-tbl td { padding: 10px 12px; border: 0; border-top: 1px solid var(--g12-line); vertical-align: top; color: var(--title-color); }
.g12-exam-tbl .n { text-align: center; white-space: nowrap; }
.g12-exam-tbl small { display: block; color: var(--body-color); font-size: 12.5px; margin-top: 2px; }
.g12-orig { color: var(--body-color); font-size: 13px; }
.g12-hist td.is-on { color: var(--theme-color); font-weight: 700; background: rgba(116, 62, 249, .05); }
.g12-hist td.is-off { color: #b9b4c9; }
.g12-hist td:first-child { min-width: 180px; }
.g12-choice { --fa-primary-color: var(--theme-color); --fa-secondary-color: var(--theme-color2); --fa-secondary-opacity: 1; display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 0 0 10px; color: var(--title-color); }
.g12-choice i { margin-top: 4px; }
.g12-with { font-size: 14.5px; margin: 0 0 10px; }
.g12-rules { margin-top: 6px; border-top: 1px dashed var(--g12-line); padding-top: 10px; }
.g12-rules summary { cursor: pointer; font-weight: 700; color: var(--theme-color); font-size: 14.5px; list-style: none; }
.g12-rules summary::-webkit-details-marker { display: none; }
.g12-rules summary::after { content: "+"; margin-left: 8px; }
.g12-rules[open] summary::after { content: "–"; }
.g12-rules ol { margin: 10px 0 0; padding-left: 20px; font-size: 14.5px; }
.g12-rules li { margin-bottom: 5px; }

/* ---------- Questions and answers ---------- */
.g12-faq-item { border: 1px solid var(--g12-line); border-radius: 18px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.g12-faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative; }
.g12-faq-item summary::-webkit-details-marker { display: none; }
.g12-faq-item summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--g12-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23743EF9' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .2s; }
.g12-faq-item[open] summary::after { transform: rotate(180deg); }
.g12-faq-item h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.g12-faq-a { padding: 0 18px 16px; }
.g12-faq-a p { margin: 0; }
@media (max-width: 575px) {
	.g12-glance { grid-template-columns: 1fr 1fr; }
	.g12-paper-card { padding: 16px; border-radius: 18px; }
	.g12-paper-card h3 { font-size: 19px; }
}

/* g12 download-btn fix */
.download-btn,.download-btn:visited,.download-btn:hover,.download-btn:focus{color:#fff!important;text-decoration:none}
.download-btn svg,.download-btn svg path{fill:#fff!important}
.download-btn:hover{filter:brightness(1.1)}
