/* Karpatour — page of a series. */
.kto-series { --kto-accent: #1f7a5c; --kto-ink: #1d2a24; --kto-muted: #5d6b64; --kto-line: #e3e8e5; font-family: inherit; color: var(--kto-ink); }
.kto-series * { box-sizing: border-box; }
.kto-series p { margin: 0 0 .9em !important; line-height: 1.65 !important; }

/* 1. Photo with the headline */
.kto-sh { position: relative; border-radius: 16px; overflow: hidden; background: var(--kto-accent) center / cover no-repeat; min-height: 340px; display: flex; align-items: flex-end; margin: 0 0 18px; }
.kto-sh.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.72) 100%); }
.kto-sh-in { position: relative; padding: 32px 34px 30px; color: #fff; max-width: 1000px; }
.kto-sh-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .92; margin-bottom: 10px; }
.kto-series .kto-sh-title { color: #fff !important; font-size: clamp(28px, 4.4vw, 46px) !important; line-height: 1.12 !important; font-weight: 800 !important; margin: 0 0 8px !important; text-shadow: 0 2px 14px rgba(0,0,0,.25); }
.kto-sh-name { font-size: 18px; font-weight: 600; opacity: .95; margin-bottom: 20px; }
.kto-sh-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.kto-series .kto-sh-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--kto-accent) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; transition: transform .15s; }
.kto-series .kto-sh-btn2 { background: var(--kto-accent); color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.kto-sh-btn:hover { transform: translateY(-1px); }

/* 2. Facts */
.kto-series .kto-sfacts { list-style: none; margin: 0 0 26px !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.kto-sfacts li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--kto-line); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; margin: 0 !important; }
.kto-sfacts svg { color: var(--kto-accent); flex: none; }

/* 3. Time line */
.kto-series .kto-stl { list-style: none; margin: 0 0 30px !important; padding: 0 !important; display: grid; grid-template-columns: repeat(var(--kto-n), minmax(0, 1fr)); position: relative; }
.kto-stl::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--kto-line); }
.kto-stl li { position: relative; margin: 0 !important; padding: 0 6px; text-align: center; }
.kto-stl li > a, .kto-stl li > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none !important; color: inherit !important; }
.kto-stl-no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--kto-accent); color: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--kto-accent); position: relative; margin-bottom: 6px; transition: transform .15s; }
.kto-stl-t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.kto-stl-p { font-size: 13px; color: var(--kto-muted); }
.kto-stl-soon { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--kto-muted); background: #f1f3f2; padding: 2px 8px; border-radius: 999px; margin-top: 2px; }
.kto-stl li.is-soon .kto-stl-no { background: #fff; color: #9aa5a0; box-shadow: 0 0 0 2px #cfd6d2; }
.kto-stl li.is-soon .kto-stl-t { color: #8a9590; }
.kto-stl li.is-on a:hover .kto-stl-no { transform: scale(1.08); }
.kto-stl li.is-on a:hover .kto-stl-t { color: var(--kto-accent); }

/* 4. Story */
.kto-sstory { margin: 0 0 26px; font-size: 17px; text-align: justify; hyphens: auto; }
.kto-series .kto-sstory-h { color: var(--kto-accent) !important; font-size: clamp(24px, 3vw, 32px) !important; font-weight: 800 !important; line-height: 1.2 !important; margin: 0 0 14px !important; text-align: left; }
.kto-sstory-more summary { cursor: pointer; font-weight: 700; color: var(--kto-accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.kto-sstory-more summary::-webkit-details-marker { display: none; }
.kto-sstory-more summary::after { content: "▾"; transition: transform .2s; }
.kto-sstory-more[open] > summary { display: none; }
.kto-series .kto-sstory-less { background: none !important; border: 0 !important; padding: 0 !important; margin: 0; cursor: pointer; font: inherit; font-weight: 700; color: var(--kto-accent) !important; display: inline-flex; align-items: center; gap: 6px; box-shadow: none !important; }
.kto-sstory-less::after { content: "▴"; }

/* 5. Quote */
.kto-series .kto-squote { margin: 0 0 34px !important; padding: 22px 28px; border-left: 4px solid var(--kto-accent); background: #f5f8f6; border-radius: 0 12px 12px 0; }
.kto-squote blockquote { margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: 20px; font-style: italic; line-height: 1.5; }
.kto-squote blockquote p:last-child { margin-bottom: 0 !important; }
.kto-squote figcaption { margin-top: 10px; font-weight: 700; color: var(--kto-muted); font-size: 15px; }

/* Story + quote with the stamp card beside them */
.kto-sbody { margin: 0 0 34px; }
.kto-sbody.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.kto-smain > :last-child { margin-bottom: 0 !important; }

/* Stamp card */
.kto-scard { position: sticky; top: 100px; padding: 24px 24px 22px; border: 2px dashed var(--kto-accent); border-radius: 16px; background: #fbfaf7; text-align: center; }
.kto-scard-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--kto-accent); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.kto-scard img { display: block; width: 86%; height: auto; margin: 0 auto 16px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.14); transform: rotate(-2deg); }
.kto-scard-ico { color: var(--kto-accent); margin-bottom: 8px; }
.kto-series .kto-scard h3 { margin: 0 0 8px !important; font-size: 22px !important; color: var(--kto-ink) !important; }
.kto-series .kto-scard p { font-size: 16px !important; }
.kto-series .kto-scard-btn { display: inline-block; margin-top: 4px; padding: 11px 20px; border-radius: 999px; background: var(--kto-accent); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }

@media (max-width: 960px) { .kto-sbody.has-side { grid-template-columns: minmax(0, 1fr) 270px; gap: 24px; } }
@media (max-width: 720px) {
	.kto-sh { min-height: 300px; border-radius: 12px; }
	.kto-sh-in { padding: 22px 20px; }
	.kto-sh-btn { padding: 11px 18px; font-size: 14px; }
	.kto-sfacts li { font-size: 14px; padding: 7px 12px; }
	.kto-series .kto-stl { grid-template-columns: 1fr; gap: 14px; }
	.kto-stl::before { left: 19px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
	.kto-stl li { text-align: left; padding: 0; }
	.kto-stl li > a, .kto-stl li > div { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
	.kto-stl-no { grid-row: span 3; margin: 0; }
	.kto-stl-soon { justify-self: start; }
	.kto-sstory { font-size: 16px; }
	.kto-squote { padding: 18px 20px; }
	.kto-squote blockquote { font-size: 18px; }
	.kto-sbody.has-side { grid-template-columns: 1fr; gap: 24px; }
	.kto-scard { position: static; padding: 20px; }
	.kto-scard img { width: 70%; }
}
