/* Courage & Character — site chrome + page components.
   Ported from style-mockup.html; theme.json owns color/type tokens,
   this file owns the bespoke layout the mockup's custom classes need. */

/* WP core doesn't apply a global border-box reset, but BuddyPress/bbPress's
   own bundled CSS (e.g. #item-header-avatar: width:100% + padding:0 1em)
   assumes one — without it, that padding adds on top of 100% and overflows
   the viewport on narrow screens. This is the standard, safe-everywhere fix. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	background: var(--wp--preset--color--parchment);
}

/* Sticky footer: footer sits at the bottom of the viewport when content
   is short, and flows below it normally once content grows past 100vh. */
html,
body {
	height: 100%;
}
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks > main {
	flex: 1 0 auto;
}

.btn {
	display: inline-block;
	background: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--forest-dark);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 13px;
	padding: 11px 22px;
	border-radius: 6px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.btn.ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: var(--wp--preset--color--white);
	margin-left: 10px;
}
.btn.solid-forest {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
}

.card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	padding: 22px;
	box-shadow: 0 2px 10px rgba(43, 38, 32, 0.08);
}
.card h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-family: var(--wp--preset--font-family--body);
	color: var(--wp--preset--color--ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.grid-2 {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
}
@media (max-width: 720px) {
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

/* ---- Site header ---- */
.site-header {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--body);
}
.header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.hamburger-btn {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 7px;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: none;
}
.hamburger-btn:hover {
	background: rgba(255, 255, 255, 0.08);
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.brand-mark {
	width: 32px;
	height: 32px;
	flex: none;
}
.brand-name {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 18px;
	letter-spacing: 0.02em;
}
.brand-name small {
	display: block;
	font-size: 10px;
	letter-spacing: 0.16em;
	opacity: 0.65;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
}
.avatar-chip {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--amber);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--wp--preset--color--forest-dark);
	font-weight: 700;
	font-family: var(--wp--preset--font-family--body);
	flex: none;
	text-decoration: none;
}

/* ---- Slide-out drawer ---- */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 25, 20, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
	z-index: 550;
}
.drawer-overlay.open {
	opacity: 1;
	pointer-events: auto;
}
.drawer {
	position: fixed;
	top: 0;
	left: -300px;
	width: 280px;
	height: 100%;
	background: var(--wp--preset--color--forest-dark);
	color: var(--wp--preset--color--parchment);
	z-index: 600;
	padding: 22px 20px;
	box-shadow: 6px 0 30px rgba(0, 0, 0, 0.35);
	transition: left 0.3s ease;
	display: flex;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--body);
}
.drawer.open {
	left: 0;
}
.drawer-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 22px;
}
.drawer-top .brand-name {
	color: var(--wp--preset--color--parchment);
}
.drawer-close {
	background: none;
	border: none;
	color: var(--wp--preset--color--parchment);
	font-size: 20px;
	cursor: pointer;
	opacity: 0.7;
	line-height: 1;
}
.drawer-close:hover {
	opacity: 1;
}
.drawer-section-label {
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	opacity: 0.5;
	margin: 16px 0 8px;
}
.drawer-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	border-radius: 7px;
	color: var(--wp--preset--color--parchment);
	text-decoration: none;
	font-size: 14px;
	border-left: 3px solid transparent;
	margin-bottom: 2px;
	cursor: pointer;
}
.drawer-link svg {
	width: 16px;
	height: 16px;
	opacity: 0.85;
	flex: none;
}
.drawer-link:hover {
	background: rgba(255, 255, 255, 0.06);
}
.drawer-link.active {
	background: rgba(192, 138, 62, 0.2);
	border-left-color: var(--wp--preset--color--amber);
	color: var(--wp--preset--color--amber-light);
	font-weight: 600;
}
.drawer-space {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	font-size: 13px;
	opacity: 0.85;
	color: inherit;
	text-decoration: none;
}
.drawer-space:hover {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 7px;
}
.drawer-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	text-decoration: none;
	color: inherit;
}
.drawer-footer .sub {
	opacity: 0.55;
	font-size: 11px;
}

.spaces-bar {
	background: var(--wp--preset--color--parchment-dark);
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 10px 30px;
	display: flex;
	gap: 10px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12.5px;
	flex-wrap: wrap;
}
.space-pill {
	padding: 6px 13px;
	border-radius: 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-soft);
	display: flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.space-pill.active {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--forest);
}
.bell {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--wp--preset--color--amber);
	flex: none;
}
.bell.muted {
	background: transparent;
	border: 1px solid var(--wp--preset--color--ink-soft);
	opacity: 0.5;
}

.content {
	padding: 34px 30px 50px;
	max-width: 1040px;
	margin: 0 auto;
}

/* BuddyPress/bbPress's own default screens (member/group directories,
   single group, forums) render straight into #buddypress with no width
   constraint of their own — give it the same treatment as .content so
   they sit consistently with the rest of the site instead of stretching
   full-bleed or overflowing on narrow viewports. */
#buddypress {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 30px 50px;
	box-sizing: border-box;
}
#buddypress img {
	max-width: 100%;
	height: auto;
}

/* ---- Home ---- */
.hero {
	background: linear-gradient(135deg, var(--wp--preset--color--forest) 0%, var(--wp--preset--color--forest-dark) 100%);
	color: var(--wp--preset--color--white);
	border-radius: 10px;
	padding: 34px 36px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.hero-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber-light);
	margin-bottom: 8px;
}
.hero h1 {
	font-size: 34px;
	margin: 0 0 10px;
	font-weight: 400;
	color: var(--wp--preset--color--white);
}
.hero p {
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	max-width: 420px;
	line-height: 1.6;
	margin: 0 0 18px;
}
.hero-badge {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: var(--wp--preset--color--forest-dark);
	border: 3px solid var(--wp--preset--color--amber);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	overflow: hidden;
}

/* A custom virtue badge image (uploaded per-virtue) fills the same
   circular slot the default brand mark sits in. */
.virtue-badge-icon {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.feed-item {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-family: var(--wp--preset--font-family--body);
}
.feed-item:last-child {
	border-bottom: none;
}
.feed-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--parchment-dark);
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--wp--preset--color--ink-soft);
}
.feed-text {
	font-size: 13.5px;
	line-height: 1.5;
}
.feed-text b {
	color: var(--wp--preset--color--ink);
}
.feed-meta {
	font-size: 11px;
	color: #a89a7f;
	margin-top: 2px;
}

.event-card {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 14px;
}
.date-chip {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	border-radius: 8px;
	text-align: center;
	padding: 8px 12px;
	font-family: var(--wp--preset--font-family--body);
	flex: none;
}
.date-chip .mon {
	font-size: 10px;
	letter-spacing: 0.1em;
	opacity: 0.8;
}
.date-chip .day {
	font-size: 20px;
	font-weight: 700;
}
.event-title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 13.5px;
	font-weight: 600;
}
.event-sub {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: var(--wp--preset--color--ink-soft);
}

.p3-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(43, 38, 32, 0.08);
}
@media (max-width: 600px) {
	.p3-strip {
		grid-template-columns: 1fr;
	}
}
.p3-item {
	padding: 22px 18px;
	text-align: center;
	border-right: 1px solid var(--wp--preset--color--line);
}
.p3-item:last-child {
	border-right: none;
}
.p3-icon {
	width: 26px;
	height: 26px;
	margin-bottom: 10px;
}
.p3-word {
	font-family: var(--wp--preset--font-family--headline);
	font-size: 16px;
	color: var(--wp--preset--color--forest-dark);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}
.p3-desc {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: var(--wp--preset--color--ink-soft);
	line-height: 1.5;
}

/* ---- This Month's Activity ---- */
.virtue-hero {
	text-align: center;
	padding: 40px 20px 34px;
	background: var(--wp--preset--color--parchment-dark);
	border-radius: 10px;
	margin-bottom: 28px;
}
.virtue-emblem {
	width: 84px;
	height: 84px;
	margin: 0 auto 16px;
}
.virtue-name {
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--amber);
	font-family: var(--wp--preset--font-family--body);
	margin-bottom: 6px;
}
.virtue-hero h1 {
	font-size: 40px;
	margin: 0 0 12px;
	font-weight: 400;
	color: var(--wp--preset--color--forest-dark);
}
.virtue-hero p {
	max-width: 480px;
	margin: 0 auto;
	font-family: var(--wp--preset--font-family--body);
	font-size: 14px;
	color: var(--wp--preset--color--ink-soft);
	line-height: 1.7;
}

.challenge-box {
	background: #fbf5e6;
	border: 1px dashed var(--wp--preset--color--amber);
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 24px;
	font-family: var(--wp--preset--font-family--body);
}
.challenge-box .label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--amber);
	font-weight: 700;
	margin-bottom: 6px;
}
.challenge-box p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--wp--preset--color--ink);
}

.detail-row {
	display: flex;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13.5px;
	padding: 11px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
	gap: 12px;
}
.detail-row:last-child {
	border-bottom: none;
}
.detail-row .k {
	color: var(--wp--preset--color--ink-soft);
}
.detail-row .v {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-align: right;
}

/* ---- Virtue Passport ---- */
.passport-header {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-bottom: 30px;
	flex-wrap: wrap;
}
.passport-photo {
	width: 88px;
	height: 88px;
	border-radius: 12px;
	background: var(--wp--preset--color--parchment-dark);
	border: 2px solid var(--wp--preset--color--amber);
	flex: none;
	overflow: hidden;
}
.passport-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
}
.passport-header h1 {
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 400;
}
.passport-header p {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	color: var(--wp--preset--color--ink-soft);
}
.badge-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
	margin-bottom: 30px;
}
@media (max-width: 600px) {
	.badge-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.badge {
	aspect-ratio: 1;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	font-family: var(--wp--preset--font-family--body);
	font-size: 9.5px;
	text-align: center;
	padding: 6px;
	min-width: 0;
	overflow-wrap: break-word;
}
.badge.earned {
	background: var(--wp--preset--color--forest);
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--amber);
}
.badge.locked {
	background: var(--wp--preset--color--parchment-dark);
	color: #b8ac91;
	border: 2px dashed var(--wp--preset--color--line);
}
.badge svg {
	width: 22px;
	height: 22px;
	margin-bottom: 3px;
}
.badge .virtue-badge-icon {
	width: 22px;
	height: 22px;
	margin-bottom: 3px;
}
.quote-block {
	border-left: 3px solid var(--wp--preset--color--amber);
	padding: 6px 0 6px 18px;
	font-style: italic;
	color: var(--wp--preset--color--ink-soft);
	font-size: 14.5px;
	margin-bottom: 8px;
}

/* ---- Recap / Blog ---- */
.recap-title {
	font-size: 28px;
	font-weight: 400;
	margin: 0 0 6px;
}
.recap-meta {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: var(--wp--preset--color--ink-soft);
	margin-bottom: 24px;
}
.photo-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 140px 140px;
	gap: 8px;
	margin-bottom: 26px;
	border-radius: 10px;
	overflow: hidden;
}
.photo-grid div,
.photo-grid img {
	background: var(--wp--preset--color--parchment-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b8ac91;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.photo-grid > :first-child {
	grid-row: 1 / 3;
}
.recap-body {
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--wp--preset--color--ink);
	max-width: 640px;
}
.recap-body p {
	margin: 0 0 16px;
}
.pull-quote {
	font-size: 19px;
	font-style: italic;
	color: var(--wp--preset--color--forest-dark);
	border-left: 3px solid var(--wp--preset--color--amber);
	padding-left: 20px;
	margin: 26px 0;
	max-width: 560px;
}
/* Recap posts use core Gallery + Pullquote blocks in post content, styled
   to match the mockup's .photo-grid / .pull-quote. */
.recap-body,
.entry-content {
	font-size: 15.5px;
	line-height: 1.85;
	color: var(--wp--preset--color--ink);
}
.entry-content .wp-block-gallery {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 140px;
	gap: 8px;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 0 26px;
}
.entry-content .wp-block-gallery .wp-block-image {
	margin: 0;
	height: 100%;
}
.entry-content .wp-block-gallery .wp-block-image:first-child {
	grid-row: 1 / 3;
}
.entry-content .wp-block-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.entry-content .wp-block-pullquote {
	border: none;
	margin: 26px 0;
}
.entry-content .wp-block-pullquote blockquote {
	border-left: 3px solid var(--wp--preset--color--amber);
	border-top: none;
	border-bottom: none;
	padding: 0 0 0 20px;
	margin: 0;
	max-width: 560px;
}
.entry-content .wp-block-pullquote p {
	font-size: 19px;
	font-style: italic;
	color: var(--wp--preset--color--forest-dark);
	text-align: left;
}
.entry-content .wp-block-pullquote cite {
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	color: var(--wp--preset--color--ink-soft);
	font-style: normal;
}

.comment-cta {
	margin-top: 30px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 13px;
	color: var(--wp--preset--color--ink-soft);
	border-top: 1px solid var(--wp--preset--color--line);
	padding-top: 16px;
}
