/* Research Commons Suite – front end.
 * Inherits the theme's fonts and text colour. Override the custom properties
 * in your theme (e.g. .sgrc-guide { --sgrc-accent: #7a1f2b; }) to rebrand.
 */

.sgrc-guide,
.sgrc-az,
.sgrc-directory,
.sgrc-db-single,
.sgrc-box {
	--sgrc-accent: #1d4f91;
	--sgrc-accent-ink: #fff;
	--sgrc-line: color-mix(in srgb, currentColor 14%, transparent);
	--sgrc-soft: color-mix(in srgb, currentColor 5%, transparent);
	--sgrc-muted: color-mix(in srgb, currentColor 62%, transparent);
	--sgrc-radius: 10px;
	--sgrc-gap: 1.25rem;
	box-sizing: border-box;
}

.sgrc-guide *,
.sgrc-az *,
.sgrc-directory * {
	box-sizing: inherit;
}

/* Shared bits --------------------------------------------------------- */

.sgrc-badge {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.01em;
	background: color-mix(in srgb, var(--sgrc-accent) 12%, transparent);
	color: var(--sgrc-accent);
	white-space: nowrap;
}

.sgrc-badge--muted { background: var(--sgrc-soft); color: inherit; }
.sgrc-badge--best { background: #fdf0c4; color: #6b4e00; }
.sgrc-badge--new { background: #dff5e6; color: #13612f; }
.sgrc-badge--oa { background: #fde8d7; color: #8a3b00; }
.sgrc-badge--trial { background: #ece4fb; color: #4b2a8f; }
.sgrc-badge--campus { background: var(--sgrc-soft); color: inherit; }

.sgrc-badges { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }

.sgrc-note {
	display: block;
	font-size: 0.875em;
	color: var(--sgrc-muted);
}

.sgrc-button {
	display: inline-block;
	padding: 0.55em 1.1em;
	border: 1px solid var(--sgrc-accent);
	border-radius: 6px;
	color: var(--sgrc-accent);
	background: transparent;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.3;
}

.sgrc-button:hover,
.sgrc-button:focus { background: color-mix(in srgb, var(--sgrc-accent) 8%, transparent); }

.sgrc-button--primary {
	background: var(--sgrc-accent);
	color: var(--sgrc-accent-ink);
}

.sgrc-button--primary:hover,
.sgrc-button--primary:focus {
	background: color-mix(in srgb, var(--sgrc-accent) 85%, #000);
	color: var(--sgrc-accent-ink);
}

.sgrc-empty { color: var(--sgrc-muted); font-style: italic; }

/* Boxes --------------------------------------------------------------- */

.sgrc-box {
	position: relative;
	padding: 1.1rem 1.25rem 1.2rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
	background: var(--sgrc-soft);
	break-inside: avoid;
}

.sgrc-box + .sgrc-box { margin-top: var(--sgrc-gap); }

.sgrc-box__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--sgrc-accent);
	font-size: 1.05rem;
	line-height: 1.3;
}

.sgrc-box__intro > :first-child { margin-top: 0; }
.sgrc-box__intro > :last-child { margin-bottom: 0.75rem; }

.sgrc-box__edit {
	position: absolute;
	top: 0.8rem;
	right: 1rem;
	font-size: 0.75rem;
	opacity: 0.6;
}

.sgrc-box__edit:hover { opacity: 1; }

.sgrc-links,
.sgrc-feed,
.sgrc-books,
.sgrc-db-list,
.sgrc-chips,
.sgrc-contact__details,
.sgrc-guide-cards {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgrc-links li,
.sgrc-feed li { padding: 0.4rem 0; }
.sgrc-links li + li,
.sgrc-feed li + li { border-top: 1px solid var(--sgrc-line); }

.sgrc-books { display: grid; gap: 0.9rem; }

.sgrc-book {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.sgrc-book__cover {
	flex: none;
	width: 60px;
	height: 90px;
	object-fit: cover;
	border-radius: 3px;
	background: var(--sgrc-line);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.sgrc-book__cover.is-missing { display: none; }
.sgrc-book__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.sgrc-book__title { font-weight: 600; }
.sgrc-book__author { font-size: 0.9em; }

.sgrc-video { margin: 0; }

.sgrc-video__frame { position: relative; aspect-ratio: 16 / 9; }

.sgrc-video__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.sgrc-video figcaption { margin-top: 0.5rem; font-size: 0.875em; color: var(--sgrc-muted); }

.sgrc-contact { display: flex; gap: 0.9rem; align-items: flex-start; }
.sgrc-contact__avatar { flex: none; border-radius: 50%; }
.sgrc-contact__body { min-width: 0; }
.sgrc-contact__name { display: block; font-size: 1.05em; }
.sgrc-contact__role { display: block; color: var(--sgrc-muted); font-size: 0.9em; margin-bottom: 0.4rem; }
.sgrc-contact__details { font-size: 0.9em; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.sgrc-contact__details li { padding: 0.1rem 0; }

.sgrc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.sgrc-chips a,
.sgrc-chips li > span {
	display: inline-block;
	padding: 0.2em 0.7em;
	border: 1px solid var(--sgrc-line);
	border-radius: 999px;
	font-size: 0.85em;
	text-decoration: none;
}

/* Guide layout -------------------------------------------------------- */

.sgrc-guide__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1rem;
}

.sgrc-guide__updated { font-size: 0.85em; color: var(--sgrc-muted); }

.sgrc-guide__intro { margin-bottom: 1.5rem; }

.sgrc-guide__layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
	.sgrc-guide__layout:has(.sgrc-guide__side) { grid-template-columns: minmax(0, 1fr) 280px; }
}

.sgrc-guide__side .sgrc-box { background: transparent; }

.sgrc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--sgrc-line);
}

.sgrc-tab {
	appearance: none;
	margin: 0 0 -1px;
	padding: 0.65rem 1rem;
	border: 1px solid transparent;
	border-bottom: 3px solid transparent;
	border-radius: 6px 6px 0 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	opacity: 0.72;
}

.sgrc-tab:hover { opacity: 1; background: var(--sgrc-soft); }

.sgrc-tab[aria-selected="true"] {
	opacity: 1;
	border-bottom-color: var(--sgrc-accent);
	color: var(--sgrc-accent);
}

.sgrc-tab:focus-visible { outline: 2px solid var(--sgrc-accent); outline-offset: 2px; }

/* Without JS every panel shows, each with its heading. */
.sgrc-panel + .sgrc-panel { margin-top: 2rem; }
.sgrc-panel__title { margin: 0 0 1rem; font-size: 1.3rem; }

.sgrc-has-tabs .sgrc-panel__title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.sgrc-has-tabs .sgrc-panel { margin-top: 0; }
.sgrc-has-tabs .sgrc-panel:not(.is-active) { display: none; }

.sgrc-cols-2,
.sgrc-cols-3 {
	columns: 1;
	column-gap: var(--sgrc-gap);
}

@media (min-width: 720px) {
	.sgrc-cols-2,
	.sgrc-cols-3 { columns: 2; }
}

@media (min-width: 1100px) {
	.sgrc-cols-3 { columns: 3; }
}

.sgrc-cols-2 > .sgrc-box,
.sgrc-cols-3 > .sgrc-box {
	display: inline-block;
	width: 100%;
	margin: 0 0 var(--sgrc-gap);
}

.sgrc-cols-2 > .sgrc-box + .sgrc-box,
.sgrc-cols-3 > .sgrc-box + .sgrc-box { margin-top: 0; }

/* Filters (shared by A–Z and directory) -------------------------------- */

.sgrc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin-bottom: 1rem;
}

.sgrc-filter input,
.sgrc-filter select {
	min-height: 2.6rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--sgrc-line);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	max-width: 100%;
}

.sgrc-filter--search { flex: 1 1 260px; }
.sgrc-filter--search input { width: 100%; }

.sgrc-filter input:focus,
.sgrc-filter select:focus { outline: 2px solid var(--sgrc-accent); outline-offset: 1px; }

.sgrc-filter select option { color: #111; }

.sgrc-count { font-size: 0.85em; color: var(--sgrc-muted); }

/* A–Z ------------------------------------------------------------------ */

.sgrc-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
}

.sgrc-letter {
	appearance: none;
	min-width: 2.1rem;
	padding: 0.35rem 0.45rem;
	border: 1px solid var(--sgrc-line);
	border-radius: 5px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.sgrc-letter:hover:not(:disabled) { border-color: var(--sgrc-accent); color: var(--sgrc-accent); }

.sgrc-letter.is-active {
	background: var(--sgrc-accent);
	border-color: var(--sgrc-accent);
	color: var(--sgrc-accent-ink);
}

.sgrc-letter:disabled { opacity: 0.3; cursor: default; }

.sgrc-az__group { margin-bottom: 1.5rem; }

.sgrc-az__letter {
	margin: 0 0 0.5rem;
	font-size: 1.4rem;
	color: var(--sgrc-accent);
	border-bottom: 1px solid var(--sgrc-line);
	padding-bottom: 0.25rem;
}

.sgrc-db { padding: 0.85rem 0; }
.sgrc-db + .sgrc-db { border-top: 1px solid var(--sgrc-line); }

.sgrc-db__head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: baseline;
}

.sgrc-db__title { font-weight: 700; font-size: 1.05em; }
.sgrc-db__desc { margin: 0.3rem 0 0.2rem; }
.sgrc-db__meta { margin: 0; font-size: 0.85em; color: var(--sgrc-muted); }
.sgrc-db__meta a { color: inherit; }

.sgrc-db-list--compact .sgrc-db { padding: 0.55rem 0; }
.sgrc-db-list--compact .sgrc-db__title { font-size: 1em; }

/* Single database ------------------------------------------------------ */

.sgrc-db-single__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }

.sgrc-db-single__facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1.25rem;
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
}

.sgrc-db-single__facts dt { font-weight: 600; }
.sgrc-db-single__facts dd { margin: 0; }

@media (max-width: 540px) {
	.sgrc-db-single__facts { grid-template-columns: 1fr; }
	.sgrc-db-single__facts dd { margin-bottom: 0.5rem; }
}

/* Guide directory ------------------------------------------------------ */

.sgrc-guide-cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.sgrc-guide-card {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--sgrc-line);
	border-top: 3px solid var(--sgrc-accent);
	border-radius: var(--sgrc-radius);
	background: var(--sgrc-soft);
}

.sgrc-guide-card[hidden] { display: none; }
.sgrc-guide-card__title { font-weight: 700; font-size: 1.1em; text-decoration: none; }
.sgrc-guide-card__title:hover { text-decoration: underline; }
.sgrc-guide-card__excerpt { font-size: 0.92em; }
.sgrc-guide-card__foot { margin-top: auto; font-size: 0.8em; color: var(--sgrc-muted); }

.sgrc-az [hidden],
.sgrc-directory [hidden] { display: none !important; }

/* Narrow boxes: stack the contact card and keep buttons inside. */
.sgrc-box { container-type: inline-size; }
.sgrc-button { max-width: 100%; box-sizing: border-box; white-space: normal; text-align: center; }

@container (max-width: 300px) {
	.sgrc-contact { flex-direction: column; gap: 0.6rem; }
	.sgrc-contact .sgrc-button { display: block; }
}

/* Faculty profiles and publications ----------------------------------- */

.sgrc-profile,
.sgrc-faculty-dir,
.sgrc-bibliography,
.sgrc-pubs,
.sgrc-thesis {
	--sgrc-accent: #1d4f91;
	--sgrc-accent-ink: #fff;
	--sgrc-line: color-mix(in srgb, currentColor 14%, transparent);
	--sgrc-soft: color-mix(in srgb, currentColor 5%, transparent);
	--sgrc-muted: color-mix(in srgb, currentColor 62%, transparent);
	--sgrc-radius: 10px;
	box-sizing: border-box;
}

.sgrc-pubs [hidden],
.sgrc-faculty-dir [hidden] { display: none !important; }

.sgrc-profile__head {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.sgrc-profile__photo {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: var(--sgrc-radius);
	flex: none;
}

.sgrc-profile__info { flex: 1 1 280px; min-width: 0; }
.sgrc-profile__role { margin: 0; font-size: 1.15em; font-weight: 600; }
.sgrc-profile__dept { margin: 0.2rem 0 0.75rem; color: var(--sgrc-muted); }

.sgrc-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0 0 0.9rem;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}

.sgrc-orcid { display: inline-flex; align-items: center; gap: 0.35rem; }
.sgrc-orcid-icon { flex: none; }
.sgrc-profile__bio { margin-bottom: 2rem; }
.sgrc-profile__pubs-title { margin-top: 2rem; }

.sgrc-pub-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
}

.sgrc-pub-stats > div {
	padding: 0.6rem 1rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
	min-width: 120px;
}

.sgrc-pub-stats dt { font-size: 0.8em; color: var(--sgrc-muted); }
.sgrc-pub-stats dd { margin: 0; font-size: 1.5em; font-weight: 700; line-height: 1.2; }

.sgrc-export { font-size: 0.9em; margin: 0 0 1rem; }

.sgrc-pubs__group { margin-bottom: 1.5rem; }

.sgrc-pubs__heading {
	margin: 0 0 0.5rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid var(--sgrc-line);
	font-size: 1.25rem;
	color: var(--sgrc-accent);
}

.sgrc-pub-list { margin: 0; padding: 0; list-style: none; }

.sgrc-pub {
	padding: 0.75rem 0 0.75rem 1.5em;
	text-indent: -1.5em;
}

.sgrc-pub + .sgrc-pub { border-top: 1px solid var(--sgrc-line); }
.sgrc-pub__cite { overflow-wrap: anywhere; }
.sgrc-pub__doi { word-break: break-all; }
.sgrc-pub__meta { display: block; text-indent: 0; margin-top: 0.35rem; }
.sgrc-pub__meta .sgrc-badge { margin-right: 0.3rem; }

.sgrc-faculty-cards {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.sgrc-faculty-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
	background: var(--sgrc-soft);
}

.sgrc-faculty-card[hidden] { display: none; }

.sgrc-faculty-card__photo {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.sgrc-faculty-card__initials {
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--sgrc-accent) 15%, transparent);
	color: var(--sgrc-accent);
	font-weight: 700;
	font-size: 1.3rem;
}

.sgrc-faculty-card__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.sgrc-faculty-card__name { font-weight: 700; font-size: 1.05em; }
.sgrc-faculty-card__role { font-size: 0.92em; }

/* Thesis portal -------------------------------------------------------- */

.sgrc-notice {
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--sgrc-accent);
	border-radius: 4px;
	background: var(--sgrc-soft);
}

.sgrc-notice p { margin: 0; }
.sgrc-notice ul { margin: 0.5rem 0 0 1.2rem; }
.sgrc-notice--success { border-left-color: #2e7d32; }
.sgrc-notice--error { border-left-color: #c62828; }
.sgrc-notice--warning { border-left-color: #b26a00; }

.sgrc-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }

.sgrc-table th,
.sgrc-table td {
	padding: 0.6rem 0.5rem;
	border-bottom: 1px solid var(--sgrc-line);
	text-align: left;
	vertical-align: top;
}

.sgrc-table th { font-size: 0.85em; color: var(--sgrc-muted); font-weight: 600; }

@media (max-width: 640px) {
	.sgrc-table thead { display: none; }
	.sgrc-table tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--sgrc-line); }
	.sgrc-table td { display: block; border: 0; padding: 0.15rem 0; }
}

.sgrc-status {
	display: inline-block;
	padding: 0.1em 0.6em;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 600;
	white-space: nowrap;
	background: var(--sgrc-soft);
}

.sgrc-status--submitted { background: #e3edfb; color: #1d4f91; }
.sgrc-status--changes { background: #fdf0c4; color: #6b4e00; }
.sgrc-status--approved { background: #ece4fb; color: #4b2a8f; }
.sgrc-status--deposited { background: #dff5e6; color: #13612f; }
.sgrc-status--rejected { background: #fce8e8; color: #a11c1c; }

.sgrc-thesis-form fieldset {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem 0.5rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
}

.sgrc-thesis-form legend { padding: 0 0.4rem; font-weight: 700; }

.sgrc-thesis .sgrc-field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0 0 1rem; }
.sgrc-thesis .sgrc-field > label { font-weight: 600; }

.sgrc-thesis .sgrc-field input[type="text"],
.sgrc-thesis .sgrc-field input[type="date"],
.sgrc-thesis .sgrc-field select,
.sgrc-thesis .sgrc-field textarea {
	width: 100%;
	max-width: 100%;
	min-height: 2.6rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--sgrc-line);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.sgrc-thesis .sgrc-field select option { color: #111; }
.sgrc-thesis .sgrc-field input[type="date"] { max-width: 16rem; }

.sgrc-thesis .sgrc-field input:focus,
.sgrc-thesis .sgrc-field select:focus,
.sgrc-thesis .sgrc-field textarea:focus { outline: 2px solid var(--sgrc-accent); outline-offset: 1px; }

.sgrc-thesis .sgrc-field.has-error input,
.sgrc-thesis .sgrc-field.has-error select,
.sgrc-thesis .sgrc-field.has-error textarea { border-color: #c62828; }

.sgrc-thesis .sgrc-field.has-error > label { color: #c62828; }
.sgrc-declaration label { font-weight: 400 !important; display: flex; gap: 0.6rem; align-items: flex-start; }
.sgrc-declaration input { margin-top: 0.3rem; flex: none; }
.sgrc-req { color: #c62828; }
.sgrc-help { font-size: 0.85em; color: var(--sgrc-muted); }
.sgrc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.sgrc-thesis button.sgrc-button { cursor: pointer; font: inherit; font-weight: 600; }

.sgrc-facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.35rem 1.25rem;
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--sgrc-line);
	border-radius: var(--sgrc-radius);
}

.sgrc-facts dt { font-weight: 600; }
.sgrc-facts dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 540px) {
	.sgrc-facts { grid-template-columns: 1fr; }
}

.sgrc-files { padding-left: 1.2rem; }
.sgrc-log { padding-left: 1.2rem; }
.sgrc-log li { margin-bottom: 0.6rem; }
.sgrc-log__note { margin-top: 0.25rem; padding: 0.5rem 0.75rem; border-left: 3px solid var(--sgrc-line); font-size: 0.92em; }
.sgrc-log__note p { margin: 0 0 0.4rem; }

/* Ethics desk ---------------------------------------------------------- */

.sgrc-ethics__actions {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	margin: 0 0 2rem;
}

.sgrc-ethics__card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--sgrc-line);
	border-top: 3px solid var(--sgrc-accent);
	border-radius: var(--sgrc-radius);
	background: var(--sgrc-soft);
	color: inherit;
	text-decoration: none;
}

.sgrc-ethics__card strong { color: var(--sgrc-accent); font-size: 1.1em; }
.sgrc-ethics__card span { font-size: 0.92em; }
.sgrc-ethics__card:hover strong { text-decoration: underline; }

.sgrc-table td .sgrc-note { display: block; }

.sgrc-result { margin: 1.5rem 0; }

.sgrc-score {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 1rem;
	padding: 1rem 1.25rem;
	border-radius: var(--sgrc-radius);
	border-left: 6px solid #2e7d32;
	background: color-mix(in srgb, #2e7d32 9%, transparent);
}

.sgrc-score.is-fail { border-left-color: #c62828; background: color-mix(in srgb, #c62828 8%, transparent); }
.sgrc-score__num { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.sgrc-score__label { font-weight: 600; }
.sgrc-score__verdict { flex-basis: 100%; font-size: 0.92em; }

.sgrc-verdict {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	font-weight: 700;
}

.sgrc-verdict--recommended { background: #dff5e6; color: #13612f; }
.sgrc-verdict--caution { background: #fdf0c4; color: #6b4e00; }
.sgrc-verdict--not_recommended { background: #fce8e8; color: #a11c1c; }

.sgrc-checklist-table th { padding-top: 1rem; color: var(--sgrc-accent); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.04em; }
.sgrc-checklist-table td:last-child { width: 9rem; }

.sgrc-check { display: inline-block; padding: 0.05em 0.6em; border-radius: 999px; font-size: 0.85em; font-weight: 600; background: var(--sgrc-soft); }
.sgrc-check--yes { background: #dff5e6; color: #13612f; }
.sgrc-check--no { background: #fce8e8; color: #a11c1c; }
.sgrc-check--unclear { background: #fdf0c4; color: #6b4e00; }

@media (max-width: 640px) {
	.sgrc-checklist-table tr { display: flex; justify-content: space-between; gap: 0.75rem; }
	.sgrc-checklist-table td:last-child { width: auto; }
}

.sgrc-verify__form { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; max-width: 34rem; }
.sgrc-verify__form label { font-weight: 600; }
.sgrc-verify__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.sgrc-verify__row input {
	flex: 1 1 14rem;
	min-height: 2.6rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--sgrc-line);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sgrc-verify .sgrc-button { cursor: pointer; font: inherit; font-weight: 600; }
