/* Sources and credits: a light page under the app's pale header bar. */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--paper);scroll-padding-top:calc(var(--hdr) + env(safe-area-inset-top,0px))}
body{margin:0;min-height:100vh;background:var(--paper);color:var(--text);font-family:var(--font);font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration-color:rgba(33,84,172,.4);text-underline-offset:3px}
a:hover{color:var(--ink);text-decoration-color:currentColor}
a:focus-visible,button:focus-visible{outline:2px solid var(--focus);outline-offset:2px;border-radius:2px}

.cr-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:14px;min-height:calc(var(--hdr) + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-right)) 0 max(18px,env(safe-area-inset-left));
  background:var(--pale);color:var(--ink)}
.cr-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;text-decoration:none;font-size:15px;color:var(--ink)}
.cr-back:hover{text-decoration:underline}
.cr-back svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
:root[dir="rtl"] .cr-back svg{transform:scaleX(-1)}
.cr-brand{margin-inline:auto;font-size:24px;line-height:1;letter-spacing:-.01em}
.cr-brand .logo{display:block;width:auto;height:36px}   /* the LHCb logo (ui/logo.js) */
#langSlot{display:flex}
/* the language button sits on the pale bar here: blue outline, ink text */
#langSlot .lang-btn{border-color:var(--blue);color:var(--ink)}
#langSlot .lang-btn:hover{background:var(--card)}
#langSlot .lang-btn:focus-visible{outline-color:var(--focus)}

.cr{max-width:1040px;margin:0 auto;padding:56px 24px 80px}
.cr h1{margin:0;font-family:var(--font-display);font-style:italic;font-weight:600;font-synthesis:none;font-size:clamp(40px,7vw,80px);line-height:1.02;letter-spacing:-.015em;color:var(--ink)}
.cr-intro{margin:18px 0 44px;max-width:52ch;font-size:clamp(17px,1.8vw,21px);line-height:1.4;color:var(--text-long)}

.cr-sec{display:grid;grid-template-columns:220px minmax(0,1fr);gap:8px 36px;padding:26px 0 22px;border-block-start:1px solid var(--line)}
.cr-sec h2{margin:3px 0 0;font-size:12px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--blue)}
:root[data-untracked] .cr-sec h2{letter-spacing:0}
.cr-body{max-width:68ch}
.cr-body p{margin:0 0 12px;color:var(--text-long)}
.cr-body p:last-child{margin-bottom:0}
.cr-note{color:var(--dim)!important;font-size:15.5px}
/* the statistics' switch (the privacy section, credits.js) */
.cr-switch{display:flex;align-items:center;gap:10px;min-height:44px;margin:4px 0 2px;font-weight:500;color:var(--ink);cursor:pointer}
.cr-switch[hidden]{display:none}
.cr-switch input{width:20px;height:20px;margin:0;flex:none;accent-color:var(--blue)}
/* a game's or a story's sources: its title (from games.json / stories.json), then one line of citations */
.cr-cites{margin:0 0 12px}
.cr-cites:last-child{margin-bottom:0}
.cr-cites dt{font-weight:600;color:var(--ink)}
.cr-cites dd{margin:0 0 10px;color:var(--text-long);overflow-wrap:anywhere}
.cr-cites dd:last-child{margin-bottom:0}
/* citations are Latin script in every language: their own direction, so a right-to-left page keeps their punctuation in place */
.cr-cites dd,.cr-cite{unicode-bidi:plaintext}

@media (max-width:720px){
  .cr{padding:36px 16px 56px}
  .cr-sec{grid-template-columns:minmax(0,1fr);padding:20px 0 16px}
  .cr-intro{margin-bottom:28px}
  body{font-size:16px}
}
/* the version, at the end of the page (credits.js) */
.cr-version{margin:0;padding-top:18px;border-block-start:1px solid var(--line);font-size:14px}
