/*
 * Quotes feed, single quote page, and the author's "Your quotes" box.
 * Lora (SIL Open Font License) is bundled in assets/fonts, so nothing loads from outside your site.
 */
@font-face {
	font-family: "Lora";
	src: url("../fonts/lora-variable.woff") format("woff");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

.gpm-feed,
.gpm-qa {
	--gpm-navy: var(--gp-navy, #072355);
	--gpm-red: var(--gp-coral, var(--gp-red, #EE3749));
	--gpm-red-deep: var(--gp-coral-dark, var(--gp-red-deep, #D42B3D));
	--gpm-line: var(--gp-line, #E3E8F1);
	--gpm-text: var(--gp-text, #2E3B58);
	--gpm-muted: var(--gp-muted, #6F7C96);
	color: var(--gpm-text);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.gpm-feed *, .gpm-qa * { box-sizing: border-box; }
.gpm-muted { color: var(--gpm-muted); font-size: 14px; }

/* ---------- Feed ---------- */
.gpm-feed { max-width: 680px; margin: 24px auto; padding: 0 14px; }
.gpm-q { margin: 0 0 28px; }

.gpm-q-card {
	background: var(--q-bg, #fff);
	color: var(--q-fg, var(--gpm-text));
	border: 1px solid var(--gpm-line);
	border-radius: 22px;
	padding: 24px 22px;
	box-shadow: 0 24px 50px -36px rgba(7, 35, 85, 0.55);
}
.gpm-q-text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: "Lora", Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: 22px;
	line-height: 1.5;
	font-style: normal;
	overflow-wrap: anywhere;
}
/* ---------- A post, like social media: person on top, quote below, quiet actions ---------- */
.gpm-q { margin: 0 0 34px; padding: 0 0 6px; }
.gpm-q-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0 2px; }
.gpm-q-av { width: 48px; height: 48px; font-size: 20px; }
.gpm-q-avlink { display: inline-flex; flex: none; text-decoration: none; }
.gpm-q-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gpm-q-name { font-size: 16px; font-weight: 700; color: var(--gpm-navy); }
.gpm-q-name a { color: inherit; text-decoration: none; }
.gpm-q-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gpm-q-meta { font-size: 13.5px; color: var(--gpm-muted); }
.gpm-q-meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.gpm-q-meta a:hover { color: var(--gpm-red-deep); }

.gpm-q-bar { display: flex; align-items: center; gap: 22px; margin-top: 6px; padding: 0 2px; }
.gpm-act {
	position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 8px 0 0;
	background: none; border: 0; border-radius: 10px; color: var(--gpm-muted); font: inherit; font-size: 14px; font-weight: 600;
	text-decoration: none; cursor: pointer; transition: color 0.2s;
}
.gpm-act:hover, .gpm-act:focus-visible { color: var(--gpm-red-deep); }
.gpm-act .gpm-ic { flex: none; }
.gpm-share-btn { margin-left: auto; padding-right: 0; }
.gpm-act-tx { position: absolute; right: 0; bottom: 100%; margin-bottom: 4px; padding: 5px 10px; border-radius: 8px; background: var(--gpm-navy); color: #fff; font-size: 12.5px; white-space: nowrap; }
.gpm-act-tx[hidden] { display: none; }

/* ---------- Pagination ---------- */
.gpm-pages { text-align: center; margin: 8px 0 0; }
.gpm-pages .page-numbers {
	display: inline-block; min-width: 40px; padding: 8px 12px; margin: 2px;
	border: 1px solid var(--gpm-line); border-radius: 10px; text-decoration: none; color: var(--gpm-navy);
}
.gpm-pages .page-numbers.current { background: var(--gpm-navy); border-color: var(--gpm-navy); color: #fff; }
.gpm-q-empty { text-align: center; color: var(--gpm-muted); padding: 40px 0; }
.gpm-q-back { margin: 18px 0 0; }

/* ---------- Comments ---------- */
.gpm-comments { margin-top: 30px; padding-top: 6px; border-top: 1px solid var(--gpm-line); }
.gpm-q-h { font-size: 20px; margin: 18px 0 10px; color: var(--gpm-navy); }
.gpm-q-flash { background: #F1F3F8; border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.gpm-c { padding: 14px 0; border-bottom: 1px solid var(--gpm-line); }
.gpm-c p { margin: 4px 0 0; overflow-wrap: anywhere; }
.gpm-c-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.gpm-c-actions { display: flex; gap: 14px; margin-top: 6px; }
.gpm-c-actions form { margin: 0; }
.gpm-link {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 2px; min-height: 36px;
	background: none; border: 0; color: var(--gpm-muted); font: inherit; font-size: 13px; cursor: pointer;
}
.gpm-link:hover, .gpm-link:focus-visible { color: var(--gpm-red-deep); }
.gpm-cform-wrap { margin-top: 10px; }
.gpm-cform textarea, .gpm-qform textarea, .gpm-qform select {
	display: block; width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--gpm-text);
	border: 1px solid var(--gpm-line); border-radius: 12px; background: #fff;
}
.gpm-login-prompt { margin: 18px 0 0; padding: 16px; background: #F1F3F8; border-radius: 14px; text-align: center; }
.gpm-login-prompt a { font-weight: 700; }
.gpm-submit {
	display: inline-block; margin-top: 10px; padding: 12px 22px; min-height: 44px; border: 0; border-radius: 999px;
	background: var(--gpm-red); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.gpm-submit:hover, .gpm-submit:focus-visible { background: var(--gpm-red-deep); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hide a theme's own comments area on quote pages (we draw ours). */
body.single-gpm_quote #comments:not(.gpm-comments),
body.single-gpm_quote .wp-block-comments,
body.single-gpm_quote .comments-area:not(.gpm-comments) { display: none; }

/* ---------- Author box ---------- */
.gpm-qa { margin: 24px 0; padding: 18px; background: #fff; border: 1px solid var(--gpm-line); border-radius: 16px; }
.gpm-qform label, .gpm-qform .gpm-lbl { display: block; margin: 12px 0 4px; font-size: 14px; color: var(--gpm-muted); }
.gpm-count-line { margin: 2px 0 0; text-align: right; }
.gpm-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.gpm-qform .gpm-sw { margin: 0; position: relative; cursor: pointer; }
.gpm-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gpm-sw span {
	display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--q-bg); color: var(--q-fg); border: 1px solid var(--gpm-line);
	font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 18px;
}
.gpm-sw input:checked + span { outline: 3px solid var(--gpm-red); outline-offset: 2px; }
.gpm-sw input:focus-visible + span { outline: 3px solid var(--gpm-navy); outline-offset: 2px; }
.gpm-link-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: var(--gpm-muted); font-size: 14px; text-decoration: none; }
.gpm-qlist { list-style: none; margin: 0; padding: 0; }
.gpm-qlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--gpm-line); }
.gpm-qlist-text { flex: 1 1 100%; color: var(--gpm-text); text-decoration: none; overflow-wrap: anywhere; }
.gpm-qlist-actions { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.gpm-qlist-actions form { margin: 0; }
.gpm-qlist-actions .gpm-link-btn { margin-left: 0; }

/* "Write a quote" box at the top of the feed (authors only) */
.gpm-compose-wrap { margin: 0 0 18px; }
.gpm-compose { background: #fff; border: 1px solid var(--gp-line, #E3E8F1); border-radius: 20px; box-shadow: 0 14px 30px -24px rgba(7, 35, 85, 0.5); }
.gpm-compose > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.gpm-compose > summary::-webkit-details-marker { display: none; }
.gpm-compose-av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gp-navy, #072355); color: #fff; font-weight: 800; }
.gpm-compose-fake { flex: 1; min-width: 0; padding: 11px 16px; border-radius: 999px; background: var(--gp-tint, #F1F3F8); color: var(--gp-muted, #6F7C96); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpm-compose-plus { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gp-coral, #EE3749); color: #fff; }
.gpm-compose[open] > summary { border-bottom: 1px solid var(--gp-line, #E3E8F1); }
.gpm-compose .gpm-qform { padding: 14px 16px 18px; }

/* ---------- Final look: white social-feed posts ---------- */
.gpm-feed { background: #fff; }
.gpm-q {
	margin: 0 0 16px; padding: 16px 14px 12px;
	background: #fff; border: 1px solid #ECEFF5; border-radius: 20px;
	box-shadow: 0 10px 28px -22px rgba(17, 24, 39, 0.35);
}
.gpm-q-row { display: flex; align-items: flex-start; gap: 12px; }
.gpm-q-avlink { display: inline-flex; flex: none; text-decoration: none; }
.gpm-q-av { width: 48px; height: 48px; font-size: 19px; }
.gpm-q-main { flex: 1; min-width: 0; }
.gpm-q-who { display: flex; flex-direction: column; justify-content: center; min-height: 48px; line-height: 1.3; }
.gpm-q-name { font-size: 16.5px; font-weight: 700; color: #1B2A48; }
.gpm-q-name a { color: inherit; text-decoration: none; }
.gpm-q-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gpm-q-meta { font-size: 13px; color: #6B7280; }
.gpm-q-meta a { color: inherit; text-decoration: none; }
.gpm-q-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.gpm-q-card { margin: 14px 0 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.gpm-q-mark { display: block; margin: 0 0 3px; line-height: 0; color: var(--gpm-red); }
.gpm-q-text {
	margin: 0; padding: 0; border: 0; background: none; color: #1F2937;
	font-family: inherit; font-weight: 400; font-style: normal; font-size: 15.5px; line-height: 1.55;
	overflow-wrap: anywhere;
}
.gpm-q-bar { display: flex; gap: 8px; margin-top: 12px; padding: 0; }
.gpm-act {
	position: relative; flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	min-height: 42px; padding: 0 10px; border: 0; border-radius: 999px; background: #F3F4F6; color: #1B2A48;
	font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.gpm-act:hover, .gpm-act:focus-visible { background: #FDECEE; color: var(--gpm-red-deep); }
.gpm-like.is-on { background: #FDECEE; color: var(--gpm-red-deep); }
.gpm-like.is-on .gpm-ic { fill: currentColor; }
.gpm-act-tx { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 6px; padding: 5px 10px; border-radius: 8px; background: #1B2A48; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.gpm-act-tx[hidden] { display: none; }
@media (min-width: 700px) {
	.gpm-q { padding: 20px 20px 14px; }
	.gpm-q-av { width: 52px; height: 52px; font-size: 21px; }
	.gpm-q-who { min-height: 52px; }
	.gpm-q-name { font-size: 17px; }
	.gpm-q-text { font-size: 16.5px; }
}

/* Reaction, comment and share buttons: plain light grey, no colour, whatever the theme does to buttons */
.gpm-q .gpm-act, .gpm-q .gpm-act:hover, .gpm-q .gpm-act:focus, .gpm-q .gpm-act:active, .gpm-q .gpm-act:visited { background: #F3F4F6 !important; color: #1B2A48 !important; box-shadow: none !important; text-decoration: none !important; border: 0 !important; }
.gpm-q .gpm-act:hover, .gpm-q .gpm-act:focus-visible { background: #E9ECF1 !important; }
.gpm-q .gpm-like.is-on { background: #F3F4F6 !important; color: #1B2A48 !important; }
.gpm-q .gpm-like.is-on .gpm-ic { fill: #E8384F; stroke: #E8384F; }
.gpm-q .gpm-act .gpm-ic { stroke: currentColor; }
.gpm-q .gpm-like.is-on .gpm-ic { stroke: #E8384F; }

/* ---------- Phones: let posted quotes use the full screen width ---------- */
@media (max-width: 699px) {
	/* Break out of the theme's narrow content column so the post spans edge to edge. */
	.gpm-feed {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 0 8px;
	}
	.gpm-q {
		width: 100%;
		margin: 0 0 12px;
		padding: 14px 12px 10px;
		border-radius: 16px;
	}
	.gpm-q-text { font-size: 16.5px; line-height: 1.6; }
	.gpm-compose-wrap { margin-bottom: 12px; }
}
