/* Route page, Chapters design (Edwin 3 Nov 2026, docs/DESIGN-RULES.md rules 4, 5, 7, 8; spec design/route-steps-options-2026-11-03.html option C).
   A progress bar with one part per step (done parts ink, the open part ochre, later parts grey), one step at a time in a large panel,
   four rows in the same place for every step, sources one click away, Back and Next, the other ways to stay as cards. Always white (rule 12). */
#ger-route .lab { margin: 0; font-size: var(--small); color: var(--slate); }
#ger-route .s { display: block; font-size: var(--small); color: var(--slate); margin-top: 2px; }
#ger-route .none { color: var(--slate); }
.chev { display: inline-block; width: 9px; height: 9px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
details[open] > summary .chev { transform: rotate(225deg) translate(-2px, -1px); }

/* the progress bar: every part is a real button (role tab); arrow keys move between steps */
.c-steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.c-tab { display: block; width: 100%; min-height: var(--tap); text-align: left; background: none; border: 0; padding: 0 0 10px; color: var(--ink); font: inherit; cursor: pointer; }
.c-bar { display: block; height: 4px; border-radius: 2px; background: var(--rule); margin-bottom: 14px; transition: background .25s; }
.c-tab.past .c-bar { background: var(--ink); }
.c-tab[aria-selected="true"] .c-bar { background: var(--ochre); }
.c-n { display: block; font-size: var(--tiny); color: var(--slate); }
.c-nn { display: none; }
.c-t { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.c-f { display: block; font-size: var(--tiny); color: var(--slate); margin-top: 2px; }
.c-tab[aria-selected="true"] .c-t, .c-tab:hover .c-t { color: var(--ochre); }
.c-tab:focus-visible { outline-offset: 4px; }

/* the one open step */
.c-pn { margin-top: 28px; border: 1px solid var(--rule); border-radius: 18px; padding: 44px 48px 36px; background: var(--paper); }
.c-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 52px; }
.c-title { font-family: var(--font-display); font-weight: 700; font-size: 60px; line-height: 1; margin: 10px 0 18px; }
.c-title:focus { outline: none; }
.c-perm { margin: 0; }
.c-perm b { display: block; font-size: 18px; font-weight: 600; }
.c-perm .de { display: block; font-size: var(--small); margin-top: 2px; }
.c-def { margin: 18px 0 0; font-size: 17px; }
.c-alt { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); }
.c-altb { display: block; width: 100%; min-height: var(--tap); margin-top: 2px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.c-altb b { display: block; font-weight: 600; text-decoration: underline 1px var(--line); text-underline-offset: 3px; }
.c-altb .de { display: block; font-size: 15px; }
.c-altb:hover b { color: var(--ochre); text-decoration-color: currentColor; }
.c-key { padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.c-big { font-family: var(--font-display); font-weight: 700; font-size: 50px; line-height: 1.02; color: var(--ochre); margin: 6px 0 0; }
.c-big.none { font-size: 28px; color: var(--slate); }
.c-key .s { margin-top: 8px; font-size: var(--body); }
.c-sm { margin: 6px 0 0; font-size: 20px; line-height: 1.35; }
.c-rows { margin: 0; }
.c-row { display: grid; grid-template-columns: 130px 1fr; gap: 4px 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.c-row dt { font-size: var(--small); color: var(--slate); padding-top: 1px; }
.c-row dd { margin: 0; min-width: 0; }
.c-row dd > b { display: block; font-weight: 600; line-height: 1.4; }
.c-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.c-row dd > b + .c-list, .c-row dd > .s + .c-list { margin-top: 12px; }
.c-list b { display: block; font-weight: 600; line-height: 1.4; }
.c-list .fast { color: var(--ochre); font-size: var(--tiny); font-weight: 600; }

/* sources, then the seals and the original wording one click away (rule 6) */
.c-srcs { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: var(--small); color: var(--slate); }
.c-src { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 2px 22px; }
.c-src a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
.c-src a:hover { color: var(--ochre); text-decoration-color: currentColor; }
.c-det summary { display: inline-flex; align-items: center; gap: 12px; min-height: var(--tap); color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.c-det summary::-webkit-details-marker { display: none; }
.c-q { padding: 10px 0 14px; border-top: 1px solid var(--rule); color: var(--ink); }
.c-ql { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.c-qh { margin: 10px 0 2px; font-size: var(--tiny); color: var(--slate); }
.c-q blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--line); font-style: italic; font-size: 15px; max-width: 640px; }
.c-qe { margin: 0; max-width: 640px; }

/* Back and Next, named after the neighbouring steps */
.c-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.c-btn { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; }
.c-btn:hover { background: var(--ink); color: var(--onink); }

/* other ways to stay: cards, shortest first */
.c-ways { margin-top: 52px; }
.ways-h { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0; }
.ways-s { margin: 4px 0 0; color: var(--slate); }
.c-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.c-card { display: flex; flex-direction: column; justify-content: flex-start; width: 100%; height: 100%; text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; padding: 18px 20px; font: inherit; cursor: pointer; }
.c-card:hover, .c-card[aria-expanded="true"] { border-color: var(--ink); }
.c-card .s { font-size: var(--tiny) !important; margin: 0 !important; }
.c-card .y { display: block; font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.1; margin: 2px 0 12px; }
.c-card .y.q { color: var(--ochre); }
.c-card .y.none { font-size: 20px; color: var(--slate); }
.c-card b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; }
.c-way { margin-top: 12px; border: 1px solid var(--ink); border-radius: 14px; padding: 18px 20px; }
.c-way h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; font-family: var(--font-text); }
.c-way ul { list-style: none; margin: 0; padding: 0; }
.c-way li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.c-wn { flex: 1 1 auto; min-width: 0; }
.c-wn b { display: block; font-weight: 600; }
.c-wn .de { display: block; }

@media (prefers-reduced-motion: reduce) { .c-bar, .chev { transition: none; } }
/* phone (390 px): the bar shows numbers only, the panel stacks */
@media (max-width: 699px) {
  .c-steps { gap: 6px; margin-top: 20px; }
  .c-tab { position: relative; }
  .c-nw, .c-t, .c-f { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* still read by screen readers */
  .c-nn { display: block; text-align: center; font-size: var(--small); font-weight: 600; color: var(--ink); }
  .c-tab[aria-selected="true"] .c-nn { color: var(--ochre); }
  .c-pn { padding: 26px 20px 22px; border-radius: 14px; margin-top: 16px; }
  .c-grid { grid-template-columns: 1fr; gap: 26px; }
  .c-title { font-size: 46px; }
  .c-big { font-size: 40px; }
  .c-row { grid-template-columns: 1fr; }
  .c-btn { padding: 0 14px; font-size: 14px; }
}
