/* Kids Paint guides. Loaded after ../styles.css, which gives the information page look (.info-header, .info-hero,
   .info-layout, .info-contents, .info-card), the tokens, the store button and the mint download card. This file only
   adds what an article needs: a reading size, a trail, a caution plate, tables, the app cards and the guide list. */

.guide-hero { max-width:900px; padding-bottom:34px; }
.guide-hero h1 { font-size:clamp(40px,6vw,64px); text-wrap:balance; }
.guide-hero .guide-lede { max-width:680px; margin:18px auto 0; color:var(--ink); font-size:18px; line-height:1.6; }
.guide-hero .byline { margin-top:16px; font-size:13px; }
.guide-hero .byline a { color:var(--green); text-decoration:underline; text-underline-offset:3px; }

/* The trail above the heading. */
.trail ol { display:flex; flex-wrap:wrap; justify-content:center; gap:4px 0; margin:0 0 14px; padding:0; list-style:none; font-size:13px; font-weight:750; }
.trail li+li:before { content:"›"; margin:0 9px; color:var(--muted); }
.trail a { color:var(--green); text-decoration:underline; text-underline-offset:4px; }

/* The article. Text is larger than on the policy pages, at a width that reads well. */
.guide-article section+section { margin-top:38px; padding-top:34px; }
.guide-article h2 { font-size:clamp(28px,3.4vw,36px); scroll-margin-top:20px; text-wrap:balance; }
.guide-article h3 { margin:26px 0 8px; font-size:24px; scroll-margin-top:20px; }
.info-card.guide-article p, .info-card.guide-article li { max-width:40em; color:#4e4a5f; font-size:17px; line-height:1.7; }
.guide-article p+p, .guide-article p+ul, .guide-article p+ol, .guide-article ul+p, .guide-article ol+p { margin-top:14px; }
.guide-article ul, .guide-article ol { margin:14px 0 0; padding-left:24px; }
.guide-article li+li { margin-top:8px; }
.guide-article li::marker { color:var(--green); font-weight:800; }
.guide-article strong { color:var(--ink); font-weight:800; }

/* The one paragraph that warns before a step that could cost money or lose pictures. A label in words and a rule
   down its edge, so it does not rely on colour. */
.guide-article .caution { margin:20px 0 4px; padding:16px 20px 18px; border-left:5px solid #b4581f; border-radius:8px 20px 20px 8px; background:var(--peach); }
.info-card.guide-article .caution p { margin:0; color:var(--ink); }
.info-card.guide-article .caution .caution-label { margin-bottom:4px; color:#8a3f12; font-size:13px; font-weight:850; letter-spacing:.03em; text-transform:uppercase; }

/* Tables of up to three columns wrap to fit a 320px phone. */
.guide-article .table-scroll { margin:20px 0 6px; padding:6px 20px 8px; border-radius:22px; background:var(--paper); border:1px solid var(--line); overflow-x:auto; }
.guide-article table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.45; }
.guide-article caption { caption-side:top; padding:12px 0 4px; color:var(--muted); font-size:13px; text-align:left; }
.guide-article th, .guide-article td { padding:11px 14px 11px 0; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; color:#4e4a5f; }
.guide-article th:last-child, .guide-article td:last-child { padding-right:0; }
.guide-article thead th { color:var(--muted); font-size:13px; font-weight:800; }
.guide-article tbody th { color:var(--ink); font-weight:800; }
.guide-article tbody tr:last-child>* { border-bottom:0; }

/* The small card where a guide's answer points to the app. */
.guide-inline-app { display:grid; grid-template-columns:48px 1fr; gap:6px 16px; align-items:center; margin:24px 0 6px; padding:18px 20px; border-radius:24px; background:var(--mint); border:1px solid #cddfce; }
.guide-inline-app img { grid-row:span 2; width:48px; height:48px; }
.info-card.guide-article .guide-inline-app p { margin:0; color:#3f5547; font-size:15px; line-height:1.5; }
.guide-inline-app .button { justify-self:start; color:white; }

/* Where a reader finishes: the mint card from the home page, with the App Store button. */
.guide-app { max-width:1060px; padding-bottom:40px; }
.guide-app-card { position:relative; overflow:hidden; padding:50px 28px; border:1px solid #cddfce; border-radius:38px; background:var(--mint); text-align:center; }
.guide-app-card .brand-icon { width:72px; height:72px; margin:0 auto 6px; }
.guide-app-card .eyebrow { margin:10px auto 0; max-width:none; }
.guide-app-card h2 { margin-top:6px; font-size:clamp(40px,5vw,58px); }
.guide-app-card>p { max-width:560px; margin:16px auto 0; color:#4b6455; }
.guide-app-card .store-buttons { justify-content:center; margin-top:26px; }
.guide-app-card .download-spark.one { left:7%; top:18%; }

/* More guides and sources, and the list on the index. */
.guide-after { display:grid; gap:22px; max-width:1060px; padding-bottom:70px; }
.guide-after .info-card h2 { font-size:30px; }
.guide-list { margin:6px 0 0; padding:0 !important; list-style:none; }
.guide-list li { padding:15px 0; border-bottom:1px solid var(--line); }
.guide-list li:last-child { border-bottom:0; padding-bottom:0; }
.guide-list a { display:block; color:var(--ink) !important; font-size:18px; font-weight:800; line-height:1.35; text-decoration:none !important; }
.guide-list a:hover { color:var(--green) !important; text-decoration:underline !important; text-underline-offset:4px; }
.info-card .guide-list span { display:block; margin-top:4px; color:var(--muted); font-size:15px; line-height:1.5; }
.all-guides { margin-top:14px !important; padding-top:12px; border-top:1px solid var(--line); }
.all-guides a { display:inline-flex; align-items:center; min-height:44px; font-weight:800; }
.sources li { overflow-wrap:anywhere; }
.guide-index { padding-top:6px; }
.guide-note { flex-basis:100%; margin-top:6px; font-size:12px; text-align:center; }

@media(max-width:760px) {
  .guide-layout { grid-template-columns:minmax(0,1fr); }   /* a wide table scrolls in its plate, never the page */
  .guide-hero { padding-bottom:20px; }
  .guide-hero .guide-lede { font-size:16px; }
  .info-card.guide-article p, .info-card.guide-article li { font-size:16px; }
  .guide-article h2 { font-size:28px; }
  .guide-inline-app { grid-template-columns:40px 1fr; padding:16px; }
  .guide-inline-app img { width:40px; height:40px; grid-row:auto; }
  .guide-inline-app .button { grid-column:1 / -1; justify-self:stretch; }
  .guide-app-card { padding:40px 18px; border-radius:28px; }
  .guide-app-card .download-spark { display:none; }
  .guide-article .table-scroll { padding-inline:14px; }
  .guide-after { padding-bottom:45px; }
}
@media(max-width:370px) {
  .guide-article table { font-size:14px; }
  .guide-article th, .guide-article td { padding-right:6px; }
}
