.gk-insights {
	border:1px solid var(--wp--preset--color--border-light,#444);
	padding:clamp(1rem,3vw,2rem);
	background:var(--wp--preset--color--base,#161616);
	color:var(--wp--preset--color--text,#d4d4d4);
	margin-block:2rem
}
.gk-insights__eyebrow,
.gk-repo-card__identity {
	text-transform:uppercase;
	letter-spacing:.12em;
	font-size:.72rem;
	color:var(--wp--preset--color--brand-yellow-light,#d9b636)
}
.gk-insights h2 {
	margin:.35rem 0 1rem
}
.gk-insights__views {
	border-top:1px solid #444
}
.gk-insights__views details {
	border-bottom:1px solid #444
}
.gk-insights summary {
	cursor:pointer;
	padding:.8rem 0;
	font-weight:600
}
.gk-insights summary:focus-visible,
.gk-repo-card a:focus-visible {
	outline:2px solid var(--wp--preset--color--brand-yellow-light,#d9b636);
	outline-offset:3px
}
.gk-insights__views details>div {
	padding:0 0 1rem
}
.gk-insights dl {
	display:flex;
	flex-wrap:wrap;
	gap:1rem 3rem
}
.gk-insights dt,
.gk-insights__note {
	font-size:.8rem;
	color:var(--wp--preset--color--muted,#999)
}
.gk-insights dd {
	margin:0
}
.gk-insights--compact {
	margin:1rem 0 0;
	padding:0;
	border:0;
	border-top:1px solid #444;
	background:transparent
}
.gk-insights--compact>summary {
	font-size:.9rem
}
.gk-repo-hero {
	padding-block:clamp(2rem,5vw,5rem) 1rem
}
.gk-repo-hero .gk-title-logo {
	object-fit:contain
}
.gk-insights__source a {
	color:var(--wp--preset--color--brand-yellow-light,#d9b636);
	font-weight:600
}
@media(max-width:780px) {
.gk-repo-hero {
	gap:1rem
}
}
.gk-repo-intro {
	max-width:70ch;
	font-size:1.1rem;
	line-height:1.6
}
.gk-related-editorial {
	margin:2rem 0
}
.gk-related-editorial__rail {
	display:flex;
	gap:1rem;
	overflow-x:auto;
	scroll-snap-type:x proximity
}
.gk-related-editorial__rail article {
	flex:0 0 min(80%,22rem);
	padding:1.2rem;
	border:1px solid #444;
	scroll-snap-align:start
}
.gk-related-editorial__rail h3 {
	font-size:1.2rem;
	line-height:1.3;
	margin:0
}
.gk-related-editorial__rail p {
	font-size:.9rem
}
.gk-repo-layout {
	gap:clamp(2rem,4vw,4rem)
}
@media(min-width:1000px) {
.gk-repo-layout>.wp-block-column:first-child {
	flex:1 1 0!important;
	min-width:0
}
.gk-repo-layout>.wp-block-column:last-child {
	flex:0 0 16rem!important
}
}
@media(max-width:999px) {
.gk-repo-layout {
	flex-wrap:wrap!important
}
.gk-repo-layout>.wp-block-column {
	flex:1 1 100%!important
}
}
/* Preserve the existing repository image treatment. */
.gk-repo-hero .gk-title-logo img {
 -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, rgba(0,0,0,.8) 100%);
 mask-image: radial-gradient(ellipse at center, #000 45%, rgba(0,0,0,.8) 100%);
}
/* Repository stories reuse Geekist's article tabs with a quieter footprint. */
.gk-insights:not(.gk-insights--compact) {
  padding: 0;
  margin-block: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--wp--preset--color--background, #121212);
}
.gk-insights__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem .25rem;
}
.gk-insights__source { color: var(--wp--preset--color--brand-yellow-light, #d9b636); font-size: .85rem; }
.gk-insights .wp-block-geekist-tabs { margin: 0; border: 0; background: transparent; }
.gk-insights .gk-tabs__tab { flex: 0 0 auto; min-height: 42px; padding: .55rem 1rem; font-size: .95rem; }
.gk-insights .gk-tabs__panel { padding: 1rem; font-size: .95rem; }
.gk-insights .gk-tabs__panel dl { margin: 0 0 .8rem; gap: .75rem 2.5rem; }
.gk-insights .gk-tabs__panel p { margin: .4rem 0; }
.gk-insights .gk-tabs__panel .gk-badges { margin: 0; }
@media (max-width: 600px) {
.gk-insights__header { align-items: flex-start; flex-wrap: wrap; gap: .35rem 1rem; }
.gk-insights .gk-tabs__tab { padding-inline: .8rem; }
}

/* Full-width page sections should meet, and the hidden form pane must not
   leave a strip between the content and the footer. */
:is(.gk-list-page, .gk-lists-hub) .entry-content > .wp-block-group + .wp-block-group,
:is(.gk-list-page, .gk-lists-hub) .entry-content .gk-cal-pane {
	margin-block-start: 0;
}
:is(.gk-list-page, .gk-lists-hub) .gk-cal-pane__status:empty {
	margin: 0;
}


/* Compact topic pills use the historical theme treatment in assets/blocks.css. */
.gk-list-topics { margin-block: 1rem; }
.gk-list-topics .tag-cloud-link[aria-current="page"] {
 background: var(--wp--preset--color--section-gray-light);
 color: var(--wp--preset--color--muted);
 box-shadow: inset 0 0 0 1px var(--wp--preset--color--section-border-light);
}
.gk-collection-topics { color: var(--wp--preset--color--muted, #999); }
.gk-collection-topics__label { display: block; margin-bottom: .5rem; }
.gk-repo-card__topics.gk-list-topics,
.gk-collection-topics > .gk-list-topics { justify-content: flex-start; margin: 0; }
.gk-list-topics .tag-cloud-link:focus-visible {
 outline: 2px solid var(--wp--preset--color--brand-yellow-light, #d9b636);
 outline-offset: 3px;
}
