/* URI IT Service Health - matches the uri-modern theme (Hind / Lato, URI navy #002147, link blue #005eff). */
.uri-itsh { font-family: "Hind", Arial, sans-serif; color: #222; margin: .6rem 0 1.2rem; }
.uri-itsh-title { font-family: "Lato", "Hind", Arial, sans-serif; color: #002147; margin: 0 0 .6rem; }
.uri-itsh-dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 50%; margin-right: .5rem; vertical-align: -.05rem; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.8); }
.uri-itsh-green { background: #2e9d4f; }
.uri-itsh-yellow { background: #f2a900; }
.uri-itsh-red { background: #d1293d; }
.uri-itsh-blue { background: #2277b3; }
.uri-itsh-unconf { font-style: italic; font-weight: 400; color: #5e6975; margin-left: .25em; }
.uri-itsh-asof { display: block; font-size: .85rem; color: #5e6975; margin-top: .4rem; }
.uri-itsh-note { font-size: .8rem; color: #5e6975; margin: .25rem 0 0; }
.uri-itsh-muted { color: #5e6975; }
.uri-itsh-small { font-size: .85rem; }
.uri-itsh-error { color: #5e6975; font-style: italic; }

/* table (compact rows; "as of" sits in the header row) */
.uri-itsh .uri-itsh-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.3; margin: 0; }
.uri-itsh .uri-itsh-table th { text-align: left; font-family: "Lato", "Hind", Arial, sans-serif; font-weight: 700; background: #002147; color: #fff; padding: .3rem .6rem; line-height: 1.3; }
.uri-itsh .uri-itsh-table td { text-align: left; border-bottom: 1px solid #e5e5e5; padding: .3rem .6rem; vertical-align: baseline; line-height: 1.3; }
.uri-itsh .uri-itsh-table td.uri-itsh-st { white-space: nowrap; font-weight: 600; }
/* Service + Status never wrap: shrink-to-fit, Details takes the remaining width */
.uri-itsh .uri-itsh-table th:nth-child(-n+2), .uri-itsh .uri-itsh-table td:nth-child(-n+2),
.uri-itsh .uri-itsh-table td:nth-child(-n+2) * { white-space: nowrap; }
.uri-itsh .uri-itsh-table th:nth-child(-n+2), .uri-itsh .uri-itsh-table td:nth-child(-n+2) { width: 1%; }
.uri-itsh .uri-itsh-table td:nth-child(-n+2) a { display: inline-flex; align-items: center; gap: 0; }
.uri-itsh .uri-itsh-table td:nth-child(-n+2) a .uri-itsh-unconf { margin-left: .3em; }
.uri-itsh-asof-h { float: right; font-family: "Hind", Arial, sans-serif; font-weight: 400; font-size: .8rem; opacity: .85; margin-left: 1rem; }
.uri-itsh-name { font-weight: 600; color: #002147; }
.uri-itsh-desc-i { font-size: .8rem; color: #5e6975; }
.uri-itsh-desc { display: block; font-size: .8rem; color: #5e6975; }
.uri-itsh-table tr.uri-itsh-row-outage td { background: #fdecee; }
.uri-itsh-table tr.uri-itsh-row-unconfirmed td, .uri-itsh-table tr.uri-itsh-row-investigating td { background: #fff7e0; }

/* compact + row */
.uri-itsh .uri-itsh-compact, .uri-itsh .uri-itsh-row { list-style: none; margin: 0; padding: 0; }
.uri-itsh .uri-itsh-row li { margin: 0; }
.uri-itsh .uri-itsh-compact li { display: flex; align-items: center; gap: .1rem; padding: .1rem 0; margin: 0; }
.uri-itsh-compact li .uri-itsh-small { margin-left: .4rem; color: #5e6975; }
.uri-itsh-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.uri-itsh-row li { display: inline-flex; align-items: center; }

/* banner */
.uri-itsh-banner { border-radius: 4px; padding: .8rem 1rem; border-left: 6px solid; }
.uri-itsh-banner ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.uri-itsh-banner li { padding: .15rem 0; }
.uri-itsh-b-red { background: #fdecee; border-color: #d1293d; }
.uri-itsh-b-yellow { background: #fff7e0; border-color: #f2a900; }
.uri-itsh-b-blue { background: #e8f2fb; border-color: #2277b3; }

@media (max-width: 600px) {
	.uri-itsh-table thead th:not(:last-child) { display: none; }
	.uri-itsh-table thead th:last-child { display: block; font-size: 0; padding: .25rem .6rem; }
	.uri-itsh-table thead .uri-itsh-asof-h { float: none; font-size: .8rem; }
	.uri-itsh-table td { display: block; border: 0; padding: .2rem .4rem; }
	.uri-itsh-table tr { display: block; border-bottom: 1px solid #e5e5e5; padding: .4rem 0; }
}

/* LIVE badge (table header) */
.uri-itsh-live { display: inline-flex; align-items: center; gap: .25rem; background: #d1293d; color: #fff; font-family: "Lato", Arial, sans-serif;
	font-size: .75rem; font-weight: 700; letter-spacing: .06em; line-height: 1; padding: .2rem .45rem; border-radius: 999px; vertical-align: .08rem; margin-right: .3rem; opacity: 1; }
/* WCAG 2.2.2: the pulse stops by itself after 3 cycles (< 5 s) */
.uri-itsh-live i { width: .4rem; height: .4rem; border-radius: 50%; background: #fff; animation: uri-itsh-breathe 1.6s ease-in-out 3; }
.uri-itsh-live.uri-itsh-ping { animation: uri-itsh-pop .5s ease-out; }
.uri-itsh-live.uri-itsh-stale { background: #5e6975; }
.uri-itsh-live.uri-itsh-stale i { animation: none; opacity: .6; }
@keyframes uri-itsh-breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }
@keyframes uri-itsh-pop { 0% { transform: scale(1.2); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .uri-itsh-live i, .uri-itsh-live.uri-itsh-ping { animation: none; } }

/* dot: small pill badge that sits inside running text */
span.uri-itsh.uri-itsh-s-dot { display: inline; margin: 0; font: inherit; color: inherit; }
.uri-itsh-s-dot .uri-itsh-d { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; vertical-align: .08em;
	font-family: "Hind", Arial, sans-serif; font-size: .82em; font-weight: 600; line-height: 1; color: #002147;
	background: #eef2f6; border: 1px solid #d5dde6; border-radius: 999px; padding: .28em .62em .24em .5em; margin: 0 .1em; }
.uri-itsh-s-dot .uri-itsh-dot { width: .62em; height: .62em; margin: 0; vertical-align: 0; box-shadow: none; }
.uri-itsh-s-dot .uri-itsh-d-st { font-weight: 500; margin-left: .15em; padding-left: .45em; border-left: 1px solid currentColor; opacity: .85; }
.uri-itsh-s-dot .uri-itsh-d-yellow { background: #fff4d6; border-color: #f2d07a; color: #6b4b00; }
.uri-itsh-s-dot .uri-itsh-d-red { background: #fde4e7; border-color: #f0a7b0; color: #8a1424; }
.uri-itsh-s-dot .uri-itsh-d-blue { background: #e4f0fa; border-color: #a9cbe8; color: #144f7a; }
.uri-itsh-s-dot a.uri-itsh-d:hover, .uri-itsh-s-dot a.uri-itsh-d:focus-visible { text-decoration: none; border-color: currentColor; }

/* links: inherit look, underline on hover only */
.uri-itsh a { color: inherit; text-decoration: none; border-bottom: 0; box-shadow: none; }
.uri-itsh a:hover, .uri-itsh a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
.uri-itsh a.uri-itsh-name { color: #002147; font-weight: 600; }
.uri-itsh-table th a { color: inherit; }
.uri-itsh-banner a { color: inherit; }
.uri-itsh a .uri-itsh-dot { text-decoration: none; }

/* row: full-width status strip */
.uri-itsh-s-row { margin: .4rem 0 1.4rem; }
.uri-itsh-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1.2rem; background: #f0f2f5;
	border-top: 1px solid #c8ccd2; border-bottom: 1px solid #c8ccd2; padding: .45rem .9rem; font-size: .95rem; line-height: 1.3; }
.uri-itsh-strip-l { font-family: "Lato", "Hind", Arial, sans-serif; font-weight: 700; color: #002147; }
.uri-itsh-strip .uri-itsh-row { flex: 1 1 auto; gap: .3rem 1.4rem; }
.uri-itsh-strip .uri-itsh-row a, .uri-itsh-strip .uri-itsh-row > li > span { font-weight: 600; color: #002147; }
.uri-itsh-strip .uri-itsh-row .uri-itsh-unconf { font-weight: 400; color: #5e6975; }
.uri-itsh-strip .uri-itsh-row .uri-itsh-small { font-weight: 400; color: #5e6975; }
.uri-itsh-strip-r { margin-left: auto; font-size: .8rem; color: #5e6975; white-space: nowrap; display: inline-flex; align-items: center; }

/* popup (replaces browser tooltips): one shared box, positioned by js/ */
.uri-itsh-pop { display: none; position: fixed; z-index: 100000; max-width: 22rem; background: #fff; color: #222;
	border: 1px solid #c8ccd2; border-top: 3px solid #002147; border-radius: 4px; box-shadow: 0 6px 20px rgba(0, 33, 71, .18);
	padding: .55rem .75rem .6rem; font-family: "Hind", Arial, sans-serif; font-size: .88rem; line-height: 1.35; pointer-events: none; text-align: left; }
.uri-itsh-pop-t { display: block; font-family: "Lato", "Hind", Arial, sans-serif; font-weight: 700; color: #002147; margin-bottom: .2rem; }
.uri-itsh-pop-l { display: block; margin-top: .15rem; }
.uri-itsh-pop-hint { color: #5e6975; font-size: .8rem; margin-top: .35rem; }
.uri-itsh [data-itsh-pop] { cursor: pointer; }
.uri-itsh span[data-itsh-pop] { cursor: help; }
.uri-itsh [data-itsh-pop]:focus-visible { outline: 2px solid #005eff; outline-offset: 2px; border-radius: 3px; }
