/* Shared styles for the translated pages (/es/…, /pt/…), on top of /style.css.
   Class names are lp-* (language pages). The Spanish pages were built first
   with es-* names; those are kept as aliases below rather than renamed in
   every file. New pages use lp-*. */
.lang-switch { font-size: 0.85rem; color: var(--text-dim); text-decoration: none; margin-right: 12px; }
.lang-switch:hover { color: var(--gold); }
.lp-msg, .es-msg { font-size: 0.9rem; min-height: 1.4em; margin: 0 0 12px; color: var(--text-dim); }
.lp-msg.is-error, .es-msg.is-error { color: #E5706A; }

.lp-faq details, .es-faq details { border-bottom: 1px solid var(--border-subtle); padding: 18px 0; }
.lp-faq summary, .es-faq summary { cursor: pointer; font-size: 1.05rem; font-weight: 500; list-style: none; }
.lp-faq summary::-webkit-details-marker, .es-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after, .es-faq summary::after { content: '+'; float: right; color: var(--gold); }
.lp-faq details[open] summary::after, .es-faq details[open] summary::after { content: '−'; }
.lp-faq details p, .es-faq details p { margin: 12px 0 0; line-height: 1.7; color: var(--text-dim); }

/* Article and text pages */
.lp-page, .es-page { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
:is(.lp-page, .es-page) h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 12px; }
:is(.lp-page, .es-page) :is(.lp-meta, .es-meta) { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 40px; }
:is(.lp-page, .es-page) h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 44px 0 14px; }
:is(.lp-page, .es-page) h3 { font-size: 1.1rem; margin: 28px 0 10px; }
:is(.lp-page, .es-page) :is(p, li) { line-height: 1.75; color: var(--text-dim); }
:is(.lp-page, .es-page) p { margin-bottom: 18px; }
:is(.lp-page, .es-page) :is(ul, ol) { margin: 0 0 18px 20px; }
:is(.lp-page, .es-page) li { margin-bottom: 6px; }
:is(.lp-page, .es-page) a { color: var(--gold); text-decoration: none; }
:is(.lp-page, .es-page) a:hover { text-decoration: underline; }
:is(.lp-page, .es-page) table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 0.95rem; }
:is(.lp-page, .es-page) :is(th, td) { border-bottom: 1px solid var(--border-subtle); padding: 10px 8px; text-align: left; vertical-align: top; }
/* Long words (French, Portuguese) can make a 3-column table wider than a phone: tighter cells, and break inside words as a last resort */
@media (max-width: 480px) {
  :is(.lp-page, .es-page) :is(th, td) { padding: 8px 5px; overflow-wrap: anywhere; hyphens: auto; }
}
:is(.lp-page, .es-page) th { color: var(--text); font-weight: 600; }
:is(.lp-page, .es-page) .ba-slider { margin: 8px 0 28px; }
.lp-cta, .es-cta { border: 1px solid var(--border-subtle); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
:is(.lp-cta, .es-cta) h3 { margin-top: 0; }
.lp-crumbs, .es-crumbs { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 18px; }
:is(.lp-crumbs, .es-crumbs) a { color: var(--text-dim); }

/* App screenshots row on the app page */
.lp-shots, .es-shots { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
:is(.lp-shots, .es-shots) img { width: 180px; height: auto; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }

/* Translated footers carry more links (language picks): let them wrap on phones */
.footer-nav { flex-wrap: wrap; row-gap: 12px; }
@media (max-width: 600px) { .footer-nav { gap: 12px 20px; } }

[hidden] { display: none !important; }
