/* FizzySums site: what every page shares — base, page background, the top bar with the menu and the
   language switch, the footer. Page-specific styles stay in each page's own <style>. */
.i18n-wait .wrap { visibility:hidden; }
/* the tint of the flat shadows under the cards and the bars: grass in summer; a season sets its own (assets/seasons/season.css) */
:root { --shade:23,80,30; }
html,body { margin:0; padding:0; background:#aee3f5; }
a { color:#0b64c2; text-decoration:none; }
a:hover { color:#094f9a; }
h1,h2,h3,.display { font-family:'Lilita One'; }
@keyframes floaty { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-14px) } }
@keyframes drift { 0%{ transform:translateX(0) } 100%{ transform:translateX(60px) } }
.page { background:linear-gradient(180deg,#aee3f5 0%,#cdf0fb 30%,#e6f6da 44%,#b5e57e 53%,#8fd94e 64%,#7bc93e 100%); min-height:100vh; overflow:clip; position:relative; }
.wrap { max-width:1060px; margin:0 auto; padding:0 24px; position:relative; }
/* top bar across the content width: the menu on the left, the language on the right */
/* the bar stays at the top while the page scrolls (the page clips with overflow:clip, not hidden, or sticky would not stick) */
.nav { position:sticky; top:10px; z-index:50; display:flex; align-items:center; justify-content:space-between; gap:10px 16px; margin:16px 0 0; padding:8px; background:rgba(255,255,255,.7); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-radius:999px; box-shadow:0 4px 0 rgba(var(--shade),.08), 0 8px 24px rgba(10,40,70,.12); }
.nav-links { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; }
/* menu links read as buttons: a pill of their own, white and lifted under the pointer */
.nav-links a { display:block; padding:7px 16px; border-radius:999px; background:rgba(255,255,255,.6); box-shadow:0 2px 0 rgba(var(--shade),.1); transition:background .15s, transform .15s; }
.nav-links a:hover { background:#fff; color:#0b64c2; transform:translateY(-1px); }
.nav-links a:active { transform:translateY(1px); box-shadow:none; }
.nav-links a:focus-visible { outline:2px solid #0b64c2; outline-offset:2px; }
.nav .lang-pill { background:#fff; box-shadow:0 2px 0 rgba(var(--shade),.1); transition:transform .15s, color .15s; }
.nav .lang-pill:hover { color:#0b64c2; transform:translateY(-1px); }
.nav .lang-pill:active { transform:translateY(1px); box-shadow:none; }
.nav a { color:#1b4e7a; font-weight:700; font-size:15px; }
/* language switch: a pill button opening our own list (the system <select> popup can't be styled) */
.lang { position:relative; }
.lang-pill { position:relative; display:flex; align-items:center; border:none; background:rgba(255,255,255,.75); border-radius:999px; color:#1b4e7a; font:inherit; font-weight:700; font-size:14px; padding:8px 30px 8px 36px; cursor:pointer; }
.lang-pill svg { position:absolute; left:12px; top:50%; margin-top:-9px; pointer-events:none; }
.lang-pill:focus-visible { outline:2px solid #0b64c2; outline-offset:2px; }
.lang-pill::after { content:''; position:absolute; right:12px; top:50%; margin-top:-2px; border:4px solid transparent; border-top:5px solid currentColor; pointer-events:none; transition:transform .15s; }
.lang-pill[aria-expanded="true"]::after { transform:translateY(-3px) rotate(180deg); }
.lang-menu { position:absolute; top:calc(100% + 8px); right:0; z-index:60; min-width:190px; margin:0; padding:6px; list-style:none; background:#fff; border-radius:18px; box-shadow:0 6px 0 rgba(var(--shade),.12), 0 14px 32px rgba(10,40,70,.22); animation:lang-pop .14s ease-out; }
@keyframes lang-pop { from { opacity:0; transform:translateY(-6px) scale(.97); } }
.lang-menu li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 14px; border-radius:12px; font-weight:700; font-size:15px; color:#1b4e7a; cursor:pointer; outline:none; }
.lang-menu li:hover, .lang-menu li:focus { background:#e3f4fc; color:#0b64c2; }
.lang-menu li[aria-selected="true"] { background:#d2eefb; }
.lang-menu li svg { flex:none; visibility:hidden; }
.lang-menu li[aria-selected="true"] svg { visibility:visible; }
/* even lines: paragraphs avoid a lone last word */
h1, h2, h3 { text-wrap:balance; }
p, li { text-wrap:pretty; }
/* footer */
.foot { text-align:center; padding:8px 0 46px; color:#2a5578; font-size:14px; }
.foot-links { display:flex; gap:8px 20px; justify-content:center; flex-wrap:wrap; margin-bottom:10px; font-weight:700; }
.foot-links a { color:#1b4e7a; }
.foot-links a:hover { color:#0b64c2; }
@media (max-width:560px) {
  .nav { flex-direction:column; border-radius:24px; padding:10px 12px; }
  .wrap { padding:0 16px; }
  .nav-links { justify-content:center; gap:6px; }
  .nav-links a { font-size:13px; padding:6px 10px; }
  .lang-menu { right:50%; transform:translateX(50%); animation:none; }
}
