/* Small touches that theme.json can't express. */

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

::selection { background: var(--wp--preset--color--accent); color: #fff; }

/* Top "help right now" strip */
.t15-topbar a { color: inherit; font-weight: 700; }
.t15-topbar p { margin: 0; }

/* Header */
.t15-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.t15-header .wp-block-site-logo img { max-height: 56px; width: auto; }
.t15-header .wp-block-navigation .wp-block-navigation-item__content { padding: .35rem .2rem; }
.t15-header .wp-block-navigation .current-menu-item > a,
.t15-header .wp-block-navigation a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--wp--preset--color--accent); }

/* Eyebrow labels */
.t15-eyebrow {
	text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
	font-size: .85rem !important; color: var(--wp--preset--color--primary);
}

/* White card that lifts off a colored section */
.t15-card-lift {
	box-shadow: 0 10px 30px -12px rgba(20, 40, 35, .25);
}

/* Footer */
.t15-footer a { color: inherit; }
.t15-footer a:hover { color: #fff; text-decoration-thickness: 2px; }
.t15-footer h2 { color: #fff; }
.t15-footer ul { list-style: none; padding: 0; margin: 0; }
.t15-footer li { margin: .35rem 0; }

/* Readable focus everywhere */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Posts list */
.t15-post-list .wp-block-post { padding-bottom: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.t15-post-list .wp-block-post:last-child { border-bottom: 0; }
.t15-footer .wp-block-site-title a { color: #fff; }

/* Header, page and footer sit flush; sections handle their own spacing. */
.wp-site-blocks > * + * { margin-block-start: 0; }
.t15-landing .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* Home banner photo */
.t15-hero .t15-eyebrow--light { color: #C9D8E9; }
.t15-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.t15-hero-text { max-width: 620px; }
/* Search card overlaps the bottom of the banner, leaving the sunset visible. */
.t15-findhelp-band { position: relative; z-index: 2; }
.t15-overlap { margin-top: -6rem !important; }
@media (max-width: 781px) {
	/* On phones the text covers the whole photo, so darken it evenly. */
	.t15-hero .wp-block-cover__background { background: linear-gradient(180deg, rgba(16,36,24,.8) 0%, rgba(16,36,24,.55) 70%, rgba(16,36,24,.3) 100%) !important; }
	.t15-hero { min-height: 480px !important; }
	.t15-overlap { margin-top: -4rem !important; }
}

/* News list: drop the image column when a post has no featured image. */
.t15-news-list .wp-block-post { padding: 1.5rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.t15-news-list .wp-block-post:first-child { padding-top: .5rem; }
.t15-news-list .wp-block-columns:not(:has(.wp-block-post-featured-image)) > .wp-block-column:first-child { display: none; }
.t15-news-list .wp-block-columns:not(:has(.wp-block-post-featured-image)) > .wp-block-column:last-child { flex-basis: 100% !important; }
.t15-news-list .wp-block-post-title a { text-decoration: none; }
.t15-news-list .wp-block-post-title a:hover { text-decoration: underline; }

/* Additional Resources page */
.t15-resource-card h2 { margin-bottom: .25rem; }
.t15-resource { margin: 0; padding-top: .9rem; border-top: 1px solid var(--wp--preset--color--line); line-height: 1.5; }
.t15-resource a { text-decoration-thickness: 1px; }
.t15-resource strong a { color: var(--wp--preset--color--primary-dark); }
.t15-resource__contact { display: inline-block; margin-top: .3rem; font-weight: 700; color: var(--wp--preset--color--contrast); }

/* Coming Soon page */
.t15-coming-soon .t15-cs-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
.t15-coming-soon .t15-cs-title a { color: #fff; }
.t15-coming-soon h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.t15-coming-soon .t15-cs-help p { margin: 0; font-size: 1rem; }
.t15-coming-soon .t15-eyebrow--light { color: #C9D8E9; }
.t15-coming-soon .wp-block-cover__inner-container { text-align: center; }
