/* ==========================================================================
   Law Guide USA — state pages (/state/<slug>/ and State Legal Guides page)
   Shortcodes from inc/lgu-state-shortcodes.php; lgs-* classes sit on
   Elementor widgets and containers. Shares tokens with lgu-home.css.
   ========================================================================== */

/* Hero badge */
.elementor .lgs-badge .elementor-heading-title {
	display: inline-block; padding: 6px 12px; border-radius: 999px; background: #dce8f8; color: var(--lgh-navy);
	font-family: "Inter", sans-serif; font-size: .7rem; font-weight: 700; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase;
}

/* [lgu_state_tabs] ---------------------------------------------------------- */
.lgu-posts.lgu-stabs {
	position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
	border: 1px solid var(--lgu-line); border-radius: 8px; background: #fff; box-shadow: var(--lgu-shadow);
}
.lgu-posts .lgu-stabs__list {
	display: flex; flex: 1; gap: 10px; min-width: 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
	-webkit-mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
	padding: 2px 8px;
}
.lgu-posts .lgu-stabs__list::-webkit-scrollbar { display: none; }
.lgu-posts .lgu-stabs__list li { flex: none; }
.lgu-posts .lgu-stabs__chip {
	display: block; padding: 9px 18px; border: 1px solid var(--lgu-line); border-radius: 4px; background: #fff;
	font-family: "Source Serif 4", Georgia, serif; font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--lgu-ink); white-space: nowrap;
	transition: border-color .2s, background .2s, color .2s;
}
.lgu-posts .lgu-stabs__chip:hover { border-color: var(--lgu-navy); color: var(--lgu-navy); }
.lgu-posts .lgu-stabs__chip.is-active { border-color: var(--lgu-navy); background: var(--lgu-navy); color: #fff; }
.lgu-posts .lgu-stabs__btn {
	display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin: 0; padding: 0; border: 1px solid var(--lgu-line); border-radius: 50%;
	background: #fff; color: var(--lgu-navy); cursor: pointer; transition: background .2s, color .2s;
}
.lgu-posts .lgu-stabs__btn[hidden] { display: none; }
.lgu-posts .lgu-stabs__btn:hover, .lgu-posts .lgu-stabs__btn:focus-visible { background: var(--lgu-navy); border-color: var(--lgu-navy); color: #fff; }
.lgu-posts .lgu-stabs__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lgu-posts .lgu-stabs__btn--prev svg { transform: rotate(180deg); }

/* [lgu_state_posts] --------------------------------------------------------- */
.lgu-sgrid .lgu-posts.lgu-fgrid .lgu-fcard:nth-child(3) { display: flex; }
.lgu-sfilter {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 18px; padding: 10px 14px; border-radius: 6px;
	background: #eef3fa; font-size: .88rem; color: var(--ast-global-color-3, #4b5567);
}
.lgu-sfilter strong { color: var(--ast-global-color-0, #0e2b55); }
.lgu-sfilter a { margin-left: auto; font-weight: 600; color: var(--ast-global-color-0, #0e2b55); text-decoration: none; }
.lgu-sfilter a:hover { text-decoration: underline; }
.lgu-posts.lgu-sempty { padding: 40px 24px; border: 1px dashed #cfd8e4; border-radius: 8px; text-align: center; }
.lgu-posts.lgu-sempty p { margin-bottom: 12px; }
.lgu-posts.lgu-sempty a { font-weight: 600; color: var(--lgu-navy); text-decoration: underline; }

.lgu-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; }
.lgu-pager__num, .lgu-pager__arrow, .lgu-pager__gap {
	display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px;
	font-size: .88rem; font-weight: 600; color: var(--ast-global-color-2, #0f1d33); text-decoration: none;
}
.lgu-pager a.lgu-pager__num:hover { background: #eef3fa; color: var(--ast-global-color-0, #0e2b55); }
.lgu-pager__num.is-current { background: var(--ast-global-color-0, #0e2b55); color: #fff; }
.lgu-pager__arrow { border: 1px solid var(--ast-global-color-7, #e8ebf0); background: #fff; color: var(--ast-global-color-0, #0e2b55); transition: background .2s, color .2s; }
.lgu-pager a.lgu-pager__arrow:hover { background: var(--ast-global-color-0, #0e2b55); color: #fff; }
.lgu-pager__arrow.is-disabled { opacity: .4; }
.lgu-pager__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lgu-pager__arrow--prev svg { transform: rotate(180deg); }

/* Sidebar boxes ------------------------------------------------------------- */
.lgu-posts.lgu-side { overflow: hidden; border: 1px solid var(--lgu-line); border-radius: 8px; background: #fff; box-shadow: var(--lgu-shadow); }
.lgu-posts .lgu-side__title { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--lgu-line); background: #f5f8fc; font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--lgu-ink); }
.lgu-posts .lgu-side__cats { padding: 6px 20px; }
.lgu-posts .lgu-side__cats li + li { border-top: 1px solid var(--lgu-line); }
.lgu-posts .lgu-side__cats a { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: .92rem; color: var(--lgu-ink); transition: color .2s; }
.lgu-posts .lgu-side__cats a span { flex: 1; }
.lgu-posts .lgu-side__cats a:hover, .lgu-posts .lgu-side__cats a.is-active { color: var(--lgu-navy); }
.lgu-posts .lgu-side__cats a.is-active span { font-weight: 700; }
.lgu-posts .lgu-side__icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--lgu-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lgu-posts .lgu-side__chev { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lgu-posts .lgu-side__cats a:hover .lgu-side__chev { transform: translateX(3px); }
.lgu-posts .lgu-side__cats a.is-active .lgu-side__chev { transform: rotate(90deg); }

.lgu-posts .lgu-side__latest { padding: 4px 20px 8px; }
.lgu-posts .lgu-side__latest li { position: relative; display: flex; gap: 14px; padding: 14px 0; }
.lgu-posts .lgu-side__latest li + li { border-top: 1px solid var(--lgu-line); }
.lgu-posts .lgu-side__thumb { width: 64px; height: 58px; flex: none; overflow: hidden; border-radius: 4px; }
.lgu-posts .lgu-side__thumb .lgu-ph svg { width: 22px; height: 22px; }
.lgu-posts .lgu-side__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lgu-posts .lgu-side__link { font-family: "Source Serif 4", Georgia, serif; font-size: .9rem; font-weight: 600; line-height: 1.35; color: var(--lgu-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lgu-posts .lgu-side__link::after { content: ""; position: absolute; inset: 0; }
.lgu-posts .lgu-side__latest li:hover .lgu-side__link { color: var(--lgu-navy); }
.lgu-posts .lgu-side__date { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--lgu-muted); }
.lgu-posts .lgu-side__date .lgu-ico { width: 13px; height: 13px; }

/* Sidebar CTA + [lgu_state_select] ----------------------------------------- */
.elementor .lgs-cta { border: 1px solid #d9e4f2; border-radius: 8px; background: #eef3fa; }
.elementor .lgs-cta-icon .elementor-icon { font-size: 28px; color: var(--lgh-navy); }
.elementor .lgs-cta-icon .elementor-icon svg { width: 28px; height: 28px; fill: var(--lgh-navy); }
.elementor .lgs-cta-title .elementor-heading-title { font-family: var(--lgh-serif); font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--lgh-ink); }
.elementor .lgs-cta-text, .elementor .lgs-cta-text p { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--lgh-text); }
.lgu-posts.lgu-sselect { display: flex; flex-direction: column; gap: 10px; }
.lgu-posts.lgu-sselect select {
	width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid #cfd8e4; border-radius: 4px; background-color: #fff;
	font: inherit; font-size: .9rem; color: var(--lgu-ink);
}
.lgu-posts.lgu-sselect button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; margin: 0; padding: 0 18px; border: 0; border-radius: 4px;
	background: var(--lgu-navy); color: #fff; font: 600 .88rem/1 "Inter", sans-serif; cursor: pointer; transition: background .2s;
}
.lgu-posts.lgu-sselect button:hover { background: var(--lgu-dark); }
.lgu-posts.lgu-sselect button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 767px) {
	.lgu-posts.lgu-stabs { padding: 8px; gap: 4px; }
	.lgu-posts .lgu-stabs__chip { padding: 8px 14px; font-size: .86rem; }
	.lgu-posts .lgu-stabs__btn { width: 30px; height: 30px; }
	.lgu-sgrid .lgu-posts.lgu-fgrid { grid-template-columns: 1fr; }
}
