/* ==========================================================================
   HPB — Post Builder Pro : frontend blocks
   Everything is scoped under .hpb-* so child themes never clash.
   Colours come from CSS variables set by the plugin settings.
   ========================================================================== */

:root {
	--hpb-brand: #16324f;
	--hpb-brand-2: #1e5f8e;
	--hpb-accent: #c8102e;
	--hpb-ok: #0f7a4a;
	--hpb-radius: 10px;
}

.hpb-btn,
.hpb-info,
.hpb-table,
.hpb-notice,
.hpb-steps,
.hpb-faq,
.hpb-disc,
.hpb-tele,
.hpb-toc,
.hpb-rolls {
	--hpb-ink: #1b2733;
	--hpb-soft: #5d6d7a;
	--hpb-line: #dfe5ea;
	--hpb-band: #f4f7f9;
	box-sizing: border-box;
}

.hpb-btn *,
.hpb-info *,
.hpb-notice *,
.hpb-steps *,
.hpb-faq *,
.hpb-disc *,
.hpb-tele *,
.hpb-toc *,
.hpb-rolls *,
.hpb-tablewrap * {
	box-sizing: border-box;
}

/* inline svg icon */
.hpb-i {
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 auto;
	vertical-align: -0.15em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.hpb-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 24px;
	margin: 6px 8px 6px 0;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	border: 2px solid transparent;
	border-radius: var(--hpb-radius);
	cursor: pointer;
	transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.hpb-btn:hover {
	transform: translateY(-2px);
	text-decoration: none !important;
}

.hpb-btn:focus-visible {
	outline: 3px solid var(--hpb-brand-2);
	outline-offset: 3px;
}

.hpb-btn--primary,
.hpb-btn--primary:visited,
.hpb-btn--primary:hover,
.hpb-btn--primary:active {
	color: #fff !important;
	background: var(--hpb-brand);
}

.hpb-btn--primary:hover {
	background: var(--hpb-brand-2);
	box-shadow: 0 6px 18px rgba(22, 50, 79, .28);
}

.hpb-btn--accent,
.hpb-btn--accent:visited,
.hpb-btn--accent:hover,
.hpb-btn--accent:active {
	color: #fff !important;
	background: var(--hpb-accent);
}

.hpb-btn--accent:hover {
	box-shadow: 0 6px 18px rgba(200, 16, 46, .3);
	filter: brightness(1.08);
}

.hpb-btn--ok,
.hpb-btn--ok:visited,
.hpb-btn--ok:hover,
.hpb-btn--ok:active {
	color: #fff !important;
	background: var(--hpb-ok);
}

.hpb-btn--ok:hover {
	filter: brightness(1.1);
}

.hpb-btn--ghost,
.hpb-btn--ghost:visited,
.hpb-btn--ghost:active {
	color: var(--hpb-brand) !important;
	background: #fff;
	border-color: var(--hpb-brand);
}

.hpb-btn--ghost:hover {
	color: #fff !important;
	background: var(--hpb-brand);
}

.hpb-btn--tele,
.hpb-btn--tele:visited,
.hpb-btn--tele:hover,
.hpb-btn--tele:active {
	color: #fff !important;
	background: #229ED9;
	border-color: #229ED9;
}

.hpb-btn--tele:hover {
	background: #1b87ba;
}

.hpb-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: stretch;
	margin: 18px 0;
}

.hpb-btnrow .hpb-btn {
	flex: 1 1 210px;
	justify-content: center;
	margin: 4px;
}

.hpb-btn-note {
	display: block;
	margin: -2px 0 12px;
	font-size: 13px;
	color: var(--hpb-soft);
}

/* --------------------------------------------------------------------------
   Quick info table
   -------------------------------------------------------------------------- */
.hpb-info {
	margin: 24px 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
}

.hpb-info__head {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 16px;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	background: var(--hpb-brand);
}

.hpb-info__tbl {
	width: 100%;
	margin: 0 !important;
	border: 0;
	border-collapse: collapse;
}

.hpb-info__tbl th,
.hpb-info__tbl td {
	padding: 11px 16px;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
	border: 0;
	border-top: 1px solid var(--hpb-line);
}

.hpb-info__tbl tr:first-child th,
.hpb-info__tbl tr:first-child td {
	border-top: 0;
}

.hpb-info__tbl th {
	width: 40%;
	font-weight: 600;
	color: var(--hpb-soft);
	background: var(--hpb-band);
	border-right: 1px solid var(--hpb-line);
}

.hpb-info__tbl td {
	font-weight: 600;
	color: var(--hpb-ink);
}

/* --------------------------------------------------------------------------
   Data table
   -------------------------------------------------------------------------- */
.hpb-tablewrap {
	margin: 24px 0;
}

.hpb-tsearch {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	margin-bottom: -1px;
	background: var(--hpb-band);
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius) var(--hpb-radius) 0 0;
	color: var(--hpb-soft);
}

.hpb-tsearch input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	font-size: 14.5px;
	color: var(--hpb-ink);
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-radius: 7px;
}

.hpb-tsearch input:focus {
	outline: none;
	border-color: var(--hpb-brand-2);
	box-shadow: 0 0 0 3px rgba(30, 95, 142, .14);
}

.hpb-tcount {
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.hpb-tscroll {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
	-webkit-overflow-scrolling: touch;
}

.hpb-tsearch + .hpb-tscroll {
	border-radius: 0 0 var(--hpb-radius) var(--hpb-radius);
}

.hpb-tablewrap .hpb-table {
	width: 100%;
	min-width: 460px;
	margin: 0 !important;
	border: 0;
	border-collapse: collapse;
}

.hpb-tablewrap .hpb-table caption {
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--hpb-soft);
	text-align: left;
	caption-side: bottom;
}

.hpb-tablewrap .hpb-table th {
	padding: 12px 14px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #fff;
	text-align: left;
	background: var(--hpb-brand);
	border: 0;
}

.hpb-tablewrap .hpb-table td {
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--hpb-ink);
	border: 0;
	border-top: 1px solid var(--hpb-line);
}

.hpb-tablewrap .hpb-table tbody tr:nth-child(even) {
	background: #fafcfd;
}

.hpb-tablewrap .hpb-table tbody tr:hover {
	background: #f0f6fa;
}

.hpb-table--center th,
.hpb-table--center td {
	text-align: center !important;
}

.hpb-table tr[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
   Notice boxes
   -------------------------------------------------------------------------- */
.hpb-notice {
	display: flex;
	gap: 13px;
	padding: 15px 17px;
	margin: 22px 0;
	border: 1px solid;
	border-left-width: 5px;
	border-radius: var(--hpb-radius);
}

.hpb-notice__ico {
	flex: 0 0 auto;
	padding-top: 2px;
	font-size: 19px;
	line-height: 1;
}

.hpb-notice__body {
	min-width: 0;
	font-size: 15.5px;
	line-height: 1.65;
}

.hpb-notice__body > strong {
	display: block;
	margin-bottom: 4px;
	font-size: 16px;
}

.hpb-notice__body > *:last-child {
	margin-bottom: 0;
}

.hpb-notice__body p {
	margin: 0 0 8px;
}

.hpb-notice--info {
	color: #10394f;
	background: #eaf4fa;
	border-color: #b6dcef;
}

.hpb-notice--warning {
	color: #6b4700;
	background: #fff6e0;
	border-color: #f0c96a;
}

.hpb-notice--success {
	color: #0c5c39;
	background: #e7f7ef;
	border-color: #a9dfc4;
}

.hpb-notice--danger {
	color: #8a1a14;
	background: #fdeceb;
	border-color: #f0b6b2;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */
.hpb-steps {
	padding: 4px 0;
	margin: 24px 0;
}

.hpb-steps__head {
	margin-bottom: 12px;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--hpb-brand);
}

.hpb-steps ol {
	padding: 0;
	margin: 0;
	list-style: none;
	counter-reset: hpbstep;
}

.hpb-steps li {
	position: relative;
	padding: 3px 0 18px 48px;
	margin: 0;
	font-size: 15.5px;
	line-height: 1.62;
	counter-increment: hpbstep;
}

.hpb-steps li::before {
	content: counter(hpbstep);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	font-size: 14.5px;
	font-weight: 700;
	color: #fff;
	background: var(--hpb-brand);
	border-radius: 50%;
}

.hpb-steps li::after {
	content: "";
	position: absolute;
	top: 36px;
	bottom: 4px;
	left: 15.5px;
	width: 2px;
	background: var(--hpb-line);
}

.hpb-steps li:last-child {
	padding-bottom: 0;
}

.hpb-steps li:last-child::after {
	display: none;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.hpb-faq {
	margin: 24px 0;
	overflow: hidden;
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
}

.hpb-faq__head {
	padding: 13px 16px;
	font-size: 15.5px;
	font-weight: 700;
	color: #fff;
	background: var(--hpb-brand);
}

.hpb-faq__item {
	background: #fff;
	border-top: 1px solid var(--hpb-line);
}

.hpb-faq__item:first-child {
	border-top: 0;
}

.hpb-faq__item summary {
	position: relative;
	padding: 15px 50px 15px 17px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--hpb-ink);
	cursor: pointer;
	list-style: none;
}

.hpb-faq__item summary::-webkit-details-marker {
	display: none;
}

.hpb-faq__item summary:hover {
	background: var(--hpb-band);
}

.hpb-faq__item summary:focus-visible {
	outline: 3px solid var(--hpb-brand-2);
	outline-offset: -3px;
}

.hpb-faq__plus {
	position: absolute;
	top: 50%;
	right: 17px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
}

.hpb-faq__plus::before,
.hpb-faq__plus::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 2px;
	width: 16px;
	height: 2.5px;
	background: var(--hpb-brand);
	border-radius: 2px;
	transition: transform .2s ease;
}

.hpb-faq__plus::after {
	transform: rotate(90deg);
}

.hpb-faq__item[open] .hpb-faq__plus::after {
	transform: rotate(0deg);
}

.hpb-faq__a {
	padding: 0 17px 16px;
	font-size: 15.5px;
	line-height: 1.68;
	color: #35424e;
}

.hpb-faq__a p {
	margin: 0 0 10px;
}

.hpb-faq__a p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Table of contents
   -------------------------------------------------------------------------- */
.hpb-toc {
	margin: 24px 0;
	overflow: hidden;
	background: var(--hpb-band);
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
}

.hpb-toc__head {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 13px 16px;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--hpb-brand);
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.hpb-toc__chev {
	margin-left: auto;
	border-top: 7px solid var(--hpb-brand);
	border-right: 6px solid transparent;
	border-left: 6px solid transparent;
	transition: transform .2s ease;
}

.hpb-toc[data-collapsed="1"] .hpb-toc__chev {
	transform: rotate(-90deg);
}

.hpb-toc__list {
	padding: 0 18px 14px 36px;
	margin: 0;
	font-size: 15px;
}

.hpb-toc[data-collapsed="1"] .hpb-toc__list {
	display: none;
}

.hpb-toc__list li {
	margin: 7px 0;
	line-height: 1.5;
}

.hpb-toc__list a {
	color: var(--hpb-brand-2);
	text-decoration: none;
}

.hpb-toc__list a:hover {
	text-decoration: underline;
}

.hpb-toc__list ol {
	padding-left: 20px;
	margin: 6px 0;
	font-size: 14.5px;
}

/* --------------------------------------------------------------------------
   Disclaimer
   -------------------------------------------------------------------------- */
.hpb-disc {
	padding: 16px 18px;
	margin: 30px 0 20px;
	font-size: 14.5px;
	line-height: 1.68;
	color: #4a3a1a;
	background: #fffaf0;
	border: 1px solid #f0dcae;
	border-left: 5px solid #e0a800;
	border-radius: var(--hpb-radius);
}

.hpb-disc__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #8a6400;
}

.hpb-disc p {
	margin: 0 0 9px;
}

.hpb-disc p:last-child {
	margin-bottom: 0;
}

.hpb-disc__official {
	padding-top: 9px;
	margin-top: 4px !important;
	border-top: 1px dashed #e6cf9a;
}

/* --------------------------------------------------------------------------
   Telegram CTA
   -------------------------------------------------------------------------- */
.hpb-tele {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 17px 19px;
	margin: 26px 0;
	background: linear-gradient(135deg, #eaf6fc, #f7fbfe);
	border: 1px solid #bfe2f2;
	border-radius: var(--hpb-radius);
}

.hpb-tele__txt {
	min-width: 0;
}

.hpb-tele__txt strong {
	display: block;
	font-size: 16px;
	color: #10394f;
}

.hpb-tele__txt span {
	display: block;
	margin-top: 3px;
	font-size: 14.5px;
	color: #476775;
}

.hpb-tele .hpb-btn {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Inline highlight / badge
   -------------------------------------------------------------------------- */
.hpb-hl {
	padding: 1px 6px;
	font-weight: 600;
	background: linear-gradient(180deg, transparent 52%, #ffe08a 52%);
	border-radius: 3px;
}

.hpb-badge {
	display: inline-block;
	padding: 3px 9px;
	margin: 0 3px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	vertical-align: middle;
	border-radius: 4px;
}

.hpb-badge--accent {
	background: var(--hpb-accent);
}

.hpb-badge--brand {
	background: var(--hpb-brand);
}

.hpb-badge--ok {
	background: var(--hpb-ok);
}

/* --------------------------------------------------------------------------
   Roll number search
   -------------------------------------------------------------------------- */
.hpb-rolls {
	margin: 26px 0;
}

.hpb-rolls__panel {
	padding: 17px 16px 14px;
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-top: 4px solid var(--hpb-brand);
	border-radius: var(--hpb-radius);
}

.hpb-rolls__title {
	margin-bottom: 10px;
	font-size: 16.5px;
	font-weight: 700;
	color: var(--hpb-brand);
}

.hpb-rolls__lbl {
	display: block;
	margin-bottom: 7px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--hpb-soft);
}

.hpb-rolls__row {
	display: flex;
	gap: 8px;
}

.hpb-rolls__in {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: .05em;
	color: var(--hpb-ink);
	background: #fbfcfd;
	border: 1.5px solid var(--hpb-line);
	border-radius: 9px;
}

.hpb-rolls__in:focus {
	outline: none;
	background: #fff;
	border-color: var(--hpb-brand-2);
	box-shadow: 0 0 0 3px rgba(30, 95, 142, .15);
}

.hpb-rolls__go {
	flex: 0 0 auto;
	padding: 12px 22px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--hpb-brand);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
}

.hpb-rolls__go:hover {
	background: var(--hpb-brand-2);
}

.hpb-rolls__verdict {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	margin-top: 13px;
	font-size: 15px;
	line-height: 1.45;
	background: var(--hpb-band);
	border: 1px solid var(--hpb-line);
	border-radius: 9px;
}

.hpb-rolls__verdict strong {
	display: block;
}

.hpb-rolls__verdict small {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--hpb-soft);
}

.hpb-rolls__verdict .hpb-vnum {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: .04em;
}

.hpb-rolls__verdict.hpb-is-found {
	color: #0c5c39;
	background: #e7f7ef;
	border-color: #a9dfc4;
}

.hpb-rolls__verdict.hpb-is-notfound {
	color: #8a1a14;
	background: #fdeceb;
	border-color: #f0b6b2;
}

.hpb-rolls__verdict.hpb-is-idle {
	display: none;
}

.hpb-rolls__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 16px;
	justify-content: space-between;
	padding-top: 11px;
	margin-top: 12px;
	font-size: 13px;
	color: var(--hpb-soft);
	border-top: 1px dashed var(--hpb-line);
}

.hpb-rolls__meta b {
	color: var(--hpb-ink);
}

.hpb-rolls__tablewrap {
	margin-top: 16px;
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--hpb-line);
	border-radius: var(--hpb-radius);
	-webkit-overflow-scrolling: touch;
}

.hpb-rolls__tbl {
	width: 100%;
	min-width: 460px;
	margin: 0 !important;
	border-collapse: collapse;
}

.hpb-rolls__tbl th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 11px 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #fff;
	text-align: center;
	background: var(--hpb-brand);
	border: 0;
}

.hpb-rolls__tbl td {
	padding: 10px 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14.5px;
	font-variant-numeric: tabular-nums;
	letter-spacing: .03em;
	text-align: center;
	white-space: nowrap;
	border: 0;
	border-top: 1px solid var(--hpb-line);
	border-right: 1px solid #eef2f5;
}

.hpb-rolls__tbl td:last-child {
	border-right: 0;
}

.hpb-rolls__tbl tbody tr:nth-child(even) {
	background: #fafcfd;
}

.hpb-rolls__sr {
	display: block;
	margin-bottom: 3px;
	font-family: inherit;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .05em;
	color: #9aa8b3;
}

.hpb-rolls__tbl td.hpb-is-blank {
	color: #ccd5db;
}

.hpb-rolls__tbl td.hpb-is-hit {
	font-weight: 700;
	color: #4a3500;
	background: #ffe08a !important;
	box-shadow: inset 0 0 0 2px #e0a800;
}

.hpb-rolls__tbl td.hpb-is-hit .hpb-rolls__sr {
	color: #7a5d00;
}

@keyframes hpbPulse {
	0%, 100% { background: #ffe08a; }
	50% { background: #fff4cc; }
}

.hpb-rolls__tbl td.hpb-is-flash {
	animation: hpbPulse .55s ease 2;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.hpb-btn {
		width: 100%;
		justify-content: center;
		margin-right: 0;
	}

	.hpb-btnrow .hpb-btn {
		flex: 1 1 100%;
	}

	.hpb-tele .hpb-btn {
		width: 100%;
	}

	.hpb-info__tbl th,
	.hpb-info__tbl td {
		padding: 10px 12px;
		font-size: 14.5px;
	}

	.hpb-info__tbl th {
		width: 45%;
	}

	.hpb-steps li {
		padding-left: 42px;
	}

	.hpb-rolls__go {
		padding: 12px 16px;
	}

	.hpb-rolls__tbl td {
		padding: 9px 4px;
		font-size: 13px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hpb-btn,
	.hpb-faq__plus::before,
	.hpb-faq__plus::after,
	.hpb-toc__chev {
		transition: none !important;
	}

	.hpb-rolls__tbl td.hpb-is-flash {
		animation: none;
	}

	.hpb-btn:hover {
		transform: none;
	}
}

@media print {
	.hpb-rolls__panel,
	.hpb-tsearch,
	.hpb-tele {
		display: none;
	}

	.hpb-btn {
		color: #000 !important;
		background: none !important;
		border: 1px solid #000;
	}

	.hpb-faq__item {
		break-inside: avoid;
	}

	.hpb-faq__a {
		display: block !important;
	}
}
