/*
 * GE Universal Remote Codes Finder - simple interface
 * Scoped to .gerc. Restyle with e.g.  .gerc { --gerc-accent: #0a7cc2; }
 */
.gerc {
	--gerc-ink: #1f2933;
	--gerc-muted: #616e7c;
	--gerc-line: #d9dee3;
	--gerc-bg: #f6f7f9;
	--gerc-accent: #1d5fd6;
	--gerc-ok: #1e9e63;

	max-width: 720px;
	margin: 1.5em auto;
	color: var(--gerc-ink);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}
.gerc *, .gerc *::before, .gerc *::after { box-sizing: border-box; }
.gerc [hidden] { display: none !important; }
.gerc button, .gerc input, .gerc ul, .gerc ol, .gerc li, .gerc p, .gerc h2, .gerc h3, .gerc h4 {
	margin: 0; padding: 0; font-family: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
}
.gerc button { appearance: none; -webkit-appearance: none; box-shadow: none; line-height: 1.2; cursor: pointer; }
.gerc ul, .gerc ol { list-style: none; }
.gerc :focus-visible { outline: 3px solid var(--gerc-accent); outline-offset: 2px; }
.gerc-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gerc .gerc-title { margin-bottom: .6em; font-size: 1.6rem; font-weight: 700; line-height: 1.2; color: var(--gerc-ink); }

.gerc .gerc-shell { display: block; padding: 1.25rem; border: 1px solid var(--gerc-line); border-radius: 8px; background: #fff; }
.gerc .gerc-block + .gerc-block { margin-top: 1.1rem; }
.gerc .gerc-label { display: block; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; }
.gerc .gerc-help { margin-top: .5rem; color: var(--gerc-muted); font-size: .88rem; }
.gerc .gerc-help svg { display: none; }

/* Buttons: versions + categories */
.gerc .gerc-tabs, .gerc .gerc-cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.gerc .gerc-tab, .gerc .gerc-cat {
	min-height: 40px; padding: .3rem .9rem;
	border: 1px solid var(--gerc-line); border-radius: 6px;
	background: #fff; color: var(--gerc-ink); font-size: .95rem; font-weight: 600;
}
.gerc .gerc-tab:hover, .gerc .gerc-cat:hover { background: var(--gerc-bg); color: var(--gerc-ink); border-color: #b5bdc5; }
.gerc .gerc-tab.is-active, .gerc .gerc-tab.is-active:hover,
.gerc .gerc-cat[aria-pressed="true"], .gerc .gerc-cat[aria-pressed="true"]:hover {
	background: var(--gerc-accent); border-color: var(--gerc-accent); color: #fff;
}

/* Brand search + list */
.gerc .gerc-search { display: block; }
.gerc .gerc-search input {
	display: block; width: 100%; min-height: 44px; margin: 0; padding: .45rem .75rem;
	border: 1px solid var(--gerc-line); border-radius: 6px; background: #fff; color: var(--gerc-ink);
	font-size: 1rem; box-shadow: none;
}
.gerc .gerc-search input:focus { border-color: var(--gerc-accent); }
.gerc .gerc-brands {
	max-height: 14rem; margin-top: .5rem; overflow-y: auto;
	border: 1px solid var(--gerc-line); border-radius: 6px; overscroll-behavior: contain;
}
.gerc .gerc-brands li + li { border-top: 1px solid var(--gerc-line); }
.gerc .gerc-brand {
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	width: 100%; min-height: 42px; padding: .35rem .75rem;
	border: 0; border-radius: 0; background: transparent; color: var(--gerc-ink);
	font-size: 1rem; text-align: left;
}
.gerc .gerc-brand:hover { background: var(--gerc-bg); color: var(--gerc-ink); }
.gerc .gerc-brand-meta { flex: none; color: var(--gerc-muted); font-size: .85rem; }
.gerc .gerc-brand[aria-pressed="true"], .gerc .gerc-brand[aria-pressed="true"]:hover { background: #e8f0fd; font-weight: 700; }
.gerc .gerc-empty { padding: .6rem 0; color: var(--gerc-muted); font-size: .95rem; }
.gerc .gerc-empty-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.gerc .gerc-link {
	min-height: 36px; padding: .25rem .75rem; border: 1px solid var(--gerc-accent); border-radius: 6px;
	background: #fff; color: var(--gerc-accent); font-size: .9rem; font-weight: 600;
}
.gerc .gerc-link:hover { background: var(--gerc-accent); color: #fff; }

/* Result */
.gerc .gerc-display { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--gerc-line); text-align: center; }
.gerc .gerc-d-head { margin-bottom: .5rem; }
.gerc .gerc-led { display: none; }
.gerc .gerc-d-title { color: var(--gerc-muted); font-size: .95rem; }
.gerc .gerc-lcd { padding: .4rem 0; }
.gerc .gerc-lcd-ghost { display: none; }
.gerc .gerc-lcd-digits {
	display: block; font-size: 3.2rem; font-weight: 700; line-height: 1.1;
	letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--gerc-ink);
}
.gerc .gerc-display:not(.has-code) .gerc-lcd-digits { color: #c3cad1; }
.gerc .gerc-d-idle { color: var(--gerc-muted); }
.gerc .gerc-d-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem .75rem; margin-top: .25rem; color: var(--gerc-muted); font-size: .92rem; }
.gerc .gerc-badge { padding: 0 .45rem; border: 1px solid var(--gerc-line); border-radius: 4px; font-size: .8rem; }
.gerc .gerc-ticks { display: none; }

.gerc .gerc-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1rem; }
.gerc .gerc-btn {
	min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--gerc-line); border-radius: 6px;
	background: #fff; color: var(--gerc-ink); font-size: .95rem; font-weight: 600;
}
.gerc .gerc-btn:hover { background: var(--gerc-bg); color: var(--gerc-ink); }
.gerc .gerc-btn:disabled { opacity: .4; cursor: not-allowed; }
.gerc .gerc-btn-copy, .gerc .gerc-btn-copy:hover { background: var(--gerc-accent); border-color: var(--gerc-accent); color: #fff; }
.gerc .gerc-btn-copy.is-copied, .gerc .gerc-btn-copy.is-copied:hover { background: var(--gerc-ok); border-color: var(--gerc-ok); }
.gerc .gerc-d-end { margin-top: .8rem; padding: .7rem; border-radius: 6px; background: var(--gerc-bg); font-size: .92rem; }
.gerc .gerc-d-end .gerc-link { margin-top: .5rem; }

.gerc .gerc-quick { margin-top: 1.1rem; padding: .8rem 1rem; border-radius: 6px; background: var(--gerc-bg); text-align: left; counter-reset: q; }
.gerc .gerc-quick li { counter-increment: q; padding: .15rem 0 .15rem 1.5rem; position: relative; font-size: .95rem; }
.gerc .gerc-quick li::before { content: counter(q) "."; position: absolute; left: 0; font-weight: 700; color: var(--gerc-muted); }

.gerc .gerc-d-all { margin-top: 1.1rem; text-align: left; }
.gerc .gerc-d-all-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.gerc .gerc-d-all h4 { font-size: .95rem; font-weight: 600; }
.gerc .gerc-d-all h4.gerc-more-title { margin-top: .9rem; color: var(--gerc-muted); font-weight: 500; font-size: .88rem; }
.gerc .gerc-copyall { min-height: 32px; padding: .2rem .7rem; border: 1px solid var(--gerc-line); border-radius: 6px; background: #fff; color: var(--gerc-ink); font-size: .85rem; }
.gerc .gerc-copyall:hover { background: var(--gerc-bg); color: var(--gerc-ink); }
.gerc .gerc-copyall.is-copied { background: var(--gerc-ok); border-color: var(--gerc-ok); color: #fff; }
.gerc .gerc-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.gerc .gerc-code {
	min-width: 4rem; min-height: 36px; padding: .2rem .6rem; border: 1px solid var(--gerc-line); border-radius: 6px;
	background: #fff; color: var(--gerc-ink); font-size: .98rem; font-variant-numeric: tabular-nums;
}
.gerc .gerc-code:hover { background: var(--gerc-bg); color: var(--gerc-ink); }
.gerc .gerc-code.is-tried { color: #9aa5b1; }
.gerc .gerc-code.is-current, .gerc .gerc-code.is-current:hover { border-color: var(--gerc-accent); background: #e8f0fd; color: var(--gerc-ink); font-weight: 700; }

.gerc kbd {
	display: inline-block; padding: 0 .35em; border: 1px solid #c3cad1; border-radius: 4px;
	background: var(--gerc-bg); color: var(--gerc-ink); font-family: inherit; font-size: .88em; font-weight: 700; white-space: nowrap;
}

/* Steps */
.gerc .gerc-steps { margin-top: 2rem; }
.gerc .gerc-steps h3 { margin-bottom: .6rem; font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--gerc-ink); }
.gerc .gerc-steps ol { counter-reset: s; }
.gerc .gerc-steps li { counter-increment: s; position: relative; padding: .5rem 0 .5rem 2rem; border-top: 1px solid var(--gerc-line); }
.gerc .gerc-steps li::before { content: counter(s) "."; position: absolute; left: 0; font-weight: 700; color: var(--gerc-muted); }
.gerc .gerc-steps .gerc-note { margin-top: 1rem; padding: .8rem 1rem; border-radius: 6px; background: var(--gerc-bg); }

/* Crawlable tables */
.gerc .gerc-seo { margin-top: 1.75rem; }
.gerc .gerc-seo-block { margin: .5rem 0; border: 1px solid var(--gerc-line); border-radius: 6px; background: #fff; }
.gerc .gerc-seo-block > summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: .4rem 1rem; font-weight: 600; cursor: pointer; list-style: none; }
.gerc .gerc-seo-block > summary::-webkit-details-marker { display: none; }
.gerc .gerc-seo-block > summary::after { content: "+"; font-size: 1.2rem; color: var(--gerc-muted); }
.gerc .gerc-seo-block[open] > summary::after { content: "\2212"; }
.gerc .gerc-seo-block[open] { padding-bottom: .8rem; }
.gerc .gerc-seo-block h4 { margin: 1rem 1rem .4rem; font-size: 1rem; font-weight: 600; }
.gerc .gerc-table-wrap { margin: 0 1rem; overflow-x: auto; }
.gerc .gerc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gerc .gerc-table th, .gerc .gerc-table td { padding: .45rem .5rem; border: 0; border-bottom: 1px solid var(--gerc-line); text-align: left; vertical-align: top; background: transparent; }
.gerc .gerc-table th { color: var(--gerc-muted); font-size: .85rem; }
.gerc .gerc-table td:first-child { white-space: nowrap; font-weight: 600; }
.gerc .gerc-disclaimer { margin-top: 1rem; color: var(--gerc-muted); font-size: .85rem; }

@media (max-width: 480px) {
	.gerc .gerc-shell { padding: 1rem; }
	.gerc .gerc-lcd-digits { font-size: 2.6rem; }
}
