/*
 * Packing list generator: masthead, hero, interview, preview editor, gallery,
 * gear, article, footer.
 *
 * Light editorial look in the 33travels palette: Mulish + Fraunces, accent
 * #f43e11 (text-safe accent #c42a07), ink #38393d, page #f2f2f2. Mobile first:
 * 16px gutters, nothing wider than the viewport at 360px.
 *
 * Every class is scoped under .pkl-*. The class list the UI relies on is
 * documented in CONTRACT.md ("DOM / CSS classes").
 */

:root {
	--pkl-accent: #f43e11;
	--pkl-accent2: #945eed;
	--pkl-ink: #38393d;
	--pkl-dim: #5d5f66;
	--pkl-accent-ink: #c42a07;
	--pkl-accent-soft: #fdece7;
	--pkl-serif: Fraunces, Georgia, 'Times New Roman', serif;
	--pkl-faint: #9a9ca3;
	--pkl-page: #f2f2f2;
	--pkl-white: #fff;
	--pkl-line: #e4e1db;
	--pkl-warm: #faf6ee;
	--pkl-mast-h: 56px;
	--pkl-gutter: 16px;
	--pkl-radius: 14px;
	--pkl-shadow: 0 1px 2px rgba(40, 30, 20, 0.06), 0 8px 24px rgba(40, 30, 20, 0.07);
	--pkl-sans: Mulish, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--pkl-page);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.pkl-body {
	margin: 0;
	background: var(--pkl-page);
	color: var(--pkl-ink);
	font-family: var(--pkl-sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.pkl-body a {
	color: inherit;
}

.pkl-body button,
.pkl-body input,
.pkl-body select {
	font: inherit;
	color: inherit;
}

/* ---------------------------------------------------------------- masthead */

.pkl-mast {
	position: relative;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--pkl-mast-h);
	padding: 0 20px;
	background: var(--pkl-white);
	border-bottom: 1px solid var(--pkl-line);
}

.pkl-logo {
	display: block;
	flex: none;
	line-height: 0;
}

.pkl-logo img {
	display: block;
	width: 151px;
	height: 25px;
}

.pkl-nav {
	margin-left: auto;
}

.pkl-nav ul,
.pkl-burger-panel ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pkl-nav > ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.pkl-nav a,
.pkl-nav summary {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
	border-radius: 6px;
}

.pkl-nav summary::-webkit-details-marker,
.pkl-burger summary::-webkit-details-marker {
	display: none;
}

.pkl-nav a:hover,
.pkl-nav summary:hover,
.pkl-nav details[open] > summary {
	color: var(--pkl-accent);
}

.pkl-nav summary::after {
	content: '';
	display: inline-block;
	margin-left: 6px;
	width: 5px;
	height: 5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.pkl-sub {
	position: relative;
}

.pkl-sub-list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 220px;
	padding: 6px;
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(40, 30, 20, 0.14);
}

.pkl-sub-list a {
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.pkl-sub-list a:hover {
	background: var(--pkl-page);
}

.pkl-burger {
	display: none;
	margin-left: auto;
}

.pkl-burger summary {
	display: block;
	width: 44px;
	height: 44px;
	margin-right: -10px;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.pkl-burger-icon,
.pkl-burger-icon::before,
.pkl-burger-icon::after {
	position: absolute;
	left: 12px;
	width: 20px;
	height: 2px;
	background: var(--pkl-ink);
	border-radius: 2px;
	content: '';
}

.pkl-burger-icon {
	top: 21px;
}

.pkl-burger-icon::before {
	left: 0;
	top: -6px;
}

.pkl-burger-icon::after {
	left: 0;
	top: 6px;
}

.pkl-burger-panel {
	position: absolute;
	top: var(--pkl-mast-h);
	left: 0;
	right: 0;
	max-height: calc(100svh - var(--pkl-mast-h));
	overflow: auto;
	padding: 8px 20px 20px;
	background: var(--pkl-white);
	border-bottom: 1px solid var(--pkl-line);
	box-shadow: 0 16px 32px rgba(40, 30, 20, 0.14);
}

.pkl-burger-panel a {
	display: block;
	padding: 10px 0;
	font-weight: 600;
	text-decoration: none;
}

.pkl-m-head {
	display: block;
	margin-top: 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pkl-accent);
}

.pkl-m-group ul {
	padding-left: 12px;
}

@media (max-width: 860px) {
	:root {
		--pkl-mast-h: 52px;
	}
	.pkl-mast {
		padding: 0 16px;
	}
	.pkl-nav {
		display: none;
	}
	.pkl-burger {
		display: block;
	}
}


/* -------------------------------------------------------------------- hero */

.pkl-main {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 var(--pkl-gutter) 8px;
}

.pkl-hero {
	padding: 28px 0 20px;
	text-align: center;
}

.pkl-hero-in {
	max-width: 640px;
	margin: 0 auto;
}

.pkl-eyebrow {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pkl-accent-ink);
}

.pkl-hero h1 {
	margin: 0;
	font-family: var(--pkl-serif);
	font-size: clamp(32px, 7vw, 48px);
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.pkl-tagline {
	margin: 12px auto 0;
	max-width: 34em;
	font-size: 17px;
	line-height: 1.55;
	color: var(--pkl-dim);
}

/* --------------------------------------------------------- interview card */

/* Reserved height: the card is server-rendered at step 1, so hydration and later steps never move the page. */
.pkl-app {
	min-height: 520px;
	scroll-margin-top: 12px;
}

.pkl-card {
	position: relative;
	padding: 20px var(--pkl-gutter) 22px;
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: 18px;
	box-shadow: var(--pkl-shadow);
}

.pkl-progress {
	height: 6px;
	background: #ece9e2;
	border-radius: 999px;
	overflow: hidden;
}

.pkl-progress-bar {
	display: block;
	height: 100%;
	background: var(--pkl-accent);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.pkl-step-count {
	margin: 14px 0 4px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pkl-dim);
}

.pkl-q {
	margin: 0;
	font-family: var(--pkl-serif);
	font-size: clamp(22px, 5.2vw, 30px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.pkl-hint {
	margin: 6px 0 0;
	font-size: 15px;
	color: var(--pkl-dim);
}

.pkl-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0 0;
	min-height: 200px;
}

.pkl-options-placeholder {
	min-height: 260px;
}

.pkl-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 96px;
	padding: 14px 10px;
	text-align: center;
	background: var(--pkl-white);
	border: 2px solid var(--pkl-line);
	border-radius: var(--pkl-radius);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border-color 0.12s, background-color 0.12s;
}

.pkl-chip:hover {
	border-color: #cfcabd;
	background: var(--pkl-warm);
}

.pkl-chip:focus-visible,
.pkl-btn:focus-visible,
.pkl-input:focus-visible,
.pkl-select:focus-visible,
.pkl-radio input:focus-visible + .pkl-radio-body,
.pkl-check input:focus-visible + .pkl-box,
.pkl-qty-btn:focus-visible,
.pkl-remove:focus-visible,
.pkl-add:focus-visible {
	outline: 3px solid var(--pkl-accent2);
	outline-offset: 2px;
}

.pkl-chip[aria-pressed='true'] {
	border-color: var(--pkl-accent);
	background: var(--pkl-accent-soft);
}

.pkl-chip[aria-pressed='true'] .pkl-icon {
	background: var(--pkl-accent);
	color: #fff;
}

.pkl-chip-label {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

/* Icon slot: a fixed 40px circle, filled by the UI with an inline SVG (stroke: currentColor). */
.pkl-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f3efe6;
	color: var(--pkl-accent-ink);
}

.pkl-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pkl-step-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.pkl-noscript {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--pkl-dim);
}

/* ----------------------------------------------------------------- buttons */

.pkl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.12s, border-color 0.12s, opacity 0.12s;
}

.pkl-btn-primary {
	background: var(--pkl-accent-ink);
	border-color: var(--pkl-accent-ink);
}

.pkl-body .pkl-btn-primary {
	color: #fff;
}

.pkl-btn-primary:hover {
	background: #a82306;
	border-color: #a82306;
}

.pkl-btn-ghost {
	background: var(--pkl-white);
	border-color: var(--pkl-line);
}

.pkl-btn-ghost:hover {
	border-color: #cfcabd;
	background: var(--pkl-warm);
}

.pkl-btn[disabled],
.pkl-btn[aria-disabled='true'] {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.pkl-btn-sm {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.pkl-btn-lg {
	min-height: 56px;
	padding: 0 30px;
	font-size: 18px;
}

/* Download button: .is-loading shows a spinner and blocks a second click. */
.pkl-btn.is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.85;
}

.pkl-btn.is-loading::after {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pkl-spin 0.7s linear infinite;
}

@keyframes pkl-spin {
	to {
		transform: rotate(360deg);
	}
}

.pkl-also {
	margin: 14px 0 0;
	text-align: center;
	font-size: 15px;
	color: var(--pkl-dim);
}

.pkl-also a {
	color: var(--pkl-accent-ink);
	font-weight: 700;
	text-underline-offset: 2px;
}

/* ---------------------------------------------------------- preview editor */

.pkl-preview {
	display: grid;
	gap: 18px;
}

.pkl-preview-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 14px;
}

.pkl-preview-title {
	margin: 0;
	font-family: var(--pkl-serif);
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
}

.pkl-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.pkl-meta li {
	padding: 3px 10px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pkl-accent-ink);
	background: var(--pkl-accent-soft);
	border-radius: 999px;
}

.pkl-cat {
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: var(--pkl-radius);
	overflow: hidden;
}

.pkl-cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: var(--pkl-warm);
	border-bottom: 1px solid var(--pkl-line);
}

.pkl-cat-head .pkl-icon {
	width: 32px;
	height: 32px;
	background: var(--pkl-white);
}

.pkl-cat-head .pkl-icon svg {
	width: 18px;
	height: 18px;
}

.pkl-cat-name {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 800;
}

.pkl-cat-count {
	font-size: 13px;
	font-weight: 700;
	color: var(--pkl-dim);
}

.pkl-items {
	margin: 0;
	padding: 4px 0;
	list-style: none;
}

.pkl-item {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 4px 8px 4px 14px;
}

.pkl-item + .pkl-item {
	border-top: 1px solid #f0ede6;
}

.pkl-item.is-off .pkl-item-label {
	color: var(--pkl-faint);
	text-decoration: line-through;
}

/* Checkbox: the real input is visually hidden; .pkl-box is the drawn square (44px tap area via the label). */
.pkl-check {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
	min-height: 44px;
	cursor: pointer;
}

.pkl-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}

.pkl-box {
	display: inline-block;
	flex: none;
	width: 22px;
	height: 22px;
	background: var(--pkl-white);
	border: 2px solid #b9b5a8;
	border-radius: 6px;
	transition: background-color 0.12s, border-color 0.12s;
}

.pkl-check input:checked + .pkl-box {
	background: var(--pkl-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
	border-color: var(--pkl-accent);
}

.pkl-item-text {
	display: block;
	min-width: 0;
}

.pkl-item-label {
	display: block;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.pkl-item-note {
	display: block;
	font-size: 13px;
	line-height: 1.3;
	color: var(--pkl-dim);
}

.pkl-qty {
	display: inline-flex;
	align-items: center;
	flex: none;
	background: #f6f4ee;
	border-radius: 999px;
}

.pkl-qty-btn {
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pkl-qty-btn:hover {
	background: #ebe7dc;
}

.pkl-qty-val {
	min-width: 24px;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.pkl-remove {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--pkl-faint);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.pkl-remove:hover {
	color: var(--pkl-accent-ink);
	background: var(--pkl-accent-soft);
}

.pkl-add {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font-size: 15px;
	font-weight: 800;
	text-align: left;
	color: var(--pkl-accent-ink);
	background: transparent;
	border: 0;
	border-top: 1px dashed var(--pkl-line);
	cursor: pointer;
}

.pkl-add:hover {
	background: var(--pkl-accent-soft);
}

.pkl-add-form {
	display: flex;
	gap: 8px;
	padding: 8px 14px 12px;
	border-top: 1px dashed var(--pkl-line);
}

.pkl-add-form .pkl-input {
	flex: 1;
	min-width: 0;
}

/* ------------------------------------------------------ personalization */

.pkl-form {
	display: grid;
	gap: 18px;
	padding: 18px var(--pkl-gutter);
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: var(--pkl-radius);
}

.pkl-form-title {
	margin: 0;
	font-family: var(--pkl-serif);
	font-size: 20px;
	font-weight: 700;
}

.pkl-field {
	display: grid;
	gap: 6px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.pkl-label {
	padding: 0;
	font-size: 14px;
	font-weight: 800;
}

.pkl-label small,
.pkl-help {
	font-weight: 600;
	font-size: 13px;
	color: var(--pkl-dim);
}

.pkl-input,
.pkl-select {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	background: var(--pkl-white);
	border: 2px solid var(--pkl-line);
	border-radius: 10px;
}

.pkl-select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	background: var(--pkl-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2338393d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
}

.pkl-input:hover,
.pkl-select:hover {
	border-color: #cfcabd;
}

.pkl-input::placeholder {
	color: var(--pkl-faint);
}

.pkl-travelers {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pkl-traveler {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 112px 40px;
	gap: 8px;
	align-items: center;
}

.pkl-add-traveler {
	justify-self: start;
}

.pkl-radio-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.pkl-radio {
	display: block;
	position: relative;
	cursor: pointer;
}

.pkl-radio input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pkl-radio-body {
	display: block;
	height: 100%;
	padding: 12px 14px;
	background: var(--pkl-white);
	border: 2px solid var(--pkl-line);
	border-radius: 12px;
	transition: border-color 0.12s, background-color 0.12s;
}

.pkl-radio-title {
	display: block;
	font-size: 15px;
	font-weight: 800;
}

.pkl-radio-desc {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--pkl-dim);
}

.pkl-radio input:checked + .pkl-radio-body {
	border-color: var(--pkl-accent);
	background: var(--pkl-accent-soft);
}

.pkl-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	padding-top: 4px;
}

.pkl-actions .pkl-btn-primary {
	flex: 1 1 100%;
}

.pkl-status {
	margin: 0;
	font-size: 14px;
	color: var(--pkl-dim);
}

.pkl-status.is-error {
	color: var(--pkl-accent-ink);
	font-weight: 700;
}

/* --------------------------------------------------------------- sections */

.pkl-blocks {
	display: grid;
	gap: 8px;
}

.pkl-gallery,
.pkl-gear {
	margin-top: 36px;
}

.pkl-gallery h2,
.pkl-gear h2 {
	margin: 0 0 6px;
	font-family: var(--pkl-serif);
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
}

.pkl-section-lede {
	margin: 0 0 16px;
	color: var(--pkl-dim);
}

.pkl-gal-grid,
.pkl-gear-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pkl-gal-card,
.pkl-gear-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: var(--pkl-radius);
	overflow: hidden;
}

.pkl-thumb-wrap {
	background: var(--pkl-warm);
	border-bottom: 1px solid var(--pkl-line);
	aspect-ratio: 480 / 620;
	overflow: hidden;
}

.pkl-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.pkl-gal-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
}

.pkl-gal-title,
.pkl-gear-name {
	margin: 0;
	font-size: 16px;
	line-height: 1.25;
	font-weight: 800;
}

.pkl-gal-meta {
	margin: 0;
	font-size: 13px;
	color: var(--pkl-dim);
}

.pkl-gal-actions {
	display: grid;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
}

.pkl-dl-alt {
	justify-self: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--pkl-accent-ink);
	text-underline-offset: 2px;
}

.pkl-gear-card {
	gap: 6px;
	padding: 14px;
}

.pkl-gear-why {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--pkl-dim);
}

.pkl-gear-link {
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
	font-weight: 800;
	color: var(--pkl-accent-ink);
	text-underline-offset: 2px;
}

.pkl-disclosure {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--pkl-dim);
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: 10px;
}

.pkl-disclosure a {
	color: var(--pkl-accent-ink);
	text-underline-offset: 2px;
}

/* Blocks placed inside the article keep their card styles (the article link rule is more general). */
.pkl-article .pkl-gallery a,
.pkl-article .pkl-gear a {
	text-decoration: none;
}

.pkl-article .pkl-gallery a.pkl-btn-primary {
	color: #fff;
}

.pkl-article .pkl-gallery a.pkl-btn-ghost {
	color: var(--pkl-ink);
}

.pkl-article .pkl-gallery .pkl-dl-alt,
.pkl-article .pkl-gear .pkl-gear-link,
.pkl-article .pkl-gear .pkl-disclosure a {
	color: var(--pkl-accent-ink);
}

.pkl-article .pkl-gallery h2,
.pkl-article .pkl-gear h2 {
	margin-top: 0;
}

/* ------------------------------------------------------------------ article */

.pkl-article {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 24px 40px;
	font-size: 17px;
	line-height: 1.7;
}

.pkl-article h2 {
	font-family: var(--pkl-serif);
	margin: 2.2em 0 0.6em;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.pkl-article > h2:first-child,
.pkl-article > h2:first-of-type {
	margin-top: 0;
}

.pkl-article h3 {
	margin: 1.6em 0 0.4em;
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
}

.pkl-article p,
.pkl-article ul,
.pkl-article ol {
	margin: 0 0 1.1em;
}

.pkl-article a {
	color: var(--pkl-accent-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pkl-table-wrap {
	overflow-x: auto;
	margin: 1.4em 0;
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: 12px;
}

.pkl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.4;
}

.pkl-table caption {
	padding: 12px 14px 4px;
	text-align: left;
	font-weight: 800;
}

.pkl-table th,
.pkl-table td {
	padding: 9px 14px;
	text-align: left;
	border-bottom: 1px solid var(--pkl-line);
	white-space: nowrap;
}

.pkl-table thead th {
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pkl-dim);
}

.pkl-table td[data-v],
.pkl-table th[data-sort] {
	text-align: right;
}

.pkl-table tbody tr:last-child > * {
	border-bottom: 0;
}

.pkl-states > summary {
	cursor: pointer;
	font-weight: 700;
}

/* Reserved so a late ad fill cannot shift the text below it. */
.pkl-ad {
	min-height: 280px;
	margin: 2em 0;
	text-align: center;
}

/* ------------------------------------------------------------------ footer */

.pkl-foot {
	background: var(--pkl-white);
	border-top: 1px solid var(--pkl-line);
}

.pkl-foot-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 28px 24px;
	font-size: 14px;
}

.pkl-foot-logo {
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
	color: var(--pkl-accent);
}

.pkl-foot-nav {
	display: flex;
	gap: 22px;
	font-weight: 600;
}

.pkl-foot-nav a {
	text-decoration: none;
}

.pkl-foot-nav a:hover {
	color: var(--pkl-accent);
}

.pkl-foot-c {
	flex-basis: 100%;
	margin: 0;
	font-size: 13px;
	color: var(--pkl-dim);
}


/* ------------------------------------------------------------ larger screens */

@media (min-width: 640px) {
	.pkl-hero {
		padding: 40px 0 26px;
	}
	.pkl-card {
		padding: 28px 32px 30px;
	}
	.pkl-options {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}
	.pkl-gal-grid,
	.pkl-gear-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.pkl-actions .pkl-btn-primary {
		flex: 0 0 auto;
	}
}

@media (min-width: 960px) {
	.pkl-options {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.pkl-gal-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	.pkl-form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 28px;
		padding: 24px 28px;
	}
	.pkl-form > .pkl-form-title,
	.pkl-form > .pkl-actions,
	.pkl-form > .pkl-field-wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 380px) {
	.pkl-traveler {
		grid-template-columns: minmax(0, 1fr) 96px 40px;
	}
	.pkl-btn {
		padding: 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pkl-progress-bar,
	.pkl-chip,
	.pkl-btn {
		transition: none;
	}
	.pkl-btn.is-loading::after {
		animation-duration: 1.6s;
	}
}

@media print {
	.pkl-mast,
	.pkl-app,
	.pkl-also,
	.pkl-gallery,
	.pkl-gear,
	.pkl-foot,
	.pkl-ad {
		display: none;
	}
}

/* ------------------------------------------------------- UI additions (v0.2) */

.pkl-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.pkl-q:focus {
	outline: none;
}

.pkl-resume {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
	padding: 6px 16px 6px 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--pkl-accent-ink);
	background: var(--pkl-accent-soft);
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
}

.pkl-resume:hover {
	border-color: var(--pkl-accent);
}

.pkl-resume .pkl-icon {
	width: 32px;
	height: 32px;
	background: var(--pkl-white);
}

.pkl-resume .pkl-icon svg {
	width: 18px;
	height: 18px;
}

/* Preview: the card turns transparent; head, categories and form are the surfaces. */
.pkl-card.is-preview {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.pkl-preview-head {
	flex-wrap: nowrap;
	align-items: flex-start;
	padding: 18px var(--pkl-gutter);
	background: var(--pkl-white);
	border: 1px solid var(--pkl-line);
	border-radius: var(--pkl-radius);
}

.pkl-preview-head .pkl-step-count {
	margin: 0 0 2px;
}

.pkl-preview-title {
	outline: none;
	font-size: clamp(22px, 5vw, 28px);
}

.pkl-preview-head .pkl-btn {
	flex: none;
}

.pkl-preview-help {
	margin: -4px 2px 0;
}

.pkl-help:empty {
	display: none;
}

.pkl-cats {
	display: grid;
	gap: 14px;
	align-items: start;
}

.pkl-item-note {
	margin-top: 1px;
}

.pkl-radio.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pkl-form-title {
	font-size: 22px;
}

.pkl-actions .pkl-btn-primary {
	flex-basis: 100%;
}

@media (max-width: 520px) {
	.pkl-preview-head {
		flex-wrap: wrap;
	}
	.pkl-preview-head .pkl-btn {
		min-height: 44px;
	}
}

@media (min-width: 760px) {
	.pkl-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pkl-actions .pkl-btn-primary {
		flex: 0 0 auto;
	}
}

/* Gallery cards also appear inside the article, where p/h3 rules are larger: pin the card typography. */
.pkl-gallery .pkl-gal-card .pkl-gal-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.25;
}

.pkl-gallery .pkl-gal-card p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

.pkl-gallery .pkl-gal-card .pkl-gal-blurb {
	color: var(--pkl-dim);
}

.pkl-gal-actions {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pkl-gal-actions > :last-child {
	grid-column: 1 / -1;
}

.pkl-gal-actions .pkl-dl-alt {
	justify-self: stretch;
}

.pkl-gal-actions .pkl-btn {
	padding: 0 10px;
	white-space: nowrap;
}

.pkl-article .pkl-gallery a.pkl-btn-ghost,
.pkl-article .pkl-gallery .pkl-dl-alt {
	color: var(--pkl-ink);
	font-size: 14px;
	font-weight: 800;
}

/* ------------------------------------------- collapsible categories, sticky bar */

.pkl-cat-h {
	margin: 0;
	font-size: inherit;
}

.pkl-cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 10px 14px;
	text-align: left;
	background: var(--pkl-warm);
	border: 0;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pkl-cat.is-open .pkl-cat-head {
	border-bottom-color: var(--pkl-line);
}

.pkl-cat-head:hover {
	background: #f5efe2;
}

.pkl-cat-head:focus-visible {
	outline: 3px solid var(--pkl-accent2);
	outline-offset: -3px;
}

.pkl-cat-head .pkl-cat-name {
	flex: 1;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.pkl-chev {
	flex: none;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--pkl-dim);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s;
}

.pkl-cat.is-open .pkl-chev {
	transform: rotate(180deg);
}

.pkl-cat-body[hidden] {
	display: none;
}

.pkl-list-tools {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 2px 0;
}

.pkl-list-title {
	margin: 0;
	font-family: var(--pkl-serif);
	font-size: 22px;
	line-height: 1.2;
}

.pkl-list-tools .pkl-help {
	margin: 2px 0 0;
}

.pkl-list-tools .pkl-btn {
	flex: none;
	min-height: 44px;
}

.pkl-preview-help {
	margin: 0;
}

/* Zero-height sticky anchor: the bar hangs above it, so it never adds layout height (no CLS). */
.pkl-sticky {
	position: sticky;
	bottom: 0;
	z-index: 30;
	height: 0;
	pointer-events: none;
}

.pkl-sticky-in {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px var(--pkl-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, 0.97);
	border-top: 1px solid var(--pkl-line);
	box-shadow: 0 -6px 20px rgba(40, 30, 20, 0.1);
	opacity: 0;
	transform: translateY(8px);
	visibility: hidden;
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.pkl-sticky.is-on .pkl-sticky-in {
	opacity: 1;
	transform: none;
	visibility: visible;
	pointer-events: auto;
}

.pkl-sticky-count {
	font-size: 15px;
	font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
	.pkl-sticky-in,
	.pkl-chev {
		transition: none;
	}
}
