/* Scoped to component navigation; long titles wrap on narrow screens. */
nav.rdps-context-breadcrumb{margin:1rem 0 1.75rem;padding:.9rem 1rem;background:#fff;border:1px solid #d4d4d1;border-left:3px solid #ad853b;border-radius:4px;color:#333;font-size:.94rem;line-height:1.6;max-width:100%;box-sizing:border-box}
nav.rdps-context-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 0;list-style:none!important;margin:0!important;padding:0!important}
nav.rdps-context-breadcrumb li{display:flex;align-items:baseline;min-width:0;max-width:100%;margin:0;padding:0;overflow-wrap:anywhere}
nav.rdps-context-breadcrumb li+li:before{content:"›";color:#777;flex-shrink:0;margin:0 .65rem}
nav.rdps-context-breadcrumb a{color:#675021;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
nav.rdps-context-breadcrumb a:hover{color:#333}
nav.rdps-context-breadcrumb a:focus-visible{outline:2px solid #85672d;outline-offset:4px;border-radius:2px}
nav.rdps-context-breadcrumb [aria-current=page]{color:#333;font-weight:700;overflow-wrap:anywhere}
@media(max-width:600px){nav.rdps-context-breadcrumb{font-size:.875rem;padding:.75rem}nav.rdps-context-breadcrumb li+li:before{margin:0 .4rem}}

/* Match the inset used by the profile pages; publication containers have no side padding. */
.rdpdf-reader-page > nav.rdps-context-breadcrumb{margin-left:clamp(24px,4vw,56px);margin-right:clamp(24px,4vw,56px);width:auto}

/* Reader headings and mode instructions follow the breadcrumb inset. Keep the viewer full width. */
.rdpdf-reader-page > #rdpdf-viewer > .rdpdf-section-head,
.rdpdf-reader-page > #rdpdf-viewer > .rdps-reader-mode-note{margin-left:clamp(24px,4vw,56px);margin-right:clamp(24px,4vw,56px);width:auto;max-width:none;box-sizing:border-box}

/* Reserve empty document columns so a single result keeps the same width as its neighbours. */
.rdps-journey .rdps-resource-grid:not(.rdps-profile-grid){grid-template-columns:repeat(auto-fill,minmax(min(100%,390px),1fr))}
