/* The cookie choice (lib/siteConsent.js + public/ds/consent.js), in the house design.
   Parchment ground, ink text, one red focus ring, square corners, WORDS not icons (owner rules). The three answers are
   the same size, the same type and the same outline: "Accept all", "Reject all" and "Choose" carry equal weight on purpose.
   Self-sufficient: it declares its own copies of the three brand fonts (same files as olde-hansa.css, so the browser fetches
   each once) so /book can adopt it without loading the whole kit. */
@font-face{font-family:'OH Noble';src:url(../fonts/OldeHansaAntiqueNoble.woff2) format('woff2');font-display:swap}
/* The capital R of OH Noble reaches a whole word space to its left, so "restoran Rikaste" read "restoranRikaste" everywhere (13.11.2026). The
   letter R alone comes from a one-glyph file that holds the font's OWN alternate R without that stroke (tools/site-font-noble-r.py). */
@font-face{font-family:'OH Noble';src:url(../fonts/OldeHansaAntiqueNoble-R.woff2) format('woff2'),url(../fonts/OldeHansaAntiqueNoble-R.woff) format('woff');unicode-range:U+52;font-display:swap}
@font-face{font-family:'OH Antique';src:url(../fonts/OldeHansaAntiqueRegular.woff2) format('woff2');font-display:swap}
@font-face{font-family:'OH Script';src:url(../fonts/OldeHansaScriptRegular.woff2) format('woff2');font-display:swap}

.oh-cc,.oh-cc *{box-sizing:border-box}
.oh-cc [hidden]{display:none!important}

/* ---- the bar (first visit): fixed to the bottom, never a wall --------------------------------------------------- */
.oh-cc{position:fixed;left:0;right:0;bottom:0;z-index:1000;max-height:92vh;max-height:92dvh;overflow-y:auto;overscroll-behavior:contain;
  background:#F6EED3;color:#532511;font-family:'OH Noble',Georgia,'Times New Roman',serif;font-size:16px;line-height:1.55;
  border-top:1px solid #9C7B4F;box-shadow:inset 0 3px 0 #F6EED3,inset 0 4px 0 #9C7B4F,0 -14px 34px rgba(30,18,11,.2)}
.oh-cc:focus{outline:none}
.oh-cc__in{position:relative;max-width:1280px;margin:0 auto;padding:22px 40px 24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 36px;align-items:end}
.oh-cc__main{grid-column:1;min-width:0}
.oh-cc__choose{grid-column:1 / -1}
.oh-cc__btns{grid-column:2;grid-row:1;display:flex;gap:10px;align-items:stretch}
.oh-cc__choose{grid-row:2}
.oh-cc__saved{grid-column:1 / -1;margin:0;font-size:15px;color:#3F5A22}

.oh-cc__title{margin:0 0 4px;font-family:'OH Script',Georgia,'Times New Roman',serif;font-weight:400;font-size:30px;line-height:1.1;color:#532511}
.oh-cc__txt{margin:0;font-size:16px;color:#3F1B0B;max-width:62ch;text-wrap:pretty}
.oh-cc__link{color:#8B241D;text-underline-offset:3px;text-decoration-thickness:1px;white-space:nowrap}
.oh-cc__link:hover{color:#5E1712}
.oh-cc__preview{margin:10px 0 0;padding:6px 12px;max-width:62ch;font-size:14px;line-height:1.45;color:#5E1712;background:#F6E2BF;border-left:3px solid #C96125}

/* ---- the three answers: identical on purpose ------------------------------------------------------------------- */
.oh-cc__btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;flex:0 0 212px;min-width:0;padding:0 14px;margin:0;
  font-family:'OH Antique',Georgia,'Times New Roman',serif;font-size:14px;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;
  color:#532511;background:transparent;border:1px solid #532511;border-radius:0;cursor:pointer;transition:background .15s,color .15s}
.oh-cc__btn:hover{background:#532511;color:#F4ECD6}
.oh-cc :focus-visible{outline:2px solid #8B241D;outline-offset:3px}

/* ---- the categories ------------------------------------------------------------------------------------------- */
.oh-cc__choose{padding-top:14px;border-top:1px solid rgba(156,123,79,.5)}
.oh-cc__cats{margin:0;padding:0;border:0;min-width:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 28px}
.oh-cc__cat{min-width:0}
.oh-cc__lab{display:flex;align-items:center;gap:12px;cursor:pointer;font-family:'OH Antique',Georgia,'Times New Roman',serif;font-size:17px;letter-spacing:.04em;color:#532511}
.oh-cc__lab input{width:22px;height:22px;margin:0;flex:none;accent-color:#8B241D;cursor:pointer}
.oh-cc__lab input:disabled{cursor:default;opacity:.75}
.oh-cc__on{margin-left:auto;font-size:13px;letter-spacing:.1em;text-transform:uppercase;color:#6B4F35}
.oh-cc__d{margin:6px 0 0 34px;font-size:15px;line-height:1.5;color:#6B4F35}
.oh-cc__foot{margin:14px 0 0;font-size:14px;color:#6B4F35}

/* ---- reopened from the footer: a modal dialog, centred --------------------------------------------------------- */
.oh-cc__veil{position:fixed;inset:0;z-index:999;background:rgba(30,18,11,.58)}
.oh-cc--dialog{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  border:1px solid #532511;box-shadow:inset 0 0 0 4px #F6EED3,inset 0 0 0 5px #9C7B4F,0 24px 60px rgba(30,18,11,.45)}
.oh-cc--dialog .oh-cc__in{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:30px 32px 28px}
.oh-cc--dialog .oh-cc__cats{grid-template-columns:1fr}
.oh-cc--dialog .oh-cc__btns{order:3;position:sticky;bottom:0;z-index:1;background:#F6EED3;padding-top:4px}
.oh-cc--dialog .oh-cc__btn{flex:1 1 0;padding:0 8px}
.oh-cc--dialog .oh-cc__x{position:static;align-self:flex-end;margin:-18px -6px -10px 0}
.oh-cc__x{min-height:44px;padding:0 6px;font-family:'OH Antique',Georgia,'Times New Roman',serif;font-size:13px;letter-spacing:.12em;text-transform:uppercase;
  color:#6B4F35;background:transparent;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.oh-cc__x:hover{color:#8B241D}

/* ---- announcements for assistive technology, never drawn ------------------------------------------------------- */
.oh-cc__sr,.oh-cc__live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- phone and narrow widths: answers stacked, full width, still equal -------------------------------------- */
@media (max-width:899px){
  /* the answers stay in reach while the categories scroll: sticky to the bottom of the panel, still three equal buttons */
  .oh-cc__in{grid-template-columns:minmax(0,1fr);padding:16px 20px 0;gap:10px}
  .oh-cc__btns{grid-column:1;grid-row:auto;flex-direction:column;gap:8px;position:sticky;bottom:0;z-index:1;background:#F6EED3;padding:8px 0 16px;box-shadow:0 -10px 10px -10px rgba(30,18,11,.3)}
  .oh-cc__btn,.oh-cc--dialog .oh-cc__btn{flex:none;width:100%;min-width:0;min-height:44px;padding:0 14px;font-size:13px}
  .oh-cc__choose{grid-row:auto}
  .oh-cc__cats{grid-template-columns:1fr}
  .oh-cc__title{font-size:26px}
  .oh-cc__txt{font-size:15px;line-height:1.5}
  .oh-cc--dialog .oh-cc__in{padding:22px 20px 0}
  .oh-cc--dialog .oh-cc__btns{padding:8px 0 16px}
}
@media (prefers-reduced-motion:reduce){.oh-cc__btn{transition:none}}
@media print{.oh-cc,.oh-cc__veil{display:none!important}}
