/* Reading pages: long explanatory pages such as /how-4mul8-works/.
   One text column with a list of sections beside it, no photographs, and a clean print layout.
   Colors, type and the brass rule are the locked brand values used across the site. */

.reading { background: #F4EFE6; color: #3D3A35; }

.r-rule { width: 40px; height: 2px; background: #C8A96E; }

/* Opening band: continues the dark header, carries the headline and the two opening paragraphs. */
.r-open { background: #121417; color: #F4EFE6; padding: 56px 48px 88px; box-sizing: border-box; }
.r-open-in { max-width: 1200px; margin: 0 auto; }
.r-back { margin: 0 0 40px; font-size: 13px; }
.r-back a { color: #A9A398; text-decoration: none; border-bottom: 1px solid #3D3A35; padding-bottom: 2px; }
.r-back a:hover, .r-back a:focus-visible { color: #F4EFE6; border-color: #C8A96E; }
.r-open h1 { margin: 0 0 28px; max-width: 1100px; text-wrap: balance; font-family: 'Cormorant Garamond', Garamond, serif; font-weight: 500; font-size: 60px; line-height: 1.05; color: #F4EFE6; }
.r-updated { margin: 20px 0 0; font-size: 13px; color: #A9A398; }
.r-intro { margin-top: 44px; max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.r-intro p { margin: 0; font-size: 17px; line-height: 1.9; color: #F4EFE6; }

/* Body: a list of sections on the left that stays in view, the text on the right. */
.r-wrap { max-width: 1296px; margin: 0 auto; padding: 88px 48px 112px; box-sizing: border-box; display: grid; grid-template-columns: 250px minmax(0, 700px); gap: 96px; align-items: start; }
.r-toc { position: sticky; top: 32px; }
.r-toc-label { margin: 0 0 14px; font-size: 13px; color: #6E6A63; }
.r-toc ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D9CFBD; }
.r-toc li { border-bottom: 1px solid #D9CFBD; }
.r-toc a { display: block; padding: 13px 0; font-size: 14px; line-height: 1.45; color: #121417; text-decoration: none; }
.r-toc a:hover, .r-toc a:focus-visible { color: #6E6A63; }

.r-body { min-width: 0; }
.r-sec { scroll-margin-top: 28px; }
.r-sec + .r-sec { margin-top: 96px; }
.r-sec h2 { margin: 0 0 20px; font-family: 'Cormorant Garamond', Garamond, serif; font-weight: 500; font-size: 40px; line-height: 1.12; color: #121417; }
.r-sec > .r-rule { margin-bottom: 32px; }
.r-body p { margin: 0 0 20px; font-size: 17px; line-height: 1.9; }
.r-body p:last-child { margin-bottom: 0; }
.r-body h3 { margin: 0 0 12px; font-family: 'Cormorant Garamond', Garamond, serif; font-weight: 500; font-size: 28px; line-height: 1.2; color: #121417; }

/* Highlight line: brass bar and Cormorant italic, one per page. */
.r-body p.r-hl { margin: 36px 0 0; padding-left: 26px; border-left: 2px solid #C8A96E; font-family: 'Cormorant Garamond', Garamond, serif; font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.25; color: #121417; }

/* The year: each room or session with when it happens above its name. */
.r-year { margin-top: 44px; }
.r-item { padding: 32px 0; border-top: 1px solid #D9CFBD; }
.r-item:last-child { padding-bottom: 0; }
.r-body p.r-when { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: #6E6A63; }

/* The three illustrative examples: cards with a rule above. */
.r-card { margin-top: 44px; padding: 28px 0 0; border-top: 2px solid #121417; }
.r-card h3 { margin-bottom: 16px; }

/* Questions: each question is its own heading. */
.r-faq { margin-top: 8px; }
.r-q { padding: 30px 0; border-top: 1px solid #D9CFBD; }
.r-q:first-child { border-top: 0; padding-top: 0; }
.r-q:last-child { padding-bottom: 0; }
.r-q h3 { font-size: 26px; }

/* Closing band. */
.r-close { background: #121417; color: #F4EFE6; padding: 96px 48px; box-sizing: border-box; scroll-margin-top: 0; }
.r-close-in { max-width: 1200px; margin: 0 auto; }
.r-close h2 { margin: 0 0 20px; font-family: 'Cormorant Garamond', Garamond, serif; font-weight: 500; font-size: 40px; line-height: 1.12; color: #F4EFE6; }
.r-close .r-rule { margin-bottom: 32px; }
.r-close p { margin: 0 0 20px; max-width: 720px; font-size: 17px; line-height: 1.9; color: #F4EFE6; }
.r-close p a { color: #F4EFE6; text-decoration-color: #C8A96E; text-underline-offset: 4px; }
.r-close .r-actions { margin: 36px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; max-width: none; }
.r-btn { display: inline-block; padding: 16px 28px; border: 1px solid #F4EFE6; color: #F4EFE6; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
.r-btn:hover, .r-btn:focus-visible { background: #F4EFE6; color: #121417; }
.r-link { color: #A9A398; font-size: 14px; text-decoration: none; border-bottom: 1px solid #3D3A35; padding-bottom: 2px; }
.r-close .r-actions .r-link:hover, .r-close .r-actions .r-link:focus-visible { color: #F4EFE6; border-color: #C8A96E; }

.reading a:focus-visible { outline: 2px solid #C8A96E; outline-offset: 3px; }

@media (max-width: 1000px) {
  .r-wrap { grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 56px 20px 80px; }
  .r-toc { position: static; }
  .r-open { padding: 40px 20px 64px; }
  .r-open h1 { font-size: 42px; }
  .r-back { margin-bottom: 28px; }
  .r-intro { margin-top: 32px; }
  .r-sec + .r-sec { margin-top: 72px; }
  .r-sec h2, .r-close h2 { font-size: 34px; }
  .r-body h3 { font-size: 25px; }
  .r-body p.r-hl { font-size: 27px; padding-left: 20px; }
  .r-close { padding: 72px 20px; }
}

/* Print: the words only, black on white, so it can be handed to an approver. */
@media print {
  .site-header, .skip, .r-toc, .r-back, footer, .r-actions { display: none !important; }
  .reading, .r-open, .r-close { background: #fff !important; color: #000 !important; }
  .r-open, .r-close { padding: 0 !important; }
  .r-wrap { display: block; padding: 26pt 0 0; max-width: none; }
  .r-rule { display: none; }
  .r-updated { margin-top: 0; }
  .r-open h1, .r-close h2, .r-intro p, .r-close p, .r-updated { color: #000 !important; }
  .r-open h1 { font-size: 30pt; margin-bottom: 14pt; }
  .r-intro { margin-top: 18pt; max-width: none; }
  .r-body p, .r-intro p, .r-close p { font-size: 10.5pt; line-height: 1.6; max-width: none; }
  .r-sec + .r-sec, .r-close { margin-top: 28pt; }
  .r-sec h2, .r-close h2 { font-size: 20pt; margin-bottom: 10pt; break-after: avoid; }
  .r-year { margin-top: 12pt; }
  .r-card { margin-top: 16pt; }
  .r-body h3 { font-size: 14pt; break-after: avoid; }
  .r-card { border-top: 1pt solid #000; padding: 12pt 0 0; break-inside: avoid; }
  .r-q, .r-item { break-inside: avoid; padding: 12pt 0; }
  .r-body p.r-hl { font-size: 16pt; }
  .r-close::after { content: "m4 innovation, LLC  |  www.m4innovation.com/how-4mul8-works/"; display: block; margin-top: 18pt; font-size: 9pt; color: #000; }
  .reading a { color: #000 !important; text-decoration: none; }
  @page { margin: 0.8in; }
}
