/* Homepage-only, opt-in editorial components. Shared header/footer and child cards retain their styles. */
.tgs-context-home .tgs-home-v2-section {
 margin-block: 0;
 padding-block: clamp(2rem, 3.5vw, 3.25rem);
 border-bottom: 2px solid #000;
 color: #000;
 background: #fff;
}
.tgs-context-home .tgs-home-v2-section > * { max-width: none; }
.tgs-context-home .tgs-home-v2-section h2 {
 margin-block: .65rem .75rem;
 font-size: clamp(2rem, 3.4vw, 3rem);
 line-height: 1.04;
 letter-spacing: -.04em;
}
.tgs-context-home .tgs-home-v2-eyebrow {
 display: table;
 width: auto;
 margin-block: 0 .65rem;
 margin-inline: 0 !important;
 padding: .25rem .45rem;
 border: 1px solid #000;
 background: #FFD400;
 color: #000;
 font-size: .7rem;
 font-weight: 900;
 letter-spacing: .06em;
 line-height: 1.25;
}
.tgs-context-home .tgs-home-v2-intro { margin-block: 0 1.5rem; font-size: 1rem; line-height: 1.5; }
.tgs-context-home .tgs-home-v2-silo-grid {
 display: grid;
 grid-template-columns: repeat(5, minmax(0, 1fr));
 gap: 1rem;
 margin-block: 1.6rem .4rem;
}
.tgs-context-home .tgs-home-v2-silo-grid > * { width: auto; max-width: none; margin: 0; }
.tgs-context-home .tgs-home-nav-card {
 --tgs-destination-color: #FFD400;
 display: flex;
 min-width: 0;
 flex-direction: column;
}
.tgs-context-home :is(.tgs-home-nav-card--undergrad, .tgs-home-resource[data-silo="undergrad"]) { --tgs-destination-color: #00E5FF; }
.tgs-context-home :is(.tgs-home-nav-card--grad-school, .tgs-home-resource[data-silo="grad-school"]) { --tgs-destination-color: #FF8559; }
.tgs-context-home :is(.tgs-home-nav-card--tests, .tgs-home-resource[data-silo="tests"]) { --tgs-destination-color: #6A5ACD; --tgs-destination-text: #fff; }
.tgs-context-home :is(.tgs-home-nav-card--careers, .tgs-home-resource[data-silo="careers"]) { --tgs-destination-color: #00E676; }
.tgs-context-home :is(.tgs-home-nav-card--india, .tgs-home-resource[data-silo="india"]) { --tgs-destination-color: #A61B2B; --tgs-destination-text: #fff; }
.tgs-context-home .tgs-home-nav-card h3 { margin: 0 0 .6rem; font-size: clamp(1.65rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.04em; }
.tgs-context-home .tgs-home-nav-card__intro { margin: 0 0 .85rem; font-size: .9375rem; line-height: 1.4; }
.tgs-context-home .tgs-home-nav-card .wp-block-buttons { margin-top: auto; padding-top: .5rem; }
.tgs-context-home .tgs-home-nav-card .wp-block-button { width: 100%; }
.tgs-context-home .tgs-home-nav-card .wp-block-button__link {
 width: 100%;
}

.tgs-context-home .tgs-home-nav-card a:focus-visible,
.tgs-context-home .tgs-home-resource a:focus-visible,
.tgs-context-home .tgs-home-question a:focus-visible { outline: 3px solid #000; outline-offset: 4px; box-shadow: 0 0 0 7px #FFD400; }
@media (hover: hover) and (pointer: fine) {
}
.tgs-context-home .tgs-home-journey__sequence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.tgs-context-home .tgs-home-journey__step { position: relative; max-width: none; margin: 0; padding-top: 1.2rem; border-top: 2px solid #000; }
.tgs-context-home .tgs-home-journey__step:not(:last-child)::after { content: '→'; position: absolute; right: -1.6rem; top: 2.4rem; font-size: 1.3rem; font-weight: 900; }
.tgs-context-home .tgs-home-journey__number { display: grid; width: 2.2rem; height: 2.2rem; margin: -2.4rem 0 .7rem; place-items: center; border: 2px solid #000; border-radius: 50%; background: #FFD400; font-weight: 900; font-size: .875rem; }
.tgs-context-home .tgs-home-journey__step h3 { margin: 0 0 .65rem; font-family: var(--wp--preset--font-family--body); font-size: .75rem; font-weight: 900; letter-spacing: .01em; line-height: 1.3; }
.tgs-context-home .tgs-home-journey__step ul { margin: 0; padding: 0; list-style: none; font-size: .9375rem; line-height: 1.4; }
.tgs-context-home .tgs-home-questions__rows { margin-top: 1.5rem; }
.tgs-context-home .tgs-home-question { display: grid; grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 1.5rem; max-width: none; margin: 0; padding-block: 1rem; border-top: 1px solid #000; }
.tgs-context-home .tgs-home-question__prompt { margin: 0; max-width: none; }
.tgs-context-home .tgs-home-question h3 { font-size: 1.4rem; margin: 0 0 .25rem; line-height: 1.2; }
.tgs-context-home .tgs-home-question__prompt p { margin: 0; font-size: .8125rem; line-height: 1.4; }
.tgs-context-home .tgs-home-question__links { display: flex; align-content: center; align-items: center; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; max-width: none; list-style: none; }
.tgs-context-home .tgs-home-question__links a { display: inline-block; padding-block: .4rem; color: #000; font-size: .8125rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tgs-context-home .tgs-home-question__links a:hover { background: #FFD400; }
.tgs-context-home .tgs-home-why { max-width: none !important; width:auto; margin-inline:calc(-1 * var(--wp--style--root--padding-left)) calc(-1 * var(--wp--style--root--padding-right))!important; padding-inline:var(--wp--preset--spacing--medium); background: #000; color: #fff; }
.tgs-context-home .tgs-home-why__inner { display:grid; grid-template-columns:1fr 1fr; gap:.25rem 3rem; width:100%; max-width:var(--wp--style--global--wide-size); margin-inline:auto; }
.tgs-context-home .tgs-home-why .tgs-home-v2-eyebrow { grid-column: 1 / -1; }
.tgs-context-home .tgs-home-why h2 { margin-block: .4rem 0; }
.tgs-context-home .tgs-home-why__copy { margin: .4rem 0 0; align-self: center; font-size: 1rem; line-height: 1.5; }
.tgs-context-home .tgs-home-newsletter { background: #fff; padding-block: 2rem; }
.tgs-context-home .tgs-home-newsletter h2 { font-size: clamp(1.8rem, 2.7vw, 2.6rem) !important; margin-block: .5rem; }
.tgs-context-home .tgs-home-newsletter p:not(.tgs-home-v2-eyebrow) { font-size: 1rem; }
.tgs-context-home .tgs-newsletter-form { flex-wrap: wrap; }
.tgs-context-home .tgs-newsletter-form input { min-width: 0; flex: 1 1 11rem; }
.tgs-context-home .tgs-newsletter-form button { background: #FFD400; color: #000; flex: 1 1 auto; font-size: .6875rem; padding: .8rem; }
.tgs-context-home .tgs-home-resources__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.tgs-context-home .tgs-home-resource { --tgs-destination-color: #FFD400; min-width: 0; }
.tgs-context-home .tgs-home-resource .tgs-card { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: visible; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__media { display: block; margin: 0; background: #fff; border-bottom: 2px solid #000; }
.tgs-context-home .tgs-home-resource img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__body { display: flex; flex: 1; flex-direction: column; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__label { align-self: flex-start; }
.tgs-context-home .tgs-home-resource h3 { margin: 0 0 .6rem; font-size: 1.4rem; line-height: 1.15; overflow-wrap: anywhere; }
.tgs-context-home .tgs-home-resource h3 a { color: inherit; text-decoration: none; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__excerpt { margin: 0 0 1rem; font-size: .875rem; line-height: 1.45; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__cta { margin-top: auto; }

@media (max-width: 74.99rem) {
 .tgs-context-home .tgs-home-v2-silo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .tgs-context-home .tgs-home-resources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 55.99rem) {
 .tgs-context-home .tgs-home-v2-silo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .tgs-context-home .tgs-home-journey__sequence { gap: 1.25rem; }
 .tgs-context-home .tgs-home-journey__step:not(:last-child)::after { right: -1.1rem; font-size: 1rem; }
 .tgs-context-home .tgs-home-journey__step ul { font-size: .8125rem; }
}
@media (max-width: 47.99rem) {
 .tgs-context-home .tgs-home-v2-silo-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
 .tgs-context-home .tgs-home-v2-silo-grid > .tgs-home-nav-card { box-sizing:border-box; width:100%; max-width:none; min-height:0; margin-inline:0!important; }
 .tgs-context-home .tgs-home-nav-card h3 { font-size: 1.8rem; }
 .tgs-context-home .tgs-home-nav-card .wp-block-button { width: auto; }

 .tgs-context-home .tgs-home-journey__sequence { grid-template-columns: 1fr; gap: 0; margin-top: 1.5rem; }
 .tgs-context-home .tgs-home-journey__step { border-top: 0; border-left: 2px solid #000; margin-left: 1.1rem; padding: 0 0 1.35rem 2rem; }
 .tgs-context-home .tgs-home-journey__step:last-child { padding-bottom: 0; border-color: transparent; }
 .tgs-context-home .tgs-home-journey__number { position: absolute; left: -1.2rem; top: 0; margin: 0; }
 .tgs-context-home .tgs-home-journey__step:not(:last-child)::after { content: none; }
 .tgs-context-home .tgs-home-journey__step ul { display: flex; flex-wrap: wrap; gap: .15rem .7rem; font-size: .9375rem; }
 .tgs-context-home .tgs-home-question { grid-template-columns: 1fr; gap: .5rem; }
 .tgs-context-home .tgs-home-question__links { gap: .2rem 1rem; }
 .tgs-context-home .tgs-home-why__inner { grid-template-columns:1fr; gap:1rem; }
 .tgs-context-home .tgs-newsletter-form :is(input,button) { box-sizing:border-box; flex:0 0 auto; width:100%; height:50px; min-height:50px; padding:.75rem 1rem; }
 .tgs-context-home .tgs-home-v2-section h2 { font-size: 2rem; }
 .tgs-context-home .tgs-home-newsletter .wp-block-columns { gap: 1.25rem; }
 .tgs-context-home .tgs-home-resources__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {  }

/* Explicit contrast for legacy element-level colors in the shared theme. */
.tgs-context-home .tgs-home-nav-card :is(h3, p, ul),
.tgs-context-home .tgs-home-resource h3 { color: inherit; }
.tgs-context-home .tgs-home-why h2 { color: #fff; }
.tgs-context-home .tgs-home-newsletter,
.tgs-context-home .tgs-home-newsletter :is(h2, p) { color: #000; }
.tgs-context-home .tgs-home-newsletter h2 { max-width: none; }
.tgs-context-home .tgs-newsletter-form { gap: .5rem; opacity: 1; }
.tgs-context-home .tgs-newsletter-form :is(input, button) { border: 2px solid #000; }
.tgs-context-home .tgs-newsletter-form input { background: #fff; color: #000; }
.tgs-context-home .tgs-newsletter-form input::placeholder { color: #000; opacity: 1; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__cta {
 align-self: flex-start;
}
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__excerpt { color: inherit; }
/* Resource wrappers opt out of the shared single-result feature-panel sizing. */
.tgs-context-home .tgs-home-resource > .tgs-card:is(:only-child, :hover, :focus-within) { display: flex; min-height: 0; }
.tgs-context-home .tgs-home-resource .tgs-card h3 { font-size: 1.5rem !important; line-height: 1.15; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__media { min-height: 0; border-right: 0; border-bottom: 2px solid #000; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__image { position: static; inset: auto; height: auto; aspect-ratio: 16 / 9; }
.tgs-context-home .tgs-home-resource .tgs-program-directory-card__body { justify-content: flex-start; }
/* Native constrained groups center narrow children unless this opt-in layout resets their inline margins. */
.tgs-context-home .tgs-home-nav-card > *,
.tgs-context-home .tgs-home-journey__step > *,
.tgs-context-home .tgs-home-question > *,
.tgs-context-home .tgs-home-why__inner > * { margin-inline: 0 !important; }
.tgs-context-home .tgs-home-nav-card .wp-block-buttons { width: 100%; }
.tgs-context-home .tgs-home-journey__sequence > *,
.tgs-context-home .tgs-home-questions__rows > * { width: 100%; max-width: none; margin-inline: 0 !important; }
.tgs-context-home .tgs-home-why .tgs-home-v2-eyebrow { justify-self: start; width: auto; }
.tgs-context-home .tgs-home-nav-card:is(:focus-within, :active) :is(h3, p, ul) { color: var(--tgs-destination-text, #000); }
.tgs-context-home .tgs-home-resource:focus-within :is(h3, .tgs-program-directory-card__excerpt) { color: var(--tgs-destination-text, #000); }
@media (hover: hover) and (pointer: fine) {
 .tgs-context-home .tgs-home-nav-card:hover :is(h3, p, ul) { color: var(--tgs-destination-text, #000); }
 .tgs-context-home .tgs-home-resource:hover :is(h3, .tgs-program-directory-card__excerpt) { color: var(--tgs-destination-text, #000); }
}

/* Manual resource density follows valid public selections, never empty slots. */
.tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-home-resources__grid { grid-template-columns: minmax(0, 1fr); max-width: none; }
.tgs-context-home .tgs-home-resources[data-resource-count="2"] .tgs-home-resources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tgs-context-home .tgs-home-resources[data-resource-count="3"] .tgs-home-resources__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-card h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem) !important; }

.tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-program-directory-card__excerpt { font-size: 1rem; }
@media (min-width: 48rem) {
 .tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-home-resource > .tgs-card:has(.tgs-program-directory-card__media) { display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); }
 .tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-program-directory-card__media { position: relative; align-self: stretch; aspect-ratio: auto; border-right: 2px solid #000; border-bottom: 0; overflow: hidden; }
 .tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-program-directory-card__image { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
 .tgs-context-home .tgs-home-resources[data-resource-count="3"] .tgs-home-resources__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
 .tgs-context-home .tgs-home-resources[data-resource-count] .tgs-home-resources__grid { grid-template-columns: minmax(0, 1fr); }
 .tgs-context-home .tgs-home-resources[data-resource-count="1"] .tgs-card h3 { font-size: 1.8rem !important; }
}
