/* ==========================================================
   Thahlan — Friendly theme (friendly-redesign-v1)
   Loaded AFTER style.css. Delete the <link> to friendly.css
   to return to the original terminal look.
   ========================================================== */

:root{
  --bg:#FBF7F1; --bg-panel:#FFFFFF; --bg-panel-2:#FFF4E8;
  --line:#E6DACA; --line-soft:#EFE7DC;
  --gold:#C2540A; --gold-bright:#A84808; --gold-dim:#8A3F0A;
  --white:#1F1A14; --ink:#3A332B; --ink-dim:#6B6157;
  --font-display:"Plus Jakarta Sans", Inter, -apple-system, "Segoe UI", sans-serif;
  --font-body:"Plus Jakarta Sans", Inter, -apple-system, "Segoe UI", sans-serif;
  --ok:#1E7D45; --bad:#B83227;
  --radius:18px;
}

html{ -webkit-font-smoothing:antialiased; }
body, body.rp{ background:var(--bg); color:var(--ink); font-family:var(--font-body); }
::selection{ background:#FFE1C4; color:#1F1A14; }

/* Headings: friendly, sentence case, no shouting */
h1,h2,h3,h4{ font-family:var(--font-display); color:var(--white); letter-spacing:-0.015em; }
h1{ font-weight:800; }
h2{ font-weight:700; }

/* ---------- Header & bars ---------- */
.site-header{ background:rgba(251,247,241,0.92) !important; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line-soft); box-shadow:0 1px 0 rgba(31,26,20,0.03); }
.social-top, .mkt-clock, .mkt-bar, .ticker{ background:#FFFFFF !important; border-color:var(--line-soft) !important; }
.nav-drop-menu{ background:#FFFFFF !important; border:1px solid var(--line) !important; border-radius:14px; box-shadow:0 18px 40px rgba(31,26,20,0.12); overflow:hidden; }
.lang-toggle{ border-radius:999px; overflow:hidden; }
.lang-toggle .is-on{ background:var(--white) !important; color:#FFFFFF !important; }

/* ---------- Buttons ---------- */
.btn{ font-family:var(--font-body); font-size:.95rem; font-weight:600; letter-spacing:0; text-transform:none; border-radius:12px; padding:14px 24px; }
.btn-primary{ background:var(--gold); color:#FFFFFF !important; }
.btn-primary:hover{ background:var(--gold-bright); box-shadow:0 10px 24px rgba(194,84,10,0.22); }
.btn-outline{ background:#FFFFFF; border:1px solid var(--line); color:var(--white); }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); }
.tt-go, .report-tag, .eco-tag.eco-fed, .gf-tag.gf-ev{ color:#FFFFFF !important; border-radius:8px; }
.tt-k{ color:#FFFFFF !important; border-radius:4px; }
#reports .feature-cta:hover{ color:#FFFFFF !important; }

/* ---------- Cards ---------- */
.plan, .research-card, .why-item, .follow-box, .hero-chart{
  background:#FFFFFF !important; border:1px solid var(--line-soft) !important; border-radius:var(--radius) !important;
  box-shadow:0 1px 2px rgba(31,26,20,0.04), 0 8px 24px rgba(31,26,20,0.05);
}
.plan:hover, .research-card:hover, .why-item:hover, .hero-chart:hover{
  border-color:#F2CFA8 !important; box-shadow:0 18px 40px rgba(31,26,20,0.10) !important; transform:translateY(-4px);
}
.plan .fee, .research-card .price{ font-family:var(--font-body); font-weight:600; }
.plan ul li::before{ content:"✓"; color:var(--gold); font-weight:700; }
.plan .featured-tag{ color:#FFFFFF !important; border-radius:999px; padding:4px 12px; }
.why-item .num{ font-family:var(--font-body); font-weight:700; color:var(--gold); font-size:.85rem; }

/* ---------- Terminal / data panels: light, readable ---------- */
.term-bar{ background:var(--gold) !important; color:#FFFFFF !important; border-radius:14px 14px 0 0; }
.term-bar a{ color:#FFFFFF !important; }
/* Section title bars: big, clear, easy to spot */
.term-bar{ padding:14px 18px !important; min-height:52px; display:flex !important; align-items:center !important; justify-content:space-between; gap:12px; font-family:var(--font-body) !important; font-size:16px !important; font-weight:700 !important; letter-spacing:0 !important; text-transform:none !important; line-height:1.35 !important; }
.term-bar > span:first-child{ font-size:16px !important; }
.term-bar .term-live, .term-bar a{ font-size:13px !important; font-weight:600 !important; white-space:nowrap; }
html[dir="rtl"] .term-bar{ font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; font-size:17px !important; }
html[dir="rtl"] .term-bar > span:first-child{ font-size:17px !important; }
.term-live i{ background:#FFFFFF !important; }
.terminal, .term-intro, .eco-section, .gov-section, .reports{ background:transparent; }
.terminal > *, .eco-section > .container > *, .gov-section > .container > *{ border-radius:var(--radius); }
.gf-tag, .eco-tag{ border-radius:999px; }
.gf-tag.gf-approve{ background:var(--ok) !important; border-color:var(--ok) !important; color:#FFFFFF !important; }
.gf-tag.gf-sell{ background:var(--bad) !important; border-color:var(--bad) !important; color:#FFFFFF !important; }
.ti-chips a, .ti-chips button{ border-radius:999px !important; }

/* Reports library */
.report-cover{ background:#FFFFFF !important; border-radius:12px; }
#reports .feature-cover, .rp-cover img{ border:1px solid var(--line-soft) !important; box-shadow:0 18px 40px rgba(31,26,20,0.12) !important; border-radius:12px; }

/* ---------- Forms ---------- */
.field input, .field textarea, #mailSubEmail{
  background:#FFFFFF !important; border:1px solid #D3C8B8 !important; border-radius:12px; color:var(--white);
  font-family:var(--font-body); font-size:1rem;
}
.field input:focus, .field textarea:focus, #mailSubEmail:focus{ border-color:var(--gold) !important; box-shadow:0 0 0 4px rgba(194,84,10,0.12); outline:none; }

/* ---------- Pop-ups & command palette ---------- */
.follow-backdrop, .cmdk-backdrop{ background:rgba(31,26,20,0.35) !important; }
.cmdk-box{ background:#FFFFFF !important; border:1px solid var(--line) !important; border-radius:16px; box-shadow:0 30px 80px rgba(31,26,20,0.2) !important; overflow:hidden; }

/* ---------- Section rhythm: alternate warm bands ---------- */
#services, #why, #contact{ background:#FFFFFF; }
#research, #about{ background:var(--bg); }
#markets, #terminal, #calendar, #macro, #filings, #flows, #upcoming{ background:#FBF2E6; }

/* Up/down colors readable on light */
.up, .pos, .gf-up{ color:var(--ok) !important; }
.down, .neg, .gf-down{ color:var(--bad) !important; }

/* Headlines in sentence case, roomier hero card */
h1, h2, h3{ text-transform:none !important; }
.hero h1{ font-size:clamp(2.2rem, 4.6vw, 3.6rem); line-height:1.1; }
.hero-chart{ padding:28px !important; }
.membership-card{ padding:0; }

/* Breathing room inside cards */
.plan, .research-card, .why-item{ padding:28px 24px !important; }
@media (max-width:560px){ .plan, .research-card, .why-item{ padding:22px 18px !important; } }

/* ---------- Phone friendly ---------- */
@media (max-width:720px){
  .hero .btn{ display:block; width:100%; text-align:center; }
  .btn, .plan-cta{ min-height:48px; display:flex; align-items:center; justify-content:center; }
  .ti-chips{ gap:8px !important; flex-wrap:wrap; }
  .ti-chips a{ display:inline-flex; align-items:center; min-height:44px; padding:0 16px !important; border:1px solid var(--line); background:#FFFFFF; }
  button.gf-more{ min-height:44px; padding:0 18px; border-radius:999px; }
  .footer-links{ display:flex; flex-wrap:wrap; gap:4px 18px; }
  .footer-links a, .term-bar a, .rp-link, dd a{ display:inline-flex; align-items:center; min-height:44px; }
  .membership-social{ display:flex; flex-wrap:wrap; gap:8px; }
  .membership-social a.social-btn{ display:inline-flex; align-items:center; min-height:44px; padding:0 14px; border:1px solid var(--line); border-radius:999px; background:#FFFFFF; }
  .lang-toggle{ height:auto !important; min-height:40px; align-items:stretch; }
  .lang-toggle > *{ display:inline-flex !important; align-items:center; justify-content:center; height:auto !important; min-height:40px; padding:0 12px !important; }
  .site-header .brand{ min-height:44px; display:inline-flex; align-items:center; }
  .field input, .field textarea, #mailSubEmail{ font-size:16px; } /* stops iPhone zooming into forms */
  section{ scroll-margin-top:110px; }
  .bf-top .brand, .bf-top a.brand{ min-height:44px; display:inline-flex; align-items:center; }
  .rp-top nav{ display:flex; flex-wrap:wrap; gap:4px 14px; }
  .rp-top nav a, .rp-foot .wrap a{ display:inline-flex; align-items:center; min-height:44px; padding:0 4px; }
}

/* ---------- Free report block & market up/down colors ---------- */
#reports .report-tag, .report-tag.locked{ background:none !important; color:var(--gold) !important; padding:0 !important; }
#reports .feature-cta{ background:var(--gold) !important; color:#FFFFFF !important; border:1px solid var(--gold) !important; }
#reports .feature-cta:hover{ background:var(--gold-bright) !important; color:#FFFFFF !important; }
.mc-status.is-open b, .is-today .eco-count, .mx-c.up, .gf-mv.up, .f13-k.f-new, .f13-k.f-add{ color:var(--ok) !important; }
.mx-c.dn, .gf-mv.dn, .f13-k.f-cut, .f13-k.f-exit{ color:var(--bad) !important; }
.form-status.ok{ color:var(--ok) !important; }
.form-status.err{ color:var(--bad) !important; }

/* ---------- Readability: bigger, darker text across the whole site ---------- */
:root{ --ink:#2A241E; --ink-dim:#4F463C; }
body{ font-size:16.5px; line-height:1.65; }
p, li, dd{ color:var(--ink); }
/* No see-through text anywhere */
.gf-sub, .mx-l, .mx-c, .mx-n, .term-note, .f13-k, .bf-head p, .bf-head .k{ opacity:1 !important; }
/* Small labels, dates and tags: minimum 14px, never faint */
.gf-date, .term-date, .eco-time, .eco-count, .mc-ex, .mc-next, .mx-n, dt, label, .eyebrow, .gf-more, .social-btn, .plan-includes, .gf-mv, .mx-c{ font-size:14px !important; }
.gf-tag, .eco-tag, .f13-k, .report-tag{ font-size:13px !important; font-weight:600 !important; }
.gf-sub, .term-ex, .eco-ref, .plan-desc, .mx-l, .term-note{ font-size:15px !important; color:var(--ink-dim) !important; }
.gf-date, .term-date, .eco-count, .mc-ex, .mc-next{ color:var(--gold-dim) !important; font-weight:600 !important; }
.plan ul li, .research-card ul li, .why-item p{ font-size:15.5px !important; color:var(--ink) !important; }
.btn{ font-size:16px !important; }

/* Arabic: larger still, with comfortable line spacing */
html[dir="rtl"] body{ font-size:17.5px; line-height:1.8; }
html[dir="rtl"] p, html[dir="rtl"] li, html[dir="rtl"] dd{ font-size:max(1em, 17px); line-height:1.8; }
html[dir="rtl"] .gf-date, html[dir="rtl"] .term-date, html[dir="rtl"] .eco-time, html[dir="rtl"] .eco-count, html[dir="rtl"] .mc-ex, html[dir="rtl"] .mc-next, html[dir="rtl"] .mx-n, html[dir="rtl"] dt, html[dir="rtl"] label, html[dir="rtl"] .eyebrow, html[dir="rtl"] .gf-more, html[dir="rtl"] .social-btn, html[dir="rtl"] .plan-includes, html[dir="rtl"] .gf-mv, html[dir="rtl"] .mx-c{ font-size:15px !important; }
html[dir="rtl"] .gf-tag, html[dir="rtl"] .eco-tag, html[dir="rtl"] .f13-k, html[dir="rtl"] .report-tag{ font-size:14px !important; }
html[dir="rtl"] .gf-sub, html[dir="rtl"] .term-ex, html[dir="rtl"] .eco-ref, html[dir="rtl"] .plan-desc, html[dir="rtl"] .mx-l, html[dir="rtl"] .term-note{ font-size:16.5px !important; }
html[dir="rtl"] .plan ul li, html[dir="rtl"] .research-card ul li, html[dir="rtl"] .why-item p{ font-size:17px !important; }
html[dir="rtl"] h2{ font-size:max(1em, 28px); line-height:1.45; }
html[dir="rtl"] h3, html[dir="rtl"] h4{ line-height:1.5; font-weight:700; }
html[dir="rtl"] .btn{ font-size:17px !important; }

/* Deeper orange so every orange word passes the readability standard */
:root{ --gold:#B04A06; --gold-bright:#8F3C05; --gold-dim:#7E3708; }
/* Last tiny text: nothing under 13px */
.brand-name, .brand b, .brand-sub{ font-size:12px !important; }
.hc-text, .ti-k, .mc-time, .lang-toggle .is-on, .lang-toggle a, .report-info, .feature-inside, .copyright, .disclaimer, .form-note, .site-footer span{ font-size:13px !important; }
.nav-toggle{ min-width:44px; min-height:44px; }
/* Phone header & market clock: always fit the screen */
@media (max-width:720px){
  .site-header .nav{ gap:8px !important; }
  .nav-social{ gap:8px !important; }
  .lang-toggle > *{ padding:0 10px !important; }
  .mkt-clock-inner{ flex-wrap:wrap !important; row-gap:2px !important; column-gap:10px !important; }
  .mkt-clock-inner .mc-next{ white-space:nowrap; }
}
@media (max-width:440px){
  .site-header .brand-name{ display:none !important; }
  .bf-top .wrap, .rp-top-in{ flex-wrap:wrap !important; row-gap:2px !important; }
  .bf-top nav, .rp-top nav{ gap:4px 14px !important; }
}
/* Membership box: clear description + bought/sold points */
.membership-card .membership-lead{ font-size:18px !important; font-weight:700 !important; color:var(--white) !important; margin:6px 0 10px !important; line-height:1.5; }
.membership-card .membership-points{ list-style:none; margin:0 0 12px !important; padding:0 !important; display:flex; flex-direction:column; gap:8px; }
.membership-card .membership-points li{ position:relative; padding-inline-start:30px; font-size:16.5px !important; font-weight:600; color:var(--ink) !important; line-height:1.5; }
.membership-card .membership-points li::before{ content:"✓"; position:absolute; inset-inline-start:0; top:0; width:22px; height:22px; border-radius:50%; background:#FFE7D1; color:var(--gold); font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; }
.membership-card .membership-plan{ font-size:15px !important; color:var(--ink-dim) !important; margin:0 0 14px !important; }
html[dir="rtl"] .membership-card .membership-lead{ font-size:20px !important; }
html[dir="rtl"] .membership-card .membership-points li{ font-size:18px !important; }
html[dir="rtl"] .membership-card .membership-plan{ font-size:16.5px !important; }

/* Membership social links: clear separate buttons */
.membership-social{ display:flex !important; flex-wrap:wrap !important; gap:8px !important; }
.membership-social a.social-btn{ display:inline-flex !important; align-items:center; min-height:44px; padding:0 16px !important; border:1px solid var(--line) !important; border-radius:999px !important; background:#FFFFFF !important; font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; font-size:14px !important; font-weight:600 !important; color:var(--gold) !important; text-decoration:none; }
html[dir="rtl"] .membership-social a.social-btn{ font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; font-size:15px !important; }

/* Computer-size menu: clear, consistent words */
@media (min-width:1025px){
  #navLinks > a, .nav-drop-btn{ font-size:15px !important; font-weight:600 !important; color:var(--ink) !important; }
  html[dir="rtl"] #navLinks > a, html[dir="rtl"] .nav-drop-btn{ font-size:16px !important; }
}
@media (min-width:1025px) and (max-width:1240px){
  #navLinks > a, .nav-drop-btn{ font-size:14px !important; }
}
@media (min-width:1025px) and (max-width:1180px){
  .site-header .brand-name{ display:none !important; }
}

/* Pop-ups: follow links and "Maybe later" clear and readable */
.report-follow a, .follow-later{ font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; font-size:15px !important; font-weight:600 !important; min-height:44px; display:flex !important; align-items:center; justify-content:center; border-radius:12px !important; }
.report-follow a{ color:var(--gold) !important; }
.follow-later{ color:var(--ink-dim) !important; background:none; border:0; width:100%; }
.follow-close{ min-width:44px; min-height:44px; color:var(--ink) !important; }
html[dir="rtl"] .report-follow a, html[dir="rtl"] .follow-later{ font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; font-size:16px !important; }

/* Brief + report pages: no text under 13px */
.bf-head .k, .rp-kicker{ font-size:13px !important; }
.bf-top .brand-name, .bf-top .brand b, .rp-top .brand-name{ font-size:13px !important; }
.rp-num, .term-msg{ font-size:14px !important; }
.rp-top nav a{ font-size:15px !important; font-weight:600; }
.rp-foot, .rp-foot .wrap, .rp-foot .wrap a{ font-size:14px !important; }
.rp-disc{ font-size:13.5px !important; line-height:1.6; color:var(--ink-dim) !important; }
html[dir="rtl"] .rp-disc{ font-size:15px !important; }
html[dir="rtl"] .bf-head .k, html[dir="rtl"] .rp-kicker{ font-size:14px !important; }

/* Already-reported earnings stay readable (slightly muted, not faded out) */
.gf-row.is-done{ opacity:.85 !important; }
.ti-k{ opacity:1 !important; }

/* Remaining small spots (both languages) */
.about-stats span, .report-meta .report-cat, .footer-links a, .hero-chart .cap span, .mc-status b, .mail-sub p, .eco-date span, .ti-chips a{ font-size:14px !important; opacity:1 !important; }
.term-intro p{ opacity:1 !important; color:var(--ink-dim) !important; }
.footer-links a{ color:var(--ink) !important; }
.ti-chips a{ color:var(--white) !important; font-weight:600 !important; font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; }
html[dir="rtl"] .about-stats span, html[dir="rtl"] .report-meta .report-cat, html[dir="rtl"] .footer-links a, html[dir="rtl"] .hero-chart .cap span, html[dir="rtl"] .mc-status b, html[dir="rtl"] .mail-sub p, html[dir="rtl"] .eco-date span, html[dir="rtl"] .ti-chips a, html[dir="rtl"] .lang-toggle .is-on{ font-size:15px !important; font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; }

/* ---------- Menu: clear, readable items (English + Arabic) ---------- */
.nav-links a, .nav-drop-btn{ font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; }
.nav-drop-menu a b{ color:var(--white) !important; font-weight:600 !important; font-size:15px !important; text-transform:none !important; letter-spacing:0 !important; font-family:inherit !important; }
.nav-drop-menu a span{ color:var(--ink-dim) !important; opacity:1 !important; font-size:13px !important; text-transform:none !important; letter-spacing:0 !important; font-family:inherit !important; }
.nav-drop-menu a:hover b{ color:var(--gold) !important; }
html[dir="rtl"] .nav-links a, html[dir="rtl"] .nav-drop-btn, html[dir="rtl"] .nav-drop-menu a{ font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif !important; }
@media (max-width:1024px){
  .nav-links.open{ background:#FFFFFF !important; }
  .nav-links a, .nav-drop-btn{ color:var(--white) !important; font-size:17px !important; font-weight:600 !important; min-height:52px; display:flex !important; align-items:center; }
  .nav-drop-btn{ width:100%; justify-content:space-between; }
  .nav-drop-menu{ position:static !important; inset:auto !important; min-width:0 !important; margin:0 0 8px !important; padding:4px 0 !important; background:#FBF2E6 !important; border:0 !important; border-radius:14px !important; box-shadow:none !important; }
  .nav-drop-menu a{ display:flex !important; flex-direction:column !important; align-items:flex-start !important; justify-content:center; gap:3px; min-height:60px; padding:10px 18px !important; border-bottom:1px solid var(--line-soft) !important; }
  .nav-drop-menu a:last-child{ border-bottom:0 !important; }
  .nav-drop-menu a b{ font-size:17px !important; line-height:1.35; }
  .nav-drop-menu a span{ display:block !important; font-size:14px !important; line-height:1.45; }
  html[dir="rtl"] .nav-drop-menu a{ align-items:flex-start !important; text-align:right; }
  /* Pressed / focused menu item: clearly highlighted */
  .nav-links a:active, .nav-links a:focus-visible, .nav-drop-btn:active{ background:#FFE7D1 !important; }
  .nav-drop-menu a:active, .nav-drop-menu a:focus-visible{ background:#C2540A !important; }
  .nav-drop-menu a:active b, .nav-drop-menu a:active span, .nav-drop-menu a:focus-visible b, .nav-drop-menu a:focus-visible span{ color:#FFFFFF !important; }
  .nav-drop-btn[aria-expanded="true"]{ color:var(--gold) !important; }
}

/* ---------- Weekly brief page (/brief, /brief-ar) ---------- */
.bf-top{ background:#FFFFFF; border-bottom:1px solid var(--line-soft) !important; }
.bf-top nav{ font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; font-size:.9rem !important; flex-wrap:wrap; }
.bf-top nav a{ color:var(--gold) !important; display:inline-flex; align-items:center; min-height:44px; font-weight:600; }
.bf-head .k{ color:var(--gold) !important; opacity:1 !important; }
.bf-head h1{ color:var(--white) !important; }
.bf-head p{ color:var(--ink-dim) !important; opacity:1 !important; font-family:var(--font-body) !important; font-size:.95rem !important; }
.bf-share textarea{ background:#FFFFFF !important; color:var(--white) !important; border:1px solid #D3C8B8 !important; border-radius:12px; font-size:15px !important; }
.bf-btns button, .bf-btns a{ background:var(--gold) !important; color:#FFFFFF !important; border-radius:12px; font-family:var(--font-body) !important; text-transform:none !important; letter-spacing:0 !important; font-size:.92rem !important; font-weight:600; min-height:44px; padding:0 18px !important; display:inline-flex; align-items:center; }
.bf-btns a.ghost{ background:#FFFFFF !important; color:var(--gold) !important; border:1px solid var(--line) !important; }
.bf-arch a{ color:var(--gold) !important; display:inline-flex; align-items:center; min-height:44px; }
.bf-kv span:nth-child(odd){ color:var(--ink-dim) !important; opacity:1 !important; }
.bf-kv span:nth-child(even){ color:var(--white) !important; }

/* Arabic page: Arabic typeface first */
html[dir="rtl"] body, html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] .btn{ font-family:"IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif; letter-spacing:0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:3px solid rgba(194,84,10,0.45); outline-offset:3px; border-radius:8px; }
