/* =====================================================================
   Cabana La Moș Fane – accesibilitate și cookie-uri
   ===================================================================== */

/* ============ SARI LA CONȚINUT ============ */
.skip { position: fixed; left: 16px; top: -140px; z-index: 90; background: #FBB031; color: #24140D; font: 800 16px/1 'Manrope', 'Segoe UI', sans-serif; padding: 14px 18px; border: 3px solid #24140D; border-radius: 12px; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); color: #24140D; }

/* ============ BUTONUL ȘI PANOUL DE ACCESIBILITATE ============ */
.a11y-fab { position: fixed; left: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px) + var(--ckh, 0px)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; padding: 0; background: #FBB031; color: #24140D; border: 3px solid #24140D; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); cursor: pointer; transition: bottom .3s ease, transform .3s ease; }
.a11y-fab:hover { transform: scale(1.06); }
.a11y-fab svg { width: 30px; height: 30px; }
.a11y-panel { position: fixed; left: 16px; bottom: calc(90px + env(safe-area-inset-bottom, 0px) + var(--ckh, 0px)); z-index: 46; width: min(390px, calc(100vw - 32px)); max-height: min(76vh, 680px); overflow: auto; background: #FBFAF7; color: #1C1A18; border: 2px solid #24140D; border-radius: 20px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); font: 16px/1.4 'Manrope', 'Segoe UI', system-ui, sans-serif; }
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.a11y-head h2 { margin: 0; font: 400 26px/1.1 'Fraunces', Georgia, serif; color: #792E0F; }
.a11y-x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #B9C7CC; background: #E4ECEE; color: #24140D; font: 600 24px/1 'Manrope', sans-serif; cursor: pointer; padding: 0; }
.a11y-size { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 10px; border: 2px solid #B9C7CC; border-radius: 14px; background: #E4ECEE; font-weight: 700; }
.a11y-size div { display: flex; align-items: center; gap: 6px; }
.a11y-size button { min-width: 48px; height: 48px; border-radius: 12px; border: 2px solid #24140D; background: #FBFAF7; color: #24140D; font: 800 17px/1 'Manrope', sans-serif; cursor: pointer; }
.a11y-size button[disabled] { opacity: .4; cursor: default; }
.a11y-size output { min-width: 56px; text-align: center; font: 800 17px/1 'Manrope', sans-serif; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 80px; padding: 12px; border: 2px solid #B9C7CC; border-radius: 14px; background: #E4ECEE; color: #1C1A18; font: 700 15px/1.25 'Manrope', sans-serif; text-align: left; cursor: pointer; }
.a11y-opt .state { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1.5px solid currentColor; }
.a11y-opt[aria-pressed="true"] { border-color: #792E0F; background: #F6E4D6; box-shadow: inset 0 0 0 2px #792E0F; }
.a11y-reset { margin-top: 12px; width: 100%; min-height: 48px; border-radius: 999px; border: 2px solid #24140D; background: transparent; color: #24140D; font: 800 15px/1 'Manrope', sans-serif; cursor: pointer; }
.a11y-note { margin: 10px 0 0; font-size: 13px; color: #4A5458; }

/* ============ BANNERUL DE COOKIE-URI ============ */
.cookie { position: fixed; z-index: 44; left: 88px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 880px; margin-left: auto; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 20px; background: rgba(36, 20, 13, .97); color: #F3E9DA; border: 1px solid rgba(243, 233, 218, .2); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .6); font: 15px/1.5 'Manrope', 'Segoe UI', system-ui, sans-serif; }
.cookie[hidden] { display: none; }
.cookie-ic { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 2.5px solid #FBB031; display: grid; place-items: center; color: #FBB031; }
.cookie p { margin: 0; flex: 1; }
.cookie b { color: #F6EEE2; }
.cookie a { color: #FBB031; text-underline-offset: 3px; }
.cookie button { flex: none; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: #FBB031; color: #24140D; font: 800 15px/1 'Manrope', sans-serif; cursor: pointer; }
html .dock { bottom: calc(20px + var(--ckh, 0px)); transition: bottom .3s ease; }
@media (max-width: 680px) {
  .cookie { left: 12px; right: 12px; flex-wrap: wrap; gap: 12px; }
  .cookie-ic { display: none; }
  .cookie button { width: 100%; }
  .a11y-fab { left: 12px; width: 50px; height: 50px; }
  .a11y-panel { left: 12px; width: calc(100vw - 24px); }
}

/* ============ OPȚIUNILE DE ACCESIBILITATE ============ */
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(svg *):not(img) { background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #FFD400 !important; }
html.a11y-contrast button, html.a11y-contrast .btn { border: 2px solid #FFD400 !important; color: #FFD400 !important; }
html.a11y-contrast [aria-pressed="true"], html.a11y-contrast [aria-pressed="true"] * { background-color: #FFD400 !important; color: #000 !important; }
html.a11y-contrast .a11y-panel { border: 2px solid #fff !important; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border: 2px solid #fff !important; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-font body, html.a11y-font body * { font-family: 'Atkinson Hyperlegible', Verdana, 'Segoe UI', sans-serif !important; }
html.a11y-font :is(h1, h2, h3) { letter-spacing: 0 !important; }
html.a11y-spacing body { letter-spacing: .04em; word-spacing: .14em; }
html.a11y-spacing :is(p, li, dd, dt, label) { line-height: 1.9 !important; }
html.a11y-spacing :is(h1, h2, h3) { line-height: 1.3 !important; }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 4px !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 19 2.6-7.9L21 10.5z' fill='black' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
