/*
 * Styles for the About / Contact / Editorial Policy page templates,
 * ported from the gotlmagazine-2024 theme.
 */

.about-site,
.contact-page,
.editorial-policy {
	background: color-mix( in srgb, var( --color-bg ) 92%, var( --color-text ) 8% );
	padding: 0 1rem 3rem;
}

.page-header {
	max-width: 1080px;
	margin: 0 auto;
	padding: 3rem 1.5rem 2rem;
	text-align: center;
}

.page-header h1 {
	color: #1a1a1a;
	margin-bottom: 0;
}

.page-header__subtitle {
	margin-top: 0.75rem;
	color: #555555;
	font-size: 1rem;
}

.page-header__accent {
	display: block;
	width: 3rem;
	height: 3px;
	margin: 1.25rem auto 0;
	background-color: var(--color-accent);
}

.printed-sheet {
	max-width: 1080px;
	margin: 0 auto;
	background: #ffffff;
	color: #262626;
	border: 1px solid #d6d6d6;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.06 );
	padding: 3rem;
}

.printed-sheet h1 {
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.printed-sheet h2 {
	color: #1a1a1a;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	padding-left: 0.85rem;
	border-left: 3px solid var(--color-accent);
}

.printed-sheet p,
.printed-sheet li {
	line-height: 1.65;
	color: #333333;
}

/* Pull-quote treatment for a page's lede paragraph. */
.printed-sheet__lede {
	margin: 0 0 1.5rem;
	padding: 0.35rem 0 0.35rem 1.25rem;
	border-left: 3px solid var(--color-accent);
	font-size: 1.15rem;
	font-style: italic;
	color: #1a1a1a !important;
}

/* Checkmark-style list, used for Contact's "what to include" bullets. */
.icon-list li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.5rem;
}

.icon-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--color-accent);
	font-weight: 700;
}

.printed-sheet__link {
	color: var(--color-accent);
	font-weight: 700;
	text-decoration: underline;
}

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}

@media (max-width: 768px) {
	.printed-sheet {
		padding: 2rem 1.5rem;
	}
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* Contact page layout */
.contact-content {
	padding: 3rem 1.5rem;
}

.contact-info h2,
.contact-form h2 {
	color: #1a1a1a;
	margin-bottom: 1rem;
}

.contact-info .icon-list {
	color: #333333;
	margin-left: 0;
}

.contact-note {
	margin-top: 1.5rem;
	font-size: 0.95rem;
	color: #666666;
}

/* Gravity Forms cleanup */
.contact-form .gform_wrapper {
	margin-top: 1rem;
}

/* Redundant next to Gravity Forms' own inline validation on submit, and
 * just visual noise otherwise - hide it entirely rather than singling out
 * required fields with an asterisk. */
.contact-form .gfield_required {
	display: none !important;
}

/* Gravity Forms' own "theme framework" CSS (gravity-forms-theme-framework.
 * min.css) styles every field via .gform-theme--framework input[type]:where(...)
 * - about the same specificity as a plain class+attribute selector, and it
 * loads after this stylesheet, so it wins ties on source order alone. The
 * submit button is worse: GF chains 5 classes together on that selector,
 * outranking almost anything. !important is the same fix already used for
 * the footer newsletter form's GF override (see base.css). */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
	width: 100% !important;
	font-size: 1rem !important;
	color: #1a1a1a !important;
	background: #ffffff !important;
	border: 1px solid #d6d6d6 !important;
	border-radius: 12px !important;
	padding: 0.65rem 0.9rem !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Field focus ring tied to the subsite's own accent color instead of
 * Gravity Forms' default blue, so it reads as part of the theme. */
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
	outline: none !important;
	border-color: var(--color-button-bg) !important;
	box-shadow: 0 0 0 3px color-mix( in srgb, var( --color-button-bg ) 20%, transparent ) !important;
}

.contact-form .gform_footer .gform_button {
	min-width: 200px !important;
	border-radius: 999px !important;
	height: 44px !important;
	margin: 0.5rem auto 0 !important;
	background-color: var(--color-button-bg) !important;
	color: var(--color-button-text) !important;
	border: none !important;
	cursor: pointer;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}

.contact-form .gform_footer .gform_button:hover:not(:disabled) {
	opacity: 0.85;
}

/* Greyed out by assets/js/main.js (initContactFormGating) until every
 * currently-required field has a value - .is-disabled mirrors the real
 * :disabled state for browsers where the click still needs suppressing
 * (the JS never removes the disabled property while incomplete, but this
 * keeps the visual in sync even if a script error left it unset). */
.contact-form .gform_footer .gform_button:disabled,
.contact-form .gform_footer .gform_button.is-disabled {
	background-color: #a3a3a3 !important;
	color: #ffffff !important;
	cursor: not-allowed;
	opacity: 0.7;
}

.gform_not_found {
	display: none;
}

/* ---------------------------------------------------------------------
 * Static page style: Minimalist (Customizer: Site Design > Layouts >
 * Static Page Style). Same markup as the printed-sheet default - no card,
 * no accent left-borders, a narrower reading measure, and much more
 * whitespace instead.
 * ------------------------------------------------------------------- */
.static-page--minimalist {
	background: var(--color-bg);
	padding: 0 1.5rem 4rem;
}

.static-page--minimalist .page-header {
	max-width: 720px;
	padding: 4rem 1.5rem 2.5rem;
}

.static-page--minimalist .page-header h1 {
	color: var(--color-text);
	font-weight: 400;
	letter-spacing: 0.01em;
}

.static-page--minimalist .page-header__subtitle {
	color: var(--color-text);
	opacity: 0.65;
}

.static-page--minimalist .page-header__accent {
	width: 2rem;
	height: 1px;
	background-color: var(--color-text);
	opacity: 0.35;
}

.static-page--minimalist .printed-sheet {
	max-width: 720px;
	background: transparent;
	color: var(--color-text);
	border: none;
	box-shadow: none;
	padding: 0;
}

.static-page--minimalist .printed-sheet h1,
.static-page--minimalist .printed-sheet h2 {
	color: var(--color-text);
	font-weight: 500;
}

.static-page--minimalist .printed-sheet h2 {
	border-left: none;
	padding-left: 0;
	margin-top: 3rem;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	opacity: 0.55;
}

.static-page--minimalist .printed-sheet p,
.static-page--minimalist .printed-sheet li {
	color: var(--color-text);
}

.static-page--minimalist .printed-sheet__lede {
	border-left: none;
	padding: 0;
	font-style: normal;
	font-size: 1.1rem;
	opacity: 0.85;
	color: inherit !important;
}

.static-page--minimalist .icon-list li {
	padding-left: 0;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid color-mix( in srgb, var( --color-text ) 12%, transparent );
}

.static-page--minimalist .icon-list li::before {
	content: none;
}

.static-page--minimalist .printed-sheet__link {
	color: var(--color-text);
	font-weight: 400;
	text-decoration: underline;
}

.static-page--minimalist .contact-grid {
	gap: 4rem;
}

.static-page--minimalist .contact-note {
	color: var(--color-text);
	opacity: 0.6;
}
