/* Content pages: guides, sound pages, hubs, generator. Loaded after app.css. */

html[lang="he"] { --body: "Heebo", "Inter", "Segoe UI", system-ui, sans-serif; --display: "Heebo", "Nunito", "Segoe UI", system-ui, sans-serif; }
html[lang="ar"] { --body: "Noto Sans Arabic", "Inter", "Segoe UI", system-ui, sans-serif; --display: "Noto Sans Arabic", "Nunito", "Segoe UI", system-ui, sans-serif; }

.bar nav { flex-wrap: wrap; justify-content: flex-end; }
.bar nav a[aria-current="page"] { color: var(--text); }

/* generic */
.article { padding-bottom: 24px; }
.article h1 {
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.article .lead { max-width: 40em; margin-bottom: 22px; }
.art-head { max-width: 820px; padding: 8px 0 18px; }
.art-head .eyebrow { margin-bottom: 12px; }
.meta { color: var(--muted); font-size: 14px; }
.play.sm img { height: 48px; }
.hub .art-head { max-width: 900px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current] { color: var(--text); }

/* short answer (AEO) */
.answer {
  max-width: 760px;
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(126, 200, 227, 0.14), var(--surface) 70%);
  border: 1px solid rgba(126, 200, 227, 0.35);
}
.answer b {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.answer p { margin: 0; font-size: 18px; line-height: 1.6; }

/* table of contents */
.toc {
  max-width: 760px;
  margin: 0 0 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.toc b { display: block; margin-bottom: 8px; font-family: var(--display); }
.toc ol { margin: 0; padding-inline-start: 22px; columns: 2; column-gap: 32px; }
.toc li { padding: 2px 0; break-inside: avoid; }
.toc a { text-decoration: none; }

/* prose */
.prose { max-width: 760px; }
.prose.wide { max-width: none; }
.prose .sec { padding: 0; margin: 0 0 8px; }
.prose h2 {
  margin: 44px 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  scroll-margin-top: 16px;
}
.prose h3 { margin: 28px 0 8px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 24px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: #fff; font-weight: 600; }
.note-box { padding: 16px 20px; border-radius: 14px; background: rgba(255, 213, 128, 0.08); border: 1px solid rgba(255, 213, 128, 0.3); }
.disclaimer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px !important; line-height: 1.6 !important; }

.tbl { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 16px; }
.tbl th, .tbl td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--surface-hi); font-family: var(--display); font-weight: 800; }
.tbl tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq { margin-top: 44px; }
.faq h2 { margin-top: 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--display); font-weight: 800; font-size: 18px; list-style-position: inside; }
.faq details[open] summary { color: var(--gold); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* call to action box */
.cta-box {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin: 40px 0;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 213, 128, 0.12), var(--surface) 60%);
  border: 1px solid rgba(255, 213, 128, 0.35);
}
.cta-box img { width: 120px; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.cta-box h2 { margin: 0 0 8px !important; font-size: clamp(22px, 2.6vw, 28px) !important; }
.cta-box p { margin: 0 0 14px !important; color: var(--muted); font-size: 17px !important; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; }
.cards li { margin: 0 !important; }
.cards a {
  display: flex; flex-direction: column; gap: 6px; height: 100%;
  padding: 18px 20px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.cards a:hover { border-color: var(--teal); background: var(--surface-hi); }
.cards b { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.25; }
.cards span { color: var(--muted); font-size: 15px; line-height: 1.5; }
.related { margin-top: 24px; }
.related h2 { font-size: clamp(24px, 3vw, 32px); }
.hub .sec h2 { margin-top: 36px; }
.more { margin: 24px 0 0; }

/* sound sample card */
.sample {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  max-width: 820px;
  margin: 0 0 12px;
  padding: 20px 24px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sample-emoji { font-size: 44px; line-height: 1; }
.sample-title { margin: 0 0 8px; font-family: var(--display); font-weight: 800; }
.sample audio { width: 100%; max-width: 420px; }
.sample-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* noise player */
.noise-player {
  max-width: 760px;
  margin: 8px 0 24px;
  padding: 22px 24px 20px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(126, 200, 227, 0.12), var(--surface) 65%);
  border: 1px solid rgba(126, 200, 227, 0.35);
}
.np-title { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.np-title b { color: var(--text); }
.np-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.np-types button {
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: var(--night); color: var(--text); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.np-types button[aria-pressed="true"] { background: var(--teal); color: var(--night); border-color: var(--teal); }
.np-toggle {
  display: block; width: 100%; padding: 16px; margin-bottom: 16px; cursor: pointer;
  border-radius: 16px; border: 0; background: var(--gold); color: #0D1B2A;
  font-family: var(--display); font-weight: 900; font-size: 20px;
}
.np-toggle[aria-pressed="true"] { background: var(--mint); }
.np-toggle:focus-visible, .np-types button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.np-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; align-items: end; }
.np-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.np-row output { color: var(--text); font-weight: 600; margin-inline-start: 6px; }
.np-row input[type="range"] { width: 100%; accent-color: var(--teal); }
.np-row select { padding: 9px 10px; border-radius: 10px; background: var(--night); color: var(--text); border: 1px solid var(--line); font-size: 15px; }
.np-row .np-check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.np-status { min-height: 1.4em; margin: 12px 0 0; color: var(--teal); font-size: 14px; }
.np-warn { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* home additions */
.chips a { color: inherit; text-decoration: none; }
.chips li:hover { border-color: var(--teal); }
#generator .noise-player { margin-bottom: 18px; }

/* footer languages */
footer .langs { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-start; }
footer .langs [aria-current] { color: var(--text); font-weight: 600; }

/* right-to-left */
[dir="rtl"] .features .tag { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .plan li { padding: 9px 26px 9px 0; }
[dir="rtl"] .plan li::before { left: auto; right: 4px; }
[dir="rtl"] .eyebrow { letter-spacing: 0.04em; }
[dir="rtl"] .stars { direction: ltr; }

@media (max-width: 760px) {
  .toc ol { columns: 1; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box img { width: 96px; }
  .sample { grid-template-columns: auto minmax(0, 1fr); }
  .sample .play { grid-column: 1 / -1; }
  .prose p, .prose li { font-size: 17px; }
  .bar { flex-direction: column; align-items: flex-start; }
  .bar nav { justify-content: flex-start; gap: 16px; }
}
