/* Lexicon: the child's name as an entry in a fine dictionary. Hairlines, numbered senses, two ruled columns. */
:root { --te-radius: 0; --lx-w: 68rem; --lx-double: 3px double var(--te-ink); --lx-rule: color-mix(in srgb, var(--te-ink) 24%, transparent); }

/* Chrome */
.te-nav-wrap { padding: 0; position: relative; }
.te-nav { max-width: var(--lx-w); border-radius: 0; box-shadow: none; background: var(--te-menu-bg, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.te-nav-brand { font-weight: 700; }
.te-nav-link { min-height: 2.75rem; border-radius: 0; font-style: italic; opacity: 1; }
.te-nav-link.is-active { background: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.te-nav-sheet { background: var(--te-bg); }
.te-btn, .te-btn-outline { border-radius: 0; box-shadow: none; font-family: var(--te-heading); font-style: italic; font-weight: 500; }
.te-btn-sm { min-height: 2.75rem; }
.te-btn:hover { transform: none; text-decoration: underline; text-underline-offset: 3px; }
.te-btn.te-btn-outline { background: transparent; color: var(--te-primary-text); border: 1px solid var(--te-ink); }
.te-chip { border-radius: 0; padding: 0; background: none; color: var(--te-accent-text); font-style: italic; }
.te-field, .te-choice { border-radius: 0; }

/* Hero: the entry */
.lx-hero { position: relative; padding: 0 max(1.25rem, calc((100% - var(--lx-w)) / 2)) 2.5rem; }
.lx-running { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 2.5rem .625rem 0; font-family: var(--te-heading); font-size: .875rem; font-style: italic; color: var(--te-muted); border-top: 1px solid var(--lx-rule); border-bottom: var(--lx-double); }
.lx-running span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-thumb { position: absolute; top: .25rem; right: 0; display: grid; place-items: center; width: 2.25rem; height: 3rem; border-radius: .75rem 0 0 .75rem; background: var(--te-primary); color: var(--te-on-primary); font-family: var(--te-heading); font-weight: 700; }
.lx-entry { padding: clamp(1.75rem, 5vw, 3.5rem) 0 1.25rem; }
.lx-title { font-size: calc(var(--fit, 1) * clamp(3rem, 12.5vw, 8.5rem)); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--te-primary-text); overflow-wrap: break-word; }
.lx-word { display: inline-block; margin-right: .28em; }
.lx-dot { margin-inline: .015em; font-weight: 400; color: var(--te-accent-text); }
.lx-gram { margin-top: .75rem; font-family: var(--te-heading); font-size: clamp(1.125rem, 2.4vw, 1.5rem); color: var(--te-muted); }
.lx-gram i { color: var(--te-accent-text); }
.lx-etym { margin-left: .5rem; }
.lx-cols { display: grid; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--lx-rule); }
.lx-sub { font-family: var(--te-heading); font-size: clamp(1.375rem, 3vw, 1.875rem); line-height: 1.35; }
.lx-use { margin-top: .875rem; font-family: var(--te-heading); font-style: italic; color: var(--te-muted); }
.lx-def .te-count { margin-top: 1.5rem; }
.lx-cta { margin-top: 1.5rem; }
.lx-plate { width: min(100%, 17rem); margin-inline: auto; }
.lx-plate-img { aspect-ratio: 4/5; padding: .375rem; border: 1px solid var(--te-ink); background: var(--te-surface); }
.lx-plate-img > * { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lx-plate figcaption { margin-top: .5rem; font-family: var(--te-heading); font-size: .875rem; text-align: center; color: var(--te-muted); }

/* Countdown as one ruled line of type */
.te-count { flex-wrap: wrap; justify-content: flex-start; gap: .25rem 0; padding: .5rem 0; border-block: 1px solid var(--lx-rule); }
.te-count-cell { display: flex; flex: 0 0 auto; align-items: baseline; gap: .25rem; max-width: none; padding: 0 .6rem; border-radius: 0; background: none !important; box-shadow: none !important; text-align: left; }
.te-count-cell:first-of-type { padding-left: 0; }
.te-count-cell + .te-count-cell { border-left: 1px solid var(--lx-rule); }
.te-count-num { font-size: 1.5rem; font-weight: 700; color: var(--te-ink); }
.te-count-label { margin: 0; font-family: var(--te-heading); font-size: .75rem; font-style: italic; }

/* Running heads */
.te-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 2rem; max-width: var(--lx-w); margin: 0 auto 1.5rem; padding-block: .5rem; text-align: left; border-top: var(--lx-double); border-bottom: 1px solid var(--lx-rule); }
.te-schedule > .te-section-head, #details > .te-section-head { max-width: none; margin-inline: max(1.25rem, calc((100% - var(--lx-w)) / 2)); padding-inline: 0 !important; }
.te-section-sub { margin: 0; font-family: var(--te-heading); font-style: italic; }
.te-h-section { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.te-h-section::before { content: "¶ "; font-weight: 400; color: var(--te-accent-text); }
.te-closing .te-h-section::before { content: none; }
.te-h-page { font-weight: 700; font-size: clamp(2.75rem, 9vw, 5.5rem); line-height: 1.04; }
.te-h-card { font-size: 1.1875rem; font-weight: 700; }
.te-page-head { max-width: var(--lx-w); margin: 0 auto; padding: 2.5rem 1.25rem 1.25rem; border-radius: 0; background: none; text-align: left; border-bottom: var(--lx-double); }

/* Shared widths */
.te-facts-grid, .te-explore .grid, .te-explore > div, .te-gallery-grid, .te-closing-panel, #venue .te-card, .te-story .te-card, #details > section.px-5 > .grid { max-width: var(--lx-w) !important; }
.te-schedule > div:not(.te-section-head) { max-width: calc(var(--lx-w) + 2.5rem) !important; padding-inline: 1.25rem !important; }

/* Everything sits directly on the page */
.te-card, .te-tile { background: none; border: 0; border-radius: 0; box-shadow: none; }
a.te-card:hover, a.te-tile:hover { transform: none; box-shadow: none; }
.te-icon-tile, .te-facts svg.te-i, .te-explore svg.te-i, .te-story svg.te-i { display: none; }

/* Numbered senses */
.te-facts-grid, .te-timeline, #details > section.px-5 > .grid { counter-reset: sense; }
.te-facts-grid, .te-explore .grid, .te-timeline, #details > section.px-5 > .grid { display: block !important; }
.te-facts-grid > *, .te-timeline > li, #details > section.px-5 > .grid > * { position: relative; display: block !important; counter-increment: sense; break-inside: avoid; padding: 0 0 1.25rem 2rem !important; }
.te-facts-grid > *::before, .te-timeline > li::before, #details > section.px-5 > .grid > *::before { content: counter(sense) "."; position: absolute; left: 0; top: 0; font-family: var(--te-heading); font-size: 1.1875rem; font-weight: 700; line-height: 1.5; color: var(--te-accent-text); }
.te-facts .te-eyebrow { margin: 0 !important; font-family: var(--te-heading); font-style: italic; }
#details > section.px-5 .te-h-card { margin-top: 0 !important; font-style: italic; font-weight: 500; }
.te-facts a { min-height: 2.75rem; }
.te-facts .te-accent, .te-story .te-accent { text-decoration: underline; text-underline-offset: 3px; }

/* Cross-references */
.te-explore a.te-card { display: block; min-height: 2.75rem; padding: 0 0 .875rem !important; break-inside: avoid; }
.te-explore .te-h-card::before { content: "see "; font-style: italic; font-weight: 400; color: var(--te-muted); }
.te-explore a.te-card:hover .te-h-card { text-decoration: underline; text-underline-offset: 3px; }

/* Story */
.te-story .te-card { padding: .5rem 0 !important; }
.te-story .te-chip { font-family: var(--te-heading); font-size: 1.5rem; font-weight: 700; }

/* Programme: run-in senses */
.te-timeline { padding: 0 !important; }
.te-timeline li > div:first-child { display: none; }
.te-timeline li > div:last-child { display: block; }
.te-timeline .te-chip { display: inline; margin: 0 .35rem 0 0 !important; font-size: 1rem; color: var(--te-muted); }
.te-timeline .te-chip::before { content: "("; }
.te-timeline .te-chip::after { content: ")"; }
.te-timeline .te-h-card { display: inline; }
.te-timeline p { margin-top: .25rem; }
.te-schedule .mt-6 { max-width: 28rem !important; margin-left: 0 !important; justify-content: flex-start !important; }

/* Venue */
#venue .te-card { padding: 0 !important; }
#venue .text-center, .te-gallery .text-center { text-align: left; }
#venue .justify-center { justify-content: flex-start; }
#venue .grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
#venue .border-t { border-color: var(--lx-rule) !important; }

/* Gallery: numbered plates */
.te-gallery-grid { counter-reset: plate; }
.te-gallery-item { position: relative; counter-increment: plate; padding: .3125rem; border: 1px solid var(--te-ink); border-radius: 0 !important; background: var(--te-surface); }
.te-gallery-item img { object-position: 50% 20%; }
.te-gallery-item::after { content: "Fig. " counter(plate); position: absolute; left: .3125rem; bottom: .3125rem; padding: .0625rem .375rem; background: var(--te-surface); font-family: var(--te-heading); font-size: .75rem; font-style: italic; color: var(--te-ink); }

/* Closing: end of the entry */
.te-closing-panel { padding-inline: 0 !important; background: none; text-align: left; border-top: var(--lx-double); }
.te-closing-panel p { margin-left: 0 !important; font-family: var(--te-heading); font-style: italic; }

/* Two ruled columns */
@media (min-width: 800px) {
    .lx-cols { grid-template-columns: 1fr 1fr; column-gap: 4rem; background: linear-gradient(var(--lx-rule), var(--lx-rule)) center top / 1px 100% no-repeat; }
    .lx-plate { width: min(100%, 20rem); }
    .te-facts-grid, .te-explore .grid, .te-timeline, #details > section.px-5 > .grid { columns: 2; column-gap: 4rem; column-rule: 1px solid var(--lx-rule); }
    .te-story .te-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4rem; background: linear-gradient(var(--lx-rule), var(--lx-rule)) center top / 1px 100% no-repeat; }
    .te-story .te-chip { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
    .te-story .te-prose, .te-story .mt-6 { grid-column: 2; margin-top: 0; }
    .te-story .mt-6 { margin-top: 1.5rem; }
}
