/* Entity hero: the country hero (arche-place-hero.css) plus its registry card, with the emblem where the country shows its flag. */
.arche-place-hero--fallback{background:linear-gradient(125deg,var(--ds-action),#2c7088)}
.arche-place-hero__registry{position:absolute;z-index:3;top:clamp(1rem,3vw,2.5rem);right:clamp(1rem,3vw,2.5rem);width:min(370px,calc(100% - 2rem));background:rgba(8,24,32,.88);color:var(--ds-action-text);padding:18px 20px;box-shadow:0 12px 35px #08182055;backdrop-filter:blur(8px)}
.arche-place-hero__registry-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.arche-place-hero__emblem{width:auto;height:auto;max-width:84px;max-height:56px;object-fit:contain;flex:none;filter:drop-shadow(0 1px 3px rgba(0,0,0,.45))}
.arche-place-hero__affiliation{font-size:var(--ds-fs-label);letter-spacing:.08em;text-transform:uppercase;color:#c7e0e6;display:block}
.arche-place-hero__registry-title{display:block;color:var(--ds-action-text);font-size:var(--ds-fs-small);line-height:1.3;margin-top:3px}
.arche-place-hero__registry .facts{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;margin-top:8px}
.arche-place-hero__registry .fact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:5px 0;border-top:1px solid #ffffff33;font-size:var(--ds-fs-caption);line-height:1.35}
.arche-place-hero__registry .fact b{font-weight:650;color:#c7e0e6}
.arche-place-hero__registry .fact span{color:var(--ds-action-text);text-align:right}
.arche-place-hero__registry p{font-size:var(--ds-fs-label);line-height:1.4;color:#dcebee;margin:12px 0 0}
.arche-place-hero__lead{max-width:540px;color:#e8f2f5;font-size:1rem;line-height:1.5;margin:0 0 .8rem}
.arche-place-hero__photo-link{display:inline-block;align-self:flex-start;font-size:var(--ds-fs-caption);margin-top:6px}
.arche-place-hero--entity .arche-place-hero__content{max-width:min(680px,calc(100% - 420px))}
@media(max-width:980px){.arche-place-hero--entity .arche-place-hero__content{max-width:780px;padding-top:15rem}}
@media(max-width:700px){.arche-place-hero__registry{top:16px;right:16px;width:min(370px,calc(100% - 32px));padding:14px 16px}}
.cp-image-source p{max-width:900px;color:var(--muted)}
.arche-place-hero__country-link{display:inline-block;align-self:flex-start;font-size:var(--ds-fs-control);font-weight:700;margin:2px 0 6px;padding:6px 12px;border:1px solid #ffffff80;border-radius:999px;background:rgba(8,24,32,.55)}
.arche-place-hero__geometry-status{display:inline-block;align-self:flex-start;font:700 11px/1.35 ui-monospace,monospace;letter-spacing:.06em;text-transform:uppercase;padding:8px 11px;border:1px solid #a9d5ca;background:#24494b;color:#e3f5ef!important;text-decoration:none!important}
.arche-place-hero__geometry-status:hover,.arche-place-hero__geometry-status:focus-visible{background:#32615f;outline:2px solid #e3f5ef;outline-offset:2px}
.dir-modern{margin:40px 0 20px;padding-top:20px;border-top:1px solid var(--line)}.dir-modern h2{margin:0 0 6px}.dir-modern p{max-width:760px;color:var(--muted)}
.dir-modern__list{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.dir-modern__list li{display:grid;gap:3px;padding:12px 14px;background:var(--ds-surface);border:1px solid var(--line);border-radius:12px}
.dir-modern__country{font-weight:800}.dir-modern__entity{font-size:var(--ds-fs-small);color:var(--muted)}

/* Hero height equals the country hero; the entity record card is a compact, technical table. */
.arche-place-hero--record .arche-place-hero__content{padding-block:clamp(1rem,2vw,1.6rem);max-width:min(680px,calc(100% - 460px))}
.arche-place-hero--record h1{font-size:clamp(2.2rem,4.4vw,3.6rem);line-height:1;margin:.1rem 0 .6rem}
.arche-place-hero--record .arche-place-hero__lead{font-size:.95rem;margin:0 0 .6rem;max-width:520px}
.arche-place-hero--record .arche-place-hero__registry{top:1rem;width:min(400px,calc(100% - 2rem));padding:11px 16px 10px;background:rgba(6,20,28,.9)}
.arche-place-hero--record .arche-place-hero__registry-head{margin-bottom:5px;gap:10px}
.arche-place-hero--record .arche-place-hero__emblem{height:34px;max-width:40px}
.arche-place-hero--record .arche-place-hero__affiliation{font-size:var(--ds-fs-label);letter-spacing:.1em;color:#9fd2dc;font-weight:700}
.arche-place-hero--record .arche-place-hero__registry .facts{margin:0;gap:0}
.arche-place-hero--record .arche-place-hero__registry .fact{display:grid;grid-template-columns:128px minmax(0,1fr);gap:8px;padding:3.5px 0;border-top:1px solid #ffffff26;font-size:var(--ds-fs-caption);line-height:1.3;align-items:baseline}
.arche-place-hero--record .arche-place-hero__registry dt{margin:0;font-size:var(--ds-fs-label);letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#9fb9c0}
.arche-place-hero--record .arche-place-hero__registry dd{margin:0;color:var(--ds-action-text);text-align:right;font-variant-numeric:tabular-nums}
.arche-place-hero--record .arche-place-hero__registry dd.code{font-family:ui-monospace,'Cascadia Mono',Consolas,monospace;font-size:var(--ds-fs-label);color:#d8f1f5;letter-spacing:-.01em}
.arche-place-hero--record .arche-place-hero__registry dd a{color:#d8f1f5}
.arche-place-hero--record .arche-place-hero__registry p{font-size:var(--ds-fs-label);line-height:1.35;margin:7px 0 0;color:#b9d0d5}
@media(max-width:980px){.arche-place-hero--record{min-height:0}.arche-place-hero--record .arche-place-hero__content{max-width:780px;padding-top:15rem;min-height:0}}
/* Wide screens: the title block sits at the top of the hero and the record table at the bottom. */
@media(min-width:981px){.arche-place-hero--record .arche-place-hero__content{justify-content:flex-start}.arche-place-hero--record .arche-place-hero__registry{top:auto;bottom:1rem}}
/* Wide screens: the image-source link sits at the bottom of the hero, level with the bottom of the record table. */
@media(min-width:981px){.arche-place-hero--record .arche-place-hero__photo-link{margin-top:auto;margin-bottom:.1rem}}

/* Narrow screens use a true vertical record: image/title first, facts below.
   Neither block is absolutely layered over the other, including long entity titles. */
@media(max-width:700px){
  .arche-place-hero--record{display:flex;flex-direction:column;min-height:0}
  .arche-place-hero--record .arche-place-hero__content{order:-1;box-sizing:border-box;width:100%;max-width:none;min-height:220px;padding:18px;justify-content:flex-end}
  .arche-place-hero--record .arche-place-hero__registry{position:relative;inset:auto;width:auto;margin:0;padding:14px 18px;background:#0b2731;box-shadow:none;backdrop-filter:none}
}

.entity-neighbours{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:26px 0 8px}
.entity-neighbours a{display:grid;gap:2px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--ds-surface);color:var(--ink);text-decoration:none}
.entity-neighbours a:hover,.entity-neighbours a:focus-visible{background:#e3ecee;outline:none}.entity-neighbours a:focus-visible{box-shadow:0 0 0 3px var(--ds-link)}
.entity-neighbours small{font-size:var(--ds-fs-label);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}.entity-neighbours b{font-size:var(--ds-fs-body)}.entity-neighbours span{font-size:var(--ds-fs-caption);color:var(--muted)}
.entity-neighbours__next{text-align:right}
@media(max-width:640px){.entity-neighbours{grid-template-columns:minmax(0,1fr)}.entity-neighbours__next{text-align:left}}

/* Research signal (entity-evidence.js) */
.entity-evidence{margin:0 0 var(--card-gap,24px);padding:var(--card-pad,28px);background:var(--ds-surface);border:1px solid var(--line)}

.entity-source-fold>summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;padding:2px 0}.entity-source-fold>summary b{font-size:var(--ds-fs-lede)}.entity-source-fold>summary span{font-size:var(--ds-fs-small);color:var(--muted)}
.entity-source-fold[open]>summary{margin-bottom:12px}.entity-source-fold .sd{margin:0;padding:0;border:0}



/* usability pass: names are never cut, tap targets, reading width, small text, mobile record */
.entity-main p,.entity-main li{max-width:75ch}
.entity-main .panel{overflow-wrap:anywhere}
@media(max-width:700px){
  .arche-place-hero--record .arche-place-hero__content{background:linear-gradient(180deg,rgba(11,39,49,.15),rgba(11,39,49,.78))}
  .arche-place-hero--record .arche-place-hero__registry .facts{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
  .arche-place-hero--record .arche-place-hero__registry .fact{margin:0}
  .arche-place-hero--record .arche-place-hero__registry p{font-size:var(--ds-fs-small)}
  .entity-main .panel,.entity-evidence{padding:16px}
  .entity-main summary,.entity-main .crumb a,.entity-neighbours a,.entity-main .aliases a{min-height:44px;display:flex;align-items:center}
  .arche-sig2__src,.arche-sig2__legend,.entity-neighbours small,.entity-neighbours span{font-size:var(--ds-fs-small)!important}
}
@media(max-width:700px){
  .arche-place-hero__affiliation,.arche-place-hero__registry dt,.arche-place-hero__registry dd.code,.entity-main .eyebrow{font-size:var(--ds-fs-label)}
  .arche-place-hero__photo-link,.arche-sig2__play,.arche-sig2__all,.arche-site-nav__toggle,a.brand{min-height:44px;display:inline-flex;align-items:center}
  .arche-sig2__play,.arche-sig2__all{padding-inline:14px}
}
@media(max-width:700px){.arche-place-hero__registry dt,.arche-place-hero__affiliation,.entity-main .eyebrow,.arche-signature__kicker,.arche-place-hero__registry dd{font-size:var(--ds-fs-label)!important}.entity-main a{text-underline-offset:3px}.entity-main p a,.entity-main li a{padding-block:10px}}

/* polish pass: one column of reading text, no duplicated facts, a country list that does not leave a hole beside the map */
.entity-jump{display:flex;flex-wrap:wrap;gap:6px 18px;margin:-4px 0 18px;font-size:var(--ds-fs-control)}.entity-jump a{color:var(--ds-link);font-weight:700;text-decoration:none;padding:4px 0;border-bottom:2px solid transparent}.entity-jump a:hover,.entity-jump a:focus-visible{border-bottom-color:var(--ds-link);outline:none}
.entity-main .grid--single{grid-template-columns:minmax(0,1fr)}
.entity-main .arche-sig2__src{margin:14px 2px 0}
.arche-sig2__hint{color:#456762!important;font-weight:600!important}
.entity-source-fold{background:var(--ds-surface-soft);border:1px solid var(--ds-line);padding:.7rem clamp(1rem,3vw,2rem)}
.entity-source-fold>summary b,.entity-source-scope summary{font-size:var(--ds-fs-control)}
.entity-source-scope summary::before,.entity-source-fold>summary::before{content:'▸';display:inline-block;width:1.1em;color:var(--ds-eyebrow)}
.entity-source-scope[open] summary::before,.entity-source-fold[open]>summary::before{content:'▾'}
.entity-source-fold>summary::-webkit-details-marker{display:none}
@media(min-width:981px){section.arche-place-hero--record{min-height:410px}.arche-place-hero--record .arche-place-hero__content{min-height:410px}}
.arche-place-hero__affiliation,.arche-place-hero__registry dt,.arche-place-hero__registry dd.code{font-size:var(--ds-fs-caption)}
.arche-sig2__src,.arche-sig2__legend,.arche-sig2__axis .omit{font-size:var(--ds-fs-caption)!important}
.arche-sig2__play,.arche-sig2__all{min-height:40px}
.entity-source-scope summary,.entity-source-fold>summary{list-style:none}.entity-source-scope summary::-webkit-details-marker{display:none}
.entity-main .crumb{margin-bottom:6px}.entity-jump{margin-top:8px}.entity-source-fold>summary::before{font-size:var(--ds-fs-body)}
.arche-place-hero__affiliation,.arche-place-hero__registry dt,.arche-place-hero__registry dd,.arche-place-hero__registry p,.entity-main .eyebrow,.arche-signature__kicker,.arche-sig2__axis text,.arche-sig2__missing>span{font-size:var(--ds-fs-label)!important}
body p.eyebrow,body .arche-signature__kicker,body .arche-sig2__block .arche-signature__kicker,body .arche-sig2__axis text,body svg text.tl,body svg text.yr,body svg text.omit,body .entity-neighbours small{font-size:var(--ds-fs-label)!important}
.entity-main .arche-sig2__lead,.entity-main .arche-sig2__src{font-size:var(--ds-fs-body);line-height:1.55;max-width:90ch;color:var(--muted)}

/* One closing record instead of a scatter of source cards.  The individual
   blocks remain addressable and load their live notes in place, but read as
   one provenance document at the end of an entity profile. */
.entity-method{margin-top:36px;padding:0;overflow:hidden;background:var(--ds-surface)}
.entity-method__head{padding:clamp(22px,3.2vw,36px) clamp(20px,4vw,48px);background:linear-gradient(120deg,var(--ds-action),#174a58);color:var(--ds-action-text)}
.entity-method__head .eyebrow{margin:0 0 7px;color:#bfe3df}
.entity-method__head h2{max-width:26ch;margin:0;color:var(--ds-action-text);font-size:clamp(1.65rem,3vw,2.45rem);line-height:1.04}
.entity-method__intro{max-width:68ch;margin:13px 0 0;color:#d4e7e4;font-size:var(--ds-fs-body);line-height:1.55}
.entity-method__block{padding:24px clamp(20px,4vw,48px);border-top:1px solid var(--line)}
.entity-method__block .eyebrow{margin:0 0 7px;color:#53727a}
.entity-method__block h3{margin:0 0 10px;font-size:clamp(1.18rem,2vw,1.55rem);line-height:1.15}
.entity-method__block>p:last-child{margin-bottom:0}
.entity-method .evidence{background:var(--ds-surface-soft)}
.entity-method .source-panel{background:transparent;border:0;border-top:1px solid var(--line);margin:0}
.entity-method .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:16px 0 18px}
.entity-method .fact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:var(--ds-fs-control);line-height:1.35}
.entity-method .fact b{color:#45636b}.entity-method .fact span{text-align:right;font-variant-numeric:tabular-nums}
.entity-method .aliases{margin-bottom:0}.entity-method .notice{max-width:86ch}
.entity-method .refs-host>*{margin-top:18px}
.entity-method .cp-image-source{margin:0;scroll-margin-top:20px}
.entity-method .entity-source-fold{margin:0;border-width:1px 0 0;padding:18px clamp(20px,4vw,48px);background:var(--ds-surface-soft)}
.entity-method .entity-source-fold[open]{padding-bottom:26px}
@media(max-width:700px){
  .entity-method{margin-top:26px}.entity-method__head{padding:22px 18px}.entity-method__block{padding:20px 18px}
  .entity-method .facts{grid-template-columns:minmax(0,1fr);margin-block:14px}.entity-method .fact{font-size:var(--ds-fs-small)}
  .entity-method .entity-source-fold{padding:16px 18px}
}

/* an entity without an image of its own: its period and its place in the span of the catalogue, drawn from the dates */
.arche-place-hero__era{position:relative;z-index:2;margin-top:var(--ds-space-6);max-width:560px}
.arche-place-hero__era-years{display:block;font-family:var(--ds-font-serif);font-size:clamp(28px,4vw,44px);line-height:1.1;color:var(--ds-action-text)}
.arche-place-hero__era-bar{position:relative;display:block;height:10px;margin-top:var(--ds-space-3);background:rgba(255,255,255,.16)}
.arche-place-hero__era-bar i{position:absolute;top:0;bottom:0;background:var(--ds-sun)}
.arche-place-hero__era-axis{display:flex;justify-content:space-between;gap:var(--ds-space-3);margin-top:6px;font-size:var(--ds-fs-caption);color:#b9d9e5}
.arche-place-hero__era-axis small{font-size:inherit}

/* Phones: the registry card is a two-column grid of label-over-value cells, so long values (Europe, Northern Europe, dates) never wrap letter by letter */
@media(max-width:700px){
  .arche-place-hero--record .arche-place-hero__registry{width:auto;max-width:none;padding:12px 18px;right:auto!important;left:auto!important;top:auto!important;bottom:auto!important}
  .arche-place-hero--record .arche-place-hero__registry .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
  .arche-place-hero--record .arche-place-hero__registry .fact{display:block;padding:7px 0 6px}
  .arche-place-hero--record .arche-place-hero__registry dt{margin:0 0 2px;font-size:var(--ds-fs-label)}
  .arche-place-hero--record .arche-place-hero__registry dd{text-align:left;font-size:var(--ds-fs-caption);line-height:1.3;overflow-wrap:anywhere}
  .arche-place-hero--record .arche-place-hero__registry dd.code{white-space:nowrap;overflow-wrap:normal}
  .arche-place-hero--record .arche-place-hero__registry p{font-size:var(--ds-fs-caption);line-height:1.45}
  .arche-place-hero__content{padding-bottom:1.2rem}
  .arche-place-hero .arche-place-hero__content .arche-place-hero__flag{margin-bottom:.6rem}
}
