/* OKYTO Site Core — compact header (Design V1, from OKYTO Dispatch 0.1.2, rules unchanged). */
:root { --okyto-header-h: 0px; --okh2-h: 52px; --okh2-top: 0px; }
/* 0.1.2: anchors land below the bar (it is shown after a jump down the page on computers, and may come back on phones). */
html { scroll-padding-top: calc(var(--okh2-top) + var(--okh2-h)); }
@media (min-width: 768px) { :root { --okh2-h: 56px; } }

.okh2-bar { position: fixed; z-index: 990; left: 0; right: 0; top: var(--okh2-top); height: var(--okh2-h); background: #fff; border-bottom: 1px solid rgba(20,20,20,.12); transform: translateY(-110%); transition: transform .28s ease; }
.okh2-bar[hidden] { display: block; visibility: hidden; }
.okh2-bar.is-shown { transform: none; visibility: visible; }
.okh2-bar__in { max-width: 1320px; height: 100%; margin: 0 auto; padding: 0 12px 0 18px; display: flex; align-items: center; gap: 28px; }
.okh2-logo { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 600; letter-spacing: .14em; color: #111 !important; text-decoration: none !important; line-height: 1; white-space: nowrap; }
.okh2-logo span { color: #b79a62; margin-left: .05em; }
.okh2-nav { display: none; align-items: center; gap: 24px; flex: 1 1 auto; min-width: 0; }
.okh2-nav a { font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #171717 !important; text-decoration: none !important; white-space: nowrap; padding: 8px 0; }
.okh2-nav a[aria-current], .okh2-nav a:hover { color: #8d7447 !important; box-shadow: inset 0 -1px 0 #b79a62; }
.okh2-btn { appearance: none; -webkit-appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 44px; height: 44px; padding: 0 8px; margin: 0; background: transparent !important; border: 0; border-radius: 0; color: #171717 !important; cursor: pointer; font: 600 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .16em; text-transform: uppercase; box-shadow: none; }
.okh2-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.okh2-btn--search { margin-left: auto; }
.okh2-burger { width: 18px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.okh2-x { position: relative; width: 16px; height: 16px; }
.okh2-x:before, .okh2-x:after { content: ""; position: absolute; left: -1px; right: -1px; top: 7px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.okh2-x:after { transform: rotate(-45deg); }
.okh2-btn:focus-visible, .okh2-nav a:focus-visible, .okh2-logo:focus-visible, .okh2-panel a:focus-visible { outline: 2px solid #b79a62; outline-offset: 2px; }

/* Panel: full screen, scrolls on its own (small screens, landscape). */
.okh2-panel { position: fixed; z-index: 1000; inset: var(--okh2-top) 0 0 0; background: #F7F4EE; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.okh2-panel[hidden] { display: none; }
.okh2-panel__top { position: sticky; top: 0; height: var(--okh2-h); display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 18px; background: #F7F4EE; border-bottom: 1px solid rgba(20,20,20,.1); }
.okh2-panel__body { max-width: 640px; margin: 0 auto; padding: 22px 22px 40px; }
.okh2-search__l { display: block; margin-bottom: 8px; font: 600 11px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6a6a6a; }
.okh2-search__row { display: flex; border: 1px solid #cfc7b8; background: #fff; }
.okh2-search input[type=search] { flex: 1 1 auto; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border: 0; background: transparent; color: #111; font-size: 16px; }
.okh2-search button { flex: 0 0 auto; height: 50px; padding: 0 16px; border: 0; border-left: 1px solid #cfc7b8; background: #111; color: #F7F6F2; font: 600 11px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.okh2-panel__nav { list-style: none; margin: 26px 0 0; padding: 0; }
.okh2-panel__nav li { border-bottom: 1px solid #e3ddd1; }
.okh2-panel__nav a { display: block; padding: 13px 0; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 28px; line-height: 1.2; color: #111 !important; text-decoration: none !important; }
.okh2-panel__nav a[aria-current] { color: #8d7447 !important; }
.okh2-panel__nav a[aria-current]:before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 0 0; border-radius: 50%; background: #B89A5A; vertical-align: middle; position: relative; top: -3px; }
.okh2-panel__tag { margin: 26px 0 0; font: 600 10px Arial, Helvetica, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #6a6a6a; }
html.okh2-lock, html.okh2-lock body { overflow: hidden; }

/* Phones: the compact bar replaces the original header, in a reserved space (no layout shift). */
@media (max-width: 767px) {
	.okyto-header.okh2-on .okyto-header__inner { visibility: hidden; height: var(--okh2-h); min-height: 0; padding: 0; overflow: hidden; }
	.okyto-header.okh2-on { height: var(--okh2-h); border-bottom: 0; }
	.okh2-bar[hidden] { visibility: visible; }
	/* 0.1.1: logo, search and Menu fit at 320 px with large system text. */
	.okh2-bar__in { gap: 6px; padding: 0 4px 0 16px; }
	.okh2-btn { padding: 0 6px; }
	.okh2-logo { flex: 0 1 auto; min-width: 0; }
}
/* 0.28.32: new homepage, phones: the identity block (logo + signature) is the page's H1, so the original header stays
   visible at the top, as on tablets; the compact bar appears once it has left the screen. */
@media (max-width: 767px) {
	.okyto-header.okh2-on[data-okyto-home-h1] { height: auto; border-bottom: 1px solid rgba(20,20,20,.12); }
	.okyto-header.okh2-on[data-okyto-home-h1] .okyto-header__inner { visibility: visible; height: auto; overflow: visible; padding: 16px 18px; }
	.okyto-header[data-okyto-home-h1] + .okh2-bar[hidden] { visibility: hidden; }
}
@media (max-width: 520px) { .okyto-header.okh2-on[data-okyto-home-h1] .okyto-header__inner { padding: 12px 16px 8px; } }
/* Tablets and computers: the compact bar shows the six families; the Menu button only where they do not fit. */
@media (min-width: 768px) {
	.okh2-bar__in { padding: 0 24px; }
	.okh2-nav { display: flex; }
	.okh2-btn--search { margin-left: 0; }
	.okh2-btn--menu { display: none; }
}
@media (min-width: 768px) and (max-width: 899px) { .okh2-nav { gap: 16px; } .okh2-nav a { font-size: 10.5px; letter-spacing: .08em; } .okh2-logo { font-size: 19px; } .okh2-bar__in { gap: 18px; } }
/* Very large text (system font size): the six families no longer fit; the Menu button takes over. */
.okh2-bar.is-tight .okh2-nav { display: none; }
.okh2-bar.is-tight .okh2-btn--menu { display: inline-flex; }
.okh2-bar.is-tight .okh2-btn--search { margin-left: auto; }

/* Sticky elements of the families (section bars, contents, Plan your visit…) are found by the script and moved under
   the bar while it is shown: only their sticky offset changes, never the layout of the page. */

@media (prefers-reduced-motion: reduce) { .okh2-bar { transition: none; } }

/* 0.28.33: from 1021 to 1200 px (iPad Pro portrait at 1024, small laptops) the full header no longer runs off the
   screen: the logo column shrinks to its content and the menu tightens. */
@media (min-width: 1021px) and (max-width: 1200px) {
	.okyto-header.okh2-on .okyto-header__inner { grid-template-columns: max-content minmax(0, 1fr) 44px; gap: 20px; padding-left: 24px; padding-right: 24px; }
	.okyto-header.okh2-on .okyto-nav { gap: 18px; justify-content: flex-end; }
	.okyto-header.okh2-on .okyto-nav a { letter-spacing: .07em; }
}
