/*
  v18-related.css · the "Related pages" block of site V18 (23.11.2026).

  What: the cross-link cards build_v18_related.py adds to every page of the local build. Same card
  language as the 404's "Where people usually go" (grey rounded card, title with an arrow, one line),
  so the block reads as part of the site, not a widget. Class prefix xr-.
  Night: build_v18_night.py reads this file, so the cards follow the docs night theme.
*/
.xr{padding:clamp(20px,2.5vw,40px) 0 clamp(48px,6vw,88px)}
.xr-in{max-width:var(--w,1360px);margin:0 auto;padding:0 var(--g,clamp(20px,3vw,40px))}
.xr h2{margin:0 0 22px;padding-top:18px;border-top:2px solid var(--navy);font-size:clamp(26px,2.5vw,38px);letter-spacing:-.03em;font-weight:600;color:var(--navy)}
.xr-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.xr-g a{height:100%;display:flex;flex-direction:column;gap:6px;padding:12px 12px 20px;border-radius:20px;background:#f2f4f8;text-decoration:none;color:var(--navy);transition:background-color .2s}
/* The drawing (24.11.2026): a white plate on top of the grey card, the home product cards' manner. The
   drawings are line art on white or pale grey, so the plate is white and the drawing sits whole inside it. */
.xr-art{display:block;aspect-ratio:16/10;margin-bottom:12px;border-radius:12px;background:#fff;overflow:hidden}
.xr-art img{display:block;width:100%;height:100%;object-fit:contain;padding:6%;box-sizing:border-box;transition:transform .4s cubic-bezier(.23,1,.32,1)}
.xr-g b,.xr-g a > span:not(.xr-art){padding:0 10px}
.xr-g b{font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.xr-g b:after{content:"\00a0→";color:#1f63d6}
.xr-g span{font-size:16px;line-height:1.45;color:#3b4a68}
@media (hover:hover){.xr-g a:hover{background:#e6eefb}.xr-g a:hover .xr-art img{transform:scale(1.03)}}
@media (prefers-reduced-motion:reduce){.xr-art img{transition:none}.xr-g a:hover .xr-art img{transform:none}}
.xr-g a:focus-visible{outline:3px solid #1f63d6;outline-offset:3px}
@media (max-width:900px){.xr-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* On a phone six tall cards would make a long scroll: each card becomes a row, the drawing small on the left. */
@media (max-width:560px){.xr-g{grid-template-columns:1fr;gap:10px}
  .xr-g a{display:grid;grid-template-columns:108px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px;row-gap:4px;padding:10px;align-items:start}
  .xr-art{grid-row:1/3;margin:0;aspect-ratio:1}.xr-art img{padding:8%}
  .xr-g b,.xr-g a > span:not(.xr-art){padding:0}.xr-g b{padding-top:6px;font-size:18px}}

/* Four cards fill one row of four, so no card is left alone on a second row (QA 23.11.2026). */
@media (min-width:1101px){.xr-g:has(> li:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:1100px) and (min-width:561px){.xr-g:has(> li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Hero index (build_v18_related.py, hero_index): the right half of the first screen on the US guide,
   For AI agents and Free tools. Same drawing as the Orbit Docs "Sections" list. Phones keep it out. */
.hx-idx{align-self:end}
.hx-idx small{display:block;margin:0 0 12px;font:500 12px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#566683}
.hx-idx ol{list-style:none;margin:0;padding:0;border-top:2px solid var(--navy)}
.hx-idx li{border-bottom:1px solid #dfe4ee}
.hx-idx a{display:grid;grid-template-columns:2.6em minmax(0,1fr);align-items:baseline;gap:10px;padding:13px 2px;text-decoration:none;color:var(--navy);text-align:left}
.hx-idx .n{font:500 13px/1 var(--mono);color:#1f63d6}
.hx-idx b{font-size:18px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
@media (hover:hover){.hx-idx a:hover b{color:#1f63d6}}
@media (min-width:1101px){
  .st-top.h-mo:has(> .hx-idx){display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,460px);column-gap:clamp(40px,5vw,96px);align-items:end}
  .st-top.h-mo:has(> .hx-idx) > .mo-in{max-width:none;margin:0}
  .st-top.h-kb:has(> .hx-idx){grid-template-columns:minmax(0,1fr) minmax(320px,460px)!important;align-items:end}
}
@media (max-width:1100px){.hx-idx{display:none}}

/* Inside a text column (xr-col): no page gutters, two cards a row, and none of the prose list styling. */
.xr.xr-col{padding:clamp(32px,4vw,56px) 0 0}
.xr-col .xr-in{max-width:none;padding:0}
.xr-col .xr-g{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:0;margin:0}
.xr-col .xr-g li{list-style:none;margin:0;padding:0}
.xr-col .xr-g li::before,.xr-col .xr-g li::marker{content:none}
@media (max-width:560px){.xr-col .xr-g{grid-template-columns:1fr!important}}
