/* Cookies New York — base design system (chrome, buttons, forms, age gate).
 * LIGHT theme matching the real Cookies brand (per cookiesmi.com): sky-blue
 * bands, white content, blue CTAs. Exact brand hex is tokenized — refine
 * --ckny-blue* from the official guideline in one place when it lands.
 * Mobile-first; ~90% of traffic is phones. */

/* OFFICIAL palette + type per "Cookies Brand Book 2023":
 * Cookies Blue #00A0DC (Pantone 2191 C) · Astronaut Blue #00425E (Pantone 302 C)
 * · Ink #111111 · White #FEFEFE. Type: 01 Barlow (condensed display) + 02 Montserrat. */
:root {
	--ckny-ink: #111111;          /* brand ink */
	--ckny-bg: #ffffff;
	--ckny-panel: #eaf6fc;        /* Cookies Blue tint section background */
	--ckny-card: #ffffff;
	--ckny-line: #c9e4f2;
	--ckny-line-soft: #e0f1f9;
	--ckny-white: #fefefe;
	--ckny-muted: #4f6470;
	--ckny-blue: #00a0dc;         /* Cookies Blue — bands, brand surfaces */
	--ckny-blue-cta: #00425e;     /* Astronaut Blue — buttons/links (AA-safe) */
	--ckny-blue-deep: #00425e;    /* link/text blue on white */
	--ckny-blue-tint: #e0f4fc;    /* chip/notice tint */
	--ckny-radius: 18px;
	--ckny-radius-sm: 11px;
	--ckny-container: 1180px;
	--ckny-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--ckny-display: "Barlow Condensed", "Arial Narrow", sans-serif;
}

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

/* Anchor jumps must clear the sticky header (announce bar + nav). */
[id] { scroll-margin-top: 140px; }

body.ckny-page-active,
body.ckny-home-active,
body.ckny-route-active {
	margin: 0;
	background: var(--ckny-bg);
	color: var(--ckny-ink);
	font-family: var(--ckny-font);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.screen-reader-text:focus {
	position: fixed; top: 12px; left: 12px; z-index: 100;
	width: auto; height: auto; margin: 0; padding: 12px 18px;
	clip: auto; overflow: visible;
	background: var(--ckny-blue-cta); color: #fff;
	border-radius: 999px; font-weight: 700; text-decoration: none;
}

/* Brand + eyebrows ------------------------------------------------------- */
.ckny-logo { display: block; height: 30px; width: auto; }
.ckny-logo-footer { height: 38px; }
.ckny-logo-gate { height: 42px; margin: 0 auto 16px; }
.ckny-wordmark {
	margin: 0;
	font-family: var(--ckny-display);
	font-weight: 800;
	font-style: italic;
	letter-spacing: -.02em;
	font-size: 26px;
	color: var(--ckny-blue);
}
.ckny-eyebrow {
	margin: 0 0 8px;
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: 12px;
	font-weight: 700;
	color: var(--ckny-blue-deep);
}

/* Buttons ---------------------------------------------------------------- */
.ckny-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 22px;
	font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .01em;
	border: 1px solid transparent; border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.ckny-button:active { transform: translateY(1px); }
.ckny-button-primary { background: var(--ckny-blue-cta); color: #fff; }
.ckny-button-primary:hover { background: #00354c; }
.ckny-button-ghost { background: transparent; color: var(--ckny-blue-deep); border-color: var(--ckny-line); }
.ckny-button-ghost:hover { border-color: var(--ckny-blue-cta); }
.ckny-button-dark { background: var(--ckny-ink); color: #fff; }

/* Header (Cookies blue band, like the brand's own sites) ------------------ */
.ckny-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ckny-blue);
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.ckny-announce {
	margin: 0; padding: 8px 16px;
	background: var(--ckny-blue-cta); color: #dff2fb;
	text-align: center; font-size: 11px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
}
.ckny-nav {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
	width: min(100%, var(--ckny-container)); margin: 0 auto; padding: 14px 20px;
}
.ckny-brand { grid-column: 2; display: inline-flex; text-decoration: none; }
.ckny-nav-links { display: none; gap: 26px; align-items: center; }
.ckny-nav-links a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; opacity: .92; }
.ckny-nav-links a:hover, .ckny-nav-links a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ckny-nav-left { grid-column: 1; justify-content: flex-start; }
.ckny-nav-right { grid-column: 3; justify-content: flex-end; }
.ckny-nav-cta {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
	background: #fff; color: var(--ckny-blue-deep) !important; border-radius: 999px;
	font-size: 14px !important; opacity: 1 !important;
}
.ckny-nav-cta:hover { background: var(--ckny-blue-tint); text-decoration: none !important; }

/* App-style bottom tab bar (mobile) --------------------------------------- */
.ckny-tabbar {
	position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
	display: grid; grid-template-columns: repeat(5, 1fr);
	padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-top: 1px solid var(--ckny-line);
}
.ckny-tabbar a {
	display: grid; justify-items: center; align-content: start; gap: 3px;
	min-height: 48px; padding: 6px 2px;
	color: var(--ckny-muted); text-decoration: none;
	font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.ckny-tabbar svg {
	width: 22px; height: 22px;
	fill: none; stroke: currentColor; stroke-width: 1.8;
	stroke-linecap: round; stroke-linejoin: round;
}
.ckny-tabbar a:hover, .ckny-tabbar a[aria-current="page"] { color: var(--ckny-blue-deep); }
.ckny-tabbar-cta { color: var(--ckny-blue-deep); }
.ckny-tabbar-fab {
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; margin-top: -26px;
	border-radius: 50%;
	background: var(--ckny-blue-cta); color: #fff;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(0, 66, 94, .35);
}
.ckny-tabbar-cta:hover .ckny-tabbar-fab, .ckny-tabbar-cta[aria-current="page"] .ckny-tabbar-fab { background: #00354c; }

/* Content must clear the fixed bar on mobile. */
@media (max-width: 879.98px) {
	body.ckny-page-active,
	body.ckny-home-active,
	body.ckny-route-active { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* Sections + generic page hero ------------------------------------------ */
.ckny-section { padding: clamp(40px, 8vw, 84px) 20px; }
.ckny-section-inner { width: min(100%, var(--ckny-container)); margin: 0 auto; }
.ckny-page-hero {
	padding: clamp(96px, 16vw, 150px) 20px clamp(24px, 5vw, 40px);
	background: var(--ckny-panel);
	border-bottom: 1px solid var(--ckny-line-soft);
}
.ckny-page-inner { width: min(100%, 760px); margin: 0 auto; }
.ckny-page-hero h1 {
	margin: 6px 0 0;
	font-family: var(--ckny-display); font-weight: 800;
	font-size: clamp(32px, 7vw, 54px); line-height: 1.02;
}
.ckny-prose { width: min(100%, 760px); margin: 0 auto; color: var(--ckny-ink); }
.ckny-prose h2 { font-family: var(--ckny-display); margin: 32px 0 12px; }
.ckny-prose a { color: var(--ckny-blue-deep); }

/* Shared components (chips, store actions, locator note) ------------------ */
.ckny-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ckny-chip {
	display: inline-block; padding: 4px 9px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	background: var(--ckny-blue-tint); color: var(--ckny-blue-deep); border: 1px solid #bcdcf2;
}
.ckny-chip-sample { background: #f1f4f7; color: var(--ckny-muted); border-color: var(--ckny-line); }
.ckny-store-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.ckny-store-actions a { color: var(--ckny-blue-deep); text-decoration: none; font-weight: 700; font-size: 14px; }
.ckny-store-actions a:hover { text-decoration: underline; }
.ckny-locator-note { margin-top: 10px; font-size: 14px; color: var(--ckny-muted); }
.ckny-locator-note a { color: var(--ckny-blue-deep); text-decoration: none; font-weight: 700; }

/* Notices ---------------------------------------------------------------- */
.ckny-notice { width: min(100%, 720px); margin: 0 auto 18px; padding: 14px 16px; border-radius: var(--ckny-radius-sm); font-weight: 600; }
.ckny-notice-ok { background: var(--ckny-blue-tint); border: 1px solid #9ccdec; color: #14577f; }
.ckny-notice-err { background: #fdeaea; border: 1px solid #f2b3b3; color: #8c2626; }

/* Footer (Cookies blue band) ---------------------------------------------- */
.ckny-footer { background: var(--ckny-blue); color: #fff; border-top: 0; padding: 48px 20px 28px; }
.ckny-footer-inner { width: min(100%, var(--ckny-container)); margin: 0 auto; display: grid; gap: 32px; }
.ckny-footer-brand { display: grid; gap: 12px; justify-items: start; }
.ckny-footer-brand p { margin: 0; color: #eaf5fd; max-width: 46ch; }
.ckny-footer-social { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; font-size: 14px; }
.ckny-footer-col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.ckny-footer-col h3 {
	margin: 0 0 4px; font-size: 12px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: #cfe9f9;
}
.ckny-footer-col a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; opacity: .92; }
.ckny-footer-col a:hover { opacity: 1; text-decoration: underline; }
.ckny-footer-fine {
	width: min(100%, var(--ckny-container)); margin: 34px auto 0; padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .25);
	font-size: 12px; color: #dcefFB;
}

/* Forms ------------------------------------------------------------------ */
.ckny-form { width: min(100%, 720px); margin: 0 auto; }
.ckny-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ckny-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ckny-muted); }
.ckny-form input:not([type="checkbox"]), .ckny-form select, .ckny-form textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: #fff; border: 1px solid var(--ckny-line); border-radius: var(--ckny-radius-sm);
	color: var(--ckny-ink); font: inherit; font-size: 16px;
}
.ckny-form input[type="checkbox"] {
	width: 18px; height: 18px; margin: 0; flex: none;
	accent-color: var(--ckny-blue-cta);
}
.ckny-form textarea { min-height: 120px; resize: vertical; }
.ckny-form input:not([type="checkbox"]):focus, .ckny-form select:focus, .ckny-form textarea:focus {
	outline: none; border-color: var(--ckny-blue); box-shadow: 0 0 0 3px rgba(0, 160, 220, .28);
}
.ckny-checks { border: 1px solid var(--ckny-line); border-radius: var(--ckny-radius-sm); padding: 14px 16px; margin: 16px 0; }
.ckny-checks legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--ckny-muted); }
.ckny-form .ckny-checks label, .ckny-form .ckny-consent {
	flex-direction: row; align-items: center; gap: 10px;
	color: var(--ckny-ink); font-weight: 500;
}
.ckny-form .ckny-consent { display: flex; margin: 14px 0; font-size: 14px; }
.ckny-form .ckny-button { margin-top: 18px; width: 100%; }
.ckny-form-fine { margin-top: 10px; font-size: 12px; color: var(--ckny-muted); text-align: center; }
.ckny-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* 21+ age gate ----------------------------------------------------------- */
.ckny-agegate {
	position: fixed; inset: 0; z-index: 9999;
	display: flex; align-items: center; justify-content: center; padding: 24px;
	background: rgba(0, 160, 220, .5);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
[data-ck-age="ok"] .ckny-agegate { display: none; }
body.ckny-age-lock { overflow: hidden; }
.ckny-agegate-card {
	width: min(100%, 420px); text-align: center;
	background: #fff; border: 1px solid var(--ckny-line-soft); border-radius: var(--ckny-radius);
	box-shadow: 0 18px 50px rgba(16, 45, 68, .28);
	padding: 34px 26px;
}
.ckny-agegate-mark { font-size: 30px; margin: 0 0 14px; }
.ckny-agegate-card h2 { margin: 0 0 8px; font-family: var(--ckny-display); font-size: 24px; color: var(--ckny-ink); }
.ckny-agegate-card p { color: var(--ckny-muted); margin: 0 0 18px; }
.ckny-agegate-actions { display: flex; gap: 12px; justify-content: center; }
.ckny-agegate-actions .ckny-button { min-width: 120px; }
.ckny-agegate-fine { margin: 18px 0 0; font-size: 11px; color: #7d8b98; }

@media (min-width: 880px) {
	.ckny-nav-links { display: flex; }
	.ckny-tabbar { display: none; }
	.ckny-form-grid { grid-template-columns: 1fr 1fr; }
	.ckny-col-2 { grid-column: 1 / -1; }
	.ckny-footer-inner { grid-template-columns: 1.6fr 1fr 1fr; align-items: start; }
}
