:root { color-scheme: light; --bg: #FFFCF7; --panel: #FBF0E4; --text: #2E1F16; --muted: #6F5D4C; --accent: #0088B0; --accent2: #E8456F; --line: #EDE2D2; }
* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #026988; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -8rem; padding: 1rem; background: var(--panel); z-index: 2; }
.skip:focus { top: 1rem; }

@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }

/* ===== Chrome (header/footer) ===== */
.lex-header { position: sticky; top: 0; z-index: 50; background: rgba(255,252,247,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.lex-header-inner { max-width: 1120px; margin: auto; padding: 14px clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.lex-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.lex-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 16px rgba(0,136,176,.25); }
.lex-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.lex-brand-name { font-weight: 800; font-size: 19px; color: var(--accent); }
.lex-brand-by { font-size: 11px; color: #8A7C6C; font-weight: 700; }
.lex-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.lex-nav a { padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: 14.5px; color: #5C4B3C; text-decoration: none; }
.lex-langtoggle { display: flex; align-items: center; gap: 2px; background: var(--panel); border-radius: 999px; padding: 3px; flex-shrink: 0; }
.lex-langtoggle button { border: none; cursor: pointer; padding: 6px 13px; border-radius: 999px; font-weight: 800; font-size: 12.5px; background: transparent; color: #8A7C6C; transition: .15s; font-family: inherit; }
.lex-langtoggle button.active { background: var(--accent); color: #fff; }

.lex-footer { background: #2E1F16; color: #C9B9A8; margin-top: 4rem; }
.lex-footer-inner { max-width: 1120px; margin: auto; padding: 40px clamp(1.25rem, 4vw, 3rem) 28px; display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.lex-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.lex-footer-brand img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; }
.lex-footer-brand span { font-weight: 800; font-size: 16px; color: #fff; }
.lex-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lex-footer a { color: #C9B9A8; text-decoration: none; font-size: 14px; }
.lex-footer a:hover { color: #fff; }
.lex-footer-bottom { border-top: 1px solid #45362A; }
.lex-footer-bottom-inner { max-width: 1120px; margin: auto; padding: 16px clamp(1.25rem, 4vw, 3rem); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #9A8B7A; }

@media print { .lex-header, .lex-footer, .skip { display: none; } }
