/*
 * Shared modern look for Paasmem pages - the style first used on /paasmem/renewals/.
 * Load after Bootstrap, together with the Inter font from Google Fonts.
 * Kept in /assets (not /includes) - the server blocks web access to /includes.
 * Used by: waterslist. Intended for renewals and renewalsurvey too (they still have their own copy inline).
 *
 * 2026-11-21 Created
 */

:root {
	--bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--bs-body-font-size: 0.95rem;
	--bs-body-color: #1f2937;
	--bs-border-color: #e5e7eb;
	--bs-primary: #1d4ed8;
	--bs-primary-rgb: 29, 78, 216;
	--pm-bg: #f3f4f6;
	--pm-muted: #6b7280;
	--pm-accent-soft: #eff6ff;
}

body { background: var(--pm-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 600; letter-spacing: -0.01em; }
.text-muted { color: var(--pm-muted) !important; }

/* White card holding a section of the page */
.pm-card { background: #fff; border-radius: 1rem; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04); padding: 1.5rem; }

/* Small grey upper-case label above a heading or group */
.pm-eyebrow { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--pm-muted); }

/* Buttons and form fields */
.btn { font-weight: 500; border-radius: .5rem; padding: .5rem 1.1rem; }
.btn-sm { padding: .35rem .8rem; }
.form-control, .form-select { border-radius: .5rem; }

/* Toggle chips - a checkbox styled as a pill; the whole pill is clickable */
.pm-chip { position: relative; margin: 0; }
.pm-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pm-chip span { display: inline-block; padding: .35rem .8rem; border: 1px solid #cbd5e1; border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; user-select: none; transition: background-color .15s, border-color .15s; }
.pm-chip span:hover { border-color: #94a3b8; }
.pm-chip input:checked + span { background: var(--pm-accent-soft); border-color: var(--bs-primary); color: var(--bs-primary); font-weight: 600; }
.pm-chip input:focus-visible + span { outline: 2px solid var(--bs-primary); outline-offset: 2px; }

/* Status badges - same meanings as the waters map pins */
.pm-status { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pm-status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.pm-status-open       { background: #dcfce7; color: #166534; }
.pm-status-restricted { background: #fef3c7; color: #92400e; }
.pm-status-closed     { background: #fee2e2; color: #991b1b; }
.pm-status-notice     { background: #dbeafe; color: #1e40af; }

@media (max-width: 575.98px) {
	.pm-card { padding: 1.1rem; border-radius: .75rem; }
}
