/*
Theme Name: Positive Hope Counseling
Theme URI: https://positivehopecounseling.com/
Author: AgencyOS
Author URI: https://positivehopecounseling.com/
Description: Converted from the approved AgencyOS HTML output for Positive Hope Counseling LLC — a licensed therapy practice in New Mexico. Every section is an ACF Flexible Content layout, so the client can reorder, hide and edit everything from wp-admin. Requires Advanced Custom Fields Pro.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: positive-hope-counseling
Tags: accessibility-ready, custom-colors, custom-logo, custom-menu, translation-ready, one-column
*/

/* ============================================================================
   The approved design lives in:
     assets/css/tokens.css   design tokens (loaded everywhere)
     assets/css/home.css     the approved homepage
     assets/css/main.css     the approved inner pages
   all enqueued from inc/enqueue.php.

   This file carries only what a WordPress front end adds on top of the approved
   static output: the editor's own block/alignment classes, core's accessibility
   helpers, comment/pagination output, and the read-more card media. Every value
   below reuses an approved token — no new design values are introduced here.
   ============================================================================ */

/* ── WordPress core accessibility helpers ─────────────────────────────────── */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}
.screen-reader-text:focus {
	display: block;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto;
	z-index: 100000;
	background: var(--color-bg-white);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-md);
	color: var(--color-primary);
	font-size: var(--text-small);
	font-weight: 600;
	text-decoration: none;
}

/* ── Editor content (the_content) inside an approved section ──────────────── */
.phc-entry {
	max-width: var(--container-narrow);
	margin: 0 auto;
	color: var(--color-text-medium);
	font-size: var(--text-body);
	line-height: 1.75;
}
.phc-entry > * + * { margin-top: var(--space-stack); }
.phc-entry h2,
.phc-entry h3,
.phc-entry h4 { color: var(--color-text-dark); font-family: var(--font-heading); line-height: 1.25; }
.phc-entry h2 { font-size: var(--text-h3); margin-top: var(--space-gap); }
.phc-entry h3 { font-size: var(--text-h4); margin-top: var(--space-gap); }
.phc-entry a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.phc-entry a:hover { color: var(--color-primary-dark); }
.phc-entry ul,
.phc-entry ol { padding-left: 1.25rem; }
.phc-entry ul { list-style: disc; }
.phc-entry ol { list-style: decimal; }
.phc-entry li + li { margin-top: 0.4rem; }
.phc-entry blockquote {
	border-left: 3px solid var(--color-secondary);
	padding-left: 1.25rem;
	font-style: italic;
}
.phc-entry img { border-radius: var(--radius-md); }
.phc-entry table { width: 100%; border-collapse: collapse; }
.phc-entry th,
.phc-entry td { border: 1px solid var(--color-border); padding: 0.6rem 0.8rem; text-align: left; }

/* Core block alignment classes. */
.phc-entry .alignleft { float: left; margin: 0 var(--space-gap) var(--space-stack) 0; }
.phc-entry .alignright { float: right; margin: 0 0 var(--space-stack) var(--space-gap); }
.phc-entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.phc-entry .wp-caption-text,
.phc-entry figcaption { font-size: var(--text-small); color: var(--color-text-light); margin-top: 0.5rem; }

/* ── Post card media ─────────────────────────────────────────────────────── */
.phc-card-media { display: block; margin-bottom: var(--space-stack); border-radius: var(--radius-md); overflow: hidden; }
.phc-card-media img { width: 100%; height: auto; display: block; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.phc-pagination { margin-top: var(--space-gap); }
.phc-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.phc-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: var(--color-bg-white);
	color: var(--color-text-dark);
	font-size: var(--text-small);
	font-weight: 600;
	transition: color var(--transition-base), background var(--transition-base), border-color var(--transition-base);
}
.phc-pagination .page-numbers:hover { color: var(--color-primary); border-color: var(--color-primary); }
.phc-pagination .page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-text-inverse);
}
.phc-pagination .page-numbers:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* ── Comments ────────────────────────────────────────────────────────────── */
.comment-respond,
.comments-area { max-width: var(--container-narrow); margin: var(--space-section) auto 0; }
.comments-area .comment-list { display: flex; flex-direction: column; gap: var(--space-gap); }
.comments-area .comment-list li { list-style: none; }
.comment-respond label { display: block; font-size: var(--text-small); font-weight: 600; margin-bottom: 0.4rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
	width: 100%;
	padding: 0.7rem 1rem;
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-sm);
	font-family: var(--font-body);
	font-size: var(--text-body);
	min-height: 44px;
	margin-bottom: var(--space-stack);
}
.comment-respond input:focus,
.comment-respond textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(74,123,168,0.15); }

/* ── Widget area (only rendered if the client adds a widget) ──────────────── */
.widget-area { display: flex; flex-direction: column; gap: var(--space-gap); }
.widget-title { font-size: var(--text-h4); color: var(--color-text-dark); margin-bottom: var(--space-stack); }

/* ── Admin bar offset for the fixed header ───────────────────────────────── */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar .site-header { top: 46px; }
}
