/*
Theme Name: Chattanooga Sports Hall of Fame
Author: heronco
Author URI: https://www.heronco.com
Tags: full-site-editing, editor-style, block-styles, block-patterns
Requires at least: 6.3
Requires PHP: 8.0
Version: 2.0.0
License: Proprietary - For authorized Heron Design client sites only


Description: Dynamic block theme with configurable style personalities
*/
/*
 * Copyright (c) 2025 Heron Design
 * All Rights Reserved.
 * 
 * This software is proprietary and confidential. Unauthorized copying,
 * distribution, or use of this software is strictly prohibited.
 * 
 * Licensed for use only on authorized Heron Design client websites.
 */


/*
 * This file contains ONLY static styles that don't change per client.
 * Dynamic styles (colors, spacing, border-radius) are generated via Theme_Config
 */

/* ==========================================================================
   BASE STYLES (Static)
   ========================================================================== */

   html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}



/* ==========================================================================
   CONTENT STRUCTURE (Static)
   ========================================================================== */

/* Ensure the footer sticks to the bottom */
.wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wp-site-blocks > main {
    margin-block-start: 0 !important;
}

.site-footer {
margin-top: auto;
}

.wp-site-blocks .wp-block-post-content {
	margin-block-start: 0;
}

.wp-block-post-content p,
.wp-block-post-content ul li {
	margin-block-start: 0;
	font-size: 1rem;
	padding: 0.5em;
}

h2.has-reg-font-weight, h3.has-reg-font-weight {
	font-weight: 400;
}

body:not(.home) h1.wp-block-post-title {margin-top:1em}


/* ==========================================================================
   MEDIA & IMAGES (Static structure)
   Note: Border radius styles moved to registered-block-styles.css
   ========================================================================== */

.wp-block-media-text.is-stacked-on-mobile > .wp-block-media-text__media {
	margin: 0 1em;
}

.wp-block-media-text__content p {
	padding: 0;
	margin-top: 1em;
}

.wp-block-media-text.text-has-0-padding-mobile .wp-block-media-text__content {
	padding: 0;
}

/* ==========================================================================
   UTILITY CLASSES (Static)
   ========================================================================== */

h2.price {
	font-size: 4rem;
}

.wide-button {
	padding-left: 3.5em;
	padding-right: 3.5em;
}

.text-has-shadow, .has-text-shadow {
	text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.67);
}

.has-padding-0 {
	padding: 0 !important;
}

.align-items-end {
	align-items: end !important;
}

ul.list-style-none {
	list-style: none;
}

figure.hide-caption figcaption {
	display: none;
}



/* ==========================================================================
   COVER BLOCKS (Static)
   ========================================================================== */

 .cover-hero {
	min-height: 700px;
}

.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more {
	flex-basis: 116px;
	max-width: 116px;
}

.wp-block-cover .wp-block-cover__inner-container .wp-block-column.more h2 {
	max-width: 100%;
}

.wp-block-cover .wp-block-cover__inner-container .more-container {
	margin: 0;
	padding: 0;
}

.wp-block-cover.has-custom-content-position.is-position-top-left.inner-is-centered
	.wp-block-cover__inner-container {
	margin: 0 auto;
}

.wp-block-cover.inner-background-none .wp-block-cover__inner-container {
	background: none;
	padding: unset;
}

.wp-block-cover .wp-block-cover__inner-container h2.wp-block-heading {
	padding: 0;
}

/* ==========================================================================
   HOME PAGE
   ========================================================================== */
   
/* Hero tagline: the oversized year sits on the same baseline as the
   surrounding text. Do NOT reintroduce a negative margin here — that was
   the old hack this replaces. */
.hof-tagline-row {
	align-items: last baseline !important;
}

.hof-tagline-row .year {
	font-size: clamp(5rem, 10vw, 10rem);
	line-height: 1;
	margin: 0 0 0 6px;
	padding-inline: 0;
}

.hof-tagline-row h2 {
	margin: 0;
}

@media (max-width: 781px) {

	/* Stack the tagline: sentence on its own line, "60 years" below */
	body.home .hof-tagline-row {
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	/* Sentence heading takes the full first line */
	body.home .hof-tagline-row > h2:first-child {
		flex-basis: 100%;
	}

	/* Smaller tagline type on mobile */
	body.home .hof-tagline-row h2.wp-block-heading {
		font-size: 1.75rem !important;
	}
}

body.home .wp-block-button.green a {background-color:var(--wp--preset--color--green);border-color:var(--wp--preset--color--green)}

body.home .markers {margin-top:-44px;margin-bottom:-44px;position:relative}

body.home .wp-block-cover.home-hero {min-height:555px;width:100vw !important} 

body.home .home-hero .wp-block-cover__inner-container 
{margin:0 auto;padding-left:2em;height:100%}

body.home .home-hero .wp-block-cover__inner-container .wp-container-core-group-is-layout-5035dda8 {height:100%}

body.home .wp-block-cover.home-hero h2.wp-block-heading {font-size:2rem}

@media (max-width:768px) {
    
body.home .wp-block-cover.home-hero 
{min-height:333px;padding:0}
.wp-block-cover.home-hero .wp-block-cover__inner-container 
{width:100vw !important;position:relative;height:333px;padding-left:.5em}

body.home .home-hero-inner 
{position:relative; top:175px}

body.home h1 
{font-size:1.5rem}
.wp-block-cover.home-hero h2.wp-block-heading {font-size:1rem}
}



/* ==========================================================================
   HALL OF FAME - DIRECTORY
   ========================================================================== */

/* Only break into columns once the list is long enough to be worth it (11+). */
ul.hof-directory:has(li:nth-child(11)) {
	column-count: 3;
	column-gap: 1.5em;
	column-rule: 1px solid #ccc;
	list-style: none;
}

ul.hof-directory li {
	break-inside: avoid;
	padding: 0.25em;
}

@media (max-width:768px) {
    ul.hof-directory:has(li:nth-child(11)) {
        padding-left:0;
    }
}

ul.hof-recognitions {
	list-style: none;
	font-weight: bold;
	font-size: 1.25rem;
	padding-inline-start:20px
}

.wp-block-post-navigation-link.post-navigation-link-next {
    margin-left: auto;
    text-align: right;
}

p.hof-ceremony-video {
	padding-left: 40px;
}

/* ==========================================================================
   HALL OF FAME - ATHLETE PAGES
   ========================================================================== */

body.single-athlete .entry-content figure {
	max-width: 600px;
	margin: 2em auto;
	border: solid 1px var(--wp--preset--color--secondary);
	box-shadow: var(--wp--preset--shadow--natural);
}

/* Athlete page: Latest News list */
.hof-athlete-news-list {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.hof-athlete-news-item {
	margin-bottom: 1em;
}

.hof-athlete-news-item a {
	display: flex;
	align-items: center;
	gap: 1em;
}

.hof-news-thumb {
	width: 80px;
	height: 80px;
	object-fit: cover;
	flex-shrink: 0;
}

/* Equal-height news cards in Query Loop grids */
.hof-news-grid .wp-block-post-template.is-layout-grid > .wp-block-post {
	display: flex;
}

.hof-news-grid .wp-block-post-template.is-layout-grid > .wp-block-post > .wp-block-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Pin "Read more" to the card bottom so short posts don't float it mid-card */
.hof-news-grid .wp-block-post-template .wp-block-read-more {
	margin-top: auto;
}

/* ==========================================================================
   HALL OF FAME - BANQUET PAGES
   ========================================================================== */

ul.hof-directory.hof-honoree-list {
	column-count: 1;
	list-style: none;
	text-align:center;
	margin:1em 0 2em;
	padding:0;
}

ul.hof-directory.hof-banquet-list:has(li:nth-child(11)) {
	column-count: 2;
	list-style: none;
	text-align:center;
}

ul.hof-directory.hof-honoree-list li, ul.hof-directory.hof-banquet-list li {
	font-weight: 600;
	line-height: 1.5;
	padding: 0.25em;
	margin-bottom: 0.5em;
}

ul.hof-directory .hof-category {
	font-weight:400;
}

ul.hof-directory.hof-honoree-list .hof-category {
	display: block;
}

/* ==========================================================================
   GALLERIES
   Core lays galleries out with flexbox and sizes each figure with
   width: calc(33.33% - …). Its selectors carry :not(#individual-image),
   which is ID-level specificity, so overriding requires !important.
   We swap to grid: tracks are minmax(0, 1fr), which is immune to the
   ~3000px max-content width that sizes="auto" size containment gives
   lazy-loaded images.
   ========================================================================== */

.wp-block-gallery.has-nested-images {
	--hof-gallery-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--hof-gallery-columns), minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20, 1rem);
}

/* Honour the block editor's Columns control. */
.wp-block-gallery.has-nested-images.columns-1 { --hof-gallery-columns: 1; }
.wp-block-gallery.has-nested-images.columns-2 { --hof-gallery-columns: 2; }
.wp-block-gallery.has-nested-images.columns-3 { --hof-gallery-columns: 3; }
.wp-block-gallery.has-nested-images.columns-4 { --hof-gallery-columns: 4; }
.wp-block-gallery.has-nested-images.columns-5 { --hof-gallery-columns: 5; }
.wp-block-gallery.has-nested-images.columns-6 { --hof-gallery-columns: 6; }
.wp-block-gallery.has-nested-images.columns-7 { --hof-gallery-columns: 7; }
.wp-block-gallery.has-nested-images.columns-8 { --hof-gallery-columns: 8; }

@media (max-width: 781px) {
	.wp-block-gallery.has-nested-images {
		--hof-gallery-columns: 2 !important;
	}
}

@media (max-width: 480px) {
	.wp-block-gallery.has-nested-images {
		--hof-gallery-columns: 1 !important;
	}
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
	/* Kill core's calc() width — grid tracks size the item now. */
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	display: block !important;
	border-radius: 12px;
	overflow: hidden;
	background: var(--wp--preset--color--primary);
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	/* Undo core's flex: 1 0 0% / height: 100%, which collapse the
	   image to zero height once the figure is no longer a flex parent. */
	flex: none !important;
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 5 / 4;
	object-fit: cover !important;
}

/* Core absolutely-positions gallery captions over the image with a gradient.
   Detach into a solid bar below — readable at zoom, no overlap. */
/* .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static !important;
	background: none !important;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: left;
	padding: 0.75em;
	margin: 0;
	max-height: none;
	overflow: visible;
	flex-grow: 0 !important;
} */

/* --------------------------------------------------------------------------
   Caption bar — fixed height so rows align when a name wraps to two lines.
   4rem == 2 lines at 0.95rem/1.35 plus 0.75em padding top and bottom.
   -------------------------------------------------------------------------- */

.wp-block-gallery.has-nested-images figure.wp-block-image {
	position: relative;
	--hof-caption-height: 4rem;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static !important;
	background: var(--wp--preset--color--primary) !important;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.35;
	text-align: left;
	padding: 0.75em;
	margin: 0;
	box-sizing: border-box;
	height: var(--hof-caption-height);
	max-height: none;
	display: flex;
	align-items: center;
	overflow: hidden;
}

/* Third line would break row alignment — clamp it. */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption > * ,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* --------------------------------------------------------------------------
   Hover shade — drops down over the image only, never the caption.
   The plus rides down with it as a centred background-image.
   -------------------------------------------------------------------------- */

.wp-block-gallery.has-nested-images figure.wp-block-image::after {
	content: "";
	position: absolute;
	inset: 0 0 var(--hof-caption-height) 0;
	background-color: rgba(0, 0, 0, 0.55);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 44px 44px;
	transform: translateY(-100%);
	transition: transform 300ms ease;
	pointer-events: none;
	z-index: 1;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:hover::after,
.wp-block-gallery.has-nested-images figure.wp-block-image:focus-within::after {
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.has-nested-images figure.wp-block-image::after {
		transform: none;
		opacity: 0;
		transition: opacity 200ms ease;
	}
	.wp-block-gallery.has-nested-images figure.wp-block-image:hover::after,
	.wp-block-gallery.has-nested-images figure.wp-block-image:focus-within::after {
		opacity: 1;
	}
}

/* ==========================================================================
   SEARCH & FILTER
   ========================================================================== */

.wp-block-details.search-box {
	text-transform: uppercase;
	border-radius: 12px;
	padding: 0.25em 1em;
	background: var(--wp--preset--color--primary);
}

.wp-block-details.search-box summary {
	font-size: 20px;
	padding: 0.5em;
	border-radius: 2px;
}

.wp-block-details.search-box summary:hover,
.wp-block-details.search-box summary:focus {
	list-style-type: disclosure-open;
}

.wp-block-details.search-box[open] {
	border: solid 2px var(--wp--preset--color--primary);
	background: #fff !important;
	border-radius: 12px;
}

.wp-block-details.search-box[open] summary {
	color: var(--wp--preset--color--primary);
	background: #fff;
}

.searchandfilter input[type="text"] {
	padding: 1em;
	border-radius: 10px;
	outline: none;
	border: none;
	width: 240px;
	background: #edf2fa;
}

.searchandfilter select {
	padding: 0.5em 1em;
	border-radius: 9px;
	font-size: 16px;
	background: #edf2fa;
}

.searchandfilter input[type="submit"] {
	font-size: 1rem;
	text-transform: uppercase;
	padding: 0.5em 1em;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-weight: 600;
	border-radius: 4px;
	border-color: var(--wp--preset--color--primary);
}

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

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background: #fff;
	color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   RESPONSIVE - DESKTOP
   ========================================================================== */

.show-on-mobile,
.show-on-desktop,
.show-on-tablet {
	display: none !important;
}

@media screen and (min-width: 900px) {
	.show-on-desktop {
		display: flex !important;
	}
}

/* ==========================================================================
   RESPONSIVE - TABLET
   ========================================================================== */

@media screen and (min-width: 521px) and (max-width: 899px) {
	.show-on-tablet {
		display: flex !important;
	}

}

@media screen and (max-width: 899px) {

    .wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid {
        grid-template-columns: 1fr;
    }
    
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media screen and (max-width: 520px) {
	.show-on-mobile {
		display: flex !important;
	}
	.hide-on-mobile {display:none}

	body:not(.home) h1.wp-block-post-title {
		margin-top: 0;
		font-size: 2rem;
	}

	ul.hof-directory:has(li:nth-child(11)) {
		column-count: 2;
	}

    .wp-block-site-logo img {max-width:200px}
	ol,
	ul {
		font-size: 1.25em;
	}

	.wp-block-post-title {
		padding: 0;
	}

	h3.wp-block-heading {
		font-size: 1.65em;
		line-height: 1.1;
		margin: 0;
	}
	
	footer h3.wp-block-heading {
	    font-size:1.3rem;
	    margin-top:.5em;
	}

	.wp-block-post-content p,
	.wp-block-post-content ul li, .wp-block-post-content ol li {
		line-height: 1.15;
		margin: 0.5em;
		padding:0;
	}

	.wp-block-post-content p.has-padding-1em {
		padding-left: 1em;
		padding-right: 1em;
	}

	.wp-block-button a.wp-block-button__link {
		font-size: 1.2em !important;
	}
	
	footer .wp-block-button a.wp-block-button__link {
		font-size: 1rem !important;
	}


	.wp-block-media-text__content p {
		padding: 0;
		margin-top: 1em;
	}

	.wide-button {
		padding-left: 2.5em;
		padding-right: 2.5em;
	}
	
	footer figure {max-width:80px}
	
	footer .wp-block-column.is-vertically-aligned-top:not(:last-child) {border-bottom:solid .5px;padding-bottom:.5em}
}

/* ==========================================================================
   ADDITIONAL UTILITY CLASSES (Static)
   ========================================================================== */

.wp-block-details summary {
	font-size: 1rem;
	margin-bottom:6px;
	padding:.5em;
	background-color:var(--wp--preset--color--primary);
	border-radius:0 8px 8px 0;
	color:var(--wp--preset--color--base)
}

.wp-block-details[open] {
    border-left: solid 1px var(--wp--preset--color--primary);
    border-bottom: solid 1px var(--wp--preset--color--primary);
    border-radius:0 0 0 8px;
}

.wp-block-details {
    margin-bottom:1em
}
.wp-block-details > :not(summary) {
    padding:1em
}

.wp-block-details.is-style-details-plus summary {
    background-color:var(--wp--preset--color--base);
    color:var(--wp--preset--color--primary);
}
.wp-block-details.is-style-details-plus[open]{
    border-left:none;border-bottom:none;border-radius:0
}
.wp-block-details.is-style-details-plus{
    width:900px;margin-bottom:.5em;max-width:90vw;
}
.wp-block-details.is-style-details-plus p, .wp-block-details.is-style-details-plus li {
    padding: .5em 1em 0 2em
}

@media screen and (max-width: 780px) {
.wp-block-details.is-style-details-plus {width:90vw}
}

ol,
ul {
	font-size: 1rem
}

.wp-block-group.is-vertical h2.wp-block-heading {
	padding: 0;
}

/* ==========================================================================
   BLOCK-SPECIFIC OVERRIDES (Static)
   ========================================================================== */

/* TABLES */
.wp-block-table .has-fixed-layout {
    width:96%;
    margin:1em;
    font-size:1rem
}
.wp-block-table th {color: var(--wp--preset--color--white);
    background: var(--wp--preset--color--dark-purple);
}

/* Latest Comments */
.wp-block-latest-comments {
	padding-left: 0;
}

/* Page break before utility */
.page-break-before {
	page-break-before: always;
}