/* The guides (how-it-works.html, signs-of-ai-writing.html and the rest): read like a blog post, in one centred
   780px column at 19px. The heading is centred, the example breaks out wider than the text, a bar at the bottom
   offers the tool the way the app's own bar does, and the other guides close the page as cards. */
.doc .prose.guide { max-width: 828px; margin: 0 auto; padding-top: 36px; font-size: 19px; line-height: 1.7; }
.guide .crumb, .doc .prose.guide h1, .guide .lead { text-align: center; }
.guide .crumb { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.guide .crumb a { text-decoration: none; }
.guide .crumb a::before { content: "← "; }
.guide .crumb a:hover { color: var(--text); }
.doc .prose.guide h1 { margin: 0 auto 18px; max-width: 760px; font-size: clamp(38px, 5.6vw, 62px); letter-spacing: -0.045em; line-height: 1.04; text-wrap: balance; }
.doc .prose.guide h2 { margin: 56px 0 14px; font-size: 30px; letter-spacing: -0.035em; line-height: 1.15; }
.doc .prose.guide h3 { margin: 30px 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.doc .prose.guide p, .doc .prose.guide ul { margin-bottom: 20px; }
.doc .prose.guide li { margin-bottom: 10px; }
.guide .lead { margin: 0 auto 40px; max-width: 680px; color: var(--muted); font-size: 21px; line-height: 1.5; }
.guide ol { margin: 0 0 14px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.guide a { text-decoration-color: var(--border); }
.guide a:hover { text-decoration-color: currentColor; }
.guide mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* An example: what the chatbot wrote beside the plainer version. */
.guide .ex { display: grid; grid-template-columns: 1fr 1fr; margin: 38px 0 42px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
@media (min-width: 1140px) { .guide .ex { margin-left: -150px; margin-right: -150px; } }
.guide .ex > div { padding: 24px 26px; }
.guide .ex > div + div { border-left: 1px solid var(--hair); }
.guide .ex .lab { display: block; margin-bottom: 10px; color: var(--faint); font-size: 13.5px; }
.doc .prose.guide .ex p { margin: 0; font-size: 17px; line-height: 1.65; }
.guide .ex .ai { color: var(--muted); }
.guide .note { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--border); color: var(--muted); font-size: 16px; }

.guide .table { overflow-x: auto; margin: 18px 0 24px; }
.guide table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.guide th, .guide td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.guide th { border-bottom-color: var(--border); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.guide td:first-child { font-weight: 500; }

.guide .faq details { border-top: 1px solid var(--border); }
.guide .faq details:last-of-type { border-bottom: 1px solid var(--border); }
.guide .faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 2px; font-weight: 500; cursor: pointer; list-style: none; }
.guide .faq summary::-webkit-details-marker { display: none; }
.guide .faq summary::after { content: "+"; flex: none; color: var(--faint); font-size: 20px; font-weight: 400; line-height: 1; }
.guide .faq details[open] summary::after { content: "–"; }
.guide .faq p { margin: -2px 2px 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* "Try it free" at the top right, and the bar that stays at the bottom: the tool, offered the way the app's own
   bar offers its actions. Both sign in first when needed (js/about.js). */
.nav-try { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; text-decoration: none; }
.nav-try:hover { opacity: .88; }
.doc:has(.dock-try) { padding-bottom: 96px; }
.dock-try { position: fixed; left: 50%; bottom: 18px; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 22px; transform: translateX(-50%);
  border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -24px rgb(0 0 0 / .45); color: var(--muted); font-size: 15px; white-space: nowrap; }
.dock-try b { color: var(--text); }
.dock-try .lp-cta { height: 42px; padding: 0 18px 0 6px; font-size: 15px; text-decoration: none; }
.dock-try .lp-error { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; margin: 0; white-space: normal; }
@media (max-width: 560px) { .dock-try { left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 12px; padding-left: 16px; font-size: 14px; white-space: normal; } .dock-try span { line-height: 1.3; } }

/* The other guides, at the foot: a quiet label and two columns of plain links. */
.guide .more { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); }
.doc .prose.guide .more h2 { margin: 0 0 12px; color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.guide .more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.45; }
.doc .prose.guide .more li { margin: 0; }
@media (max-width: 760px) { .guide .ex, .guide .more ul { grid-template-columns: 1fr; } .guide .ex > div + div { border-left: 0; border-top: 1px solid var(--hair); } }

/* The list of guides (guides.html): the narrow column and one rule per guide, as the Terms page reads. */
.doc .prose.guide.hubpage { max-width: 720px; padding-top: 20px; font-size: 16px; line-height: 1.62; }
.doc .prose.guide.hubpage h1, .guide.hubpage .lead { max-width: none; margin-left: 0; text-align: left; }
.doc .prose.guide.hubpage h1 { margin: 8px 0 10px; font-size: clamp(34px, 5.2vw, 50px); }
.guide.hubpage .lead { margin: 0 0 8px; font-size: 20px; }
.guide .hub { margin: 30px 0 0; padding: 0; list-style: none; }
.doc .prose.guide .hub li { margin: 0; border-top: 1px solid var(--border); }
.guide .hub li:last-child { border-bottom: 1px solid var(--border); }
.guide .hub a { display: block; padding: 18px 2px; text-decoration: none; }
.guide .hub b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.guide .hub span { display: block; margin-top: 3px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.guide .hub a:hover b { text-decoration: underline; text-underline-offset: 3px; }
