/* Content pages (guides): questions hub, questions pages and landing blocks under tool pages.
   Only the design tokens of hurra.css; mobile-first, no images. */

.g-head { padding-block: clamp(1.6rem, 5vw, 3.2rem) clamp(1rem, 3vw, 1.8rem); position: relative; isolation: isolate; }
.g-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 60% at 8% 10%, rgba(255, 61, 127, .12), transparent 70%),
              radial-gradient(40% 55% at 92% 0%, rgba(255, 197, 61, .16), transparent 70%); }
.g-head h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin-bottom: .6em; overflow-wrap: break-word; }
.g-lead { max-width: none; }
.g-lead + .g-lead { margin-top: -.2em; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; color: var(--muted); font-size: .92rem; font-weight: 600; margin: 1.2rem 0 0; }

/* breadcrumb */
.g-crumbs { margin-bottom: 1.1rem; font-size: .9rem; }
.g-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; color: var(--muted); }
.g-crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.g-crumbs li + li::before { content: "›"; color: color-mix(in srgb, var(--muted) 70%, transparent); }
:root[dir="rtl"] .g-crumbs li + li::before, [dir="rtl"] .g-crumbs li + li::before { content: "‹"; }
.g-crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.g-crumbs a:hover { color: var(--pink); text-decoration: underline; }
.g-crumbs [aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* body */
.g-body { padding-bottom: clamp(2rem, 5vw, 3.5rem); font-size: 1.04rem; }
.g-body p { color: var(--ink-2); }
.g-sec { margin-top: clamp(2rem, 5vw, 3rem); scroll-margin-top: 84px; }
.g-sec h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); scroll-margin-top: 84px; }

/* table of contents */
.g-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  padding: 1.1rem 1.3rem; margin-top: 1.2rem; }
.g-toc-title { font: 800 .82rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; }
.g-toc ol { margin: 0; padding-inline-start: 1.3rem; display: grid; gap: .35rem; }
.g-toc li::marker { color: var(--pink); font-weight: 800; }
.g-toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.g-toc a:hover { color: var(--pink); text-decoration: underline; }
@media (min-width: 760px) { .g-toc ol { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* open questions, numbered across the page */
.g-qs { margin: 1rem 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .55rem; }
.g-qs li { position: relative; padding: .75rem 1rem .75rem 3.3rem; border-radius: var(--r-sm); background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); line-height: 1.5; }
.g-qs li::before { content: attr(data-n); position: absolute; inset-inline-start: .7rem; top: .7rem; min-width: 1.9rem; height: 1.9rem;
  padding: 0 .3rem; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--pink) 12%, var(--surface));
  color: var(--pink); font: 800 .82rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
:root[dir="rtl"] .g-qs li, [dir="rtl"] .g-qs li { padding: .75rem 3.3rem .75rem 1rem; }

/* quiz-ready questions */
.g-quiz { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1rem 0 1.2rem; }
.g-qcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 1rem 1.1rem 1.1rem; }
.g-qcard-chip { font-size: .74rem; padding: .2rem .6rem; }
.g-qcard-q { font-size: 1.08rem; margin: .7rem 0 .7rem; line-height: 1.3; }
.g-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.g-opts li { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: var(--r-xs); background: var(--surface-2);
  border: 1px solid var(--line); font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.g-letter { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; background: var(--grad-night); color: #fff;
  font: 800 .78rem/1 var(--font-display); }

/* tips */
.g-tips { margin: 1rem 0 1.2rem; padding: 0; list-style: none; display: grid; gap: .5rem; }
.g-tips li { position: relative; padding: .7rem 1rem .7rem 2.6rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--mint) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mint) 30%, var(--line)); color: var(--ink); }
.g-tips li::before { content: "✓"; position: absolute; inset-inline-start: 1rem; top: .7rem; font-weight: 800; color: var(--mint); }
:root[dir="rtl"] .g-tips li, [dir="rtl"] .g-tips li { padding: .7rem 2.6rem .7rem 1rem; }

/* call to action */
.g-cta { margin-top: clamp(2rem, 5vw, 3rem); padding: clamp(1.6rem, 5vw, 2.8rem); }
.g-cta h2, .g-cta-title { color: #fff; font: 800 clamp(1.4rem, 3.6vw, 2rem)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 .5em; }
.g-cta .g-cta-text { color: #fff; opacity: .94; max-width: 46ch; margin-inline: auto; }
.g-cta .btn { white-space: normal; text-align: center; }

/* FAQ */
.g-faq .faq { margin-top: 1rem; }

/* cards: hub and "more lists" */
.g-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g-card { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--ink); padding: 1.3rem 1.4rem; }
.g-card:hover { color: var(--ink); }
.g-card h3 { margin: 0; font-size: 1.16rem; line-height: 1.25; }
.g-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.g-card .chip { align-self: flex-start; }
.g-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-top: .4rem; }
.g-go { font-weight: 800; color: var(--pink); }
.g-more h2 { text-align: center; margin-bottom: 1.2rem; }
.g-back { margin-block: 1.5rem 2.5rem; font-weight: 700; }
.g-back a { text-decoration: none; }

/* landing block under a tool page */
.g-landing { border-top: 1px solid var(--line); }
.g-landing .g-body { padding-bottom: 0; }
.g-landing .g-sec:first-of-type { margin-top: 1rem; }

/* compact "Question lists" cards (guides/_lists.html): tool landings and quiz result pages */
.g-lists h2 { text-align: center; margin: 0 0 1rem; }
.g-lists .g-cards { gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.g-lists .g-card { padding: 1rem 1.1rem; gap: .4rem; }
.g-lists .g-card h3 { font-size: 1.02rem; }
.g-lists-all { text-align: center; margin: 1rem 0 0; font-weight: 700; }
.g-lists-all a { text-decoration: none; }
.g-lists-result { margin-block: 1.5rem; }
.g-lists-result h2 { font-size: 1.25rem; }

@media print {
  .g-toc, .g-cta, .g-more, .g-back, .g-lists { display: none !important; }
  .g-qs li, .g-qcard, .g-tips li { box-shadow: none; break-inside: avoid; }
}
/* "How we write our lists" (the editorial standards page), next to the updated date and on the hub */
.g-editorial { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.g-editorial:hover { color: var(--pink); }
.g-editorial-note { font-size: .95rem; color: var(--muted); }
