/* Notice: five short lessons. ESL edition: the ESP family's paper, ink and calm green (esp/mindfulness-at-work).
   Mindful edition (html[data-edition=mindful]): the Mindful Design app's teal. */
:root {
  --ink: #17242f; --soft: #4d5b66; --paper: #f6f3ec; --card: #fff; --line: #e2ddd2;
  --c: #2E6B57; --c-dark: #234f41; --tint: #e7f1ec; --head: #17242f; --radius: 14px;
}
html[data-edition="mindful"] { --c: #225C63; --c-dark: #1a474d; --tint: #e3eff0; --head: #225C63; --paper: #f7f5f0; }
html[data-edition="esl"] [data-mindful], html[data-edition="mindful"] [data-esl] { display: none !important; }

* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--c); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #e0a83a; outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
main { padding-bottom: 56px; }
main:focus { outline: none; }

header.top { background: var(--head); color: #fff; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.1rem; line-height: 1.25; min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.brand small { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.back-site { color: #fff; font-size: .86rem; opacity: .9; min-height: 44px; display: inline-flex; align-items: center; }

h1 { font-size: 2rem; line-height: 1.15; margin: 28px 0 8px; }
h2 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 10px; }
h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.lede { color: var(--soft); margin: 0 0 22px; }
.phrase { font-weight: 700; color: var(--c); }
.crumbs { margin: 18px 0 0; font-size: .86rem; }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }

.list { list-style: none; padding: 0; margin: 0; }
.list li + li { margin-top: 12px; }
.lesson-card { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; }
.lesson-card:hover { border-color: var(--c); }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--c); font-weight: 800; display: grid; place-items: center; }
.lesson-card b { display: block; font-size: 1.08rem; }
.lesson-card span { color: var(--soft); font-size: .9rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 18px 0; }
.kicker { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 0 0 6px; }
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.ask { margin-top: 18px !important; }

.lead { border-left: 5px solid var(--c); }
.words { list-style: none; padding: 0; margin: 0; }
.words li { padding: 10px 0; border-top: 1px solid var(--line); }
.words li:first-child { border-top: 0; padding-top: 0; }
.words b { color: var(--c-dark); }
.words .ex { display: block; color: var(--soft); font-style: italic; font-size: .92rem; }
.q { margin: 16px 0 0; }
.q p { margin: 0 0 8px; font-weight: 600; }

.choices { display: flex; flex-direction: column; margin-top: 8px; }
.choices > * + * { margin-top: 10px; }
.choice { text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; min-height: 48px; cursor: pointer; }
.choice:hover { border-color: var(--c); }
.choice[aria-pressed="true"] { border-color: var(--c); background: var(--tint); }
.q p.reply { font-weight: 400; }
.reply { margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--tint); }
.reply[hidden] { display: none; }
.fb-ok { color: #1f6f45; font-weight: 700; }
.fb-no { color: #9a3b1e; font-weight: 700; }

.setup { font-weight: 600; }
.reassure { color: var(--soft); font-size: .92rem; }
.close { font-size: 1.25rem; font-weight: 700; color: var(--c); text-align: center; margin: 28px 0 8px; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 99px; background: var(--c); color: #fff; text-decoration: none; font-weight: 700; }
.btn.ghost { background: transparent; color: var(--c); border: 2px solid var(--c); }
.end { text-align: center; }
.end .phrase { font-size: 1.3rem; display: block; margin: 8px 0 18px; }

@media (max-width: 480px) { h1 { font-size: 1.6rem; } .card { padding: 18px; } }
.finding h2 { font-size: 1.15rem; }
.cite { font-size: .85rem; text-decoration: none; white-space: nowrap; }
.sources ol { margin: 0; padding-left: 1.3em; font-size: .86rem; color: var(--soft); }
.sources li + li { margin-top: 8px; }
.sources li:target { background: var(--tint); }
