/*
Theme Name:   Purple Pushpin Chapter
Theme URI:    https://purplepushpin.com
Description:  The chapter site theme for Purple Pushpin. A child of Kadence: the parent does the heavy lifting, and this holds the handful of things that are ours — the front-end styling for registration and directory blocks, the footer credit, and a safe place for a chapter's own CSS that survives a Kadence update. Designed once and cloned per chapter, so nothing chapter-specific is ever typed into it.
Author:       Purple Wave Creative
Author URI:   https://purplewavecreative.com
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  purple-pushpin-chapter
Tags:         blog, one-column, custom-colors, custom-menu, editor-style, full-site-editing
*/

/*
 * WHY THIS FILE IS NEARLY EMPTY, and should stay that way.
 *
 * Kadence's own settings do layout, colour, type and spacing far better than
 * hand-written CSS in a child theme, and they survive being changed by a person
 * who is not a developer. Anything set here instead is invisible to the
 * customiser, so the next person to touch the site cannot find it and cannot
 * change it without us.
 *
 * The rule: if Kadence can do it, do it in Kadence. This file is only for the
 * things it cannot — our own blocks, and genuine one-off fixes.
 */

/* -------------------------------------------------------------------------
 * The chapter's brand colour, borrowed from Chapter settings.
 *
 * Set as variables rather than applied directly, so a chapter that later wants
 * a different accent on one element can override a single variable instead of
 * fighting a selector. Values come from functions.php; these are the fallbacks
 * for a site where the plugin is switched off.
 * ---------------------------------------------------------------------- */

:root {
	--pushpin-brand: #4632c9;
	--pushpin-brand-dark: #251a72;
	--pushpin-ink: #101030;
	--pushpin-line: rgba(16, 12, 48, .12);
}

/* -------------------------------------------------------------------------
 * Our own front-end blocks.
 *
 * The plugin ships its own styles for these and prints them only on pages that
 * use them. What is here is the small amount of theme-side polish that depends
 * on Kadence's type scale, which the plugin cannot know about.
 * ---------------------------------------------------------------------- */

.pushpin-register,
.pushpin-directory {
	margin-block: clamp(28px, 5vw, 48px);
}

/* Give the registration panel the same rhythm as Kadence's own content blocks. */
.pushpin-register-heading {
	font-size: var(--global-kb-font-size-lg, 1.35rem);
}

/*
 * The seats-left warning. Deliberately a warm red rather than the brand colour:
 * it is the one piece of text on the page whose job is to be read before
 * anything else, and brand purple on a purple site is not that.
 */
.pushpin-register-left {
	color: #9a3412;
}

/* -------------------------------------------------------------------------
 * The footer credit.
 *
 * Small, quiet, and not a link farm — one branded anchor, no keyword text.
 * ---------------------------------------------------------------------- */

.pushpin-credit {
	margin: 0;
	font-size: 13px;
	opacity: .7;
}

.pushpin-credit a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Print.
 *
 * A chapter secretary printing an event page for a board packet should not get
 * the navigation, the footer or a registration form with empty boxes in it.
 * Costs nothing and comes up more often than you would think.
 * ---------------------------------------------------------------------- */

@media print {
	.site-header,
	.site-footer,
	.pushpin-register-form,
	.pushpin-notify-form {
		display: none !important;
	}

	body {
		font-size: 12pt;
	}
}
