/* Complements the catalogue's ex-page, ex-panel, ex-jumps and ex-faq components. */
.gc-relocation {
  --chapter-width: 92ch;
  --rl-edge: #d5e1da;
  --rl-tint: #edf4ef;
}
.gc-relocation [id] { scroll-margin-top: 175px }
.gc-relocation .gc-catalog-crumb { display:flex; flex-wrap:wrap; align-items:baseline; gap:.35em .7em; margin:0 0 22px; color:#4c5f67; font-size:.88rem }
.gc-relocation .gc-catalog-crumb > * { min-width:0 }
.gc-relocation .gc-catalog-crumb a { font-weight:650 }
body.sw-transport-catalog #main .gc-relocation .ex-hero { grid-template-columns:minmax(0,1.14fr) minmax(0,1fr) }
body.sw-transport-catalog #main .gc-relocation h1 { overflow-wrap:break-word; margin-bottom:.32em }
body.sw-transport-catalog #main .gc-relocation .rl-title-tail { display:block; color:#226747; font-size:clamp(20px,1.7vw,27px); font-weight:650; line-height:1.35; letter-spacing:0; margin-top:.45em }
.gc-relocation .rl-lead { max-width:66ch }
.gc-relocation .ex-hero-photo { width:100%; justify-self:center }
body.sw-transport-catalog #main .gc-relocation .ex-hero-photo img { width:100%; height:auto; aspect-ratio:1.5; max-height:410px; object-fit:cover; object-position:50% 54%; border:1px solid var(--rl-edge) }
body.sw-transport-catalog #main .gc-relocation .ex-actions { margin-bottom:0 }
.gc-relocation .ex-actions .rl-next { font-weight:700 }
body.sw-transport-catalog #main .gc-relocation .ex-jumps { align-items:center; margin:0 0 24px; padding:0; gap:8px }
body.sw-transport-catalog #main .gc-relocation .ex-jumps > a,
.gc-relocation .rl-toc > summary { display:inline-flex; align-items:center; min-height:42px; font:inherit; font-size:14px; line-height:1.35 }
.gc-relocation .rl-toc { width:100%; margin:0 }
.gc-relocation .rl-contents { margin-bottom:24px }
body.sw-transport-catalog #main .gc-relocation .rl-contents .ex-jumps { margin-bottom:10px }
.gc-relocation .rl-toc > summary { padding:9px 14px; border:1px solid #b5cdbe; border-radius:24px; color:#174b38; background:#edf4ef; font-weight:700; cursor:pointer; list-style:none }
.gc-relocation .rl-toc > summary::-webkit-details-marker { display:none }
.gc-relocation .rl-toc > summary::after { content:'+'; margin-inline-start:12px }
.gc-relocation .rl-toc[open] > summary::after { content:'−' }
.gc-relocation .rl-toc-body { background:#fff; border:1px solid var(--rl-edge); border-radius:18px; padding:clamp(18px,2.3vw,32px); margin:10px 0 0 }
.gc-relocation .rl-toc ol { padding:0; margin:0; list-style:none; columns:2; column-gap:32px }
.gc-relocation .rl-toc li { break-inside:avoid; margin:0 0 .65em; line-height:1.45 }
.gc-relocation .rl-toc a { overflow-wrap:anywhere }
.gc-relocation .rl-toc p { font-weight:700; margin-bottom:.75em }
.gc-relocation .rl-toc ol + p { margin-top:1.2em }
.gc-relocation .rl-chapter, .gc-relocation .ex-hero-copy { min-width:0 }
body.sw-transport-catalog #main .gc-relocation .rl-chapter { background:#fff }
.gc-relocation .rl-chapter > :is(p,ul,ol,h2,h3,h4,blockquote), .gc-relocation .rl-document-intro .rl-lead { max-width:var(--chapter-width) }
.gc-relocation .rl-chapter ul,.gc-relocation .rl-chapter ol { padding-inline-start:1.6em; margin:0 0 1.15em }
.gc-relocation .rl-chapter li { padding-inline-start:.15em; margin:.35em 0 }
.gc-relocation .rl-chapter li::marker { color:#156442; font-weight:700 }
body.sw-transport-catalog #main .gc-relocation .rl-chapter :is(h3,h4) { margin-top:1.1em }
.gc-relocation .rl-chapter strong { color:#19382e }
.gc-relocation .rl-chapter a, .gc-relocation .rl-sources a { overflow-wrap:anywhere }
.gc-relocation .rl-table { margin:1.4em 0; border:1px solid #cddbd1; border-radius:14px; overflow:auto; max-width:100% }
.gc-relocation .rl-table table { width:100%; border-collapse:collapse; font:inherit; font-size:16px; line-height:1.5; text-align:left }
.gc-relocation .rl-table th,.gc-relocation .rl-table td { padding:15px 18px; vertical-align:top; border-bottom:1px solid #dce5df; text-align:left }
.gc-relocation .rl-table thead tr, .gc-relocation .rl-table tr:first-child:has(> th):not(:has(td)) { background:#194f3c; color:#fff }
.gc-relocation .rl-table tr:first-child:has(>th):not(:has(td)) :is(th,strong), .gc-relocation .rl-table thead :is(th,strong) { color:white }
.gc-relocation .rl-table tbody tr:nth-child(even) { background:#f6f9f6 }
.gc-relocation .rl-table tbody tr:last-child > * { border-bottom:0 }
.gc-relocation .rl-table:focus-visible { outline:3px solid #2b875d; outline-offset:2px }
.gc-relocation .rl-authorship { font-size:14px; color:#53645c; margin:18px 0 0 }
.gc-relocation .rl-authorship a { font-weight:650 }
.gc-relocation .rl-sources li { margin:.45em 0 }
.gc-relocation .rl-sources ul { padding-inline-start:1.45em }
.gc-relocation .rl-related { display:flex; flex-wrap:wrap; gap:8px 20px }
.gc-relocation .rl-related a { display:inline-block; padding-block:6px; font-weight:650 }
.gc-relocation .rl-end { background:#edf4ef; display:flex; gap:18px; justify-content:space-between; align-items:center; flex-wrap:wrap }
.gc-relocation .rl-back { font-weight:700 }
@media(max-width:767px) {
  body.sw-transport-catalog #main .gc-relocation .ex-hero { grid-template-columns:minmax(0,1fr) }
  body.sw-transport-catalog #main .gc-relocation h1 { font-size:clamp(30px,7.8vw,42px); hyphens:auto }
  body.sw-transport-catalog #main .gc-relocation h2 { font-size:clamp(23px,6vw,29px); overflow-wrap:break-word }
  .gc-relocation .gc-catalog-crumb { font-size:13px; margin-bottom:14px }
  .gc-relocation .rl-toc ol { columns:1 }
  .gc-relocation .rl-table table { min-width:35rem; font-size:15px }
  .gc-relocation .rl-table th,.gc-relocation .rl-table td { padding:12px }
  body.sw-transport-catalog #main .gc-relocation .ex-hero-photo img { aspect-ratio:auto; max-height:none }
  body.sw-transport-catalog #main .gc-relocation .ex-hero-copy { max-width:100% }
  .gc-relocation [id] { scroll-margin-top:105px }
}
