:root {
	--theme-ink: #172523;
	--theme-muted: #60706d;
	--theme-line: #d8e1de;
	--theme-soft: #f3f7f5;
	--theme-white: #ffffff;
	--theme-primary: #16766e;
	--theme-primary-dark: #105851;
	--theme-green: #3f8655;
	--theme-coral: #d65d43;
	--theme-gold: #d79a2b;
	--theme-width: 1180px;
	--theme-reading: 820px;
	--theme-shadow: 0 10px 30px rgba(27, 52, 48, 0.08);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--theme-white);
	color: var(--theme-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
}

body,
button,
input,
select,
textarea {
	letter-spacing: 0;
}

a {
	color: var(--theme-primary-dark);
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--theme-coral);
}

img,
video {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

.site-shell {
	width: min(calc(100% - 40px), var(--theme-width));
	margin-right: auto;
	margin-left: auto;
}

.screen-reader-text,
.skip-link {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	z-index: 100000;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	padding: 8px 12px;
	clip: auto;
	background: #fff;
}

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(216, 225, 222, 0.85);
	background: rgba(255, 255, 255, 0.96);
}

.site-header__inner {
	display: flex;
	min-height: 72px;
	align-items: center;
	gap: 28px;
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--theme-ink);
	text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
	color: var(--theme-ink);
}

.site-brand__mark {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 6px;
	background: var(--theme-primary);
	color: #fff;
}

.site-brand__mark .dashicons {
	width: 22px;
	height: 22px;
	font-size: 22px;
}

.site-brand__text {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.15;
}

.site-brand__text span {
	display: block;
	margin-top: 3px;
	color: var(--theme-muted);
	font-size: 12px;
	font-weight: 500;
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	padding: 7px 12px;
	border-radius: 4px;
	color: var(--theme-ink);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
	background: var(--theme-soft);
	color: var(--theme-primary-dark);
}

.site-nav__account {
	margin-left: 8px;
}

.site-nav__account a {
	border: 1px solid var(--theme-line);
}

.site-nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--theme-line);
	border-radius: 5px;
	background: #fff;
	color: var(--theme-ink);
	cursor: pointer;
}

.classroom-hero {
	position: relative;
	min-height: 470px;
	overflow: hidden;
	background-color: #f7f8f6;
	background-image: url("../images/writing-classroom.webp");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
}

.classroom-hero__inner {
	position: relative;
	display: flex;
	min-height: 470px;
	align-items: center;
}

.classroom-hero__copy {
	width: 49%;
	max-width: 590px;
	padding: 42px 0 54px;
}

.classroom-hero__eyebrow,
.page-banner__eyebrow {
	margin: 0 0 9px;
	color: var(--theme-primary);
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
}

.classroom-hero h1 {
	max-width: 580px;
	margin: 0;
	color: #162522;
	font-size: 52px;
	line-height: 1.18;
}

.classroom-hero__lead {
	max-width: 510px;
	margin: 20px 0 0;
	color: #43514f;
	font-size: 19px;
	line-height: 1.75;
}

.classroom-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 11px;
	margin-top: 28px;
}

.classroom-shortcuts {
	border-top: 1px solid var(--theme-line);
	border-bottom: 1px solid var(--theme-line);
	background: #fff;
}

.classroom-shortcuts__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.classroom-shortcuts a {
	display: flex;
	min-height: 100px;
	align-items: center;
	gap: 13px;
	padding: 18px 22px;
	border-right: 1px solid var(--theme-line);
	color: var(--theme-ink);
	text-decoration: none;
}

.classroom-shortcuts a:first-child {
	border-left: 1px solid var(--theme-line);
}

.classroom-shortcuts a:hover,
.classroom-shortcuts a:focus {
	background: var(--theme-soft);
	color: var(--theme-primary-dark);
}

.classroom-shortcuts .dashicons {
	width: 28px;
	height: 28px;
	color: var(--theme-primary);
	font-size: 28px;
}

.classroom-shortcuts strong,
.classroom-shortcuts small {
	display: block;
}

.classroom-shortcuts strong {
	font-size: 15px;
}

.classroom-shortcuts small {
	margin-top: 2px;
	color: var(--theme-muted);
	font-size: 12px;
}

.classroom-dashboard-band {
	padding: 68px 0 82px;
	background: #fff;
}

.theme-plugin-missing {
	padding: 28px;
	border: 1px solid var(--theme-line);
	border-left: 4px solid var(--theme-coral);
}

.theme-plugin-missing h2,
.theme-plugin-missing p {
	margin: 0;
}

.theme-plugin-missing p {
	margin-top: 8px;
}

.page-banner {
	padding: 58px 0 52px;
	border-bottom: 1px solid var(--theme-line);
	background: var(--theme-soft);
}

.page-banner--compact {
	padding: 40px 0 36px;
}

.page-banner h1,
.assignment-single__header h1,
.theme-error h1 {
	margin: 0;
	font-size: 42px;
	line-height: 1.25;
}

.page-banner p:not(.page-banner__eyebrow) {
	max-width: 650px;
	margin: 12px 0 0;
	color: var(--theme-muted);
	font-size: 17px;
}

.content-shell {
	padding-top: 54px;
	padding-bottom: 78px;
}

.content-shell--narrow {
	max-width: var(--theme-reading);
}

.theme-assignment-list {
	border-top: 1px solid var(--theme-line);
}

.theme-assignment {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
	padding: 27px 0;
	border-bottom: 1px solid var(--theme-line);
}

.theme-assignment__number {
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border-radius: 6px;
	background: #e1f1ed;
	color: var(--theme-primary);
}

.theme-assignment__number .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.theme-assignment__heading {
	display: flex;
	align-items: center;
	gap: 12px;
}

.theme-assignment h2 {
	margin: 0;
	font-size: 21px;
	line-height: 1.35;
}

.theme-assignment h2 a {
	color: var(--theme-ink);
	text-decoration: none;
}

.theme-assignment__body > p {
	margin: 7px 0 0;
	color: var(--theme-muted);
}

.theme-assignment__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px 20px;
	margin-top: 12px;
	color: var(--theme-muted);
	font-size: 13px;
}

.theme-assignment__meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.theme-empty {
	padding: 80px 20px;
	color: var(--theme-muted);
	text-align: center;
}

.theme-empty .dashicons {
	width: 42px;
	height: 42px;
	color: var(--theme-primary);
	font-size: 42px;
}

.theme-empty h2 {
	margin: 12px 0 0;
	color: var(--theme-ink);
}

.theme-empty p {
	margin: 5px 0 0;
}

.assignment-single__header {
	padding: 42px 0 38px;
	border-bottom: 1px solid var(--theme-line);
	background: var(--theme-soft);
}

.assignment-single__header-inner {
	max-width: var(--theme-reading);
}

.assignment-single__back {
	display: inline-block;
	margin-bottom: 25px;
	color: var(--theme-muted);
	font-size: 14px;
	text-decoration: none;
}

.assignment-single__layout {
	max-width: var(--theme-reading);
	padding-top: 52px;
	padding-bottom: 88px;
}

.assignment-instructions {
	margin-bottom: 28px;
}

.assignment-instructions > h2 {
	margin: 0 0 18px;
	font-size: 27px;
}

.entry-content {
	overflow-wrap: anywhere;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content h2 {
	margin-top: 38px;
	font-size: 27px;
	line-height: 1.35;
}

.entry-content h3 {
	margin-top: 28px;
	font-size: 21px;
	line-height: 1.4;
}

.entry-content p,
.entry-content li {
	color: #344441;
}

.entry-content blockquote {
	margin: 26px 0;
	padding: 15px 20px;
	border-left: 3px solid var(--theme-gold);
	background: #fff8e8;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--theme-line);
	text-align: left;
}

.assignment-discussion {
	margin-top: 62px;
	padding-top: 42px;
	border-top: 1px solid var(--theme-line);
}

.assignment-discussion__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 25px;
}

.assignment-discussion__heading h2 {
	margin: 0;
	font-size: 28px;
}

.assignment-discussion__heading > span {
	color: var(--theme-muted);
	font-size: 13px;
}

.assignment-discussion__empty {
	padding: 20px;
	border-left: 3px solid var(--theme-primary);
	background: var(--theme-soft);
	color: var(--theme-muted);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 54px;
}

.comment-body {
	margin-bottom: 16px;
	padding: 19px;
	border: 1px solid var(--theme-line);
	border-radius: 6px;
	background: #fff;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 9px;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	margin-left: auto;
	font-size: 12px;
}

.comment-metadata a {
	color: var(--theme-muted);
	text-decoration: none;
}

.comment-content {
	margin: 13px 0 0;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	margin: 10px 0 0;
}

.comment-reply-link {
	font-size: 13px;
	font-weight: 700;
}

.comment-respond {
	margin-top: 35px;
	padding: 22px;
	border: 1px solid var(--theme-line);
	border-radius: 6px;
	background: var(--theme-soft);
}

.comment-reply-title {
	margin: 0 0 16px;
	font-size: 21px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #b9c7c4;
	border-radius: 4px;
	background: #fff;
}

.comment-form .submit {
	min-height: 42px;
	padding: 9px 18px;
	border: 0;
	border-radius: 5px;
	background: var(--theme-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.comment-form .submit:hover,
.comment-form .submit:focus {
	background: var(--theme-primary-dark);
}

.standard-entry {
	padding: 25px 0;
	border-bottom: 1px solid var(--theme-line);
}

.standard-entry h2 {
	margin: 0;
}

.standard-entry h2 a {
	color: var(--theme-ink);
	text-decoration: none;
}

.navigation.pagination {
	margin-top: 30px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.page-numbers {
	display: inline-grid;
	min-width: 38px;
	min-height: 38px;
	place-items: center;
	padding: 5px 10px;
	border: 1px solid var(--theme-line);
	border-radius: 4px;
	text-decoration: none;
}

.page-numbers.current {
	border-color: var(--theme-primary);
	background: var(--theme-primary);
	color: #fff;
}

.theme-error {
	padding-top: 100px;
	padding-bottom: 120px;
	text-align: center;
}

.theme-error p:not(.page-banner__eyebrow) {
	margin: 14px auto 24px;
	color: var(--theme-muted);
}

.site-footer {
	border-top: 1px solid var(--theme-line);
	background: #162522;
	color: #dce7e4;
}

.site-footer__inner {
	display: flex;
	min-height: 150px;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.site-footer strong {
	color: #fff;
}

.site-footer p {
	margin: 5px 0 0;
	color: #aebfbb;
	font-size: 13px;
}

.site-footer__meta {
	text-align: right;
}

@media (max-width: 900px) {
	.classroom-hero {
		min-height: 440px;
		background-position: 58% center;
	}

	.classroom-hero::before {
		position: absolute;
		inset: 0;
		background: rgba(255, 255, 255, 0.78);
		content: "";
	}

	.classroom-hero__inner {
		min-height: 440px;
	}

	.classroom-hero__copy {
		width: 72%;
	}

	.classroom-shortcuts__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.classroom-shortcuts a:nth-child(2) {
		border-right: 0;
	}

	.classroom-shortcuts a:nth-child(-n+2) {
		border-bottom: 1px solid var(--theme-line);
	}
}

@media (max-width: 720px) {
	.site-shell {
		width: min(calc(100% - 28px), var(--theme-width));
	}

	.site-header__inner {
		min-height: 64px;
	}

	.site-brand__mark {
		width: 34px;
		height: 34px;
	}

	.site-brand__text {
		font-size: 15px;
	}

	.site-nav-toggle {
		display: grid;
		place-items: center;
	}

	.site-nav {
		position: absolute;
		top: 64px;
		right: 0;
		left: 0;
		display: none;
		padding: 8px 14px 14px;
		border-bottom: 1px solid var(--theme-line);
		background: #fff;
		box-shadow: var(--theme-shadow);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		align-items: stretch;
		flex-direction: column;
		gap: 2px;
	}

	.site-nav__list a {
		display: flex;
		width: 100%;
		min-height: 44px;
	}

	.site-nav__account {
		margin: 4px 0 0;
	}

	.classroom-hero,
	.classroom-hero__inner {
		min-height: 420px;
	}

	.classroom-hero {
		background-position: 64% center;
	}

	.classroom-hero::before {
		background: rgba(255, 255, 255, 0.84);
	}

	.classroom-hero__copy {
		width: 100%;
		max-width: 520px;
		padding: 44px 0 52px;
	}

	.classroom-hero h1 {
		font-size: 36px;
	}

	.classroom-hero__lead {
		font-size: 17px;
	}

	.classroom-hero__actions .yce-button {
		flex: 1 1 150px;
	}

	.classroom-shortcuts a {
		min-height: 88px;
		padding: 15px;
	}

	.classroom-shortcuts a:nth-child(odd) {
		border-left: 0;
	}

	.classroom-dashboard-band {
		padding: 48px 0 62px;
	}

	.page-banner,
	.page-banner--compact {
		padding: 34px 0 31px;
	}

	.page-banner h1,
	.assignment-single__header h1,
	.theme-error h1 {
		font-size: 32px;
	}

	.content-shell {
		padding-top: 36px;
		padding-bottom: 58px;
	}

	.theme-assignment {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 13px;
	}

	.theme-assignment__number {
		width: 40px;
		height: 40px;
	}

	.theme-assignment > .yce-button {
		grid-column: 2;
		justify-self: start;
	}

	.theme-assignment__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.assignment-single__header {
		padding: 31px 0 29px;
	}

	.assignment-single__back {
		margin-bottom: 18px;
	}

	.assignment-single__layout {
		padding-top: 36px;
		padding-bottom: 64px;
	}

	.assignment-instructions > h2 {
		font-size: 24px;
	}

	.assignment-discussion__heading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.comment-list .children {
		margin-left: 18px;
	}

	.comment-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.comment-metadata {
		margin-left: 0;
	}

	.comment-respond {
		padding: 17px;
	}

	.site-footer__inner {
		min-height: 180px;
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		gap: 12px;
	}

	.site-footer__meta {
		text-align: left;
	}
}

@media (max-width: 430px) {
	.site-brand__text span {
		display: none;
	}

	.classroom-shortcuts__inner {
		grid-template-columns: 1fr;
	}

	.classroom-shortcuts a,
	.classroom-shortcuts a:first-child,
	.classroom-shortcuts a:nth-child(2) {
		border-right: 0;
		border-bottom: 1px solid var(--theme-line);
		border-left: 0;
	}

	.classroom-shortcuts a:last-child {
		border-bottom: 0;
	}
}
