@charset "UTF-8";
/* M1 theme: the reference's visual language (limestone / ink / terracotta / ochre) applied to the existing templates.
   Loaded last; it restyles shared components and defines the new ones (timeline, entity cards, object page, media frame).
   Existing selectors keep working for publications, volumes, system pages and search. */

/* ---------- base -------------------------------------------------------------------------------------------- */
[hidden]{display:none!important}
body{background:var(--canvas);color:var(--ink)}
.wrap{max-width:var(--wrap)}
/* typography roles (tokens.css): display for headings and central UI, heading for serif accents, body for text */
h1,h2,h3,h4{font-family:var(--font-display);font-weight:var(--display-weight);letter-spacing:var(--display-tracking);text-wrap:balance}
h1{font-size:calc(var(--display-scale)*clamp(2.5rem,5vw,4.25rem));line-height:var(--display-lh)}
h2{font-size:calc(var(--display-scale)*clamp(1.75rem,3vw,2.5rem));line-height:calc(var(--display-lh) + .08)}
h3{font-size:calc(var(--display-scale)*1.375rem);line-height:calc(var(--display-lh) + .2)}
h4{font-size:calc(var(--display-scale)*1.15rem);line-height:calc(var(--display-lh) + .2)}
.serif-accent,.lead,.page-lead,.hero-lead,.object-lead,.article-lead,.period-lead,.prose blockquote,.text-frame-facts{font-family:var(--font-heading)}
html:lang(he) :is(.lead,.page-lead,.hero-lead,.object-lead,.article-lead,.period-lead){font-weight:400}
.ui-text{font-family:var(--font-ui);font-weight:var(--ui-weight);letter-spacing:var(--ui-tracking)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:var(--radius-s)}
.eyebrow{font-family:var(--font-ui);color:var(--primary);font-weight:var(--ui-weight);font-size:calc(var(--ui-scale)*.74rem);letter-spacing:var(--ui-tracking);line-height:1.3}
html:not([lang=he]) .eyebrow{letter-spacing:.16em;text-transform:uppercase}
.eyebrow-light{color:var(--ochre)}
.text-link{font-family:var(--font-ui);font-weight:var(--ui-weight);letter-spacing:var(--ui-tracking);font-size:calc(var(--ui-scale)*.875rem);color:var(--ink);border-color:var(--line-strong)}
.text-link:hover{color:var(--primary);border-color:var(--primary)}
.tiny-rule{background:var(--primary)}
.button{font-family:var(--font-ui);font-weight:var(--ui-weight);letter-spacing:var(--ui-tracking);font-size:calc(var(--ui-scale)*.9375rem);background:var(--primary);color:var(--on-primary);border:1px solid var(--primary);border-radius:var(--radius-s);gap:14px;padding:12px 20px;min-height:48px;transition:background var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease),color var(--motion-fast) var(--ease)}
.button:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:var(--on-primary)}
.button-outline{background:transparent;color:var(--ink);border-color:var(--ink)}
.button-outline:hover{background:var(--surface-2);color:var(--ink);border-color:var(--ink)}
.button-ghost{background:transparent;color:var(--ink-foreground);border-color:rgba(242,234,221,.45)}
.button-ghost:hover{background:rgba(242,234,221,.12);border-color:var(--ink-foreground);color:var(--ink-foreground)}
.quiet-link{font-family:var(--font-ui);font-weight:var(--ui-weight);font-size:calc(var(--ui-scale)*.875rem);border-color:var(--line-strong)}
.count-badge{display:inline-block;font-family:var(--font-body);font-size:.75rem;font-weight:600;color:var(--primary);background:var(--surface-2);border-radius:999px;padding:2px 10px;vertical-align:middle;margin-inline-start:8px}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- local draft preview banner (dev server only) ----------------------------------------------------- */
.preview-banner{background:#3b2a0f;color:#fde9b8;font-size:.85rem;padding:8px var(--gutter);text-align:center;border-block-end:2px dashed var(--ochre)}
/* ---------- header ------------------------------------------------------------------------------------------ */
.site-header{position:sticky;inset-block-start:0;background:rgba(248,243,233,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-block-end:1px solid var(--line);z-index:40}
.header-inner{min-height:84px;gap:28px}
.brand-symbol{color:var(--primary)}
.brand-name{font-family:var(--font-display);font-size:calc(var(--display-scale)*2rem);font-weight:var(--display-weight);letter-spacing:var(--display-tracking);line-height:.95}
.brand-tag{color:var(--muted);font-size:.6rem;letter-spacing:.08em}
html:not([lang=he]) .brand-tag{text-transform:uppercase}
.desktop-nav{gap:22px}
.desktop-nav>a{font-family:var(--font-ui);font-weight:var(--ui-weight);letter-spacing:var(--ui-tracking);font-size:calc(var(--ui-scale)*.875rem);color:var(--muted)}
.desktop-nav>a:hover,.desktop-nav>a[aria-current]{color:var(--ink)}
.desktop-nav>a:after{background:var(--primary);height:2px;inset-block-end:2px}
.search-link{font-family:var(--font-ui);font-weight:var(--ui-weight);border:1px solid var(--line-strong);border-radius:999px;padding:0 14px;min-height:38px;font-size:calc(var(--ui-scale)*.8rem);gap:8px}
.search-link:hover{border-color:var(--primary);color:var(--primary)}
.preferences-shortcut{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;min-height:38px;color:var(--muted)}
.preferences-shortcut .icon{width:18px;height:18px}
.preferences-shortcut:hover{color:var(--primary)}
.languages>a{font-size:.72rem;color:var(--muted)}
.languages>a[aria-current]{color:var(--ink);text-decoration-color:var(--primary)}
.mobile-menu summary{color:var(--ink);min-width:44px;min-height:44px;justify-content:center;padding-inline:8px;margin-inline-end:-8px}
.mobile-menu nav{border-radius:var(--radius-m);box-shadow:var(--shadow-card)}

/* ---------- hero (home) ------------------------------------------------------------------------------------- */
.hero-band{background:var(--ink-deep);color:var(--ink-foreground);background-image:radial-gradient(60% 80% at 100% 0%,rgba(208,153,69,.16),transparent 60%),linear-gradient(180deg,rgba(25,15,9,0) 0%,rgba(25,15,9,.35) 100%)}
.hero-band .hero{grid-template-columns:1.1fr .9fr;gap:clamp(32px,5vw,80px);padding-block:clamp(44px,6vw,88px) clamp(36px,5vw,72px);align-items:center}
.hero-copy h1,html:lang(he) .hero-copy h1{color:var(--ink-foreground);font-size:calc(var(--display-scale)*clamp(2.75rem,5.4vw,4.75rem));line-height:var(--display-lh);max-width:14ch;margin-block:18px 22px;letter-spacing:var(--display-tracking)}
html:lang(he) .hero-copy h1{max-width:16ch}
.hero-copy h1:after{display:none}
.hero-lead{color:var(--ink-foreground);opacity:.82;max-width:var(--measure-lead);font-size:1.125rem;line-height:1.75}
.hero-actions{margin-block-start:28px;gap:16px;flex-wrap:wrap}
.hero-story-note{margin-block-start:14px;font-size:.8rem;opacity:.7}
.hero-band .library-count{color:var(--ink-foreground);opacity:.72;margin-block-start:26px}
.hero-band .library-count strong{color:var(--ochre);font-size:1.1rem}
.hero-band .object-stage{background:var(--surface);border-radius:var(--radius-m);aspect-ratio:1/1;padding:clamp(20px,3vw,36px);box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
.hero-band .object-stage:after{display:none}
.hero-band .object-label{color:var(--muted);font-size:.62rem;letter-spacing:.08em}
html:not([lang=he]) .hero-band .object-label{text-transform:uppercase}
.hero-band .hero-image{mix-blend-mode:multiply;max-height:none;height:100%}
.hero-band figcaption{color:var(--ink-foreground);opacity:.78;font-size:.68rem}
.hero-band figcaption a{color:inherit}
.hero-band .image-credit{color:inherit}

/* ---------- section rhythm ---------------------------------------------------------------------------------- */
.section-heading{margin-block-end:28px}
.section-heading h2{max-width:24ch}
/* a long word in a heading (Russian at a large text scale on a phone) breaks instead of widening the page */
h1,h2,h3{overflow-wrap:anywhere}
html:lang(ru) :is(h2,h3){hyphens:auto}
.section-heading>div>p:not(.eyebrow){font-family:var(--font-heading);color:var(--muted);font-size:1.05rem;max-width:var(--measure-lead)}
.entry-section{padding-block:40px 44px}
.entry-grid{grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-m);overflow:hidden}
.entry-item{padding:26px 22px;gap:16px;background:var(--surface)}
.entry-item+.entry-item{border-inline-start:1px solid var(--line)}
.entry-item:hover{background:var(--canvas)}
.entry-icon{color:var(--primary);width:38px}
.entry-icon .icon{width:30px;height:30px}
.entry-item h3{font-family:var(--font-display);font-weight:var(--display-weight);font-size:calc(var(--display-scale)*1.5rem);line-height:1.1}
.entry-item p{color:var(--muted);font-size:.85rem}
.entry-examples{color:var(--primary)}
.entry-item>.icon{color:var(--muted)}
.timeline-section{padding-block:56px 60px;border-block-start:1px solid var(--line)}
.objects-section,.selected-section,.places-section{padding-block:48px 56px;border-block-start:1px solid var(--line)}
.library-search{border-block-start:1px solid var(--line);padding-block:36px 40px}
.context-band{background:var(--ink-deep);color:var(--ink-foreground);border:0}
.context-band .context-mark{color:var(--ochre)}
.context-inner p{color:var(--ink-foreground);opacity:.8;border-color:rgba(242,234,221,.25)}
.context-inner h2{color:var(--ink-foreground)}
.learning-section{background:var(--surface-2);border-block:1px solid var(--line)}
.learning-link{border-color:var(--line-strong)}
.learning-link>.icon{color:var(--primary)}
.learning-link p{color:var(--muted)}
.editorial-section>p:not(.eyebrow){color:var(--muted)}

/* ---------- media frame ------------------------------------------------------------------------------------- */
.media-frame{margin:0;min-width:0}
.media-frame .media-stage{position:relative;background:var(--surface-3);border-radius:var(--radius-s);overflow:hidden;display:grid;place-items:center}
.media-frame.ratio-card .media-stage{aspect-ratio:4/3}
.media-frame.ratio-object .media-stage{aspect-ratio:1/1}
.media-frame.ratio-wide .media-stage{aspect-ratio:16/8}
.media-frame.ratio-natural .media-stage{aspect-ratio:auto}
.media-frame .media-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:5%;mix-blend-mode:multiply;transition:opacity var(--motion-base) var(--ease)}
.media-frame.ratio-natural .media-stage>img{position:static;height:auto;padding:0}
.media-frame.is-context .media-stage>img,.card-place .media-stage>img{object-fit:cover;padding:0;mix-blend-mode:normal}
.media-frame.is-failed .media-stage>img{opacity:0}
.media-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;text-align:center;color:var(--muted);font-size:.78rem;line-height:1.5;margin:0}
.media-fallback .icon{width:26px;height:26px;opacity:.7}
.media-frame.is-missing .media-stage{border:1px dashed var(--line-strong);background:var(--surface)}
.media-frame figcaption{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between;align-items:start;font-size:.72rem;color:var(--muted);line-height:1.65;padding-block:10px 0}
.media-frame figcaption .caption-text{flex:1 1 60%}
.media-frame .image-credit{flex:1 1 30%;max-width:none;font-size:.66rem;text-align:end;direction:ltr}
.media-identity{display:inline-block;font-weight:600;color:var(--ink);margin-inline-end:6px}
.media-identity.is-comparison{color:var(--primary)}
.media-identity.is-comparison:before{content:"◌ "}
.media-identity.is-documentary:before{content:"● ";color:var(--olive)}
.media-identity.is-documentary-elsewhere a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.text-frame{position:relative;background:var(--surface);border:1px solid var(--line-strong,var(--line));border-radius:var(--radius-s);aspect-ratio:1/1;display:flex;flex-direction:column;justify-content:center;gap:14px;padding:clamp(22px,4vw,44px);box-shadow:inset 0 0 0 6px var(--surface),inset 0 0 0 7px var(--line)}
.text-frame-kicker{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--primary);border-block-end:1px solid var(--line);padding-block-end:10px}
.text-frame-facts div{display:grid;grid-template-columns:minmax(5.5em,auto) 1fr;gap:4px 14px;align-items:baseline;padding-block:5px;border-block-end:1px dotted var(--line)}
.text-frame-facts div:last-child{border-block-end:0}
.text-frame-facts dt{font-family:var(--font-ui);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.text-frame-facts dd{margin:0;color:var(--ink);font-size:.98rem;line-height:1.45}
.text-frame .media-fallback-note{display:flex;gap:8px;align-items:flex-start;line-height:1.55}
.text-frame .media-fallback-note .icon{flex:none;width:16px;height:16px;margin-block-start:2px}
.text-frame-link{margin-block-start:-4px;font-size:.85rem}
.text-frame-title{font-family:var(--font-display);font-weight:var(--display-weight);font-size:calc(var(--display-scale)*clamp(1.75rem,3vw,2.5rem));line-height:1.08}
.text-frame-facts{list-style:none;padding:0;margin:0;font-size:1rem;color:var(--muted);display:grid;gap:0}
.media-fallback-note{font-size:.75rem;color:var(--muted);margin-block-start:auto}

/* ---------- entity cards ------------------------------------------------------------------------------------ */
.card-grid,.featured-grid,.place-grid,.continue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}
.objects-grid,.continue-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.entity-card{position:relative;display:flex;flex-direction:column;background:var(--surface);box-shadow:var(--shadow-card);border-radius:var(--radius-s);min-width:0;transition:transform var(--motion-base) var(--ease),box-shadow var(--motion-base) var(--ease)}
.entity-card:hover{transform:translateY(-3px);box-shadow:0 1px 0 var(--line),0 18px 36px -18px rgba(63,39,22,.5)}
.entity-card-media{display:block}
.entity-card-index{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:var(--surface-2);color:var(--muted);font-size:.72rem;font-weight:600;border-radius:var(--radius-s) var(--radius-s) 0 0;min-height:56px}
.entity-card-index .icon{width:24px;height:24px;color:var(--primary)}
.entity-card-media .media-frame .media-stage{border-radius:var(--radius-s) var(--radius-s) 0 0}
.entity-card-body{display:flex;flex-direction:column;gap:8px;padding:18px 18px 20px;flex:1}
.entity-card-body h3{font-size:calc(var(--display-scale)*1.35rem);line-height:calc(var(--display-lh) + .12);overflow-wrap:anywhere}
.entity-card-body h3 a:after{content:"";position:absolute;inset:0}
.entity-card-body h3 a:hover{color:var(--primary)}
.entity-card:focus-within{outline:3px solid var(--focus);outline-offset:3px}
.entity-card-body h3 a:focus-visible{outline:none}
.entity-card-summary{color:var(--muted);font-size:.875rem;line-height:1.7}
.entity-card-meta{font-size:.74rem;color:var(--muted);font-variant-numeric:tabular-nums}
.entity-card-reason{margin-block-start:auto;border-block-start:1px solid var(--line);padding-block-start:10px;font-size:.8rem;font-style:italic;color:var(--ink)}
.entity-card.is-compact{flex-direction:row;align-items:stretch}
.entity-card.is-compact .entity-card-body{padding:16px 18px}
.card-grid .content-card{display:flex}
/* 2.7: the articles directory opens with a wide feature card (the first, newest article); the rest keep the grid */
.article-directory>.entity-card:first-child{grid-column:span 2;flex-direction:row;align-items:stretch}
.article-directory>.entity-card:first-child>.entity-card-media,.article-directory>.entity-card:first-child>.entity-card-cover{flex:0 0 48%;min-width:0}
.article-directory>.entity-card:first-child>.entity-card-media .media-frame{height:100%;margin:0}
.article-directory>.entity-card:first-child>.entity-card-media .media-frame .media-stage{border-radius:var(--radius-s) 0 0 var(--radius-s);height:100%}
[dir=rtl] .article-directory>.entity-card:first-child>.entity-card-media .media-frame .media-stage{border-radius:0 var(--radius-s) var(--radius-s) 0}
.article-directory>.entity-card:first-child>.entity-card-media .media-frame.ratio-object .media-stage{aspect-ratio:auto;height:100%;min-height:300px}
.article-directory>.entity-card:first-child>.entity-card-cover{aspect-ratio:auto;border-block-end:0;border-inline-end:1px solid var(--line);border-radius:var(--radius-s) 0 0 var(--radius-s)}
[dir=rtl] .article-directory>.entity-card:first-child>.entity-card-cover{border-radius:0 var(--radius-s) var(--radius-s) 0}
.article-directory>.entity-card:first-child>.entity-card-body{padding:28px 30px 30px;justify-content:center}
.article-directory>.entity-card:first-child>.entity-card-body h3{font-size:calc(var(--display-scale)*1.7rem);max-width:22ch}
.article-directory>.entity-card:first-child .entity-card-summary{font-size:1rem;max-width:52ch}
@media(max-width:900px){.article-directory>.entity-card:first-child{grid-column:auto;flex-direction:column}.article-directory>.entity-card:first-child>.entity-card-media,.article-directory>.entity-card:first-child>.entity-card-cover{flex:none}.article-directory>.entity-card:first-child>.entity-card-media .media-frame .media-stage,[dir=rtl] .article-directory>.entity-card:first-child>.entity-card-media .media-frame .media-stage{border-radius:var(--radius-s) var(--radius-s) 0 0;height:auto}.article-directory>.entity-card:first-child>.entity-card-media .media-frame.ratio-object .media-stage{aspect-ratio:1/1;min-height:0}.article-directory>.entity-card:first-child>.entity-card-cover,[dir=rtl] .article-directory>.entity-card:first-child>.entity-card-cover{border-inline-end:0;border-block-end:1px solid var(--line);border-radius:var(--radius-s) var(--radius-s) 0 0}.article-directory>.entity-card:first-child>.entity-card-body{padding:18px 18px 20px}.article-directory>.entity-card:first-child>.entity-card-body h3{font-size:calc(var(--display-scale)*1.45rem)}}
.content-card .card-index,.card-index{display:none}

/* ---------- timeline ---------------------------------------------------------------------------------------- */
.timeline{border-block-start:1px solid var(--line);padding-block-start:22px}
.timeline-regions{display:flex;flex-wrap:wrap;gap:8px;margin-block-end:14px}
.timeline:not(.is-enhanced) .timeline-regions{display:none}
.region-chip{font-family:var(--font-ui);font-weight:var(--ui-weight);letter-spacing:var(--ui-tracking);border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--ink);padding:7px 16px;font-size:calc(var(--ui-scale)*.875rem);min-height:40px;line-height:1.2;transition:background var(--motion-fast) var(--ease),color var(--motion-fast) var(--ease),border-color var(--motion-fast) var(--ease)}
.region-chip:hover{border-color:var(--ink)}
.region-chip[aria-pressed=true]{background:var(--ink-deep);color:var(--ink-foreground);border-color:var(--ink-deep)}
.timeline-instructions{font-size:.78rem;color:var(--muted);max-width:var(--measure-body);margin-block:0 22px}
.timeline:not(.is-touch) [data-hint-touch],.timeline.is-touch [data-hint-desktop]{display:none}
.timeline:not(.is-enhanced) [data-hint-desktop],.timeline:not(.is-enhanced) [data-hint-touch]{display:none}
.timeline-region-title{font-size:calc(var(--display-scale)*1.5rem);margin-block-end:14px}
.timeline.is-enhanced .timeline-region-title{display:none}
.timeline-region+.timeline-region{margin-block-start:40px}
.timeline.is-enhanced .timeline-region+.timeline-region{margin-block-start:0}
.timeline-jump{display:flex;flex-wrap:wrap;gap:6px 14px;margin-block-end:16px;font-size:.8rem}
.timeline-jump a{text-decoration:underline;text-underline-offset:3px;color:var(--primary);padding-block:4px}
.timeline.is-enhanced .timeline-jump{display:none}
.timeline-bands{list-style:none;padding:0;margin:0;display:flex;gap:4px;height:118px}
.timeline-bands>li{flex-grow:1;flex-basis:0;min-width:96px;display:flex;container-type:inline-size}
/* a narrow band keeps its title and count; the year range (which would break letter by letter) stays for assistive technology only */
@container (max-width:84px){.band-range{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}}
.band{width:100%;display:flex;flex-direction:column;justify-content:space-between;gap:6px;text-align:start;padding:10px 10px 9px;background:var(--surface-2);color:var(--ink);border:0;border-block-start:4px solid var(--line-strong);border-radius:var(--radius-s);overflow:hidden;transition:background var(--motion-base) var(--ease),color var(--motion-base) var(--ease),box-shadow var(--motion-base) var(--ease)}
.band:hover{background:var(--ochre-soft)}
.band.is-previewing{background:var(--ochre);color:var(--ink-deep);box-shadow:inset 0 0 0 2px var(--ochre),0 0 0 2px var(--canvas),0 0 0 4px var(--ochre);border-block-start-color:var(--ochre)}
.band[aria-pressed=true]{background:var(--primary);color:var(--on-primary);border-block-start-color:var(--primary-hover)}
.band-title{font-family:var(--font-display);font-weight:var(--display-weight);font-size:calc(var(--display-scale)*.98rem);line-height:1.12;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:normal;hyphens:manual;text-wrap:balance}
.band-date{display:flex;justify-content:space-between;align-items:end;gap:6px;font-size:.64rem;opacity:.85;overflow:hidden;font-variant-numeric:tabular-nums;line-height:1.3}
.band-range{min-width:0;overflow-wrap:anywhere}
.band-count{flex:none;background:rgba(255,255,255,.35);border-radius:999px;padding:1px 7px;font-weight:600}
.band[aria-pressed=true] .band-count{background:rgba(0,0,0,.25)}
.timeline-bands>li.period-neolithic .band{border-block-start-color:var(--period-neolithic)}.timeline-bands>li.period-chalcolithic .band{border-block-start-color:var(--period-chalcolithic)}.timeline-bands>li.period-bronze-age .band{border-block-start-color:var(--period-bronze-age)}.timeline-bands>li.period-iron-age .band{border-block-start-color:var(--period-iron-age)}.timeline-bands>li.period-persian .band{border-block-start-color:var(--period-persian)}.timeline-bands>li.period-hellenistic .band{border-block-start-color:var(--period-hellenistic)}.timeline-bands>li.period-roman .band{border-block-start-color:var(--period-roman)}.timeline-bands>li.period-byzantine .band{border-block-start-color:var(--period-byzantine)}.timeline-bands>li.period-early-islamic .band{border-block-start-color:var(--period-early-islamic)}.timeline-bands>li.period-medieval .band{border-block-start-color:var(--period-medieval)}
.timeline-scale{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted);margin-block:8px 18px;font-variant-numeric:tabular-nums}
/* the proportional strip under the compact rail: one segment per period, flex-grow = the band's duration weight */
.timeline-strip{display:none;gap:2px;height:6px;margin-block-start:6px;border-radius:3px;overflow:hidden}
.timeline-strip>span{flex-basis:0;min-width:3px;background:var(--line-strong);opacity:.55;transition:opacity var(--motion-base) var(--ease)}
.timeline-strip>span.is-selected{opacity:1}
.timeline-strip>span.period-neolithic,.timeline-strip>span.period-pottery-neolithic-late{background:var(--period-neolithic)}.timeline-strip>span.period-chalcolithic,.timeline-strip>span.period-chalcolithic-early{background:var(--period-chalcolithic)}.timeline-strip>span.period-bronze-age{background:var(--period-bronze-age)}.timeline-strip>span.period-iron-age{background:var(--period-iron-age)}.timeline-strip>span.period-persian{background:var(--period-persian)}.timeline-strip>span.period-hellenistic{background:var(--period-hellenistic)}.timeline-strip>span.period-roman{background:var(--period-roman)}.timeline-strip>span.period-byzantine{background:var(--period-byzantine)}.timeline-strip>span.period-early-islamic{background:var(--period-early-islamic)}.timeline-strip>span.period-medieval{background:var(--period-medieval)}
.timeline-rail{position:relative}
.timeline-preview{position:absolute;top:calc(100% - 8px);left:0;right:0;z-index:6;margin:0;border:2px dashed var(--ochre);background:#fbf3e3;border-radius:var(--radius-s);padding:18px 22px;box-shadow:0 18px 44px rgba(21,43,56,.22);max-height:min(60vh,520px);display:flex;flex-direction:column;cursor:pointer}
/* the eyebrow and the hint stay in view; only the period text scrolls when the overlay is capped to the room on screen */
.timeline-preview>[data-preview-body]{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain}
.timeline-preview::before{content:"";position:absolute;top:-9px;left:calc(var(--caret-x,50%) - 8px);width:14px;height:14px;background:#fbf3e3;border-inline-start:2px dashed var(--ochre);border-block-start:2px dashed var(--ochre);transform:rotate(45deg)}
/* not enough room below the rail: the overlay opens above it, the caret points down */
.timeline-preview.is-above{top:auto;bottom:calc(100% - 8px);box-shadow:0 -14px 40px rgba(21,43,56,.18)}
.timeline-preview.is-above::before{top:auto;bottom:-9px;border-inline-start:0;border-block-start:0;border-inline-end:2px dashed var(--ochre);border-block-end:2px dashed var(--ochre)}
.timeline-preview .preview-hint{margin-block:14px 0;font-size:.72rem;color:#8a5d14;letter-spacing:.02em}
.timeline-preview{opacity:0;transform:translateY(-6px);transition:opacity var(--motion-fast) var(--ease),transform var(--motion-fast) var(--ease)}
.timeline-preview.is-above{transform:translateY(6px)}
.timeline-preview.is-open{opacity:1;transform:none}
.timeline-preview.is-cramped{visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.timeline-preview{transition:none;transform:none}}
html.a11y-reduced-motion .timeline-preview{transform:none}
html.a11y-reduced-motion .timeline-preview{transition:none}
.timeline-preview>.eyebrow{color:#8a5d14;margin-block-end:8px}
.timeline-preview h4{font-size:calc(var(--display-scale)*1.5rem);margin-block:6px 8px}
.timeline-preview .period-lead{color:var(--ink);font-size:.95rem;line-height:1.7;max-width:var(--measure-body)}
.timeline-preview .period-scope{font-size:.75rem;color:var(--muted);margin-block-start:8px}
.timeline-period{border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface);margin-block-end:10px;scroll-margin-top:110px}
.timeline-period[open]{border-color:var(--primary)}
.timeline.is-enhanced .timeline-region.is-desktop .timeline-period[open]{border-width:2px}
.timeline-period>summary{display:flex;align-items:center;gap:18px;padding:16px 20px;cursor:pointer;list-style:none;min-height:70px}
.timeline-period>summary::-webkit-details-marker{display:none}
.timeline.is-enhanced .timeline-region.is-desktop .timeline-period>summary{display:none}
.period-marker{width:14px;height:14px;border-radius:50%;border:2px solid var(--primary);background:var(--surface);flex:none}
.timeline-period[open] .period-marker{background:var(--primary)}
.period-summary{display:flex;flex-direction:column;gap:3px;min-width:0}
.period-range{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}
.period-title{font-family:var(--font-display);font-weight:var(--display-weight);font-size:calc(var(--display-scale)*1.35rem);line-height:1.15}
.disclosure-mark{margin-inline-start:auto;width:30px;height:30px;border:1px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;font-size:1.2rem;line-height:1;flex:none;transition:transform var(--motion-fast) var(--ease)}
.timeline-period[open] .disclosure-mark{transform:rotate(45deg);border-color:var(--primary);color:var(--primary)}
.period-panel{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:32px;padding:22px 24px 26px}
.timeline.is-enhanced .timeline-region.is-desktop .period-panel{padding:26px 28px 30px}
.period-copy h4{font-size:calc(var(--display-scale)*clamp(1.6rem,2.4vw,2.1rem));margin-block:8px 10px}
.period-lead{color:var(--muted);font-size:1rem;line-height:1.75;max-width:var(--measure-body)}
.period-scope{font-size:.76rem;color:var(--muted);margin-block-start:10px;line-height:1.7}
.period-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:20px}
.period-actions .button{font-size:.85rem;min-height:44px;padding:10px 16px}
.period-side{border-inline-start:1px solid var(--line);padding-inline-start:28px;display:flex;flex-direction:column;gap:14px;min-width:0}
.period-media{max-width:360px}
.period-media figcaption{font-size:.66rem}
.period-empty{font-size:.85rem;color:var(--muted);font-style:italic}
/* First paint with JavaScript on (2.7): the document carries `html.js` before anything is painted (inline head script),
   and until site.js adds `is-enhanced` these rules draw the same layout its layout() + showRegion() produce - region
   chips and hint, the first region alone, the rail with the selected period open as a panel (desktop), the strip under
   the compact rail - so the deferred script changes nothing visible when it runs. Without JavaScript nothing here
   applies and the fallback (region titles, jump links, period summaries) stays. */
html.js .timeline:not(.is-enhanced) .timeline-regions{display:flex}
html.js .timeline:not(.is-enhanced) .timeline-region-title,html.js .timeline:not(.is-enhanced) .timeline-jump{display:none}
html.js .timeline:not(.is-enhanced) .timeline-region+.timeline-region{margin-block-start:0}
html.js .timeline:not(.is-enhanced) .timeline-region:not(:first-of-type){display:none}
html.js .timeline:not(.is-enhanced) [data-hint-desktop]{display:inline}
@media(pointer:coarse){html.js .timeline:not(.is-enhanced) [data-hint-desktop]{display:none}html.js .timeline:not(.is-enhanced) [data-hint-touch]{display:inline}}
@media(min-width:900px){
  html.js .timeline:not(.is-enhanced) .timeline-bands[hidden],html.js .timeline:not(.is-enhanced) .timeline-scale[hidden]{display:flex!important}
  html.js .timeline:not(.is-enhanced) .timeline-period:not([open]){display:none}
  html.js .timeline:not(.is-enhanced) .timeline-period[open]{border-width:2px}
  html.js .timeline:not(.is-enhanced) .timeline-period>summary{display:none}
  html.js .timeline:not(.is-enhanced) .period-panel{padding:26px 28px 30px}
}
@media(min-width:900px) and (max-width:1180px){html.js .timeline:not(.is-enhanced) .timeline-strip[hidden]{display:flex!important}}
.mini-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.mini-list li a{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--radius-s);padding:8px 12px 8px 8px;background:var(--surface);min-height:56px;transition:border-color var(--motion-fast) var(--ease)}
.mini-list li a:hover{border-color:var(--primary)}
.mini-list .mini-thumb{width:52px;flex:none}
.mini-list .mini-thumb .media-frame .media-stage{border-radius:var(--radius-s)}
.mini-list .mini-thumb .media-fallback span{display:none}
.mini-list .eyebrow{font-size:.62rem;display:block}
.mini-title{display:block;font-family:var(--font-display);font-weight:var(--display-weight);font-size:calc(var(--display-scale)*1.05rem);line-height:1.2}
.mini-lead{display:block;font-size:.8rem;color:var(--muted);margin-block-start:4px}
.mini-list.is-text li a{border:0;border-block-end:1px solid var(--line);border-radius:0;padding-inline:0;justify-content:space-between;min-height:48px;background:transparent}
.mini-list.is-text li a:hover{color:var(--primary)}
.mini-list.is-cards li a{align-items:start;padding:14px}
.mini-list.is-cards .mini-thumb{width:84px}
.mini-list.is-cards>li>a>.icon{margin-inline-start:auto;align-self:center;flex:none}
.timeline-unplaced{margin-block-start:18px;padding:18px 20px;border:1px dashed var(--line-strong);border-radius:var(--radius-s);background:var(--surface)}
.timeline-unplaced{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px 32px;align-items:start}
.timeline-unplaced .eyebrow{margin:0;padding-block-start:4px}
.timeline-unplaced .mini-list{margin:0;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.timeline-unplaced{grid-template-columns:1fr}.timeline-unplaced .mini-list{grid-template-columns:1fr}}
.timeline-nochrono{border:2px dashed var(--line-strong);border-radius:var(--radius-s);background:var(--surface);padding:24px 26px 28px}
.timeline-nochrono h4{font-size:calc(var(--display-scale)*1.6rem);margin-block-end:8px}
.timeline-nochrono>p{color:var(--muted);max-width:var(--measure-body);line-height:1.7}
.source-dated-list{list-style:none;padding:0;margin:20px 0 0;display:grid;gap:12px;max-width:760px}
.source-dated-list li a{display:flex;align-items:center;gap:18px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--canvas)}
.source-dated-list li a:hover{border-color:var(--primary)}
.source-dated-list .mini-thumb{width:84px;flex:none}
.source-dated-copy{flex:1;min-width:0}
.source-dated-list>li>a>.icon{flex:none;color:var(--muted)}
.chronology-rail,.chronology-panels{display:none}

/* ---------- gateway (period / kind / place) ----------------------------------------------------------------- */
.gateway-header{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:clamp(28px,5vw,64px);align-items:start;padding-block:36px 40px}
.gateway-header.without-image{grid-template-columns:minmax(0,1fr)}
.gateway-copy h1{margin-block:16px 18px;max-width:18ch}
.gateway-jumps{display:flex;flex-wrap:wrap;gap:12px 24px;margin-block-start:22px}
.gateway-media .media-frame .media-stage{box-shadow:var(--shadow-card);background:var(--surface)}
.detail-layout{padding-block:12px 56px}
.topic-context{background:var(--surface);border:1px solid var(--line);border-block-start:3px solid var(--primary);border-radius:var(--radius-s)}
.topic-context li a{color:var(--primary);display:inline-block;padding-block:4px;min-height:24px}
.topic-context li+li{margin-block-start:4px}
.related-section{padding-block:44px 52px}
.topic-link{border-radius:var(--radius-s);box-shadow:var(--shadow-card);border-color:transparent}
.topic-link:hover{border-color:var(--primary)}
.topic-link>.icon{color:var(--muted)}
.tag-list a{font-family:var(--font-ui);font-weight:var(--ui-weight);font-size:calc(var(--ui-scale)*.75rem);letter-spacing:var(--ui-tracking);background:var(--surface-2);border-color:transparent;border-radius:999px;color:var(--ink);line-height:1.5}
.tag-list a:hover{background:var(--ochre-soft);border-color:var(--ochre)}

/* ---------- object page ------------------------------------------------------------------------------------- */
.object-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,64px);align-items:start;padding-block:28px 36px}
.object-media{position:sticky;inset-block-start:108px}
.object-figure .media-stage{background:var(--surface);box-shadow:var(--shadow-card)}
.object-intro h1{font-size:calc(var(--display-scale)*clamp(2.25rem,4.4vw,3.75rem));margin-block:16px 18px;max-width:18ch}
.object-lead{font-size:1.25rem;line-height:1.7;color:var(--muted);max-width:var(--measure-lead)}
.object-date{margin-block-start:22px;display:flex;flex-direction:column;gap:4px}
.object-date strong{font-family:var(--font-heading);font-size:1.6rem;font-weight:500;line-height:1.3}
.object-date-source{font-size:.8rem;color:var(--muted);line-height:1.6;margin-block-start:2px}
.object-date-source bdi{color:var(--ink)}
.object-date-original{display:block;color:var(--muted);font-variant-numeric:tabular-nums;text-align:start}
[dir=rtl] .object-date-original{text-align:right}
.object-actions{display:flex;flex-wrap:wrap;gap:12px;margin-block-start:26px}
.object-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.9fr);gap:clamp(32px,5vw,72px);padding-block:8px 20px;align-items:start}
.object-story.prose{max-width:var(--measure-body)}
.object-story h2{font-size:calc(var(--display-scale)*1.75rem);margin-block:34px 14px}
.object-story h2:first-of-type{margin-block-start:0}
.object-aside{display:flex;flex-direction:column;gap:20px}
.object-aside>section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);padding:22px 24px 24px}
.aside-title{font-size:calc(var(--display-scale)*1.4rem);margin-block:6px 6px}
.aside-note{font-size:.8rem;color:var(--muted);line-height:1.7;margin-block-start:10px;display:flex;gap:8px;align-items:start}
.aside-note .icon{width:16px;height:16px;flex:none;color:var(--olive);margin-block-start:3px}
.fact-list{margin-block-start:16px;border-block-start:1px solid var(--line)}
.fact{display:grid;grid-template-columns:minmax(7rem,.5fr) minmax(0,1fr);gap:14px;padding-block:10px;border-block-end:1px solid var(--line);font-size:.9rem;line-height:1.6}
.fact dt{color:var(--muted);font-size:.72rem;font-weight:600;padding-block-start:2px}
html:not([lang=he]) .fact dt{text-transform:uppercase;letter-spacing:.1em}
.fact dd{margin:0;overflow-wrap:anywhere}
.fact dd.is-empty{color:var(--muted);font-style:italic}
.fact dd a{color:var(--primary);text-decoration:underline;text-underline-offset:3px;display:inline-block;padding-block:3px;min-height:24px}
.fact dd .icon{width:14px;height:14px}
.object-where .fact-list{margin-block-start:14px}
.placement-list{list-style:none;padding:0;margin:14px 0 0;display:grid;gap:10px}
.placement{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--primary);border-radius:var(--radius-s);background:var(--canvas)}
.placement .period-title{font-size:calc(var(--display-scale)*1.2rem)}
.placement-basis{display:block;font-size:.74rem;color:var(--muted);margin-block-start:6px;line-height:1.6}
.placement-date{margin-block-start:14px;display:flex;flex-direction:column;gap:4px;padding:14px;border:1px dashed var(--line-strong);border-radius:var(--radius-s)}
.placement-date strong{font-family:var(--font-heading);font-size:1.4rem;font-weight:500}
.object-page .sources-block{max-width:var(--measure-body)}

/* ---------- continue from here ------------------------------------------------------------------------------ */
.continue-section{background:var(--surface-2);border-block-start:1px solid var(--line);padding-block:52px 60px;margin-block-start:40px}
.continue-section .section-heading h2{max-width:none}

/* ---------- article ----------------------------------------------------------------------------------------- */
.article-header{text-align:center;max-width:860px;margin-inline:auto;padding-block:40px 30px}
.article-header .eyebrow{justify-content:center}
.article-header h1{font-size:calc(var(--display-scale)*clamp(2.25rem,4.6vw,3.75rem));line-height:calc(var(--display-lh) + .04);margin-inline:auto;max-width:22ch}
.article-lead{margin-inline:auto;color:var(--muted)}
.article-meta{justify-content:center}
.article-header .tag-list{justify-content:center}
.article-figure{max-width:1100px;margin-inline:auto;margin-block:0 26px}
.article-media .media-stage{background:var(--surface);box-shadow:var(--shadow-card)}
/* 2.7: the hero follows the picture. Banner: a labelled crop filling the wide frame; plate: a small original shown whole
   at its own size beside its caption. */
.article-figure.is-banner .media-frame.is-detail .media-stage{background:var(--surface-3)}
.article-figure.is-banner .media-frame.is-detail .media-stage>svg{mix-blend-mode:normal}
.article-figure.is-plate .media-frame{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px 36px;align-items:center;padding:24px;background:var(--surface);box-shadow:var(--shadow-card);border-radius:var(--radius-s)}
.article-figure.is-plate .media-frame .media-stage{box-shadow:none;background:var(--surface-3);max-height:520px}
.article-figure.is-plate .media-frame figcaption{flex-direction:column;align-items:start;gap:10px;padding:0;font-size:.82rem}
.article-figure.is-plate .media-frame figcaption .media-note{font-size:1.02rem;line-height:1.55}
.media-note{display:block;color:var(--ink);font-weight:500;margin-block-end:3px}
.gateway-media.is-landscape{max-width:none}
/* a very wide picture (a panorama) runs under the heading at full width instead of shrinking into the side column */
.gateway-header.has-wide-media{grid-template-columns:minmax(0,1fr);gap:22px}
.gateway-header.has-wide-media .gateway-copy{max-width:var(--measure-lead,62ch)}
.gateway-header.has-wide-media .gateway-media.is-wide{max-width:none}
.gateway-header.has-wide-media .gateway-media.is-wide .media-frame.ratio-wide .media-stage{aspect-ratio:auto}
.gateway-header.has-wide-media .gateway-media.is-wide .media-frame.ratio-wide .media-stage img{position:static;width:100%;height:auto;object-fit:contain;padding:0}
@media(max-width:900px){.article-figure.is-plate .media-frame{grid-template-columns:1fr;padding:16px}}
.period-bar{position:sticky;inset-block-start:84px;z-index:30;background:rgba(248,243,233,.95);backdrop-filter:blur(8px);border-block:1px solid var(--line);padding-block:8px;margin-block-end:12px}
.period-bar ol{list-style:none;padding:0;margin:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:thin}
.period-bar a{font-family:var(--font-ui);font-weight:var(--ui-weight);display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:999px;padding:5px 12px;font-size:calc(var(--ui-scale)*.78rem);color:var(--muted);line-height:1.3}
.period-bar a span{opacity:.7;font-size:.7rem;font-variant-numeric:tabular-nums}
.period-bar a:hover{background:var(--surface-2);color:var(--ink)}
.period-bar a[aria-current]{background:var(--primary);color:var(--on-primary)}
.article-layout{grid-template-columns:220px minmax(0,var(--measure-body));gap:56px;justify-content:center;padding-block:10px 60px}
.toc{border-block-start:2px solid var(--primary)}
.toc a:hover{color:var(--primary)}
.prose{font-size:1.125rem;line-height:1.8}
.prose h2{font-size:calc(var(--display-scale)*1.9rem);line-height:calc(var(--display-lh) + .12)}
.heading-period{display:block;font-family:var(--font-ui);font-size:calc(var(--ui-scale)*.72rem);font-weight:var(--ui-weight);color:var(--primary);margin-block-end:8px;letter-spacing:var(--ui-tracking)}
html:not([lang=he]) .heading-period{text-transform:uppercase;letter-spacing:.14em}
.heading-period a{color:inherit;text-decoration:none}
.prose a{color:var(--primary)}
.prose .reading-note{background:var(--surface-2);border-color:var(--primary);color:var(--ink);border-radius:var(--radius-s)}
.prose blockquote{background:var(--surface-2);border-color:var(--primary)}
.discussed-objects{margin-block:40px 10px;border-block-start:1px solid var(--line);padding-block-start:26px}
.discussed-objects h2{font-size:calc(var(--display-scale)*1.5rem);margin-block:6px 16px}

/* ---------- lists, browse, search, misc --------------------------------------------------------------------- */
.browse-form{background:var(--surface);border-color:var(--line);border-radius:var(--radius-s)}
.browse-fields input,.browse-fields select{border-color:var(--line-strong);border-radius:var(--radius-s)}
.search-field{border-color:var(--line-strong);border-radius:var(--radius-s)}
.search-field:focus-within{outline-color:var(--focus)}
.empty-state{background:var(--surface-2);border-radius:var(--radius-s)}
.empty-state>.icon{color:var(--primary)}
.error-number{font-family:var(--font-display);font-weight:var(--display-weight);color:var(--primary);opacity:.9}
.date-label{border-color:var(--line-strong);border-radius:999px}
.period-directory-link.is-subperiod{border-color:var(--ochre)}
.period-directory-link:hover h3{color:var(--primary)}
.system-navigation a[aria-current]{border-color:var(--primary);color:var(--primary)}
.sources-block li>a{color:var(--primary)}
.source-id{color:var(--primary)}
.bibliographic-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s)}
.preferences-panel>summary{background:var(--primary);color:var(--on-primary);border-color:var(--primary-hover)}
.preference-button{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.preference-button:hover,.preference-scale-controls button:not(:disabled):hover{background:var(--ochre-soft);color:var(--ink)}
.preference-button-secondary{background:var(--surface);color:var(--primary)}
.preference-button-ghost,.preference-button-ghost:hover{background:transparent;border-color:transparent;color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.preference-button-ghost:hover{background:var(--ochre-soft)}
.preferences-panel>summary:hover{background:var(--primary-hover)}
.storage-notice{border-color:var(--line-strong)}

/* ---------- footer ------------------------------------------------------------------------------------------ */
.site-footer{background:var(--ink-deep);color:var(--ink-foreground)}
.footer-brand .brand-name{color:var(--ink-foreground)}
/* the footer brand is one word; on a phone at a large text scale it shrinks to the width instead of widening the page */
@media(max-width:680px){.site-footer .footer-brand .brand-name,html:lang(ru) .footer-brand .brand-name{font-size:min(2.6875rem,11.5vw)}}
.brand-dot{color:var(--ochre)}
.footer-brand p{color:var(--ink-foreground);opacity:.72}
.footer-main .eyebrow{color:var(--ochre)}
.footer-nav a{color:var(--ink-foreground)}
.footer-system-nav{border-color:rgba(242,234,221,.2)}
.footer-system-nav a{color:var(--ink-foreground);opacity:.85}
.footer-bottom{border-color:rgba(242,234,221,.2);color:var(--ink-foreground)}
.footer-bottom p{opacity:.7}

/* ---------- responsive -------------------------------------------------------------------------------------- */
@media(max-width:1180px){
  .objects-grid,.continue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* compact rail (2.7): equal bands with the short labels, the year range for assistive technology only (the scale
     row and the selected panel carry the dates), and a thin proportional strip that keeps the durations visible */
  .timeline-bands>li{min-width:0;flex-grow:1!important}
  .timeline-bands{height:92px}
  .band{padding:8px 8px 8px;gap:4px}
  .band-title{font-size:calc(var(--display-scale)*.86rem);line-height:1.14;hyphens:manual}
  .band-range{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .band-date{justify-content:flex-end}
  .timeline.is-enhanced .timeline-strip:not([hidden]){display:flex}
  .object-layout{grid-template-columns:minmax(0,1.2fr) minmax(280px,.9fr);gap:32px}
}
@media(max-width:1000px){
  .site-header{position:sticky}
  .header-inner{min-height:72px}
  .entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .entry-item:nth-child(n+3){border-block-start:1px solid var(--line)}
  .entry-item:nth-child(3){border-inline-start:0}
  .card-grid,.featured-grid,.place-grid,.objects-grid,.continue-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
  .period-bar{inset-block-start:72px}
  .object-header{grid-template-columns:minmax(0,1fr)}
  .object-media{position:static;max-width:560px}
  .object-layout{grid-template-columns:minmax(0,1fr)}
  .gateway-header{grid-template-columns:minmax(0,1fr)}
  .gateway-media{max-width:520px}
}
@media(max-width:899px){
  .period-panel{grid-template-columns:minmax(0,1fr);gap:22px;padding:4px 18px 22px}
  .period-side{border:0;padding:0}
  .timeline-period{scroll-margin-top:90px}
}
@media(max-width:680px){
  h1{font-size:calc(var(--display-scale)*2.25rem)}
  .hero-band .hero{display:flex;flex-direction:column;gap:24px;padding-block:34px 30px}
  .hero-copy h1,html:lang(he) .hero-copy h1{font-size:calc(var(--display-scale)*2.5rem);max-width:none}
  .hero-band .object-stage{padding:18px}
  .hero-actions{gap:12px}
  .hero-actions .button{width:100%;justify-content:space-between}
  .entry-grid{grid-template-columns:1fr}
  .entry-item{padding:18px 16px}
  .entry-item+.entry-item{border-inline-start:0;border-block-start:1px solid var(--line)}
  .entry-icon{display:block;width:30px}
  .card-grid,.featured-grid,.place-grid,.objects-grid,.continue-grid{grid-template-columns:1fr;gap:18px}
  .card-grid .content-card{display:flex}
  .entity-card.is-compact{flex-direction:column}
  .timeline-bands{display:none!important}
  .timeline-scale{display:none!important}
  .timeline-period>summary{padding:14px 14px;gap:12px;min-height:60px}
  .period-title{font-size:calc(var(--display-scale)*1.15rem)}
  .timeline-nochrono{padding:18px 16px 20px}
  .source-dated-list li a{gap:12px;padding:12px}
  .source-dated-list .mini-thumb{width:64px}
  .object-intro h1{font-size:calc(var(--display-scale)*2.1rem)}
  .object-lead{font-size:1.05rem}
  .object-actions .button{width:100%;justify-content:space-between}
  .object-aside>section{padding:18px 16px 20px}
  .fact{grid-template-columns:minmax(0,1fr);gap:2px}
  .article-header{text-align:start;padding-block:28px 22px}
  .article-header .eyebrow,.article-header .tag-list,.article-meta{justify-content:start}
  .article-header h1{margin-inline:0}
  .period-bar{margin-inline:0;padding-inline:var(--gutter)}
  .mini-list.is-cards li a{flex-wrap:wrap}
  .mini-list.is-cards .mini-thumb{width:64px}
  .media-frame figcaption{flex-direction:column;gap:4px}
  .media-frame .image-credit{text-align:start}
  .continue-section{padding-block:40px 46px}
}
@media (prefers-reduced-motion:reduce){
  .entity-card,.entity-card:hover{transform:none;transition:none}
  .band,.region-chip,.button,.disclosure-mark{transition:none}
}
html.a11y-reduced-motion :is(.entity-card,.band,.region-chip,.button,.disclosure-mark){transition:none;transform:none}

/* ---------- high contrast (preferences) --------------------------------------------------------------------- */
html.a11y-contrast{--primary:#7a2e12;--primary-hover:#5e2008;--ochre:#7a5a10;--ochre-soft:#fff;--surface-2:#fff;--surface-3:#fff;--line-strong:#555;--focus:#000;--ink-deep:#111;--ink-foreground:#fff}
html.a11y-contrast :is(.hero-band,.context-band,.site-footer,.region-chip[aria-pressed=true]){background:#111!important}
html.a11y-contrast :is(.hero-band,.context-band,.site-footer) :not(img):not(svg):not(svg *){color:#fff!important}
html.a11y-contrast .region-chip[aria-pressed=true]{color:#fff!important}
html.a11y-contrast :is(.band,.entity-card,.timeline-period,.object-aside>section,.topic-link,.mini-list li a,.timeline-preview,.timeline-nochrono,.timeline-unplaced,.placement,.placement-date,.media-frame .media-stage,.text-frame){background:#fff!important;border-color:#555!important;box-shadow:none!important}
html.a11y-contrast .band[aria-pressed=true]{background:#111!important;color:#fff!important}
html.a11y-contrast .band[aria-pressed=true] *{color:#fff!important}
html.a11y-contrast .band.is-previewing{outline:3px dashed #000;outline-offset:2px}
html.a11y-contrast :is(.button,.preference-button){background:#111!important;color:#fff!important;border-color:#111!important}
html.a11y-contrast .button *{color:#fff!important}
html.a11y-contrast .button-outline,html.a11y-contrast .button-ghost{background:#fff!important;color:#111!important;border-color:#111!important}
html.a11y-contrast :is(.button-outline,.button-ghost) *{color:#111!important}
html.a11y-contrast .media-frame .media-stage>img{mix-blend-mode:normal}

/* --- Schematic context maps (closing round) --------------------------------------------------------------------- */
.context-map{margin:0;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface);overflow:hidden}
.context-map svg{display:block;width:100%;height:auto;background:#f1ebdd}
.map-land{fill:#f1ebdd}
.map-water{fill:#d7e2e8;stroke:#7d98a6;stroke-width:.8}
.map-island{fill:#f1ebdd;stroke:#7d98a6;stroke-width:.8}
.map-river{fill:none;stroke:#7d98a6;stroke-width:1.1;stroke-linejoin:round;stroke-linecap:round}
.map-label{font-family:var(--font-ui);font-size:11px;fill:#6f7a7f;letter-spacing:.06em;text-transform:uppercase}
.map-marker circle{fill:var(--primary);stroke:#fff;stroke-width:1.5}
.map-marker text{font-family:var(--font-ui);font-size:12px;fill:var(--ink);paint-order:stroke;stroke:#f1ebdd;stroke-width:3px;stroke-linejoin:round}
.map-marker.is-context circle{fill:#8a8f8c;stroke-width:1}
.map-marker.is-context text{font-size:10.5px;fill:#5d6467}
.map-marker.is-findspot text,.map-marker.is-place text,.map-marker.is-stop text{font-weight:600}
.map-region ellipse{fill:rgba(164,72,42,.1);stroke:var(--primary);stroke-width:1.3;stroke-dasharray:5 4}
.map-region text{font-family:var(--font-ui);font-size:11.5px;fill:var(--primary);font-weight:600;paint-order:stroke;stroke:#f1ebdd;stroke-width:3px}
.context-map.is-wide .map-label{font-size:20px}
.context-map.is-wide .map-marker text{font-size:21px;stroke-width:5px}
.context-map.is-wide .map-marker.is-context text{font-size:18px}
.context-map.is-wide .map-marker circle{r:7;stroke-width:2.5}
.context-map.is-wide .map-marker.is-context circle{r:4.5}
.context-map.is-wide .map-region text{font-size:20px;stroke-width:5px}
.context-map.is-wide .map-region ellipse{stroke-width:2.2;stroke-dasharray:9 7}
.context-map figcaption{display:block;padding:10px 14px 12px;border-block-start:1px solid var(--line);font-size:1rem}
.map-key{list-style:none;margin:0 0 6px;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.8rem}
.map-key li{display:flex;align-items:baseline;gap:6px 8px;flex-wrap:wrap}
.map-key-label{font-weight:600;white-space:nowrap}
.map-key-dot{position:relative;top:1px}
.map-key-dot{width:10px;height:10px;border-radius:50%;background:var(--primary);flex:none}
.map-key-dot.is-region,.map-key-dot.is-area{background:rgba(164,72,42,.15);border:1.5px dashed var(--primary)}
.map-key-dot.is-named,.map-key-dot.is-context{background:#8a8f8c}
.map-key-note{color:var(--muted)}
.map-key-note::before{content:'· '}
.map-caption{margin:0;font-size:.72rem;color:var(--muted);line-height:1.5}
html.a11y-contrast .context-map svg,html.a11y-contrast .map-land,html.a11y-contrast .map-island{background:#fff;fill:#fff}
html.a11y-contrast .map-water{fill:#dfe6ea;stroke:#333}
html.a11y-contrast .map-marker text,html.a11y-contrast .map-region text{stroke:#fff}
.gateway-map .eyebrow{margin-block-end:10px}
.gateway-map .context-map{box-shadow:var(--shadow-card)}
.topic-map{margin-block-end:22px}
.topic-map .eyebrow{margin-block-end:8px}
.place-grid.has-map{grid-template-columns:repeat(4,minmax(0,1fr))}
.place-map-tile{min-width:0}
.place-map-tile .context-map{height:100%}
@media(max-width:1100px){.place-grid.has-map{grid-template-columns:repeat(2,minmax(0,1fr))}.place-map-tile{grid-column:1/-1}.place-map-tile .context-map svg{max-height:420px}}
@media(max-width:680px){.place-grid.has-map{grid-template-columns:1fr}}

.trail-places.has-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,420px);gap:24px 36px;align-items:start}
.trail-places.has-map .context-map.is-wide{grid-column:1/-1}
@media(max-width:900px){.trail-places.has-map{grid-template-columns:1fr}}

/* A small original (e.g. a 510 px museum file) is shown at its natural size inside the frame, never scaled up. */
.media-frame.is-small-source .media-stage img{width:auto;height:auto;max-width:100%;max-height:100%;margin:auto}
.media-frame.is-small-source .media-stage{display:grid;place-items:center}

/* --- Details of a photograph (closing round): the second appearance of a picture on a page is a close-up ----------- */
.media-frame.is-detail .media-stage>svg{position:absolute;inset:0;width:100%;height:100%;display:block;mix-blend-mode:multiply}
.media-frame.is-detail .media-stage{background:var(--surface-3)}
/* a detail of a small original keeps the picture's own scale: the crop is drawn at most 1:1 and centred */
.media-frame.is-detail.is-small-source .media-stage>svg{position:static;inset:auto;width:auto;height:auto;max-width:100%;max-height:100%}
.detail-badge{position:absolute;inset-block-start:10px;inset-inline-start:10px;z-index:2;font-family:var(--font-ui);font-size:.62rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--ink);background:rgba(250,246,238,.92);border:1px solid var(--line);border-radius:999px;padding:3px 9px;pointer-events:none}
html:lang(he) .detail-badge{letter-spacing:.04em;font-size:.68rem}
.media-identity.is-detail:before{content:"◆ ";color:var(--primary)}
.media-identity.is-detail a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}
.gateway-media.is-detail .media-frame .media-stage{box-shadow:var(--shadow-card)}
html.a11y-contrast .media-frame.is-detail .media-stage>svg{mix-blend-mode:normal}
html.a11y-contrast .detail-badge{background:#fff;border-color:#555}

/* --- Cards without a photograph (closing round) --------------------------------------------------------------- */
/* a documented place on the map is the picture: trail stops, a culture's area, a period's sites */
.entity-card-media.is-map .context-map{border:0;border-radius:var(--radius-s) var(--radius-s) 0 0}
.entity-card-media.is-map .context-map svg{width:100%;height:auto}
.card-trail .entity-card-media.is-map .context-map svg,.card-culture .entity-card-media.is-map .context-map svg,.card-place .entity-card-media.is-map .context-map svg,.card-holder .entity-card-media.is-map .context-map svg{aspect-ratio:4/3}
.card-period .entity-card-media.is-map .context-map svg{aspect-ratio:1/1}
.context-map.is-card .map-label{font-size:10px}
.context-map.is-card.is-wide .map-label{font-size:18px}
/* text only (an article without a photograph): the card hugs its text instead of stretching to the row, the type block
   carries the kicker once, and the title gets the room */
/* A card without a picture or a map (2.7): a typographic cover with the kicker and the title stands where the
   photograph would be, so mixed rows keep one silhouette; the cover is the card's heading (first in the DOM too). */
.entity-card.is-text{align-self:stretch}
.entity-card-cover{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;aspect-ratio:1/1;padding:20px 20px 18px;border-radius:var(--radius-s) var(--radius-s) 0 0;background:linear-gradient(160deg,var(--cover-tint,#efe4d2) 0%,var(--cover-tint-2,#e4d6bf) 100%);color:var(--ink);border-block-end:1px solid var(--line);overflow:hidden}
.entity-card-cover .cover-icon{position:absolute;inset-block-start:16px;inset-inline-end:16px;width:46px;height:46px;color:var(--cover-ink,var(--primary));opacity:.55}
.entity-card-cover .eyebrow{color:var(--cover-ink,var(--primary))}
.entity-card-cover h3{font-size:calc(var(--display-scale)*1.55rem);line-height:1.18;overflow-wrap:anywhere;text-wrap:balance;margin:0}
.entity-card-cover h3 a{color:inherit}
.entity-card-cover h3 a:after{content:"";position:absolute;inset:0}
.entity-card-cover h3 a:focus-visible{outline:none}
.entity-card-cover .cover-range{margin:0;font-size:.74rem;color:var(--muted);font-variant-numeric:tabular-nums}
.card-trail .entity-card-cover,.card-place .entity-card-cover,.card-culture .entity-card-cover,.card-holder .entity-card-cover{aspect-ratio:4/3}
.entity-card.card-period.is-text{--cover-ink:var(--period-colour,var(--primary))}
.entity-card.card-period.is-text .entity-card-cover{border-block-start:4px solid var(--period-colour,var(--line-strong))}
.entity-card.period-neolithic{--period-colour:var(--period-neolithic)}.entity-card.period-chalcolithic,.entity-card.period-chalcolithic-early{--period-colour:var(--period-chalcolithic)}.entity-card.period-pottery-neolithic-late{--period-colour:var(--period-neolithic)}.entity-card.period-bronze-age{--period-colour:var(--period-bronze-age)}.entity-card.period-iron-age{--period-colour:var(--period-iron-age)}.entity-card.period-persian{--period-colour:var(--period-persian)}.entity-card.period-hellenistic{--period-colour:var(--period-hellenistic)}.entity-card.period-roman{--period-colour:var(--period-roman)}.entity-card.period-byzantine{--period-colour:var(--period-byzantine)}.entity-card.period-early-islamic{--period-colour:var(--period-early-islamic)}.entity-card.period-medieval{--period-colour:var(--period-medieval)}
.card-article .entity-card-cover{--cover-tint:#f1e7d6;--cover-tint-2:#e7d9c2}
.card-publication .entity-card-cover,.card-volume .entity-card-cover{--cover-tint:#e9e9e4;--cover-tint-2:#dcdcd4;--cover-ink:var(--ink-deep);aspect-ratio:2/1}   /* an all-text directory: a compact catalogue-card band */
.entity-card.is-text .entity-card-body{padding-block:16px 20px}
.entity-card.is-text .entity-card-reason{margin-block-start:auto}
html.a11y-contrast .entity-card-cover{background:#fff!important;border-color:#555!important}
@media(max-width:680px){.entity-card-cover{aspect-ratio:auto;min-height:0;padding:16px 18px 14px}.entity-card-cover .cover-icon{width:34px;height:34px;inset-block-start:12px}.entity-card-cover h3{font-size:calc(var(--display-scale)*1.35rem)}}

/* --- Text frame in a narrow column (trail step): the label stacks ----------------------------------------------- */
.trail-step-media .text-frame{aspect-ratio:auto;padding:16px 16px 18px;gap:10px;justify-content:flex-start}
.trail-step-media .text-frame-kicker{flex-direction:column;gap:2px;font-size:.6rem;letter-spacing:.1em}
.trail-step-media .text-frame-facts div{grid-template-columns:1fr;gap:1px;padding-block:5px}
.trail-step-media .text-frame-facts dd{font-size:.88rem}
.trail-step-media .text-frame .media-fallback-note{font-size:.7rem}

/* --- Small fixes (closing round) -------------------------------------------------------------------------------- */
/* the band titles of the chronology hyphenate in English and Russian instead of breaking inside a word */
html:not([lang=he]) .band-title{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:break-word}
@media(max-width:680px){
  /* the "closer look" label of the home photograph keeps its own strip above the picture on narrow screens */
  .hero-band .object-stage{padding:32px 18px 18px}
  .hero-band .object-label{inset-block-start:11px;inset-inline-start:18px}
}
.trail-step-map .context-map{border-radius:var(--radius-s)}
.trail-step-map .context-map svg{aspect-ratio:1/1}
/* directories with two or four entries fill their row instead of leaving an orphan */
.topic-directory[data-count="4"],.topic-directory[data-count="7"],.topic-directory[data-count="8"]{grid-template-columns:repeat(4,minmax(0,1fr))}
.topic-directory[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:880px}
@media(max-width:1100px){.topic-directory[data-count="4"],.topic-directory[data-count="7"],.topic-directory[data-count="8"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.topic-directory[data-count="4"],.topic-directory[data-count="7"],.topic-directory[data-count="8"],.topic-directory[data-count="2"]{grid-template-columns:1fr}}
