/* The search of court decisions: /decisions (modules/site/views/decisions.php).
   It comes after lawyers.css and practice.css and uses their hero, form,
   pager and CTA. */

/* A page of results keeps the hero short, so the first hits show at once */
.dc-hero-asked { padding: var(--s6) 0 var(--s5); }
.dc-hero-asked h1 { font-size: clamp(28px, 3vw, 40px); margin: var(--s2) 0 0; }
.dc-hero-asked .site-lead { display: none; }
.dc-hero-asked .dc-tabs { margin-top: var(--s4); }
.dc-hero-asked .dc-tab { padding: var(--s2) var(--s4); grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s2); }
.dc-hero-asked .dc-tab b { font-size: 16px; }

/* The tabs of the sections of the case law, with their counts */
.dc-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: var(--s6) 0 var(--s4); }
.dc-tab {
	display: grid; gap: 2px; padding: var(--s4) var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-lg);
	color: var(--ink-2); text-decoration: none; transition: border-color .15s, background .15s;
}
.dc-tab b { font: 600 22px/1.15 var(--sans); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dc-tab span { font-size: 14px; }
.dc-tab:hover { border-color: var(--ink-3); }
.dc-tab[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
.dc-tab[aria-current="page"] b { color: var(--accent); }

/* The box of the form: even padding, and a gap between its rows. A rule that
   sets the margin of a <p> starts with `.site`: site.css resets `.site p`. */
.dc-search { padding: var(--s5); }
.site .dc-hint { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.site .dc-examples { display: flex; flex-wrap: wrap; gap: 10px var(--s2); align-items: center; margin: var(--s5) 0 0; font-size: 13px; color: var(--ink-3); }
.dc-examples span { margin-right: var(--s1); }
.dc-examples a {
	padding: 5px 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
	background: var(--bg-alt); color: var(--ink-2); text-decoration: none; line-height: 1.3;
}
.dc-examples a:hover { border-color: var(--accent); color: var(--ink); }

/* The chips of a filter, with the count of each value */
.site .dc-chips { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s4) 0 0; }
.site .dc-chips + .dc-chips { margin-top: var(--s3); }
.dc-chips-label { min-width: 104px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.dc-chip {
	display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 12px; border-radius: var(--r-pill);
	border: 1px solid var(--line-strong); color: var(--ink-2); font-size: 14px; text-decoration: none;
}
.dc-chip small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dc-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.dc-chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dc-chip[aria-current="true"] small { color: inherit; opacity: .75; }
.dc-chip-zero { opacity: .5; }

.dc-more { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); }
.dc-more summary {
	display: inline-flex; gap: var(--s2); align-items: center; cursor: pointer; list-style: none;
	font-size: 14px; font-weight: 500; color: var(--ink-2); width: max-content;
}
.dc-more summary::-webkit-details-marker { display: none; }
.dc-more summary::before {
	content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg); transition: transform .15s;
}
.dc-more[open] summary::before { transform: rotate(-135deg); margin-top: 3px; }
.dc-more summary:hover { color: var(--ink); }
.dc-more .lw-filters { margin-top: var(--s4); }
.dc-more .lw-input[type="text"] { min-height: 42px; font-size: 15px; }
.dc-field-judge { min-width: 260px; }
.dc-reset { align-self: center; font-size: 14px; color: var(--ink-3); }

/* «It works in your assistant too» under the form */
.site .dc-works { margin: var(--s5) 0 0; }
.dc-works a { display: inline-flex; gap: var(--s3); align-items: center; font-size: 15px; color: var(--accent); text-decoration: none; }
.dc-works a:hover span:last-child { text-decoration: underline; }
.dc-logos { display: inline-flex; gap: 6px; align-items: center; }
.dc-logo { width: 18px; height: 18px; flex: none; }

/* The results */
.dc-subhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); align-items: baseline; }
.dc-sort { display: flex; gap: var(--s4); font-size: 14px; }
.dc-sort a { color: var(--ink-3); text-decoration: none; }
.dc-sort a:hover { color: var(--ink); }
.dc-sort a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.dc-all { font-size: 15px; color: var(--accent); text-decoration: none; }
.dc-all:hover { text-decoration: underline; }

.dc-list { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; display: grid; gap: var(--s4); }
.dc-hit { display: grid; gap: var(--s2); padding: var(--s5); }
.dc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--ink-3); }
.dc-type { font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.dc-date { margin-left: auto; font-variant-numeric: tabular-nums; }
.dc-title { font: 600 18px/1.4 var(--sans); letter-spacing: 0; margin: 0; }
.dc-title a { color: var(--ink); text-decoration: none; }
.dc-title a:hover { text-decoration: underline; }
.site .dc-court { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 14px; color: var(--ink-2); }
.dc-court a { color: var(--ink-2); }
.dc-court a:hover { color: var(--ink); }
.dc-judge { color: var(--ink-3); }
.site .dc-part {
	margin: var(--s2) 0 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--accent);
	background: var(--bg-alt); border-radius: 0 var(--r-md) var(--r-md) 0;
	font-size: 15px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere;
}
.dc-part b { color: var(--ink); font-weight: 600; }
.site .dc-part-none { border-left-color: var(--line-strong); color: var(--ink-3); font-size: 14px; }
.site .dc-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: var(--s2) 0 0; font-size: 14px; }
.dc-actions a { color: var(--accent); text-decoration: none; }
.dc-actions a:hover { text-decoration: underline; }

/* The card of Merit MCP between the hits */
.dc-ai {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s6);
	padding: var(--s6); border-radius: var(--r-lg); background: var(--bg); color: var(--ink);
	border: 1px solid var(--accent);
}
.dc-ai h3 { margin: var(--s2) 0 var(--s3); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.dc-ai p { color: var(--ink-2); }
.dc-ai .site-eyebrow { color: var(--accent); }
.dc-prompt {
	display: grid; gap: var(--s2); margin: var(--s4) 0; padding: var(--s4);
	border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
}
.dc-prompt-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.site .dc-prompt-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink) !important; }
.dc-prompt button { justify-self: start; }
.dc-ai-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.dc-ai-side { display: grid; gap: var(--s3); align-content: start; padding-left: var(--s5); border-left: 1px solid var(--line); }
.dc-ai-steps { margin: 0; padding: 0; list-style: none; counter-reset: dc; display: grid; gap: var(--s3); }
.dc-ai-steps li { counter-increment: dc; display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); font-size: 15px; color: var(--ink-2); }
.dc-ai-steps li::before {
	content: counter(dc); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--accent); color: var(--accent); font-size: 12px; font-weight: 600;
}
.dc-ai-side .dc-logo { width: 22px; height: 22px; }

/* The landing: the comparison, the steps and the questions */
.dc-compare h2, .dc-how h2, .dc-faq h2 { font-size: clamp(24px, 2.6vw, 34px); margin: var(--s3) 0 var(--s3); letter-spacing: -.02em; }
.dc-compare .site-lead { max-width: 760px; color: var(--ink-2); }
.dc-table-wrap { overflow-x: auto; margin-top: var(--s5); }
.dc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dc-table th, .dc-table td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dc-table thead th { font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.dc-table tbody th { font-weight: 500; color: var(--ink); }
.dc-table .dc-col-ai { background: var(--accent-soft); }
.dc-table thead .dc-col-ai { color: var(--accent); }
.dc-mark { white-space: nowrap; color: var(--ink-3); }
.dc-mark-yes { color: var(--ok); font-weight: 600; }
.dc-mark-link { color: var(--ink-2); }

.dc-steps { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); counter-reset: st; }
.dc-steps li { counter-increment: st; padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dc-steps li::before { content: counter(st); display: block; font: 600 32px/1 var(--sans); color: var(--accent); margin-bottom: var(--s3); }
.dc-steps h3 { font-size: 18px; margin: 0 0 var(--s2); }
.dc-steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.dc-how-links { display: flex; flex-wrap: wrap; gap: var(--s3); }
.dc-how-links .site-btn { gap: var(--s2); }

.dc-faq details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; max-width: 860px; }
.dc-faq summary { cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); }
.site .dc-faq details p { margin: var(--s3) 0 0; color: var(--ink-2); }

@media (max-width: 900px) {
	.dc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dc-ai { grid-template-columns: minmax(0, 1fr); padding: var(--s5); }
	.dc-ai-side { padding-left: 0; border-left: 0; padding-top: var(--s4); border-top: 1px solid var(--line); }
	.dc-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	.dc-tab { padding: var(--s3); }
	.dc-tab b { font-size: 18px; }
	.dc-hero-asked .dc-tabs { display: none; }
	/* A chip group is one row that scrolls, so the hits stay near the top. */
	.site .dc-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
	.dc-chips::-webkit-scrollbar { display: none; }
	.dc-chips-label { flex: none; min-width: 0; }
	.dc-chip { flex: none; }
	.dc-hit { padding: var(--s4); }
	.dc-search { padding: var(--s4); }
	.dc-date { margin-left: 0; }
	.dc-field-judge { min-width: 0; }
	.dc-table th, .dc-table td { padding: var(--s2) var(--s3); }
	.dc-mark-text { display: none; }
}

/* The heading of a list is smaller than the h2 of the site: the hits come first */
.site .dc-h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; }
