/* Southfork Lakes app: in-app bar, sheets, nudge. Loaded only when the app is on. */
:root{--sfla-ink:#12272A;--sfla-gold:#D4B47E;--sfla-gold-text:#78613C;--sfla-ground:#F5F6F4;--sfla-text:#1A2224;--sfla-muted:#55605F;--sfla-line:#E2E4E0;--sfla-sans:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;--sfla-serif:'Cormorant Garamond',Georgia,serif;--sfla-bar:calc(66px + env(safe-area-inset-bottom,0px))}

/* ---- Installed app: bottom bar ---- */
html.sfl-app-mode body:not(#sfl-x){padding-bottom:var(--sfla-bar)}
body:not(#sfl-x) .sfl-appbar{position:fixed;left:0;right:0;bottom:0;z-index:1100;height:var(--sfla-bar);padding:0 6px env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid var(--sfla-line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));font-family:var(--sfla-sans);box-shadow:0 -6px 24px rgba(18,39,42,.06)}
body:not(#sfl-x) .sfl-appbar a,body:not(#sfl-x) .sfl-appbar button{appearance:none;background:none;border:0;margin:0;padding:8px 4px 6px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--sfla-muted);font:600 11px/1 var(--sfla-sans);text-decoration:none;cursor:pointer;position:relative;border-radius:12px}
body:not(#sfl-x) .sfl-appbar svg{width:23px;height:23px}
body:not(#sfl-x) .sfl-appbar [aria-current="page"]{color:var(--sfla-ink);font-weight:800}
body:not(#sfl-x) .sfl-appbar [aria-current="page"]::after{content:"";position:absolute;bottom:2px;width:18px;height:3px;border-radius:2px;background:var(--sfla-gold)}
body:not(#sfl-x) .sfl-appbar a:focus-visible,body:not(#sfl-x) .sfl-appbar button:focus-visible{outline:3px solid var(--sfla-gold);outline-offset:-3px}
html.sfl-app-mode body:not(#sfl-x) .sfl-credit{display:none}

/* ---- Sheets ---- */
html.sfl-sheet-open{overflow:hidden}
body:not(#sfl-x) .sfl-sheet{position:fixed;inset:0;z-index:1300;font-family:var(--sfla-sans);color:var(--sfla-text)}
body:not(#sfl-x) .sfl-sheet__back{position:absolute;inset:0;background:rgba(18,39,42,.55);backdrop-filter:blur(2px)}
body:not(#sfl-x) .sfl-sheet__panel{position:absolute;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow:auto;background:var(--sfla-ground);border-radius:24px 24px 0 0;padding:0 0 calc(20px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 40px rgba(0,0,0,.25);animation:sfl-up .32s cubic-bezier(.2,.8,.2,1)}
@keyframes sfl-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
@media (prefers-reduced-motion:reduce){body:not(#sfl-x) .sfl-sheet__panel{animation:none}}
@media (min-width:700px){body:not(#sfl-x) .sfl-sheet__panel{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:440px;border-radius:24px;animation:none}}
body:not(#sfl-x) .sfl-sheet__head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 10px;background:inherit;z-index:1}
body:not(#sfl-x) .sfl-sheet__head h2{margin:0;font:600 24px/1.1 var(--sfla-serif);color:var(--sfla-ink)}
body:not(#sfl-x) .sfl-sheet__close{appearance:none;border:0;background:#fff;color:var(--sfla-ink);width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid var(--sfla-line)}
body:not(#sfl-x) .sfl-sheet__close svg{width:18px;height:18px}
body:not(#sfl-x) .sfl-sheet__close:focus-visible,body:not(#sfl-x) .sfl-sheet .sfl-btn:focus-visible,body:not(#sfl-x) .sfl-links a:focus-visible{outline:3px solid var(--sfla-gold);outline-offset:2px}
body:not(#sfl-x) .sfl-sheet__body{padding:4px 20px 0}
body:not(#sfl-x) .sfl-sheet--dark .sfl-sheet__panel{background:var(--sfla-ink);color:#fff}
body:not(#sfl-x) .sfl-sheet--dark .sfl-sheet__head h2{color:#fff}
body:not(#sfl-x) .sfl-sheet--dark .sfl-sheet__close{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.15)}

/* Quick links */
body:not(#sfl-x) .sfl-links{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--sfla-line);border-radius:18px;overflow:hidden}
body:not(#sfl-x) .sfl-links li+li{border-top:1px solid #F0F1EE}
body:not(#sfl-x) .sfl-links a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 16px;color:var(--sfla-ink);font:700 15px/1.3 var(--sfla-sans);text-decoration:none}
body:not(#sfl-x) .sfl-links svg{width:18px;height:18px;flex-shrink:0}

/* Alerts */
body:not(#sfl-x) .sfl-alerts__intro{text-align:center;padding:4px 0 16px}
body:not(#sfl-x) .sfl-alerts__intro h3{margin:8px 0 6px;font:500 28px/1.1 var(--sfla-serif);color:inherit}
body:not(#sfl-x) .sfl-alerts__intro p{margin:0;font-size:14.5px;line-height:1.55;color:var(--sfla-muted)}
body:not(#sfl-x) .sfl-sheet--dark .sfl-alerts__intro p{color:#C9D3D1}
body:not(#sfl-x) .sfl-alerts__icon{width:72px;height:72px;margin:4px auto 10px;border-radius:50%;background:rgba(212,180,126,.14);border:1.5px solid var(--sfla-gold);display:flex;align-items:center;justify-content:center;color:var(--sfla-gold-text)}
body:not(#sfl-x) .sfl-sheet--dark .sfl-alerts__icon{color:var(--sfla-gold)}
body:not(#sfl-x) .sfl-alerts__icon svg{width:32px;height:32px}
body:not(#sfl-x) .sfl-eyebrow{display:block;font:700 11px/1 var(--sfla-sans);letter-spacing:.22em;text-transform:uppercase;color:var(--sfla-gold-text)}
body:not(#sfl-x) .sfl-sheet--dark .sfl-eyebrow{color:var(--sfla-gold)}
body:not(#sfl-x) .sfl-topics{background:#fff;border:1px solid var(--sfla-line);border-radius:18px;overflow:hidden}
body:not(#sfl-x) .sfl-sheet--dark .sfl-topics{background:rgba(255,255,255,.06);border-color:rgba(212,180,126,.28)}
body:not(#sfl-x) .sfl-topic{display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;position:relative}
body:not(#sfl-x) .sfl-topic+.sfl-topic{border-top:1px solid #F0F1EE}
body:not(#sfl-x) .sfl-sheet--dark .sfl-topic+.sfl-topic{border-top-color:rgba(255,255,255,.08)}
body:not(#sfl-x) .sfl-topic__text{display:flex;flex-direction:column;gap:2px;flex-grow:1}
body:not(#sfl-x) .sfl-topic__text strong{font:700 15px/1.3 var(--sfla-sans);color:inherit}
body:not(#sfl-x) .sfl-topic__text small{font-size:13px;color:var(--sfla-muted)}
body:not(#sfl-x) .sfl-sheet--dark .sfl-topic__text small{color:#A9B6B4}
body:not(#sfl-x) .sfl-switch{position:absolute;opacity:0;width:1px;height:1px}
body:not(#sfl-x) .sfl-switch__ui{flex-shrink:0;width:50px;height:30px;border-radius:999px;background:#C8CDCB;position:relative;transition:background .2s}
body:not(#sfl-x) .sfl-switch__ui::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
body:not(#sfl-x) .sfl-switch:checked+.sfl-switch__ui{background:var(--sfla-gold)}
body:not(#sfl-x) .sfl-switch:checked+.sfl-switch__ui::after{transform:translateX(20px);background:var(--sfla-ink)}
body:not(#sfl-x) .sfl-switch:focus-visible+.sfl-switch__ui{outline:3px solid var(--sfla-gold);outline-offset:2px}
body:not(#sfl-x) .sfl-sheet--dark .sfl-switch__ui{background:rgba(255,255,255,.18)}
body:not(#sfl-x) .sfl-alerts__actions{display:flex;flex-direction:column;gap:10px;margin-top:18px}
body:not(#sfl-x) .sfl-btn{appearance:none;display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 20px;border:0;border-radius:999px;font:800 16px/1 var(--sfla-sans);cursor:pointer;text-decoration:none;text-align:center}
body:not(#sfl-x) .sfl-btn--gold{background:var(--sfla-gold);color:var(--sfla-ink)}
body:not(#sfl-x) .sfl-btn--gold:hover{background:#C8A66B}
body:not(#sfl-x) .sfl-btn--ghost{background:transparent;color:inherit;text-decoration:underline;font-weight:600;min-height:44px}
body:not(#sfl-x) .sfl-btn[disabled]{opacity:.6;cursor:wait}
body:not(#sfl-x) .sfl-msg{min-height:20px;margin:10px 0 0;text-align:center;font-size:13px;color:var(--sfla-muted)}
body:not(#sfl-x) .sfl-sheet--dark .sfl-msg{color:#C9D3D1}
body:not(#sfl-x) .sfl-note{margin:0 0 12px;padding:14px 16px;border-radius:16px;background:#F3EFE6;border:1px solid #E8DCC4;color:#3A4547;font-size:14px;line-height:1.5}
body:not(#sfl-x) .sfl-sheet--dark .sfl-note{background:rgba(255,255,255,.06);border-color:rgba(212,180,126,.28);color:#DCE3E1}

/* ---- Browser nudge (phones) ---- */
body:not(#sfl-x) .sfl-nudge{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:1050;display:flex;align-items:center;gap:12px;padding:10px 10px 10px 12px;background:var(--sfla-ink);color:#fff;border:1px solid rgba(212,180,126,.45);border-radius:18px;box-shadow:0 12px 30px rgba(0,0,0,.28);font-family:var(--sfla-sans);animation:sfl-up .4s ease}
body:not(#sfl-x) .sfl-nudge img{width:40px;height:40px;border-radius:10px;flex-shrink:0}
body:not(#sfl-x) .sfl-nudge a{flex-grow:1;display:flex;flex-direction:column;gap:2px;color:#fff;text-decoration:none;min-width:0}
body:not(#sfl-x) .sfl-nudge strong{font-size:14px;line-height:1.2}
body:not(#sfl-x) .sfl-nudge small{font-size:12px;color:#C9D3D1}
body:not(#sfl-x) .sfl-nudge button{appearance:none;background:rgba(255,255,255,.1);border:0;color:#fff;width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}
body:not(#sfl-x) .sfl-nudge button svg{width:18px;height:18px}
body:not(#sfl-x) .sfl-nudge a:focus-visible,body:not(#sfl-x) .sfl-nudge button:focus-visible{outline:3px solid var(--sfla-gold);outline-offset:2px}
@media (min-width:821px){body:not(#sfl-x) .sfl-nudge{display:none}}

/* Play nicely with the theme's accessibility button */
html.sfl-app-mode body:not(#sfl-x) .sfl-a11y{bottom:calc(var(--sfla-bar) + 12px)}
html.sfl-sheet-open body:not(#sfl-x) .sfl-a11y{visibility:hidden}
html.sfl-app-mode body:not(#sfl-x) .sfl-a11y__panel{bottom:calc(var(--sfla-bar) + 76px)}
body:not(#sfl-x) .sfl-nudge{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
