/* MultiLink Regulatory Intelligence Hub – front end */
:root {
	--mrh-primary: #0b3d5c;
	--mrh-accent: #c8962e;
	--mrh-ink: #15212b;
	--mrh-muted: #5b6b78;
	--mrh-line: #dfe5ea;
	--mrh-soft: #f4f7f9;
	--mrh-card: #ffffff;
	--mrh-radius: 10px;
	--mrh-shadow: 0 1px 2px rgba(16, 33, 48, .06), 0 4px 16px rgba(16, 33, 48, .06);
	--mrh-ok: #1b7a43;
	--mrh-warn: #a86b00;
	--mrh-bad: #b3261e;
	--mrh-info: #1f5fa8;
	--mrh-font-eth: "Noto Sans Ethiopic", "Nyala", "Abyssinica SIL", sans-serif;
}
.mrh, .mrh * { box-sizing: border-box; }
.mrh { color: var(--mrh-ink); font-size: 16px; line-height: 1.55; }
.mrh a { color: var(--mrh-primary); }
.mrh [lang="am"], .mrh-lang-am .mrh, .mrh-ethiopic { font-family: var(--mrh-font-eth); }
.mrh-container { max-width: 1240px; margin: 0 auto; padding: 24px 16px 48px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.mrh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--mrh-line); background: #fff; color: var(--mrh-primary) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s; }
.mrh-btn:hover { border-color: var(--mrh-primary); }
.mrh-btn:disabled { opacity: .45; cursor: default; }
.mrh-btn--primary { background: var(--mrh-primary); border-color: var(--mrh-primary); color: #fff !important; }
.mrh-btn--primary:hover { filter: brightness(1.1); }
.mrh-btn--accent { background: var(--mrh-accent); border-color: var(--mrh-accent); color: #1d1404 !important; }
.mrh-btn--ghost { background: transparent; }

/* Tags & status */
.mrh-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--mrh-soft); color: var(--mrh-muted); font-size: 12px; font-weight: 600; text-decoration: none !important; border: 1px solid var(--mrh-line); }
.mrh-tag--strong { background: var(--mrh-primary); border-color: var(--mrh-primary); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.mrh-tag--ok { color: var(--mrh-ok); background: #e9f6ee; border-color: #c6e6d2; }
.mrh-tag--warn { color: var(--mrh-warn); background: #fdf4e3; border-color: #f2dfb5; }
.mrh-tag--lock { color: #6b4a00; background: #fff5dc; border-color: #f0d998; }
.mrh-status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.mrh-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mrh-status--in_force { color: var(--mrh-ok); background: #e9f6ee; }
.mrh-status--partially_amended, .mrh-status--amended { color: var(--mrh-info); background: #e8f0fb; }
.mrh-status--not_yet_in_force { color: #6a4bb3; background: #f0ebfb; }
.mrh-status--superseded, .mrh-status--expired { color: #6b6b6b; background: #efefef; }
.mrh-status--repealed { color: var(--mrh-bad); background: #fbeaea; }
.mrh-status--unknown { color: var(--mrh-warn); background: #fdf4e3; }

/* Hero */
.mrh-hero { background: linear-gradient(135deg, var(--mrh-primary) 0%, #082a40 100%); color: #fff; border-radius: 16px; padding: 40px 32px 32px; margin-bottom: 28px; position: relative; overflow: hidden; }
.mrh-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(200, 150, 46, .35), transparent 70%); pointer-events: none; }
.mrh-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mrh-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mrh-accent); }
.mrh-hero__title { color: #fff; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 14px 0 8px; max-width: 760px; }
.mrh-hero__sub { color: rgba(255, 255, 255, .82); max-width: 680px; margin: 0 0 22px; }
.mrh-search { position: relative; display: flex; gap: 8px; max-width: 760px; }
.mrh-search input[type=search] { flex: 1; min-width: 0; padding: 14px 16px; font-size: 16px; border-radius: 10px; border: 1px solid transparent; background: #fff; color: var(--mrh-ink); }
.mrh-search input[type=search]:focus { outline: 3px solid rgba(200, 150, 46, .55); }
.mrh-search--compact { max-width: 520px; }
.mrh-search--compact input[type=search] { border-color: var(--mrh-line); padding: 10px 14px; }
.mrh-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: #fff; border-radius: 10px; box-shadow: var(--mrh-shadow); overflow: hidden; }
.mrh-suggest a { display: block; padding: 10px 14px; color: var(--mrh-ink) !important; text-decoration: none; border-bottom: 1px solid var(--mrh-line); }
.mrh-suggest a:hover { background: var(--mrh-soft); }
.mrh-suggest span { color: var(--mrh-muted); font-size: 13px; }
.mrh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mrh-chip { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.mrh-chip:hover, .mrh-chip.is-active { background: #fff; color: var(--mrh-primary) !important; }
.mrh-langswitch { display: inline-flex; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; overflow: hidden; }
.mrh-langswitch a { padding: 4px 10px; font-size: 13px; font-weight: 700; color: inherit !important; text-decoration: none !important; opacity: .75; }
.mrh-langswitch a.is-active { background: var(--mrh-accent); color: #1d1404 !important; opacity: 1; }
.mrh-doc .mrh-langswitch { border-color: var(--mrh-line); }

/* Library layout */
.mrh-library__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
.mrh-library__body--nofilters { grid-template-columns: minmax(0, 1fr); }
.mrh-filters form { position: sticky; top: 24px; background: var(--mrh-card); border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); padding: 18px; }
.mrh-filters__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.mrh-filters__head a { font-size: 13px; }
.mrh-filter { display: block; margin: 0 0 14px; border: 0; padding: 0; }
.mrh-filter > span, .mrh-filter legend { display: block; font-size: 12px; font-weight: 700; color: var(--mrh-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.mrh-filter select, .mrh-filter input { width: 100%; padding: 8px 10px; border: 1px solid var(--mrh-line); border-radius: 8px; background: #fff; font-size: 14px; }
.mrh-filter--years { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mrh-filter--years legend { grid-column: 1 / -1; }
.mrh-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.mrh-toolbar__right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mrh-count { font-weight: 700; color: var(--mrh-muted); }
.mrh-sort select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--mrh-line); background: #fff; }
.mrh-views { display: inline-flex; border: 1px solid var(--mrh-line); border-radius: 8px; overflow: hidden; }
.mrh-view-btn { border: 0; background: #fff; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--mrh-muted); }
.mrh-view-btn.is-active { background: var(--mrh-primary); color: #fff; }
.mrh-library.is-loading .mrh-items { opacity: .5; transition: opacity .2s; }
.mrh-empty, .mrh-loading { padding: 32px; text-align: center; color: var(--mrh-muted); background: var(--mrh-soft); border-radius: var(--mrh-radius); }

/* Cards */
.mrh-items--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.mrh-card { display: flex; flex-direction: column; background: var(--mrh-card); border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); padding: 18px; box-shadow: var(--mrh-shadow); transition: transform .15s, box-shadow .15s; }
.mrh-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(16, 33, 48, .12); }
.mrh-card--featured { border-top: 4px solid var(--mrh-accent); }
.mrh-card--superseded { opacity: .8; }
.mrh-card__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mrh-card__type { color: var(--mrh-accent); }
.mrh-card__file { color: var(--mrh-muted); }
.mrh-card__title { font-size: 18px; line-height: 1.3; margin: 10px 0 6px; }
.mrh-card__title a { text-decoration: none; color: var(--mrh-ink) !important; }
.mrh-card__title a:hover { color: var(--mrh-primary) !important; text-decoration: underline; }
.mrh-card__meta { font-size: 13px; color: var(--mrh-muted); margin: 0 0 8px; }
.mrh-card__excerpt { font-size: 14px; color: #34434f; margin: 0 0 12px; flex: 1; }
.mrh-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mrh-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mrh-card__actions .mrh-btn { padding: 7px 12px; font-size: 13px; }

/* Tables */
.mrh-table-wrap { overflow-x: auto; border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); background: #fff; }
.mrh-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.mrh-table th { text-align: left; background: var(--mrh-soft); color: var(--mrh-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; border-bottom: 1px solid var(--mrh-line); }
.mrh-table td { padding: 11px 12px; border-bottom: 1px solid var(--mrh-line); vertical-align: top; }
.mrh-table tr:last-child td { border-bottom: 0; }
.mrh-table tbody tr:hover { background: #fafcfd; }
.mrh-nowrap { white-space: nowrap; }

/* Lists & explorer */
.mrh-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); background: #fff; }
.mrh-list__item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--mrh-line); }
.mrh-list__item:last-child { border-bottom: 0; }
.mrh-list__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mrh-list__title { font-weight: 700; text-decoration: none; }
.mrh-list__meta, .mrh-list__excerpt { font-size: 13px; color: var(--mrh-muted); }
.mrh-list__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 13px; flex-shrink: 0; }
.mrh-explorer-tree { margin-bottom: 16px; background: #fff; border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); padding: 12px; max-height: 420px; overflow: auto; }
.mrh-explorer-tree ul { list-style: none; margin: 0 0 0 14px; padding: 0; }
.mrh-explorer-tree > ul { margin-left: 0; columns: 2 260px; }
.mrh-explorer-tree li { break-inside: avoid; }
.mrh-explorer-tree button { border: 0; background: none; padding: 4px 6px; cursor: pointer; font-size: 14px; color: var(--mrh-ink); border-radius: 6px; text-align: left; }
.mrh-explorer-tree button span { color: var(--mrh-muted); font-size: 12px; }
.mrh-explorer-tree button.is-active, .mrh-explorer-tree button:hover { background: var(--mrh-soft); color: var(--mrh-primary); font-weight: 700; }
.mrh-pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.mrh-pager .page-numbers { padding: 6px 11px; border: 1px solid var(--mrh-line); border-radius: 6px; text-decoration: none; }
.mrh-pager .page-numbers.current { background: var(--mrh-primary); color: #fff; }

/* Document profile */
.mrh-doc__header { background: var(--mrh-card); border: 1px solid var(--mrh-line); border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: var(--mrh-shadow); border-top: 5px solid var(--mrh-primary); }
.mrh-doc__eyebrow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mrh-accent); }
.mrh-doc__title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; margin: 12px 0 6px; }
.mrh-doc__official { color: var(--mrh-muted); font-style: italic; margin: 0 0 6px; }
.mrh-doc__sub { color: var(--mrh-muted); font-weight: 600; margin: 0 0 14px; }
.mrh-doc__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mrh-doc__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.mrh-action { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--mrh-line); background: var(--mrh-soft); text-decoration: none !important; color: var(--mrh-ink) !important; text-align: left; cursor: pointer; font: inherit; }
.mrh-action strong { color: var(--mrh-primary); font-size: 15px; }
.mrh-action span { font-size: 12px; color: var(--mrh-muted); }
.mrh-action:hover { border-color: var(--mrh-primary); }
.mrh-action--primary { background: var(--mrh-primary); border-color: var(--mrh-primary); }
.mrh-action--primary strong, .mrh-action--primary span { color: #fff; }
.mrh-bookmark[aria-pressed=true] { border-color: var(--mrh-accent); background: #fff8e8; }
.mrh-doc__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.mrh-panel { background: var(--mrh-card); border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); padding: 22px; margin-bottom: 20px; }
.mrh-panel h2 { font-size: 20px; margin: 0 0 12px; }
.mrh-panel h3 { font-size: 16px; margin: 18px 0 6px; color: var(--mrh-primary); }
.mrh-brief__section { padding: 4px 0 8px; border-bottom: 1px dashed var(--mrh-line); }
.mrh-brief__section:last-child { border-bottom: 0; }
.mrh-brief__section--implications { background: #fffaf0; border-left: 4px solid var(--mrh-accent); padding: 6px 14px 10px; border-radius: 6px; margin: 10px 0; }
.mrh-note { font-size: 13px; color: var(--mrh-muted); background: var(--mrh-soft); padding: 8px 12px; border-radius: 8px; }
.mrh-sep { border: 0; border-top: 1px solid var(--mrh-line); margin: 18px 0; }
.mrh-alert { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-weight: 600; }
.mrh-alert--warn { background: #fdf4e3; color: #6b4a00; border: 1px solid #f2dfb5; }
.mrh-teaser { color: var(--mrh-muted); -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.mrh-gate { margin-top: 16px; padding: 18px; border-radius: 10px; background: #fff8e8; border: 1px solid #f0d998; text-align: center; }
.mrh-gate__icon { font-size: 22px; }
.mrh-gate p { margin: 6px 0; }
.mrh-dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.mrh-dl dt { color: var(--mrh-muted); font-weight: 600; }
.mrh-dl dd { margin: 0; }
.mrh-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mrh-reader__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.mrh-reader__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.mrh-reader__page { width: 70px; padding: 6px; border: 1px solid var(--mrh-line); border-radius: 6px; }
.mrh-reader__frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--mrh-line); border-radius: 8px; background: #525659; }
.mrh-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--mrh-line); }
.mrh-timeline__item { position: relative; padding: 0 0 16px 14px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mrh-timeline__item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--mrh-primary); }
.mrh-timeline__item--repeals::before, .mrh-timeline__item--replaces::before { border-color: var(--mrh-bad); }
.mrh-timeline__item--implements::before { border-color: var(--mrh-ok); }
.mrh-timeline__label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--mrh-accent); flex-basis: 100%; }
.mrh-timeline__item a { font-weight: 700; }
.mrh-timeline__meta, .mrh-timeline__prov { font-size: 13px; color: var(--mrh-muted); }
.mrh-timeline__prov { flex-basis: 100%; }
.mrh-history { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.mrh-history li { padding: 6px 0; border-bottom: 1px solid var(--mrh-line); }
.mrh-history time { display: block; font-size: 12px; color: var(--mrh-muted); }
.mrh-files { list-style: none; margin: 0; padding: 0; }
.mrh-files li { padding: 10px 0; border-bottom: 1px solid var(--mrh-line); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.mrh-files li.is-old { opacity: .75; }
.mrh-files__name { font-weight: 700; }
.mrh-files__meta { font-size: 12px; color: var(--mrh-muted); }
.mrh-cite__text { width: 100%; font-size: 13px; padding: 8px; border: 1px solid var(--mrh-line); border-radius: 6px; background: var(--mrh-soft); resize: vertical; }
.mrh-doc__disclaimer { font-size: 12px; color: var(--mrh-muted); border-top: 1px solid var(--mrh-line); padding-top: 14px; margin-top: 10px; }
.mrh-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mrh-article { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--mrh-line); border-radius: 10px; text-decoration: none !important; color: var(--mrh-ink) !important; font-size: 14px; }
.mrh-article img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; }
.mrh-article__type { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mrh-accent); font-weight: 700; }
.mrh-article:hover { border-color: var(--mrh-primary); }

/* Related documents (under articles) */
.mrh-related { margin: 36px 0; padding: 22px; background: var(--mrh-soft); border-radius: 14px; border-left: 5px solid var(--mrh-primary); }
.mrh-related__title { font-size: 20px; margin: 0 0 14px; }
.mrh-ref { font-weight: 600; }
.mrh-docs__title { margin-bottom: 12px; }
.mrh-docs__more { margin-top: 14px; }

/* Subscribe, my library */
.mrh-subscribe { background: #fff; border: 1px solid var(--mrh-line); border-radius: var(--mrh-radius); padding: 20px; }
.mrh-subscribe__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; margin: 10px 0 14px; font-size: 14px; }
.mrh-subscribe input[type=email] { width: 100%; padding: 10px 12px; border: 1px solid var(--mrh-line); border-radius: 8px; }
.mrh-msg { display: block; margin-top: 10px; font-weight: 600; }
.mrh-msg--ok { color: var(--mrh-ok); }
.mrh-msg--err { color: var(--mrh-bad); }
.mrh-hp { position: absolute; left: -9999px; }
.mrh-tabs-front nav { display: flex; gap: 4px; border-bottom: 2px solid var(--mrh-line); margin-bottom: 16px; }
.mrh-tabs-front nav button { border: 0; background: none; padding: 10px 16px; font-weight: 700; color: var(--mrh-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.mrh-tabs-front nav button.is-active { color: var(--mrh-primary); border-color: var(--mrh-accent); }

/* Responsive */
@media (max-width: 980px) {
	.mrh-library__body, .mrh-doc__layout { grid-template-columns: 1fr; }
	.mrh-filters form { position: static; }
	.mrh-filters form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
	.mrh-filters__head { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.mrh-hero { padding: 28px 18px 22px; border-radius: 12px; }
	.mrh-search { flex-direction: column; }
	.mrh-doc__header { padding: 20px 16px; }
	.mrh-panel { padding: 16px; }
	.mrh-dl { grid-template-columns: 1fr; gap: 2px; }
	.mrh-dl dd { margin-bottom: 8px; }
	.mrh-list__item { flex-direction: column; }
	.mrh-list__side { flex-direction: row; align-items: center; flex-wrap: wrap; }
	.mrh-items--grid { grid-template-columns: 1fr; }
	.mrh-reader__frame { height: 70vh; min-height: 400px; }
}
@media print {
	.mrh-hero, .mrh-filters, .mrh-doc__actions, .mrh-reader__tools, .mrh-langswitch, .mrh-bookmark { display: none !important; }
	.mrh-doc__layout { grid-template-columns: 1fr; }
}
