/*
  v18-raise.css · the Raise planner page (v18-raise.html, built by build_v18_raise.py), round two.

  Where it sits
    Loaded after base.css, v18.css (the canon: tokens --blue, --navy, --grey, --g, --w, --sans, --mono,
    header, footer, .lb-btn, .lb-h) and v18-std.css (.st-top, .st-pills, .st-lede, .st-sec, .st-btn,
    .st-end, and .on-light for a header on a light head). This file only adds what is the tool's own.

  Manner
    The first screen is the tool. Left: a plain headline and the route card, the page's one picture:
    four slots that fill with the answers, outlined while empty, Stobox blue once there is a route.
    Right: one question at a time as large choices. Lists are ruled; nothing is a filled card with an
    icon. Body text is 18 px or larger. Motion happens only on an answer and is off under reduced motion.

  Sections: first screen (text, route card, question stage, result) · below the tool · narrow screens.
  How to check: open http://localhost:8250/v18-raise.html at 1440 and 375 px wide; question 1 must be
  answerable without scrolling at both.
  How to undo: delete this file and its <link> line in build_v18_raise.py.
*/

/* ---- first screen: white, text and card on the left, the question on the right ---- */
/* The shared head leaves 130 to 180 px above the title; here the tool has to fit the first screen, so less. */
.st-top.h-rp{background:#fff;color:var(--navy);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,4.4vw,88px);align-items:start;
  padding-bottom:clamp(40px,4.4vw,72px);border-bottom:1px solid #dfe4ee;scroll-margin-top:0}
/* The first pill is a link: filled navy with white text (the shared rule fills it with its own colour, which hides the text). */
/* The pills keep the shared space under them, so the h1 starts level with other heads (item 55). */
.h-rp .st-pills a{background:var(--navy);border-color:var(--navy);color:#fff}
.st-top.h-rp h1{max-width:13ch;font-size:clamp(38px,4.6vw,70px);line-height:1.02;letter-spacing:-.04em}
.h-rp .st-lede{margin-top:18px;color:#2c3a58;max-width:42ch;font-size:clamp(18px,1.4vw,21px)}
.rp-human{margin:12px 0 0;max-width:42ch;font-size:18px;line-height:1.5;color:#566683}

/* the route card */
.rp-card{margin-top:clamp(22px,2.4vw,34px);border:2px solid var(--navy);border-radius:22px;padding:clamp(18px,1.8vw,26px);background:#fff;color:var(--navy);max-width:560px}
/* With a route the card takes the canon's blue, the same ground as the first and last screens of the site. */
.rp-card.on{border-color:var(--blue);background:linear-gradient(180deg,var(--blue),var(--navy));color:#fff}
.rp-k{display:flex;justify-content:space-between;gap:16px;margin:0 0 14px;font:500 13px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}
.rp-k span:last-child{opacity:.7;letter-spacing:.04em}
.rp-jur{margin:0 0 4px;font-size:18px;font-weight:600;color:#e9f0ff}.rp-jur[hidden]{display:none}
.rp-x{margin:0;font-size:20px;line-height:1.3;color:#566683;text-wrap:balance}
.rp-card.on .rp-x{font-size:clamp(28px,2.7vw,42px);line-height:1.05;letter-spacing:-.035em;font-weight:600;color:#fff;animation:rp-in .45s cubic-bezier(.23,1,.32,1) both}
.rp-slots{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rp-slots button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:6px;width:100%;min-height:68px;padding:11px 14px;border-radius:12px;border:1.5px dashed #b9c4da;transition:border-color .2s,background-color .2s}
.rp-slots small{font:500 12px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#5d6673}
.rp-slots b{font-size:18px;line-height:1.2;font-weight:400;color:#5d6673}
/* A filled slot is solid; the slot of the question on screen is marked, so the card and the question read as one thing. */
.rp-slots button.set{border-style:solid;border-color:var(--navy)}.rp-slots button.set b{font-weight:600;color:var(--navy)}
.rp-slots button.now{border-color:var(--blue);border-style:solid;background:#eef4ff}
.rp-card.on .rp-slots button{border-color:rgba(255,255,255,.4)}.rp-card.on .rp-slots small{color:#b9d0fb}.rp-card.on .rp-slots b{color:#b9d0fb}
.rp-card.on .rp-slots button.set{border-color:rgba(255,255,255,.75)}.rp-card.on .rp-slots button.set b{color:#fff}
.rp-card.on .rp-slots button.now{background:rgba(255,255,255,.14);border-color:#fff}
.rp-slots button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.rp-card.on .rp-slots button:focus-visible{outline-color:#fff}
@media (hover:hover){.rp-slots button:hover{border-color:var(--blue)}.rp-card.on .rp-slots button:hover{border-color:#fff}}

/* the stage: one step at a time */
.rp-stage{min-width:0;padding-top:clamp(0px,4.2vw,62px)}
.rp-step[hidden]{display:none}
.rp-step{animation:rp-in .3s cubic-bezier(.23,1,.32,1) both}
@keyframes rp-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.rp-prog{display:flex;align-items:center;gap:16px;margin:0 0 16px;font:500 14px/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--blue)}
.rp-prog .bar{display:flex;gap:5px;flex:1;max-width:220px}
.rp-prog .bar i{flex:1;height:4px;border-radius:2px;background:#dfe4ee}.rp-prog .bar i.on{background:var(--blue)}
.rp-step h2{margin:0 0 12px;font-size:clamp(30px,3.3vw,52px);line-height:1.04;letter-spacing:-.04em;font-weight:600;text-wrap:balance;outline:0}
.rp-why{margin:0;max-width:54ch;font-size:18px;line-height:1.5;color:#3b4a68;text-wrap:pretty}.rp-why b{color:var(--navy);font-weight:600}
.rp-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:clamp(20px,2.2vw,30px)}
.rp-opts button{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:68px;padding:10px 22px;border-radius:16px;border:1.5px solid #c3cde0;background:#fff;color:var(--navy);
  font-size:clamp(18px,1.5vw,21px);font-weight:600;line-height:1.2;transition:border-color .2s,background-color .2s,color .2s,transform .16s cubic-bezier(.23,1,.32,1)}
.rp-opts button:after{content:"→";color:var(--blue);font-weight:400}
.rp-opts button:active{transform:scale(.98)}
.rp-opts button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.rp-opts button[aria-pressed=true]:after{content:"✓";color:#fff}
.rp-opts button:focus-visible,.rp-nav button:focus-visible,.rp-share button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (hover:hover){.rp-opts button:not([aria-pressed=true]):hover{border-color:var(--navy);background:#f5f8fd}}
.rp-nav{display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;margin:clamp(18px,2vw,26px) 0 0;min-height:52px}
.rp-nav button{all:unset;box-sizing:border-box;cursor:pointer;font-size:18px;font-weight:600;color:var(--navy);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(10,43,109,.35);padding:10px 0}
/* !important: the "See your route" button sets its own display below, which would otherwise show it while hidden. */
.rp-nav button[hidden]{display:none!important}
#rp-back:before{content:"← "}
.rp-nav button.go{margin-left:auto;height:52px;padding:0 26px;border-radius:999px;background:var(--navy);color:#fff;text-decoration:none;display:inline-flex;align-items:center;transition:background-color .2s}
.rp-nav button.go:after{content:"\00a0→";white-space:pre}
@media (hover:hover){.rp-nav button:hover{color:var(--blue)}.rp-nav button.go:hover{background:var(--blue);color:#fff}}

/* the result step */
.rp-plain{margin:0 0 14px;max-width:52ch;font-size:clamp(20px,1.6vw,23px);line-height:1.4;font-weight:600;color:var(--navy);text-wrap:pretty}
.rp-note{margin:0 0 12px;max-width:58ch;font-size:18px;line-height:1.5;color:#2c3a58;text-wrap:pretty}.rp-note[hidden]{display:none}
.rp-links{display:flex;flex-wrap:wrap;gap:8px 28px;margin:18px 0 0}
.rp-guide{font-size:19px;font-weight:600;color:var(--blue);text-decoration:underline;text-underline-offset:5px}
.rp-guide:after{content:"\00a0→"}.rp-guide[hidden]{display:none}
.rp-next{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px 24px;align-items:center;margin-top:26px;padding:22px 0;border-top:2px solid var(--navy);border-bottom:1px solid #dfe4ee}
.rp-next p{margin:0;font-size:18px;line-height:1.45;color:#2c3a58;max-width:44ch}
.rp-btn{display:inline-flex;align-items:center;justify-content:center;height:60px;padding:0 40px;border-radius:999px;background:var(--blue);color:#fff!important;font-weight:700;font-size:19px;text-decoration:none;transition:transform .2s cubic-bezier(.23,1,.32,1),background-color .2s}
.rp-btn:active{transform:scale(.97)}
@media (hover:hover){.rp-btn:hover{background:var(--navy)}}
.rp-share{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:20px}
.rp-share button{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;height:46px;padding:0 20px;border-radius:999px;border:1.5px solid var(--navy);font-size:17px;font-weight:600;color:var(--navy);transition:background-color .2s,color .2s}
@media (hover:hover){.rp-share button:hover{background:var(--navy);color:#fff}}
.rp-share p{margin:0;font:500 14px/1.5 var(--mono);color:var(--blue)}
.rp-stale{margin:22px 0 0;max-width:58ch;font-size:18px;line-height:1.5;color:#2c3a58}
.rp-stale b{color:var(--navy)}.rp-stale a{color:var(--blue);font-weight:600;text-underline-offset:4px}
.rp-cav{margin:12px 0 0;max-width:64ch;font-size:16px;line-height:1.55;color:#566683}

/* ---- below the tool ---- */
.rp-sec+.rp-sec{border-top:1px solid #dfe4ee}
.rp-sec .lb-h{padding:0;margin-bottom:clamp(28px,3.4vw,52px)}
.rp-how{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 clamp(20px,2.4vw,40px)}
.rp-how li{border-top:2px solid var(--navy);padding-top:20px}
.rp-how .n{display:block;font:500 14px/1 var(--mono);letter-spacing:.06em;color:var(--blue);margin-bottom:clamp(28px,4vw,64px)}
.rp-how h3{margin:0 0 10px;font-size:clamp(22px,1.8vw,27px);line-height:1.15;letter-spacing:-.02em;font-weight:600}
.rp-how p{margin:0;font-size:18px;line-height:1.5;color:#3b4a68;text-wrap:pretty}
.rp-guides{display:grid;grid-template-columns:1fr 1fr;gap:0 clamp(28px,4vw,72px)}
.rp-guides h3{margin:0 0 14px;font:500 13px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#566683}
.rp-guides a{display:flex;justify-content:space-between;gap:16px;padding:17px 0;border-top:1px solid #dfe4ee;font-size:clamp(20px,1.7vw,25px);font-weight:600;letter-spacing:-.015em;color:var(--navy);text-decoration:none;transition:color .2s}
.rp-guides a:after{content:"→";color:var(--blue);transition:transform .2s cubic-bezier(.23,1,.32,1)}
.rp-guides div a:first-of-type{border-top:2px solid var(--navy)}
.rp-guides div a:last-child{border-bottom:1px solid #dfe4ee}
@media (hover:hover){.rp-guides a:hover{color:var(--blue)}.rp-guides a:hover:after{transform:translateX(4px)}}

/* ---- narrow screens ---- */
@media (max-width:1000px){
/* One column: text, then the question, then the card. With the result on screen the card moves up, because it carries the rule's name. */
.st-top.h-rp{display:flex;flex-direction:column;align-items:stretch;gap:0}
.h-rp .tx{display:contents}
.h-rp .st-pills{order:0}.st-top.h-rp h1{order:1;max-width:16ch}.h-rp .st-lede{order:2}.rp-human{order:3}
.rp-stage{order:4;padding-top:28px}.rp-card{order:5;margin-top:32px;max-width:none}
.st-top.h-rp.done .rp-card{order:4;margin-top:24px}.st-top.h-rp.done .rp-stage{order:5}
.rp-how{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px clamp(20px,2.4vw,40px)}
}
@media (max-width:640px){
/* On a phone the first question has to start on the first screen: the pills go, and the "about a minute" line moves under the question. */
.st-top.h-rp{padding-top:84px}
.h-rp .st-pills{display:none}
.rp-human{order:5;margin-top:18px}.rp-card{order:6}.st-top.h-rp.done .rp-human{order:6}
.h-rp .st-lede{margin-top:12px;font-size:18px;line-height:1.4}
.rp-stage{padding-top:22px}
.rp-step h2{font-size:28px}
.rp-why{font-size:18px;line-height:1.4}
/* Two columns without the arrow keep all six answers of question 1 on the first screen of a 375 px phone. */
.rp-opts{gap:8px;margin-top:16px}.rp-opts button{min-height:60px;padding:8px 14px;border-radius:14px;font-size:18px}.rp-opts button:not([aria-pressed=true]):after{content:none}
.rp-next{grid-template-columns:minmax(0,1fr)}.rp-btn{width:100%}
.rp-how,.rp-guides{grid-template-columns:minmax(0,1fr)}.rp-guides div+div{margin-top:36px}
.rp-how .n{margin-bottom:22px}
}
@media (prefers-reduced-motion:reduce){
.rp-step,.rp-card.on .rp-x{animation:none}
.rp-slots button,.rp-btn,.rp-opts button,.rp-nav button.go,.rp-share button,.rp-guides a,.rp-guides a:after{transition:none}
}

/* the free-tool stamp sits at the top right of the text column (shared mark, v18-std.css) */
.st-top.h-rp .tx{position:relative}
/* Head rhythm (final QA item 55, 22.11.2026): the h1 starts where every other white head starts (the shared
   .st-top padding), and tool heads share one size, 66px at 1440 (4.6vw). */
/* Contrast (final QA items 20 and 64, 22.11.2026): grey #8a93a8 text is #5d6673 on light grounds, and the
   pale labels on blue or navy are #e9f0ff, so every label reaches 4.5:1. */

/* Arrows after link text are written content:"\00a0→" (a no-break space), not " →": inside a flex or
   inline-flex link (the 44px touch boxes) a leading plain space in ::after is dropped, so "See the
   Terminal→" lost its gap; the no-break space also keeps the arrow from wrapping alone onto a new line.
   Final QA 22.11.2026, round 3, item 8. */
