/*
Theme Name: Fremont Police Foundation
Theme URI: https://fremontpolicefoundation.org
Author: Chris Tucker
Description: A child theme of Ollie for the Fremont Police Foundation, Inc.
Template: ollie
Version: 1.0.0
Requires PHP: 7.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fremontpolicefoundation

Fremont Police Foundation Theme, (C) 2026 Fremont Police Foundation, Inc.
Created by Chris Tucker. Built as a child theme of Ollie.
*/

/* Text Shadow on Hero Text */
.fpf-hero-text-shadow {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.75),
        0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Image Bracketing */

figure.fpf-bracket-image {
    position: relative;
}

figure.fpf-bracket-image img {
    border-radius: 0px 30px 0px 30px;
}

/* TOP LEFT BRACKET ┌ */
figure.fpf-bracket-image::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;

    background:
        linear-gradient(rgba(4, 20, 87, 0.8), rgba(4, 20, 87, 0.8))
        top left / 100% 6px no-repeat,

        linear-gradient(rgba(4, 20, 87, 0.8), rgba(4, 20, 87, 0.8))
        top left / 6px 100% no-repeat;

    border-radius: 0 30px 0 0;

    z-index: 999;
    pointer-events: none;
}

/* BOTTOM RIGHT BRACKET ┘ */
figure.fpf-bracket-image::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 100px;
    height: 100px;

    background:
        linear-gradient(rgba(4, 20, 87, 0.8), rgba(4, 20, 87, 0.8))
        bottom right / 100% 6px no-repeat,

        linear-gradient(rgba(4, 20, 87, 0.8), rgba(4, 20, 87, 0.8))
        bottom right / 6px 100% no-repeat;

    border-radius: 0 0 0 30px;

    z-index: 999;
    pointer-events: none;
}

/* Button hover gold */
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
    background: #eebd11 !important;
    background-color: #eebd11 !important;
    color: #041457 !important;
}

/* =========================================================
   FREMONT POLICE FOUNDATION
   PRINT STYLES — SINGLE NEWS POSTS
   ========================================================= */

@media print {

	/* -----------------------------------------------------
	   BASIC PRINT SETUP
	   ----------------------------------------------------- */

	@page {
		size: auto;
		margin: 0.65in 0.7in 0.7in;
	}

	body.single-post {
		background: #ffffff !important;
		color: #1E1E26 !important;
		font-size: 11pt !important;
		line-height: 1.55 !important;

		/*
		 * Ask browsers to preserve the Foundation colors,
		 * especially the navy Cover overlay.
		 */
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   REMOVE WEBSITE CHROME
	   ----------------------------------------------------- */

	body.single-post .site-header,
	body.single-post .site-footer {
		display: none !important;
	}

	/*
	 * Opt-in. Add hide-in-print to any block's Additional CSS Class.
	 * display: none removes that block and everything inside it.
	 * Screen layout is unchanged because this rule is print-only.
	 */
	.hide-in-print {
		display: none !important;
	}

	/*
	 * The comments and Latest News areas are full-width
	 * groups immediately following the article in our
	 * Single Post template.
	 *
	 * These selectors use the classes WordPress outputs
	 * for the blocks inside those sections.
	 */

	body.single-post .wp-block-comments {
		display: none !important;
	}

	/*
	 * Hide the entire parent section containing comments,
	 * where supported.
	 */
	body.single-post .wp-block-group:has(> .wp-block-comments) {
		display: none !important;
	}

	/*
	 * Latest News section contains the Query block.
	 * Our article itself does not.
	 */
	body.single-post main + .wp-block-group + .wp-block-group:has(.wp-block-query),
	body.single-post .latest-posts-block {
		display: none !important;
	}

	/*
	 * The sidebar is hidden with hide-in-print on the template.
	 * Let the article column use the full print width.
	 */
	body.single-post .post-content-area {
		flex-basis: 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}


	/* -----------------------------------------------------
	   HERO / COVER
	   ----------------------------------------------------- */

	body.single-post > .wp-site-blocks > .wp-block-cover,
	body.single-post .wp-site-blocks > .wp-block-cover {
		/*
		 * Override the 560px screen hero.
		 * Approximately 2.5–3 inches on a typical printout.
		 */
		min-height: 0 !important;
		height: 2.65in !important;

		margin-top: 0 !important;
		margin-bottom: 0 !important;

		padding-top: 0.35in !important;
		padding-right: 0.4in !important;
		padding-bottom: 0.35in !important;
		padding-left: 0.4in !important;

		background-color: #041457 !important;
		background-position: center center !important;
		background-size: cover !important;

		display: flex !important;
		align-items: flex-end !important;

		overflow: hidden !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   HERO IMAGE
	   ----------------------------------------------------- */

	body.single-post .wp-block-cover__image-background {
		object-fit: cover !important;
		object-position: center center !important;
		width: 100% !important;
		height: 100% !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   HERO OVERLAY

	   Slightly darker than screen so white text remains
	   readable when printed or exported to PDF.
	   ----------------------------------------------------- */

	body.single-post .wp-block-cover__background {
		background-color: #041457 !important;
		opacity: 0.82 !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   HERO CONTENT
	   ----------------------------------------------------- */

	body.single-post .wp-block-cover__inner-container {
		width: 100% !important;
		max-width: none !important;
		margin: 0 auto !important;
		padding: 0 !important;

		position: relative !important;
		z-index: 2 !important;
	}


	/* Category */

	body.single-post .wp-block-cover .wp-block-post-terms {
		color: #EEBD11 !important;
		font-size: 9pt !important;
		font-weight: 700 !important;
		letter-spacing: 1.2px !important;
		line-height: 1.2 !important;

		margin-top: 0 !important;
		margin-bottom: 0.12in !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	body.single-post .wp-block-cover .wp-block-post-terms a {
		color: #EEBD11 !important;
		text-decoration: none !important;
	}


	/* Post title */

	body.single-post .wp-block-cover .wp-block-post-title {
		color: #ffffff !important;

		font-size: 28pt !important;
		font-weight: 700 !important;
		line-height: 1.08 !important;

		max-width: 8.5in !important;

		margin-top: 0 !important;
		margin-right: auto !important;
		margin-bottom: 0.15in !important;
		margin-left: auto !important;

		text-shadow: none !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* Author/date row */

	body.single-post .wp-block-cover .wp-block-group {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	body.single-post .wp-block-cover .wp-block-post-author,
	body.single-post .wp-block-cover .wp-block-post-author-name,
	body.single-post .wp-block-cover .wp-block-post-date,
	body.single-post .wp-block-cover .wp-block-post-date a,
	body.single-post .wp-block-cover .wp-block-post-author a,
	body.single-post .wp-block-cover p {
		color: #ffffff !important;
		font-size: 9.5pt !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/*
	 * Keep the gold separator gold.
	 * This targets the separator paragraph in our metadata row.
	 */
	body.single-post .wp-block-cover p.has-text-color[style*="#eebd11"],
	body.single-post .wp-block-cover p.has-text-color[style*="#EEBD11"] {
		color: #EEBD11 !important;
	}


	/* -----------------------------------------------------
	   ARTICLE
	   ----------------------------------------------------- */

	body.single-post main.wp-block-group {
		background: #ffffff !important;
		color: #1E1E26 !important;

		max-width: none !important;

		margin: 0 !important;

		padding-top: 0.4in !important;
		padding-right: 0 !important;
		padding-bottom: 0.25in !important;
		padding-left: 0 !important;
	}


	body.single-post .wp-block-post-content {
		max-width: 7.25in !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}


	/* Body text */

	body.single-post .wp-block-post-content p {
		color: #1E1E26 !important;
		font-size: 11pt !important;
		line-height: 1.55 !important;

		margin-top: 0 !important;
		margin-bottom: 0.16in !important;

		orphans: 3;
		widows: 3;
	}


	/* -----------------------------------------------------
	   ARTICLE HEADINGS
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content h2 {
		color: #041457 !important;

		font-size: 19pt !important;
		line-height: 1.2 !important;

		margin-top: 0.3in !important;
		margin-bottom: 0.12in !important;

		break-after: avoid-page;
		page-break-after: avoid;
	}


	body.single-post .wp-block-post-content h3 {
		color: #041457 !important;

		font-size: 15pt !important;
		line-height: 1.25 !important;

		margin-top: 0.24in !important;
		margin-bottom: 0.1in !important;

		break-after: avoid-page;
		page-break-after: avoid;
	}


	body.single-post .wp-block-post-content h4,
	body.single-post .wp-block-post-content h5,
	body.single-post .wp-block-post-content h6 {
		color: #041457 !important;

		break-after: avoid-page;
		page-break-after: avoid;
	}


	/* -----------------------------------------------------
	   LINKS
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content a {
		color: #041457 !important;
		text-decoration: underline !important;
	}

	/*
	 * Do NOT automatically append URLs after every link.
	 * WordPress articles can contain enough links that doing
	 * so makes a printed article unnecessarily ugly.
	 */


	/* -----------------------------------------------------
	   ARTICLE IMAGES / MEDIA
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content img {
		max-width: 100% !important;
		height: auto !important;
	}

	body.single-post .wp-block-post-content figure,
	body.single-post .wp-block-post-content .wp-block-image,
	body.single-post .wp-block-post-content .wp-block-gallery,
	body.single-post .wp-block-post-content blockquote,
	body.single-post .wp-block-post-content table {
		break-inside: avoid;
		page-break-inside: avoid;
	}


	/* Captions */

	body.single-post .wp-block-post-content figcaption {
		color: #666666 !important;
		font-size: 9pt !important;
		line-height: 1.35 !important;
	}


	/* -----------------------------------------------------
	   LISTS
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content ul,
	body.single-post .wp-block-post-content ol {
		margin-top: 0.1in !important;
		margin-bottom: 0.18in !important;
	}

	body.single-post .wp-block-post-content li {
		font-size: 11pt !important;
		line-height: 1.5 !important;

		margin-bottom: 0.05in !important;

		orphans: 3;
		widows: 3;
	}


	/* -----------------------------------------------------
	   BLOCKQUOTES
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content blockquote {
		border-left: 3px solid #EEBD11 !important;

		margin-top: 0.22in !important;
		margin-bottom: 0.22in !important;

		padding-left: 0.2in !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   TABLES
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content table {
		width: 100% !important;
		border-collapse: collapse !important;
		font-size: 9.5pt !important;
	}

	body.single-post .wp-block-post-content th,
	body.single-post .wp-block-post-content td {
		border: 1px solid #cccccc !important;
		padding: 6px 8px !important;
	}

	body.single-post .wp-block-post-content th {
		background: #f5f5f7 !important;
		color: #041457 !important;
		font-weight: 700 !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   TAGS
	   ----------------------------------------------------- */

	body.single-post main > .wp-block-group:last-child {
		max-width: 7.25in !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	body.single-post .post-meta {
		margin-top: 0.25in !important;
		padding-top: 0.15in !important;
	}

	body.single-post .post-meta .wp-block-post-terms {
		font-size: 9pt !important;
	}


	/* -----------------------------------------------------
	   BUTTONS

	   Convert buttons to simple text links for print.
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content .wp-block-button__link {
		background: transparent !important;
		color: #041457 !important;

		border: 0 !important;
		border-radius: 0 !important;

		padding: 0 !important;

		font-weight: 700 !important;
		text-decoration: underline !important;

		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}


	/* -----------------------------------------------------
	   EMBEDS / VIDEO

	   Avoid large empty embedded-media regions.
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-content iframe,
	body.single-post .wp-block-post-content video {
		max-width: 100% !important;
	}


	/* -----------------------------------------------------
	   PAGE-BREAK CONTROL
	   ----------------------------------------------------- */

	body.single-post h1,
	body.single-post h2,
	body.single-post h3,
	body.single-post h4,
	body.single-post h5,
	body.single-post h6 {
		break-after: avoid-page;
		page-break-after: avoid;
	}

	body.single-post p {
		orphans: 3;
		widows: 3;
	}

	body.single-post img,
	body.single-post figure,
	body.single-post blockquote,
	body.single-post table {
		break-inside: avoid;
		page-break-inside: avoid;
	}


	/* -----------------------------------------------------
	   DON'T PRINT EMPTY ELEMENTS
	   ----------------------------------------------------- */

	body.single-post .wp-block-post-terms:empty,
	body.single-post .post-meta:empty {
		display: none !important;
	}


	/* -----------------------------------------------------
	   REMOVE UNNECESSARY SCREEN EFFECTS
	   ----------------------------------------------------- */

	body.single-post * {
		box-shadow: none !important;
		animation: none !important;
		transition: none !important;
	}


	/* -----------------------------------------------------
	   PRINT COLOR PRESERVATION
	   ----------------------------------------------------- */

	body.single-post .wp-block-cover,
	body.single-post .wp-block-cover *,
	body.single-post .wp-block-post-content,
	body.single-post .wp-block-post-content * {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

}
