/* The guides' pages (site/guides/, GitHub issue 304), on top of base.css
   and landing.css: the header, the footer, the buttons and the waiting
   list are the home page's. A column to read, the pictures wider. */

.guide { max-width: 760px; padding-top: 32px; padding-bottom: 32px; }
.guide h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 22px; }
.guide h2 { font-size: 23px; line-height: 1.25; font-weight: 800; margin: 44px 0 14px; }
.guide h3 { font-size: 17px; margin: 26px 0 6px; }
.guide p, .guide li { font-size: 17px; line-height: 1.65; color: var(--text); }
.guide p { margin: 0 0 16px; }
.guide ul, .guide ol { padding-left: 22px; margin: 0 0 18px; }
.guide li + li { margin-top: 6px; }
/* The text's links; not the buttons, which keep their own colours (base.css). */
.guide a:not(.btn) { color: var(--accent-text); }
.guide-note { color: var(--text-muted) !important; font-size: 15px !important; }

/* The other language's page: a link here, where the home page has a
   button; shown on a phone too (landing.css hides the header's links). */
.site-nav > a.site-lang { display: inline-block; text-decoration: none; }
/* The home page's link: kept on a phone too (landing.css hides the
   header's links there), the logo being its mark alone on one. */
.site-nav > a.site-home { display: inline; }

/* "In this guide": the four points, set apart under the title. */
.guide-summary { border: 1px solid var(--border); background: var(--panel); border-radius: 12px; padding: 16px 20px 6px; margin: 0 0 28px; }
.guide-summary-title { font-weight: 700; font-size: 15px !important; margin: 0 0 8px !important; }
.guide-summary li { font-size: 15px; }

/* The tables of figures: scrolled sideways on a phone, never the page. */
.guide-table-wrap { overflow-x: auto; margin: 4px 0 22px; }
.guide table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
.guide th, .guide td { padding: 9px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.guide thead th { font-weight: 700; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.guide tbody th { font-weight: 400; color: var(--text); font-size: 15px; text-transform: none; letter-spacing: normal; }
.guide td + td, .guide th + td, .guide th + th { text-align: right; }
.guide td + td, .guide th + td { white-space: nowrap; }
.guide tr.total th, .guide tr.total td { font-weight: 700; }

/* The pictures, wider than the text where the screen allows; a small
   one (the card against the index) at its own size. In the page's
   theme: both are in the page, the other one hidden, and so not
   fetched (loading="lazy"). */
.guide-shot { margin: 26px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.guide-shot.wide { width: min(960px, calc(100vw - 40px)); position: relative; left: 50%; transform: translateX(-50%); }
.guide-shot img { display: block; width: 100%; max-width: var(--w, 100%); height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .guide-shot img.on-light,
:root:not([data-theme="dark"]) .guide-shot img.on-dark { display: none; }
.guide-shot figcaption { font-size: 13px; color: var(--text-muted); font-style: italic; text-align: center; max-width: 760px; }

.guide-faq h3 { font-size: 17px; }

/* The call to create an account, as the home page's closing one. */
.guide-cta { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 4px; }
.guide-cta .hero-cta { margin: 22px 0 8px; }
.guide-more { font-size: 15px !important; color: var(--text-muted) !important; margin-top: 28px !important; }

@media (max-width: 560px) {
  .guide { padding-top: 20px; }
  .guide p, .guide li { font-size: 16px; }
  .guide h2 { font-size: 21px; margin-top: 36px; }
}

/* The header on a narrow phone: home, guides, theme, language and the
   portfolio's button on one line, the spaces between them tighter (the
   narrowest, in landing.css). */
@media (min-width: 351px) and (max-width: 400px) {
  .site-header .site-nav { gap: 7px; }
  .site-header .site-nav .btn { padding-left: 10px; padding-right: 10px; }
}
/* The narrowest phones: with « Accueil » and « Guides » as well, the theme
   button gives way (the theme stays the one chosen, else the system's). */
@media (max-width: 350px) {
  .site-header .site-nav .site-theme { display: none; }
}
