/*
Theme Name: Superior Hiking
Theme URI: https://superiorhiking.com
Description: Child theme of Ollie for SuperiorHiking.com. Brand colours, fonts (Outfit, Lato, Montserrat, hosted locally), hike page template, care note and newsletter patterns.
Author: Karma Knot
Author URI: https://karmaknot.com
Template: ollie
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: superior-hiking
*/

/* Ollie's font names point to the Superior Hiking fonts, so Ollie and Ollie Pro
   patterns use the brand fonts. (Parent font presets win over the child's
   when the names match, so the child uses its own names: sh-body, heading,
   sh-label.) */
body {
	--wp--preset--font-family--primary: var(--wp--preset--font-family--sh-body);
	--wp--preset--font-family--expanded: var(--wp--preset--font-family--sh-label);
	--wp--preset--font-family--condensed: var(--wp--preset--font-family--heading);
	--wp--preset--font-family--narrow: var(--wp--preset--font-family--heading);
}

/* Spaced capital labels, like the logo's H·I·K·I·N·G (paragraph style "Eyebrow"). */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--sh-label);
	font-weight: 600;
	font-size: .78rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

/* Group style "Contours": faint lake-depth lines, one stretched image (no repeats). */
.is-style-contours {
	background-image: url("assets/images/contours.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

/* Group style "Card": rounded, soft shadow. */
.is-style-card {
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	box-shadow: 0 6px 24px rgba(31, 64, 116, .08);
}

/* Button style "Outline": navy outline pill. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--main);
	border-color: var(--wp--preset--color--main);
}

/* Tags as pills (post terms in the hike header). */
.is-style-pills a {
	display: inline-block;
	font-family: var(--wp--preset--font-family--sh-label);
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	background: var(--wp--preset--color--sky-soft);
	color: var(--wp--preset--color--main);
	padding: .45em .9em;
	border-radius: 999px;
	text-decoration: none;
	margin: 0 .3em .3em 0;
}
.is-style-pills .wp-block-post-terms__separator { display: none; }

/* Care note box. */
.sh-care-note {
	border-left: 6px solid var(--wp--preset--color--primary);
	border-radius: 16px;
}

/* Rounded images inside hike content. */
.single-post .wp-block-post-content img { border-radius: 16px; }

/* Hike finder (homepage hero and Find a Hike): two selects and a button in one row. */
.sh-finder {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}
.sh-finder select {
	flex: 0 1 18rem;
	font: inherit;
	padding: .8em 1em;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border-dark);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--ink);
}
.sh-finder button { flex: 0 0 auto; cursor: pointer; border: 0; }

/* Photo cards: image flush to the card edge, linked titles without underline. */
.is-style-card .wp-block-image { margin: 0; }
.is-style-card .wp-block-image img { width: 100%; display: block; }
.is-style-card h3 a { text-decoration: none; color: var(--wp--preset--color--main); }
.is-style-card h3 { margin: 0; }
.is-style-card p { font-size: .95rem; color: var(--wp--preset--color--secondary); margin-top: .35em; }

/* Hero cover text. */
.wp-block-cover .is-style-eyebrow { color: var(--wp--preset--color--primary-alt); }
.wp-block-cover h1 { color: var(--wp--preset--color--base); }
.wp-block-cover a { color: var(--wp--preset--color--primary-alt); }

/* WP Go Maps: full width and rounded inside pages. */
.wp-block-shortcode .wpgmza_map, .wpgmza_map { border-radius: 16px; overflow: hidden; }

/* AIOS Forms in the navy newsletter band: light labels, white fields, green button. */
.has-main-background-color .aios-form { color: var(--wp--preset--color--base); }
.has-main-background-color .aios-msg-error { color: #ffb4ab; }
.aios-form button.wp-element-button { padding: .85em 1.6em; border-radius: 999px; }

/* Founder photo on the homepage: 70% of its column (founder, 2026-11-25). */
.sh-photo-70 { max-width: 70%; }

/* Checklists (Hiking basics): green check marks instead of bullets. */
.sh-checklist { list-style: none; padding-left: 0; }
.sh-checklist li { position: relative; padding-left: 2rem; margin-bottom: .6rem; }
.sh-checklist li::before {
	content: "";
	position: absolute; left: 0; top: .2em;
	width: 1.2rem; height: 1.2rem; border-radius: 50%;
	background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* Breadcrumbs (Rank Math) on hike pages. */
.rank-math-breadcrumb { font-size: .85rem; color: var(--wp--preset--color--secondary); }
.rank-math-breadcrumb a { color: var(--wp--preset--color--secondary); text-decoration: none; }
.rank-math-breadcrumb a:hover { text-decoration: underline; }
.rank-math-breadcrumb p { margin: 0; }

/* Header dropdowns. */
.wp-block-navigation .wp-block-navigation__submenu-container {
	border-radius: 12px;
	border: 1px solid var(--wp--preset--color--border-light) !important;
	box-shadow: 0 10px 30px rgba(31, 64, 116, .12);
	padding: .4rem 0;
	min-width: 230px !important;
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem 1.1rem; }

/* Photos placed by the page builder fill their column (map card, founder, Leave No Trace). */
.wp-block-image.sh-img img { width: 100%; height: auto; }
