/**
 * My Kit.
 *
 * Scoped entirely to .ksec-kit-* so it cannot leak into the Shoptimizer
 * account area around it, but NOT deferential: the first pass inherited the
 * theme so completely that a collection card did not read as an object and a
 * badge read as a bullet. A badge system that looks like a definition list has
 * failed at the only job it has.
 *
 * Palette is steel and brass, taken from the products themselves: steel picks,
 * brass locks. Discipline tones (teal, violet, amber) separate the families at
 * a glance. Brass is spent in exactly one place, completion, and nowhere else.
 */

.ksec-kit-stats,
.ksec-kit-collections,
.ksec-kit-unstarted,
.ksec-kit-ladder,
.ksec-kit-timeline,
.ksec-kit-detail-head,
.ksec-kit-done {
	--kk-ink: #17202a;
	--kk-muted: #5f6b78;
	--kk-line: #dfe3e7;
	--kk-ground: #f6f8f9;
	--kk-steel: #3b5a72;
	--kk-brass: #9a6d28;
	/*
	 * Brass for TEXT, separately, because #9a6d28 fails AA everywhere the
	 * design puts it on a brass tint: 3.90:1 on the complete pill, 4.39:1 on
	 * the held ladder row, 4.29:1 on the stat ground, and a bare 4.57:1 on
	 * white. Completion is the one place this palette spends brass, and it was
	 * the one place a low vision member could not read it. #7a561d gives
	 * 5.64 to 6.61:1 on the same grounds. The coin and the rung pips keep the
	 * lighter brass, since a graphic only needs 3:1.
	 */
	--kk-brass-text: #7a561d;
	--kk-teal: #2c6e6b;
	--kk-violet: #5b4b8a;
	--kk-amber: #8a6420;
}

/* ---- text for assistive tech only ------------------------------------- */

/*
 * THIS PLUGIN CANNOT USE THE THEME'S .screen-reader-text AND MUST RESTATE IT.
 *
 * Measured on labs 2026-09-11, on the live account page: Shoptimizer's
 * main.min.css declares `.screen-reader-text, .sr-only { visibility: hidden }`
 * and nothing else on the page declares visibility for that class, so it wins
 * whatever the source order. `visibility: hidden` takes an element out of the
 * accessibility tree, which is the one thing this class exists NOT to do, so a
 * name parked in that span would have been hidden from sighted members and
 * from screen readers alike: markup that looks correct and says nothing.
 *
 * Kept under the conventional class name rather than a private one so the
 * markup still reads the way the rest of the estate writes it, and so a fixed
 * theme would agree with us rather than be overridden by us. Scoped to
 * .ksec-kit, which out-specifies the theme's single class on its own.
 */
.ksec-kit .screen-reader-text {
	position: absolute;
	visibility: visible;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

/* ---- badge medallion -------------------------------------------------- */

/*
 * The glyph on a coin: muted when the family is untouched, its discipline's
 * colour once started, brass when complete.
 *
 * The coin SHOWS the state, it does not carry it. Its glyph is aria-hidden and
 * the difference between active and complete is colour alone, so every surface
 * that prints a badge says the state in words too. The overview cards use the
 * progress summary under each one; the detail head uses .ksec-kit-state.
 *
 * ONE size, everywhere. It used to be 44px here and 56, 60 or 64px in the
 * four places that override it, which put two sizes on the My Kit page at
 * once: 44px on the member's own collections and 56px on the twenty in the
 * discovery grid below. That reads as a defect rather than a hierarchy, and
 * it read backwards, since the collections they actually own got the smaller
 * coin. 56px is the size 20 of those 22 badges already were, and it is the
 * size the figure glyphs (operative, runner, cyborg) need to resolve at.
 *
 * Size lives in a local custom property so a future context needs one
 * declaration rather than a width, a height and an icon pair.
 */
.ksec-kit-badge {
	--kk-tone: var(--kk-steel, #3b5a72);
	--kk-badge: 56px;
	--kk-badge-icon: 32px;
	display: inline-grid;
	place-items: center;
	width: var(--kk-badge);
	height: var(--kk-badge);
	flex: none;
	border-radius: 13px;
	background: color-mix(in srgb, var(--kk-tone) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--kk-tone) 26%, transparent);
	color: var(--kk-tone);
}

.ksec-kit-badge .ksec-kit-icon {
	width: var(--kk-badge-icon);
	height: var(--kk-badge-icon);
}

.ksec-kit-badge.tone-steel  { --kk-tone: #3b5a72; }
.ksec-kit-badge.tone-teal   { --kk-tone: #2c6e6b; }
.ksec-kit-badge.tone-violet { --kk-tone: #5b4b8a; }
.ksec-kit-badge.tone-amber  { --kk-tone: #8a6420; }

/*
 * Not started: keep its colour.
 *
 * The first version drained it to grey, which read as DEAD rather than
 * available, and a wall of twenty grey coins is the opposite of an invitation.
 * The dashed edge and lighter ground carry "not yours yet" on their own.
 */
.ksec-kit-badge.is-locked {
	background: color-mix(in srgb, var(--kk-tone) 7%, transparent);
	border-style: dashed;
	border-color: color-mix(in srgb, var(--kk-tone) 30%, transparent);
	opacity: .78;
}

/* The one place brass is spent. */
.ksec-kit-badge.is-complete {
	--kk-tone: #9a6d28;
	background: linear-gradient(160deg, #f3e6cb 0%, #e6d2a8 100%);
	border-color: #c9a95f;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Fallback where color-mix is unavailable. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.ksec-kit-badge { background: rgba(0, 0, 0, .05); border-color: rgba(0, 0, 0, .16); }
}

/* ---- stat rail -------------------------------------------------------- */

/*
 * Separate cards, not a hairline grid.
 *
 * The first version used `gap: 1px` over a background, which is the standard
 * trick for a crisp divider and made the rail read as a TABLE: four cells
 * ruled off from each other, which is how you present data, not achievements.
 * Real gaps, real radius, one card per figure.
 */
.ksec-kit-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin: 0 0 2.25rem;
}

.ksec-kit-stats[data-tiles="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ksec-kit-stats[data-tiles="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ksec-kit-stat {
	background: var(--kk-ground);
	border: 1px solid var(--kk-line);
	border-radius: 10px;
	padding: .95rem 1.05rem 1.05rem;
	display: flex;
	flex-direction: column-reverse;
	gap: .3rem;
}

.ksec-kit-stat .k {
	font-size: .6875rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--kk-muted);
	line-height: 1.2;
}

/* The figure leads. It is the thing a member came to see. */
.ksec-kit-stat .v {
	font-size: 1.9rem;
	font-weight: 800;
	line-height: 1;
	color: var(--kk-ink);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.02em;
}

.ksec-kit-stat .v.is-complete { color: var(--kk-brass-text); }

.ksec-kit-stat.is-brass {
	background: #fdf8ef;
	border-color: #e3d0a8;
}

/* ---- container and heading -------------------------------------------- */

/*
 * The account content area gives no inline-end padding, so every grid ran
 * hard into the right edge of the viewport on desktop. Own container, own
 * breathing room, rather than padding six separate blocks.
 */
.ksec-kit {
	padding-right: 1.25rem;
	box-sizing: border-box;
}

.ksec-kit-head {
	margin: 0 0 1.5rem;
}

.ksec-kit-head h2 {
	margin: 0 0 .3rem;
	font-size: 1.5rem;
	line-height: 1.2;
}

/*
 * One line on desktop. The 62ch cap was making an 86 character sentence wrap
 * at a width with room for twice that, which reads as a squeezed column rather
 * than a deliberate measure.
 */
.ksec-kit-intro {
	margin: 0;
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--kk-muted);
	text-wrap: pretty;
}

@media (max-width: 900px) {
	.ksec-kit { padding-right: 0; }
}

/* ---- section heads ---------------------------------------------------- */

.ksec-kit-collections-head,
.ksec-kit-timeline-head,
.ksec-kit-more-head {
	display: flex;
	align-items: baseline;
	gap: .6rem;
	flex-wrap: wrap;
	margin-bottom: .75rem;
}

.ksec-kit-more-head { margin-top: 2.5rem; }

.ksec-kit-count {
	font-size: .8125rem;
	font-weight: 400;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
}

/* ---- collection cards ------------------------------------------------- */

.ksec-kit-collections {
	display: grid;
	/*
	 * auto-FIT. auto-fill keeps the tracks it cannot populate, so a member
	 * with one started collection got a half width card with dead space beside
	 * it. Third place this has been found in this stylesheet.
	 */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: .85rem;
	margin: 0 0 1rem;
}

/*
 * ...and the other end of the same problem: with the empty track collapsed, a
 * lone card would stretch the full column and read as a banner rather than a
 * card. Cap it so one card is still card shaped. A browser without :has()
 * degrades to the stretched version, which is no worse than before.
 */
.ksec-kit-collections:has(> :only-child) { max-width: 26rem; }
.ksec-kit-unstarted:has(> :only-child)   { max-width: 22rem; }

.ksec-kit-collection {
	display: flex;
	flex-direction: column;
	gap: .6rem;
	padding: 1rem 1.05rem 1.1rem;
	background: #fff;
	border: 1px solid var(--kk-line);
	border-radius: 8px;
}

.ksec-kit-collection.is-complete {
	border-color: #d8c294;
	background: linear-gradient(180deg, #fdfaf3 0%, #fff 62%);
}

.ksec-kit-collection h4 {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
}

.ksec-kit-cardname {
	display: flex;
	flex-direction: column;
	gap: .22rem;
	min-width: 0;
}

.ksec-kit-cardlink {
	color: var(--kk-ink);
	text-decoration: none;
	font-weight: 700;
}

.ksec-kit-cardlink:hover,
.ksec-kit-cardlink:focus { text-decoration: underline; }

.ksec-kit-tier {
	align-self: flex-start;
	font-style: normal;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: .12rem .4rem;
	border-radius: 3px;
	background: var(--kk-ground);
	border: 1px solid var(--kk-line);
	color: var(--kk-muted);
	white-space: nowrap;
}

.ksec-kit-collection.is-complete .ksec-kit-tier {
	background: #f6ecd8;
	border-color: #d8c294;
	color: var(--kk-brass-text);
}

.ksec-kit-blurb {
	margin: 0;
	font-size: .8125rem;
	line-height: 1.45;
	color: var(--kk-muted);
}

/* ---- progress --------------------------------------------------------- */

.ksec-kit-progress {
	margin: 0;
	display: flex;
	align-items: center;
	gap: .6rem;
	font-size: .8125rem;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
}

.ksec-kit-rungs {
	display: inline-flex;
	gap: 4px;
	flex: 1 1 auto;
	max-width: 10rem;
}

.ksec-kit-rungs i {
	height: 7px;
	flex: 1 1 auto;
	border-radius: 4px;
	background: var(--kk-line);
}

.ksec-kit-rungs i.on { background: var(--kk-steel); }
.ksec-kit-collection.is-complete .ksec-kit-rungs i.on { background: var(--kk-brass); }

.ksec-kit-bar {
	flex: 1 1 auto;
	max-width: 10rem;
	height: 7px;
	border-radius: 4px;
	background: var(--kk-line);
	overflow: hidden;
}

.ksec-kit-bar > span { display: block; height: 100%; background: var(--kk-steel); }

.ksec-kit-next {
	margin: 0;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--kk-steel);
}

.ksec-kit-earned {
	margin: 0;
	font-size: .8125rem;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
}

/*
 * The explicit way into a started collection. The card title is a link but is
 * styled as heading text, and the twelve category-shaped families render no
 * tiles and no button, so the card had nothing that looked or measured like a
 * target. 44px, because a warehouse-grade rule applies to a phone too.
 */
.ksec-kit-view {
	margin: .55rem 0 0;
	font-size: .8125rem;
}

.ksec-kit-view a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 600;
	color: var(--kk-steel);
	text-decoration: none;
}

.ksec-kit-view a::after {
	content: " \203A";
	padding-left: .3rem;
}

.ksec-kit-view a:hover,
.ksec-kit-view a:focus-visible { text-decoration: underline; }

.ksec-kit-complete {
	margin: 0;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--kk-brass-text);
}

/* ---- completion panel -------------------------------------------------- */

/*
 * Finishing a collection used to print one bold line. This is the one place on
 * the page that earns a lift, so it gets the brass ground and nothing else
 * does.
 */
.ksec-kit-done {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.2rem 0 0;
	padding: 1.1rem 1.25rem;
	border: 1px solid color-mix(in srgb, var(--kk-brass) 32%, transparent);
	border-radius: 12px;
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--kk-brass) 9%, #fff),
		color-mix(in srgb, var(--kk-brass) 3%, #fff)
	);
}

.ksec-kit-done-body { min-width: 0; }

.ksec-kit-done-head {
	margin: 0 0 .2rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--kk-brass-text);
	letter-spacing: .01em;
}

.ksec-kit-done-facts {
	margin: 0;
	font-size: .875rem;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
}

.ksec-kit-done-next { margin: .45rem 0 0; font-size: .8125rem; }

@media (max-width: 600px) {
	.ksec-kit-done { gap: .8rem; padding: .95rem 1rem; }
	.ksec-kit-done-head { font-size: 1rem; }
}

/* ---- missing list ----------------------------------------------------- */

.ksec-kit-missing-head {
	margin: .1rem 0 .25rem;
	font-size: .6875rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--kk-muted);
}

.ksec-kit-missing {
	margin: 0;
	padding: 0 0 0 1.05rem;
	font-size: .875rem;
}

.ksec-kit-missing li { margin: 0 0 .18rem; }

/* Never signal state by colour alone: the label carries the meaning. */
.ksec-kit-flag {
	font-size: .75rem;
	color: var(--kk-amber);
	font-style: italic;
}

.ksec-kit-note {
	margin: 0;
	font-size: .8125rem;
	color: var(--kk-muted);
}

.ksec-kit-add { margin: .2rem 0 0; }
.ksec-kit-add .button { min-height: 44px; }

.ksec-kit-browse { margin: 0; font-size: .875rem; }

/* ---- discovery -------------------------------------------------------- */

.ksec-kit-unstarted {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: grid;
	/* auto-fit, per the note on .ksec-kit-collections above. */
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: .6rem;
}

.ksec-kit-unstarted li {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .7rem .8rem;
	background: var(--kk-ground);
	border: 1px solid var(--kk-line);
	border-radius: 8px;
	min-height: 44px;
}

.ksec-kit-unstarted .tx {
	display: flex;
	flex-direction: column;
	gap: .1rem;
	min-width: 0;
}

.ksec-kit-unstarted .nm {
	font-weight: 700;
	font-size: .9375rem;
	color: var(--kk-ink);
	text-decoration: none;
}

.ksec-kit-unstarted .nm:hover,
.ksec-kit-unstarted .nm:focus { text-decoration: underline; }

.ksec-kit-unstarted .bl {
	font-size: .8125rem;
	line-height: 1.4;
	color: var(--kk-muted);
}

/* ---- timeline --------------------------------------------------------- */

.ksec-kit-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.15rem;
	border-left: 2px solid var(--kk-line);
	margin-left: 5px;
}

.ksec-kit-year {
	display: inline-block;
	margin: 1.5rem 0 .6rem -1.85rem;
	padding: .16rem .5rem;
	font-weight: 700;
	font-size: .8125rem;
	background: var(--kk-ground);
	border: 1px solid var(--kk-line);
	border-radius: 3px;
	position: relative;
}

.ksec-kit-year:first-child { margin-top: 0; }

.ksec-kit-item {
	position: relative;
	margin: 0 0 .4rem;
	font-size: .9375rem;
}

.ksec-kit-item::before {
	content: "";
	position: absolute;
	left: -1.42rem;
	top: .55em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kk-line);
	border: 1px solid #c7ced4;
}

.ksec-kit-item time {
	display: inline-block;
	min-width: 8rem;
	font-size: .8125rem;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
}

/* A tier reached is an event in the journey, not a purchase. */
.ksec-kit-item.is-award { font-weight: 600; }

.ksec-kit-item.is-award::before {
	background: var(--kk-brass);
	border-color: var(--kk-brass);
	width: 9px;
	height: 9px;
	left: -1.5rem;
}

.ksec-kit-award-label { color: var(--kk-brass-text); }

.ksec-kit-more { margin: .9rem 0 0; font-size: .875rem; }

/* ---- one collection, in full ------------------------------------------ */

.ksec-kit-back { margin: 0 0 1.1rem; font-size: .875rem; }

.ksec-kit-detail-head {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.75rem;
}

.ksec-kit-detail-head h3 { margin: 0 0 .2rem; }

/*
 * The state the coin is showing, in words. Set in the same small uppercase as
 * the section headings so it reads as a label rather than as prose, and never
 * relying on its own colour: brass here is a bonus for a member who can see
 * it, and the word is what actually carries completion.
 */
.ksec-kit-state {
	margin: .35rem 0 0;
	font-size: .6875rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--kk-muted);
}

.ksec-kit-state.is-complete { color: var(--kk-brass-text); }

.ksec-kit-sub {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin: 1.9rem 0 .65rem;
	font-size: .6875rem;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--kk-muted);
}

.ksec-kit-ladder {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	background: var(--kk-line);
	border: 1px solid var(--kk-line);
	border-radius: 8px;
	overflow: hidden;
}

.ksec-kit-ladder li {
	display: flex;
	align-items: baseline;
	gap: .8rem;
	flex-wrap: wrap;
	padding: .75rem .95rem;
	background: #fff;
}

.ksec-kit-ladder li.is-held { background: #fdfaf3; }

.ksec-kit-ladder .t { font-weight: 700; min-width: 10rem; color: var(--kk-muted); }
.ksec-kit-ladder li.is-held .t { color: var(--kk-brass-text); }
.ksec-kit-ladder .r { flex: 1 1 12rem; font-size: .875rem; color: var(--kk-muted); }
.ksec-kit-ladder .d {
	font-size: .8125rem;
	color: var(--kk-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* What the rung pays. Reads as a value, so it gets the brass the held tier
   uses rather than another grey. */
.ksec-kit-ladder .p {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--kk-brass-text);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Distance to the rung being worked on. */
.ksec-kit-ladder .g {
	font-size: .8125rem;
	font-weight: 600;
	color: var(--kk-steel);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	padding: .1rem .45rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--kk-steel) 10%, transparent);
}

/* The rung in progress is the one the member came to look at, so lift it off
   the stack rather than leaving three identical rows. */
.ksec-kit-ladder li.is-next {
	background: #fff;
	box-shadow: inset 3px 0 0 var(--kk-steel);
}

.ksec-kit-ladder li.is-next .t { color: var(--kk-ink); }

.ksec-kit-journey { margin-top: .4rem; }

.ksec-kit-empty { margin: 0 0 1.5rem; }

/* ---- narrow ----------------------------------------------------------- */

@media (max-width: 600px) {
	/* Four tiles across a phone gives four unreadable numbers. */
	.ksec-kit-stats,
	.ksec-kit-stats[data-tiles="3"],
	.ksec-kit-stats[data-tiles="4"] { grid-template-columns: repeat(2, 1fr); }

	/* Three tiles in two columns orphans the third. Let it take the row it
	   was going to sit alone in anyway. */
	.ksec-kit-stats[data-tiles="3"] > :last-child { grid-column: 1 / -1; }

	.ksec-kit-stat .v { font-size: 1.35rem; }

	/* Date above the name: a fixed date column plus a 60 character product
	   name gives a two-word-per-line ribbon. */
	.ksec-kit-item time { display: block; min-width: 0; }

	.ksec-kit-ladder .t { min-width: 0; flex: 1 1 100%; }
}
/**
 * Account nav icon.
 *
 * Shoptimizer paints a generic `a:before` on every My Account nav item and
 * supplies a mask-image per endpoint, for exactly 14 of them. An endpoint it
 * does not know gets no mask, so the pseudo-element renders as a solid filled
 * block. That is the black square, not a missing asset.
 *
 * Matching the theme's own convention: 24px viewBox, stroke #4A5568, width
 * 1.5, round caps and joins. A toolbox, for a kit. The leading `body` adds one
 * element to the selector so this wins regardless of stylesheet order, since
 * this file is enqueued with no dependency on the theme's.
 */
body .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--my-kit a:before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.5C3 8.94772 3.44772 8.5 4 8.5H20C20.5523 8.5 21 8.94772 21 9.5V18C21 19.1046 20.1046 20 19 20H5C3.89543 20 3 19.1046 3 18V9.5Z' stroke='%234A5568' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M8.5 8.5V6C8.5 5.17157 9.17157 4.5 10 4.5H14C14.8284 4.5 15.5 5.17157 15.5 6V8.5' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 13.5H9M15 13.5H21M9 12V15H15V12H9Z' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9.5C3 8.94772 3.44772 8.5 4 8.5H20C20.5523 8.5 21 8.94772 21 9.5V18C21 19.1046 20.1046 20 19 20H5C3.89543 20 3 19.1046 3 18V9.5Z' stroke='%234A5568' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M8.5 8.5V6C8.5 5.17157 9.17157 4.5 10 4.5H14C14.8284 4.5 15.5 5.17157 15.5 6V8.5' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 13.5H9M15 13.5H21M9 12V15H15V12H9Z' stroke='%234A5568' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}


/* ---- discovery card: the whole thing is the target -------------------- */

.ksec-kit-unstarted li { padding: 0; background: none; border: 0; }

.ksec-kit-discover {
	display: flex;
	align-items: flex-start;
	gap: .7rem;
	width: 100%;
	padding: .8rem .85rem;
	background: var(--kk-ground);
	border: 1px solid var(--kk-line);
	border-radius: 10px;
	text-decoration: none;
	color: inherit;
	min-height: 44px;
	transition: transform .13s ease, box-shadow .13s ease, border-color .13s ease, background .13s ease;
}

.ksec-kit-discover:hover,
.ksec-kit-discover:focus-visible {
	background: #fff;
	border-color: #b9c3cc;
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(23, 32, 42, .10);
	text-decoration: none;
}

.ksec-kit-discover:focus-visible {
	outline: 2px solid var(--kk-steel);
	outline-offset: 2px;
}

/* The badge lifts out of its dashed state as the card is considered. */
.ksec-kit-discover:hover .ksec-kit-badge.is-locked {
	border-style: solid;
	background: rgba(59, 90, 114, .08);
	color: var(--kk-steel);
}

.ksec-kit-discover .nm { display: block; }

@media (prefers-reduced-motion: reduce) {
	.ksec-kit-discover { transition: none; }
	.ksec-kit-discover:hover,
	.ksec-kit-discover:focus-visible { transform: none; }
}

/* ---- still to collect: product tiles, not a bullet list --------------- */

/*
 * Image led. A member deciding what to buy next recognises the thing far
 * faster than the words, and a 60 character product title in a bullet list is
 * neither scannable nor attractive. Short name under the image, full name in a
 * .screen-reader-text span alongside it.
 *
 * That span used to be a title attribute, with a comment here claiming nothing
 * was lost. It was: a title is not shown on touch, cannot be reached by
 * keyboard, and is not announced by most screen readers, so the full name
 * reached only a mouse user who hovered and waited.
 */
.ksec-kit-missing {
	list-style: none;
	margin: 0 0 .2rem;
	padding: 0;
	display: grid;
	/*
	 * auto-FIT, not auto-fill. auto-fill keeps the empty tracks it could not
	 * populate, so six tiles in a 900px column were laid out across NINE
	 * tracks and squeezed to 93px each with dead space on the right. auto-fit
	 * collapses the empties and lets the real tiles take the width.
	 */
	/*
	 * A CAPPED track, not 1fr. With 1fr a single tile stretches to the whole
	 * container, and narrowing "top picks" to the next rung made ONE tile the
	 * common case, so a lone product filled the page with one enormous image.
	 * A tile is a tile at any count.
	 */
	grid-template-columns: repeat(auto-fit, minmax(140px, 172px));
	justify-content: start;
	gap: .75rem;
	max-width: 60rem;
}

.ksec-kit-missing li { margin: 0; }

.ksec-kit-missing a {
	display: flex;
	flex-direction: column;
	gap: .28rem;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--kk-line);
	border-radius: 8px;
	padding: .35rem .35rem .45rem;
	background: #fff;
	height: 100%;
	transition: border-color .13s ease, box-shadow .13s ease, transform .13s ease;
}

.ksec-kit-missing a:hover,
.ksec-kit-missing a:focus-visible {
	border-color: #b9c3cc;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(23, 32, 42, .10);
	text-decoration: none;
}

.ksec-kit-missing a:focus-visible {
	outline: 2px solid var(--kk-steel);
	outline-offset: 2px;
}

.ksec-kit-missing .im {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 5px;
	overflow: hidden;
	background: var(--kk-ground);
}

.ksec-kit-missing .im img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ksec-kit-missing .nm {
	font-size: .75rem;
	line-height: 1.25;
	color: var(--kk-ink);
	/* Two lines, then ellipsis. A tile grid only works if the tiles agree. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ksec-kit-missing .ksec-kit-flag {
	font-size: .6875rem;
	line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
	.ksec-kit-missing a { transition: none; }
	.ksec-kit-missing a:hover,
	.ksec-kit-missing a:focus-visible { transform: none; }
}


/* ---- discovery badges read at a glance -------------------------------- */

.ksec-kit-discover:hover .ksec-kit-badge,
.ksec-kit-discover:focus-visible .ksec-kit-badge {
	opacity: 1;
}

/* ---- points, only when a campaign actually pays out ------------------- */

.ksec-kit-points {
	margin: 0;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--kk-brass-text);
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.ksec-kit-badge { --kk-badge: 48px; --kk-badge-icon: 27px; }
}

/* ---- guide sidebar panels ---------------------------------------------- */

/*
 * These render in a blog post's sidebar, not on the account page, so they are
 * the one part of this stylesheet that has to survive a container it does not
 * control. Everything is sized in rem or percentages and nothing assumes a
 * width: the rail is 23% of a 1200px row today and that number is a Customizer
 * setting somebody will change.
 */

.ksec-guide-panel {
	--kk-ink: #17202a;
	--kk-muted: #5f6b78;
	--kk-line: #dfe3e7;
	--kk-steel: #3b5a72;
	--kk-brass: #9a6d28;
	--kk-brass-text: #7a561d;
	--kk-teal: #2c6e6b;
	--kk-violet: #5b4b8a;
	--kk-amber: #8a6420;
	color: var(--kk-ink);
}

.ksec-guide-head {
	display: flex;
	align-items: center;
	gap: .6rem;
	margin-bottom: .8rem;
}

.ksec-guide-id { min-width: 0; }

.ksec-guide-id .nm {
	margin: 0;
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1.25;
}

.ksec-guide-id .mt {
	margin: .15rem 0 0;
	font-size: .6875rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--kk-muted);
}

.ksec-guide-rungs {
	display: flex;
	gap: 4px;
	margin: .75rem 0 .6rem;
}

.ksec-guide-rungs i {
	height: 5px;
	flex: 1;
	border-radius: 3px;
	background: var(--kk-line);
}

.ksec-guide-rungs i.on { background: var(--kk-steel); }
.ksec-guide-rungs i.brass { background: var(--kk-brass); }

.ksec-guide-line {
	margin: 0 0 .3rem;
	font-size: .8125rem;
	color: var(--kk-ink);
	font-variant-numeric: tabular-nums;
}

.ksec-guide-next {
	margin: 0 0 .8rem;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--kk-brass-text);
}

.ksec-guide-tiers {
	margin: 0 0 .6rem;
	font-size: .8125rem;
	color: var(--kk-ink);
}

.ksec-guide-note {
	margin: .7rem 0 0;
	font-size: .75rem;
	line-height: 1.45;
	color: var(--kk-muted);
}

/*
 * The colour is !important on purpose, which is the only one in this file.
 *
 * Shoptimizer sets `.widget-area .widget a { color: #222 }` at specificity
 * (0,2,1), and this button is an `a` inside a widget, so it inherited #222 on
 * a #1a1a1a ground: measured 1.09:1 on the live page, which is invisible
 * rather than merely low contrast. A plain class is (0,1,0) and loses.
 *
 * Raising specificity instead would mean either tying at (0,2,1) and depending
 * on stylesheet order, or scoping to .widget-area and breaking the shortcode
 * anywhere else. This is a button: its label must be legible whatever
 * container it is dropped into, so the declaration says so.
 */
.ksec-guide-cta {
	display: inline-block;
	padding: .55rem .9rem;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff !important;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .03em;
	text-decoration: none;
}

.ksec-guide-cta:hover,
.ksec-guide-cta:focus {
	background: #000;
	color: #fff !important;
}

.ksec-guide-sub {
	margin: 1.6rem 0 .7rem;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--kk-brass-text);
}

/* what to add next */

.ksec-guide-plist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ksec-guide-plist li {
	display: flex;
	gap: .65rem;
	align-items: flex-start;
	padding: .65rem 0;
	border-bottom: 1px solid #eff2f4;
}

.ksec-guide-plist li:last-child { border-bottom: 0; }

.ksec-guide-plist .th {
	flex: none;
	width: 46px;
	line-height: 0;
}

.ksec-guide-plist .th img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid var(--kk-line);
}

.ksec-guide-plist .tx { min-width: 0; }

.ksec-guide-plist .nm {
	display: block;
	font-size: .8125rem;
	line-height: 1.35;
	color: var(--kk-ink);
	text-decoration: none;
}

.ksec-guide-plist .nm:hover { text-decoration: underline; }

.ksec-guide-plist .pr {
	margin: .2rem 0 0;
	font-size: .75rem;
	color: var(--kk-muted);
}

.ksec-guide-plist .pr del { opacity: .6; }
.ksec-guide-plist .pr ins { text-decoration: none; font-weight: 600; }

/* contents and related guides */

.ksec-guide-toc,
.ksec-guide-rel {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ksec-guide-toc li,
.ksec-guide-rel li {
	margin-bottom: .55rem;
}

.ksec-guide-toc li:last-child,
.ksec-guide-rel li:last-child {
	margin-bottom: 0;
}

.ksec-guide-toc a {
	display: block;
	padding-left: .65rem;
	border-left: 2px solid var(--kk-line);
	font-size: .8125rem;
	line-height: 1.35;
	text-decoration: none;
}

.ksec-guide-toc a:hover,
.ksec-guide-toc a:focus {
	border-left-color: var(--kk-brass);
	text-decoration: underline;
}

.ksec-guide-rel a {
	font-size: .8125rem;
	line-height: 1.35;
	text-decoration: none;
}

.ksec-guide-rel a:hover,
.ksec-guide-rel a:focus {
	text-decoration: underline;
}

/* ---- account dashboard picks ------------------------------------------- */

.ksec-picks-wrap {
	--kk-ink: #17202a;
	--kk-muted: #5f6b78;
	--kk-line: #dfe3e7;
	--kk-brass-text: #7a561d;
	margin-top: 2.5rem;
}

.ksec-picks-block + .ksec-picks-block {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--kk-line);
}

.ksec-picks-block h3 {
	margin: 0 0 .35rem;
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--kk-ink);
}

.ksec-picks-note {
	margin: 0 0 1rem;
	font-size: .8125rem;
	color: var(--kk-brass-text);
	font-variant-numeric: tabular-nums;
}

/*
 * auto-fit, not auto-fill. auto-fill keeps empty tracks, so a block holding
 * two products would lay them out as though six were coming and leave four
 * gaps. Same reason the collection grids above use it.
 */
.ksec-picks {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.25rem;
}

.ksec-picks li {
	min-width: 0;
	margin: 0;
}

.ksec-picks .im {
	display: block;
	line-height: 0;
	margin-bottom: .6rem;
}

.ksec-picks .im img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 1px solid var(--kk-line);
	border-radius: 4px;
}

.ksec-picks .nm {
	display: block;
	font-size: .8125rem;
	line-height: 1.35;
	color: var(--kk-ink);
	text-decoration: none;
}

.ksec-picks .nm:hover,
.ksec-picks .nm:focus {
	text-decoration: underline;
}

.ksec-picks .pr {
	margin: .3rem 0 0;
	font-size: .8125rem;
	color: var(--kk-muted);
}

.ksec-picks .pr del { opacity: .6; }
.ksec-picks .pr ins { text-decoration: none; font-weight: 600; }

.ksec-picks-more {
	margin: 1rem 0 0;
	font-size: .8125rem;
}
