/* Shared style for Orpex sub-pages (guides, provider pages, trade + city pages).
   Same palette as index.html. Light by default, dark when the system asks. */
:root {
  --bg: #FDEEDC;
  --surface-alt: #E7EFE4;
  --surface: #FFFFFF;
  --border: #E2D6BC;
  --text: #2B2A27;
  --text-muted: #6B6A5E;
  --secondary: #3B5361;
  --focus: #3B5361;
  --accent-ink: #8A6A12;
  --accent: #F2D250;
  --accent-text: #2B2A27;
  --gradient: linear-gradient(135deg, #F2D250 0%, #ECC33C 100%);
  --warn-bg: #FFF4D6;
  --warn-border: #E9C46A;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 26px rgba(43, 42, 39, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2B2A27;
    --surface-alt: #2E3F49;
    --surface: #35332E;
    --border: #4A463C;
    --text: #FBEEDC;
    --text-muted: #B7BDAE;
    --secondary: #7FA0AC;
    --focus: #8FB6C6;
    --accent-ink: #F2D250;
    --warn-bg: #3d3523;
    --warn-border: #8A6A12;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #2B2A27;
  --surface-alt: #2E3F49;
  --surface: #35332E;
  --border: #4A463C;
  --text: #FBEEDC;
  --text-muted: #B7BDAE;
  --secondary: #7FA0AC;
  --focus: #8FB6C6;
  --accent-ink: #F2D250;
  --warn-bg: #3d3523;
  --warn-border: #8A6A12;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--secondary); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 750; margin-top: 2rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin-top: 1.4rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.site-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-head .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang-links { display: flex; gap: 10px; font-size: 0.9rem; }
.lang-links a { text-decoration: none; color: var(--text-muted); }
.lang-links a[aria-current="true"] { color: var(--text); font-weight: 700; }

main { padding: 28px 0 56px; }
.crumbs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.crumbs a { color: var(--text-muted); }
.lead { font-size: 1.1rem; color: var(--text-muted); }
.updated { font-size: 0.85rem; color: var(--text-muted); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); }
.safety { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius-md); padding: 16px 18px; margin: 18px 0; }
.safety > strong:first-child { display: block; margin-bottom: 4px; }

.cta { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; margin: 32px 0 8px; }
.cta h2 { margin-top: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; font-weight: 650; padding: 0.8rem 1.3rem; border-radius: var(--radius-sm); text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-primary { background: var(--gradient); color: var(--accent-text); border-color: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pro-card { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--text); }
.pro-card img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-alt); flex: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.4rem; color: var(--accent-ink); }
.pro-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.pro-head .avatar, .pro-head img { width: 96px; height: 96px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tags li { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.facts b { display: block; font-size: 1.2rem; }
.muted { color: var(--text-muted); }
.review { border-top: 1px solid var(--border); padding: 12px 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 10px; }
summary { font-weight: 650; cursor: pointer; }

.site-foot { border-top: 1px solid var(--border); padding: 24px 0 40px; font-size: 0.9rem; color: var(--text-muted); }
.site-foot a { color: var(--text-muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }

[dir="rtl"] body, body[dir="rtl"] { font-family: "Noto Sans Arabic", Tahoma, "Segoe UI", sans-serif; }

@media (max-width: 520px) {
  .pro-head { flex-direction: column; align-items: flex-start; }
}
