/*
 * Buyer's guides, industry pages, and the buyer's-guide depth appended to
 * service pages. Loaded only on those pages (inc/guides.php), outside the
 * bundled cascade: it builds on existing components (legal-page grid,
 * article-shell prose, answer-grid, service-projects) and only adds what they
 * lack — the direct-answer block, data tables and source lists.
 */

.guide-answer {
	margin-top: clamp(28px, 4vw, 48px);
	margin-bottom: clamp(8px, 2vw, 16px);
	padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px);
	border: 1px solid var(--line, rgba(255, 255, 255, .16));
	border-left: 4px solid var(--red, #f98128);
	background: rgba(255, 255, 255, .035);
	max-width: 980px;
}

.guide-answer__label {
	margin: 0 0 10px;
	font-family: var(--mono, ui-monospace, monospace);
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--red, #f98128);
}

.guide-answer__text {
	margin: 0;
	font-size: clamp(1.08rem, .5vw + .98rem, 1.32rem);
	line-height: 1.6;
	color: #fff;
}

.guide-answer__meta {
	margin: 14px 0 0;
	font-size: .86rem;
	color: var(--muted, #aab3bc);
}

.guide-body section + section {
	margin-top: clamp(40px, 5vw, 58px);
}

.guide-section__answer {
	font-size: clamp(1.02rem, .3vw + .96rem, 1.14rem);
	color: #fff !important;
}

.guide-section__sources {
	margin-top: 18px;
	font-size: .86rem !important;
	color: var(--muted, #aab3bc);
}

.guide-section__sources a,
.guide-sources a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.guide-table {
	margin: 26px 0 8px;
	overflow-x: auto;
	border: 1px solid var(--line, rgba(255, 255, 255, .16));
	-webkit-overflow-scrolling: touch;
}

.guide-table:focus-visible {
	outline: 2px solid var(--red, #f98128);
	outline-offset: 2px;
}

.guide-table table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: .95rem;
	line-height: 1.5;
}

.guide-table caption {
	padding: 12px 16px;
	text-align: left;
	font-size: .86rem;
	color: var(--muted, #aab3bc);
	caption-side: top;
}

.guide-table th,
.guide-table td {
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	border-top: 1px solid var(--line, rgba(255, 255, 255, .12));
	color: var(--muted, #c4ccd4);
}

.guide-table thead th {
	border-top: 0;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-weight: 600;
}

.guide-table tbody th {
	color: #fff;
	font-weight: 600;
}

.guide-sources {
	border-top: 1px solid var(--line, rgba(255, 255, 255, .12));
}

.guide-sources h2 {
	font-size: clamp(1.4rem, 2vw, 1.9rem);
	margin-bottom: 12px;
}

.guide-sources p,
.guide-sources li {
	max-width: 80ch;
	color: var(--muted, #aab3bc);
	line-height: 1.6;
	font-size: .95rem;
}

.guide-sources ol {
	margin: 18px 0 0;
	padding-left: 22px;
	display: grid;
	gap: 8px;
}

.guide-intro {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.guide-industries h3 a {
	color: inherit;
	text-decoration: none;
}

.guide-industries h3 a:hover,
.guide-industries h3 a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.service-guide {
	border-top: 1px solid var(--line, rgba(255, 255, 255, .12));
}

.service-guide .legal-page__grid {
	padding-top: 0;
}

/*
 * Grid children default to min-width:auto, so a wide table would stretch the
 * column (and the whole page) past the viewport on phones. Let the column
 * shrink and the table scroll inside its own frame instead.
 */
.guide-page .legal-page__grid > *,
.service-guide .legal-page__grid > *,
.guide-body {
	min-width: 0;
}

.guide-table {
	max-width: 100%;
}
