/* Articles: loaded after /assets/home.css, so they share the landing page's tokens, type, nav and footer. */

.g-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(56px, 8vw, 96px) var(--gutter) 48px; }
.g-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 12% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(50% 70% at 92% 8%, color-mix(in srgb, var(--transfer) 22%, transparent), transparent 70%),
    linear-gradient(180deg, var(--accent-c) -30%, var(--bg) 100%);
}
.g-hero-in, .g-body { max-width: 740px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--ink); }
.g-hero h1 { margin: 20px 0 0; font-size: clamp(2.2rem, 1.2rem + 4vw, 3.8rem); font-weight: 600; line-height: 1.02; letter-spacing: -.042em; text-wrap: balance; }
.g-hero .lede { max-width: none; margin: 22px 0 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--ink); opacity: .88; }
.g-hero .meta { margin: 18px 0 0; color: var(--faint); font-size: 14.5px; }

.g-body { width: calc(100% - 2 * var(--gutter)); padding: 16px 0 40px; font-size: 1.08rem; line-height: 1.75; }
.g-body p, .g-body li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.g-body h2 { margin: 56px 0 14px; font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.05rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); }
.g-body h3 { margin: 32px 0 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.g-body ul, .g-body ol { padding-left: 1.3em; }
.g-body li { margin: 8px 0; }
.g-body li::marker { color: var(--accent); }
.g-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.scroll { overflow-x: auto; margin: 24px 0; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); }
.g-body table { width: 100%; border-collapse: collapse; font-size: .97rem; line-height: 1.5; }
.g-body th, .g-body td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.g-body tr:last-child td { border-bottom: 0; }
.g-body th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.g-body pre { margin: 0; padding: 18px 20px; font: 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--on-accent-c); }
.g-body code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--raised); }
.g-body pre code { padding: 0; background: none; }

.g-body figure { margin: 36px 0; }
.shot { display: block; width: min(300px, 78%); height: auto; margin: 0 auto; border-radius: 34px; border: 8px solid var(--device); box-shadow: 0 0 0 1px var(--device-edge), 0 40px 80px -30px color-mix(in srgb, var(--accent) 50%, transparent); }
.g-body figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: .95rem; }

.cta { margin: 56px 0 0; padding: 34px 28px; border-radius: 24px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--accent-c); }
.cta p { margin: 0 0 20px; color: var(--on-accent-c); font-size: 1.1rem; }
.cta strong { color: var(--ink); }

.related { margin-top: 56px; }
.related h2 { margin-top: 0; font-size: 1.35rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.related li { margin: 0; }
.related a { display: block; height: 100%; padding: 18px 20px; border-radius: 16px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color 160ms var(--ease), transform 200ms var(--ease); }
.related a:hover { background: var(--raised-hi); transform: translateY(-2px); }
@media (min-width: 640px) { .related ul { grid-template-columns: 1fr 1fr; } }

/* The Arabic articles mirror the layout (see the right-to-left block in home.css). */
[dir="rtl"] .g-body ul, [dir="rtl"] .g-body ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .g-body th, [dir="rtl"] .g-body td { text-align: right; }
