/* How to use Veldsong: the guide's own layout, on site.css's type and colours. */
.guide-top { padding: 40px 0 80px; }
.guide-top h1 { margin-bottom: 18px; }
.back { margin: 0 0 22px; font-size: 16px; }
/* The opening, before the contents: the one thing to do, on the soft green, with Start Listening drawn as the app's own button. */
.opening { margin-top: 18px; background: var(--green-soft); border-radius: 20px; padding: 22px 28px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; }
.opening p { margin: 0; }
.opening-first { font-weight: 700; }
.button-word { display: inline-block; padding: 0 14px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 600; }
.contents { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.contents h2 { font-size: 26px; margin: 0 0 16px; }
.contents ol { margin: 0; padding-left: 24px; font-size: 17px; }
.contents li { margin: 3px 0; }
/* The guide's four parts, in the order a trip needs them: a heading of their own between the topics, and their names
   in the contents. A topic's place stands over its heading as on the home page (site.css, .kicker). */
.contents .part { margin: 14px 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.part-band { padding: 72px 0 0; border-top: 1px solid var(--line); }
.part-head { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.part-band + .topic { border-top: 0; }
.topic { padding: 120px 0; border-top: 1px solid var(--line); }
.topic:nth-of-type(even) { background: var(--surface); }
/* A topic's first steps, its picture and the rest of its words. On a wide screen the picture stands beside the words
   and stays in view while they scroll; on a narrow one it comes straight after the first steps. */
.topic-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; grid-template-areas: "intro picture" "text picture"; column-gap: 72px; align-items: start; }
.topic-intro { grid-area: intro; }
.topic-grid > .topic-text { grid-area: text; }
.topic-grid > .topic-text > :first-child { margin-top: 0; }
.topic-intro, .topic-text { max-width: 34em; }
.topic h2 { font-size: clamp(30px, 3.2vw, 42px); display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; }
.topic h2 .num { font-size: 0.62em; color: var(--ochre); min-width: 1.3em; }
.topic .for { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--muted); margin: 0 0 34px; }
.topic p { margin: 0 0 16px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 30px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 0 0 16px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.12em; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--on-green); font: 600 15px/30px var(--sans); text-align: center; }
.tip { background: var(--green-soft); border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 4px 0 26px; }
/* What goes wrong, one card each: what you see in bold, what to do under it, readable on a narrow phone. */
.fixes { display: grid; gap: 12px; margin: 10px 0 30px; }
.fix { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; font-size: 17px; line-height: 1.5; }
.topic:nth-of-type(even) .fix { background: var(--bg); }
.fix p { margin: 0; }
.fix .fix-what { font-weight: 700; margin-bottom: 4px; }
.framed { margin: 0; }
.topic-grid > .framed { grid-area: picture; position: sticky; top: 24px; }
.framed .phone { max-width: 340px; }
@media (max-width: 900px) {
  .topic { padding: 80px 0; }
  .topic-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "intro" "picture" "text"; }
  .topic-grid > .framed { position: static; margin: 0 0 40px; }
  .framed .phone { max-width: 260px; }
  .part-band { padding-top: 56px; }
  .fix { font-size: 16px; }
}
@media (max-width: 480px) {
  .guide-top { padding: 24px 0 56px; }
  .contents { padding: 22px 20px; }
  .topic { padding: 72px 0; }
  .steps li { padding-left: 42px; }
}
