/* Notice detail and pursuit controls. Load after app.css. */
/* Opportunity detail */
.detail-page { padding: 30px 0 60px; }
.detail-shell { width: var(--page); margin: 0 auto; }
.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 17px;
	color: var(--slate-500);
	font-size: 12px;
	font-weight: 600;
}
.breadcrumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--slate-600); }
.breadcrumbs a:hover { color: var(--link); text-decoration: none; }
.breadcrumbs svg { width: 15px; height: 15px; }
.newer-posting {
	padding: 16px 24px;
	margin-bottom: 20px;
	background: #fef0c7;
	border-color: #fedf89;
	color: #182230;
	font-size: 16px;
}
.newer-posting a { color: #175cd3; font-weight: 600; }
.newer-posting a:hover { color: #1849a9; }
.newer-posting p { margin: 0; }
.detail-hero {
	position: relative;
	overflow: hidden;
	padding: 30px 34px 0;
	background: linear-gradient(130deg, var(--surface) 60%, var(--slate-50));
}
.detail-hero::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--amber-500), var(--header-accent) 30%, transparent 75%);
}
.detail-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.status-chip { gap: 6px; padding: 4px 8px; background: var(--green-50); color: var(--green-700); }
.status-chip > span { width: 6px; height: 6px; border-radius: 50%; background: var(--status-dot); }
.type-chip { padding: 4px 8px; background: var(--blue-50); color: var(--blue-700); }
.detail-hero h1 {
	margin: 0;
	font-size: clamp(25px, 3vw, 38px);
	line-height: 1.2;
	letter-spacing: -0.035em;
}
.sam-title { display: block; margin-top: 8px; color: var(--slate-600); font-size: 12px; overflow-wrap: anywhere; }
.detail-identifiers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; color: var(--slate-500); font-size: 12px; }
.detail-identifiers strong { margin-left: 3px; color: var(--slate-700); font-weight: 650; }
.detail-category { margin: 12px 0 0; color: var(--slate-600); font-size: 14px; }
.detail-kicker .category-label { align-self: center; }
.notice-updates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font-size: 13px; }
.notice-updates > span { color: var(--slate-600); }
.notice-updates > span a { text-decoration: underline; text-underline-offset: .15em; }
.notice-updates > .sam { min-height: 44px; }
.notice-match-hint { flex-basis: 100%; margin: 0; color: var(--slate-600); }
.notice-updates button { width: auto; min-height: 44px; }
.notice-updates svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* An active solicitation alert reads as a state, not as more gray help text. */
.notice-alert-on { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 8px 14px; border: 1px solid var(--green-100); border-radius: var(--radius-sm); background: var(--green-50); color: var(--green-700); }
.notice-alert-on svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.notice-alert-on strong { font-weight: 650; }
.notice-alert-on a { font-weight: 600; white-space: nowrap; }
.notice-copy { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; max-width: 100%; font-size: 12px; }
.notice-copy[hidden] { display: none; }
.notice-copy-button { min-height: 32px; }
.notice-copy-button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (pointer: coarse) { .notice-copy-button { min-height: 44px; } }
.notice-copy-status { color: var(--slate-600); }
.notice-copy-status[data-error="true"] { color: var(--red-700); }
.summary-grid {
	display: grid;
	/* Each column starts at its content width and shares the leftover space, so dates stay on one line. */
	grid-auto-flow: column;
	grid-auto-columns: auto;
	margin: 27px -34px 0;
	border-top: 1px solid var(--line);
	background: var(--slate-50);
}
.summary-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 16px 20px;
	border-right: 1px solid var(--line);
}
.summary-item:last-child { border-right: 0; }
.summary-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--surface);
	color: var(--slate-600);
}
.summary-icon svg { width: 17px; height: 17px; }
.summary-item > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.summary-item small { color: var(--slate-500); font-size: 12px; }
.summary-item strong { color: var(--slate-900); font-size: 16px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.summary-item strong.not-listed { color: var(--slate-500); font-weight: 400; }
.summary-item .summary-detail { color: var(--slate-600); font-size: 14px; }
.summary-item strong.deadline-superseded { color: var(--slate-600); font-weight: 400; }
.deadline-superseded s { text-decoration-thickness: 2px; }
.summary-item .deadline-note { max-width: 32ch; color: var(--slate-700); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.summary-item button.deadline-time {
	width: auto; max-width: 100%; min-height: 24px; padding: 0;
	border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--slate-900);
	box-shadow: none; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left;
	justify-content: flex-start; align-self: flex-start; transform: none;
	text-decoration: underline dotted var(--slate-400); text-underline-offset: 4px; cursor: help;
}
.deadline-source[popover] {
	max-width: calc(100vw - 32px); padding: 12px 16px;
	border: 1px solid var(--line); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.summary-item .chip,
.summary-item .chip-match,
.summary-item .chip-miss,
.summary-item .chip-open { align-self: flex-start; padding: 4px 9px; font-size: 14px; }
.detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 20px;
	align-items: start;
	margin-top: 20px;
}
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail-side { position: sticky; top: 18px; }
.content-card { padding: 25px 28px 30px; }
.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--line);
}
.section-heading h2, .side-heading h2, .action-card h2 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.section-heading > span { color: var(--slate-500); font-size: 12px; }
.desc { max-width: 65ch; color: var(--slate-700); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.desc p { margin: 0 0 0.9em; }
.desc h3 { margin: 1.5em 0 0.5em; color: var(--slate-900); font-size: 15px; font-weight: 650; line-height: 1.4; }
.desc h3:first-child { margin-top: 0; }
.desc p:last-child { margin-bottom: 0; }
.desc ul, .desc ol { margin: 0 0 0.9em; padding-left: 1.25em; }
.desc ul:last-child, .desc ol:last-child { margin-bottom: 0; }
.desc li { margin: 0.3em 0; }
.ai-summary .section-heading { flex-wrap: wrap; gap: 12px; }
.ai-summary-text { max-width: 65ch; color: var(--slate-700); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ai-summary-credentials { max-width: 65ch; margin-top: 20px; color: var(--slate-700); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ai-summary-credentials h3 { margin: 0 0 8px; color: var(--ink); font-size: 15px; }
.ai-summary-credentials ul { margin: 0; padding-left: 1.25em; }
.ai-summary-credentials li { margin: 0.6em 0; }
.credential-holder { display: block; color: var(--slate-500); font-size: 13px; line-height: 1.5; }
.empty-desc {
	padding: 24px;
	border: 1px dashed var(--slate-300);
	border-radius: var(--radius);
	background: var(--slate-50);
	color: var(--slate-600);
	text-align: center;
}
.empty-desc strong { color: var(--ink); }
.empty-desc p { margin: 4px 0 0; font-size: 12px; }
.notice-history ul { margin: 0; padding: 0; list-style: none; }
.notice-history li {
	display: grid;
	grid-template-columns: 12px minmax(0, 1fr) 17px;
	align-items: start;
	gap: 10px;
	padding: 12px 8px;
	border-bottom: 1px solid var(--line);
}
.notice-history li:last-child { border-bottom: 0; }
.notice-history li:hover { background: var(--slate-50); }
.timeline-dot { width: 8px; height: 8px; margin-top: 6px; border: 2px solid var(--amber-500); border-radius: 50%; background: var(--surface); }
.notice-history li div { display: flex; flex-direction: column; }
.notice-history li a { color: var(--ink); font-size: 12px; font-weight: 700; }
.notice-history li span:not(.timeline-dot):not(.notice-current):not(.notice-title):not(.category-label) { color: var(--slate-500); font-size: 12px; }
.notice-history li .category-label { margin-bottom: 3px; }
.notice-history li.current { background: var(--amber-50); }
.notice-history li.current:hover { background: var(--amber-50); }
.notice-current { color: var(--amber-700); font-weight: 700; font-size: 12px; }
.notice-history li > svg { width: 16px; height: 16px; margin-top: 4px; color: var(--slate-400); }
.action-card { padding: 22px; }
.action-card h2 { font-size: 18px; }
.action-card > p:not(.eyebrow) { margin: 7px 0 16px; color: var(--slate-600); font-size: 13px; }
.sam { padding: 10px 14px; font-size: 14px; }
.mobile-source { display: none; }
.sam svg { width: 15px; height: 15px; }
.text-action { display: block; margin-top: 12px; color: var(--slate-600); font-size: 12px; font-weight: 650; text-align: center; }
.side-heading {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line);
}
.side-heading svg { width: 18px; height: 18px; color: var(--amber-700); }
.side-heading h2 { font-size: 15px; }
.facts-card, .contacts-card { overflow: hidden; }
.facts-card > p { margin: 14px 18px; }
.facts-card > .text-action { margin: -4px 18px 14px; text-align: left; }
.facts-card dl { margin: 0; }
.sam-record-details { border-top: 1px solid var(--line); }
.sam-record-details summary { padding: 14px 18px; color: var(--slate-700); font-size: 13px; cursor: pointer; }
.facts-card dl > div {
	display: grid;
	grid-template-columns: 105px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 18px;
	border-bottom: 1px solid var(--line);
}
.facts-card dl > div:last-child { border-bottom: 0; }
.facts-card dt { color: var(--slate-500); font-size: 13px; font-weight: 600; }
.facts-card dd { margin: 0; color: var(--slate-700); font-size: 13px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.facts-card dd small { display: block; margin-top: 2px; color: var(--slate-500); font-weight: 400; }
.contact-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-card:last-child { border-bottom: 0; }
.contact-card > span { color: var(--slate-500); font-size: 13px; }
.contact-card strong { font-size: 13px; }
.contact-card a, .contact-card small { font-size: 13px; }
.contact-card small { color: var(--slate-600); }

/* Below this width, four summary columns cannot fit a mainland U.S. due date on one line. */
@media (max-width: 1240px) {
	.summary-grid { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
	.summary-item:nth-child(2) { border-right: 0; }
	.summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1120px) {
	.detail-layout { grid-template-columns: minmax(0, 1fr) 310px; }
}
@media (max-width: 840px) {
	.detail-layout { grid-template-columns: 1fr; }
	.detail-side { position: static; }
	.mobile-source { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 680px) {
	.detail-page { padding-top: 20px; }
	.detail-hero { padding: 24px 20px 0; }
	.detail-hero h1 { font-size: 25px; }
	.summary-grid { margin-inline: -20px; grid-auto-flow: row; grid-template-columns: 1fr; }
	.summary-item { border-right: 0; border-bottom: 1px solid var(--line); }
	.summary-item:last-child { border-bottom: 0; }
	.content-card { padding: 20px; }
}
@media (max-width: 430px) {
	.breadcrumbs > span { display: none; }
}

.pursuit-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; list-style: none; cursor: pointer; }
.pursuit-editor > summary::-webkit-details-marker { display: none; }
.pursuit-overview { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pursuit-overview strong { font-size: 16px; }
.pursuit-current { color: var(--muted); font-size: 14px; }
.pursuit-editor > summary svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pursuit-editor[open] > summary { border-bottom: 1px solid var(--line); }
.pursuit-editor[open] > summary svg { transform: rotate(180deg); }
.pursuit-fields { padding: 16px 20px 20px; }
.pursuit-fields > p, .pursuit-intro p { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.pursuit-card form { display: flex; flex-direction: column; gap: 8px; }
.pursuit-card label { margin-top: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.pursuit-card select, .pursuit-card textarea { width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--control-edge); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.pursuit-card textarea { resize: vertical; }
.pursuit-card small { color: var(--muted); }
.pursuit-card button { margin-top: 8px; }
.pursuit-card .optional { color: var(--muted); font-weight: 400; }
.pursuit-fields > form + form { margin-top: 4px; }
.pursuit-feedback { margin: 0; padding: 0 20px 18px; color: var(--green-700); font-size: 13px; }
.pursuit-intro { padding: 20px; }
.pursuit-intro .pursuit-sign-in { margin: 10px 0 0; }
.pursuit-intro h2 { margin: 0 0 10px; font-size: 16px; }
.notice-alert-delete summary { cursor: pointer; color: var(--red-700); font-size: 14px; }
.notice-alert-delete[open] summary { margin-bottom: 8px; }
.notice-alert-delete form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
