/*
Theme Name: Columbia Township
Theme URI: https://twp.columbia.mi.us
Author: Columbia Charter Township
Description: Custom block theme for Columbia Charter Township, Jackson County, Michigan. Built from the site's HTML scaffold; colors and type tokens defined in theme.json.
Version: 1.1.15
Requires at least: 6.5
Tested up to: 6.7
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: columbia-township
*/

/* Fonts are loaded via functions.php (Google Fonts in dev; see note there about
   self-hosting for production, per SITE-FACTS.md typography section). */

/* ---------------------------------------------------------------------------
   LINK STYLING
   The design signals links with color + background + hover-lift, not the
   browser's default blue underline. By default, links inherit their
   container's text color and carry no underline, so the hand-styled nav,
   footer, hero buttons and cards render as designed. Genuine inline links
   inside body copy (.prose) get a proper link treatment restored below.
   --------------------------------------------------------------------------- */
a:where(:not(.wp-element-button)) {
	color: inherit;
	text-decoration: none;
}

/* Primary navigation: dark text, blue on hover (the scaffold's header nav) */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
	color: #16242b;
	text-decoration: none;
	font-weight: 600;
}
.wp-block-navigation a:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: #0e5c86;
}
/* Keep the "Pay a Bill" CTA pill text white, including on hover */
.wp-block-navigation-item.is-style-pay-bill a:hover,
.wp-block-navigation-item.is-style-pay-bill .wp-block-navigation-item__content:hover {
	color: #fff !important;
}

/* Footer links inherit the footer's light tone; brighten to white on hover */
footer a:hover {
	color: #fff;
}

/* Real inline body links inside page content read as links: gov-blue,
   underlined, darker on hover */
.prose a {
	color: #0e5c86;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.prose a:hover {
	color: #0a3f5d;
}

/* Body copy inside page content areas (department pages, About, etc.) */
.prose h2 {
	font: 600 24px 'Newsreader';
	margin: 34px 0 14px;
	border-bottom: 2px solid #eef2f0;
	padding-bottom: 10px;
	color: #16242b;
}
.prose p {
	font-size: 15.5px;
	line-height: 1.7;
	color: #46555b;
	margin: 0 0 14px;
}
.prose ul {
	margin: 0 0 14px;
	padding-left: 20px;
	color: #46555b;
	font-size: 15px;
	line-height: 1.7;
}
.prose li {
	margin-bottom: 5px;
}

.img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #eef2f0;
	border: 1px dashed #b9c7c2;
	color: #7d8d88;
	font-size: 12px;
	padding: 8px;
}

.lift {
	transition: transform .15s ease, box-shadow .15s ease;
}
.lift:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(10,63,93,.12);
}

.urow:hover {
	background: #fafbfa;
}

/* "Pay a Bill" nav CTA pill, matches the scaffold's nav button treatment */
.wp-block-navigation-item.is-style-pay-bill > a,
.wp-block-navigation-item.is-style-pay-bill .wp-block-navigation-item__content {
	background: #1f7a4d !important;
	color: #fff !important;
	padding: 11px 20px !important;
	border-radius: 3px !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
}

/* Department directory filter (departments.html had the markup for this but
   no working script in the static export — wired up for real in functions.php) */
.dept-grid[hidden],
.dept-card[hidden],
.mpanel[hidden],
.fpanel[hidden] {
	display: none !important;
}

/* Utility text pill styles reused across the sitemap-style template legends
   are intentionally left page-scoped and are not part of the design system,
   so they are not reproduced sitewide. */

/* Forms & Minutes tab switchers: JS toggles the .is-active class, this
   makes that override the inline default styles set on each button. */
.ftab.is-active,
.mtab.is-active {
	border-bottom-color: #0e5c86 !important;
	color: #0e5c86 !important;
}

/* Two-column content areas (department/about/news/bill-pay bodies) collapse
   to a single column on tablets and phones; the sticky sidebar unsticks. */
@media (max-width:900px) {
	.r-main { grid-template-columns: 1fr !important; gap: 30px !important; }
	.r-aside { position: static !important; top: auto !important; }
	.r-chief { flex-direction: column !important; }
	.r-chief > img, .r-chief > .img-placeholder { width: 100% !important; height: 220px !important; }
}
@media (max-width:760px) {
	.r-mintable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.r-mintable > div { min-width: 680px; }
}

/* Staff Portal login card (wp_login_form markup) */
.ctc-login p { margin: 0 0 14px; }
.ctc-login label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: #1d2b30; }
.ctc-login input[type="text"],
.ctc-login input[type="password"] { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfdbd6; border-radius: 5px; font: inherit; font-size: 15px; }
.ctc-login input[type="text"]:focus,
.ctc-login input[type="password"]:focus { outline: 2px solid #2e86c0; outline-offset: 1px; border-color: #2e86c0; }
.ctc-login .login-remember label { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.ctc-login input[type="submit"] { background: #1f7a4d; color: #fff; border: 0; border-radius: 5px; padding: 12px 28px; font: 700 15px 'Public Sans', sans-serif; cursor: pointer; }
.ctc-login input[type="submit"]:hover { background: #18663f; }
