/* Pàgines estàtiques (guia, diccionari, preguntes freqüents, qui som, textos legals): tools/estatiques.js.
   Fan servir styles.css de l'app; aquí només hi ha el que és propi d'aquestes pàgines. */
body.st { padding-bottom: 0; }
.st .topbar { position: sticky; top: 0; z-index: 30; }
.st-nav { display: flex; gap: 2px; margin-left: 10px; }
.st-nav a { text-decoration: none; font-weight: 700; font-size: .92rem; color: rgba(255, 250, 240, .72); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.st-nav a:hover { color: var(--card); background: rgba(255, 250, 240, .1); }
.st-nav a.on { color: var(--ink); background: var(--yellow); }
.st-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.st-open { white-space: nowrap; }
.st-main { max-width: 880px; margin: 0 auto; padding: 26px 20px 64px; }
.st-crumbs { margin: 0 0 18px; font-size: .84rem; font-weight: 700; color: var(--muted); }
.st-crumbs a { color: var(--ink); }
.st-head { margin-bottom: 22px; }
.st-head .page-title { margin: 4px 0 10px; }
.st-lead { font-size: 1.12rem; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.st-text { display: grid; gap: 4px; }
.st-text h2 { margin: 22px 0 6px; font-family: var(--display); font-weight: 900; letter-spacing: -.02em; font-size: 1.3rem; }
.st-text p, .st-text li { line-height: 1.6; }
.st-text ul { padding-left: 20px; display: grid; gap: 6px; }
.st-text a, .st-faq a, .st-quiz a, .st-ch .ap-body a { color: var(--ink); font-weight: 700; }
/* Portada de la guia */
.st-part { margin: 0 0 18px; padding: 16px 18px; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: 4px 4px 0 var(--tone, var(--ink)); }
.st-part h2 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; font-family: var(--display); font-weight: 900; letter-spacing: -.02em; font-size: 1.25rem; }
.st-part h2 span { font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.st-part > .muted { margin: 4px 0 0; }
.st-chs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.st-chs a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: inherit; }
.st-chs a:hover { background: #fff4d4; }
.st-chn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); font-family: var(--display); font-weight: 900; font-size: .86rem; }
.st-chs b { display: block; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.st-chs small { color: var(--ink-2); font-size: .86rem; }
.st-more { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 800; }
.st-more a { color: var(--ink); }
/* Capítol */
.st-ch .ap-ch-head { margin-bottom: 16px; }
.st-try { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 2px dashed var(--ink); background: color-mix(in srgb, var(--tone, var(--yellow)) 10%, var(--card)); font-weight: 600; }
.st-try a { color: var(--ink); font-weight: 800; }
.st-quiz { margin-top: 24px; }
.st-quiz ol { display: grid; gap: 12px; padding-left: 20px; }
.st-quiz li p { margin: 4px 0 0; line-height: 1.5; }
.st-ans { font-weight: 800; color: #1d9a5b; }
.st-cta { display: grid; gap: 2px; margin: 24px 0; padding: 16px 18px; text-decoration: none; color: var(--card); background: var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--tone, var(--red)); }
.st-cta b { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--yellow); }
.st-cta span { opacity: .85; }
/* Diccionari */
.st-abc { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.st-abc a { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); font-weight: 900; color: var(--ink); text-decoration: none; }
.st-abc a:hover { background: var(--yellow); }
.st-letter { scroll-margin-top: 90px; }
.st-letter h2 { margin: 18px 0 6px; font-family: var(--display); font-weight: 900; font-size: 1.6rem; }
.st-letter dl { margin: 0; display: grid; gap: 2px; }
.st-letter dt { scroll-margin-top: 90px; margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.st-letter dt:target { background: var(--yellow); border-radius: 6px; padding: 2px 6px; margin-left: -6px; }
.st-letter dd { margin: 2px 0 0; line-height: 1.55; color: var(--ink-2); }
/* Preguntes freqüents */
.st-faq { display: grid; gap: 12px; }
.st-faq section { padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.st-faq h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; }
.st-faq p { margin: 0; line-height: 1.55; }
.st-faq-more { margin-top: 8px !important; font-size: .88rem; }
/* Peu */
.st-foot { background: var(--ink); color: var(--card); }
.st-foot-in { max-width: 880px; margin: 0 auto; padding: 26px 20px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.st-foot p { margin: 0; }
.st-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.st-foot a { color: var(--card); font-weight: 700; font-size: .9rem; }
.st-indep { font-size: .8rem; opacity: .7; }
@media (max-width: 900px) {
  .st .topbar-inner { flex-wrap: wrap; }
  .st-nav { order: 3; width: 100%; margin: 6px 0 0; overflow-x: auto; scrollbar-width: none; }
  .st-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
  .st-main { padding: 18px 16px 48px; }
  .st-lead { font-size: 1rem; }
  .st .brand-name { font-size: .8rem; }
  .st-open { padding: 8px 12px; font-size: .84rem; }
  .st .lang-btn { height: 34px; padding: 0 10px; font-size: .72rem; }
}
.st-l-short { display: none; }
@media (max-width: 560px) { .st-l-long { display: none; } .st-l-short { display: inline; } .st .brand-name { font-size: .74rem; } .st-acts { gap: 6px; } }

/* Pàgines de dades */
.st-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0 0 18px; }
.st-facts > div { display: grid; gap: 2px; padding: 14px; border: 2px solid var(--ink); border-radius: var(--radius-sm); background: var(--card); box-shadow: 3px 3px 0 var(--ink); }
.st-facts b { font-family: var(--display); font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.st-facts span { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.st-tablewrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; font-size: .92rem; }
.st-table th, .st-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); white-space: nowrap; }
.st-table th { background: var(--ink); color: var(--card); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.st-table td:nth-child(n+3), .st-table th:nth-child(n+3) { text-align: right; }
.st-table small.up { color: #1d9a5b; font-weight: 800; } .st-table small.down { color: #d23c2a; font-weight: 800; }
.st-table tfoot td { border-top: 2px solid var(--ink); }
