/*
 * Lexinter Badges: the badge page /get-badge/<slug> (0.1.6: the color swatches
 * are gold for Full color and half white, half black for Black and white).
 * The approved look of badge-system/profile-mockup/badge-page/badge-page-mock.html,
 * without the mock's header and footer (the site prints its own), in the two
 * steps of Super Lawyers' badge page. Every rule is under .lxb-page; link and
 * button colors use !important because the theme forces link colors. The site
 * font is inherited.
 *
 * The badge is drawn by the shared renderer (assets/js/badge-embed.js), which
 * loads the badge font itself: there is no font face here. Its canvas sets its
 * own width; the boxes only center it.
 */

.lxb-page {
	--lxb-ink: #0f1b31;
	--lxb-text: #4a5568;
	--lxb-muted: #6b7280;
	--lxb-link: #006fc0;
	--lxb-line: #e6e9ef;
	--lxb-soft: #f4f7fb;
	--lxb-bad: #b42318;
	background: #fff;
	color: var(--lxb-text);
	font-size: 16px;
	line-height: 1.6;
	width: 100%;
	max-width: 100%;
	overflow-wrap: break-word;
}
.lxb-page,
.lxb-page *,
.lxb-page *::before,
.lxb-page *::after { box-sizing: border-box; }
.lxb-page [hidden] { display: none !important; }
.lxb-page a { color: var(--lxb-link) !important; -webkit-text-fill-color: var(--lxb-link); text-decoration: none; }
.lxb-page a:hover { text-decoration: underline; }

/* Band */
.lxb-page .lxb-band { background: linear-gradient(110deg, #0f1d38 0%, #182b4c 55%, #1b3053 100%); color: #fff; padding: 26px 0 30px; }
.lxb-page .lxb-wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.lxb-page .lxb-crumbs { font-size: 14.5px; line-height: 1.5; color: #d5deeb; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lxb-page .lxb-crumbs a { color: #d5deeb !important; -webkit-text-fill-color: #d5deeb; text-decoration: none !important; }
.lxb-page .lxb-crumbs a:hover { color: #fff !important; -webkit-text-fill-color: #fff; text-decoration: underline !important; }
.lxb-page .lxb-crumbs i { font-style: normal; color: #8ea3c2; }
.lxb-page .lxb-crumbs b { font-weight: 400; color: #93a4bd; }
.lxb-page .lxb-band .lxb-h1 { font-family: inherit; font-size: 32px; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-transform: none; color: #fff !important; -webkit-text-fill-color: #fff; margin: 14px 0 6px; padding: 0; }
.lxb-page .lxb-band p { margin: 0; color: #d5deeb; font-size: 16.5px; }

/* Columns and cards */
.lxb-page .lxb-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 34px 15px 50px; max-width: 1170px; margin: 0 auto; }
.lxb-page .lxb-col,
.lxb-page .lxb-side { min-width: 0; }
.lxb-page .lxb-card { background: #fff; border-radius: 6px; box-shadow: rgba(71, 85, 95, .08) 0 0 10px 1px; padding: 22px 24px; }
.lxb-page .lxb-card + .lxb-card { margin-top: 24px; }
.lxb-page .lxb-card h2 { font-family: inherit; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--lxb-ink); margin: 0 0 4px; padding: 0; }
.lxb-page .lxb-card h2:focus { outline: none; }
.lxb-page .lxb-card h2:focus-visible { outline: 2px solid rgba(0, 111, 192, .35); outline-offset: 3px; }
.lxb-page .lxb-card h3 { font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; color: var(--lxb-ink); margin: 0 0 6px; padding: 0; }
.lxb-page .lxb-card p { margin: 0; }
.lxb-page .lxb-card .lxb-stepsline { font-size: 14.5px; color: var(--lxb-muted); }
.lxb-page .lxb-sec { border-top: 1px solid var(--lxb-line); padding-top: 20px; margin-top: 18px; }
.lxb-page .lxb-sec h3 { margin-top: 24px; }
.lxb-page .lxb-sec > p { margin-top: 12px; }

/* Step 1: the preview on the left, the color and Next on the right */
.lxb-page #lxb-step-1 { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 26px; align-items: start; }
.lxb-page #lxb-step-1 > h2 { grid-column: 1 / -1; }
.lxb-page #lxb-step-1 > .lxb-preview { grid-column: 1; grid-row: 2 / span 4; margin-top: 14px; }
.lxb-page #lxb-step-1 > .lxb-opt,
.lxb-page #lxb-step-1 > .lxb-note,
.lxb-page #lxb-step-1 > .lxb-btnrow,
.lxb-page #lxb-step-1 > .lxb-status { grid-column: 2; }
.lxb-page #lxb-step-1 > .lxb-opt { margin-top: 14px; }

/* The badge boxes */
.lxb-page .lxb-preview { display: flex; justify-content: center; align-items: center; border: 1px solid var(--lxb-line); border-radius: 6px; background: #fff; padding: 18px; }
.lxb-page #lxb-step-2 .lxb-preview { margin-top: 14px; justify-content: flex-start; }
.lxb-page .lxb-badge { position: relative; max-width: 100%; margin: 0; }
.lxb-page #lxb-preview { width: 240px; }
.lxb-page .lxb-badge img,
.lxb-page .lxb-badge canvas { display: block; max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; margin: 0; padding: 0; }
.lxb-page #lxb-preview img { width: 100%; }

/* Color swatches, like Super Lawyers' */
.lxb-page .lxb-opt { border: 0; margin: 0; padding: 0; min-width: 0; }
.lxb-page .lxb-opt legend { display: block; float: none; width: auto; border: 0; padding: 0; margin: 0 0 8px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--lxb-ink); }
.lxb-page .lxb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lxb-page .lxb-chip { position: relative; display: inline-block; margin: 0; padding: 0; cursor: pointer; font-weight: 400; }
.lxb-page .lxb-chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.lxb-page .lxb-chip span { display: inline-flex; align-items: center; gap: 9px; border: 1px solid #cfd6e1; border-radius: 6px; padding: 8px 14px 8px 10px; font-size: 14.5px; line-height: 1.3; color: var(--lxb-ink); background: #fff; }
.lxb-page .lxb-chip span::before { content: ""; display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(15, 27, 49, .25); background: #ccc; }
.lxb-page .lxb-chip input[value="gold"] + span::before { background: linear-gradient(135deg, #f6d36b 0%, #d4a017 52%, #a87b0b 100%); }
.lxb-page .lxb-chip input[value="bw"] + span::before { background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #111111 50%, #111111 100%); }
.lxb-page .lxb-chip:hover span { border-color: var(--lxb-link); }
.lxb-page .lxb-chip input:checked + span { border-color: var(--lxb-link); box-shadow: 0 0 0 1px var(--lxb-link); background: #f0f7fd; font-weight: 600; }
.lxb-page .lxb-chip input:focus-visible + span { outline: 2px solid var(--lxb-link); outline-offset: 2px; }
.lxb-page .lxb-chip input:disabled + span { opacity: .6; cursor: default; }

/* Option 1: the send form */
.lxb-page .lxb-form { margin: 0; }
.lxb-page .lxb-form p { margin: 12px 0 0; }
.lxb-page .lxb-form label { display: block; margin: 0 0 4px; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--lxb-ink); }
.lxb-page .lxb-form input[type="text"],
.lxb-page .lxb-form input[type="email"],
.lxb-page .lxb-form textarea { display: block; width: 100%; max-width: 520px; height: auto; min-height: 0; margin: 0; padding: 9px 12px; border: 1px solid #cfd6e1; border-radius: 6px; background: #fff; box-shadow: none; font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--lxb-ink); }
.lxb-page .lxb-form textarea { min-height: 96px; resize: vertical; }
.lxb-page .lxb-form input:focus,
.lxb-page .lxb-form textarea:focus { border-color: var(--lxb-link); outline: 2px solid rgba(0, 111, 192, .35); outline-offset: 1px; }
.lxb-page .lxb-form [aria-invalid="true"] { border-color: var(--lxb-bad); box-shadow: 0 0 0 1px var(--lxb-bad); }

/* Option 2: the code, wrapped (a word too long for the line breaks only
   where it would overflow; badge-page.js grows the box to the whole code);
   buttons; notes and status lines */
.lxb-page .lxb-code { display: block; width: 100%; height: auto; min-height: 0; max-height: none; margin: 10px 0 0; padding: 12px 14px; background: #f6f8fb; border: 1px solid var(--lxb-line); border-radius: 6px; box-shadow: none; font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.55; color: #24324a; white-space: pre-wrap; overflow: auto; overflow-wrap: break-word; word-wrap: break-word; resize: vertical; }
.lxb-page .lxb-btnrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.lxb-page .lxb-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 0; margin: 0; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none !important; border-radius: 6px; padding: 11px 18px; border: 1px solid var(--lxb-link); background: var(--lxb-link) !important; color: #fff !important; -webkit-text-fill-color: #fff; box-shadow: none; cursor: pointer; }
.lxb-page .lxb-btn:not([disabled]):hover { background: #005a9e !important; border-color: #005a9e; text-decoration: none !important; }
.lxb-page .lxb-btn--o { background: #fff !important; color: var(--lxb-link) !important; -webkit-text-fill-color: var(--lxb-link); }
.lxb-page .lxb-btn--o:not([disabled]):hover { background: #f0f7fd !important; border-color: var(--lxb-link); }
.lxb-page .lxb-btn:focus-visible { outline: 3px solid var(--lxb-link); outline-offset: 2px; }
.lxb-page .lxb-btn[disabled] { opacity: .55; cursor: default; }
.lxb-page .lxb-card .lxb-note { font-size: 14px; color: var(--lxb-muted); margin-top: 10px; }
.lxb-page .lxb-card .lxb-status { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--lxb-ink); }
.lxb-page .lxb-card .lxb-status--bad { color: var(--lxb-bad); }

/* Sidebar */
.lxb-page ul.lxb-rules { margin: 8px 0 0; padding: 0 0 0 18px; list-style: disc; display: grid; gap: 7px; font-size: 15px; }
.lxb-page ul.lxb-rules li { margin: 0; padding: 0; }
.lxb-page .lxb-side .lxb-card p { font-size: 15px; }
.lxb-page .lxb-side .lxb-card .lxb-more { margin-top: 12px; }

@media (max-width: 860px) {
	.lxb-page .lxb-band { padding: 18px 0 22px; }
	.lxb-page .lxb-band .lxb-h1 { font-size: 25px; }
	.lxb-page .lxb-band p { font-size: 15.5px; }
	.lxb-page .lxb-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 20px 10px 34px; }
	.lxb-page .lxb-side { margin-top: 24px; }
	.lxb-page .lxb-card { padding: 18px 16px; }
	.lxb-page #lxb-step-1 { grid-template-columns: minmax(0, 1fr); }
	.lxb-page #lxb-step-1 > .lxb-preview,
	.lxb-page #lxb-step-1 > .lxb-opt,
	.lxb-page #lxb-step-1 > .lxb-note,
	.lxb-page #lxb-step-1 > .lxb-btnrow,
	.lxb-page #lxb-step-1 > .lxb-status { grid-column: 1; grid-row: auto; }
	.lxb-page #lxb-step-2 .lxb-preview { justify-content: center; }
	.lxb-page .lxb-code { font-size: 11.5px; }
	.lxb-page .lxb-btn { flex: 1 1 auto; justify-content: center; }
}
