/* Public content pages: /signals and /strategies (rendered by pages.js). Uses styles.css + landing.css. */
.l-links a { color: var(--dim); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 9px; text-decoration: none; } .l-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
a.brand, a.btn { text-decoration: none; } a.brand { color: var(--text); }
.p-main { padding-top: 44px; padding-bottom: 20px; }
.p-head { max-width: 760px; margin: 0 auto 30px; text-align: center; } .p-head p { color: var(--dim); font-size: 16px; }
.p-head.left { margin: 0 0 26px; text-align: start; max-width: 860px; } .p-head h1 span { margin-inline-end: 6px; }
.p-tag { font-size: 19px !important; color: var(--text) !important; }
.p-crumb { font-size: 13px; color: var(--mute); margin-bottom: 14px; }
.p-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 20px; }
.p-tiles .tile-val small { font-size: 13px; margin: 0 8px 0 3px; } .p-tiles .tile-sub b { color: var(--text); } .p-tiles .tile-sub b.pos { color: var(--pos); } .p-tiles .tile-sub b.neg { color: var(--neg); }
.p-tbl td { vertical-align: top; } .p-tbl td b { color: var(--text); font-weight: 600; } .p-tbl td:first-child { font-weight: 500; color: var(--dim); white-space: nowrap; }
.p-sub { display: block; font-size: 12px; color: var(--mute); font-weight: 400; }
.p-lock { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.p-days { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 34px; }
.p-note { max-width: 820px; margin: 0 auto 34px; } .p-note h2, .p-article h2 { font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; margin: 26px 0 8px; } .p-note p, .p-article p, .p-article li { color: var(--dim); font-size: 15.5px; line-height: 1.65; margin-bottom: 10px; } .p-note b, .p-article b { color: var(--text); }
.p-article h2:first-child { margin-top: 0; } .p-article ul { padding-inline-start: 20px; margin-bottom: 12px; }
.p-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; margin-bottom: 30px; }
.p-box { margin-bottom: 14px; } .p-box .card-title { margin-bottom: 10px; } .p-box .btn { margin-top: 8px; }
.p-small { font-size: 13px; color: var(--mute); margin-top: 10px; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 26px; }
.p-card { display: block; text-decoration: none; color: inherit; padding: 18px; transition: border-color .15s, transform .15s; } .p-card:hover { border-color: var(--brand-line); transform: translateY(-3px); text-decoration: none; }
.p-card h3 { font-family: var(--display); font-size: 16px; margin-bottom: 6px; display: flex; gap: 9px; } .p-card p { color: var(--dim); font-size: 13.5px; }
.p-rec { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.p-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding: 26px 28px; margin: 34px 0 0; border-color: var(--brand-line); background: radial-gradient(70% 140% at 0% 0%, rgba(139,123,255,0.22), transparent 70%), var(--panel); }
.p-cta h2 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 4px; } .p-cta p { color: var(--dim); max-width: 620px; }
@media (max-width: 900px) { .p-cols { grid-template-columns: 1fr; } .p-tbl th:nth-child(3), .p-tbl td:nth-child(3) { display: none; } }
.p-langs { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; } .p-langs a, .p-langs b { padding: 5px 7px; border-radius: 7px; text-decoration: none; color: var(--mute); } .p-langs b { color: var(--text); background: var(--panel3); } .p-langs a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 700px) { .p-langs { display: none; } }


/* ── Phones ── */
@media (max-width: 700px) {
  .l-nav-cta .p-langs { display: inline-flex; gap: 0; } .p-langs a, .p-langs b { padding: 6px 6px; }
  .l-nav-cta a.btn.ghost { display: none; }
  .l-nav .l-wrap { gap: 10px; } .l-nav-cta { min-width: 0; gap: 8px; } .l-nav-cta a.btn.primary { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding: 9px 13px; }
  .p-main { padding-top: 28px; } .p-head { margin-bottom: 22px; } .p-head p { font-size: 15px; }
  .p-tiles { grid-template-columns: 1fr; gap: 10px; } .p-days { flex-wrap: wrap; margin-bottom: 26px; }
  .p-cta { padding: 20px 18px; } .p-cta .btn { width: 100%; } .p-note p, .p-article p, .p-article li { font-size: 15px; }
  /* signal table → one card per signal: time · score · result / match / strategy · price / pick */
  .p-tbl, .p-tbl tbody { display: block; }
  .p-tbl tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 13px 14px; border-top: 1px solid var(--line); }
  .p-tbl tr:first-child { display: none; }
  .p-tbl tr:nth-child(2) { border-top: none; }
  .p-tbl td, .p-tbl td:nth-child(3) { display: block; padding: 0; border: none; min-width: 0; }
  .p-tbl td:nth-child(1) { grid-area: 1 / 1; font-size: 12px; color: var(--mute); }
  .p-tbl td:nth-child(3) { grid-area: 1 / 2; font-size: 12px; color: var(--dim); } .p-tbl td:nth-child(3) .p-sub { display: inline; }
  .p-tbl td:nth-child(7) { grid-area: 1 / 3; }
  .p-tbl td:nth-child(2) { grid-area: 2 / 1 / 3 / 4; font-size: 14px; }
  .p-tbl td:nth-child(4) { grid-area: 3 / 1 / 4 / 3; }
  .p-tbl td:nth-child(6) { grid-area: 3 / 3; font-size: 15px; color: var(--text); }
  .p-tbl td:nth-child(5) { grid-area: 4 / 1 / 5 / 4; color: var(--text); } .p-tbl td:nth-child(5):empty { display: none; }
  .p-lock { white-space: normal; }
}
@media (max-width: 480px) { a.brand > span { display: none; } }

/* ── Signed-in visitors: name + Dashboard instead of Sign in / Start free (class set by the script in pages.js) ── */
html:not(.is-user) .l-in, html.is-user .l-out { display: none !important; }
@media (max-width: 700px) { .l-nav-cta .l-user { flex: none; } }

/* ── Affiliate programme page ── */
.p-step { position: relative; } .p-step:hover { transform: none; } .p-step h3 { margin-top: 10px; }
.p-num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #070912; background: var(--grad); }
.p-article h3 { font-size: 15.5px; margin: 16px 0 4px; }
.p-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; } @media (max-width: 700px) { .p-cta-btns { width: 100%; } .p-cta-btns .btn { flex: 1 1 100%; } }

/* Guides: numbered steps, an example to copy, a tip */
.p-article code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; unicode-bidi: isolate; }
.p-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; color: var(--text); background: var(--bg2); border: 1px solid var(--brand-line); border-radius: 12px; padding: 14px 16px; margin: 4px 0 14px; overflow-x: auto; text-align: left; }
.p-steps { list-style: none; counter-reset: step; padding: 0; margin: 6px 0 14px; }
.p-steps li { counter-increment: step; position: relative; padding-inline-start: 46px; min-height: 32px; margin-bottom: 14px !important; }
.p-steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--text); font-weight: 700; font-size: 14px; }
.p-tip { background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 12px; padding: 12px 16px; color: var(--text) !important; }
.p-article { min-width: 0; } .p-code { max-width: 100%; }
.p-shot { margin: 8px 0 18px; } .p-shot img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 16px; border: 1px solid var(--line2); box-shadow: var(--shadow); }
.p-shot figcaption { font-size: 13px; color: var(--mute); margin-top: 8px; max-width: 420px; }
.p-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; } .p-groups .chip { text-decoration: none; } .section-h small { color: var(--mute); font-weight: 500; font-size: 0.7em; }

/* Narrow phones: tighter language links so the header row (logo · EN FR ES AR · Dashboard) fits at 320px in every language */
@media (max-width: 400px) { .p-langs a, .p-langs b { padding: 6px 3px; font-size: 11px; } }
.p-card h3 .p-pro { margin-inline-start: auto; align-self: center; } .p-pro-note { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--dim); font-size: 14px; margin-top: 10px; }
/* Strategy records: the hit line on a strategy card, and the premium strategies' table on /strategies */
.p-card .p-hit { margin-top: 10px; font-size: 12.5px; } .p-card .p-hit b { color: var(--text); }
.p-rec td b { color: var(--text); } .p-rec td:first-child, .p-rec td:nth-child(4) { white-space: nowrap; }
.p-center { text-align: center; }
@media (max-width: 700px) { .p-rec th:nth-child(2), .p-rec td:nth-child(2), .p-rec th:nth-child(5), .p-rec td:nth-child(5) { display: none; } }
