/* Jobstead — the cookie bar and Cookie settings panel (built by js/consent.js). Same palette as
   styles.css, with the colours written out so it looks the same on every page that loads it. */
.ck-bar, .ck-back { font-family: 'Gabarito', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #3E3A35; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.ck-bar *, .ck-back * { box-sizing: border-box; }
.ck-bar a, .ck-back a { color: #2A724A; text-underline-offset: 3px; }

.ck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #FFFDF8; border-top: 2px solid #E2D2B8; box-shadow: 0 -10px 30px rgba(91, 70, 54, .10); padding: 18px max(28px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left)); display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; }
.ck-bar p { margin: 0; flex: 1 1 320px; font-size: .98rem; }
.ck-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .ck-bar { padding-inline: 16px; }
  .ck-bar .ck-acts { width: 100%; }
  .ck-bar .ck-btn { flex: 1; }
}

.ck-btn { --b: #E2D2B8; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--b); background: #FFFDF8; color: #3E3A35; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 var(--b); white-space: nowrap; transition: transform .15s cubic-bezier(.22, .8, .26, 1), box-shadow .15s cubic-bezier(.22, .8, .26, 1); -webkit-tap-highlight-color: transparent; }
.ck-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--b); }
.ck-btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--b); }
.ck-primary { --b: #3F9A63; background: #6CC08B; color: #1B3826; }
.ck-primary:hover { background: #79C997; }
.ck-bar :focus-visible, .ck-back :focus-visible { outline: 2px solid #2C6E94; outline-offset: 4px; box-shadow: 0 0 0 5px rgba(143, 211, 244, .85); }

.ck-back { position: fixed; inset: 0; z-index: 310; background: rgba(36, 38, 78, .4); display: grid; place-items: center; padding: 16px; }
.ck-panel { width: min(500px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #FFFDF8; border-radius: 22px; border: 2px solid #E2D2B8; padding: 24px; box-shadow: 0 6px 0 #E2D2B8; }
.ck-panel:focus { outline: none; }
.ck-panel h2 { margin: 0 0 4px; font-family: 'Crimson Text', Georgia, serif; font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: #3C4E30; }
.ck-panel > p { margin: 0 0 14px; color: #6C6256; font-size: .95rem; }
.ck-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 2px solid #EFE3CF; }
.ck-row div { flex: 1; }
.ck-row strong { display: block; }
.ck-row span { font-size: .9rem; color: #6C6256; }
.ck-tog { flex: none; width: 52px; height: 30px; border-radius: 999px; border: 2px solid #E2D2B8; background: #EDE4D4; position: relative; cursor: pointer; padding: 0; }
.ck-tog::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .2s cubic-bezier(.22, .8, .26, 1); }
.ck-tog[aria-checked="true"] { background: #6CC08B; border-color: #3F9A63; }
.ck-tog[aria-checked="true"]::after { left: 25px; }
.ck-tog:disabled { opacity: .6; cursor: not-allowed; }
.ck-panel .ck-acts { margin-top: 16px; }
.ck-panel .ck-btn { flex: 1; }
@media (prefers-reduced-motion: reduce) { .ck-btn, .ck-tog::after { transition: none; } }
