/*
 * W3Colleges: front page, Online IDE and Contact page.
 * Loaded only on those pages (see inc/w3colleges-front.php).
 * Soft and light: pastel tiles with dark text, faint shadows, calm green.
 */

/* ------------------------------------------------------------------
 * Tile tints (pastel backgrounds, dark text)
 * ---------------------------------------------------------------- */
.w3c-tone--forest { background: #e8f5ec; }
.w3c-tone--navy { background: #e8f0fe; }
.w3c-tone--plum { background: #f1e8fb; }
.w3c-tone--rust { background: #fff0e6; }
.w3c-tone--teal { background: #e1f5f2; }
.w3c-tone--slate { background: #eeeef2; }
.w3c-tone--ochre { background: #fdf6e3; }
.w3c-tone--wine { background: #fdecec; }

/* ------------------------------------------------------------------
 * Front page
 * ---------------------------------------------------------------- */
.w3c-gh {
	background: #fff;
	color: var(--w3c-text);
	font-family: var(--w3c-font-ui);
}

.w3c-gh-wrap {
	width: min(100% - 40px, 1240px);
	margin: 0 auto;
}

.w3c-gh-section {
	padding: 44px 0;
}

.w3c-gh-section--soft {
	background: var(--w3c-surface-soft);
}

.w3c-gh-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.w3c-gh-head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--w3c-ink);
}

.w3c-gh-head p {
	margin: 6px 0 0;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 15.5px;
	line-height: 1.5;
}

.w3c-gh-more {
	flex: 0 0 auto;
	color: var(--w3c-brand);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.w3c-gh-more:hover {
	color: var(--w3c-brand-dark);
	text-decoration: underline;
}

/* Hero */
.w3c-gh-hero {
	padding: 56px 0 44px;
	text-align: center;
	background: #fff;
}

.w3c-gh-hero__inner {
	max-width: 820px;
}

.w3c-gh-hero__hi {
	margin: 0 0 8px;
	color: var(--w3c-brand);
	font-size: 15px;
	font-weight: 600;
}

.w3c-gh-hero h1 {
	margin: 0 0 24px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--w3c-ink);
}

.w3c-gh-hero h1 em {
	color: var(--w3c-brand);
	font-style: normal;
}

.w3c-gh-search {
	display: flex;
	align-items: center;
	max-width: 700px;
	margin: 0 auto;
	padding: 5px 5px 5px 20px;
	border: 1px solid var(--w3c-border);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

.w3c-gh-search:focus-within {
	border-color: var(--w3c-brand);
	box-shadow: 0 0 0 3px var(--w3c-brand-ring);
}

.w3c-gh-search svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--w3c-muted);
}

.w3c-gh-search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--w3c-ink);
	font: 400 16px var(--w3c-font-body);
	outline: none;
	box-shadow: none;
}

.w3c-gh-search input::placeholder {
	color: var(--w3c-muted);
}

.w3c-gh-search button {
	height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--w3c-brand);
	color: #fff;
	font: 600 15px var(--w3c-font-ui);
	cursor: pointer;
}

.w3c-gh-search button:hover {
	background: var(--w3c-brand-dark);
}

.w3c-gh-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.w3c-gh-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--w3c-surface-soft);
	color: var(--w3c-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}

.w3c-gh-chips a:hover {
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand);
}

.w3c-gh-chips a.is-accent {
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
	font-weight: 600;
}

.w3c-gh-hero__meta {
	margin: 18px 0 0;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 14px;
}

.w3c-gh-hero__meta b {
	color: var(--w3c-ink);
	font-weight: 700;
}

/* Courses row */
.w3c-gh-scroller {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(250px, 1fr);
	gap: 16px;
	padding: 4px 4px 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.w3c-gh-course {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: #fff;
	color: var(--w3c-text);
	text-decoration: none;
	box-shadow: var(--w3c-card-shadow);
	scroll-snap-align: start;
	transition: box-shadow 180ms ease, transform 180ms ease;
}

.w3c-gh-course:hover {
	box-shadow: var(--w3c-card-shadow-hover);
	transform: translateY(-2px);
}

.w3c-gh-course__band {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	color: var(--w3c-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.w3c-gh-course__band small {
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	color: var(--w3c-text);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
}

.w3c-gh-course__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
}

.w3c-gh-course__body strong {
	color: var(--w3c-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.w3c-gh-course__body > span {
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 14px;
	line-height: 1.5;
}

.w3c-gh-course__body .w3c-gh-course__cta {
	margin-top: auto;
	padding-top: 10px;
	color: var(--w3c-brand);
	font-family: var(--w3c-font-ui);
	font-size: 15px;
	font-weight: 600;
}

/* Course interest form (existing markup) */
.w3c-gh .w3c-notify {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 32px;
	align-items: center;
	margin: 20px 0 0;
	padding: 20px 24px;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: var(--w3c-surface-soft);
	box-shadow: none;
}

.w3c-gh .w3c-notify__copy p,
.w3c-gh .w3c-notify__copy h3 {
	margin: 0;
	text-align: left;
}

.w3c-gh .w3c-notify__eyebrow {
	margin-bottom: 2px;
	color: var(--w3c-brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.w3c-gh .w3c-notify__copy h3 {
	margin-bottom: 2px;
	color: var(--w3c-ink);
	font-size: 19px;
	font-weight: 700;
}

.w3c-gh .w3c-notify__copy p:last-child {
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 14.5px;
}

.w3c-gh .w3c-notify__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.w3c-gh .w3c-notify__form input[type="email"] {
	flex: 1 1 240px;
	box-sizing: border-box;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid var(--w3c-border-strong);
	border-radius: 6px;
	background: #fff;
	color: var(--w3c-ink);
	font: 400 15px var(--w3c-font-body);
}

.w3c-gh .w3c-notify__form button {
	min-height: 42px;
	padding: 0 18px;
	border: 0;
	border-radius: 6px;
	background: var(--w3c-brand);
	color: #fff;
	font: 600 15px var(--w3c-font-ui);
	cursor: pointer;
}

.w3c-gh .w3c-notify__status {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}

.w3c-gh .w3c-notify__hp {
	position: absolute;
	left: -9999px;
}

/* Explore tiles */
.w3c-gh-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.w3c-tile {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--w3c-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--w3c-card-shadow);
}

.w3c-tile__head {
	display: block;
	padding: 16px 18px;
	color: var(--w3c-ink);
	text-decoration: none;
}

.w3c-tile__head strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.w3c-tile__head small {
	display: block;
	margin-top: 4px;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 13px;
}

.w3c-tile__head:hover strong {
	color: var(--w3c-brand);
}

.w3c-tile__links {
	margin: 0;
	padding: 8px 6px;
	list-style: none;
}

.w3c-tile__links li {
	margin: 0;
}

.w3c-tile__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	color: var(--w3c-text);
	font-family: var(--w3c-font-body);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.w3c-tile__links a::after {
	content: "›";
	color: var(--w3c-muted);
	font-size: 18px;
	line-height: 1;
}

.w3c-tile__links a:hover {
	background: var(--w3c-surface-soft);
	color: var(--w3c-brand);
}

/* Practice */
.w3c-gh-practice {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 20px;
	align-items: start;
}

.w3c-gh-potd {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: #fff;
	color: var(--w3c-text);
	text-decoration: none;
	box-shadow: var(--w3c-card-shadow);
}

.w3c-gh-potd small {
	color: var(--w3c-brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.w3c-gh-potd strong {
	color: var(--w3c-ink);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
}

.w3c-gh-potd .w3c-level {
	align-self: flex-start;
}

.w3c-gh-potd em {
	margin-top: 6px;
	color: var(--w3c-brand);
	font-size: 15px;
	font-style: normal;
	font-weight: 600;
}

.w3c-gh-sets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
}

.w3c-gh-set {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: #fff;
	color: var(--w3c-ink);
	text-decoration: none;
	box-shadow: var(--w3c-card-shadow);
	transition: box-shadow 150ms ease;
}

.w3c-gh-set:hover {
	box-shadow: var(--w3c-card-shadow-hover);
}

.w3c-gh-set i {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
	font: 700 13px var(--w3c-font-ui);
	font-style: normal;
}

.w3c-gh-set strong {
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.3;
}

.w3c-gh-set small {
	display: block;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 13px;
}

.w3c-gh-set--ide i {
	background: #e8f0fe;
	color: #1a56db;
	font-family: var(--w3c-font-mono);
}

/* Latest tutorials */
.w3c-gh-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}

.w3c-gh-item {
	display: flex;
	gap: 14px;
	padding: 15px 0;
	border-bottom: 1px solid var(--w3c-line);
	color: var(--w3c-text);
	text-decoration: none;
}

.w3c-gh-item__n {
	flex: 0 0 auto;
	width: 28px;
	padding-top: 3px;
	color: var(--w3c-muted);
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.w3c-gh-item small {
	display: block;
	margin-bottom: 3px;
	color: var(--w3c-brand);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.w3c-gh-item strong {
	display: block;
	color: var(--w3c-ink);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.w3c-gh-item:hover strong {
	color: var(--w3c-brand);
}

.w3c-gh-item > span > span {
	display: block;
	margin-top: 4px;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 13.5px;
}

.w3c-gh .w3c-pagination {
	margin-top: 24px;
}

/* Services */
.w3c-gh-services {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.w3c-gh-service {
	display: flex;
	flex-direction: column;
	padding: 18px 20px;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: #fff;
	color: var(--w3c-text);
	text-decoration: none;
	box-shadow: var(--w3c-card-shadow);
	transition: box-shadow 150ms ease;
}

.w3c-gh-service:hover {
	box-shadow: var(--w3c-card-shadow-hover);
}

.w3c-gh-service strong {
	display: block;
	margin-bottom: 6px;
	color: var(--w3c-ink);
	font-size: 17px;
	font-weight: 700;
}

.w3c-gh-service p {
	margin: 0 0 10px;
	font-family: var(--w3c-font-body);
	font-size: 15px;
	line-height: 1.55;
}

.w3c-gh-service__tags {
	margin-top: auto;
	color: var(--w3c-muted);
	font-size: 13.5px;
	font-weight: 500;
}

/* Account strip */
.w3c-gh-join {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: 28px;
	padding: 22px 26px;
	border-radius: 10px;
	background: var(--w3c-brand-soft);
}

.w3c-gh-join strong {
	display: block;
	color: var(--w3c-ink);
	font-size: 18px;
	font-weight: 700;
}

.w3c-gh-join span {
	color: var(--w3c-text);
	font-family: var(--w3c-font-body);
	font-size: 15px;
}

.w3c-gh-join .w3c-btn {
	flex: 0 0 auto;
}

/* ------------------------------------------------------------------
 * Shared pieces for the IDE and Contact pages
 * ---------------------------------------------------------------- */
.w3c-fp {
	background: #fff;
	color: var(--w3c-text);
	font-family: var(--w3c-font-ui);
}

.w3c-fp input,
.w3c-fp select,
.w3c-fp textarea,
.w3c-ide input,
.w3c-ide textarea {
	box-sizing: border-box;
}

.w3c-fp-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--w3c-brand);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.w3c-fp-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--w3c-brand);
}

.w3c-fp-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--w3c-line);
	border-radius: 10px;
	background: #fff;
	color: var(--w3c-text);
	text-decoration: none;
	box-shadow: var(--w3c-card-shadow);
	transition: box-shadow 150ms ease;
}

a.w3c-fp-card:hover {
	box-shadow: var(--w3c-card-shadow-hover);
}

.w3c-fp-card__top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.w3c-fp-tile {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
	font: 700 14px/1 var(--w3c-font-ui);
}

.w3c-fp-tile--teal { background: #e1f5f2; color: #0f766e; }
.w3c-fp-tile--amber { background: #fdf6e3; color: #b45309; }
.w3c-fp-tile--green { background: var(--w3c-brand-soft); color: var(--w3c-brand-dark); }

.w3c-fp-card__title strong {
	display: block;
	color: var(--w3c-ink);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
}

.w3c-fp-card__title small {
	display: block;
	margin-top: 2px;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 13.5px;
}

.w3c-fp-card p {
	margin: 0;
	font-family: var(--w3c-font-body);
	font-size: 15px;
	line-height: 1.55;
}

.w3c-fp-cta {
	padding: 36px;
	border: 1px solid var(--w3c-line);
	border-radius: 12px;
	background: #fff;
	color: var(--w3c-text);
	box-shadow: var(--w3c-card-shadow);
}

.w3c-fp-cta h2 {
	margin: 0 0 6px;
	font-size: 26px;
	font-weight: 700;
	color: var(--w3c-ink);
}

.w3c-fp-cta > p {
	margin: 0 0 20px;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 15.5px;
	line-height: 1.55;
}

.w3c-fp-cta button {
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 6px;
	background: var(--w3c-brand);
	color: #fff;
	font: 600 15px var(--w3c-font-ui);
	cursor: pointer;
}

.w3c-fp-cta button:hover {
	background: var(--w3c-brand-dark);
}

.w3c-fp-cta small {
	display: block;
	margin-top: 12px;
	color: var(--w3c-muted);
	font-family: var(--w3c-font-body);
	font-size: 13px;
}

.w3c-fp-dots {
	display: inline-flex;
	gap: 6px;
}

.w3c-fp-dots i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #ff5f57;
}

.w3c-fp-dots i:nth-child(2) { background: #febc2e; }
.w3c-fp-dots i:nth-child(3) { background: #28c840; }

/* ------------------------------------------------------------------
 * Online IDE
 * ---------------------------------------------------------------- */
.w3c-ide {
	display: flex;
	flex-direction: column;
	height: calc(100vh - var(--w3c-header-height));
	min-height: 560px;
	background: var(--w3c-surface-soft);
	font-family: var(--w3c-font-ui);
}

body.admin-bar .w3c-ide {
	height: calc(100vh - var(--w3c-header-height) - 32px);
}

.w3c-ide__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 16px;
	border-bottom: 1px solid var(--w3c-line);
	background: #fff;
}

.w3c-ide__title {
	margin: 0;
	padding-right: 12px;
	border-right: 1px solid var(--w3c-line);
	color: var(--w3c-ink);
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
}

.w3c-ide__tabs {
	display: flex;
	gap: 2px;
	overflow-x: auto;
}

.w3c-ide__tabs button {
	padding: 8px 14px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--w3c-muted);
	font: 600 15px var(--w3c-font-ui);
	white-space: nowrap;
	cursor: pointer;
}

.w3c-ide__tabs button:hover {
	color: var(--w3c-ink);
}

.w3c-ide__tabs button[aria-selected="true"] {
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
}

.w3c-ide__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.w3c-ide__tool {
	padding: 8px 12px;
	border: 1px solid var(--w3c-border);
	border-radius: 6px;
	background: #fff;
	color: var(--w3c-text);
	font: 600 14px var(--w3c-font-ui);
	cursor: pointer;
}

.w3c-ide__tool:hover {
	border-color: var(--w3c-border-strong);
}

.w3c-ide__tool.is-active {
	border-color: var(--w3c-brand);
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
}

.w3c-ide__run {
	min-height: 38px;
	padding: 0 18px;
	font-size: 15px;
}

.w3c-ide__run.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.w3c-ide__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	min-height: 0;
}

.w3c-ide__pane {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #fff;
}

.w3c-ide__pane--editor {
	border-right: 1px solid var(--w3c-line);
}

.w3c-ide__pane-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px;
	border-bottom: 1px solid var(--w3c-line);
	background: var(--w3c-surface-soft);
	color: var(--w3c-muted);
	font: 500 12.5px var(--w3c-font-mono);
}

.w3c-ide__pane-head button {
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--w3c-muted);
	font: 600 13px var(--w3c-font-ui);
	cursor: pointer;
}

.w3c-ide__editor {
	flex: 1 1 auto;
	min-height: 0;
}

.w3c-ide__editor .w3c-ed {
	height: 100%;
}

.w3c-ide__fallback {
	width: 100%;
	height: 100%;
	min-height: 320px;
	padding: 14px;
	border: 0;
	font: 400 14px/1.6 var(--w3c-font-mono);
	resize: none;
}

.w3c-ide__preview {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
	background: #fff;
}

.w3c-ide__console {
	flex: 1 1 auto;
	margin: 0;
	padding: 16px;
	overflow: auto;
	color: var(--w3c-ink);
	font: 400 13.5px/1.6 var(--w3c-font-mono);
	white-space: pre-wrap;
	word-break: break-word;
}

.w3c-ide__console.is-hint {
	color: var(--w3c-muted);
}

.w3c-ide__console.is-error {
	color: #b91c1c;
}

.w3c-ide__stdin {
	padding: 10px 14px 14px;
	border-top: 1px solid var(--w3c-line);
}

.w3c-ide__stdin label {
	display: block;
	margin-bottom: 6px;
	color: var(--w3c-muted);
	font: 600 13px var(--w3c-font-ui);
}

.w3c-ide__stdin textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--w3c-border);
	border-radius: 6px;
	font: 400 13px/1.5 var(--w3c-font-mono);
	resize: vertical;
}

/* ------------------------------------------------------------------
 * Contact page
 * ---------------------------------------------------------------- */
.w3c-contact__intro {
	padding: 48px 0 20px;
	text-align: center;
}

.w3c-contact__intro h1 {
	margin: 12px 0 12px;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--w3c-ink);
}

.w3c-contact__content {
	max-width: 660px;
	margin: 0 auto;
	color: var(--w3c-text);
	font-family: var(--w3c-font-body);
	font-size: 17px;
	line-height: 1.6;
}

.w3c-contact__content p {
	margin: 0 0 10px;
}

.w3c-contact__content a {
	color: var(--w3c-brand);
}

.w3c-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: 24px;
	align-items: start;
	padding: 20px 0 64px;
}

.w3c-contact__cards {
	display: grid;
	gap: 12px;
}

.w3c-contact__cards .w3c-fp-card {
	gap: 8px;
}

.w3c-fp-cta .w3c-cform {
	display: block;
	max-width: none;
}

.w3c-cform__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.w3c-cform__field {
	margin-bottom: 14px;
}

.w3c-cform label {
	display: block;
	margin-bottom: 6px;
	color: var(--w3c-ink);
	font-size: 14.5px;
	font-weight: 600;
}

.w3c-fp-cta .w3c-cform input,
.w3c-fp-cta .w3c-cform select,
.w3c-fp-cta .w3c-cform textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--w3c-border-strong);
	border-radius: 6px;
	background: #fff;
	color: var(--w3c-ink);
	font: 400 15px/1.4 var(--w3c-font-body);
	flex: none;
}

.w3c-fp-cta .w3c-cform input:focus,
.w3c-fp-cta .w3c-cform select:focus,
.w3c-fp-cta .w3c-cform textarea:focus {
	border-color: var(--w3c-brand);
	outline: none;
	box-shadow: 0 0 0 3px var(--w3c-brand-ring);
}

.w3c-fp-cta .w3c-cform textarea {
	min-height: 150px;
	resize: vertical;
}

.w3c-cform .w3c-hp {
	position: absolute;
	left: -9999px;
}

.w3c-cform__notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 6px;
	background: var(--w3c-brand-soft);
	color: var(--w3c-brand-dark);
	font-size: 14.5px;
	font-weight: 500;
}

.w3c-cform__notice--error {
	background: #fdecec;
	color: #b91c1c;
}

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1100px) {
	.w3c-gh-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.w3c-gh-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.w3c-gh-hero {
		padding: 40px 0 32px;
	}

	.w3c-gh-section {
		padding: 34px 0;
	}

	.w3c-gh-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.w3c-gh-practice,
	.w3c-gh-list {
		grid-template-columns: 1fr;
	}

	.w3c-gh-join {
		flex-direction: column;
		align-items: flex-start;
	}

	.w3c-gh .w3c-notify {
		grid-template-columns: 1fr;
	}

	.w3c-ide {
		height: auto;
		min-height: 0;
	}

	.w3c-ide__bar {
		flex-wrap: wrap;
	}

	.w3c-ide__tools {
		width: 100%;
		margin-left: 0;
	}

	.w3c-ide__body {
		grid-template-columns: 1fr;
	}

	.w3c-ide__pane--editor {
		min-height: 380px;
		border-right: 0;
		border-bottom: 1px solid var(--w3c-line);
	}

	.w3c-ide__pane--output {
		min-height: 260px;
	}

	.w3c-contact__grid {
		grid-template-columns: 1fr;
	}

	.w3c-fp-cta {
		padding: 26px 20px;
	}

	.w3c-cform__row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.w3c-gh-tiles,
	.w3c-gh-services {
		grid-template-columns: 1fr;
	}

	.w3c-gh-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.w3c-gh-scroller {
		grid-auto-columns: 84%;
	}

	.w3c-gh-search {
		padding-left: 14px;
	}

	.w3c-gh-search button {
		padding: 0 14px;
	}

	.w3c-gh-sets {
		grid-template-columns: 1fr 1fr;
	}
}

.w3c-tile__head small,
.w3c-gh-course__body > span {
	color: #5f6469;
}
