/**
Theme Name:          GP cookbook
Description:         The theme for the Pfeiffer Family Cookbook website.
Version:             6.8.0
Template:            generatepress
Author URI:          https://pfeiffer.net.au/keith/
Author:              Keith Pfeiffer
License URI:         https://www.gnu.org/licenses/gpl-3.0
License:             GNU General Public License v3 or later
Requires at least:   7.0
Requires PHP:        8.3
Tested up to:        7.0
Text Domain:         pcb
Theme URI:           https://krpfeiffer.github.io/cookBook/
Update URI:          https://api.github.com/repos/krpfeiffer/GP-cookbook/releases/latest

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
*/

/* =============================================================================
# Layout
*/

.archive.paged .pnet-archive-description {
	display: none;
}

/*
## WPRM Snippet
*/

.pfic-snippet-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	row-gap: var(--pnet-v-space);
}

.pfic-snippet-container .wprm-recipe-summary {
	font-size: var(--pnet-text-xxl);
	font-style: italic;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	opacity: 0.62;
}

.pfic-snippet-container .pfic-snippet-actions {
	align-items: center;
	column-gap: var(--pnet-h-space);
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	row-gap: var(--pnet-v-half-space);
}

.pfic-snippet-container .pfic-snippet-actions a.wprm-recipe-link {
	display: flex;
	fill: currentColor;
	margin: 0;
	box-shadow: var(--pnet-shadow-elevation-2)
}

.pfic-snippet-container .pfic-snippet-actions a.wprm-recipe-link:is(:hover, :focus) {
	box-shadow: var(--pnet-shadow-elevation-8)
}

.pfic-snippet-container .pfic-snippet-actions .pfic-favourite {
	display: none
}

.pfic-snippet-container .pfic-snippet-actions #pfic-add-fav[data-favourite="0"] {
	display: inline-flex;
}

.pfic-snippet-container .pfic-snippet-actions #pfic-del-fav[data-favourite="1"] {
	display: inline-flex;
}

/*
## Ingredients
*/

.blog .pfic_ingredient .pnet-card-title::before,
.search .pfic_ingredient .pnet-card-title::before {
	content: "ingredient: "
}

.pfic-ingredient-meta-container .pfic-ingredient-meta {
	margin-bottom: 0;
	row-gap: 0;
}

.pfic-ingredient-meta-container .pfic-binomen {
	font-style: italic;
}


/*
## Comments
*/

.pnet-form .comment-form-wprm-rating {
	column-gap: var(--pnet-h-space);
	display: flex;
	justify-content: flex-start;
	margin-bottom: 1rem;
	margin-top: 0;
}

.pnet-form .comment-form-wprm-rating label {
	flex: 0 0 8rem;
}

.pnet-form .comment-form-wprm-rating .wprm-rating-stars {
	flex: 1 1 32rem;
}

/* =============================================================================
# Media queries
*/

/*
## Dark mode
*/

@media screen and (prefers-color-scheme: dark) {
	:root {
		--background: rgba(18, 18, 18, 1);
		--input: rgba(18, 18, 18, 1);
		--on-surface: rgba(242, 242, 242, 0.87);
		--primary-400: rgba(121, 188, 242, 1);
		--primary: rgba(60, 160, 242, 1);
		--scrim: rgba(17, 24, 29, 0.87);
		--shadow: rgba(0, 0, 0, 1);
		--shadow-350: rgba(0, 0, 0, 0.90);
		--shadow-400: rgba(0, 0, 0, 0.95);
		--surface: rgba(17, 24, 29, 1);
		--surface-4: rgba(16, 29, 40, 1);
		--surface-8: rgba(15, 35, 52, 1);
	}

	a {
		color: var(--primary);
	}

	a:is(:hover, :focus) {
		color: var(--primary-400);
	}

	img {
		filter: brightness(var(--pnet-dim));
	}

	.pnet-card:is(:hover, :focus) img {
		filter: brightness(1);
	}
}

/*
## Print
*/

@media print {
	.wprm-recipe.wprm-recipe-roundup-item {
		page-break-inside: avoid;
	}

	.pfic-ingredient-links-container {
		display: none !important;
	}

	#content::after {
		content: "Reprinted from the Pfeiffer family Indian cookbook. All rights reserved.";
	}
}
