/* ==========================================================================
   Smart Gadgets Reviews – information and legal pages (Stage 08)
   --------------------------------------------------------------------------
   Loaded on plain block-editor pages (body class "sgr-page", added in
   inc/pages.php) and inside the block editor. Not loaded on the homepage or
   on pages built with Elementor. Typography mirrors single articles
   (css/single-article.css); colour variables come from css/content.css,
   with the brand hex values as fallback for the editor.

     1. Page frame (width aligned with header/footer)
     2. Title band (the page's only H1)
     3. Body typography
     4. Lead paragraph
     5. "Pending confirmation" box and highlight
     6. Complianz cookie policy document
     7. Responsive
   ========================================================================== */

/* 1. Page frame ----------------------------------------------------------- */
body.sgr-page .site-main {
	max-width: none;
	padding-inline: 0;
}
.sgr-page .page-header,
.sgr-page .page-content {
	box-sizing: border-box;
	width: 100%;
	padding-inline: max(20px, calc((100% - 1200px) / 2));
}

/* 2. Title band ----------------------------------------------------------- */
.sgr-page .page-header {
	padding-block: 48px;
	background: var(--sgr-c-light, #F5F7FA);
	border-block-end: 1px solid var(--sgr-c-border, #EAECF0);
}
.sgr-page .page-header .entry-title {
	max-width: 900px;
	margin: 0;
	padding: 0;
	color: var(--sgr-c-navy, #101828);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
	overflow-wrap: break-word;
}

/* 3. Body typography ------------------------------------------------------- */
.sgr-page .page-content {
	padding-block: 48px 80px;
	color: var(--sgr-c-text, #344054);
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: break-word;
}
.sgr-page .page-content > * {
	max-width: 780px;
}
.sgr-page .page-content > :first-child { margin-top: 0; }
.sgr-page .page-content p { margin: 0 0 1.25em; }
.sgr-page .page-content :is(h2, h3, h4) {
	color: var(--sgr-c-navy, #101828);
	font-weight: 700;
}
.sgr-page .page-content h2 {
	margin: 48px 0 16px;
	font-size: 30px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.sgr-page .page-content h3 {
	margin: 32px 0 12px;
	font-size: 22px;
	line-height: 1.35;
}
.sgr-page .page-content a:not(.wp-block-button__link) {
	color: var(--sgr-c-primary, #155EEF);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.sgr-page .page-content a:not(.wp-block-button__link):hover { color: var(--sgr-c-navy, #101828); }
.sgr-page .page-content a:focus-visible {
	outline: 2px solid var(--sgr-c-primary, #155EEF);
	outline-offset: 2px;
}
.sgr-page .page-content :is(ul, ol):not(.sgr-list) {
	margin: 0 0 1.25em;
	padding-inline-start: 1.5em;
}
.sgr-page .page-content li { margin-bottom: 0.5em; }
.sgr-page .page-content li::marker { color: var(--sgr-c-primary, #155EEF); }
.sgr-page .page-content .sgr-updated {
	color: var(--sgr-c-muted, #667085);
	font-size: 15px;
}

/* 4. Lead paragraph (block: Paragraph > Advanced > class "sgr-lead") -------- */
.sgr-lead,
.sgr-page .page-content .sgr-lead {
	color: var(--sgr-c-navy, #101828);
	font-size: 20px;
	line-height: 1.6;
}

/* 5. Pending confirmation ----------------------------------------------------
   Group block with classes "sgr-box sgr-box--pending" (frame from
   css/article-blocks.css) and the editor's Highlight format with class
   "sgr-pending". Both mark text that must be confirmed before publishing. */
.sgr-box.sgr-box--pending {
	border-color: #FEDF89;
	border-inline-start: 4px solid #F79009;
	background: #FFFAEB;
	font-size: 16px;
	line-height: 1.6;
}
.sgr-box--pending .sgr-box__label { color: #B54708; }
.sgr-box--pending p { margin: 0 0 0.75em; }
.sgr-box--pending ul { margin-bottom: 0.75em; }
mark.sgr-pending {
	padding: 0 4px;
	border-radius: 4px;
	background-color: #FEF0C7;
	color: #93370D;
	font-weight: 600;
}

/* 6. Complianz cookie policy document --------------------------------------
   The generated document brings its own headings; align them with ours. */
.sgr-page .page-content #cmplz-document {
	max-width: 780px;
	font-size: inherit;
	line-height: inherit;
}
.sgr-page .page-content #cmplz-document :is(p, li, td) {
	font-size: 16px;
	line-height: 1.7;
}
.sgr-page .page-content #cmplz-document h2 { font-size: 26px; }
.sgr-page .page-content #cmplz-document h3 { font-size: 20px; }

/* 7. Responsive ------------------------------------------------------------ */
@media (max-width: 1024px) {
	.sgr-page .page-header .entry-title { font-size: 38px; }
}
@media (max-width: 767px) {
	.sgr-page .page-header { padding-block: 32px; }
	.sgr-page .page-header .entry-title { font-size: 30px; line-height: 1.2; }
	.sgr-page .page-content { padding-block: 32px 56px; font-size: 17px; line-height: 1.7; }
	.sgr-page .page-content h2 { margin-top: 40px; font-size: 25px; }
	.sgr-page .page-content h3 { margin-top: 28px; font-size: 20px; }
	.sgr-lead,
	.sgr-page .page-content .sgr-lead { font-size: 18px; }
	.sgr-box.sgr-box--pending { padding: 20px; }
}
@media (max-width: 400px) {
	.sgr-page .page-header .entry-title { font-size: 27px; }
}
