/* Guide pages: a reading layout on top of base.css and landing.css (nav, footer, simulator). */
.g-top { background: var(--green-900); color: #fff; position: relative; }
.g-top .nav { gap: 22px; }
.g-lang { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.g-lang:hover { background: rgba(255,255,255,.1); }
:lang(ar) .g-lang, .g-lang:lang(ar) { font-family: "Plex Arabic", var(--font); }

.g-main { padding-block: 28px 70px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); } .crumbs a { color: inherit; } .crumbs a:hover { color: var(--ink); }
.g-article { max-width: 760px; margin: 0 auto; }
.g-article > section, .g-article > aside, .g-article > nav, .g-article > .sim { margin-top: 30px; }
.g-head { margin-top: 18px; }
.g-head h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.025em; }
.g-lead { margin-top: 12px; font-size: 19px; color: var(--muted); }
.g-date { margin-top: 10px; font-size: 14px; color: var(--muted); }
.g-head.hub { max-width: 760px; }

/* the short answer, first: what search engines and assistants quote */
.tldr { background: var(--green-50); border-radius: 18px; padding: 20px 24px; border-inline-start: 4px solid var(--green); }
.tldr h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--green-700); }
:lang(ar) .tldr h2 { letter-spacing: 0; }
.tldr ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.tldr li { display: flex; gap: 10px; align-items: flex-start; font-size: 16.5px; }
.tldr .ico { width: 18px; height: 18px; color: var(--green); stroke-width: 2.6; margin-top: 4px; flex: none; }

.toc { background: var(--surface); border-radius: 16px; padding: 16px 20px; box-shadow: var(--sh-1); font-size: 15px; }
.toc b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } :lang(ar) .toc b { letter-spacing: 0; }
.toc ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 4px; } .toc a { color: var(--green); text-decoration: none; } .toc a:hover { text-decoration: underline; }

.g-article section > h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.g-article section[id] { scroll-margin-top: 20px; }
.g-article p, .g-article li { font-size: 17px; line-height: 1.7; }
.g-article p + p { margin-top: 10px; }
.g-article ul { padding-inline-start: 22px; display: grid; gap: 6px; }
.g-article a:not(.btn):not(.g-card) { color: var(--green); }
.g-table { width: 100%; border-collapse: collapse; margin: 12px 0; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--sh-1); font-size: 15.5px; }
.g-table th, .g-table td { padding: 11px 14px; text-align: start; border-bottom: 1px solid var(--line); }
.g-table th { background: var(--green-50); color: var(--green-700); font-size: 14px; }
.g-table td:not(:first-child), .g-table th:not(:first-child) { text-align: end; white-space: nowrap; }
.g-table tr.sum td { background: var(--canvas); font-weight: 600; } .g-table tr.grand td { background: var(--green); color: #fff; font-weight: 800; }
.g-table tr:last-child td { border-bottom: 0; }

.g-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; padding: 26px 28px; border-radius: 22px; color: #fff;
  background: radial-gradient(360px 220px at 100% 0, rgba(224,154,37,.3), transparent 65%), var(--green-900); }
.g-cta h2 { font-size: 22px; font-weight: 800; } .g-cta p { margin-top: 6px; opacity: .85; font-size: 16px; }
.g-cta-acts { display: grid; gap: 10px; justify-items: center; }
.g-cta-2 { color: #fff; opacity: .85; font-size: 14.5px; }

.g-faq details { background: var(--surface); border-radius: 14px; box-shadow: var(--sh-1); padding: 0 20px; margin-top: 10px; }
.g-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.g-faq details[open] summary::after { content: "−"; }
.g-faq details p { padding-bottom: 16px; color: var(--muted); }

.g-sources { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.g-sources h2 { font-size: 15px !important; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.g-sources li, .g-sources p { font-size: 15px !important; } .g-sources p { margin-top: 10px; font-style: italic; }

.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.g-cards.hub { margin-top: 30px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh-1); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.g-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.g-card .ico { width: 22px; height: 22px; color: var(--green); } .g-card b { font-size: 17px; line-height: 1.3; } .g-card span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.g-card em { font-style: normal; font-weight: 700; color: var(--green); font-size: 14px; margin-top: 4px; }

.g-sim { margin-top: 30px; padding: 22px; }
.g-sim .sim-in { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .g-card { transition: none; } .g-card:hover { transform: none; } }
@media (max-width: 960px) { .g-top .nav-links { display: none; } .g-top .nav { gap: 12px; } .g-lang { margin-inline-start: auto; } }
@media (max-width: 600px) {
  .g-top .btn { display: none; }
  .g-cta { grid-template-columns: minmax(0, 1fr); } .g-cta-acts { justify-items: stretch; } .g-cta .btn { width: 100%; }
  .g-article p, .g-article li { font-size: 16px; }
  .g-table { font-size: 14px; } .g-table th, .g-table td { padding: 9px 10px; }
}
/* the second link in the green box stays readable (the article link colour would make it green on green) */
.g-article .g-cta a.g-cta-2 { color: #fff; opacity: .9; }
