/**
 * GC Debate — the signed-in surfaces.
 *
 * Loaded after style.css and written against the same tokens. Three things live
 * here, all of them serving one decision: this team is using a website as a
 * formal way of talking to each other for the first time, so nothing important
 * hides behind anything.
 *
 *   1. The spelled-out navigation — signed in, there is no menu button.
 *   2. The homepage sign-in band — one large way in, in the middle of the page.
 *   3. The Team Room — the running feed and the guide under it.
 */

/* ==========================================================================
   1. THE SPELLED-OUT NAVIGATION

   Signed out, the phone header keeps the labelled Menu button and its panel.
   Signed in, the panel is gone: every place a member can go is written on the
   screen as a row of targets that wraps onto as many lines as it needs.
   ========================================================================== */

.gcdc--spelled .gcdc__inner {
	grid-template-areas:
		"brand controls"
		"nav   nav";
	grid-template-columns: auto 1fr;
	row-gap: 0.5rem;
}

/* Whatever the phone rules did to hide this, undo it. The list is the point. */
.gcdc--spelled .gcdc__nav {
	display: block !important;
	position: static !important;
	inset: auto !important;
	grid-area: nav;
	max-height: none !important;
	overflow: visible !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.gcdc--spelled .gcdc__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.4rem;
}

.gcdc--spelled .gcdc__item,
.gcdc--spelled .gcdc__item + .gcdc__item {
	border: 0 !important;
	margin: 0;
}

.gcdc--spelled .gcdc__link {
	min-height: 44px;
	padding: 0 0.7rem;
	border: 1px solid var(--gc-line-ui);
	border-radius: 2px;
	font-size: 0.75rem;
	letter-spacing: 0.07em;
	white-space: nowrap;
	box-shadow: none !important;
}

.gcdc--spelled .gcdc__link:hover {
	border-color: var(--gc-fg);
	background: var(--gc-bg-alt);
}

.gcdc--spelled .gcdc__link.is-current {
	background: var(--gc-fg);
	border-color: var(--gc-fg);
	color: var(--gc-bg);
	box-shadow: none !important;
}

.gcdc--spelled .gcdc__item--cta {
	margin-left: 0 !important;
}

.gcdc--spelled .gcdc__item--cta .gcdc__link {
	background: var(--gc-accent);
	border-color: var(--gc-accent);
	color: #fff;
}

.gcdc--spelled .gcdc__item--cta .gcdc__link:hover,
.gcdc--spelled .gcdc__item--cta .gcdc__link.is-current {
	background: var(--gc-accent-solid);
	border-color: var(--gc-accent-solid);
	color: #fff;
}

/* The way out is a real link, written out, and visibly not one of the places
   you go to read something. */
.gcdc--spelled .gcdc__item--out .gcdc__link {
	border-style: dashed;
	color: var(--gc-fg-muted);
}

.gcdc--spelled .gcdc__item--out .gcdc__link:hover {
	color: var(--gc-fg);
}

@media (min-width: 62rem) {
	.gcdc--spelled .gcdc__inner {
		grid-template-areas: "brand nav controls";
		grid-template-columns: auto 1fr auto;
		row-gap: 0;
	}

	.gcdc--spelled .gcdc__list {
		justify-content: flex-end;
	}
}

/* Every destination on screen means a taller header, and on a phone the header is
   competing with the page for a small screen. The wordmark gives up the room. */
@media (max-width: 61.999rem) {
	.gcdc--spelled { --gcdc-wordmark: clamp(5rem, 22vw, 6.5rem); }
	.gcdc--spelled.is-stuck { --gcdc-wordmark: clamp(4.25rem, 16vw, 5.25rem); }
	.gcdc--spelled .gcdc__bar { padding-block: 0.5rem; }
}

/* ==========================================================================
   2. THE SIGN-IN BAND

   The largest thing on the homepage after the headline, centred, saying exactly
   what it does. A student who has been told "it is on the website" should not
   have to look for the way in.
   ========================================================================== */

body.gcd-app .gcd > .gcd-signin {
	width: 100%;
	max-width: none;
	padding-inline: max(var(--gc-gutter), calc((100% - var(--gc-shell)) / 2));
	border-radius: 0;
}

.gcd-signin {
	background: var(--gc-bg-sunk);
	border-block: 2px solid var(--gc-fg);
	padding-block: clamp(2rem, 6vw, 3.5rem);
	margin-bottom: clamp(2.25rem, 5vw, 4rem);
	text-align: center;
}

.gcd-signin__kicker {
	display: inline-block;
	margin: 0 0 0.9rem;
	padding-top: 0.75rem;
	border-top: 2px solid var(--gc-kicker);
	font-family: var(--gc-font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gc-kicker);
}

.gcd-signin__h {
	font-family: var(--gc-font-display);
	font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 0.6rem;
}

.gcd-signin__lead {
	max-width: 46ch;
	margin: 0 auto 1.6rem;
	color: var(--gc-fg-muted);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.gcd-signin__act {
	margin: 0;
}

.gcd-signin__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	padding-inline: clamp(1.75rem, 8vw, 3.5rem);
	background: var(--gc-accent);
	border: 1px solid var(--gc-accent);
	border-bottom: 4px solid var(--gc-accent-solid);
	border-radius: 2px;
	color: #fff;
	font-family: var(--gc-font-body);
	font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-decoration: none;
}

.gcd-signin__btn:hover,
.gcd-signin__btn:focus {
	background: var(--gc-accent-solid);
	border-color: var(--gc-accent-solid);
	border-bottom-color: var(--gc-band-bg);
	color: #fff;
}

.gcd-signin__note {
	max-width: 48ch;
	margin: 1.25rem auto 0;
	font-size: 0.9375rem;
	color: var(--gc-fg-muted);
}

/* The homepage numbers its sections. The sign-in band is a door, not a section,
   so it stays out of the count and off the rule. */
body.gcd-front .gcd-signin__h::before {
	content: none;
}

/* ==========================================================================
   3. THE TEAM ROOM
   ========================================================================== */

.gcd-room__hello {
	font-family: var(--gc-font-display);
	font-weight: 700;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
}

.gcd-room .gcd-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.gcd-room > section {
	border-top: 2px solid var(--gc-fg);
	padding-top: clamp(1rem, 2vw, 1.5rem);
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

/* -- the running list ------------------------------------------------------ */

.gcd-feed {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--gc-line);
}

.gcd-feed__item {
	display: grid;
	/* A fixed first column, so every headline in the list starts at the same place
	   whatever the badge on its left happens to say. */
	grid-template-columns: 8.5rem minmax(0, 1fr);
	gap: 0.35rem 0.9rem;
	padding: 1rem 0 1.1rem;
	border-bottom: 1px solid var(--gc-line);
}

.gcd-feed__kind {
	grid-column: 1;
	align-self: start;
	justify-self: start;
	padding: 0.2rem 0.45rem;
	border: 1px solid var(--gc-line-ui);
	border-radius: 1px;
	font-family: var(--gc-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gc-fg-muted);
	white-space: nowrap;
}

.gcd-feed__item--topic .gcd-feed__kind {
	border-color: var(--gc-accent);
	color: var(--gc-accent-fg);
}

.gcd-feed__item--news .gcd-feed__kind {
	border-color: var(--gc-kicker);
	color: var(--gc-kicker);
}

.gcd-feed__body {
	grid-column: 2;
	min-width: 0;
}

.gcd-feed__title {
	font-family: var(--gc-font-display);
	font-size: 1.1875rem;
	line-height: 1.2;
	margin: 0 0 0.3rem;
}

.gcd-feed__title a {
	color: var(--gc-fg);
	text-decoration: none;
}

.gcd-feed__title a:hover {
	color: var(--gc-accent-fg);
	text-decoration: underline;
}

.gcd-feed__meta {
	margin: 0 0 0.4rem;
	font-size: 0.8125rem;
	color: var(--gc-fg-muted);
}

.gcd-feed__when {
	display: block;
	font-variant-numeric: tabular-nums;
}

.gcd-feed__excerpt {
	margin: 0;
	color: var(--gc-fg-muted);
}

@media (max-width: 30rem) {
	.gcd-feed__item {
		grid-template-columns: minmax(0, 1fr);
	}

	.gcd-feed__kind,
	.gcd-feed__body {
		grid-column: 1;
	}
}

/* -- where everything is --------------------------------------------------- */

.gcd-guide__list {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	border-top: 1px solid var(--gc-line);
}

.gcd-guide__list li {
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--gc-line);
}

.gcd-guide__list a {
	font-weight: 700;
	font-size: 1.0625rem;
	color: var(--gc-fg);
	text-decoration: none;
}

.gcd-guide__list a:hover {
	color: var(--gc-accent-fg);
	text-decoration: underline;
}

.gcd-guide__list span {
	display: block;
	margin-top: 0.2rem;
	color: var(--gc-fg-muted);
	font-size: 0.9375rem;
}

.gcd-guide__note {
	margin: 1.25rem 0 0;
	padding-left: 0.9rem;
	border-left: 3px solid var(--gc-kicker);
	font-size: 0.9375rem;
	color: var(--gc-fg-muted);
}


/* ==========================================================================
   SLEEK PASS — 1 Oct 2026

   Same identity, less hardware. Fewer boxes and rules, softer corners, flat
   buttons, a glass header, and the opening bands joined into one run. Every
   rule here only overrides; delete this section to get the previous look back.
   ========================================================================== */

:root {
	--gc-r-sm: 6px;
	--gc-r-md: 10px;
	--gc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* -- header: glass, one hairline, no tick rule ----------------------------- */

.gcdc__rule {
	height: 0;
	background: none;
	border-top: 1px solid var(--gc-line);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	header.wp-block-template-part,
	.gcdc {
		background: color-mix(in srgb, var(--gc-bg) 82%, transparent);
		-webkit-backdrop-filter: saturate(1.5) blur(14px);
		backdrop-filter: saturate(1.5) blur(14px);
	}
	.gcdc:not(.is-open) .gcdc__bar { background: transparent; }
}

.gcdc__appearance,
.gcdc__menu {
	border-color: transparent;
	border-radius: 999px;
	background: var(--gc-bg-alt);
	transition: background .18s var(--gc-ease), border-color .18s var(--gc-ease);
}
.gcdc__appearance:hover,
.gcdc__menu:hover {
	border-color: var(--gc-line-ui);
	background: var(--gc-bg-alt);
}

.gcdc--spelled .gcdc__link { border-radius: 999px; }

@media (min-width: 62rem) {
	.gcdc__item + .gcdc__item { border-left: 0; }
	.gcdc__item--cta .gcdc__link { border-radius: 999px; align-items: center; padding-block: 0; line-height: 1; }
}

/* wpautop wraps the header shortcode: a stray paragraph after it (the 19px seam
   above the hero) and <br>s inside the links (every nav label sat low). */
header.wp-block-template-part p:empty { display: none; }
header.wp-block-template-part > p,
header.wp-block-template-part .gcdc ~ p { margin: 0; }
.gcdc br { display: none; }

/* -- the opening run: header → hero → sign-in, no seams -------------------- */

body.gcd-front .entry-content { margin-block-start: 0; }

.gcd-hero {
	border-block: 0;
	margin-bottom: 0;
	background:
		radial-gradient(60rem 30rem at 0% 100%, rgb(210 16 26 / 16%), transparent 60%),
		radial-gradient(40rem 24rem at 100% 0%, rgb(224 180 87 / 7%), transparent 70%),
		var(--gc-band-bg);
}

.gcd-hero__title { letter-spacing: -0.035em; }

.gcd-hero__motto { border-top-color: rgb(255 255 255 / 10%); }

.gcd-signin {
	border-block: 0;
	background: var(--gc-bg-sunk);
}

/* -- buttons: flat, rounded, a small lift on hover ------------------------- */

.gcd-btn,
.gcd-signin__btn,
.wp-element-button {
	border-radius: var(--gc-r-sm);
	transition: background .18s var(--gc-ease), box-shadow .18s var(--gc-ease), transform .18s var(--gc-ease);
}

.gcd-btn--primary,
.gcd-signin__btn {
	border: 1px solid var(--gc-accent);
	border-bottom-width: 1px;
}

.gcd-btn--primary:hover,
.gcd-signin__btn:hover,
.gcd-signin__btn:focus {
	border-color: var(--gc-accent-solid);
	border-bottom-color: var(--gc-accent-solid);
	box-shadow: 0 10px 24px -10px rgb(210 16 26 / 55%);
	transform: translateY(-1px);
}

.gcd-signin__btn { min-height: 60px; }

/* -- sections: hairlines instead of heavy rules ---------------------------- */

body.gcd-front .gcd > .gcd-why,
body.gcd-front .gcd > .gcd-two-col > section,
.gcd-room > section {
	border-top: 1px solid var(--gc-line-strong);
}

/* -- cards and lists: soft panels, no wire frames -------------------------- */

.gcd-card {
	border: 0;
	border-radius: var(--gc-r-md);
	background: var(--gc-bg-alt);
	box-shadow: inset 0 3px 0 var(--gc-fg);
}
.gcd-card:nth-child(3n+1) { box-shadow: inset 0 3px 0 var(--gc-accent); }
.gcd-card:nth-child(3n+2) { box-shadow: inset 0 3px 0 var(--gc-fg); }
.gcd-card:nth-child(3n+3) { box-shadow: inset 0 3px 0 var(--gc-kicker); }

.gcd-ann,
.gcd-event,
.gcd-panel {
	border-radius: var(--gc-r-md);
	border-color: var(--gc-line);
}

.gcd-ann { border-left-width: 3px; }

.gcd-tag,
.gcd-feed__kind { border-radius: 999px; }

/* Long pasted links in an event or announcement wrap instead of widening the
   page — one was pushing the phone layout 6px past the screen. */
.gcd-ann,
.gcd-event,
.gcd-event *,
.gcd-ann * { overflow-wrap: anywhere; min-width: 0; }
.gcd-two-col > section { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
	.gcd-btn--primary:hover,
	.gcd-signin__btn:hover,
	.gcd-signin__btn:focus { transform: none; }
}
