/* ============================================================
   Trust Centre - components specific to compliance.medicus.health.
   Built on the medicus.css design system (tokens + base).
   Load medicus.css first, then this file.
   ============================================================ */

/* header home link */
.site-header__row .home-link { color: var(--text-light); font-weight: 600; font-size: 14.5px; }
.site-header__row .home-link:hover { color: var(--ink); }

/* in-page table of contents (chips) */
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.toc a { background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill);
         padding: 9px 17px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.toc a:hover { background: var(--tint); border-color: #c2d2e6; }

.updated { margin-top: 28px; color: var(--text-lightest); font-size: 14px; }

/* card header: title with its status pill sitting directly beneath, left-aligned */
.card__head { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

/* status badges (sentence case, small) */
.badge { display: inline-block; font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
         padding: 3px 11px; border-radius: var(--r-pill); }
.badge-ok { background: #E0F0E8; color: #1F6B47; }
.badge-neutral { background: #EAECEF; color: #5B6472; }

/* document links on a card (one or more, stacked) */
.card__links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 18px; }

/* "opens in a new tab" icon on external links */
.ext { width: 0.9em; height: 0.9em; margin-left: 5px; vertical-align: -0.12em; stroke: currentColor; }

/* visually-hidden text (announced by screen readers only) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
           overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* a category section anchors below the sticky header */
section[id] { scroll-margin-top: 88px; }

/* document archive list */
.doc-list { list-style: none; padding: 0; margin: 30px 0 0; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 20px;
               background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r);
               padding: 18px 22px; margin-bottom: 12px; }
.doc-list .meta strong { display: block; color: var(--ink); }
.doc-list .meta span { color: var(--text-light); font-size: 14.5px; }

/* breadcrumb + note on archive pages */
.crumb { color: var(--text-lightest); font-size: 14px; margin: 0 0 16px; }
.crumb a { color: var(--accent-2); }
.note { background: var(--tint); border: 1px solid #d7e2f0; border-radius: var(--r);
        padding: 16px 20px; color: var(--grey-700); font-size: 15.5px; margin: 22px 0 0; }

@media (max-width: 560px) {
  .doc-list li { flex-direction: column; align-items: flex-start; gap: 10px; }
}
