/* Soya Love 2026 – komponenty: hero, zalety, kategorie, karta produktu, sekcja „dlaczego”, opinie, wpisy. */

.arch { border-radius: 240px 240px 20px 20px; }
.section-title { margin-bottom: 40px; }
.section--tight-top { padding-top: 24px; }
@media (max-width: 767px) { .section-title { margin-bottom: 20px; } .section--tight-top { padding-top: 16px; } }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 72px 56px; }
.hero__text { flex: 1 1 440px; min-width: 0; }
.hero__title { font-size: clamp(38px, 4.4vw, 60px); line-height: 1.1; max-width: 12ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; max-width: 46ch; }
.hero__media { flex: 1 1 420px; min-width: 0; position: relative; display: flex; justify-content: center; }
.hero__line { position: absolute; left: -40px; top: -36px; width: 82%; height: auto; stroke: var(--c-rose); pointer-events: none; }
.hero__img { position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 767px) {
	.hero { flex-direction: column-reverse; align-items: stretch; gap: 28px; padding-block: 24px 40px; }
	.hero__media { flex: none; }
	.hero__line { left: -16px; top: -12px; width: 70%; }
	.hero__img { max-width: none; aspect-ratio: 1 / 1; border-radius: 175px 175px 16px 16px; }
	.hero__title { font-size: 38px; margin-bottom: 16px; }
	.hero .lead { margin-bottom: 24px; }
}

/* Zalety */
.features { border-block: 1px solid var(--c-line); }
.features__list { list-style: none; margin-block: 0; padding-block: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; font-size: 15px; color: var(--c-ink-2); }
.features__list li { display: flex; align-items: center; gap: 12px; }
.features__list .icon { flex: 0 0 28px; color: var(--c-plum); stroke-width: 1.3; }

/* Kategorie */
.categories { padding-bottom: 40px; }
.categories__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.category { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.category__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 120px 120px 14px 14px; background: var(--c-sand); transition: transform .35s ease; }
.category:hover .category__img { transform: translateY(-4px); }
.category__name { font-family: var(--f-serif); font-size: 19px; font-weight: 500; color: var(--c-plum); text-align: center; }
@media (max-width: 960px) {
	.categories { padding-inline: 0; }
	.categories .section-title { padding-inline: var(--gutter); }
	.categories__list { display: flex; overflow-x: auto; gap: 14px; padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none; }
	.categories__list li { flex: 0 0 132px; scroll-snap-align: start; }
	.category { gap: 10px; }
	.category__img { border-radius: 66px 66px 12px 12px; }
	.category__name { font-size: 16px; line-height: 1.3; }
}

/* Karta produktu */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 24px; }
@media (max-width: 767px) { .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__media { position: relative; display: block; line-height: 0; border-radius: var(--radius); overflow: hidden; background: var(--c-sand); }
.card__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img { transform: scale(1.03); }
.card__cat { font-size: 13px; color: var(--c-brown); }
.card__title { font-size: 18px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-plum); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; flex-wrap: wrap; }
.badge { position: absolute; top: 12px; left: 12px; font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 999px; background: var(--c-bg); color: var(--c-plum); }
.badge--sale { background: var(--c-plum); color: var(--c-bg); }
.badge--out { background: #E9E2DA; color: var(--c-ink-2); }
.price { display: inline-flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.price__now { font-size: 17px; font-weight: 600; color: var(--c-plum); white-space: nowrap; }
.price__old { font-size: 14px; color: var(--c-brown); white-space: nowrap; }
.btn--ghost { border-color: var(--c-field); color: var(--c-ink-2); background: transparent; }
.btn--ghost:hover { border-color: var(--c-plum); color: var(--c-plum); }
.btn.is-loading, .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn.is-added { background: var(--c-plum); color: var(--c-bg); border-color: var(--c-plum); }
@media (max-width: 767px) {
	.card { gap: 6px; }
	.card__cat { display: none; }
	.card__title { font-size: 15px; margin-top: 4px; -webkit-line-clamp: 5; } /* 5 linii: przy 3 nazwy „Jesienny Box … o zapachu …” urywały się przed zapachem */
	.card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
	.card__foot .btn { width: 100%; }
	.badge { top: 8px; left: 8px; font-size: 12px; padding: 6px 10px; }
	.price__now { font-size: 15px; }
	.price__old { font-size: 13px; }
	.card__media { border-radius: 12px; }
}

/* Dlaczego nasze świece */
.story__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.story__img { flex: 1 1 420px; min-width: 0; width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 20px 20px 240px 20px; }
.story__text { flex: 1 1 460px; min-width: 0; }
.story__text h2 { margin-bottom: 20px; }
.story__intro { color: var(--c-ink-2); max-width: 58ch; margin-bottom: 32px; }
.story__points { margin: 0 0 36px; display: flex; flex-direction: column; gap: 22px; }
.story__points > div { border-top: 1px solid #D9C9B8; padding-top: 18px; }
.story__points dt { font-family: var(--f-serif); font-size: 20px; font-weight: 500; color: var(--c-plum); margin-bottom: 6px; }
.story__points dd { margin: 0; color: var(--c-ink-2); }
@media (max-width: 767px) {
	.story__inner { flex-direction: column; align-items: stretch; gap: 28px; }
	.story__img { flex: none; aspect-ratio: 4 / 3; border-radius: 16px 16px 120px 16px; }
	.story__text { flex: none; width: 100%; }
	.story__text .btn { width: 100%; }
	.story__points dt { font-size: 19px; }
}

/* Opinie */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review { margin: 0; padding: 28px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: var(--c-plum); }
.review blockquote { margin: 0; font-family: var(--f-serif); font-size: 20px; line-height: 1.5; color: var(--c-ink); }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-ink-2); }
.review figcaption strong { color: var(--c-ink); font-weight: 600; }
.review__img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; }
@media (max-width: 767px) { .reviews { grid-template-columns: 1fr; gap: 14px; } .review { padding: 22px; } .review blockquote { font-size: 18px; } }

/* Wpisy (karty) */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.post-card__title { font-size: 22px; line-height: 1.3; }
.post-card__title a { color: var(--c-ink); text-decoration: none; }
.post-card__title a:hover { color: var(--c-plum); }
.post-card__more { font-weight: 500; font-size: 15px; }
@media (max-width: 767px) {
	.posts { grid-template-columns: 1fr; gap: 20px; }
	.post-card { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 6px; align-items: center; }
	.post-card__img { grid-row: 1 / 3; width: 112px; height: 112px; aspect-ratio: auto; border-radius: 12px; }
	.post-card__title { font-size: 18px; align-self: end; }
	.post-card__more { align-self: start; font-size: 14px; }
}

/* Sklep */
.breadcrumbs { font-size: 14px; color: var(--c-brown); padding-top: 40px; margin-bottom: 16px; }
.breadcrumbs a { color: var(--c-brown); }
.shop { padding-bottom: 96px; }
.shop__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.shop__head h1 { font-size: clamp(38px, 4vw, 52px); margin-bottom: 8px; }
.shop__intro { color: var(--c-ink-2); }
.shop__tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.shop__search { width: 260px; }
.shop__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--c-ink-2); }
.shop__sort .select { width: auto; min-height: 48px; padding: 0 16px; }
.js .shop__apply { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-block: 1px solid var(--c-line); margin-bottom: 20px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-field); color: var(--c-ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--c-plum); color: var(--c-plum); }
.chip.is-active { background: var(--c-plum); border-color: var(--c-plum); color: var(--c-bg); font-weight: 500; }
.shop__count { font-size: 14px; color: var(--c-brown); margin-bottom: 28px; }
.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--c-field); border-radius: var(--radius-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty__title { font-family: var(--f-serif); font-size: 24px; color: var(--c-plum); }
.empty .btn { margin-top: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 64px; }
.pagination a { min-width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--c-field); color: var(--c-ink); text-decoration: none; padding: 0 14px; }
.pagination a:hover { border-color: var(--c-plum); color: var(--c-plum); }
.pagination .is-active { background: var(--c-plum); border-color: var(--c-plum); color: var(--c-bg); font-weight: 600; }
.pagination__step .icon { transform: rotate(180deg); }
.pagination__next { padding: 0 18px; }
@media (max-width: 767px) {
	.breadcrumbs { padding-top: 20px; font-size: 13px; }
	.shop { padding-bottom: 56px; }
	.shop__head { margin-bottom: 14px; gap: 14px; }
	.shop__head > div:first-child { width: 100%; }
	.shop__intro { display: none; }
	.shop__tools { width: 100%; }
	.shop__search { width: 100%; }
	.shop__sort { width: 100%; justify-content: space-between; }
	.shop__sort .select { flex: 1; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter); scrollbar-width: none; border: 0; }
	.shop__count { margin-bottom: 18px; }
	.pagination { margin-top: 40px; }
	.pagination__next-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.pagination__next { padding: 0; width: 44px; }
}

/* Karta produktu */
.product { padding-bottom: 96px; }
.product__top { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; margin-top: 12px; }
.gallery { flex: 1 1 520px; min-width: 0; display: flex; gap: 16px; position: relative; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 12px; }
.gallery__thumb { width: 84px; height: 84px; padding: 0; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; background: var(--c-sand); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border: 2px solid var(--c-plum); }
.gallery__track { flex: 1; min-width: 0; }
.gallery__slide { margin: 0; display: none; }
.gallery__slide.is-active { display: block; }
.gallery__slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); background: var(--c-sand); }
.gallery__dots { display: none; }
.product__info { flex: 1 1 420px; min-width: 0; }
.product__ribbon { display: inline-block; background: var(--c-sand); color: var(--c-plum); font-size: 13px; font-weight: 600; line-height: 1; padding: 8px 12px; border-radius: 999px; margin-bottom: 16px; }
.product__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; margin-bottom: 6px; }
.product__sub { color: var(--c-brown); font-size: 17px; margin-bottom: 24px; }
.product__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.product__now { font-size: 30px; font-weight: 600; color: var(--c-plum); }
.product__old { font-size: 18px; color: var(--c-brown); }
.product__save { font-size: 14px; font-weight: 600; color: var(--c-plum); background: var(--c-sand); border-radius: 999px; padding: 4px 10px; }
.product__stock { font-size: 14px; color: var(--c-ink-2); margin-bottom: 28px; }
.buy { margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; }
.buy__row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy__submit { flex: 1 1 220px; min-height: 56px; font-weight: 600; }
.buy__custom .textarea { min-height: 72px; }
.qty { display: inline-flex; align-items: center; height: 56px; border: 1px solid var(--c-field); border-radius: 999px; background: var(--c-white); }
.qty__btn { width: 52px; height: 54px; border: 0; background: transparent; color: var(--c-plum); font-size: 22px; border-radius: 999px; }
.qty__input { width: 44px; border: 0; text-align: center; font-weight: 600; font-size: 17px; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product__facts { list-style: none; margin: 0 0 32px; padding: 20px 0; border-block: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--c-ink-2); }
.product__facts li { display: flex; gap: 12px; align-items: flex-start; }
.product__facts .icon { flex: 0 0 22px; margin-top: 1px; color: var(--c-plum); stroke-width: 1.4; }
.product__h2 { font-size: 22px; margin-bottom: 10px; }
.prose { color: var(--c-ink-2); max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { color: var(--c-plum); margin-top: 1.6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li > p { margin: 0; }
.prose img { border-radius: var(--radius); }
.prose strong { color: var(--c-ink); }

.product-reviews { margin-top: 96px; }
.product-reviews__head { padding: 32px 40px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.product-reviews__head h2 { font-size: 28px; margin-bottom: 6px; }
.product-reviews__head p { color: var(--c-ink-2); }
.related { margin-top: 96px; }
.related h2 { font-size: 36px; margin-bottom: 32px; }

/* Okno (opinia) */
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(520px, calc(100% - 32px)); background: var(--c-bg); color: var(--c-ink); }
.modal::backdrop { background: rgba(46, 35, 40, .5); }
.modal__body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.modal__head { display: flex; align-items: center; justify-content: space-between; }
.modal__head h2 { font-size: 26px; }
.modal__product { color: var(--c-brown); font-size: 14px; margin-top: -8px; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input legend { width: 100%; font-size: 14px; font-weight: 500; margin-bottom: 6px; float: left; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { width: 40px; height: 40px; display: grid; place-items: center; color: var(--c-field); cursor: pointer; border-radius: 8px; }
.rating-input label svg { width: 26px; height: 26px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--c-plum); }
.rating-input input:focus-visible + label { outline: 2px solid var(--c-plum); }

@media (max-width: 767px) {
	.product { padding-bottom: 56px; }
	.product__top { gap: 20px; margin-top: 0; }
	.gallery { margin-inline: calc(var(--gutter) * -1); flex-basis: 100%; }
	.gallery__thumbs { display: none; }
	.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.gallery__slide { display: block; flex: 0 0 100%; scroll-snap-align: start; }
	.gallery__slide img { border-radius: 0; }
	.gallery__dots { display: flex; justify-content: center; gap: 8px; position: absolute; left: 0; right: 0; bottom: 14px; }
	.gallery__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-bg); border: 1px solid var(--c-plum); }
	.gallery__dot.is-active { background: var(--c-plum); }
	.product__title { font-size: 28px; }
	.product__now { font-size: 26px; }
	.qty { height: 52px; }
	.qty__btn { width: 44px; height: 50px; }
	.buy__row { flex-wrap: nowrap; }
	.buy__submit { min-height: 52px; flex: 1; }
	.product-reviews { margin-top: 40px; }
	.product-reviews__head { padding: 22px; }
	.product-reviews__head h2 { font-size: 21px; }
	.related { margin-top: 48px; }
	.related h2 { font-size: 26px; margin-bottom: 18px; }
}

/* Komunikaty Woo (np. „dodano do koszyka” bez JS) */
.woocommerce-notices-wrapper:empty { display: none; }
.product .woocommerce-message, .product .woocommerce-error, .product .woocommerce-info,
.shop .woocommerce-message, .shop .woocommerce-error, .shop .woocommerce-info {
	list-style: none; margin: 16px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--c-sand); color: var(--c-ink);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.product .woocommerce-error, .shop .woocommerce-error { background: #F9E3E3; color: #7A1F1F; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--c-plum); color: var(--c-bg); text-decoration: none; font-weight: 500; font-size: 14px; }

/* Szuflada koszyka */
.drawer { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(420px, 100%); max-width: 100%; background: var(--c-bg); color: var(--c-ink); box-shadow: -12px 0 32px rgba(46, 35, 40, .18); }
.drawer[open] { display: flex; }
.drawer::backdrop { background: rgba(46, 35, 40, .5); }
@media (prefers-reduced-motion: no-preference) { .drawer[open] { animation: drawer-in .25s ease-out; } }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__panel { display: flex; flex-direction: column; width: 100%; min-height: 100%; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--c-line); }
.drawer__head h2 { font-size: 24px; }
.drawer__free { padding: 14px 20px; background: var(--c-sand); font-size: 14px; }
.drawer__free p { margin-bottom: 8px; }
.progress { height: 5px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--c-plum); transition: width .3s; }
.drawer__body { flex: 1; overflow: auto; padding: 0 20px; }
.drawer__loading { padding: 24px 0; color: var(--c-brown); }
.drawer__items { list-style: none; margin: 0; padding: 0; }
.drawer__item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.drawer__thumb { flex: 0 0 76px; line-height: 0; }
.drawer__thumb img, .drawer__noimg { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--c-sand); display: block; }
.drawer__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer__name { font-family: var(--f-serif); font-size: 15px; line-height: 1.35; color: var(--c-ink); text-decoration: none; }
.drawer__meta { font-size: 13px; color: var(--c-brown); }
.drawer__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer__price { color: var(--c-plum); }
.drawer__remove { align-self: flex-start; border: 0; background: none; padding: 6px 0; min-height: 32px; color: var(--c-brown); font-size: 13px; text-decoration: underline; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 40px; height: 38px; font-size: 18px; }
.qty--sm .qty__btn:disabled { opacity: .35; cursor: not-allowed; }
.qty__val { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.drawer__foot { padding: 16px 20px 20px; border-top: 1px solid var(--c-line); background: var(--c-white); }
.drawer__sum { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-weight: 600; }
.drawer__sum strong { font-size: 22px; color: var(--c-plum); }
.drawer__note { font-size: 13px; color: var(--c-brown); margin-bottom: 14px; }
.drawer__link { display: block; text-align: center; padding: 12px 0 0; font-weight: 500; }
.drawer__empty { padding: 48px 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.drawer__empty-title { font-family: var(--f-serif); font-size: 22px; color: var(--c-plum); }
.drawer .form-status { margin: 12px 0 0; }

/* Dokumenty (regulamin, polityki) i zwykłe strony */
.doc { padding-block: 64px 112px; }
.doc h1 { margin-bottom: 12px; font-size: clamp(34px, 4vw, 52px); }
.doc__switch { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 48px; }
.doc__layout { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; margin-top: 28px; }
.doc__toc { flex: 1 1 280px; min-width: 0; position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--radius-lg); background: var(--c-sand); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
.doc__toc h2 { font-size: 19px; margin-bottom: 12px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; }
.doc__toc a { display: block; padding: 6px 0; color: var(--c-ink); text-decoration: none; }
.doc__toc a:hover { color: var(--c-plum); text-decoration: underline; }
.doc__body { flex: 3 1 560px; min-width: 0; max-width: 72ch; font-size: 17px; line-height: 1.75; color: var(--c-ink); }
.doc__body h2 { font-size: 26px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc__body ol, .doc__body ul { padding-left: 1.4em; }
.downloads { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2em !important; }
.downloads a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--c-plum); text-decoration: none; font-size: 15px; font-weight: 500; }
.downloads a:hover { background: var(--c-plum); color: var(--c-bg); }
@media (max-width: 767px) {
	.doc { padding-block: 28px 56px; }
	.doc__switch { margin-bottom: 20px; flex-wrap: nowrap; overflow-x: auto; }
	.doc__layout { gap: 24px; margin-top: 12px; }
	.doc__toc { position: static; max-height: none; }
	.doc__body { font-size: 16px; }
}
