/* Cooper's Link Page: front-end styles. Colors and shapes come from CSS variables set in the page markup. */

.clp-scope,
.clp-scope *,
.clp-scope *::before,
.clp-scope *::after { box-sizing: border-box; }

body.clp-body {
	margin: 0;
	min-height: 100vh;
	background: var(--clp-bg1, #0b2a4a);
}

.clp-scope {
	color: var(--clp-text, #fff);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}

/* Background: gradient or photo, with a faint wave texture. */
.clp-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: var(--clp-bg-layers);
}
.clp-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24' viewBox='0 0 80 24'%3E%3Cpath d='M0 12Q10 2 20 12T40 12T60 12T80 12' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 80px 24px;
}

.clp-embed {
	background: var(--clp-bg-layers);
	border-radius: 20px;
	overflow: hidden;
}

.clp-scope a { color: inherit; }
.clp-scope a:focus-visible,
.clp-scope summary:focus-visible {
	outline: 3px solid var(--clp-accent, #7fd1f0);
	outline-offset: 3px;
}

.clp {
	max-width: 520px;
	margin: 0 auto;
	padding: 36px 18px 56px;
}

/* Profile */
.clp-profile { text-align: center; margin-bottom: 22px; }

.clp-logo {
	display: block;
	width: 120px;
	height: 120px;
	margin: 0 auto 14px;
	border-radius: 50%;
	object-fit: contain;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.clp-logo--framed {
	padding: 8px;
	background: #fff;
	border: 3px solid rgba(255, 255, 255, .9);
}
.clp-logo--ph {
	width: 112px;
	height: 112px;
	background: #fff;
	border: 3px solid rgba(255, 255, 255, .9);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--clp-heading);
	font-size: 3rem;
	color: var(--clp-bg1, #0b2a4a);
}

.clp-name {
	margin: 0;
	font-family: var(--clp-heading);
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .005em;
}
.clp-tagline { margin: 6px 0 0; opacity: .85; font-size: 1rem; }

/* Open / closed status */
.clp-status {
	display: flex;
	align-items: center;
	gap: 12px;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 8px;
	padding: 10px 18px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 16px;
}
.clp-status__text { display: flex; flex-direction: column; line-height: 1.3; }
.clp-status__text strong { font-size: 1.05rem; }
.clp-status__text span { font-size: .9rem; opacity: .88; }
.clp-dot {
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #8a95a1;
}
.clp-status--open .clp-dot { background: #46d27c; box-shadow: 0 0 0 4px rgba(70, 210, 124, .25); }
.clp-status--closed .clp-dot { background: #ff8a7a; box-shadow: 0 0 0 4px rgba(255, 138, 122, .22); }

.clp-alert {
	margin: 10px auto 0;
	text-align: center;
	font-weight: 700;
	color: var(--clp-accent, #7fd1f0);
}
.clp-note,
.clp-dock {
	margin: 8px 0 0;
	text-align: center;
	font-size: .85rem;
	opacity: .78;
}

/* Special banner */
.clp-banner {
	display: block;
	margin: 20px 0 0;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	text-decoration: none;
	color: var(--clp-bg1, #0b2a4a);
	background: var(--clp-accent, #7fd1f0);
	border-radius: 12px;
}
a.clp-banner:hover { filter: brightness(1.06); }

/* Promos: the one loud element on the page */
.clp-promos { margin-top: 24px; }

.clp-promo {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	padding: 16px 20px;
	color: var(--p-text, #fff);
	background: var(--p-bg, #c8102e);
	border: 2px solid rgba(255, 255, 255, .55);
	border-radius: min(var(--clp-radius, 999px), 26px);
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
	transition: transform .15s ease;
}
.clp-promo:hover { transform: translateY(-2px); }
.clp-promo:active { transform: scale(.985); }
.clp-scope a.clp-promo { color: var(--p-text, #fff); }

.clp-promo__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	font-size: 1.9rem;
	line-height: 1;
	background: rgba(255, 255, 255, .2);
	border-radius: 50%;
}
.clp-promo__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.clp-promo__text strong { font-family: var(--clp-heading); font-size: 1.2rem; }
.clp-promo__text span { margin-top: 2px; font-size: .9rem; opacity: .92; }

.clp-promo__badge {
	position: absolute;
	top: -10px;
	right: 18px;
	padding: 2px 10px;
	font-size: .75rem;
	font-weight: 700;
	color: var(--p-bg, #c8102e);
	background: var(--p-text, #fff);
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

.clp-spotlight { outline: 3px solid var(--clp-accent, #7fd1f0); outline-offset: 3px; }

.clp-pulse { animation: clp-pulse 2.6s ease-out infinite; }
@keyframes clp-pulse {
	0%   { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, .5); }
	70%  { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 16px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 10px 26px rgba(0, 0, 0, .3), 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.clp-pulse { animation: none; }
	.clp-promo,
	.clp-btn { transition: none; }
}

/* Regular buttons */
.clp-links { margin-top: 24px; }

.clp-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	margin: 0 0 12px;
	padding: 12px 18px;
	color: var(--clp-btn-text, #0b2a4a);
	background: var(--clp-btn-bg, #fff);
	border-radius: var(--clp-radius, 999px);
	font-size: 1.02rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 8px 18px rgba(0, 0, 0, .18);
	transition: transform .15s ease;
}
.clp-scope a.clp-btn { color: var(--clp-btn-text, #0b2a4a); }
.clp-btn:hover { transform: translateY(-2px); }
.clp-btn:active { transform: scale(.985); }
.clp-btn__icon { flex: none; width: 30px; text-align: center; font-size: 1.35rem; line-height: 1; }
.clp-btn__label { flex: 1; text-align: center; padding-right: 30px; }

/* Events */
.clp-events {
	margin: 26px 0 0;
	padding: 18px 16px 14px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 18px;
}
.clp-events h2 {
	margin: 0 0 8px;
	font-family: var(--clp-heading);
	font-size: 1.25rem;
}
.clp-events ul { margin: 0; padding: 0; list-style: none; }
.clp-events li + li { border-top: 1px solid rgba(255, 255, 255, .16); }
.clp-events li a {
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 10px 2px;
	text-decoration: none;
}
.clp-ev-time { font-size: .85rem; font-weight: 600; color: var(--clp-accent, #7fd1f0); }
.clp-ev-title { font-weight: 600; }
.clp-events li a:hover .clp-ev-title { text-decoration: underline; }
.clp-ev-more { margin: 4px 0 0; font-size: .85rem; opacity: .8; }
.clp-ev-all {
	display: inline-block;
	margin-top: 6px;
	font-size: .9rem;
	font-weight: 600;
}

/* Social icons */
.clp-social {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}
.clp-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1.5px solid rgba(255, 255, 255, .6);
	border-radius: 50%;
	transition: background .15s ease;
}
.clp-social a:hover { background: rgba(255, 255, 255, .16); }

/* Hours */
.clp-hours { margin: 26px 0 0; font-size: .92rem; }
.clp-hours summary {
	cursor: pointer;
	width: fit-content;
	margin: 0 auto;
	padding: 6px 4px;
	font-weight: 600;
}
.clp-hours table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.clp-hours th,
.clp-hours td { padding: 6px 4px; text-align: left; font-weight: 400; border-top: 1px solid rgba(255, 255, 255, .14); }
.clp-hours th[scope="row"] { font-weight: 600; }
.clp-hours thead th { font-weight: 600; border-top: 0; opacity: .8; }

/* Footer */
.clp-footer { margin-top: 28px; text-align: center; }
.clp-address { margin: 0 0 10px; font-size: .95rem; }
.clp-address a { text-decoration: none; }
.clp-fine { margin: 8px 0 0; font-size: .8rem; opacity: .72; }
.clp-debug { margin: 28px 0 0; padding: 12px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; color: #fff; background: rgba(0, 0, 0, .55); border-radius: 10px; }
.clp-version { opacity: .5; font-size: .72rem; }
.clp-hours .clp-fine { text-align: center; }

@media (min-width: 600px) {
	.clp { padding-top: 56px; }
}

/* Latest news */
.clp-news {
	margin: 26px 0 0;
	padding: 18px 16px 14px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 18px;
}
.clp-news h2 { margin: 0 0 6px; font-family: var(--clp-heading); font-size: 1.25rem; }
.clp-news ul { margin: 0; padding: 0; list-style: none; }
.clp-news li + li { border-top: 1px solid rgba(255, 255, 255, .16); }
.clp-post {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px 2px;
	text-decoration: none;
}
.clp-post__img {
	flex: none;
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: 12px;
	background: rgba(255, 255, 255, .12);
}
.clp-post__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.clp-post__date { font-size: .8rem; font-weight: 600; color: var(--clp-accent, #7fd1f0); }
.clp-post__title { font-family: var(--clp-heading); font-size: 1.05rem; line-height: 1.25; }
.clp-post__excerpt { font-size: .88rem; line-height: 1.4; opacity: .85; }
.clp-post:hover .clp-post__title { text-decoration: underline; }
.clp-news--top .clp-post { flex-direction: column; gap: 10px; }
.clp-news--top .clp-post__img { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Shortcuts shown only to logged-in admins */
.clp-adminbar {
	position: fixed;
	right: 12px;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	z-index: 50;
	display: flex;
	gap: 2px;
	padding: 4px;
	font-size: .78rem;
	background: rgba(0, 0, 0, .72);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.clp-adminbar a {
	padding: 6px 11px;
	color: #fff;
	text-decoration: none;
	border-radius: 999px;
	white-space: nowrap;
}
.clp-adminbar a:hover,
.clp-adminbar a:focus-visible { background: rgba(255, 255, 255, .2); }

/* Today's special banner uses the promo card; without a link it is a plain box */
div.clp-promo { cursor: default; }
div.clp-promo:hover { transform: none; }

.clp-promo { border-color: var(--p-border, rgba(255,255,255,.55)); }
.clp-promo__icon { background: var(--p-circle, rgba(255,255,255,.2)); overflow: hidden; }
.clp-promo__icon img { display:block; width:100%; height:100%; }
.clp-promo__badge { background:var(--p-badge_bg,var(--p-text)); color:var(--p-badge_text,var(--p-bg)); }

/* Expandable Mailchimp signup. */
.clp-signup { margin:24px 0; border:2px solid #d6ad60; border-radius:24px; background:#fff1d6; color:#102b46; overflow:hidden; }
.clp-signup summary { display:flex; align-items:center; gap:14px; padding:18px 20px; cursor:pointer; list-style:none; font-family:var(--clp-heading); font-size:1.2rem; font-weight:700; }
.clp-signup summary::-webkit-details-marker { display:none; }
.clp-signup summary:focus-visible { outline:3px solid #102b46; outline-offset:-5px; }
.clp-signup__icon { display:flex; align-items:center; justify-content:center; flex:none; width:44px; height:44px; border-radius:50%; background:#f5dda9; font-size:26px; }
.clp-signup__arrow { margin-left:auto; }
.clp-signup[open] .clp-signup__arrow { transform:rotate(180deg); }
.clp-signup[open] summary { border-bottom:1px solid #d6ad60; }
.clp-signup__body { padding:0 20px 16px; text-align:left; }
.clp-signup label { display:block; margin:16px 0; font-weight:600; }
.clp-signup input:not([tabindex="-1"]) { box-sizing:border-box; display:block; width:100%; min-width:0; margin-top:6px; padding:12px; border:1px solid #707c88; border-radius:7px; background:#fff; color:#102b46; font:inherit; font-size:16px; }
.clp-signup button { width:100%; padding:14px; border:0; border-radius:9px; background:#b82025; color:#fff; font:inherit; font-weight:700; cursor:pointer; }
.clp-signup input:focus-visible, .clp-signup button:focus-visible { outline:3px solid #102b46; outline-offset:2px; }
.clp-signup__note { font-size:.85rem; line-height:1.5; }
.clp-signup__trap { position:absolute; left:-5000px; }
