/*
 * Docs index, doc pages and the change log (page-docs.php, single-documentation.php, page-change-log.php).
 * Alex's rule holds here too: a rounded element gets a ring on all four sides or none; selected = background, color, dot.
 */

/* ---------- Shared ---------- */
:root {
	--docs-rose: #fce7ee;
	--docs-nav-w: 280px;
	--docs-gap: clamp(40px, 6vw, 88px);
}

.docs-topic--mint { --tint: var(--mint); --deep: #1c5e43; }
.docs-topic--butter { --tint: var(--butter); --deep: #7a5a00; }
.docs-topic--peach { --tint: var(--peach); --deep: #9a3412; }
.docs-topic--lilac { --tint: var(--lilac); --deep: #4b3fb5; }
.docs-topic--sky { --tint: var(--sky); --deep: #1d5a80; }
.docs-topic--rose { --tint: var(--docs-rose); --deep: #9c2452; }

/* ---------- Docs index: sky band search ---------- */
.docs-search {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 600px;
	margin: 6px 0 0;
}

.docs-search__label {
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.docs-search__field {
	position: relative;
}

.docs-search__field > .icon--search {
	position: absolute;
	top: 18px;
	left: 18px;
	color: var(--muted);
	pointer-events: none;
}

.docs-search__input {
	width: 100%;
	min-height: 58px;
	padding: 0 58px 0 52px;
	border: 1.5px solid rgba(35, 26, 58, 0.16);
	border-radius: var(--r-input);
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 600;
	box-shadow: 0 18px 40px -26px rgba(35, 26, 58, 0.45);
	-webkit-appearance: none;
	appearance: none;
}

.docs-search__input::placeholder {
	color: var(--muted-2);
	font-weight: 500;
	opacity: 1;
}

.docs-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.docs-search__input:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(210, 64, 31, 0.18);
	outline-offset: 0;
}

.docs-search__clear {
	position: absolute;
	top: 7px;
	right: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand);
	color: #3b3352;
	cursor: pointer;
}

.docs-search__clear:hover {
	background: var(--track);
	color: var(--ink);
}

.docs-search__clear[hidden] {
	display: none;
}

.docs-search__status {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	overflow-wrap: anywhere;
}

.docs-start {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding-bottom: 8px;
}

.docs-start__label {
	color: #3b3352;
	font-size: 14px;
	font-weight: 700;
}

.docs-start__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.docs-start__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px 0 6px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.1);
	color: var(--ink);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.docs-start__chip:hover {
	background: var(--white);
	color: var(--ink);
}

.docs-start__n {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--pill);
	background: var(--accent-tint);
	color: var(--accent-dark);
	font-size: 13px;
	font-weight: 800;
}

.wpcc26-docs-index .sky__spot {
	width: clamp(220px, 24vw, 340px);
	margin-bottom: -24px;
}

/* ---------- Docs index: topics ---------- */
.docs-topics {
	padding-top: clamp(40px, 5vw, 72px);
}

.docs-topics__wrap {
	gap: clamp(28px, 3.5vw, 40px);
}

.docs-topics__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
}

.docs-topics__head .h2 {
	min-width: 0;
	overflow-wrap: anywhere;
}

.docs-topics__new {
	min-height: 44px;
	font-size: 16px;
}

.docs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
	gap: 20px;
}

.docs-grid[hidden] {
	display: none;
}

.docs-topic {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(22px, 2.4vw, 30px);
	border-radius: 26px;
	background: var(--tint);
	scroll-margin-top: 24px;
}

.docs-topic[hidden] {
	display: none;
}

.docs-topic__head {
	display: flex;
	align-items: center;
	gap: 14px;
}

.docs-topic__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--pill);
	background: var(--white);
	color: var(--deep);
	box-shadow: 0 8px 18px -12px rgba(35, 26, 58, 0.35);
}

.docs-topic__title {
	margin: 0;
	color: var(--ink);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.docs-topic__count {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.docs-topic__blurb {
	margin: 0;
	color: var(--body);
	font-size: 16px;
	line-height: 1.55;
}

.docs-topic__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* List rows are square, so a top rule between them is allowed. */
.docs-topic__list > li {
	border-top: 1px solid var(--line);
}

.docs-topic__list > li[hidden] {
	display: none;
}

.docs-topic__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 52px;
	padding: 12px 0;
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

.docs-topic__link:hover {
	color: var(--ink);
}

.docs-topic__link:hover .docs-topic__name {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.docs-topic__link .icon {
	flex: none;
	color: var(--deep);
	transition: transform 160ms ease;
}

.docs-topic__link:hover .icon {
	transform: translateX(3px);
}

.docs-topic mark {
	border-radius: 4px;
	background: #ffd66b;
	color: var(--ink);
}

.docs-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: var(--r-lg);
	background: var(--white);
	box-shadow: var(--shadow-card);
	text-align: center;
}

.docs-empty[hidden] {
	display: none;
}

.docs-empty__icon {
	width: 56px;
	height: 56px;
}

.docs-empty p {
	max-width: 480px;
	margin: 0;
	color: var(--body);
	font-size: 16px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.docs-empty__chips,
.docs-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 10px;
}

.docs-chip {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand);
	box-shadow: inset 0 0 0 1px rgba(35, 26, 58, 0.1);
	color: #3b3352;
	font-size: 14px;
	font-weight: 650;
	cursor: pointer;
}

.docs-chip:hover {
	background: var(--track);
	color: var(--ink);
}

/* ---------- Docs index: still stuck ---------- */
.docs-help__illo {
	flex: 1 1 300px;
	display: flex;
	justify-content: center;
}

.docs-help__illo img {
	width: min(100%, 320px);
}

.docs-help__copy {
	flex: 1 1 520px;
	align-items: flex-start;
}

.docs-help__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.docs-help__copy .rows {
	align-self: stretch;
}

.docs-help .row-link__text strong {
	flex-basis: 220px;
}

@media (max-width: 900px) {
	.docs-help__illo img {
		width: min(64%, 220px);
	}
}

/* ---------- Doc page: sky band ---------- */
.wpcc26-doc .sky__copy {
	gap: 14px;
	padding-bottom: 20px;
}

.wpcc26-doc .sky__copy .h1 {
	max-width: 780px;
}

.doc-crumbs {
	order: -1;
}

.doc-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.doc-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.doc-crumbs a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--muted);
	text-decoration: none;
}

.doc-crumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.doc-crumbs .icon {
	color: var(--muted-2);
}

.doc-crumbs [aria-current] {
	display: block;
	max-width: 420px;
	overflow: hidden;
	color: #3b3352;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.doc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 14px;
}

.doc-meta li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.doc-meta .doc-meta__topic {
	gap: 8px;
	padding: 5px 12px 5px 5px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
	color: #2e2547;
	font-weight: 600;
}

.doc-meta__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: var(--pill);
}

.doc-meta__topic--mint .doc-meta__icon { background: var(--mint); color: #1c5e43; }
.doc-meta__topic--butter .doc-meta__icon { background: var(--butter); color: #7a5a00; }
.doc-meta__topic--peach .doc-meta__icon { background: var(--peach); color: #9a3412; }
.doc-meta__topic--lilac .doc-meta__icon { background: var(--lilac); color: #4b3fb5; }
.doc-meta__topic--sky .doc-meta__icon { background: var(--sky); color: #1d5a80; }
.doc-meta__topic--rose .doc-meta__icon { background: var(--docs-rose); color: #9c2452; }

/* ---------- Doc page: layout ---------- */
.doc-section {
	padding-top: clamp(16px, 2.5vw, 36px);
}

.doc-layout {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.doc {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
	max-width: 700px;
}

@media (min-width: 901px) {
	.doc-layout {
		flex-direction: row;
		align-items: flex-start;
		gap: var(--docs-gap);
	}

	.docnav {
		flex: 0 0 var(--docs-nav-w);
	}

	.doc {
		flex: 1 1 0;
	}

	/* Line the title up with the article column, as in the mockup. */
	.wpcc26-doc .sky__copy {
		padding-left: calc(var(--docs-nav-w) + var(--docs-gap));
	}
}

/* ---------- Doc page: sidebar ---------- */
.docnav {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.docnav__toggle {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.1);
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.docnav__toggle-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.docnav__toggle .icon--down {
	transition: transform 160ms ease;
}

.docnav__toggle[aria-expanded="true"] .icon--down {
	transform: rotate(180deg);
}

.docnav__list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.docnav__back {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px 0 12px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.72);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.1);
	color: var(--ink);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.docnav__back:hover {
	background: var(--white);
	color: var(--ink);
}

.docnav__group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.docnav__label {
	margin: 0;
	padding: 0 12px;
	color: var(--muted-2);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.docnav__group ul {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.docnav__link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 14px;
	color: #3b3352;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
}

.docnav__link:hover {
	background: rgba(255, 255, 255, 0.6);
	color: var(--ink);
}

.docnav__dot {
	flex: none;
	width: 7px;
	height: 7px;
	margin-top: 8px;
	border-radius: var(--pill);
	background: rgba(35, 26, 58, 0.22);
}

.docnav__link[aria-current="page"] {
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.08), 0 10px 24px -16px rgba(35, 26, 58, 0.35);
	color: var(--accent-dark);
	font-weight: 700;
}

.docnav__link[aria-current="page"] .docnav__dot {
	background: var(--accent);
}

@media (max-width: 900px) {
	.docnav.is-collapsible .docnav__toggle {
		display: flex;
	}

	.docnav.is-collapsible:not(.is-open) .docnav__list {
		display: none;
	}
}

/* ---------- Doc page: the guide ---------- */
.doc__body.prose {
	font-size: 17px;
}

.doc__body.prose > * + * {
	margin-top: 24px;
}

.doc__body.prose > figure {
	margin-bottom: 0;
}

.doc__body.prose > :first-child {
	margin-top: 0;
}

.doc__body video {
	display: block;
	width: 100%;
	border-radius: var(--r-md);
	background: var(--dark);
}

.doc-step {
	padding: clamp(20px, 2.6vw, 30px);
	border-radius: 26px;
	background: var(--white);
	box-shadow: var(--shadow-card);
}

.doc__body .doc-step > * {
	margin-top: 0;
	margin-bottom: 0;
}

.doc__body .doc-step > * + * {
	margin-top: 16px;
}

.doc__body .doc-step > figure,
.doc__body .doc-step > .wp-block-image,
.doc__body .doc-step > .wp-block-gallery {
	margin-top: 18px;
}

.doc__body .doc-step img {
	box-shadow: 0 0 0 1px var(--line);
}

.prose .doc-step__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	font-size: clamp(22px, 2vw, 26px);
	line-height: 1.2;
	letter-spacing: -0.01em;
	scroll-margin-top: 24px;
}

.doc-step__n {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--pill);
	background: var(--accent-tint);
	color: var(--accent-dark);
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0;
}

/* The number is drawn, not written, so the heading's text stays "Step 1: …" for search and AI readers. */
.doc-step__n::before {
	content: attr(data-n);
}

/* ---------- Doc page: feedback and prev/next ---------- */
.doc-feedback {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.6vw, 28px);
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.06);
}

.doc-feedback__ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.doc-feedback__ask[hidden],
.doc-feedback__done[hidden] {
	display: none;
}

.doc-feedback__q {
	margin: 0;
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.doc-feedback__hint {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 14px;
}

.doc-feedback__btns {
	display: flex;
	gap: 8px;
}

.doc-feedback__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: var(--pill);
	background: var(--sand);
	box-shadow: inset 0 0 0 1px rgba(35, 26, 58, 0.1);
	color: var(--ink);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.doc-feedback__btn:hover {
	background: var(--track);
}

.doc-feedback__done {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--r-md);
	background: var(--success-bg);
	color: var(--success);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
}

.doc-feedback__done:focus {
	outline: none;
}

.doc-feedback__done--no {
	background: var(--sand);
	color: var(--ink);
}

.doc-feedback__done--no a {
	color: var(--accent-dark);
	font-weight: 700;
}

.doc-feedback__msg {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.doc-feedback__msg .icon {
	flex: none;
}

.doc-feedback__undo {
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--pill);
	background: var(--white);
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

/* A square paragraph, so the top rule is allowed. */
.doc-feedback__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 16px;
	margin: 0;
	padding-top: 6px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 15px;
}

.doc-feedback__more .text-link {
	min-height: 44px;
}

.doc-pager {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 14px;
}

.doc-pager__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-radius: 22px;
	background: var(--white);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.08);
	color: var(--ink);
	text-decoration: none;
	transition: box-shadow 160ms ease;
}

.doc-pager__link:hover {
	color: var(--ink);
	box-shadow: 0 0 0 1px rgba(35, 26, 58, 0.14), var(--shadow-card);
}

.doc-pager__link--next {
	grid-column-end: -1;
	justify-content: flex-end;
	text-align: right;
}

.doc-pager__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pill);
	background: var(--accent-tint);
	color: var(--accent-dark);
}

.doc-pager__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.doc-pager__dir {
	color: var(--muted-2);
	font-size: 13px;
	font-weight: 700;
}

.doc-pager__title {
	font-size: 16px;
	font-weight: 650;
	line-height: 1.35;
}

/* ---------- Change log ---------- */
.cl-current {
	order: -1;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 14px 6px 6px;
	border-radius: var(--pill);
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
	color: #2e2547;
	font-size: 14px;
	font-weight: 600;
}

.cl-current b {
	padding: 4px 10px;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.wpcc26-changelog .sky__copy {
	padding-bottom: 24px;
}

.cl-section {
	padding-top: clamp(32px, 4vw, 56px);
}

.cl-wrap {
	gap: 24px;
}

.cl-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
}

.cl-filter {
	justify-content: flex-start;
}

.cl-filter[hidden],
.cl-expand[hidden] {
	display: none;
}

.cl-filter .seg__btn {
	gap: 8px;
	padding: 0 16px;
	font-size: 14px;
}

.cl-filter__n {
	color: var(--muted);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.cl-dot {
	width: 9px;
	height: 9px;
	border-radius: var(--pill);
}

.cl-dot--added { background: #2e8b62; }
.cl-dot--improved { background: #2c7bb0; }
.cl-dot--fixed { background: #d2603a; }

.cl-toolbar__side {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
}

.cl-status {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.cl-expand {
	gap: 8px;
	font-size: 14px;
}

/* Release lines: square rows with a rule between them (allowed), cards inside. */
.cl-lines {
	border-bottom: 1px solid var(--line);
}

.cl-line {
	border-top: 1px solid var(--line);
}

.cl-line[hidden] {
	display: none;
}

.cl-line__head {
	margin: 0;
	font-family: var(--font-sans);
}

.cl-line__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	width: 100%;
	min-height: 84px;
	padding: 16px 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	text-align: left;
}

button.cl-line__bar {
	cursor: pointer;
}

.cl-line__chev {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--pill);
	background: var(--accent-tint);
	color: var(--accent-dark);
}

.cl-line__chev .icon {
	transition: transform 160ms ease;
}

.cl-line.is-open .cl-line__chev .icon {
	transform: rotate(90deg);
}

.cl-line__label {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 170px;
}

.cl-line__v {
	color: var(--ink);
	font-family: var(--font-serif);
	font-variation-settings: "SOFT" 100, "WONK" 0;
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}

.cl-line__meta {
	color: var(--muted);
	font-size: 14px;
	font-weight: 500;
}

.cl-line__teaser {
	display: none;
	flex: 1 1 240px;
	min-width: 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cl-line.is-collapsed .cl-line__teaser {
	display: block;
}

.cl-line__counts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.cl-count {
	padding: 4px 10px;
	border-radius: var(--pill);
	font-size: 12px;
	font-weight: 800;
	white-space: nowrap;
}

.cl-count[hidden] {
	display: none;
}

.cl-count--added,
.cl-tag--added { background: var(--mint); color: #1c5e43; }

.cl-count--improved,
.cl-tag--improved { background: var(--sky); color: #1d5a80; }

.cl-count--fixed,
.cl-tag--fixed { background: var(--peach); color: #9a3412; }

/* The body itself has no padding, so hidden="until-found" folds it to nothing. */
.cl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
	gap: 16px;
	padding: 4px 0 28px;
}

.cl-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: clamp(20px, 2.4vw, 26px);
	border-radius: var(--r-card);
	background: var(--white);
	box-shadow: var(--shadow-card);
	scroll-margin-top: 24px;
}

.cl-card[hidden] {
	display: none;
}

.cl-card--wide {
	grid-column: 1 / -1;
}

.cl-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
}

.cl-card__name {
	display: flex;
	align-items: center;
	gap: 10px;
}

.cl-card__v {
	margin: 0;
	color: var(--ink);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

.cl-card__latest {
	padding: 3px 10px;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--white);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cl-card__date {
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.cl-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.cl-item[hidden] {
	display: none;
}

.cl-tag {
	flex: none;
	display: inline-flex;
	justify-content: center;
	min-width: 82px;
	margin-top: 1px;
	padding: 3px 10px;
	border-radius: var(--pill);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cl-item__text {
	min-width: 0;
	color: #3b3352;
	font-size: 15px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.cl-item__text a {
	color: var(--accent-dark);
	font-weight: 600;
}

.cl-cta__text {
	font-size: 16px;
}

.cl-cta__btn {
	align-self: flex-start;
}

.cl-help__ctas {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 18px;
}

.cl-help__btn {
	background: var(--white);
	color: var(--success);
	font-weight: 700;
}

.cl-help__btn:hover {
	color: var(--success);
}

.cl-help__link {
	min-height: 46px;
	color: var(--success);
}

.cl-help__link:hover {
	color: #0f3f2c;
}

@media (max-width: 720px) {
	.cl-line.is-collapsed .cl-line__teaser {
		display: none;
	}

	.cl-line__counts {
		margin-left: 0;
	}

	.cl-line__label {
		flex: 1 1 200px;
		min-width: 0;
	}

	.doc-crumbs [aria-current] {
		max-width: 260px;
	}
}

@media (max-width: 520px) {
	.docs-start__chip,
	.docs-help__ctas .btn {
		width: 100%;
	}

	.docs-start__list {
		width: 100%;
	}

	.docs-start__list li {
		flex: 1 1 100%;
	}

	.doc-feedback__btns {
		width: 100%;
	}

	.doc-feedback__btn {
		flex: 1;
		justify-content: center;
	}

	/* Status and "Expand all" share one row; the theme's full-width phone buttons don't apply here. */
	.cl-toolbar__side {
		width: 100%;
		flex-wrap: nowrap;
		justify-content: space-between;
	}

	.cl-toolbar .cl-expand {
		flex: none;
		width: auto;
	}
}
