/* Shared editorial discovery. No directory controls or changes to the global shell. */
.tgs-editorial-hub { --tgs-guide-rule:#c5c2bb; --tgs-guide-ink:#111; color:#111; padding:2rem 0 3rem; font:16px/1.55 var(--wp--preset--font-family--body); }
.tgs-editorial-hub * { box-sizing:border-box; }
.tgs-editorial-hub :is(a,summary):focus-visible { outline:3px solid var(--tgs-accent); outline-offset:4px; }
.tgs-editorial-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; }
.tgs-editorial-hub__hero { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:4rem; align-items:center; padding:1rem 4rem 3rem; }
.tgs-editorial-hub .tgs-editorial-hub__eyebrow { color:var(--tgs-accent); margin:0 0 1.3rem; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.tgs-editorial-hub h1 { font:900 clamp(2.4rem,4.1vw,4.2rem)/1.05 var(--wp--preset--font-family--display); letter-spacing:-.04em; margin:0 0 1.2rem; text-wrap:balance; }
.tgs-editorial-hub__hero p { max-width:58ch; margin:0; }
.tgs-editorial-hub .tgs-editorial-hub__updated { font-size:12px; margin-top:1.2rem; }
.tgs-editorial-hub__placeholder,.tgs-editorial-hub__media { margin:0; width:100%; aspect-ratio:1.55; border:2px solid #111; box-shadow:7px 7px 0 var(--tgs-accent); }
.tgs-editorial-hub__placeholder { background:linear-gradient(125deg,color-mix(in srgb,var(--tgs-accent) 18%,#fff),color-mix(in srgb,var(--tgs-accent) 35%,#fff)); }
.tgs-editorial-hub__media img { display:block; width:100%; height:100%; object-fit:cover; }
.tgs-editorial-hub__section { border-top:2px solid #111; padding-top:1.5rem; margin-top:2.25rem; scroll-margin-top:2rem; }
.tgs-editorial-hub__section > h2 { font:900 clamp(1.9rem,2.8vw,2.6rem)/1.15 var(--wp--preset--font-family--display); letter-spacing:-.03em; margin:0 0 1.2rem; }
.tgs-editorial-hub__start-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-items:start; }
.tgs-editorial-hub__start { min-width:0; border:1px solid #c5c2bb; border-top:2px solid var(--tgs-accent); background:color-mix(in srgb,var(--tgs-accent) 4%,transparent); }
.tgs-editorial-hub__number { color:var(--tgs-accent); font-size:12px; font-weight:800; padding-top:.4rem; }
.tgs-editorial-hub__start strong { display:block; font:900 1.4rem/1.2 var(--wp--preset--font-family--display); }
.tgs-editorial-hub__cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; align-items:start; }
.tgs-editorial-hub__cards:has(> :only-child) { grid-template-columns:minmax(0,1fr); max-width:800px; }
.tgs-editorial-hub__cards:has(> :nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); }
/* Existing entity-card markup, styled only inside this surface. No directory stylesheet is loaded. */
.tgs-editorial-hub .tgs-entity-card { display:flex; flex-direction:column; gap:.8rem; min-width:0; }

.tgs-editorial-hub .tgs-entity-card h3 {   margin:0; overflow-wrap:anywhere; }
.tgs-editorial-hub .tgs-entity-card__excerpt { font-size:14px; margin:0; }

.tgs-editorial-hub .tgs-entity-card dl { margin:0; }
.tgs-editorial-hub [data-hub-section="next-step"] { padding:1.5rem 2rem; border:1px solid #c5c2bb; background:color-mix(in srgb,var(--tgs-accent) 5%,transparent); }
.tgs-editorial-hub [data-hub-section="next-step"] h2 { font-size:1.65rem; margin-bottom:.65rem; }
.tgs-editorial-hub__callout { display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.tgs-editorial-hub__callout p { margin:0; }
.tgs-editorial-hub__callout a {   flex-shrink:0; }
@media(max-width:1100px) { .tgs-editorial-hub__hero { padding-inline:1rem; gap:2rem; } }
@media(max-width:900px) { .tgs-editorial-hub__cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .tgs-editorial-hub { padding-top:.5rem; }
 .tgs-editorial-hub__hero { grid-template-columns:minmax(0,1fr); padding:1rem 0 1rem; gap:1.5rem; }
 .tgs-editorial-hub h1 { font-size:2.55rem; }
 .tgs-editorial-hub__placeholder,.tgs-editorial-hub__media { max-width:calc(100% - 7px); aspect-ratio:1.7; }
 .tgs-editorial-hub__start-grid,.tgs-editorial-hub__cards,.tgs-editorial-hub__cards:has(> :nth-child(2):last-child) { grid-template-columns:minmax(0,1fr); }
 .tgs-editorial-hub__start strong { font-size:1.3rem; }
 .tgs-editorial-hub__callout { display:block; }
 .tgs-editorial-hub [data-hub-section="next-step"] { padding:1.25rem; }
}

.tgs-editorial-hub a.tgs-editorial-hub__start { display:flex; gap:1rem; padding:1.4rem; text-decoration:none; min-height:100px; }
.tgs-editorial-hub__start strong + span { display:block; margin-top:.45rem; font-size:14px; }
.tgs-editorial-hub__start:hover strong { text-decoration:underline; }
/* Opt-in discovery embedded beneath an authored hero and orientation. */
.tgs-editorial-hub--content { padding:0; margin-block:clamp(3rem,5vw,4rem); }
.tgs-editorial-hub--content .tgs-editorial-hub__section > h2 { font-size:clamp(2.5rem,4vw,3.5rem); }
.tgs-editorial-hub--editorial .tgs-editorial-hub__cards { gap:clamp(1.5rem,3vw,2.5rem); }
.tgs-editorial-hub--editorial .tgs-editorial-hub__cards:has(> :only-child) { max-width:none; }
.tgs-editorial-hub--editorial .tgs-entity-card--editorial { min-height:0; align-self:start; }
.tgs-editorial-hub--editorial .tgs-program-directory-card__cta {  margin-top:1rem; }
.tgs-editorial-hub--editorial .tgs-program-directory-card h3 { overflow-wrap:anywhere; }

/* An illustrated story uses two columns only when its own card is wide enough. */
body .wp-site-blocks .tgs-editorial-hub__cards > .tgs-article-card:has(.tgs-article-card__media img) {
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));
 align-items:center;
 min-width:0;
 min-height:0;
}
body .wp-site-blocks .tgs-editorial-hub__cards > .tgs-article-card .tgs-article-card__media:has(img) {
 width:100%;
 height:auto;
 min-height:0;
 aspect-ratio:3/2;
 align-self:center;
}
.tgs-editorial-hub__cards > .tgs-article-card .tgs-article-card__media:not(:has(img)) { display:none; }
body .wp-site-blocks .tgs-editorial-hub__cards :is(.tgs-article-card__title,.tgs-program-directory-card h3) {
 overflow-wrap:break-word;
 word-break:normal;
}
