/* Cookie consent styles for the main pages (markup injected by scripts/cookie-consent.js). Blog posts get the same rules from styles.css. */
.cookie { position: fixed; inset: 0; z-index: 999; display: flex; align-items: flex-end; justify-content: flex-start; padding: clamp(16px, 4vw, 32px); pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie--modal { align-items: center; justify-content: center; }
.cookie__backdrop { position: fixed; inset: 0; background: rgba(20, 24, 26, .55); pointer-events: auto; animation: cookieFadeIn .26s ease both; }
.cookie__backdrop[hidden] { display: none; }
.cookie__panel { position: relative; pointer-events: auto; width: 100%; max-width: 440px; background: #FFFFFF; color: #14181A; border: 1px solid #E2E6E8; border-top: 2px solid #1F6E7E; box-shadow: 0 24px 60px -24px rgba(20, 24, 26, .45); padding: 24px; font-family: 'Libre Franklin', system-ui, sans-serif; }
.cookie--modal .cookie__panel { max-width: 560px; }
.cookie.is-in .cookie__panel { animation: cookiePanelIn .34s cubic-bezier(.22, 1, .36, 1) forwards; }
.cookie.is-out .cookie__panel { animation: cookiePanelOut .22s ease forwards; }
.cookie.is-out .cookie__backdrop { animation: cookieFadeOut .22s ease both; }
.cookie__view--banner { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.cookie__view[hidden] { display: none !important; }
.cookie__icon { width: 40px; height: 40px; display: grid; place-items: center; color: #1F6E7E; background: #E3EFF1; }
.cookie__icon svg { width: 22px; height: 22px; }
.cookie__body { min-width: 0; }
.cookie__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.15; color: #14181A; margin: 0 0 6px; }
.cookie__copy { font-size: 16px; line-height: 1.55; color: #2A3034; }
.cookie__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cookie__btn { min-height: 44px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .04em; padding: 10px 18px; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.cookie__btn--primary { background: #1F6E7E; color: #FFFFFF; flex: 1; min-width: 120px; }
.cookie__btn--primary:hover { background: #185A67; }
.cookie__btn--ghost { background: #FFFFFF; color: #14181A; border-color: #C6D2D5; flex: 1; min-width: 110px; }
.cookie__btn--ghost:hover { border-color: #1F6E7E; color: #1F6E7E; }
.cookie__btn--text { background: transparent; color: #1F6E7E; padding-left: 4px; padding-right: 4px; text-decoration: underline; text-underline-offset: 3px; }
.cookie__btn--text:hover { color: #14181A; }
.cookie__prefs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.cookie__close { position: relative; width: 44px; height: 44px; flex: none; border: 1px solid #C6D2D5; background: #FFFFFF; cursor: pointer; }
.cookie__close:hover { border-color: #1F6E7E; }
.cookie__close span { position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; background: #14181A; }
.cookie__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cookie__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.cookie__cats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.cookie__cat { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid #E2E6E8; }
.cookie__cat:first-child { border-top: none; }
.cookie__cat-name { display: block; font-size: 16px; font-weight: 600; color: #14181A; margin-bottom: 4px; }
.cookie__cat-desc { display: block; font-size: 15px; line-height: 1.5; color: #3A4247; }
.cookie__always { flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F6E7E; white-space: nowrap; margin-top: 3px; }
.cookie__switch { position: relative; flex: none; width: 48px; height: 26px; margin-top: 2px; cursor: pointer; }
.cookie__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie__track { position: absolute; inset: 0; background: #E2E6E8; border: 1px solid #C6D2D5; transition: background .22s ease, border-color .22s ease; }
.cookie__track::after { content: ''; position: absolute; top: 50%; left: 3px; width: 18px; height: 18px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(20, 24, 26, .3); transform: translateY(-50%); transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.cookie__switch input:checked ~ .cookie__track { background: #1F6E7E; border-color: #1F6E7E; }
.cookie__switch input:checked ~ .cookie__track::after { transform: translateY(-50%) translateX(22px); }
.cookie__switch input:focus-visible ~ .cookie__track { outline: 2px solid #1F6E7E; outline-offset: 2px; }
.cookie__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cookie__actions--prefs { margin-top: 22px; }
@keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes cookiePanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cookiePanelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px); } }
@media (max-width: 560px) {
  .cookie { padding: 12px; }
  .cookie__panel { max-width: none; }
  .cookie__actions { flex-direction: column-reverse; align-items: stretch; }
  .cookie__btn--text { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie__panel, .cookie.is-in .cookie__panel, .cookie__backdrop, .cookie__track, .cookie__track::after { animation: none; transition: none; } }

