/*
Theme Name:   Share Upstate
Template:     twentytwentyfive
Description:  Child theme for Share Upstate. Colors, fonts, and sizes live in theme.json. This file holds the block styles you pick from the editor's Styles panel.
Version:      1.2.0
Author:       Share Upstate
Text Domain:  share-upstate
*/

/*
  HOW THIS FILE WORKS
  The comment block above is required. "Template: twentytwentyfive" is what
  tells WordPress this is a child of Twenty Twenty-Five. Don't change it.

  Most of this file defines BLOCK STYLES. functions.php adds each one to a
  block's Styles panel in the editor. When someone picks, say, "Pink Section"
  on a Group block, WordPress adds the class  .is-style-pink-section  and the
  rules below decide how it looks.

  Colors always come from theme.json through variables like
  var(--wp--preset--color--accent-3), so you never type a hex code here.
*/


/* ---------- Links ---------- */

/* Push the underline slightly below the text so it's easier to read. */
a {
	text-underline-offset: 0.2em;
}


/* ---------- Keyboard focus (accessibility) ---------- */

/* When someone moves through the page with the Tab key, show a clear
   outline around whatever they're on. Mouse users won't see this. */
:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-3);
	outline-offset: 3px;
}


/* =====================================================================
   PAGE SECTIONS  (Group block → Styles)
   Full-width bands that stack down the page.
   ===================================================================== */

/* All three section styles get the same top and bottom breathing room,
   and no gap between them so colored bands sit flush against each other. */
.wp-block-group.is-style-section,
.wp-block-group.is-style-pink-section,
.wp-block-group.is-style-section-line {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
	margin-top: 0;
	margin-bottom: 0;
}

/* "Pink Section": the soft awareness-pink background band. */
.wp-block-group.is-style-pink-section {
	background-color: var(--wp--preset--color--accent-1);
}

/* "Section with Top Line": a thin line across the top. */
.wp-block-group.is-style-section-line {
	border-top: 1px solid var(--wp--preset--color--accent-6);
}


/* =====================================================================
   BOXES  (Group block → Styles)
   ===================================================================== */

/* Shared rules for every box: rounded corners, inner padding,
   and no extra space above the first thing inside. */
.is-style-soft-card,
.is-style-outline-card,
.is-style-help-box {
	border-radius: 10px;
	padding: var(--wp--preset--spacing--50);
	box-sizing: border-box;
}
.is-style-soft-card > :first-child,
.is-style-outline-card > :first-child,
.is-style-help-box > :first-child {
	margin-top: 0;
}

/* "Soft Card": pale blue box with a soft border (the meeting box). */
.is-style-soft-card {
	background-color: var(--wp--preset--color--accent-5);
	border: 1px solid var(--wp--preset--color--accent-6);
}

/* "Outline Card": white box with a soft border.
   height: 100% makes cards side by side in columns line up evenly. */
.is-style-outline-card {
	height: 100%;
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent-6);
}

/* "Help Box": the light blue "struggling right now" box. */
.is-style-help-box {
	background-color: var(--wp--preset--color--accent-2);
}

/* Separator (line) blocks inside any box: soft color, full width. */
.is-style-soft-card .wp-block-separator,
.is-style-outline-card .wp-block-separator,
.is-style-help-box .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	opacity: 1;
	width: 100%;
}


/* =====================================================================
   TEXT  (Paragraph and Heading blocks → Styles)
   ===================================================================== */

/* "Date Box" paragraph: text in a pale rounded box (event dates). */
p.is-style-date-box {
	background-color: var(--wp--preset--color--accent-5);
	border-radius: 8px;
	padding: 1rem 1.25rem;
}

/* "Bold Link" paragraph: makes any link in it bold (e.g. "Get directions"). */
p.is-style-bold-link a {
	font-weight: 600;
}

/* "Phone Number" paragraph: the linked number is big, bold, easy to tap. */
p.is-style-phone a {
	font-size: 1.4rem;
	font-weight: 600;
	text-decoration: none;
	margin-left: 0.35em;
}

/* "Small Heading": a heading that looks like bold body text instead of a
   big title. Still a real heading for screen readers and Google. */
.wp-block-heading.is-style-small-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.25rem;
}
.wp-block-heading.is-style-small-heading + p {
	margin-top: 0;
}


/* =====================================================================
   BUTTONS
   ===================================================================== */

/* Core's "Outline" button style: blue text and border, no fill.
   (Without this it would inherit white text from the filled buttons.) */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--accent-3);
	border: 1.5px solid var(--wp--preset--color--accent-3);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--rose);
	border-color: var(--wp--preset--color--rose);
}
