/* CEDAR-WEB additions on top of the CEDAR-WWW stylesheet (style.css).
   Theme accent from config.theme.accent lands in --accent; defaults keep the
   exact colours of the current site. */

:root {
    --accent: #2f6e48;          /* green-text, links, pills */
    --accent-soft: #799771;     /* green-background */
    --accent-dark: #164227;     /* dark-green-text */
}

.green-text { color: var(--accent); }
.dark-green-text { color: var(--accent-dark); }
.icon-bubble { color: var(--accent); }
.bg-white.shadow-lg:hover .icon-bubble { background: var(--accent); }
.pill-btn-outline { color: var(--accent); }
.pill-btn-solid:hover { background: var(--accent); }
.nav-item-active { color: var(--accent) !important; }
.input-soft:focus { border-color: var(--accent); }

/* Content sits under the fixed 56px nav */
#content { margin-top: 56px; min-height: 60vh; }

/* Screen-reader only labels on the contact form */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Lists inside text sections ("- " lines) */
.www-list { list-style: disc; padding-left: 1.4rem; margin: 0.25rem 0; color: #374151; }
.www-list li { margin: 0.3rem 0; line-height: 1.55; }

/* Hero with a background image */
.www-hero-bg { position: relative; min-height: 60vh; display: flex; }
.www-hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.www-hero-light .www-hero-bg-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 32, 26, 0.25), rgba(20, 32, 26, 0.55)); }
.www-hero-dark .www-hero-bg-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.5)); }
.www-hero-bg-body { position: relative; z-index: 1; min-height: 60vh; padding-top: 4rem; padding-bottom: 4rem; display: flex; }
.www-hero-light .www-hero-text { color: #ffffff; }
.www-hero-light .www-hero-text .hero-credentials, .www-hero-light .www-hero-text .hero-credentials-label, .www-hero-light .www-hero-text .hero-credentials-dot { color: rgba(255, 255, 255, 0.75); }
.www-hero-dark .www-hero-text { color: var(--accent-dark); }
.www-hero-text { max-width: 720px; }
.www-hero-panel { padding: 2rem 2.5rem; border-radius: 1rem; }
.www-hero-light .www-hero-panel { background: rgba(20, 32, 26, 0.45); backdrop-filter: blur(4px); }
.www-hero-dark .www-hero-panel { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(4px); }
/* Clinic module bits */
.www-hours { width: 100%; border-collapse: collapse; color: #374151; }
.www-hours td { padding: 0.25rem 0.75rem 0.25rem 0; vertical-align: top; line-height: 1.5; }
.www-hours td:first-child { white-space: nowrap; font-weight: 600; color: #4b5563; }
.www-hours tr.www-closed td { color: #9ca3af; }
.www-module-card .www-hours td:first-child { font-weight: 500; }
.www-aside { background: rgba(122, 155, 113, 0.08); border: 1px solid rgba(47, 110, 72, 0.14); border-radius: 12px; padding: 1.5rem; }
.www-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.www-facts p { display: inline; margin-right: 0.75rem; }

/* Keyless map card: opens Google Maps at lat/lon */
.www-map {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 900px; height: 260px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, #e8efe6 0%, #d7e4d2 100%);
    border: 1px solid rgba(47, 110, 72, 0.15); text-decoration: none; color: var(--accent-dark);
    box-shadow: 0 1px 2px rgba(20, 32, 26, 0.04), 0 18px 40px -16px rgba(20, 32, 26, 0.16);
    transition: transform .2s ease, box-shadow .2s ease;
}
.www-map:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(47, 110, 72, 0.35); }
.www-map-compact { height: 160px; }
.www-map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(47, 110, 72, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 110, 72, 0.08) 1px, transparent 1px); background-size: 40px 40px; }
.www-map-pin { position: relative; font-size: 44px; color: var(--accent); margin-right: 1rem; line-height: 1; }
.www-map-label { position: relative; }
.www-map-label .text-sm { color: #4b5563; }

/* Preview ribbon */
#www-preview-ribbon {
    position: fixed; top: 64px; right: -34px; z-index: 50; transform: rotate(45deg);
    background: #b45309; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
    padding: 0.35rem 3rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); cursor: pointer; user-select: none;
}

/* Utility fallbacks missing from output.css and style.css (breakpoints ascending,
   so a larger breakpoint always wins the cascade like in Tailwind) */
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.mt-5 { margin-top: 1.25rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.items-end { align-items: flex-end; }
.text-right { text-align: right; }
.first\:mt-0:first-child { margin-top: 0; }
@media (min-width: 768px) {
    .md\:justify-start { justify-content: flex-start; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:items-start { align-items: flex-start; }
}
@media (max-width: 640px) {
    .footer-cols { grid-template-columns: 1fr !important; }
}
