/* Passport: an open identity spread, inked stamps, visa pages, chevrons of the machine-readable zone. */
:root {
    --te-radius: .25rem;
    --page: color-mix(in srgb, var(--te-surface) 88%, var(--te-accent));
    --guilloche: repeating-radial-gradient(circle at 18% 30%, transparent 0 13px, color-mix(in srgb, var(--te-primary) 9%, transparent) 13px 14px), repeating-radial-gradient(circle at 82% 72%, transparent 0 17px, color-mix(in srgb, var(--te-accent) 11%, transparent) 17px 18px);
    --chevrons: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M10 2 4 7l6 5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* Chrome: the navy-cloth cover */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: none; border-radius: 0; box-shadow: none; background: var(--te-primary); color: var(--te-on-primary); --te-menu-text: var(--te-on-primary); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 500; }
.te-nav-link { border-radius: .125rem; }
.te-nav-link.is-active { background: none; box-shadow: inset 0 -2px 0 var(--te-accent); }
.te-nav-sheet { background: var(--te-primary); }
.te-btn { border-radius: .125rem; background: var(--te-primary); color: var(--te-on-primary); box-shadow: none; font-weight: 600; }
.te-btn-accent { background: var(--te-accent); color: var(--te-on-accent); box-shadow: none; }
.te-btn-soft { background: var(--te-tint-strong); color: var(--te-primary-text); box-shadow: none; }
.te-btn-light { background: #fff; color: #14141c; box-shadow: none; }
.te-btn-outline { border-radius: .125rem; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); }
.te-field, .te-choice { border-radius: .125rem; }
.te-chip { border-radius: 0; background: none; padding: 0; color: var(--te-accent-text); font-weight: 600; }

/* The open book */
.pp-hero { overflow-x: clip; padding: clamp(1rem, 3vw, 2.5rem) clamp(.625rem, 3vw, 2.5rem) 1rem; }
.pp-defs { position: absolute; }
.pp-book { position: relative; max-width: 78rem; margin-inline: auto; padding: clamp(.5rem, 1.2vw, .875rem); border-radius: .75rem; background: var(--te-primary); box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.pp-spread { position: relative; display: grid; }
.pp-page { position: relative; padding: clamp(1.25rem, 3.5vw, 2.75rem); background-color: var(--page); background-image: var(--guilloche); }
.pp-page:first-child { border-radius: .375rem .375rem 0 0; }
.pp-cap { font-size: .75rem; color: var(--te-muted); }
.pp-id { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1.25rem; align-content: start; }
.pp-name { grid-column: 1 / -1; }
.pp-title { font-size: calc(var(--fit, 1) * clamp(2.75rem, 10vw, 5.25rem)); line-height: 1; font-weight: 500; letter-spacing: -.015em; color: var(--te-primary-text); overflow-wrap: break-word; }
.pp-photo { aspect-ratio: 4 / 5; overflow: hidden; align-self: start; border: 1px solid color-mix(in srgb, var(--te-ink) 30%, transparent); }
.pp-photo > * { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; filter: saturate(.85) contrast(1.05); }
.pp-fields { display: grid; gap: .75rem; align-content: start; min-width: 0; }
.pp-fields dd { margin: 0; font-family: var(--te-heading); font-size: 1.125rem; line-height: 1.25; color: var(--te-ink); overflow-wrap: break-word; }

/* Stamps: ink laid over the page, each struck at its own angle. */
.pp-visa { display: flex; flex-direction: column; gap: 1.5rem; }
.pp-stamps { display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; gap: .5rem; flex: 1; }
.pp-stamp { width: 100%; overflow: visible; mix-blend-mode: multiply; filter: url(#pp-ink); animation: pp-strike .4s cubic-bezier(.2,.9,.25,1) both; }
.pp-stamp-round { max-width: 13.5rem; color: var(--te-accent-text); transform: rotate(-12deg); animation-delay: .3s; }
.pp-stamp-rect { max-width: 17rem; color: var(--te-primary-text); transform: rotate(7deg); animation-delay: .55s; }
.pp-stamp-label { grid-column: 1 / -1; max-width: 18rem; color: var(--te-accent-text); transform: rotate(-3.5deg); animation-delay: .8s; }
.pp-ink-line { fill: none; stroke: currentColor; }
.pp-ink-text { fill: currentColor; font-family: var(--te-body); font-weight: 600; }
.pp-ink-big { font-family: var(--te-heading); font-weight: 600; }
@keyframes pp-strike { from { opacity: 0; scale: 1.4; } }
@media (prefers-reduced-motion: reduce) { .pp-stamp { animation: none; } }

.pp-visa .te-count { justify-content: flex-start; gap: 1.5rem; }
.te-count-cell { flex: 0 0 auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none !important; text-align: left; }
.te-count-num { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 500; color: var(--te-primary-text); }
.pp-cta .te-btn { width: 100%; }

/* Machine-readable strip, scaled to always fit its 44 characters. */
.pp-mrz-wrap { container-type: inline-size; padding: .5rem clamp(.75rem, 2vw, 1.5rem); border-radius: 0 0 .375rem .375rem; background: var(--page); }
.pp-mrz { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 3.55cqw; line-height: 1.3; color: var(--te-ink); white-space: nowrap; overflow: hidden; }
.pp-mrz span { display: block; }
@media (min-width: 860px) {
    .pp-spread { grid-template-columns: 1fr 1fr; }
    .pp-page:first-child { border-radius: .375rem 0 0 0; }
    .pp-page:last-child { border-radius: 0 .375rem 0 0; }
    .pp-spread::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3.5rem; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(0,0,0,.14) 48%, rgba(0,0,0,.2) 50%, rgba(0,0,0,.14) 52%, transparent); }
}

/* Headings ruled with chevrons. */
.te-section-head, .te-facts-grid, .te-explore > div, .te-schedule > div, .te-gallery-grid { max-width: 72rem !important; }
.te-section-head { margin-inline: auto; text-align: left; }
.te-section-head::after { content: ""; display: block; height: 14px; margin-top: .75rem; background: var(--te-accent-text); -webkit-mask: var(--chevrons) 0 0 / 14px 14px repeat-x; mask: var(--chevrons) 0 0 / 14px 14px repeat-x; }
.te-h-section, .te-h-page { font-weight: 500; font-size: clamp(2.25rem, 7.5vw, 4rem); line-height: 1.08; }
.te-h-card { font-weight: 500; font-size: 1.375rem; }
.te-icon-tile { display: none; }
.te-page-head { margin: 0; padding-block: clamp(3rem, 8vw, 5rem); border-radius: 0; background: var(--te-primary); color: var(--te-on-primary); text-align: left; }
.te-page-head > div { max-width: 72rem !important; }
.te-page-head * { color: inherit !important; }

/* Visa pages */
.te-card, .te-tile, .te-tile-accent { position: relative; border: 1px solid color-mix(in srgb, var(--te-primary) 22%, transparent); border-radius: .25rem; background-color: var(--page); background-image: var(--guilloche); box-shadow: none; }
a.te-card:hover { box-shadow: none; border-color: var(--te-accent-text); transform: none; }
.te-eyebrow { margin: 0 !important; font-size: .8125rem; }
.te-tile::after { content: ""; position: absolute; top: .875rem; right: .875rem; width: 3.25rem; height: 3.25rem; border: 3px double var(--te-accent-text); border-radius: 50%; opacity: .5; transform: rotate(-14deg); }
.te-facts-grid { gap: .5rem !important; }
.te-explore .grid { gap: .5rem !important; }
.te-explore a.te-card { min-height: 5rem; }
.te-explore a.te-card > svg { display: none; }
.te-story .te-card { max-width: 72rem !important; }
.te-prose { max-width: 42rem; }

/* Programme: each moment is a stamped entry. */
.te-schedule > div { max-width: 62rem !important; }
.te-timeline { padding: 0 !important; display: grid; gap: 1rem; border: 0; background: none; }
.te-timeline li { grid-template-columns: 1fr !important; padding: 1rem 1.25rem !important; border: 3px double var(--te-primary-text); background: color-mix(in srgb, var(--te-surface) 60%, transparent); }
.te-timeline li:nth-child(odd) { transform: rotate(-.9deg); }
.te-timeline li:nth-child(even) { transform: rotate(.8deg); }
.te-timeline li > div:first-child { display: none; }
.te-timeline .te-chip { margin-bottom: .125rem; font-family: var(--te-heading); font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 500; line-height: 1.1; color: var(--te-accent-text); }
.te-timeline .te-h-card { color: var(--te-primary-text); }
@media (min-width: 800px) { .te-timeline { grid-template-columns: 1fr 1fr; } }

/* Gallery: identity photographs. */
.te-gallery-grid { gap: 1rem !important; }
.te-gallery-item { aspect-ratio: 4 / 5; padding: .5rem; border-radius: .125rem !important; background: var(--page); border: 1px solid color-mix(in srgb, var(--te-primary) 22%, transparent); }
.te-gallery-item img { object-position: 50% 14%; }

.te-closing-panel { max-width: 72rem !important; text-align: left; background-color: var(--te-primary); background-image: none; color: var(--te-on-primary); }
.te-closing-panel::after { display: none; }
.te-closing-panel * { color: inherit !important; }
.te-closing-panel .te-muted { margin-left: 0; }
.te-closing-panel .te-btn { background: var(--te-accent); color: var(--te-on-accent) !important; }
