/* chicagoweddingphotographers.info: site-wide identity (Chicago flag) */
:root { --cwp-flag-blue: #b3ddf2; --cwp-star: #c8102e; }

.site-header { border-bottom: 3px solid var(--cwp-flag-blue); }
.main-title { font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 1.125rem; font-weight: 600; letter-spacing: 0; }
.main-title a::before { content: "\2736"; color: var(--cwp-star); margin-right: 0.4em; font-size: 1.15em; }
.site-header .inside-header { padding-top: 1rem; padding-bottom: 1rem; }
.site-info { font-family: "Schibsted Grotesk", system-ui, sans-serif; }

/* Footer links */
.cwp-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem 1.75rem; }
.cwp-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.cwp-footer a { color: inherit; text-decoration: none; }
.cwp-footer a:hover { text-decoration: underline; }
.main-navigation .main-nav ul li a { font-family: "Schibsted Grotesk", system-ui, sans-serif; font-weight: 500; }

/* Current section in the header */
.main-navigation .main-nav ul li.current-menu-item > a { color: inherit; text-decoration: underline; text-decoration-color: var(--cwp-star); text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

/* Menu button on phones: plain icon, no grey box */
.main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { background: transparent; color: #14283a; }
.main-navigation .menu-toggle:focus-visible { outline: 3px solid #1f6e94; outline-offset: 2px; }

/* White canvas wherever the site's own templates render */
body:has(.cwp-profile) { background: #fff; }

/* Footer lines up with the page content */
.site-info .inside-site-info { max-width: 72rem; margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; justify-content: flex-start; text-align: left; }
.site-info .copyright-bar { width: 100%; text-align: left; }
.cwp-footer { justify-content: flex-start; }

/* Phone menu button: the theme styles it through the mobile wrapper */
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus,
.main-navigation.toggled .menu-toggle { background: transparent !important; color: #14283a !important; }

/* Phone header: keep the site name and menu button on one row */
@media (max-width: 768px) {
	.site-header .inside-header { flex-wrap: wrap; align-items: center; gap: 0 0.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
	.site-header .inside-header > .main-navigation:not(.mobile-menu-control-wrapper) { flex: 0 0 100%; order: 3; }
	.site-header .inside-header .site-branding { flex: 1 1 0; min-width: 0; }
	.site-header .site-branding .main-title { font-size: 1.05rem !important; line-height: 1.2; white-space: normal; }
	.site-header .inside-header .mobile-menu-control-wrapper { flex: 0 0 auto; margin-left: auto; }
}

/* 1.0.1: footer links on top, copyright on its own line */
.cwp-footer { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
.cwp-footer__copy { font-size: 0.875rem; opacity: 0.8; }
.cwp-footer nav { flex-wrap: wrap; row-gap: 0.4rem; }
@media (max-width: 560px) { .cwp-footer nav { gap: 0.5rem 1rem; } }

/* 1.0.3: footer links in two tidy columns on phones */
@media (max-width: 560px) {
	.cwp-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; width: 100%; }
}

/* 1.0.6: page column fills the content area, so headings, forms and footer share the logo's left edge */
.site-content > .cwp-profile { flex: 1 1 auto; width: 100%; box-sizing: border-box; }
@media (min-width: 769px) { .site-header .inside-header { padding-left: 44px; padding-right: 44px; } }
@media (max-width: 768px) { .site-header .inside-header { padding-left: 20px; padding-right: 20px; } }
.cwp-submit__for a { white-space: nowrap; }
