/* Wierzbicki&Co – Baza wyroków
 * Typografia dziedziczona z motywu; paleta monochromatyczna jak na wierzbickico.pl.
 * Wszystkie klasy z prefiksem .wcoj- – brak kolizji ze stylami motywu.
 */
:root {
	--wcoj-accent: #000;
	--wcoj-accent-ink: #fff;
	--wcoj-ink: #0d0d0d;
	--wcoj-muted: #6e6e6e;
	--wcoj-line: #dedede;
	--wcoj-soft: #f4f4f2;
	--wcoj-bg: #fff;
	--wcoj-mark: #f1ec9a;
	--wcoj-radius: 0px;
	--wcoj-max: 1440px;
	--wcoj-gutter: clamp(16px, 4vw, 64px);
	--wcoj-offset: 0px;
	--wcoj-ease: cubic-bezier(.2, .7, .2, 1);
}

.wcoj-main { padding-top: var(--wcoj-offset); color: var(--wcoj-ink); }
.wcoj-main *, .wcoj *, .wcoj-main *::before, .wcoj-main *::after { box-sizing: border-box; }
.wcoj-container { width: 100%; max-width: var(--wcoj-max); margin-inline: auto; padding-inline: var(--wcoj-gutter); }
.wcoj .screen-reader-text, .wcoj-main .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Hero ---------- */
.wcoj-hero { padding-top: clamp(32px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 56px); }
.wcoj-breadcrumbs { position: relative; z-index: 5; font-size: 13px; letter-spacing: .02em; color: var(--wcoj-muted); margin-bottom: clamp(20px, 3vw, 40px); }
.wcoj-breadcrumbs a { color: inherit; text-decoration: none; }
.wcoj-breadcrumbs a:hover { color: var(--wcoj-ink); }
.wcoj-breadcrumbs [aria-current] { color: var(--wcoj-ink); }
.wcoj-hero__title {
	font-family: inherit; font-weight: 400; margin: 0;
	font-size: clamp(34px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.025em; max-width: 18ch;
}
.wcoj-hero__title--long { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.1; max-width: 26ch; }
.wcoj-hero__intro { margin: clamp(18px, 2vw, 28px) 0 0; max-width: none; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; color: #3a3a3a; }
.wcoj-hero__intro > :first-child { margin-top: 0; }
.wcoj-hero__intro > :last-child { margin-bottom: 0; }
.wcoj-hero__intro p { margin: 0 0 1em; }
.wcoj-hero__intro strong { color: var(--wcoj-ink); font-weight: 600; }
.wcoj-hero__intro a { color: var(--wcoj-ink); text-underline-offset: 3px; }

.wcoj-contacts { margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--wcoj-line); }
.wcoj-contacts__title { margin: 0 0 8px; font-family: inherit; font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--wcoj-muted); }
.wcoj-contacts--single { margin-top: 36px; padding-top: 24px; }
.wcoj-contacts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 clamp(16px, 2vw, 32px); }
.wcoj-contacts .wcoj-person:last-child { padding-bottom: 12px; border-bottom: 1px solid var(--wcoj-line); }
.wcoj-contacts a.wcoj-person__name span { display: inline-block; transition: transform .3s var(--wcoj-ease); }
.wcoj-contacts a.wcoj-person__name:hover span { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.wcoj-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 1px solid var(--wcoj-accent); border-radius: var(--wcoj-radius);
	font: inherit; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .25s var(--wcoj-ease), color .25s var(--wcoj-ease);
}
.wcoj-btn svg { width: 18px; height: 18px; }
.wcoj-btn--primary { background: var(--wcoj-accent); color: var(--wcoj-accent-ink); }
.wcoj-btn--primary:hover { background: transparent; color: var(--wcoj-accent); }
.wcoj-btn--ghost { background: transparent; color: var(--wcoj-accent); }
.wcoj-btn--ghost:hover { background: var(--wcoj-accent); color: var(--wcoj-accent-ink); }
.wcoj-btn--block { width: 100%; }
.wcoj-btn:focus-visible, .wcoj a:focus-visible, .wcoj select:focus-visible, .wcoj input:focus-visible, .wcoj-main a:focus-visible {
	outline: 2px solid var(--wcoj-accent); outline-offset: 2px;
}

/* ---------- Search ---------- */
.wcoj-search__bar {
	display: flex; align-items: center; gap: 12px;
	border-bottom: 1px solid var(--wcoj-ink); padding-bottom: 12px; margin-bottom: clamp(28px, 4vw, 56px);
}
.wcoj-search__icon { width: 26px; height: 26px; flex: none; color: var(--wcoj-muted); }
.wcoj-search__bar input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; margin: 0;
	font: inherit; font-size: clamp(18px, 2vw, 26px); color: var(--wcoj-ink); outline: none; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.wcoj-search__bar input::placeholder { color: #a5a5a5; }
.wcoj-search__bar input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Layout ---------- */
.wcoj-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); align-items: start; }

/* ---------- Filters ---------- */
.wcoj-filters { position: sticky; top: calc(var(--wcoj-offset) + 24px); }
.wcoj-filters__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--wcoj-line); margin-bottom: 8px; }
.wcoj-filters__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.wcoj-filters__reset { font-size: 13px; color: var(--wcoj-muted); text-decoration: underline; text-underline-offset: 3px; }
.wcoj-filters__reset:hover { color: var(--wcoj-ink); }
.wcoj-filters__close { display: none; }
.wcoj-filters__foot { display: none; }

.wcoj-filter { border: 0; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--wcoj-line); min-width: 0; }
.wcoj-filter__label { display: block; padding: 0; margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--wcoj-muted); }

.wcoj-select { position: relative; display: block; }
.wcoj-select::after {
	content: ""; position: absolute; right: 2px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none;
}
.wcoj-select select, .wcoj-dates input {
	width: 100%; min-height: 40px; padding: 6px 24px 6px 0; margin: 0;
	border: 0; border-bottom: 1px solid var(--wcoj-ink); border-radius: 0; background: transparent;
	font: inherit; font-size: 15px; color: var(--wcoj-ink); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.wcoj-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wcoj-dates label { display: block; }
.wcoj-dates span { display: block; font-size: 12px; color: var(--wcoj-muted); margin-bottom: 2px; }
.wcoj-dates input { padding-right: 0; font-size: 14px; }

/* ---------- Toolbar ---------- */
.wcoj-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--wcoj-ink); }
.wcoj-count { margin: 0; font-family: inherit; font-weight: 400; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em; text-transform: none; }
.wcoj-bracket { font-size: .62em; color: var(--wcoj-muted); vertical-align: middle; white-space: nowrap; letter-spacing: .04em; margin-left: 6px; }
.wcoj-toolbar__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.wcoj-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wcoj-muted); }
.wcoj-select--inline { display: inline-block; }
.wcoj-select--inline select { min-height: 32px; font-size: 14px; border-bottom-color: transparent; padding-right: 22px; }
.wcoj-select--inline select:hover { border-bottom-color: var(--wcoj-ink); }
.wcoj-filters-toggle { display: none; min-height: 40px; padding: 0 14px; }
.wcoj-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--wcoj-accent); color: var(--wcoj-accent-ink); font-size: 11px; }
.wcoj-filters-toggle:hover .wcoj-badge { background: var(--wcoj-accent-ink); color: var(--wcoj-accent); }

/* ---------- Chips ---------- */
.wcoj-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wcoj-chips li { margin: 0; padding: 0; }
.wcoj-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border: 1px solid var(--wcoj-line); font-size: 13px; color: var(--wcoj-ink); text-decoration: none; transition: border-color .2s; }
.wcoj-chip:hover { border-color: var(--wcoj-ink); }
.wcoj-chip__k { color: var(--wcoj-muted); }

/* ---------- Cards ---------- */
.wcoj-list { display: block; }
.wcoj-card { position: relative; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid var(--wcoj-line); }
.wcoj-card__meta { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 0; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; letter-spacing: .02em; color: var(--wcoj-muted); }
.wcoj-card__meta > * { flex: none; }
.wcoj-card__meta > * + *::before { content: "·"; margin: 0 8px; color: var(--wcoj-line); }
.wcoj-card__meta > .wcoj-card__court { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wcoj-card__signature { color: var(--wcoj-ink); }
.wcoj-card__meta time { color: var(--wcoj-ink); font-variant-numeric: tabular-nums; }
.wcoj-card__court { text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.wcoj-card__type { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.wcoj-card__title { margin: 0; font-family: inherit; font-weight: 400; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.25; letter-spacing: -.01em; text-transform: none; }
.wcoj-card__title a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--wcoj-ease); }
.wcoj-card__title a:hover { background-size: 100% 1px; }
.wcoj-card__title a::after { content: ""; position: absolute; inset: 0; } /* cała karta klikalna */
.wcoj-card__sig { margin: 10px 0 0; font-size: 14px; }
.wcoj-k { color: var(--wcoj-muted); }
.wcoj-sep { margin: 0 6px; color: var(--wcoj-muted); }
.wcoj-card__excerpt { margin: 12px 0 0; max-width: 75ch; font-size: 15px; line-height: 1.65; color: #3a3a3a; }
.wcoj-card__foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.wcoj-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wcoj-tags li { margin: 0; padding: 4px 10px; background: var(--wcoj-soft); font-size: 12px; letter-spacing: .02em; }
.wcoj-tags a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.wcoj-tags a:hover { text-decoration: underline; }
.wcoj-more { position: relative; z-index: 1; margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--wcoj-ink); text-decoration: none; white-space: nowrap; }
.wcoj-more span { display: inline-block; transition: transform .3s var(--wcoj-ease); }
.wcoj-card:hover .wcoj-more span { transform: translateX(6px); }
.wcoj mark, .wcoj-main mark { background: var(--wcoj-mark); color: inherit; padding: 0 1px; }

/* ---------- Empty ---------- */
.wcoj-empty { padding: clamp(40px, 6vw, 80px) 0; text-align: left; color: var(--wcoj-muted); }
.wcoj-empty__title { font-size: clamp(18px, 1.6vw, 22px); color: var(--wcoj-ink); margin: 0 0 6px; }
.wcoj-empty .wcoj-btn { margin-top: 18px; }

/* ---------- Pagination ---------- */
.wcoj-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 96px); }
.wcoj-pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
	border: 1px solid var(--wcoj-line); color: var(--wcoj-ink); text-decoration: none; font-size: 14px; font-variant-numeric: tabular-nums;
	transition: border-color .2s, background .2s, color .2s;
}
.wcoj-pagination a.page-numbers:hover { border-color: var(--wcoj-ink); }
.wcoj-pagination .page-numbers.current { background: var(--wcoj-accent); border-color: var(--wcoj-accent); color: var(--wcoj-accent-ink); }
.wcoj-pagination .page-numbers.dots { border-color: transparent; }

/* ---------- Single ---------- */
.wcoj-single__title { max-width: 34ch; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.015em; }
.wcoj-single__sig { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font-size: 16px; }
.wcoj-single__sig .wcoj-bracket { font-size: 16px; color: var(--wcoj-ink); margin: 0; }
.wcoj-single__case { color: var(--wcoj-muted); }
.wcoj-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 96px); align-items: start; background: linear-gradient(var(--wcoj-ink), var(--wcoj-ink)) var(--wcoj-gutter) 0 / calc(100% - 2 * var(--wcoj-gutter)) 1px no-repeat; padding-top: clamp(28px, 4vw, 56px); }
.wcoj-thesis { margin: 0 0 clamp(28px, 3vw, 44px); padding: clamp(20px, 2.4vw, 32px); background: var(--wcoj-soft); border: 0; border-left: 2px solid var(--wcoj-accent); quotes: none; }
.wcoj-thesis__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--wcoj-muted); margin-bottom: 10px; font-style: normal; }
.wcoj-thesis p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; font-style: normal; }
.wcoj-content { font-size: 17px; line-height: 1.75; max-width: 72ch; }
.wcoj-content > *:first-child { margin-top: 0; }
.wcoj-content a { color: inherit; text-underline-offset: 3px; }
.wcoj-content blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--wcoj-line); color: #3a3a3a; }
.wcoj-content img { max-width: 100%; height: auto; }

/* Formatowanie w treści wyroku i we wstępie listy – motyw zeruje style, przywracamy je. */
.wcoj-content h1, .wcoj-content h2, .wcoj-content h3, .wcoj-content h4, .wcoj-content h5, .wcoj-content h6, .wcoj-hero__intro h1, .wcoj-hero__intro h2, .wcoj-hero__intro h3, .wcoj-hero__intro h4, .wcoj-hero__intro h5, .wcoj-hero__intro h6 { display:block !important; font-family:inherit !important; color:var(--wcoj-ink) !important; font-weight:400 !important; font-style:normal !important; text-transform:none !important; letter-spacing:-.01em !important; line-height:1.25 !important; margin:1.6em 0 .6em !important; padding:0 !important; }
.wcoj-content h1, .wcoj-hero__intro h1 { font-size:2em !important; }
.wcoj-content h2, .wcoj-hero__intro h2 { font-size:1.6em !important; }
.wcoj-content h3, .wcoj-hero__intro h3 { font-size:1.35em !important; }
.wcoj-content h4, .wcoj-hero__intro h4 { font-size:1.15em !important; font-weight:500 !important; }
.wcoj-content h5, .wcoj-hero__intro h5 { font-size:1em !important; font-weight:600 !important; }
.wcoj-content h6, .wcoj-hero__intro h6 { font-size:.85em !important; font-weight:600 !important; text-transform:uppercase !important; letter-spacing:.06em !important; color:var(--wcoj-muted) !important; }
.wcoj-content p, .wcoj-hero__intro p { display:block !important; margin:0 0 1em !important; }
.wcoj-content strong, .wcoj-content b, .wcoj-hero__intro strong, .wcoj-hero__intro b { font-weight:700 !important; }
.wcoj-content em, .wcoj-content i, .wcoj-content cite, .wcoj-content dfn, .wcoj-hero__intro em, .wcoj-hero__intro i, .wcoj-hero__intro cite, .wcoj-hero__intro dfn { font-style:italic !important; }
.wcoj-content u, .wcoj-content ins, .wcoj-hero__intro u, .wcoj-hero__intro ins { text-decoration:underline !important; text-underline-offset:3px; }
.wcoj-content s, .wcoj-content del, .wcoj-content strike, .wcoj-hero__intro s, .wcoj-hero__intro del, .wcoj-hero__intro strike { text-decoration:line-through !important; }
.wcoj-content sup, .wcoj-hero__intro sup { font-size:.75em !important; vertical-align:super !important; line-height:0 !important; }
.wcoj-content sub, .wcoj-hero__intro sub { font-size:.75em !important; vertical-align:sub !important; line-height:0 !important; }
.wcoj-content small, .wcoj-hero__intro small { font-size:.85em !important; }
.wcoj-content mark, .wcoj-hero__intro mark { background:var(--wcoj-mark) !important; color:inherit !important; padding:0 .15em; }
.wcoj-content a, .wcoj-hero__intro a { color:inherit !important; text-decoration:underline !important; text-underline-offset:3px; }
.wcoj-content a:hover, .wcoj-hero__intro a:hover { text-decoration-thickness:2px !important; }
.wcoj-content blockquote, .wcoj-hero__intro blockquote { display:block !important; margin:1.5em 0 !important; padding:0 0 0 20px !important; border-left:2px solid var(--wcoj-ink) !important; font-style:italic; color:#3a3a3a !important; }
.wcoj-content blockquote p:last-child, .wcoj-hero__intro blockquote p:last-child { margin-bottom:0 !important; }
.wcoj-content code, .wcoj-content kbd, .wcoj-hero__intro code, .wcoj-hero__intro kbd { font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size:.9em !important; background:var(--wcoj-soft) !important; padding:.1em .35em; }
.wcoj-content pre, .wcoj-hero__intro pre { display:block !important; white-space:pre-wrap !important; overflow-x:auto; font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size:.9em !important; background:var(--wcoj-soft) !important; padding:16px !important; margin:0 0 1.2em !important; }
.wcoj-content pre code, .wcoj-hero__intro pre code { background:none !important; padding:0; }
.wcoj-content hr, .wcoj-hero__intro hr { display:block !important; border:0 !important; border-top:1px solid var(--wcoj-line) !important; height:0 !important; margin:2em 0 !important; background:none !important; }
.wcoj-content ul, .wcoj-content ol, .wcoj-hero__intro ul, .wcoj-hero__intro ol { display:block !important; margin:0 0 1.2em !important; padding:0 0 0 1.6em !important; }
.wcoj-content ul, .wcoj-hero__intro ul { list-style:disc outside !important; }
.wcoj-content ol, .wcoj-hero__intro ol { list-style:decimal outside !important; }
.wcoj-content ul ul, .wcoj-hero__intro ul ul { list-style-type:circle !important; }
.wcoj-content ul ul ul, .wcoj-hero__intro ul ul ul { list-style-type:square !important; }
.wcoj-content ol ol, .wcoj-hero__intro ol ol { list-style-type:lower-alpha !important; }
.wcoj-content ol ol ol, .wcoj-hero__intro ol ol ol { list-style-type:lower-roman !important; }
.wcoj-content ol[type='a'], .wcoj-hero__intro ol[type='a'] { list-style-type:lower-alpha !important; }
.wcoj-content ol[type='A'], .wcoj-hero__intro ol[type='A'] { list-style-type:upper-alpha !important; }
.wcoj-content ol[type='i'], .wcoj-hero__intro ol[type='i'] { list-style-type:lower-roman !important; }
.wcoj-content ol[type='I'], .wcoj-hero__intro ol[type='I'] { list-style-type:upper-roman !important; }
.wcoj-content li ul, .wcoj-content li ol, .wcoj-hero__intro li ul, .wcoj-hero__intro li ol { margin:.4em 0 0 !important; }
.wcoj-content li, .wcoj-hero__intro li { display:list-item !important; list-style:inherit !important; margin:0 0 .5em !important; padding:0 !important; background:none !important; }
.wcoj-content li::before, .wcoj-hero__intro li::before { content:none !important; display:none !important; }
.wcoj-content li::marker, .wcoj-hero__intro li::marker { color:var(--wcoj-ink); }
.wcoj-content img, .wcoj-hero__intro img { max-width:100% !important; height:auto !important; }
.wcoj-content figure, .wcoj-hero__intro figure { margin:1.5em 0 !important; }
.wcoj-content figcaption, .wcoj-hero__intro figcaption { font-size:.85em !important; color:var(--wcoj-muted) !important; margin-top:.5em !important; }
.wcoj-content .has-text-align-center, .wcoj-content .aligncenter, .wcoj-hero__intro .has-text-align-center, .wcoj-hero__intro .aligncenter { text-align:center !important; }
.wcoj-content .has-text-align-right, .wcoj-content .alignright, .wcoj-hero__intro .has-text-align-right, .wcoj-hero__intro .alignright { text-align:right !important; }
.wcoj-content .has-text-align-left, .wcoj-hero__intro .has-text-align-left { text-align:left !important; }
.wcoj-content img.aligncenter, .wcoj-hero__intro img.aligncenter { display:block !important; margin-left:auto !important; margin-right:auto !important; }
.wcoj-content img.alignleft, .wcoj-hero__intro img.alignleft { float:left; margin:.3em 1.2em 1em 0 !important; }
.wcoj-content img.alignright, .wcoj-hero__intro img.alignright { float:right; margin:.3em 0 1em 1.2em !important; }
.wcoj-content > *:first-child, .wcoj-hero__intro > *:first-child { margin-top:0 !important; }
.wcoj-content::after, .wcoj-hero__intro::after { content:''; display:table; clear:both; }

.wcoj-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.wcoj-content th, .wcoj-content td { border-bottom: 1px solid var(--wcoj-line); padding: 10px 12px 10px 0; text-align: left; }
.wcoj-keywords { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--wcoj-line); font-size: 13px; }
.wcoj-back { display: inline-flex; gap: 8px; margin: 36px 0 clamp(48px, 6vw, 96px); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--wcoj-ink); text-decoration: none; }
.wcoj-back:hover span { transform: translateX(-4px); }
.wcoj-back span { transition: transform .3s var(--wcoj-ease); }

.wcoj-single__aside { position: sticky; top: calc(var(--wcoj-offset) + 24px); }
.wcoj-details { border: 1px solid var(--wcoj-line); padding: 24px; }
.wcoj-details__title { margin: 0 0 8px; font-family: inherit; font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.wcoj-details dl { margin: 0; }
.wcoj-details dl > div { padding: 12px 0; border-bottom: 1px solid var(--wcoj-line); }
.wcoj-details dl > div:last-child { border-bottom: 0; }
.wcoj-details dt { font-size: 12px; color: var(--wcoj-muted); margin: 0 0 3px; }
.wcoj-details dd { margin: 0; font-size: 15px; line-height: 1.45; }
.wcoj-details dd a { color: inherit; text-underline-offset: 3px; }
.wcoj-details__actions { display: grid; gap: 8px; margin-top: 16px; }

.wcoj-files { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--wcoj-line); }
.wcoj-files .wcoj-details__title .wcoj-bracket { margin: 0; font-size: inherit; color: var(--wcoj-muted); }
.wcoj-files__list { list-style: none; margin: 0; padding: 0; }
.wcoj-files__list li { border-bottom: 1px solid var(--wcoj-line); }
.wcoj-files__list li:last-child { border-bottom: 0; }
.wcoj-file { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; color: var(--wcoj-ink); text-decoration: none; font-size: 15px; line-height: 1.4; }
.wcoj-file__name { min-width: 0; overflow-wrap: anywhere; }
.wcoj-file__meta { flex: none; font-size: 12px; color: var(--wcoj-muted); white-space: nowrap; }
.wcoj-file:hover .wcoj-file__name { text-decoration: underline; text-underline-offset: 3px; }

.wcoj-people { margin-top: 16px; }
.wcoj-people__list { list-style: none; margin: 0; padding: 0; }
.wcoj-person { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--wcoj-line); }
.wcoj-person:last-child { border-bottom: 0; padding-bottom: 0; }
.wcoj-person__photo { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: var(--wcoj-radius); background: var(--wcoj-soft); }
.wcoj-person__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wcoj-person__name { font-size: 15px; line-height: 1.35; color: var(--wcoj-ink); }
a.wcoj-person__name { text-decoration: none; }
a.wcoj-person__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wcoj-person__role { font-size: 12px; color: var(--wcoj-muted); line-height: 1.4; }

.wcoj-related { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 96px); background: linear-gradient(var(--wcoj-line), var(--wcoj-line)) var(--wcoj-gutter) 0 / calc(100% - 2 * var(--wcoj-gutter)) 1px no-repeat; }
.wcoj-related .wcoj-count { padding-bottom: 18px; border-bottom: 1px solid var(--wcoj-ink); }
.wcoj-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.wcoj-related .wcoj-card { border-bottom: 0; }
.wcoj-related .wcoj-card__excerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1024px) {
	.wcoj-layout { grid-template-columns: minmax(0, 1fr); }
	.wcoj-filters-toggle { display: inline-flex; }

	.wcoj-filters {
		position: fixed; z-index: 100000; top: 0; bottom: 0; left: 0; width: min(380px, 88vw);
		background: var(--wcoj-bg); padding: 20px var(--wcoj-gutter) 0; overflow-y: auto; overscroll-behavior: contain;
		transform: translateX(-102%); visibility: hidden; transition: transform .35s var(--wcoj-ease), visibility 0s .35s;
		display: flex; flex-direction: column;
	}
	.wcoj-filters.is-open { transform: none; visibility: visible; transition: transform .35s var(--wcoj-ease); box-shadow: 0 0 60px rgba(0,0,0,.18); }
	.wcoj-filters__head { align-items: center; }
	.wcoj-filters__close { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--wcoj-ink); }
	.wcoj-filters__reset { margin-left: auto; }
	.wcoj-filters__foot { display: block; position: sticky; bottom: 0; margin-top: auto; padding: 16px 0 20px; background: var(--wcoj-bg); }
	.wcoj-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.4); }
	.wcoj-overlay[hidden] { display: none; }
	body.wcoj-lock { overflow: hidden; }

	.wcoj-single__grid { grid-template-columns: minmax(0, 1fr); }
	.wcoj-single__aside { position: static; order: -1; }
	.wcoj-related__grid { grid-template-columns: minmax(0, 1fr); }
	.wcoj-related .wcoj-card { border-bottom: 1px solid var(--wcoj-line); }
}

@media (max-width: 640px) {
	.wcoj-search__bar { flex-wrap: wrap; }
	.wcoj-search__bar input[type="search"] { flex-basis: calc(100% - 40px); }
	.wcoj-search__bar .wcoj-btn { width: 100%; }
	.wcoj-toolbar { align-items: flex-start; flex-direction: column; }
	.wcoj-toolbar__right { width: 100%; justify-content: space-between; }
	.wcoj-card__foot { align-items: flex-start; }
	.wcoj-content { font-size: 16px; }
	.wcoj-details { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.wcoj-main *, .wcoj * { transition: none !important; }
}
