/* Baytna — article pages (area pages and owner guides).
   Written by the platform's CRAFT agent and published only after the founder approves.
   Same palette and type as the home page and the privacy notice; no scripts. */
:root {
  --ink: #1a120c; --ink-2: #231811; --pearl: #fbf4ea; --mute: rgba(251, 240, 226, 0.78);
  --faint: rgba(251, 240, 226, 0.58); --sand: #e7b07a; --line: rgba(231, 176, 122, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif; --sans: Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--pearl); font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--sand); }
:focus-visible { outline: 1.5px solid var(--sand); outline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 8px; }
.brand { color: var(--pearl); text-decoration: none; letter-spacing: 0.32em; font-size: 13px; font-weight: 500; }
.top__cta { font-size: 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--pearl); white-space: nowrap; }
.top__cta:hover { border-color: var(--sand); }

.crumbs { margin: 40px 0 0; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--faint); }
.eyebrow { margin: 40px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }
h1 { font: 400 clamp(38px, 7vw, 60px)/1.05 var(--serif); margin: 10px 0 16px; }
.lede { font-size: 19px; color: var(--pearl); }
h2 { font: 400 clamp(26px, 4vw, 32px)/1.2 var(--serif); color: var(--sand); margin: 48px 0 10px; }
h3 { font: 500 17px/1.4 var(--sans); margin: 24px 0 6px; }
p, li { color: var(--mute); }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--ink-2); }
.stat__value { font: 400 30px/1.1 var(--serif); color: var(--pearl); }
.stat__label { font-size: 13px; color: var(--faint); margin-top: 4px; }

.table-wrap { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--faint); font-size: 13px; }
td { color: var(--pearl); }

.note { border-left: 2px solid var(--sand); padding: 4px 0 4px 16px; margin: 24px 0; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; color: var(--pearl); font-weight: 400; }
.faq details p { margin: 8px 0 0; }

.cta { margin: 56px 0 0; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--ink-2); }
.cta h2 { margin-top: 0; }
.btn { display: inline-block; margin-top: 8px; background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 999px; padding: 12px 22px; }
.btn:hover { background: #f3c9a3; }

.sources { margin-top: 40px; font-size: 13px; color: var(--faint); }
.sources p, .sources li { color: var(--faint); }
.foot { padding-top: 48px; padding-bottom: 48px; font-size: 14px; color: rgba(251, 240, 226, 0.55); }
.foot a { color: rgba(251, 240, 226, 0.7); }

.hub { list-style: none; padding: 0; margin: 12px 0 0; }
.hub li { border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; }
.hub a { font: 400 22px/1.3 var(--serif); text-decoration: none; }
.hub a:hover { text-decoration: underline; }
.hub span { font-size: 15px; color: var(--faint); }

/* Header: language switch */
.top__nav { display: flex; align-items: center; gap: 14px; }
.top__lang { font-size: 14px; color: var(--mute); text-decoration: none; }
.top__lang:hover { color: var(--pearl); }
.brand__ar { font: 500 15px "Noto Naskh Arabic", serif; letter-spacing: 0; color: var(--sand); margin-inline-start: 6px; }

/* Arabic pages (right to left) */
[dir="rtl"] body, html[dir="rtl"] body { font-family: "Noto Naskh Arabic", var(--sans); font-size: 18px; line-height: 1.9; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] .stat__value { font-family: "Noto Naskh Arabic", var(--serif); font-weight: 600; line-height: 1.4; }
html[dir="rtl"] h1 { font-size: clamp(32px, 6vw, 48px); }
html[dir="rtl"] h2 { font-size: clamp(24px, 4vw, 30px); }
html[dir="rtl"] .hub a { font-family: "Noto Naskh Arabic", var(--serif); font-size: 21px; }
html[dir="rtl"] ul { padding-left: 0; padding-right: 1.2em; }
html[dir="rtl"] .hub { padding-right: 0; }
html[dir="rtl"] th, html[dir="rtl"] td { text-align: right; }
html[dir="rtl"] .note { border-left: 0; border-right: 2px solid var(--sand); padding: 4px 16px 4px 0; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .brand { letter-spacing: 0.32em; }
html[dir="rtl"] .sources ul { padding-right: 0; }

/* Enquiry form (Arabic hub) — works without JavaScript */
.enq { display: grid; gap: 8px; margin-top: 16px; }
.enq label { font-size: 15px; color: var(--mute); margin-top: 6px; }
.enq input:not([type="radio"]):not([type="checkbox"]), .enq select {
  width: 100%; font: inherit; font-size: 16px; color: var(--pearl); background: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.enq input:focus, .enq select:focus { outline: none; border-color: var(--sand); }
.enq fieldset { border: 0; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.enq legend { font-size: 15px; color: var(--mute); margin-bottom: 8px; width: 100%; }
.enq fieldset label { margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--pearl); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.enq fieldset label:has(input:checked) { border-color: var(--sand); background: rgba(231, 176, 122, 0.14); }
.enq input[type="radio"], .enq input[type="checkbox"] { accent-color: var(--sand); }
.enq .consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.enq .btn { margin-top: 12px; border: 0; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-ar { position: relative; }
