/* CompKitchen shared frame (2026-11-01): colour tokens, type, buttons, site header
   and footer. Plain CSS on purpose -- tailwind.v3.css is precompiled, so new utility
   classes would not exist. Everything here is prefixed ck- so it cannot collide with
   the Tailwind classes inner pages still use. Light theme only, like the rest of the site. */
:root {
  --ck-bg: #FFFDF9; --ck-band: #FFFAF5; --ck-tint: #FFF5EB; --ck-card: #FFFFFF;
  --ck-fg: #2D2A26; --ck-fg2: #544E4A; --ck-fg3: #6B6560; --ck-line: rgba(45,42,38,.11);
  --ck-sage: #2F5349; --ck-sage-deep: #1E3A30; --ck-sage-ink: #3D6B5E; --ck-sage-dot: #5A8F7E;
  --ck-copper: #9C5B30; --ck-copper-ink: #985A34; --ck-copper-soft: #D4956A;
  --ck-on-dark: #FFFFFF; --ck-on-dark2: rgba(255,255,255,.86);
  --ck-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --ck-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ck-mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;
}

.ck-wrap { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
@media (min-width: 640px) { .ck-wrap { padding-left: 24px; padding-right: 24px; } }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons, shared by the header, footer and the new pages. */
.ck-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px;
  padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; box-sizing: border-box; white-space: nowrap; }
.ck-btn-sage { background: var(--ck-sage); color: #FFFFFF; }
.ck-btn-sage:hover { background: var(--ck-sage-deep); color: #FFFFFF; }
.ck-btn-copper { background: var(--ck-copper); color: #FFFFFF; }
.ck-btn-copper:hover { background: var(--ck-copper-ink); color: #FFFFFF; }
.ck-btn-ghost { background: transparent; color: var(--ck-sage-ink); border-color: currentColor; }
.ck-btn-ghost:hover { background: rgba(61,107,94,.06); }

/* ---- Header ---------------------------------------------------------------- */
.ck-top { position: sticky; top: 0; z-index: 50; background: rgba(255,253,249,.95);
  border-bottom: 1px solid var(--ck-line); font-family: var(--ck-body); }
@supports (backdrop-filter: blur(8px)) { .ck-top { background: rgba(255,253,249,.85); backdrop-filter: blur(8px); } }
.ck-top-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.ck-brand { display: flex; align-items: center; flex-shrink: 0; }
.ck-brand img { height: 38px; width: auto; display: block; }
.ck-menu { display: none; align-items: center; gap: 4px; flex: 1 1 auto; }
.ck-menu > a, .ck-dd > button { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px;
  border-radius: 8px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 500;
  color: var(--ck-fg2); text-decoration: none; cursor: pointer; }
.ck-menu > a:hover, .ck-dd > button:hover, .ck-dd:focus-within > button { color: var(--ck-fg); background: var(--ck-tint); }
.ck-menu .is-active, .ck-dd.is-active > button { color: var(--ck-sage-ink); font-weight: 600; }
.ck-dd { position: relative; }
.ck-dd > button svg { width: 14px; height: 14px; transition: transform .15s ease; }
.ck-dd-panel { position: absolute; left: 0; top: 100%; padding-top: 8px; z-index: 60; width: 19rem;
  visibility: hidden; opacity: 0; transition: opacity .12s ease, visibility .12s; }
.ck-dd-panel.ck-right { left: auto; right: 0; }
.ck-dd:hover > .ck-dd-panel, .ck-dd:focus-within > .ck-dd-panel, .ck-dd > button[aria-expanded="true"] + .ck-dd-panel {
  visibility: visible; opacity: 1; }
.ck-dd:hover > button svg, .ck-dd > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.ck-dd-box { background: var(--ck-card); border: 1px solid var(--ck-line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px -18px rgba(30,58,48,.35); }
.ck-dd-box a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ck-fg); text-decoration: none; font-size: 14px; font-weight: 500; }
.ck-dd-box a small { display: block; font-size: 12px; font-weight: 400; color: var(--ck-fg3); margin-top: 1px; }
.ck-dd-box a:hover { background: var(--ck-tint); color: var(--ck-sage-ink); }
.ck-dd-box a.is-active { color: var(--ck-sage-ink); background: rgba(61,107,94,.07); }
.ck-dd-h { padding: 10px 12px 4px; font-family: var(--ck-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-copper-ink); }
.ck-dd-h + a { margin-top: 0; }
.ck-dd-sep { border-top: 1px solid var(--ck-line); margin-top: 6px; }
.ck-tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; background: rgba(176,106,59,.12); color: var(--ck-copper-ink); vertical-align: 1px; }

.ck-search { display: none; position: relative; align-items: center; }
.ck-search svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--ck-fg3); pointer-events: none; }
.ck-search input { width: 13rem; min-height: 40px; padding: 0 10px 0 32px; border-radius: 10px; box-sizing: border-box;
  border: 1px solid rgba(45,42,38,.18); background: #FFFFFF; color: var(--ck-fg); font: inherit; font-size: 14px; }
.ck-search input::placeholder { color: var(--ck-fg3); }
.ck-search input:focus { outline: none; border-color: var(--ck-sage-ink); }
.ck-auth { display: none; align-items: center; gap: 10px; flex-shrink: 0; }
.ck-auth a.ck-link { color: var(--ck-fg2); font-weight: 500; font-size: 15px; text-decoration: none; padding: 0 6px; }
.ck-auth a.ck-link:hover, .ck-auth a.ck-link.is-active { color: var(--ck-sage-ink); }
.ck-auth .ck-btn { min-height: 40px; padding: 0 16px; }
.ck-pro-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 5px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #FFFFFF; background: var(--ck-copper); }
.ck-pro-badge svg { width: 12px; height: 12px; }
/* The auth swap script toggles Tailwind's .hidden; these containers set their own
   display, so restate it here or a signed-out visitor would see all three variants. */
[data-nav-auth].hidden, #mobileMenu.hidden { display: none !important; }

.ck-burger { margin-left: auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--ck-line); background: var(--ck-card); color: var(--ck-fg); cursor: pointer; }
.ck-burger svg { width: 22px; height: 22px; }

@media (min-width: 1080px) {
  .ck-menu { display: flex; }
  .ck-auth { display: flex; }
  .ck-search { display: flex; }
  .ck-burger, .ck-mobile { display: none !important; }
}
@media (min-width: 1080px) and (max-width: 1240px) { .ck-search input { width: 10.5rem; } }

.ck-mobile { border-top: 1px solid var(--ck-line); background: var(--ck-bg); max-height: calc(100vh - 64px); overflow-y: auto; }
.ck-mobile .ck-wrap { padding-top: 12px; padding-bottom: 20px; display: flex; flex-direction: column; }
.ck-mobile form { position: relative; display: flex; margin-bottom: 8px; }
.ck-mobile form input { flex: 1 1 auto; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(45,42,38,.18);
  background: #FFFFFF; color: var(--ck-fg); font: inherit; font-size: 16px; min-width: 0; box-sizing: border-box; }
.ck-mobile-h { padding: 14px 4px 4px; font-family: var(--ck-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ck-copper-ink); border-top: 1px solid var(--ck-line); margin-top: 6px; }
.ck-mobile a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ck-fg); text-decoration: none; font-size: 15px; font-weight: 500; }
.ck-mobile a:hover { color: var(--ck-sage-ink); }
.ck-mobile .ck-btn { margin: 10px 0 4px; justify-content: center; }
.ck-mobile .ck-btn-sage, .ck-mobile .ck-btn-copper { color: #FFFFFF; }

/* ---- Footer ---------------------------------------------------------------- */
.ck-foot { background: var(--ck-sage-deep); color: var(--ck-on-dark2); padding: 52px 0 30px; margin-top: 0; font-family: var(--ck-body); }
.ck-foot-cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); font-size: 14px; }
.ck-foot-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ck-foot-col h2 { font-family: var(--ck-body); font-size: 14px; font-weight: 600; color: #FFFFFF; margin: 0 0 4px; }
.ck-foot a { color: var(--ck-on-dark2); text-decoration: none; }
.ck-foot a:hover { color: #FFFFFF; text-decoration: underline; }
.ck-foot .ck-tag { background: rgba(255,255,255,.14); color: #F2C9A8; }
.ck-foot p { margin: 0; line-height: 1.5; }
.ck-foot form { display: flex; flex-direction: column; gap: 8px; }
.ck-foot input[type=email] { min-height: 44px; padding: 0 12px; border-radius: 10px; box-sizing: border-box; font: inherit; font-size: 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); color: #FFFFFF; min-width: 0; }
.ck-foot input[type=email]::placeholder { color: rgba(255,255,255,.7); }
.ck-foot .ck-btn { min-height: 44px; font-size: 14px; }
.ck-foot-brand img { height: 34px; width: auto; display: block; margin-bottom: 10px; align-self: flex-start; }
/* 2026-11-03 review: the flex column stretched the logo to the full phone width
   (align-self above), and five stacked columns made the footer ~1,300px tall.
   On phones: brand and newsletter span the width, links sit in two columns. */
@media (max-width: 600px) {
  .ck-foot { padding: 36px 0 24px; }
  .ck-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .ck-foot-brand, .ck-foot-cols > .ck-foot-col:last-child { grid-column: 1 / -1; }
  .ck-foot-col { gap: 6px; }
  .ck-foot-fine { margin-top: 24px; }
}
.ck-foot-fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap;
  gap: 6px 18px; font-size: 13px; color: rgba(255,255,255,.75); }
.ck-foot-fine a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 2px; }
.ck-foot :focus-visible, .ck-hero :focus-visible { outline-color: #FFFFFF; }
