/* Hand-written grammar checker language pages (.gc-guide), built from data/grammar-pages/<slug>.json.
   Only what aiwa-seo.css does not already provide: readable prose columns, the quick-answer box,
   the recorded check (text with its highlighted flags, the flag table, the notes), a two-column
   card grid and the review line. Tokens only, so dark mode follows the rest of the explainer. */

.gc-guide .gc-guide-prose { max-width: 760px; margin-inline: auto; }
.gc-guide .gc-guide-prose .wx-p { color: var(--aiwa-text); font-size: 16.5px; line-height: 1.75; }
.gc-guide .gc-guide-prose .wx-p + .wx-p { margin-top: 16px; }
.gc-guide .wx-head + .gc-guide-prose { margin-top: 28px; }
.gc-guide .gc-guide-table { margin: 28px 0; }
.gc-guide .gc-guide-table .wx-table { min-width: 0; }
.gc-guide .gc-guide-table + .wx-p { margin-top: 0; }

.gc-guide .gc-answer { max-width: 760px; margin: 32px auto 0; }
.gc-guide .gc-answer-q { margin: 0 0 6px; color: var(--aiwa-ink); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

.gc-guide .gc-runs { max-width: 900px; margin-inline: auto; }
.gc-guide .gc-run > .wx-t { margin-bottom: 14px; }
.gc-guide .gc-run-text { padding: 20px 22px; border: 1px solid var(--aiwa-line); border-radius: 14px; background: var(--aiwa-card); color: var(--aiwa-text); font-size: 16.5px; line-height: 1.85; }
.gc-guide .gc-run-text p { margin: 0; }
.gc-guide .gc-run-text p + p { margin-top: 12px; }
.gc-guide .gc-mark { padding: 1px 2px; border-radius: 4px; background: transparent; color: inherit; text-decoration: underline 2px; text-underline-offset: 4px; text-decoration-color: #d94c4c; }
.gc-guide .gc-mark-grammar { text-decoration-color: #2f6fdf; }
.gc-guide .gc-mark-punctuation { text-decoration-color: #b7791f; }
.gc-guide .gc-mark-style, .gc-guide .gc-mark-clarity { text-decoration-color: #7a5af8; text-decoration-style: dashed; }
.gc-guide .gc-run .wx-note { margin: 12px 0 0; color: var(--aiwa-muted); font-size: 13.5px; }
.gc-guide .gc-flags { margin: 20px 0 0; }
.gc-guide .gc-flags td, .gc-guide .gc-flags th { vertical-align: top; }
.gc-guide .gc-none { color: var(--aiwa-muted); font-style: italic; }
.gc-guide .gc-notes-h { margin: 28px 0 0; }
.gc-guide .gc-notes { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; color: var(--aiwa-text); font-size: 15.5px; line-height: 1.65; }

.gc-guide .wx-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin-inline: auto; }
.gc-guide .gc-human { max-width: 760px; margin: 28px auto 0; color: var(--aiwa-text); font-size: 15.5px; line-height: 1.7; }

.gc-guide .gc-reviewed { max-width: 760px; margin-inline: auto; color: var(--aiwa-muted); font-size: 14px; line-height: 1.6; text-align: center; }
.gc-guide .gc-reviewed p { margin: 0; }
.gc-guide .gc-reviewed a { color: var(--aiwa-brand-dark); }
.gc-guide section.wx:has(.gc-reviewed) { padding: 28px 0; }

@media (max-width: 760px) {
  .gc-guide .wx-g2 { grid-template-columns: 1fr; }
  .gc-guide .gc-run-text { padding: 16px; }
}

/* On a phone the four-column flag table becomes one card per flag, each cell labelled. */
@media (max-width: 640px) {
  .gc-guide .gc-flags { overflow: visible; border: 0; }
  .gc-guide .gc-flags .wx-table, .gc-guide .gc-flags tbody, .gc-guide .gc-flags tr, .gc-guide .gc-flags th, .gc-guide .gc-flags td { display: block; width: auto; }
  .gc-guide .gc-flags thead { display: none; }
  .gc-guide .gc-flags tr { margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--aiwa-line); border-radius: 12px; background: var(--aiwa-card); }
  .gc-guide .gc-flags th, .gc-guide .gc-flags td { padding: 2px 0; border: 0; }
  .gc-guide .gc-flags th { font-size: 17px; }
  .gc-guide .gc-flags td::before { content: attr(data-label) ": "; color: var(--aiwa-muted); font-weight: 600; }
}
