/* The public Learn pages (/learn.html and /learn/*.html), loaded after /legal.css, whose shell, fonts, ink colours
   and --space-* scale they share. Only what an article needs on top: the lede, the gentle-pace note, the start
   button, the sources list and the links to the other articles. Spacing from the scale only (src/spacing.test.js). */

.lede { font-size: 19px; color: var(--fg); line-height: 1.5; }
article h2 { margin-top: var(--space-8); }

/* The line a man told to keep a gentle pace reads next to every brisk instruction. */
.gentle { border-left: 2px solid #ff9d5c; padding: var(--space-1) 0 var(--space-1) var(--space-4); margin: var(--space-4) 0; }
.gentle p { color: var(--fg); margin-bottom: var(--space-2); }
.gentle p:last-child { margin-bottom: 0; }

/* The not-medical-advice passage. */
.care { border: 1px solid var(--hair); border-radius: 22px; background: rgba(248, 236, 226, 0.05); padding: var(--space-5) var(--space-6); margin: var(--space-8) 0 var(--space-4); }
.care h2 { margin-top: 0; }
.care p:last-child { margin-bottom: 0; }

/* The start button: the home page's ember button, as a plain link (these pages load no script). */
.start { margin: var(--space-8) 0; }
.start p { margin-bottom: var(--space-4); }
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-7); border-radius: 999px;
       background: linear-gradient(#e9652f, #d9531f); color: #ffffff; font-size: 19px; font-weight: 700; text-decoration: none;
       box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), inset 0 -3px 0 rgba(0, 0, 0, 0.16), 0 12px 32px -8px rgba(233, 101, 47, 0.6); }
.cta:hover { filter: brightness(1.05); }

/* Sources: the strings the catalogue names, as a quiet numbered list. */
.sources ol { padding-left: var(--space-5); }
.sources li { font-size: 14px; color: var(--fg-3); margin-bottom: var(--space-2); }

/* The other articles. */
.more ul { list-style: none; padding: 0; }
.more li { margin: 0; border-top: 1px solid var(--hair); }
.more li:last-child { border-bottom: 1px solid var(--hair); }
.more a { display: flex; flex-direction: column; gap: var(--space-1); min-height: 44px; padding: var(--space-4) 0; text-decoration: none; }
.more a strong { font-size: 18px; }
.more a span { color: var(--fg-2); font-size: 15px; }
.more a:hover strong { text-decoration: underline; }

/* Tap targets on phones (src/phone.test.js): the start button and each article link are at least 44px tall. */
@media (max-width: 720px) {
  .cta { padding: 0 var(--space-6); min-height: 52px; }
  .more a { min-height: 44px; }
}
