/*
 * Category archive + single post styling.
 * Values lifted 1:1 from the Design canvas (Main / MoreGuides / Post .dc.html);
 * colours, radii and shadows are the the-girl-nook tokens.json values.
 * Everything is scoped under .gn-page so it can't leak into the wall/home/contact pages.
 */
.gn-page {
	--gn-meta: #767676;
	--gn-linen: #EAE3DD;
	--gn-cream: #F7F1EE;
	--gn-shadow-card: 0 1px 2px rgba(120,86,86,0.04), 0 6px 20px rgba(120,86,86,0.06);
	background: var(--gn-bg);
	color: var(--gn-body);
	font-family: 'Lato', system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}
.gn-page * { box-sizing: border-box; }
.gn-page a { text-decoration: none; }
.gn-wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---- shared pieces ---- */
.gn-page .gn-eyebrow-sc { font-family: 'Lato', system-ui, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.4; letter-spacing: 0.12em; color: #4B4B4B; text-transform: uppercase; }
.gn-page .gn-rule { width: 64px; height: 2px; background: var(--gn-pink); margin: 28px 0; }
.gn-page .gn-crumbs { font-size: 13px; letter-spacing: 0.04em; color: var(--gn-meta); margin-bottom: 32px; }
.gn-page .gn-crumbs a { color: var(--gn-deep-pink); }
.gn-page .gn-crumbs span { margin: 0 10px; }
.gn-page h1.gn-h1 { margin: 14px 0 0; font-size: clamp(36px, 4.4vw, 52px) !important; line-height: 1.15 !important; font-weight: 700; letter-spacing: -0.015em; color: #000; }
.gn-page h2.gn-h2 { margin: 12px 0 0; font-size: 30px !important; line-height: 1.3 !important; font-weight: 600; color: #000; }
.gn-page .gn-pill { display: inline-block; background: var(--gn-blush); color: var(--gn-deep-pink); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; border-radius: 999px; padding: 6px 14px; line-height: 1.7; }
.gn-page .gn-meta { font-size: 13px; color: var(--gn-meta); }
.gn-page .gn-link-btn { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gn-deep-pink); border-bottom: 2px solid var(--gn-pink); padding-bottom: 4px; }
.gn-page .gn-link-btn:hover { color: var(--gn-pink-press); }
.gn-page .gn-btn-ghost { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gn-deep-pink); background: #fff; border: 1px solid var(--gn-pink); border-radius: 4px; padding: 15px 26px; transition: background 120ms ease-out; }
.gn-page .gn-btn-ghost:hover { background: var(--gn-blush); color: var(--gn-deep-pink); }
.gn-page .gn-ph { background: var(--gn-linen); }

/* ---- category: hero ---- */
.gn-cat-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 56px; }
.gn-cat-hero__inner { max-width: 46rem; }
.gn-cat-hero .gn-lead { margin: 0 0 20px; font-size: 19px; line-height: 1.6; color: var(--gn-body); }
.gn-cat-hero p.gn-intro { margin: 0; max-width: 34rem; }

/* ---- category: guides list ---- */
.gn-guides { padding-bottom: 72px; }
.gn-guides__head { border-bottom: 1px solid var(--gn-border); padding-bottom: 14px; margin-bottom: 32px; }
.gn-page .gn-guides__head h2 { margin: 0; font-size: 26px !important; font-weight: 600; line-height: 1.3 !important; color: #000; }

.gn-card, .gn-feature { background: #fff; border: 1px solid var(--gn-border); border-radius: 14px; overflow: hidden; box-shadow: var(--gn-shadow-card); transition: box-shadow 160ms ease-out; }
.gn-card:hover, .gn-feature:hover { box-shadow: 0 2px 4px rgba(120,86,86,0.06), 0 14px 36px rgba(120,86,86,0.10); }

.gn-feature { display: flex; flex-wrap: wrap; }
.gn-feature__img { flex: 1 1 420px; min-height: 260px; background: var(--gn-linen); display: block; position: relative; }
.gn-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gn-feature__body { flex: 1 1 380px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.gn-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gn-page .gn-feature__body h3 { margin: 0; font-size: clamp(26px, 2.4vw, 32px) !important; line-height: 1.2 !important; font-weight: 700; }
.gn-page .gn-feature__body h3 a { color: #000; }
.gn-feature__body p { margin: 0; }

.gn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 32px 28px; margin-top: 48px; }
.gn-feature + .gn-grid { margin-top: 48px; }
.gn-grid:first-child { margin-top: 0; }
.gn-card { display: flex; flex-direction: column; }
.gn-card__img { display: block; aspect-ratio: 4 / 3; background: var(--gn-linen); position: relative; }
.gn-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gn-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.gn-page .gn-card__body h3 { margin: 0; font-size: 22px !important; line-height: 1.3 !important; font-weight: 600; }
.gn-page .gn-card__body h3 a { color: #000; }
.gn-card__body p { margin: 0; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gn-page .gn-card__more { align-self: flex-start; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gn-deep-pink); }
.gn-page .gn-card__more:hover { color: var(--gn-pink-press); }

/* pagination */
.gn-pager { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gn-pager__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.gn-page .gn-pager__nav { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gn-deep-pink); padding: 12px 14px; }
.gn-page .gn-pager__nav.is-off { color: #999; padding: 0 14px; }
.gn-page .gn-pager__num { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--gn-border); color: var(--gn-body); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.gn-page .gn-pager__num:hover { background: var(--gn-blush); }
.gn-page .gn-pager__num.is-current { background: var(--gn-blush); border-color: var(--gn-blush); color: var(--gn-deep-pink); font-weight: 700; }

/* how we choose */
.gn-how { background: #fff; border-top: 1px solid var(--gn-border); border-bottom: 1px solid var(--gn-border); }
.gn-how .gn-wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px 72px; }
.gn-how__title { flex: 1 1 260px; }
.gn-how__title .gn-rule { margin: 24px 0 0; }
.gn-how__copy { flex: 2 1 420px; max-width: 34rem; display: flex; flex-direction: column; gap: 18px; }
.gn-how__copy p { margin: 0; }

/* request-a-guide band */
.gn-cta { padding-top: 72px; padding-bottom: 72px; }
.gn-cta__box { background: var(--gn-blush); border-radius: 14px; padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.gn-cta__copy { flex: 1 1 420px; max-width: 38rem; }
.gn-page .gn-cta__copy h2 { margin: 12px 0 14px; font-size: 30px !important; line-height: 1.3 !important; font-weight: 600; color: #000; }
.gn-cta__copy p { margin: 0; color: var(--gn-body); }

/* ---- single post ---- */
.gn-post, .gn-post-comments { font-size: 18px; line-height: 1.75; }
.gn-post__head { max-width: 40rem; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px 0; }
.gn-post__head .gn-crumbs { margin-bottom: 28px; }
.gn-page .gn-post__head .gn-eyebrow-sc { color: var(--gn-body); }
.gn-page .gn-post__head h1.gn-h1 { font-size: clamp(34px, 4.4vw, 52px) !important; }
.gn-post__head .gn-rule { margin: 26px 0 22px; }
.gn-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gn-body); }
.gn-byline i { font-style: normal; color: var(--gn-pink); }
.gn-post__hero { max-width: 60rem; margin: 40px auto 0; padding: 0 24px; }
.gn-post__hero img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--gn-linen); } /* shown uncropped at the uploaded ratio */

.gn-post-body { max-width: 52rem; margin: 0 auto; padding: 48px 24px 0; }
.gn-post-body > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.gn-post-body > p { margin-top: 0; margin-bottom: 20px; }
.gn-post-body a { color: var(--gn-deep-pink); text-decoration: underline; text-decoration-color: var(--gn-pink); text-underline-offset: 3px; }
.gn-post-body a:hover { text-decoration-color: var(--gn-deep-pink); }
.gn-page .gn-post-body > h2 { margin-top: 64px; margin-bottom: 18px; font-size: 30px !important; line-height: 1.3 !important; font-weight: 600; color: #000; scroll-margin-top: 24px; }
.gn-post-body > h3 { margin: 40px auto 14px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.gn-post-body > ul, .gn-post-body > ol { padding-left: 22px; margin-bottom: 20px; }
.gn-post-body > blockquote { margin: 32px auto; padding: 16px 20px; background: var(--gn-cream); border: 0; border-radius: 8px; font-size: 16px; line-height: 1.6; }
.gn-post-body > blockquote p { margin: 0; }
.gn-post-body > figure { margin-top: 36px; margin-bottom: 36px; }
.gn-post-body > figure img { border-radius: 14px; height: auto; max-width: 100%; }

.gn-post-body .gn-disclosure { margin: 0 auto 40px; font-size: 14px; line-height: 1.6; color: #5F5F5F; background: var(--gn-cream); border: 1px solid var(--gn-border); border-radius: 8px; padding: 14px 18px; }

/* "in this guide" */
.gn-toc { background: #fff; border: 1px solid var(--gn-border); border-radius: 14px; padding: 26px 28px; margin-bottom: 56px; }
.gn-toc__title { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: #000; margin-bottom: 14px; text-transform: none; }
.gn-toc__title::first-letter { text-transform: uppercase; }
.gn-toc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; line-height: 1.5; }
.gn-post-body .gn-toc a { text-decoration: none; }
.gn-post-body .gn-toc a:hover { color: var(--gn-pink-press); }

/* product card = the existing "Media & Text" block */
.gn-post-body > .wp-block-media-text {
	max-width: none; margin-top: 36px; margin-bottom: 0;
	background: #fff; border: 1px solid var(--gn-border); border-radius: 14px; overflow: hidden; box-shadow: var(--gn-shadow-card);
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
}
.gn-post-body > .wp-block-media-text .wp-block-media-text__media { padding: 24px; border-right: 1px solid var(--gn-border); display: flex; align-items: center; justify-content: center; margin: 0; }
.gn-post-body > .wp-block-media-text .wp-block-media-text__media img { width: 100%; height: auto; border-radius: 8px; background: var(--gn-cream); display: block; }
.gn-post-body > .wp-block-media-text .wp-block-media-text__content { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.gn-post-body > .wp-block-media-text .wp-block-media-text__content p { margin: 0; font-size: 16px; line-height: 1.65; }
.gn-post-body > .wp-block-media-text .wp-block-buttons { margin-top: 8px; }
.gn-post-body .wp-block-button__link { background: var(--gn-deep-pink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; border-radius: 4px; padding: 14px 24px; transition: background 120ms ease-out; }
.gn-post-body .wp-block-button__link:hover { background: #6f4545; color: #fff; }
@media (max-width: 600px) {
	.gn-post-body > .wp-block-media-text { grid-template-columns: 1fr !important; }
	.gn-post-body > .wp-block-media-text .wp-block-media-text__media { border-right: 0; border-bottom: 1px solid var(--gn-border); }
}

/* shop strip = the ShopMy embed, wrapped by gn_wrap_shop_embeds() */
.gn-shop { max-width: none !important; margin-top: 36px; margin-bottom: 0; background: #fff; border: 1px solid var(--gn-border); border-radius: 14px; box-shadow: var(--gn-shadow-card); overflow: hidden; padding: 22px 0 8px; }
.gn-shop__head { padding: 0 24px 16px; border-bottom: 1px solid var(--gn-border); }
.gn-shop__head span { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: 0; color: #000; text-transform: none; }
.gn-shop__head span::first-letter { text-transform: uppercase; }
.gn-shop iframe { display: block; width: 100%; border: 0; margin-top: 12px; }

/* closing request band, single posts use the narrower 46rem container */
.gn-cta--post { max-width: 52rem; margin: 0 auto; padding: 72px 24px; }
.gn-cta--post .gn-cta__box { padding: clamp(28px, 4vw, 44px); gap: 24px 40px; }
.gn-cta--post .gn-cta__copy { flex-basis: 340px; }
.gn-page .gn-cta--post .gn-cta__copy h2 { font-size: 26px !important; margin: 10px 0; }
.gn-cta--post .gn-cta__copy p { font-size: 16px; line-height: 1.6; }

@media (max-width: 600px) {
	.gn-page { font-size: 16px; }
	.gn-toc { padding: 22px 20px; }
}

/* comments on posts — the box styling itself is the shared comment CSS in style.css */
.gn-post-comments { max-width: 52rem; margin: 0 auto; padding: 64px 24px 0; }
.gn-post-comments #comments, .gn-post-comments .comments-area { max-width: 40rem; padding: 0; }
.gn-page .gn-post-comments .comments-title,
.gn-page .gn-post-comments .comment-reply-title { font-size: 26px !important; line-height: 1.3 !important; font-weight: 600; }

/* canvas sizes are content-box widths (text 40rem / wide 52rem + 24px gutters) so edges line up */
.gn-page .gn-post__head, .gn-page .gn-post-body, .gn-page .gn-cta--post, .gn-page .gn-post-comments, .gn-page .gn-post__hero { box-sizing: content-box; }
