/* Shared opt-in Exam Hub; frozen Guides and directory presentation are untouched. */
.tgs-exam-hub { --exam-paper:#f7f5ef; --exam-rule:#d1cdc7; --exam-anchor-offset:24px; background:var(--exam-paper); color:#111; padding-bottom:4rem; font:16px/1.6 var(--wp--preset--font-family--body); }
.tgs-exam-hub * { box-sizing:border-box; }
.tgs-exam-hub .tgs-exam-hub__inner { max-width:1280px; display:grid; grid-template-columns:minmax(0,1fr) 220px; column-gap:2rem; align-items:start; }
.tgs-exam-hub > .tgs-visible-breadcrumb { padding-block:1rem; }
.tgs-exam-hub__hero { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:2rem; align-items:start; padding-block:1.5rem 2rem; grid-column:1; grid-row:1; }
.tgs-exam-hub .tgs-exam-hub__label { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--tgs-accent); margin:0 0 1rem; }
.tgs-exam-hub h1 { font:900 clamp(2.35rem,4vw,4.3rem)/1.06 var(--wp--preset--font-family--display); letter-spacing:-.045em; margin:0 0 1.05rem; text-wrap:balance; overflow-wrap:break-word; }
.tgs-exam-hub__intro { margin:0 0 1rem; max-width:52ch; }
.tgs-exam-hub .tgs-exam-hub__updated { font-size:12px; margin:0; }
.tgs-exam-hub__media { width:calc(100% - 6px); margin:0; aspect-ratio:3/2; border:2px solid #111; box-shadow:6px 6px 0 var(--tgs-accent); }
.tgs-exam-hub__media img { width:100%; height:100%; object-fit:cover; display:block; }
.tgs-exam-hub__placeholder { background:linear-gradient(120deg,#eedee0,#dec0c4); }
.tgs-exam-hub .tgs-share { grid-column:1; grid-row:2; margin:0 0 1.6rem; }
.tgs-exam-hub__snapshot { grid-column:1; grid-row:3; padding-top:1rem; border-top:2px solid #111; margin-bottom:2rem; scroll-margin-top:var(--exam-anchor-offset); }
.tgs-exam-hub h2 { font:900 clamp(1.7rem,2.4vw,2.5rem)/1.15 var(--wp--preset--font-family--display); letter-spacing:-.03em; margin:0 0 1rem; text-wrap:balance; }
.tgs-exam-hub__snapshot dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:0; }
.tgs-exam-hub__snapshot dl > div { border:1px solid var(--exam-rule); padding:1rem; min-width:0; background:color-mix(in srgb,var(--tgs-accent) 3%,white); }
.tgs-exam-hub__snapshot dt { font-size:12px; font-weight:800; color:var(--tgs-accent); }
.tgs-exam-hub__snapshot dd { margin:.35rem 0 0; font-size:14px; line-height:1.45; overflow-wrap:anywhere; }
.tgs-exam-hub__toc { grid-column:2; grid-row:1 / span 4; position:sticky; top:var(--exam-anchor-offset); max-height:calc(100dvh - var(--exam-anchor-offset) - 16px); overflow-y:auto; border:1px solid var(--exam-rule); background:#fff; padding:1.1rem; }
.tgs-exam-hub__toc h2 { font-size:1.3rem; }
.tgs-exam-hub__toc ol { list-style:none; margin:0; padding:0; }
.tgs-exam-hub__toc a { display:block; font-size:12px; padding:.4rem .3rem; text-decoration:none; border-left:2px solid transparent; }
.tgs-exam-hub__toc a[aria-current] { border-color:var(--tgs-accent); background:#f6eaec; font-weight:700; }
.tgs-exam-hub__body { grid-column:1; grid-row:4; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:2rem; min-width:0; }
.tgs-exam-hub__section { grid-column:1 / -1; border-top:1px solid var(--exam-rule); padding-top:1.3rem; margin-bottom:2rem; min-width:0; scroll-margin-top:var(--exam-anchor-offset); }
.tgs-exam-hub__section:is(.tgs-exam-hub__section--eligibility,.tgs-exam-hub__section--dates,.tgs-exam-hub__section--registration,.tgs-exam-hub__section--results,.tgs-exam-hub__section--syllabus,.tgs-exam-hub__section--preparation) { grid-column:auto; }
.tgs-exam-hub__section :is(p,ul,ol) { margin:0 0 1rem; }
.tgs-exam-hub__section :is(ul,ol) { padding-left:1.25rem; }
.tgs-exam-hub__section h3 { font:800 1.25rem/1.3 var(--wp--preset--font-family--display); margin:1.2rem 0 .5rem; }
.tgs-exam-hub a:where(:not(.tgs-program-directory-card__cta, .tgs-article-card__cta, .tgs-guide-directory-card__cta, .tgs-entity-card__link, .tgs-test-core-card__cta, .wp-block-button__link, .tgs-button, .tgs-editorial-hub__callout > a)) { color:inherit; text-underline-offset:.2em; overflow-wrap:anywhere; }
.tgs-exam-hub :is(a,button,summary):focus-visible { outline:3px solid var(--tgs-accent); outline-offset:3px; }
.tgs-exam-hub .wp-block-table { overflow-x:auto; max-width:100%; margin:1rem 0; }
.tgs-exam-hub table { border-collapse:collapse; width:100%; font-size:14px; }
.tgs-exam-hub :is(th,td) { border:1px solid var(--exam-rule); padding:.6rem; text-align:left; vertical-align:top; overflow-wrap:anywhere; }
.tgs-exam-hub th { background:#eeece7; }
.tgs-exam-hub__deep { display:flex; flex-wrap:wrap; gap:.3rem 1rem; margin-top:1rem; }
.tgs-exam-hub__deep a { font-size:13px; font-weight:750; min-height:44px; display:flex; align-items:center; }
.tgs-exam-hub__cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.tgs-exam-hub__cards--core { grid-template-columns:repeat(3,minmax(0,1fr)); }
.tgs-exam-hub .tgs-card,
.tgs-exam-hub .tgs-entity-card { min-width:0; }
.tgs-exam-hub .tgs-article-card__media { aspect-ratio:2.6; min-height:0; }

.tgs-exam-hub .tgs-article-card__title { margin:.5rem 0; }



.tgs-exam-hub .tgs-entity-card h3 { margin:.4rem 0; }
.tgs-exam-hub .tgs-entity-card__excerpt { font-size:13px; }

.tgs-exam-hub__pagination ul { display:flex; flex-wrap:wrap; gap:.5rem; list-style:none; padding:0; margin:1.25rem 0; }
.tgs-exam-hub__pagination .page-numbers { display:flex; min-width:44px; min-height:44px; align-items:center; justify-content:center; padding:.3rem; }
.tgs-exam-hub__pagination .current { background:var(--tgs-accent); color:#fff; }
@media(max-width:1023px) {
 .tgs-exam-hub .tgs-exam-hub__inner { display:block; }
 .tgs-exam-hub__toc { position:sticky; top:var(--exam-header-offset,0px); padding:0; border:0; border-bottom:2px solid #111; margin-bottom:1.5rem; background:var(--exam-paper); z-index:5; overflow:visible; max-height:none; }
 .tgs-exam-hub__toc h2 { display:none; }
 .tgs-exam-hub__toc ol { display:flex; flex-wrap:nowrap; gap:1rem; overflow-x:auto; padding:.3rem; scrollbar-width:thin; }
 .tgs-exam-hub__toc a { white-space:nowrap; min-height:44px; display:flex; align-items:center; border-left:0; border-bottom:2px solid transparent; }
}
@media(max-width:600px) {
 .tgs-exam-hub__hero { grid-template-columns:minmax(0,1fr); gap:1.5rem; }
 .tgs-exam-hub__snapshot dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .tgs-exam-hub__body { display:block; }
 .tgs-exam-hub__cards,.tgs-exam-hub__cards--core { grid-template-columns:minmax(0,1fr); }
 .tgs-exam-hub__section { margin-bottom:1.5rem; }
 .tgs-exam-hub__media { aspect-ratio:1.7; }
}

.tgs-exam-hub .tgs-article-card__image--plain { background:#ead2d6; }
.tgs-exam-hub .tgs-article-card__media { height:auto; }
.tgs-exam-hub .tgs-exam-hub__cards > .tgs-card { grid-column:auto; }
body .wp-site-blocks .tgs-exam-hub .tgs-article-card__image--plain { background:#ead2d6; }



/* The shared Hub follows the Tests context without changing approved India colors. */
.tgs-exam-hub[data-tgs-context="tests"] .tgs-exam-hub__placeholder { background:linear-gradient(120deg,#eee7f7,#d9c7ed); }
.tgs-exam-hub[data-tgs-context="tests"] .tgs-exam-hub__toc a[aria-current] { background:color-mix(in srgb,var(--tgs-accent) 8%,white); }
body .wp-site-blocks .tgs-exam-hub[data-tgs-context="tests"] .tgs-article-card__image--plain { background:#e6d9f2; }


/* Opt-in native content treatments, reusable by any exam and absent from legacy hubs. */
.tgs-exam-hub__section:has(.tgs-exam-hub__group-heading,.tgs-exam-hub__steps,.tgs-exam-hub__wide) { grid-column:1 / -1; }
.tgs-exam-hub__section .tgs-exam-hub__group-heading { border-top:2px solid #111; padding-top:.75rem; margin-top:1.75rem; }
.tgs-exam-hub__section:has(.tgs-exam-hub__group-heading) p { max-width:75ch; }
.tgs-exam-hub .tgs-exam-hub__steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; counter-reset:exam-step; list-style:none; padding:0; }
.tgs-exam-hub__steps > li { counter-increment:exam-step; border:1px solid var(--exam-rule); border-top:2px solid #111; padding:1rem; min-width:0; background:color-mix(in srgb,var(--tgs-accent) 3%,white); }
.tgs-exam-hub__steps > li::before { content:'Step ' counter(exam-step) ' →'; display:block; font-size:12px; font-weight:800; color:var(--tgs-accent); margin-bottom:.5rem; }
.tgs-exam-hub__steps > li:last-child::before { content:'Step ' counter(exam-step); }
.tgs-exam-hub__steps strong { display:block; }
@media(max-width:1023px) { .tgs-exam-hub .tgs-exam-hub__steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .tgs-exam-hub .tgs-exam-hub__steps { grid-template-columns:minmax(0,1fr); } }
