/* Things theme.json can't express. Class names are set on blocks in the patterns. */

html { scroll-behavior: smooth; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--wp--preset--color--gold); margin-bottom: 4px !important; }

/* header */
.gm-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .gm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gm-header { top: 0; position: relative; } }
.gm-header .wp-block-site-logo img { background: #fff; border-radius: 50%; padding: 2px; }
.gm-header .wp-block-site-title a { color: #fff; text-decoration: none; }
.gm-header .wp-block-navigation a { text-decoration: none; font-size: 15px; font-weight: 500; }
.gm-header .wp-block-navigation a:hover { color: var(--wp--preset--color--gold-light); }
.gm-header .wp-block-button__link { padding: 9px 18px; white-space: nowrap; }
@media (max-width: 600px) {
	.gm-header .wp-block-buttons { display: none; }
	.gm-header .wp-block-site-title { font-size: 16px !important; }
}

/* hero */
.gm-hero {
	background: linear-gradient(90deg, rgba(8,40,24,.92) 0%, rgba(8,40,24,.75) 45%, rgba(8,40,24,.15) 100%),
		url(../img/ground.jpg) center 40% / cover no-repeat var(--wp--preset--color--green);
}
.gm-hero h1 { color: #fff; max-width: 12ch; margin-bottom: 20px; }
.gm-hero p { max-width: 46ch; }
.gm-hero-inner > * { margin-left: 0 !important; margin-right: 0 !important; }
.gm-hero .eyebrow { color: var(--wp--preset--color--gold-light); }
.gm-hero .gm-crest img { width: 120px; height: 120px; background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.is-style-outline-white .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; }

/* fact strip: 4 across, 2x2 on phones */
@media (max-width: 700px) {
	.wp-block-columns.gm-strip-cols { flex-wrap: wrap !important; row-gap: 18px; }
	.wp-block-columns.gm-strip-cols > .wp-block-column { flex-basis: 40% !important; flex-grow: 1; }
}
.gm-strip p { margin: 0; }
.gm-strip strong { display: block; font-family: var(--wp--preset--font-family--display); font-size: 22px; color: var(--wp--preset--color--green); }
.gm-strip .gm-fact { font-size: 14px; color: var(--wp--preset--color--muted); }

/* timeline */
ul.gm-timeline { list-style: none; border-left: 3px solid var(--wp--preset--color--line); padding-left: 22px; margin: 0; }
ul.gm-timeline li { position: relative; margin-bottom: 20px; }
ul.gm-timeline li::before { content: ""; position: absolute; left: -31px; top: 7px; width: 15px; height: 15px; border-radius: 50%;
	background: var(--wp--preset--color--green-bright); border: 3px solid var(--wp--preset--color--paper); }
ul.gm-timeline strong { color: var(--wp--preset--color--green); }

.gm-photo img { border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.12); width: 100%; height: auto; }

/* cards */
.gm-card { background: var(--wp--preset--color--paper); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }
.gm-card .gm-num { font-family: var(--wp--preset--font-family--display); font-size: 34px; font-weight: 800; color: var(--wp--preset--color--gold); line-height: 1; margin: 0; }
.gm-card p { color: var(--wp--preset--color--muted); }

/* news cards */
.gm-post-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; overflow: hidden; height: 100%; }
.gm-post-card .wp-block-post-featured-image { margin: 0; }
.gm-post-card > :not(.wp-block-post-featured-image) { margin-left: 20px; margin-right: 20px; }
.gm-post-card > :last-child { margin-bottom: 20px; }
.gm-post-card .wp-block-post-title a { color: var(--wp--preset--color--green); text-decoration: none; }
.gm-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.gm-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--muted); font-size: 15px; }
.wp-block-post-featured-image img { object-fit: cover; }

/* map */
.gm-map iframe { width: 100%; height: 360px; border: 0; border-radius: 14px; background: var(--wp--preset--color--line); display: block; }

/* scorer phone mock-up */
.gm-phone { width: 200px; height: 360px; border-radius: 30px; border: 8px solid #0b2219; background: #f4f6f3; margin: 0 auto;
	padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.gm-phone .sc { background: #fff; border-radius: 10px; padding: 10px; color: #142016; }
.gm-phone .sc small { color: #5d6b60; font-size: 10px; display: block; }
.gm-phone .sc b { font-size: 30px; font-family: var(--wp--preset--font-family--body); }
.gm-phone .pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: auto; }
.gm-phone .pad i { font-style: normal; background: #e8ede7; color: #142016; border-radius: 6px; text-align: center; padding: 8px 0; font-weight: 700; font-size: 13px; }
.gm-phone .pad i.w { background: #b42318; color: #fff; }

/* contact */
.gm-contact dt { font-weight: 600; color: var(--wp--preset--color--green); margin-top: 14px; }
.gm-contact dt:first-child { margin-top: 0; }
.gm-contact dd { margin: 2px 0 0; }

/* single post */
.single .wp-block-post-content img { border-radius: 10px; height: auto; }
.gm-footer a { color: #e2ebe5; }
