/* Arabic travel guides (public/guides/*.html): a reading layout on the 2026 redesign tokens (redesign.css).
 * Reading column ~70ch, contents box, callouts, comparison tables, the data calculator, related guides, plan CTA. */

.gd-page { background: var(--paper); padding-block: calc(78px + clamp(20px, 4vw, 44px)) clamp(48px, 7vw, 88px); }
.gd-wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--pad-x); display: grid; gap: 28px; }
@media (min-width: 1000px) { .gd-wrap.has-side { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }

.gd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.gd-crumbs a { color: var(--muted); text-decoration: none; }
.gd-crumbs a:hover { color: var(--blue); }

.gd-head { display: grid; gap: 12px; max-width: 760px; }
.gd-kicker { font-size: 13px; font-weight: 600; color: var(--red); }
.gd-head h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.3; text-wrap: balance; margin: 0; }
.gd-lead { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--ink); line-height: 1.85; margin: 0; }
.gd-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.gd-meta span { display: inline-flex; align-items: center; gap: 6px; }

.gd-article { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 44px); min-width: 0; }
.gd-body { max-width: 70ch; font-size: 16.5px; line-height: 2; color: var(--text); }
.gd-body > * + * { margin-top: 16px; }
.gd-body h2 { font-size: clamp(21px, 2.4vw, 26px); color: var(--ink); margin-top: 38px; line-height: 1.4; scroll-margin-top: 96px; }
.gd-body h3 { font-size: 18px; color: var(--ink); margin-top: 26px; }
.gd-body p, .gd-body ul, .gd-body ol { margin-bottom: 0; }
.gd-body ul, .gd-body ol { padding-inline-start: 22px; display: grid; gap: 6px; }
.gd-body li::marker { color: var(--blue); }
.gd-body strong { color: var(--ink); }
.gd-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.gd-toc { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.gd-toc strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 14.5px; }
.gd-toc ol { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: 14.5px; }
.gd-toc a { color: var(--text); text-decoration: none; }
.gd-toc a:hover { color: var(--blue); }

.gd-tip, .gd-warn { border-radius: 14px; padding: 14px 16px; border-inline-start: 4px solid var(--blue); background: var(--blue-50); color: var(--ink); font-size: 15.5px; line-height: 1.85; }
.gd-warn { border-color: #D9941A; background: #FBF1DF; }
.gd-tip b, .gd-warn b { display: block; margin-bottom: 2px; }

.gd-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; line-height: 1.7; }
.gd-table th, .gd-table td { padding: 11px 14px; border-bottom: 1px solid var(--divider); text-align: start; vertical-align: top; }
.gd-table thead th { background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.gd-table tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.gd-table tbody tr:last-child > * { border-bottom: 0; }
.gd-table .yes { color: var(--green-text); font-weight: 600; }
.gd-table .no { color: #B3261E; font-weight: 600; }

.gd-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; border-radius: 18px; padding: 20px 22px; background: var(--ink); color: #fff; }
.gd-cta p { margin: 0; font-size: 16px; line-height: 1.7; max-width: 46ch; color: #E9EAEE; }
.gd-cta p b { color: #fff; }
.gd-cta .btn { background: #fff; color: var(--ink); border-color: #fff; }

.gd-faq details { border-bottom: 1px solid var(--line); padding-block: 12px; }
.gd-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 16px; }
.gd-faq details p { margin: 8px 0 0; }

.gd-side { display: grid; gap: 14px; }
@media (min-width: 1000px) { .gd-side { position: sticky; top: calc(var(--notice-h, 0px) + 92px); } }
.gd-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 8px; }
.gd-card h2, .gd-card h3 { font-size: 15.5px; margin: 0; color: var(--ink); }
.gd-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.gd-card a { color: var(--text); text-decoration: none; }
.gd-card a:hover { color: var(--blue); }
.gd-card .btn { justify-content: center; }

/* hub */
.gd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gd-tile { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.gd-tile:hover { border-color: var(--blue); transform: translateY(-2px); }
.gd-tile .gd-tag { font-size: 12.5px; font-weight: 600; color: var(--blue); }
.gd-tile h2 { font-size: 19px; line-height: 1.45; margin: 0; color: var(--ink); }
.gd-tile p { margin: 0; font-size: 14.5px; line-height: 1.8; }
.gd-tile.main { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: #D9DBE1; }
.gd-tile.main h2 { color: #fff; font-size: clamp(21px, 2.6vw, 27px); }
.gd-tile.main .gd-tag { color: #9CC3FF; }

/* data calculator */
.calc { border: 1px solid var(--line); border-radius: 20px; padding: clamp(16px, 3vw, 24px); background: var(--paper); display: grid; gap: 16px; }
.calc h3 { margin: 0; }
.calc-row { display: grid; gap: 8px; }
.calc-row > span { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips label { position: relative; }
.calc-chips input { position: absolute; opacity: 0; inset: 0; }
.calc-chips span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-size: 14px; cursor: pointer; color: var(--ink); }
.calc-chips input:checked + span { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 600; }
.calc-chips input:focus-visible + span { outline: 3px solid var(--blue-soft); }
.calc-days { display: flex; align-items: center; gap: 12px; }
.calc-days input[type="range"] { flex: 1; accent-color: var(--blue); }
.calc-days output { min-width: 5.5em; font-weight: 700; color: var(--ink); }
.calc-out { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; }
.calc-out .big { font-size: clamp(22px, 3vw, 28px); font-weight: 700; color: var(--ink); }
.calc-out .rec { color: var(--ink); }
.calc-out .btn { justify-self: start; margin-top: 6px; }

.gd-lang-note { display: none; }
html[lang="en"] .gd-lang-note { display: block; background: var(--blue-50); border: 1px solid var(--sky); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--ink); }

/* buttons inside the article / side cards keep their own colours (the text-link colour above must not win) */
.gd-body a.btn, .gd-card a.btn { text-decoration: none; }
.gd-body a.btn-primary, .gd-card a.btn-primary { color: #fff; }
.gd-body .gd-cta a.btn, .gd-body a.btn-ghost-light, .gd-card a.btn-ghost-light { color: var(--ink); }
