/* =============================================================================
   booktalk.club — guide pages (/guides/…)

   Loaded after styles.css, which provides the colours, fonts, .container and .btn.

   Sections in this file (search for the ==== headings):
     1. Page & top bar
     2. Article header (kicker, title, standfirst, byline)
     3. "The short version" box
     4. Body text (headings, paragraphs, lists, links)
     5. Quotes
     6. Slack message examples, Slack commands (+ copy buttons)
     7. Chart (survey bars) & table
     8. "With booktalk" notes
     9. FAQ
    10. Call to action (Add to Slack)
    11. Notes, related guides & footer
    12. Phone layouts
   ============================================================================= */


/* ==== 1. Page & top bar ===================================================== */
body { background: var(--bg-soft); }

.g-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }
.g-top-links { display: flex; align-items: center; gap: 24px; }
.g-top-links a:not(.btn) { font-family: var(--font-ui); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.g-top-links a:not(.btn):hover { color: var(--text); }


/* ==== 2. Article header ===================================================== */
/* The page is one white sheet; its top has a soft version of the homepage's pink/blue glow */
.guide {
  max-width: 820px; margin: 8px auto 40px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden;
}
.g-head {
  padding: 72px 80px 48px;
  background:
    radial-gradient(60% 90% at 12% 0%, rgba(126, 63, 242, .10), transparent 70%),
    radial-gradient(50% 80% at 95% 10%, rgba(255, 123, 172, .14), transparent 70%),
    var(--bg);
}
.g-kicker { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.g-head h1 { margin-top: 14px; text-wrap: balance; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1.06; letter-spacing: -.015em; }
.g-dek { margin-top: 20px; font-size: 21px; line-height: 1.5; color: var(--text); opacity: .82; max-width: 620px; }
.g-meta { margin-top: 24px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.g-meta span + span::before { content: "·"; margin: 0 8px; }

/* Everything below the header shares one reading column */
.g-body { padding: 8px 80px 64px; }


/* ==== 3. "The short version" box ============================================ */
.g-short { margin: 32px 0 8px; padding: 28px 32px; border-radius: 16px; background: #f6f1fd; }
.g-short h2 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.g-short ol { margin: 14px 0 0; padding-left: 22px; }
.g-short li { font-size: 17px; line-height: 1.55; }
.g-short li + li { margin-top: 6px; }
.g-body .g-short a:not(.btn) { color: inherit; text-decoration: underline; text-decoration-color: rgba(103, 48, 195, .35); text-underline-offset: 3px; }
.g-body .g-short a:not(.btn):hover { text-decoration-color: var(--purple); }


/* ==== 4. Body text ========================================================== */
/* Only direct children of .g-body get these styles, so boxes inside the article (Slack messages,
   chart, FAQ, call to action) keep their own sizes */
.g-body > h2 { margin-top: 56px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; scroll-margin-top: 24px; }
.g-body > h3 { margin-top: 32px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.g-body > p, .g-body > ul > li, .g-body > ol > li { font-size: 18px; line-height: 1.7; }
.g-body > p { margin-top: 16px; }
.g-body > ul, .g-body > ol { margin: 16px 0 0; padding-left: 22px; }
.g-body > ul > li + li, .g-body > ol > li + li { margin-top: 10px; }
.g-body a:not(.btn) { color: var(--purple); text-underline-offset: 3px; }
.g-body cite { font-style: italic; }   /* book titles */
.g-body code { white-space: normal; }  /* long /remind examples may wrap on phones */


/* ==== 5. Quotes ============================================================= */
.g-quote { position: relative; margin: 32px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--purple-bright); }
.g-quote p { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.45; font-weight: 400; }
.g-quote footer { margin-top: 10px; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }


/* ==== 6. Slack message examples ============================================= */
/* A drawing of one Slack message, so readers can see (and copy) what to post */
.g-slack { margin: 28px 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 8px 24px -12px rgba(20, 20, 40, .12); }
.g-slack-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--muted); }
.g-slack-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 16px; font-family: var(--font-ui); }
.g-avatar { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: #fff; background: #e0607e; }
.g-avatar.alt { background: #2f8f83; }
.g-slack-name { font-size: 15px; font-weight: 600; }
.g-slack-name span { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.g-slack-text { margin-top: 2px; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.g-reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.g-reacts span { padding: 2px 8px; border-radius: 999px; background: #f1f4fb; border: 1px solid #dfe6f6; font-size: 13px; }
.g-thread { margin-top: 8px; font-size: 13px; font-weight: 600; color: #1264a3; }

.g-copy { border: 0; background: none; padding: 4px 8px; margin: -4px -8px; border-radius: 6px; cursor: pointer; font: 600 13px var(--font-ui); color: var(--purple); }
.g-copy:hover { background: #f6f1fd; }
.g-copy.is-done { color: #2f8f83; }


/* A Slack command to copy, e.g. /remind */
.g-cmd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 14px 18px; border-radius: 12px; background: #1d1c1d; }
.g-body .g-cmd code { background: none; padding: 0; color: #f4eefe; font-size: 14px; line-height: 1.6; white-space: normal; }
.g-cmd .g-copy { flex: none; color: #cbb5f5; margin: -2px -6px; }
.g-cmd .g-copy:hover { background: rgba(255, 255, 255, .08); }
.g-cmd .g-copy.is-done { color: #7ee0d0; }


/* ==== 7. Chart & table ====================================================== */
/* Horizontal bars: one series (share of people), value written at the end of each bar */
.g-chart { margin: 32px 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; }
.g-chart figcaption { font-size: 15px; line-height: 1.5; color: var(--muted); }
.g-chart figcaption b { display: block; margin-bottom: 4px; font-size: 17px; color: var(--text); }
.g-bars { list-style: none; margin: 20px 0 0; padding: 0; }
.g-bars li { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; gap: 16px; margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.3; }
.g-bars li + li { margin-top: 12px; }
.g-bar { display: flex; align-items: center; gap: 10px; }
.g-bar i { display: block; height: 20px; width: var(--v); border-radius: 0 4px 4px 0; background: var(--purple); }
.g-bar b { font-weight: 600; font-size: 15px; color: var(--text); }
.g-bars li.dim .g-bar i { background: #b9a2e4; }

.g-table-wrap { margin: 28px 0; overflow-x: auto; }
.g-table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 15px; }
.g-table th, .g-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.g-table th { font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: .02em; }


/* ==== 8. "With booktalk" notes ============================================== */
/* A small aside after a step: how booktalk handles that step */
.g-with { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--bg-soft); }
.g-with img { width: 28px; height: 28px; margin-top: 2px; }
.g-with p { margin: 0; font-size: 16px; line-height: 1.6; }
.g-with b { font-weight: 700; }
.g-body .g-with code { white-space: nowrap; }   /* keep /booktalk-poll on one line */


/* ==== 9. FAQ ================================================================ */
.g-faq { margin-top: 20px; border-top: 1px solid var(--line); }
.g-faq details { border-bottom: 1px solid var(--line); }
.g-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; flex: none; font: 400 24px var(--font-ui); color: var(--muted); transition: transform .2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { margin: 0 0 20px; font-size: 18px; line-height: 1.7; }


/* ==== 10. Call to action ==================================================== */
.g-cta {
  margin-top: 64px; padding: 40px; border-radius: 20px; text-align: center;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(110, 140, 255, .28), transparent 70%),
    radial-gradient(60% 120% at 85% 100%, rgba(255, 105, 160, .30), transparent 70%),
    #fbe3e6;
}
.g-cta h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.2; }
.g-cta p { margin: 12px auto 0; max-width: 480px; font-size: 17px; line-height: 1.6; }
.g-cta .btn { margin-top: 24px; height: 50px; padding: 0 24px; font-size: 16px; gap: 10px; }
.g-cta .btn img { width: 20px; height: 20px; }
.g-cta small { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }


/* ==== 11. Notes, related guides & footer ==================================== */
.g-notes { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.g-notes h2 { margin: 0; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.g-notes p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.g-related { margin-top: 32px; }
.g-body .g-related a:not(.btn) { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); transition: border-color .2s, background-color .2s; }
.g-body .g-related a:not(.btn):hover { border-color: rgba(103, 48, 195, .35); background: #fcfaff; }
.g-related small { display: block; font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--purple); }
.g-related span { display: block; margin-top: 4px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; }

.g-foot { padding: 8px 0 48px; text-align: center; font-family: var(--font-ui); font-size: 14px; color: var(--muted); }
.g-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-bottom: 12px; }
.g-foot a { color: inherit; text-decoration: none; }
.g-foot a:hover { color: var(--text); }


/* ==== 12. Phone layouts ===================================================== */
@media (max-width: 760px) {
  .g-top-links a:not(.btn) { display: none; }
  .guide { margin: 0 0 32px; border-radius: 18px; }
  .g-head { padding: 40px 22px 32px; }
  .g-head h1 { font-size: 38px; }
  .g-dek { font-size: 18px; }
  .g-body { padding: 0 22px 40px; }
  .g-short { padding: 22px 20px; }
  .g-body > h2 { margin-top: 44px; font-size: 27px; }
  .g-body > p, .g-body > ul > li, .g-body > ol > li, .g-faq details p { font-size: 17px; }
  .g-quote { padding-left: 18px; }
  .g-quote p { font-size: 20px; }
  .g-chart { padding: 20px 16px; }
  .g-bars li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .g-cta { padding: 32px 20px; }
  .g-cta h2 { font-size: 27px; }
}
