/* Shared look of the public pages (guides, FAQ, about, album pages).
   Generated by tool/generate_public_album_pages.dart; the legal pages
   (privacy, terms, mentions legales) keep their own inline styles. */
:root {
  color-scheme: light dark;
  --brand: #e50914;
  --text: #1a1a1a;
  --muted: #5f5f5f;
  --bg: #fdfdfd;
  --card: #f4f4f5;
  --line: rgba(128, 128, 128, 0.28);
  --link: #b3070f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #eaeaea;
    --muted: #a9a9a9;
    --bg: #121212;
    --card: #1c1c1e;
    --link: #ff6b73;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-wrap: break-word;
}
a { color: var(--link); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 22px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand span { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; color: var(--brand); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; flex: 1; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }
.open-app {
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; font-size: 14px;
}

main { padding: 36px 0 56px; }
h1 { font-size: 30px; line-height: 1.25; margin: 0 0 10px; }
h2 { font-size: 21px; line-height: 1.3; margin: 38px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 26px; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }

.cards { display: grid; gap: 14px; padding: 0; list-style: none; margin: 22px 0 0; }
.cards li { margin: 0; }
.card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--text);
}
.card strong { display: block; font-size: 17px; color: var(--link); margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }

.callout {
  background: var(--card); border-left: 4px solid var(--brand);
  border-radius: 8px; padding: 14px 18px; margin: 22px 0;
}
.callout p:last-child { margin-bottom: 0; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details p { margin: 10px 0 0; }

.album-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
.album-head img { border-radius: 14px; }
.score { font-size: 38px; font-weight: 800; color: var(--brand); line-height: 1; }
.score small { font-size: 18px; color: var(--muted); font-weight: 600; }
.bars { list-style: none; padding: 0; margin: 14px 0 22px; }
.bars li { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 10px; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.bars b { text-align: right; }

.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  /* Brand and the app button on the first row, the menu on its own below. */
  .open-app { margin-left: auto; }
  .site-nav { order: 3; flex-basis: 100%; }
  h1 { font-size: 25px; }
  .bars li { grid-template-columns: 96px 1fr 40px; }
}
