/*
 * OKYTO Passages 0.1.1 — Design V1 prototype of the experience pages. Scoped to .okpa, loaded only on an experience
 * drawn by this extension. Same tokens as Collections, Destinations, Stays and Tables (palette unchanged), kit serif
 * and system sans, no radius, no text on photographs. Identity of its own, "the invitation": the place and the name
 * centred, the photograph as a scene at its own ratio, the particulars of the experience on one ruled line; without a
 * photograph, a typographic card framed by a fine gold rule. The recommendation is set on a band, the practical
 * chapters become field notes. Breakpoints: 1199, 1023, 899, 767, 560 px.
 */

.okpa {
	--okp-ink: #111111;
	--okp-ink-2: rgba(17, 17, 17, .76);
	--okp-ink-3: rgba(17, 17, 17, .64);
	--okp-line: rgba(17, 17, 17, .14);
	--okp-line-2: rgba(17, 17, 17, .08);
	--okp-warm: #F7F6F2;
	--okp-band: #F2EDE5;
	--okp-gold: #B89A5A;
	--okp-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
	--okp-sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
	--okp-gut: clamp(20px, 4vw, 56px);
	--okp-sec: clamp(56px, 6.6vw, 104px);
	--okp-bar: 52px;
	--okp-read: 700px;
	color: var(--okp-ink);
	background: #fff;
	font-family: var(--okp-sans);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
.okpa *, .okpa *::before, .okpa *::after { box-sizing: border-box; }
.okpa :where(p, h1, h2, h3, ul, ol, li, figure, figcaption, dl, dt, dd) { margin: 0; padding: 0; }
.okpa ul, .okpa ol { list-style: none; }
.okpa a { color: inherit !important; text-decoration: none !important; }
.okpa img { display: block; max-width: 100%; height: auto; border: 0; }
.okpa :focus-visible { outline: 2px solid var(--okp-ink); outline-offset: 3px; }
.okpa [id] { scroll-margin-top: calc(var(--okp-bar) + 20px + var(--wp-admin--admin-bar--height, 0px)); }
.okpa-wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--okp-gut); }
.okpa-nw { white-space: nowrap; }
.okpa-arr { color: var(--okp-gold); }

/* ---------- Type ---------- */
.okpa .okpa-h1, .okpa .okpa-h2, .okpa .okpa-deck { font-family: var(--okp-serif); font-weight: 400; color: var(--okp-ink); text-transform: none; text-wrap: balance; }
.okpa .okpa-h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -.022em; }
.okpa .okpa-h1--long { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.04; }
.okpa .okpa-deck { margin-top: clamp(16px, 1.6vw, 24px); font-size: clamp(19px, 1.5vw, 23px); line-height: 1.45; color: var(--okp-ink-2); }
.okpa .okpa-h2 { font-size: clamp(32px, 3.2vw, 50px); line-height: 1.04; letter-spacing: -.016em; margin-bottom: clamp(20px, 2.2vw, 32px); }
.okpa-label { display: block; font-family: var(--okp-sans); font-size: 11px; font-weight: 600; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; color: var(--okp-ink-3); margin-bottom: 12px; }
.okpa-go { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--okp-ink-2); }
.okpa-go a:hover { box-shadow: inset 0 -1px 0 var(--okp-gold); }

/* ---------- Photographs: own ratio, credit below ---------- */
.okpa-fig { margin: 0; }
.okpa-fig img { width: 100%; height: auto; aspect-ratio: var(--r); background: var(--okp-band); }
.okpa-cap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; padding-top: 10px; font-size: 12px; line-height: 1.5; color: var(--okp-ink-3); }
.okpa-cap__c a { color: var(--okp-ink-3) !important; box-shadow: inset 0 -1px 0 var(--okp-line); }

/* ---------- Breadcrumb (same items as Site Core's and its BreadcrumbList) ---------- */
.okpa-bc { padding: 18px 0 0; }
.okpa-bc ol { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.okpa-bc li { display: inline-flex; align-items: baseline; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .17em; line-height: 1.6; text-transform: uppercase; color: var(--okp-ink-3); }
.okpa-bc li + li::before { content: "\203A"; color: var(--okp-gold); font-weight: 400; }
.okpa-bc li[aria-current] { color: var(--okp-ink); }

/* ---------- Opening: the invitation ---------- */
.okpa-open { padding-bottom: clamp(36px, 4vw, 64px); }
.okpa-open__head { max-width: 980px; margin: clamp(34px, 4.4vw, 72px) auto 0; text-align: center; }
.okpa-open__head .okpa-deck { max-width: 36em; margin-left: auto; margin-right: auto; }
.okpa-mark { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-bottom: clamp(16px, 1.8vw, 26px); font-size: 11.5px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; color: var(--okp-ink-3); }
.okpa-mark__k { color: var(--okp-ink); }
.okpa-mark__rule { width: 48px; height: 1px; background: var(--okp-gold); }
.okpa-mark__geo a { box-shadow: inset 0 -1px 0 rgba(184, 154, 90, .75); }
/* The scene: centred, at its own ratio, never wider than its file nor taller than about three quarters of the screen. */
.okpa-open__fig { width: min(100%, 1120px, var(--w, 1120px), calc(76vh * var(--r))); margin: clamp(30px, 3.4vw, 52px) auto 0; }
/* The particulars: one ruled line, items separated by hairlines. */
.okpa-pt { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 1120px; margin: clamp(26px, 2.8vw, 40px) auto 0; border-top: 1px solid var(--okp-ink); border-bottom: 1px solid var(--okp-line); }
.okpa-pt--1, .okpa-pt--2 { max-width: 760px; }
.okpa-pt__i { padding: 16px 22px 18px; border-left: 1px solid var(--okp-line); text-align: center; }
.okpa-pt__i:first-child { border-left: 0; }
.okpa-pt dt { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--okp-ink-3); }
.okpa-pt dd { margin-top: 6px; font-family: var(--okp-serif); font-size: 17px; line-height: 1.4; color: var(--okp-ink); }
.okpa-pt__i--long dd { font-size: 15.5px; }
.okpa-pt--long { grid-template-columns: repeat(var(--u), minmax(0, 1fr)); }
.okpa-pt--long .okpa-pt__i { text-align: left; }
.okpa-pt--long .okpa-pt__i--long { grid-column: span 2; }

/* Without a photograph: a typographic card framed by a fine gold rule, the particulars inside. */
.okpa-open--type { background: var(--okp-warm); padding-bottom: clamp(44px, 5vw, 80px); }
.okpa-card { position: relative; max-width: 1040px; margin: clamp(30px, 3.6vw, 56px) auto 0; padding: clamp(44px, 5.4vw, 84px) clamp(24px, 5vw, 80px) clamp(30px, 3.4vw, 48px); background: #fff; border: 1px solid rgba(184, 154, 90, .55); text-align: center; }
.okpa-card .okpa-h1 { font-size: clamp(40px, 5.4vw, 76px); }
.okpa-card .okpa-h1--long { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.06; }
.okpa-card .okpa-deck { max-width: 34em; margin-left: auto; margin-right: auto; }
.okpa-card .okpa-pt { margin-top: clamp(30px, 3.4vw, 48px); border-bottom: 0; }

/* ---------- Section bar ---------- */
.okpa-bar { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; background: #fff; border-top: 1px solid var(--okp-line); border-bottom: 1px solid var(--okp-line); }
.okpa-bar .okpa-wrap { display: flex; align-items: center; gap: 28px; height: var(--okp-bar); }
.okpa-bar__name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30%; font-family: var(--okp-serif); font-size: 17px; }
.okpa-bar__list { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.okpa-bar__list::-webkit-scrollbar { display: none; }
.okpa-bar__list a { display: inline-block; padding: 14px 0; white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .17em; text-transform: uppercase; color: var(--okp-ink-2); }
.okpa-bar__list a:hover { box-shadow: inset 0 -1px 0 var(--okp-gold); }

/* ---------- Story: one reading column, centred ---------- */
.okpa-sec { padding: var(--okp-sec) 0 0; }
.okpa-col { max-width: var(--okp-read); margin: 0 auto; }
.okpa-col h2 { font-family: var(--okp-serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 16px; text-transform: none; }
.okpa-col p { font-family: var(--okp-serif); font-size: 19px; line-height: 1.62; color: var(--okp-ink-2); margin: 0 0 1em; }
.okpa-col a { box-shadow: inset 0 -1px 0 rgba(184, 154, 90, .8); }
.okpa-col a:hover { box-shadow: inset 0 -2px 0 var(--okp-gold); }
.okpa-col ul, .okpa-col ol { margin: 0 0 1em 1.2em; font-family: var(--okp-serif); font-size: 19px; line-height: 1.6; color: var(--okp-ink-2); }
.okpa-col ul { list-style: disc; }
.okpa-col ol { list-style: decimal; }
.okpa-ch + .okpa-ch, .okpa-ch + .okpa-why, .okpa-why + .okpa-ch, .okpa-notes + .okpa-ch, .okpa-ch + .okpa-notes, .okpa-why + .okpa-notes, .okpa-notes + .okpa-why { margin-top: clamp(36px, 3.6vw, 52px); }
.okpa-ch--first > p:first-of-type { font-size: 22px; line-height: 1.55; color: var(--okp-ink); }
/* The recommendation: a band in the column, a gold rule, the heading as a label. */
.okpa-why { position: relative; padding: clamp(26px, 2.8vw, 40px) clamp(22px, 3vw, 44px) clamp(14px, 1.6vw, 24px); background: var(--okp-band); border-top: 2px solid var(--okp-gold); }
.okpa-why h2 { font-family: var(--okp-sans); font-size: 11px; font-weight: 600; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; color: var(--okp-ink-3); margin-bottom: 14px; }
.okpa-why p { color: var(--okp-ink); font-size: 20px; }
/* Field notes: consecutive practical chapters side by side, each under its own rule. */
.okpa-notes__l { margin-bottom: 18px; }
.okpa-notes__g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; }
.okpa-note { border-top: 1px solid var(--okp-ink); padding-top: 16px; }
.okpa-note h2 { font-size: 21px; margin-bottom: 10px; }
.okpa-note p, .okpa-note ul, .okpa-note ol { font-size: 16.5px; line-height: 1.6; }
.okpa-notes--3 .okpa-note:last-child { grid-column: 1 / -1; }
/* Plan it: a quiet ruled list after the story. */
.okpa-col h2.okpa-label { font-family: var(--okp-sans); font-size: 11px; font-weight: 600; letter-spacing: .17em; line-height: 1.5; text-transform: uppercase; color: var(--okp-ink-3); margin: 0 0 12px; }
.okpa-plan { margin-top: clamp(36px, 3.6vw, 52px); border-top: 1px solid var(--okp-ink); padding-top: 18px; }
.okpa-plan__dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.okpa-plan__i { padding: 12px 0; border-bottom: 1px solid var(--okp-line-2); }
.okpa-plan__i--wide { grid-column: 1 / -1; }
.okpa-plan dt { font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--okp-ink-3); }
.okpa-plan dd { margin-top: 4px; font-size: 15.5px; line-height: 1.5; }
.okpa-plan dd a { box-shadow: inset 0 -1px 0 rgba(184, 154, 90, .8); }
.okpa-updated { margin-top: 28px; font-size: 12px; color: var(--okp-ink-3); }
.okpa .okpa-col .okpa-updated { font-family: var(--okp-sans); font-size: 12px; }

@media (min-width: 1024px) {
	/* 0.1.1 — the text keeps its 700 px measure (about 73 characters a line); field notes and Plan it open to 860 px. */
	.okpa-notes, .okpa-plan { margin-left: -80px; margin-right: -80px; }
}

/* ---------- Around the experience ---------- */
.okpa-around { padding-bottom: var(--okp-sec); }
.okpa-around .okpa-h2 { padding-bottom: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--okp-ink); }
.okpa-parts { padding: 18px 0 22px; border-bottom: 1px solid var(--okp-line); }
.okpa-parts__l { font-family: var(--okp-serif); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; }
.okpa-parts__l a { box-shadow: inset 0 -1px 0 rgba(184, 154, 90, .8); }
.okpa-parts__sep { color: var(--okp-gold); }
.okpa-around__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); padding-top: 26px; }
.okpa-around__grid--1 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.okpa-around__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.okpa-around__g { padding-bottom: 26px; }
.okpa-list li { padding: 10px 0; border-bottom: 1px solid var(--okp-line-2); }
.okpa-list a { position: relative; font-family: var(--okp-serif); font-size: 18px; line-height: 1.35; }
.okpa-list a::after { content: ""; position: absolute; inset: -8px -4px; }
.okpa-list a:hover { box-shadow: inset 0 -1px 0 var(--okp-gold); }
.okpa-list__sub { display: block; margin-top: 3px; font-size: 12px; color: var(--okp-ink-3); }
.okpa-more { padding-top: 30px; border-top: 1px solid var(--okp-line); }
.okpa-around__duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 clamp(24px, 3vw, 48px); }
.okpa-around__duo .okpa-around__grid { grid-template-columns: minmax(0, 1fr); }
.okpa-around__duo .okpa-more { border-top: 0; padding-top: 26px; }
.okpa-around__duo .okpa-more__l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.okpa-around__duo .okpa-more__l--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.okpa-more__l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 2.6vw, 40px); align-items: start; }
.okpa-more__l--1, .okpa-more__l--2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.okpa-more__i a { display: block; }
.okpa-more__fig { margin-bottom: 14px; }
.okpa-more__k { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--okp-ink-3); }
.okpa-more__t { display: block; margin-top: 6px; font-family: var(--okp-serif); font-size: 20px; line-height: 1.3; }
.okpa-more__i--type { border-top: 1px solid var(--okp-ink); padding-top: 14px; }
.okpa-more__i a:hover .okpa-more__t { box-shadow: inset 0 -1px 0 var(--okp-gold); }

/* ---------- Short stories: compact, no artificial space ---------- */
.okpa--short { --okp-sec: clamp(44px, 5vw, 76px); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.okpa-pt--long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.okpa-pt--long .okpa-pt__i--long { grid-column: auto; }
	.okpa-pt--long .okpa-pt__i:nth-child(odd) { border-left: 0; }
	.okpa-pt--long .okpa-pt__i:nth-child(n+3) { border-top: 1px solid var(--okp-line); }
	.okpa-around__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.okpa-around__grid--1 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.okpa-bar__name { display: none; }
	.okpa-open__head, .okpa-mark, .okpa-card { text-align: left; justify-content: flex-start; }
	.okpa-open__head .okpa-deck, .okpa-card .okpa-deck { margin-left: 0; }
	.okpa-open__fig { width: auto; margin-left: calc(-1 * var(--okp-gut)); margin-right: calc(-1 * var(--okp-gut)); }
	.okpa-open__fig .okpa-cap { padding-left: var(--okp-gut); padding-right: var(--okp-gut); }
	.okpa-pt, .okpa-pt--long { grid-template-columns: 1fr; }
	.okpa-pt--long .okpa-pt__i--long { grid-column: auto; }
	.okpa-around__duo { grid-template-columns: minmax(0, 1fr); }
	.okpa-around__duo .okpa-more { border-top: 1px solid var(--okp-line); padding-top: 30px; }
	.okpa-pt__i { border-left: 0; border-top: 1px solid var(--okp-line); text-align: left; padding: 12px 0 13px; }
	.okpa-pt__i:first-child { border-top: 0; }
	.okpa-pt dd { font-size: 16.5px; }
	.okpa-card { padding: 34px 22px 18px; }
	.okpa-notes__g, .okpa-plan__dl, .okpa-around__grid, .okpa-around__grid--2, .okpa-more__l, .okpa-more__l--1, .okpa-more__l--2 { grid-template-columns: minmax(0, 1fr); }
	.okpa-notes--3 .okpa-note:last-child, .okpa-plan__i--wide { grid-column: auto; }
	.okpa-more__i a { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); column-gap: 16px; align-items: start; }
	.okpa-more__fig { grid-row: 1 / span 2; margin-bottom: 0; }
	.okpa-more__i--type a { display: block; }
	.okpa-more__t { font-size: 18px; }
	.okpa-col p, .okpa-col ul, .okpa-col ol { font-size: 18px; }
	.okpa-ch--first > p:first-of-type { font-size: 20px; }
	.okpa-why p { font-size: 18.5px; }
	.okpa-why { margin-left: calc(-1 * var(--okp-gut)); margin-right: calc(-1 * var(--okp-gut)); padding-left: var(--okp-gut); padding-right: var(--okp-gut); }
}
@media (max-width: 560px) {
	.okpa-bar__list { gap: 18px; }
}
@media (max-width: 600px) { .admin-bar .okpa { --wp-admin--admin-bar--height: 0px; } }
.okpa-open__head > *, .okpa-card > *, .okpa-around__grid > *, .okpa-more__l > * { min-width: 0; }
