/* Roboto, served from the theme (fonts/, SIL Open Font License; no request to Google). */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-greek-400-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/roboto-greek-500-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-greek-700-normal.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-greek-ext-400-normal.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/roboto-greek-ext-500-normal.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-greek-ext-700-normal.woff2") format("woff2"); unicode-range: U+1F00-1FFF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/roboto-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-greek-400-italic.woff2") format("woff2"); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Roboto; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Union catalogue theme. Change colours and logo here only (WCAG AA contrast checked:
   white on --union-primary 11.6:1, --union-primary on white links 11.6:1,
   --union-accent-light on --union-primary 6.3:1). */
:root {
  --union-font: Roboto, "Helvetica Neue", Arial, sans-serif;
  --union-primary: #1d5aa6;        /* header, buttons, footer */
  --union-primary-dark: #173f73;   /* hover */
  --union-accent: #f6c143;         /* focus outline, rules */
  --union-accent-light: #ffd66b;   /* accents on dark backgrounds */
  --union-paper: #f3f7fc;          /* warm page sections */
  --union-light: #e6effa;          /* light backgrounds */
  --union-border: #e1e8f1;
  --union-text: #1e2a38;
  --union-serif: var(--union-font);
  --union-logo: url("../images/union-logo.svg?v=2026-10-25");  /* change v= when the logo changes (browser cache) */
  --union-logo-width: 300px;
  --bs-link-color: var(--union-primary);
  --bs-link-color-rgb: 29, 90, 166;
  --bs-link-hover-color: var(--union-primary-dark);
  --bs-body-color: var(--union-text);
}

/* ---- Typography ---- */
h1, h2, h3, .h1, .h2, .h3, .media-body h1, .record h1, .channel-title, footer h2 {
  font-family: var(--union-serif);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--union-primary);
}
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* ---- Header ---- */
header { background-color: var(--union-primary); }
header { border-bottom: 4px solid var(--union-accent); }
header .banner .navbar-brand {
  background-image: var(--union-logo) !important;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  width: var(--union-logo-width);
  max-width: 62vw;
  height: 56px;
  min-height: 56px;
  margin: 8px 0;
}
header .nav.navbar-nav > li > a:hover, header .nav.navbar-nav > li > a:focus,
header .nav.navbar-nav button.dropdown-toggle:hover, header .nav.navbar-nav button.dropdown-toggle:focus {
  background-color: var(--union-light);
  color: var(--union-text);
  border-radius: .375rem;
}
.breadcrumbs { background-color: var(--union-paper); border-bottom: 1px solid var(--union-border); }

/* ---- Home page hero (replaces the sandal5 forest photo) ---- */
.searchHomeContent {
  background-color: var(--union-primary);
  background-image:
    radial-gradient(ellipse at 85% 0%, rgba(224, 178, 87, .22), transparent 55%),
    linear-gradient(160deg, #0f4a6e 0%, var(--union-primary) 55%, var(--union-primary-dark) 100%);
  box-shadow: none;
}
@media (min-width: 576px) {
  .searchHomeContent { min-height: 0; padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
.searchHomeContent::before {
  display: block;
  max-width: 46rem;
  margin-bottom: 1.5rem;
  font-family: var(--union-serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  content: "Αναζήτηση σε όλες τις βιβλιοθήκες της Κύπρου";
}
:root:lang(en) .searchHomeContent::before { content: "Search all the libraries of Cyprus"; }
.searchHomeContent::after { content: none; display: none; }
.searchHomeContent .searchForm_lookfor { min-height: 3rem; font-size: 1.1rem; }
.searchHomeContent .advanced-search-link { text-shadow: none; }

/* ---- Search box ---- */
.searchForm .form-control, .searchForm .form-select { border-radius: .375rem; border-color: transparent; }
.btn-primary, .searchForm .btn-primary {
  background-color: var(--union-accent);
  border-color: var(--union-accent);
  color: #1e2a38;
  font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .searchForm .btn-primary:hover, .searchForm .btn-primary:focus {
  background-color: var(--union-accent-light);
  border-color: var(--union-accent-light);
  color: #1e2a38;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--union-accent);
  outline-offset: 2px;
}

/* ---- Home page: libraries of the catalogue ---- */
.search-home-facets { margin: 2.5rem 0 2rem; }
.home-facet.building h2 {
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--union-accent);
  font-size: 1.5rem;
}
.home-facet.building .home-facet-list {
  border: 0;
  height: auto;
  max-height: none;
  columns: 3 18rem;
  column-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-facet.building .home-facet-list > li {
  break-inside: avoid;
  padding: .3rem 0;
  border-bottom: 1px solid #e9eef5;
  font-size: .9rem;
  line-height: 1.35;
}
.home-facet.building .facet-tree__toggle-expanded { display: none; }
.home-facet.building .main-link { display: flex; gap: .5rem; justify-content: space-between; text-decoration: none; }
.home-facet.building .main-link:hover .text { text-decoration: underline; }
.channel-search { display: none; }

/* ---- Badges ---- */
.badge, .facet .badge { background-color: var(--union-light); color: var(--union-primary); font-weight: 600; }
.format, .result .format, span.format {
  display: inline-block;
  padding: .15em .5em;
  background-color: var(--union-primary);
  color: #fff;
  border-radius: .25rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---- Channels (new items) ---- */
.channel-container, .channel { background-color: var(--union-paper); border-radius: .5rem; }
.channel-title { border-bottom: 2px solid var(--union-accent); padding-bottom: .4rem; }

/* ---- Sidebar facets: show full names (bootstrap5 truncates with an ellipsis) ---- */
.facet-tree li .facet-tree__item-container .facet-value { white-space: normal; overflow: visible; text-overflow: clip; }
.home-facet.building .facet-tree__item-container { width: 100%; }
.sidebar { background-color: transparent; }
.sidebar .facet-group, .sidebar .card {
  border: 1px solid var(--union-border);
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 30, 45, .04);
}
.sidebar .facet-group .title, .sidebar .card-header, .facet-group button.title {
  font-family: var(--union-serif);
  color: var(--union-primary);
  border-left: 4px solid var(--union-accent);
}

/* ---- Results ---- */
.result { padding-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid #e9eef5; }
.result .title { font-family: var(--union-serif); font-size: 1.15rem; font-weight: 700; }
.search-header {
  align-items: center;
  margin-bottom: .5rem;
  padding: .5rem 1rem;
  background-color: var(--union-paper);
  border: 1px solid var(--union-border);
  border-radius: .5rem;
  color: var(--union-text);
}
.search-header .search-stats, .search-header .search-stats strong { color: var(--union-text); }
.pagination .page-item.active .page-link { background-color: var(--union-primary); border-color: var(--union-primary); }
mark, .highlight { background-color: #fff0b3; color: inherit; padding: 0 .1em; border-radius: 2px; }

/* ---- Record page ---- */
.record-nav .btn, .action-toolbar .btn, .record .btn-default {
  background-color: #fff;
  border: 1px solid var(--union-border);
  color: var(--union-primary);
}
.record-nav .btn:hover, .action-toolbar .btn:hover { background-color: var(--union-paper); }
.record h1 { font-size: 1.8rem; line-height: 1.25; }
.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-bg-type: var(--union-paper); }
.record-tabs .nav-tabs .nav-link.active, .record-tabs .nav-link.active { border-top: 3px solid var(--union-accent); }
.sidebar .similar-items, .similar-items { background-color: var(--union-paper); border-radius: .5rem; }

/* ---- Footer ---- */
footer {
  max-width: none;
  margin-top: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  background-color: var(--union-primary);
  color: #fff;
  border-top: 4px solid var(--union-accent);
  /* full-bleed background while the content keeps the container width */
  box-shadow: 0 0 0 100vmax var(--union-primary);
  clip-path: inset(0 -100vmax);
}
.footer-container { max-width: 1320px; margin: 0 auto; }
footer h2 { color: var(--union-accent-light); font-size: 1.15rem; }
footer a, footer a:visited { color: #fff; }
footer a:hover, footer a:focus { color: var(--union-accent-light); }

/* ---- Persons (entity index): list cards and person page ---- */
.union-person-card { display: flex; gap: 1rem; align-items: flex-start; }
.union-person-card__image {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--union-light); display: flex; align-items: center; justify-content: center;
}
.union-person-card__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.union-person-card__initial { font-family: var(--union-serif); font-size: 1.6rem; font-weight: 700; color: var(--union-primary); }
.union-person-card__name { display: inline; margin: 0 .5rem 0 0; font-size: 1.15rem; }
.union-person-card__dates { color: #5b6670; white-space: nowrap; }
.union-person-card__desc { margin: .2rem 0; }
.union-person-card__counts { margin: .2rem 0 0; font-size: .9rem; color: #5b6670; }

.union-person__head { display: flex; gap: 2rem; align-items: flex-start; margin: 1rem 0 2rem; }
.union-person__image { flex: 0 0 220px; margin: 0; }
.union-person__image img { width: 220px; max-height: 300px; object-fit: cover; border-radius: .5rem; box-shadow: 0 2px 8px rgba(15, 30, 45, .15); }
.union-person__image figcaption { margin-top: .3rem; font-size: .75rem; }
.union-person__type { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--union-accent); }
.union-person__intro h1 { margin: .1rem 0 .2rem; font-size: 2.2rem; }
.union-person__dates { font-size: 1.15rem; color: #5b6670; margin-bottom: .5rem; }
.union-person__desc { font-size: 1.1rem; }
.union-person__roles { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.union-person__roles li {
  padding: .6rem .9rem; border: 1px solid var(--union-border); border-radius: .5rem;
  background: var(--union-paper); max-width: 16rem; line-height: 1.3;
}
.union-person__roles strong { display: block; font-family: var(--union-serif); font-size: 1.5rem; color: var(--union-primary); }
.union-person__roles a { text-decoration: none; }
.union-person__roles a:hover span, .union-person__roles a:hover { text-decoration: underline; }
.union-person__facts th { width: 16rem; color: var(--union-primary); }
.union-person__links a, .union-person__links span { margin-right: 1rem; white-space: nowrap; }
.union-person__credit { font-size: .8rem; color: #5b6670; }
@media (max-width: 575.98px) {
  .union-person__head { flex-direction: column; gap: 1rem; }
  .union-person__image, .union-person__image img { width: 160px; flex-basis: auto; }
  .union-person__facts th { width: auto; }
}
.union-person-link { margin-left: .2rem; text-decoration: none; font-size: .95em; color: var(--union-accent); }
.union-person-link:hover, .union-person-link:focus { color: var(--union-primary); }
.union-entity__map iframe { width: 100%; height: 360px; border: 1px solid var(--union-border); border-radius: .5rem; }
.union-entity__map { margin: 0 0 1.5rem; }
.union-entity__proposed { font-size: .85em; color: #5b6670; font-style: italic; }
header .nav.navbar-nav button.dropdown-toggle[aria-expanded="true"] { background-color: var(--union-light); color: var(--union-text); border-radius: .375rem; }
header .dropdown-menu .dropdown-item:hover, header .dropdown-menu .dropdown-item:focus { background-color: var(--union-paper); color: var(--union-primary); }
.sidebar .facet__list .facet.js-facet-item.active, .sidebar .facet__list .facet.js-facet-item.active:hover,
.sidebar .list-group-item.active, .sidebar .facet.active .main-link {
  background-color: var(--union-primary); border-color: var(--union-primary); color: #fff;
}
.union-entity__translations { margin: 0 0 1.5rem; } .union-entity__translations h2 { font-size: 1.3rem; }

/* ---- Relation map of a person (js/union-graph.js) ---- */
.union-graph { margin: 0 0 2rem; }
.union-graph h2 { font-size: 1.4rem; }
.union-graph__legend { font-size: .9rem; color: #5b6670; }
.ug-key { display: inline-block; width: 1.4rem; height: .35rem; margin: 0 .3rem 0 .8rem; vertical-align: middle; border-radius: 2px; }
.ug-key.ug-co { background: #1d5aa6; } .ug-key.ug-about { background: #c8435a; } .ug-key.ug-wrote { background: #2e7d5b; }
.union-graph__map { width: 100%; overflow: hidden; border: 1px solid var(--union-border); border-radius: .5rem; background: #fff; }
.union-graph__map svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.ug-line { stroke-opacity: .45; } .ug-line.ug-co { stroke: #1d5aa6; } .ug-line.ug-about { stroke: #c8435a; } .ug-line.ug-wrote { stroke: #2e7d5b; }
.ug-node circle { stroke: #fff; stroke-width: 2; } .ug-node.ug-co circle { fill: #1d5aa6; } .ug-node.ug-about circle { fill: #c8435a; } .ug-node.ug-wrote circle { fill: #2e7d5b; }
.ug-node:hover circle { stroke: var(--union-accent); stroke-width: 3; }
.ug-label { font-size: 13px; fill: #1f2933; } .ug-node:hover .ug-label { text-decoration: underline; fill: var(--union-primary); }
.ug-center circle { fill: var(--union-accent); stroke: #fff; stroke-width: 3; }
.ug-center-label { font-family: var(--union-serif); font-weight: 700; font-size: 15px; fill: var(--union-primary); }
.ug-dim { opacity: .15; }
.union-graph__tip { min-height: 1.4rem; margin: .4rem 0 0; font-size: .9rem; color: var(--union-primary); }
.union-graph__lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem 2rem; margin-top: .5rem; }
.union-graph__lists h3 { font-size: 1rem; margin: .5rem 0 .3rem; }
.union-graph__lists ul { padding-left: 1.1rem; margin: 0; font-size: .92rem; }
/* Relation map kinds of topics, places and works */
.ug-key.ug-topic { background: #7b5cc6; } .ug-line.ug-topic { stroke: #7b5cc6; } .ug-node.ug-topic circle { fill: #7b5cc6; }
.ug-key.ug-author { background: #1d5aa6; } .ug-line.ug-author { stroke: #1d5aa6; } .ug-node.ug-author circle { fill: #1d5aa6; }
.ug-key.ug-person { background: #c8435a; } .ug-line.ug-person { stroke: #c8435a; } .ug-node.ug-person circle { fill: #c8435a; }
.ug-key.ug-place { background: #2e7d5b; } .ug-line.ug-place { stroke: #2e7d5b; } .ug-node.ug-place circle { fill: #2e7d5b; }
.ug-key.ug-contrib { background: #1d5aa6; } .ug-line.ug-contrib { stroke: #1d5aa6; } .ug-node.ug-contrib circle { fill: #1d5aa6; }
.ug-key.ug-scholar { background: #c8435a; } .ug-line.ug-scholar { stroke: #c8435a; } .ug-node.ug-scholar circle { fill: #c8435a; }

/* ==== Entity screens (persons, places, topics, works, events, periodicals) ====
   Layout of the entity screens of the project presentation. Role colours are shared by the role bar,
   the cards, the timeline and the relation map. */
:root {
  --ue-main: #2b6cc4;        /* author, edition */
  --ue-subject: #0f8a7e;     /* as subject, study */
  --ue-other: #7b5cc6;       /* other role, translation */
  --ue-pub: #c8435a;         /* place of publication, co-authors */
  --ue-main-soft: #e3eefc;
  --ue-subject-soft: #dcf3ef;
}
.ue-k-main, .ue-k-edition { background: var(--ue-main); }
.ue-k-subject, .ue-k-study { background: var(--ue-subject); }
.ue-k-other, .ue-k-translation { background: var(--ue-other); }
.ue-k-pub { background: var(--ue-pub); }

.ue { margin: 1rem 0 2rem; }
.ue-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px; gap: 1.5rem 2rem; align-items: start; }
.ue-head--noportrait { grid-template-columns: minmax(0, 1fr) 300px; }
.ue-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: .6rem; overflow: hidden;
  background: linear-gradient(160deg, var(--ue-main-soft), var(--ue-subject-soft)); display: flex; align-items: center; justify-content: center; }
.ue-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ue-portrait--cover { aspect-ratio: 3 / 4; }
.ue-portrait__initials { font-family: var(--union-serif); font-size: 2.6rem; font-weight: 700; color: var(--ue-main); }
.ue-portrait__credit { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem .4rem; font-size: .7rem; color: #fff; background: rgba(0, 0, 0, .55); text-align: right; }
.ue-portrait__credit:hover, .ue-portrait__credit:focus { color: #fff; }
.ue-eyebrow { margin: 0 0 .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ue-main); }
.ue-name h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.15; }
.ue-alt { margin: .35rem 0 0; color: #5b6670; }
.ue-desc { margin: .6rem 0 0; font-size: 1.05rem; max-width: 60ch; }
.ue-ids { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.ue-id { display: inline-block; padding: .15rem .5rem; border: 1px solid var(--union-border); border-radius: .3rem; background: #fff;
  font-family: var(--union-font); font-size: .78rem; color: #3b4450; text-decoration: none; }
.ue-id b { color: var(--ue-subject); font-weight: 700; }
.ue-id em { font-style: italic; color: #5b6670; font-family: inherit; }
a.ue-id:hover, a.ue-id:focus { border-color: var(--ue-subject); text-decoration: none; }
.ue-id--muted { font-family: inherit; color: #5b6670; }
.ue-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 0; padding: 1rem 1.1rem;
  background: var(--union-paper); border: 1px solid var(--union-border); border-radius: .6rem; font-size: .93rem; }
.ue-facts dt { color: #5b6670; font-weight: 400; }
.ue-facts dd { margin: 0; }

.ue-roles { margin: 1.6rem 0 .4rem; }
.ue-rolebar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; background: #eee; }
.ue-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .9rem; }
.ue-legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; margin-right: .35rem; vertical-align: -.05rem; }
.ue-legend a { text-decoration: none; color: inherit; } .ue-legend a:hover strong { text-decoration: underline; }
.ue-legend--col { flex-direction: column; }

.ue-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin: 1.6rem 0 .4rem; padding: 0; list-style: none; }
.ue-kpis li > a, .ue-kpis li { display: block; text-decoration: none; color: inherit; }
.ue-kpis li { padding: .8rem 1rem; background: #fff; border: 1px solid var(--union-border); border-radius: .6rem; }
.ue-kpis li:has(> a) { padding: 0; } .ue-kpis li > a { padding: .8rem 1rem; border-radius: .6rem; }
.ue-kpis li > a:hover, .ue-kpis li > a:focus { background: var(--union-paper); }
.ue-kpis strong { display: block; font-family: var(--union-serif); font-size: 1.6rem; color: var(--union-text); }
.ue-kpis span { font-size: .88rem; color: #5b6670; }
.ue-kpis--small { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

.ue-tabs { margin-top: 1.4rem; }
.ue-tablist { display: none; }
.ue-tabs--js .ue-tablist { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; border-bottom: 1px solid var(--union-border); margin-bottom: 1.2rem; }
.ue-tablist [role="tab"] { padding: .55rem 0; border: 0; border-bottom: 3px solid transparent; background: none; color: #5b6670; font-weight: 600; }
.ue-tablist [role="tab"][aria-selected="true"] { color: var(--union-text); border-bottom-color: var(--ue-main); }
.ue-tablist [role="tab"]:hover { color: var(--union-text); }
.ue-panel { margin-bottom: 1.5rem; }
.ue-panel__title { font-size: 1.25rem; margin: 0 0 .8rem; }
.ue-tabs--js .ue-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ue-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.6rem; align-items: start; }
.ue-side { display: grid; gap: 1rem; }
.ue-box { padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--union-border); border-radius: .6rem; }
.ue-box h3 { margin: 0 0 .7rem; font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3b4450; }
.ue-note { font-size: .88rem; color: #5b6670; }
.ue-intro { max-width: 70ch; color: #3b4450; }
.ue-more { margin: .7rem 0 0; font-weight: 600; }
.ue-credit { font-size: .8rem; color: #5b6670; margin-top: .6rem; }
.ue-chip { flex: none; padding: .1rem .6rem; border-radius: 1rem; background: var(--ue-subject-soft); color: #0b6b62; font-size: .8rem; white-space: nowrap; }

.ue-recs { margin: 0; padding: 0; list-style: none; }
.ue-rec { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #e9eef5; }
.ue-rec__mark { flex: none; width: 34px; height: 44px; border-radius: 3px; opacity: .25; }
.ue-rec__body { flex: 1; min-width: 0; }
.ue-rec__title { display: block; font-weight: 600; }
.ue-rec__meta { font-size: .86rem; color: #5b6670; }

.ue-bars { display: block; width: 100%; height: auto; }
.ue-bars rect { fill: var(--ue-main); } .ue-bars line { stroke: var(--union-border); }
.ue-bars__axis { display: flex; justify-content: space-between; font-size: .78rem; color: #5b6670; }

.ue-rel { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ue-rel li { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: .6rem; align-items: center; }
.ue-rel small { grid-column: 2; color: #5b6670; font-size: .8rem; }
.ue-av { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700; }
.ue-av.ue-k-co { background: var(--ue-pub); } .ue-av.ue-k-about { background: var(--ue-subject); } .ue-av.ue-k-wrote { background: var(--ue-main); }
.ue-av.ue-k-topic { background: var(--ue-subject); } .ue-av.ue-k-author { background: var(--ue-main); }
.ue-av.ue-k-place { background: var(--ue-other); } .ue-av.ue-k-person { background: var(--ue-pub); }
.ue-av.ue-k-contrib { background: var(--ue-pub); } .ue-av.ue-k-scholar { background: var(--ue-subject); }

.ue-timeline { margin: 0; padding: 0; list-style: none; }
.ue-timeline li { display: grid; grid-template-columns: 3.4rem 14px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid #e9eef5; }
.ue-timeline__y { font-family: var(--union-font); color: #3b4450; }
.ue-timeline__k { width: 12px; height: 12px; border-radius: 50%; }
.ue-timeline__t small { display: block; color: #5b6670; }

.ue-table th { width: 16rem; color: var(--union-primary); }

/* Relation map: same colours as the role bar */
.ug-key.ug-co, .ug-line.ug-co { background: var(--ue-pub); stroke: var(--ue-pub); } .ug-node.ug-co circle { fill: var(--ue-pub); }
.ug-key.ug-about, .ug-line.ug-about { background: var(--ue-subject); stroke: var(--ue-subject); } .ug-node.ug-about circle { fill: var(--ue-subject); }
.ug-key.ug-wrote, .ug-line.ug-wrote { background: var(--ue-main); stroke: var(--ue-main); } .ug-node.ug-wrote circle { fill: var(--ue-main); }
.ug-key.ug-topic, .ug-line.ug-topic { background: var(--ue-subject); stroke: var(--ue-subject); } .ug-node.ug-topic circle { fill: var(--ue-subject); }
.ug-key.ug-author, .ug-line.ug-author { background: var(--ue-main); stroke: var(--ue-main); } .ug-node.ug-author circle { fill: var(--ue-main); }
.ug-key.ug-place, .ug-line.ug-place { background: var(--ue-other); stroke: var(--ue-other); } .ug-node.ug-place circle { fill: var(--ue-other); }
.ug-key.ug-person, .ug-line.ug-person { background: var(--ue-pub); stroke: var(--ue-pub); } .ug-node.ug-person circle { fill: var(--ue-pub); }
.ug-key.ug-contrib, .ug-line.ug-contrib { background: var(--ue-pub); stroke: var(--ue-pub); } .ug-node.ug-contrib circle { fill: var(--ue-pub); }
.ug-key.ug-scholar, .ug-line.ug-scholar { background: var(--ue-subject); stroke: var(--ue-subject); } .ug-node.ug-scholar circle { fill: var(--ue-subject); }
.ug-center circle { fill: var(--union-primary); }
.union-graph h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Lists of entities: cards in a grid */
.search-results-solr-auth { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .9rem; padding: 0; list-style: none; }
.search-results-solr-auth > li.result { margin: 0; padding: .9rem; border: 1px solid var(--union-border); border-radius: .6rem; background: #fff; }
.search-results-solr-auth > li.result .record-number { display: none; }
.union-person-card { gap: .8rem; }
.union-person-card__image { flex: 0 0 64px; width: 64px; height: 76px; border-radius: .4rem;
  background: linear-gradient(160deg, var(--ue-main-soft), var(--ue-subject-soft)); }
.union-person-card__initial { color: var(--ue-main); }
.union-person-card__name { display: block; font-size: 1.05rem; margin: 0; }
.union-person-card__desc { font-size: .88rem; color: #5b6670; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ue-mini { display: flex; height: 6px; gap: 2px; border-radius: 3px; overflow: hidden; margin: .45rem 0 .25rem; background: #eee; }
.ue-cardlegend { margin: 0 0 1rem; }

@media (max-width: 991.98px) {
  .ue-head { grid-template-columns: 120px minmax(0, 1fr); }
  .ue-head--noportrait { grid-template-columns: minmax(0, 1fr); }
  .ue-facts { grid-column: 1 / -1; }
  .ue-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .ue-head { grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; }
  .ue-timeline li { grid-template-columns: 3rem 12px minmax(0, 1fr); }
  .ue-timeline li .ue-chip { grid-column: 3; justify-self: start; }
  .ue-table th { width: auto; }
}
/* Cards: allow the text to wrap inside the grid cell */
.search-results-solr-auth { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.search-results-solr-auth > li.result { min-width: 0; overflow: hidden; }
.search-results-solr-auth .union-person-card { display: flex; }
.search-results-solr-auth .union-person-card__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.search-results-solr-auth .union-person-card__dates { white-space: normal; display: block; font-size: .88rem; color: #5b6670; }
.search-results-solr-auth .union-person-card__counts { font-size: .85rem; }
.ue-facts { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); } .ue-facts dt { line-height: 1.3; }
.ue-id--urn { border-color: var(--union-primary); } .ue-id--urn b { color: var(--union-primary); }

/* ---- Review screen of the proposed entity matches (/UnionReview) ---- */
.union-review h1 { margin: .1rem 0 .6rem; }
.ue-tablist--static { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; border-bottom: 1px solid var(--union-border); margin: 1rem 0; }
.ue-tablist--static a { padding: .55rem 0; border-bottom: 3px solid transparent; color: #5b6670; font-weight: 600; text-decoration: none; }
.ue-tablist--static a.is-current { color: var(--union-text); border-bottom-color: var(--ue-main); }
.union-review__count { color: #5b6670; }
.union-review__list { padding-left: 1.6rem; }
.union-review__item { padding: .9rem 0; border-bottom: 1px solid #e9eef5; }
.union-review__item.is-decided { opacity: .75; }
.union-review__heading { font-weight: 700; font-size: 1.05rem; margin-right: .6rem; }
.union-review__meta { color: #5b6670; font-size: .88rem; }
.union-review__proposal { display: flex; flex-wrap: wrap; gap: .4rem; margin: .45rem 0; }
.union-review__decided { margin: .3rem 0; font-size: .9rem; color: #0b6b62; }
.union-review__form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.union-review__other { flex-basis: 100%; }
.union-review__other summary { cursor: pointer; color: var(--union-primary); font-size: .92rem; }
.union-review__other label { display: block; margin-top: .4rem; font-size: .85rem; }
.union-review__other input { max-width: 28rem; }
.union-review__other button { margin-top: .5rem; }
.union-review__pages { display: flex; gap: 1.5rem; margin: 1rem 0; }
.union-review__meta code, .ue-table code { color: #3b4450; background: none; }

/* Periodical page (authority/periodical.phtml): topic counts, holdings, authors in columns */
.ue--periodical .ue-portrait__initials { letter-spacing: .04em; }
.ue-counts { margin: 0; padding: 0; list-style: none; }
.ue-counts li { display: flex; justify-content: space-between; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid #e9eef5; }
.ue-counts li:last-child { border-bottom: 0; }
.ue-counts small { color: #5b6670; font-variant-numeric: tabular-nums; }
.ue-held { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ue-held li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .6rem; align-items: center; }
.ue-held li small { grid-column: 2; }
.ue-held__n { grid-row: span 2; display: inline-block; min-width: 3rem; text-align: center; padding: .3rem .4rem; border-radius: 4px; background: #dcf3ef; color: #0b6b62; font-weight: 700; font-variant-numeric: tabular-nums; }
.ue-held small { color: #5b6670; }
.ue-rel--cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ue-k-article { background: var(--ue-main); }

/* Home page tiles (ContentBlock/TemplateBased/union-tiles.phtml) */
.union-tiles { margin: 2rem 0 1rem; }
.union-tiles__title { font-size: 1.35rem; margin: 0 0 1rem; }
.union-tiles__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.union-tile a { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.1rem 1.2rem; border: 1px solid #e1e8f1; border-top: 4px solid var(--ue-main, #a4532a); border-radius: .6rem; background: #fff; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.union-tile a:hover, .union-tile a:focus-visible { box-shadow: 0 4px 14px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.union-tile__n { font-family: var(--union-serif, Georgia, serif); font-size: 1.9rem; line-height: 1.1; color: #173f73; font-variant-numeric: tabular-nums; }
.union-tile__label { font-weight: 700; color: #173f73; }
.union-tile__desc { font-size: .88rem; color: #5b6670; }
.union-tile--records a { border-top-color: #173f73; }
.union-tile--place a, .union-tile--topic a { border-top-color: var(--ue-subject, #2f7a6b); }
.union-tile--corporate a, .union-tile--event a { border-top-color: var(--ue-pub, #f6c143); }
.union-tile--periodical a, .union-tile--work a { border-top-color: var(--ue-other, #5a6f8a); }

/* Places map above the places list (authority/places-map.phtml) */
.union-places-map { margin: 1rem 0 1.5rem; }
.union-places-map__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: .5rem; }
.union-places-map__head h2 { font-size: 1.35rem; margin: 0; }
.union-places-map__views { display: flex; gap: .4rem; flex-wrap: wrap; }
.union-places-map__map { height: 460px; border: 1px solid #e1e8f1; border-radius: .6rem; background: #eef1f3; }
.union-places-map__map:focus-visible { outline: 3px solid #f6c143; outline-offset: 2px; }
.union-places-map__note { margin: .4rem 0 0; font-size: .88rem; color: #5b6670; }
.union-map-cluster span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.union-map-cluster { border-radius: 50%; background: rgba(29, 90, 166, .88); border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); color: #fff; font-weight: 700; font-size: .74rem; line-height: 1; }
.union-map-popup__name { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .2rem; }
.union-map-popup__n, .union-map-popup__roles { display: block; color: #333; }
@media (max-width: 576px) { .union-places-map__map { height: 340px; } }

/* Statistics and comparison of roles (authority/parts/stats.phtml, roles.phtml) */
.ue-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ue-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ue-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; }
.ue-bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ue-bars__n { font-variant-numeric: tabular-nums; color: #3b4450; }
.ue-bars__n small { color: #5b6670; }
.ue-bars__bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: #e9eef5; overflow: hidden; }
.ue-bars__bar > span { display: block; height: 100%; background: var(--ue-main, #a4532a); border-radius: 3px; }
.ue-roles__head { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1rem; }
.ue-roles__role { display: inline-flex; align-items: center; gap: .4rem; }
.ue-roles__role i { display: inline-block; width: .8rem; height: .8rem; border-radius: 2px; }
.ue-roles__box { margin-bottom: 1rem; }
.ue-roles__table { margin: 0; table-layout: fixed; }
.ue-roles__table th[scope="row"] { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ue-roles__table td { vertical-align: middle; }
.ue-roles__pct { font-variant-numeric: tabular-nums; font-size: .88rem; }
.ue-roles__none { color: #8a939b; }
.ue-roles__decades { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ue-bars__bar > span.ue-k-subject, .ue-bars__bar > span.ue-k-study { background: var(--ue-subject); }
.ue-bars__bar > span.ue-k-other, .ue-bars__bar > span.ue-k-translation { background: var(--ue-other); }
.ue-bars__bar > span.ue-k-pub { background: var(--ue-pub); }

/* Data quality reports (unionreports/home.phtml) */
.union-reports__filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.union-reports__filter select { width: auto; min-width: 16rem; }
.union-reports__desc { display: block; font-weight: 400; color: #5b6670; margin-top: .15rem; }
.union-reports__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0 1rem; }
.union-reports__table td, .union-reports__table th { font-size: .92rem; }

/* Person relation maps by role: translators, editors, illustrators, other contributors */
.ug-key.ug-trl, .ug-line.ug-trl { background: var(--ue-other); stroke: var(--ue-other); } .ug-node.ug-trl circle { fill: var(--ue-other); }
.ug-key.ug-edt, .ug-line.ug-edt { background: #7b5cc6; stroke: #7b5cc6; } .ug-node.ug-edt circle { fill: #7b5cc6; }
.ug-key.ug-ill, .ug-line.ug-ill { background: #1f6f8b; stroke: #1f6f8b; } .ug-node.ug-ill circle { fill: #1f6f8b; }
.ug-key.ug-oth, .ug-line.ug-oth { background: #8a8f98; stroke: #8a8f98; } .ug-node.ug-oth circle { fill: #8a8f98; }
.ue-av.ue-k-trl { background: var(--ue-other); } .ue-av.ue-k-edt { background: #7b5cc6; }
.ue-av.ue-k-ill { background: #1f6f8b; } .ue-av.ue-k-oth { background: #8a8f98; }

/* Map tab of the record page (RecordTab/placesmap.phtml) */
.union-record-map { height: 380px; border: 1px solid #e1e8f1; border-radius: .6rem; margin-bottom: .75rem; }
.union-record-map__list { padding-left: 1.2rem; }

/* Librarian accounts (unionadmin/home.phtml) */
.union-admin__grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.union-admin__inactive th, .union-admin__inactive td { color: #8a939b; }
.union-admin__password code { font-size: 1.1rem; margin-left: .5rem; }
.union-admin__pw { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.union-reports__q { width: auto; min-width: 16rem; }
.union-review__why { display: block; color: #5b6670; margin-top: .2rem; }
.union-admin__kohaform { display: grid; gap: .35rem; max-width: 26rem; }
.union-admin__koha td, .union-admin__koha th { vertical-align: top; }


/* =====================================================================================================
   Human layer (proposal v2): Roboto, sea blue and sun yellow, soft cards instead of rules and tables.
   ===================================================================================================== */
:root {
  --u-radius: 8px;
  --u-radius-lg: 10px;
  --u-shadow: 0 1px 2px rgba(23, 63, 115, .06), 0 6px 22px rgba(23, 63, 115, .07);
  --u-shadow-hover: 0 2px 4px rgba(23, 63, 115, .08), 0 14px 34px rgba(23, 63, 115, .13);
  --u-muted: #5a6878;
  --u-bg: #f6f9fd;
  --u-teal: #0f8a7e;
  --u-violet: #7b5cc6;
  --u-rose: #c8435a;
  --bs-body-font-family: var(--union-font);
  --bs-body-bg: var(--u-bg);
}
body { font-family: var(--union-font); background: var(--u-bg); color: var(--union-text); line-height: 1.6; }
h1, h2, h3, .h1, .h2, .h3, .media-body h1, .record h1, .channel-title, footer h2 {
  font-family: var(--union-font); font-weight: 700; letter-spacing: -.015em; color: #173f73;
}
h2, .h2 { font-weight: 500; }
a { text-decoration-color: rgba(29, 90, 166, .35); text-underline-offset: .22em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #f6c143; outline-offset: 2px; border-radius: 6px; }

/* Header: light, with the colour logo */
header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 #e6edf6, 0 6px 20px rgba(23, 63, 115, .05); }
header .banner .navbar-brand { height: 52px; min-height: 52px; width: 300px; }
header .nav.navbar-nav > li > a, header .nav.navbar-nav button.dropdown-toggle, header .navbar-nav .nav-link { color: #24384f !important; font-weight: 500; }
header .nav.navbar-nav > li > a:hover, header .nav.navbar-nav button.dropdown-toggle:hover,
header .nav.navbar-nav button.dropdown-toggle[aria-expanded="true"] { background: #eef4fc; color: #173f73; border-radius: 6px; }
header .dropdown-menu { border: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow-hover); padding: .5rem; }
header .dropdown-menu .dropdown-item { border-radius: 10px; padding: .45rem .8rem; }
header .navbar-toggler { border-color: #d5e1ef; }
header .navbar-toggler-icon, header .navbar-toggler .icon { filter: none; color: #173f73; }
.breadcrumbs { background: transparent; border: 0; }

/* Search box everywhere: one rounded field */
.searchForm .form-control, .searchForm .form-select {
  border: 1px solid #d5e1ef; border-radius: 6px; background-color: #f6f9fd; min-height: 2.75rem; padding-left: 1.1rem;
}
.searchForm .form-control:focus, .searchForm .form-select:focus { background-color: #fff; border-color: #8db6e6; box-shadow: 0 0 0 4px rgba(29, 90, 166, .12); }
.btn-primary, .searchForm .btn-primary {
  background: #f6c143; border: 0; color: #1e2a38; border-radius: 6px; font-weight: 500; padding-left: 1.3rem; padding-right: 1.3rem;
  box-shadow: 0 2px 8px rgba(246, 193, 67, .35);
}
.btn-primary:hover, .btn-primary:focus, .searchForm .btn-primary:hover, .searchForm .btn-primary:focus { background: #ffd66b; color: #1e2a38; }
.btn, .btn-default { border-radius: 6px; font-weight: 500; }
.searchForm .advanced-search-link { color: #1d5aa6; font-weight: 500; }

/* Home: friendly hero with the sea */
.searchHomeContent {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #e8f2fd 0%, #f3f9ff 62%, var(--u-bg) 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 90c160-40 320-40 480 0s320 40 480 0 320-40 480 0v70H0z' fill='%23d5e8fb'/%3E%3Cpath d='M0 115c180-30 360-30 540 0s360 30 540 0 240-20 360-10v55H0z' fill='%23e4f0fc'/%3E%3C/svg%3E"),
    radial-gradient(circle at 86% 24%, rgba(246, 193, 67, .75) 0 26px, rgba(246, 193, 67, .16) 27px 54px, transparent 55px),
    linear-gradient(180deg, #e3effc 0%, #f1f8ff 70%, var(--u-bg) 100%);
  background-repeat: no-repeat; background-position: bottom center, 0 0, 0 0; background-size: 100% 140px, auto, auto;
  box-shadow: none; border-radius: 0 0 var(--u-radius-lg) var(--u-radius-lg);
}
@media (min-width: 576px) { .searchHomeContent { padding-top: 4rem; padding-bottom: 6.5rem; } }
.searchHomeContent::before {
  font-family: var(--union-font); font-weight: 700; color: #173f73; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); max-width: 40rem; margin-bottom: .6rem;
}
.searchHomeContent::after {
  display: block; content: "Βιβλία, περιοδικά, πρόσωπα και τόποι από τις βιβλιοθήκες της Κύπρου, σε ένα μέρος.";
  position: static; width: auto; margin-top: 1.1rem; padding: 0; background: none; color: #4f6075; font-size: 1.05rem; font-weight: 400;
}
:root:lang(en) .searchHomeContent::after { content: "Books, periodicals, people and places from the libraries of Cyprus, in one place."; }
.searchHomeContent .searchForm { background: #fff; padding: .45rem; border-radius: 6px; box-shadow: var(--u-shadow-hover); max-width: 52rem; }
.searchHomeContent .searchForm .form-control, .searchHomeContent .searchForm .form-select { border-color: transparent; background-color: #fff; }
.searchHomeContent .searchForm_lookfor { min-height: 3.1rem; font-size: 1.1rem; }
.searchHomeContent .advanced-search-link { color: #1d5aa6; }

/* Home tiles: soft tinted cards with a round symbol, no rules */
.union-tiles__title, .home-facet.building h2, .channel-title { font-size: 1.45rem; font-weight: 500; border: 0 !important; padding-bottom: 0; color: #173f73; }
.union-tiles__list { gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.union-tile a {
  position: relative; border: 0; border-top: 0 !important; border-radius: var(--u-radius-lg); padding: 1.3rem 1.3rem 1.2rem 1.3rem;
  background: #fff; box-shadow: var(--u-shadow);
}
.union-tile a::before {
  content: ""; width: 42px; height: 42px; border-radius: 50%; margin-bottom: .6rem; background: var(--tile, #e3eefc);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .55);
}
.union-tile a:hover, .union-tile a:focus-visible { box-shadow: var(--u-shadow-hover); transform: translateY(-3px); }
.union-tile__n { font-family: var(--union-font); font-weight: 700; font-size: 1.85rem; color: #173f73; font-variant-numeric: normal; }
.union-tile__label { font-weight: 500; font-size: 1.05rem; color: #173f73; }
.union-tile__desc { color: var(--u-muted); font-size: .9rem; line-height: 1.45; }
.union-tile--records a { --tile: #2b6cc4; } .union-tile--person a { --tile: #f6c143; }
.union-tile--topic a, .union-tile--place a { --tile: #0f8a7e; }
.union-tile--work a, .union-tile--periodical a { --tile: #7b5cc6; }
.union-tile--corporate a, .union-tile--event a { --tile: #c8435a; }

/* Home: the libraries as friendly chips */
.home-facet.building .home-facet-list { columns: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.home-facet.building .home-facet-list > li { border: 0; padding: 0; }
.home-facet.building .main-link {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .6rem; border-radius: 6px;
  background: #fff; box-shadow: var(--u-shadow); color: #173f73; font-weight: 500; font-size: .95rem;
}
.home-facet.building .main-link::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: #e3eefc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 6.5c2.2-.9 4.6-.7 6.6.6v10.4c-2-1.3-4.4-1.5-6.6-.6zM19 6.5c-2.2-.9-4.6-.7-6.6.6v10.4c2-1.3 4.4-1.5 6.6-.6z' fill='%231d5aa6'/%3E%3C/svg%3E") center / 18px no-repeat; }
.home-facet.building .main-link:hover { box-shadow: var(--u-shadow-hover); text-decoration: none; }
.home-facet.building .badge { display: none; }

/* New items: covers on white cards */
.channel-container, .channel { background: transparent; }
.channel-list { gap: 1rem; }
.channel-item { background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: .9rem; border: 0; transition: box-shadow .15s, transform .15s; }
.channel-item:hover { box-shadow: var(--u-shadow-hover); transform: translateY(-3px); }
.channel-item-img, .channel-item-thumb img { border-radius: 10px; }
.channel-item-thumb { background: transparent; border-radius: 10px; }
.channel-item-title, .channel-item a { text-decoration: none; color: #173f73; font-weight: 500; }
.channel-item a:hover .channel-item-title { text-decoration: underline; }
.channel-header { margin-bottom: 1rem; }

/* Badges and formats: soft pills */
.badge, .facet .badge { background: #eef4fc; color: #1d5aa6; font-weight: 500; border-radius: 6px; }
.format, .result .format, span.format { background: #e3eefc; color: #173f73; border-radius: 6px; font-weight: 500; font-size: .78rem; padding: .2em .7em; letter-spacing: 0; }
mark, .highlight { background: #fff0b3; border-radius: 4px; padding: 0 .15em; }

/* Results: each item is a card */
.search-header { background: #fff; border: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow); padding: .6rem 1.1rem; }
ul.result-list, .result-list { display: grid; gap: .85rem; }
.result {
  background: #fff; border: 0 !important; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow);
  padding: 1.1rem 1.3rem !important; transition: box-shadow .15s;
}
.result:hover { box-shadow: var(--u-shadow-hover); }
.result .record-number { color: #9aa8b8; font-weight: 500; }
.result .title { font-family: var(--union-font); font-weight: 500; font-size: 1.12rem; color: #173f73; text-decoration: none; }
.result .title:hover { text-decoration: underline; }
.result .media-left img, .result .recordcover { border-radius: 8px; box-shadow: 0 2px 6px rgba(23, 63, 115, .12); }
.result-body { color: #33475b; }
.pagination .page-link { border: 0; border-radius: 6px !important; margin: 0 .15rem; color: #1d5aa6; background: transparent; }
.pagination .page-item.active .page-link { background: #1d5aa6; color: #fff; }
.top-facets .facet, .top-facets a { border-radius: 6px; }

/* Sidebar facets: rounded cards, plain titles */
.sidebar .facet-group, .sidebar .card { border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); background: #fff; }
.sidebar .facet-group .title, .sidebar .card-header, .facet-group button.title {
  font-family: var(--union-font); font-weight: 500; font-size: 1rem; color: #173f73; border-left: 0; background: #fff;
}
.sidebar .facet, .sidebar .list-group-item { border: 0; }
.sidebar .facet:hover { background: #f3f7fc; border-radius: 10px; }
.sidebar h2, .sidebar .h2 { font-size: 1.2rem; }

/* Record page: details as a list, not a table */
.record-nav .btn, .action-toolbar .btn, .record .btn-default { background: #fff; border: 0; color: #1d5aa6; box-shadow: var(--u-shadow); border-radius: 6px; }
.record-nav .btn:hover, .action-toolbar .btn:hover { background: #eef4fc; }
.record { background: transparent; }
.record > .mainbody { background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: 1.6rem 1.8rem; }
.record h1 { font-size: 1.9rem; font-weight: 700; }
.record table.table-striped:not(.union-other-records) { --bs-table-bg-type: transparent; --bs-table-striped-bg: transparent; }
.record table.table-striped:not(.union-other-records) tr { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .1rem 1.2rem; padding: .55rem 0; border-bottom: 1px solid #edf2f8; }
.record table.table-striped:not(.union-other-records) tr:last-child { border-bottom: 0; }
.record table.table-striped:not(.union-other-records) th,
.record table.table-striped:not(.union-other-records) td { border: 0; padding: 0; background: transparent !important; box-shadow: none; }
.record table.table-striped:not(.union-other-records) th { color: var(--u-muted); font-weight: 400; }
@media (max-width: 575.98px) { .record table.table-striped:not(.union-other-records) tr { grid-template-columns: 1fr; } }
.record-tabs .nav-tabs { border: 0; gap: .4rem; }
.record-tabs .nav-tabs .nav-link { border: 0 !important; border-radius: 6px; color: #33475b; font-weight: 500; padding: .45rem 1rem; }
.record-tabs .nav-tabs .nav-link.active, .record-tabs .nav-link.active { background: #e3eefc; color: #173f73; border-top: 0 !important; }
.record-tabs .tab-content { border: 0; padding-top: 1rem; }
/* Where to find it: one card per library */
.union-other-records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.union-other-records, .union-other-records tbody { display: block; }
.union-other-records tr {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; grid-template-areas: "lib place status" "lib call link";
  gap: .2rem 1.2rem; align-items: center; margin-bottom: .7rem; padding: 1rem 1.2rem; border-radius: var(--u-radius);
  background: #f6f9fd; box-shadow: inset 0 0 0 1px #e6edf6;
}
.union-other-records td { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.union-other-records td:nth-child(1) { grid-area: lib; font-weight: 500; color: #173f73; font-size: 1.05rem; }
.union-other-records td:nth-child(2) { grid-area: place; color: var(--u-muted); }
.union-other-records td:nth-child(3) { grid-area: call; }
.union-other-records td:nth-child(4) { grid-area: status; justify-self: end; }
.union-other-records td:nth-child(4) .text-success { background: #dcf3ef; color: #0b6b62 !important; border-radius: 6px; padding: .2rem .75rem; font-weight: 500; font-size: .9rem; }
.union-other-records td:nth-child(5) { grid-area: link; justify-self: end; font-size: .9rem; }
@media (max-width: 575.98px) {
  .union-other-records tr { grid-template-columns: 1fr auto; grid-template-areas: "lib status" "place place" "call call" "link link"; }
  .union-other-records td:nth-child(5) { justify-self: start; }
}
.sidebar .similar-items, .similar-items { background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); border: 0; }
.similar-items .list-group-item { border: 0; border-bottom: 1px solid #edf2f8; }

/* Entity pages: friendly header, plain labels */
.ue-eyebrow, .union-person__type { display: inline-block; text-transform: none; letter-spacing: 0; font-size: .85rem; font-weight: 500;
  background: #e3eefc; color: #1d5aa6; padding: .15rem .7rem; border-radius: 6px; margin-bottom: .5rem; }
.ue-portrait { border-radius: 50%; aspect-ratio: 1 / 1; box-shadow: var(--u-shadow); background: linear-gradient(150deg, #dbe9fb, #dcf3ef); }
.ue-portrait--cover { border-radius: var(--u-radius); aspect-ratio: 3 / 4; }
.ue-portrait__initials { font-family: var(--union-font); font-weight: 700; color: #1d5aa6; font-size: 2.8rem; }
.ue-name h1 { font-weight: 700; }
/* Identifiers: square tags with a thin border (source name in bold) */
.ue-id { font-family: var(--union-font); border: 1px solid #d5e1ef; border-radius: 4px; background: #fff; padding: .15rem .5rem;
  font-size: .8rem; color: #33475b; }
.ue-id b { color: var(--u-teal); font-weight: 700; }
a.ue-id:hover, a.ue-id:focus { border-color: var(--u-teal); background: #f6f9fd; }
.ue-id--urn { border-color: #1d5aa6; } .ue-id--urn b { color: #173f73; }
.ue-facts { background: #fff; border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: 1.2rem 1.3rem; }
.ue-facts dt { color: var(--u-muted); }
.ue-rolebar { height: 12px; border-radius: 6px; gap: 3px; background: transparent; }
.ue-rolebar > * { border-radius: 6px; }
.ue-legend i, .ue-roles__role i { border-radius: 50%; }
.ue-tabs--js .ue-tablist { border: 0; gap: .4rem; }
.ue-tablist [role="tab"], .ue-tablist--static a { border: 0 !important; border-radius: 6px; padding: .45rem 1rem; color: #33475b; font-weight: 500; }
.ue-tablist [role="tab"][aria-selected="true"], .ue-tablist--static a.is-current { background: #e3eefc; color: #173f73; }
.ue-box { border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: 1.2rem 1.3rem; }
.ue-box h3 { text-transform: none; letter-spacing: 0; font-size: 1.02rem; font-weight: 500; color: #173f73; }
.ue-recs { display: grid; gap: .6rem; }
.ue-rec { border: 0; background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow); padding: .8rem 1rem; }
.ue-rec__mark { width: 38px; height: 50px; border-radius: 6px; opacity: 1; background: linear-gradient(160deg, #dbe9fb, #c9dcf6) !important; }
.ue-rec__title { font-weight: 500; color: #173f73; }
.ue-chip { background: #eef4fc; color: #1d5aa6; font-weight: 500; }
.ue-kpis li { border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); }
.ue-kpis strong { font-family: var(--union-font); font-weight: 700; color: #173f73; }
.ue-bars rect, .ue-bars__bar > span { fill: #2b6cc4; border-radius: 6px; }
.ue-bars__bar { border-radius: 6px; }
.ue-av { box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(23, 63, 115, .2); }
.ue-timeline__y { font-variant-numeric: normal; }
.ue-timeline li, .ue-counts li { border-bottom-color: #edf2f8; }
/* Entity lists */
.search-results-solr-auth > li.result { border: 0 !important; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: 1rem 1.1rem !important; }
.union-person-card__image { border-radius: 50%; width: 56px; height: 56px; flex-basis: 56px; background: linear-gradient(150deg, #dbe9fb, #dcf3ef); }
.union-person-card__initial { font-family: var(--union-font); color: #1d5aa6; font-weight: 700; font-size: 1.35rem; }
.union-person-card__name { font-weight: 500; }
.union-places-map__map { border: 0; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); }
.union-places-map__head h2 { font-weight: 500; }

/* Footer: deep sea, rounded top */
footer {
  background: #173f73; box-shadow: 0 0 0 100vmax #173f73; border-top: 0; margin-top: 3.5rem; padding-top: 2.6rem;
}
footer h2 { color: #fff; font-weight: 500; font-size: 1.05rem; }
footer ul { list-style: none; padding-left: 0; }
footer li { margin: .25rem 0; }
footer a, footer a:visited { color: #d7e6f8; text-decoration: none; }
footer a:hover, footer a:focus { color: #ffd66b; text-decoration: underline; }

/* Hero search: one wide pill with the field, the type and the button */
.searchHomeContent .searchForm { display: flex; align-items: center; gap: .5rem; padding: .4rem .5rem .4rem .4rem; }
.searchHomeContent .searchForm-inputs { display: flex; flex: 1; align-items: center; gap: .35rem; min-width: 0; }
.searchHomeContent .searchForm-query { flex: 1; min-width: 0; }
.searchHomeContent .searchForm_lookfor { width: 100%; }
.searchHomeContent .searchForm_type { width: auto; max-width: 12rem; border-left: 1px solid #e1e8f1 !important; border-radius: 0 !important; }
.searchHomeContent .searchForm .form-control:focus { box-shadow: none; outline: 0; }
.searchHomeContent .searchForm:focus-within { box-shadow: 0 0 0 4px rgba(29, 90, 166, .16), var(--u-shadow-hover); }
.searchHomeContent .advanced-search-link { white-space: nowrap; padding-right: .8rem; }
body #content, body .main > .container { background: transparent !important; box-shadow: none; }
.home-facet.building .home-facet-list { row-gap: .7rem; }
.home-facet.building .home-facet-list > li, .home-facet.building .facet-tree__item-container { margin: 0; height: auto; width: auto; }
/* Home tiles: one symbol per index */
.union-tile a::before { width: 46px; height: 46px; box-shadow: none; background: var(--tile-bg, #e3eefc) var(--tile-icon) center / 24px no-repeat; }
.union-tile--records a { --tile-bg: #e3eefc; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5c2.7-1.1 5.6-.9 8 .7v12.6c-2.4-1.6-5.3-1.8-8-.7zM20 5.5c-2.7-1.1-5.6-.9-8 .7v12.6c2.4-1.6 5.3-1.8 8-.7z' fill='%232b6cc4'/%3E%3C/svg%3E"); }
.union-tile--person a { --tile-bg: #fdf1cf; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm-7 8c0-3.9 3.1-6 7-6s7 2.1 7 6z' fill='%23c99512'/%3E%3C/svg%3E"); }
.union-tile--topic a { --tile-bg: #dcf3ef; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12.6V4.5C3 3.7 3.7 3 4.5 3h8.1l8.4 8.4-9.6 9.6zM7.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z' fill='%230f8a7e'/%3E%3C/svg%3E"); }
.union-tile--place a { --tile-bg: #dcf3ef; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5c-3.9 0-7 3-7 6.9 0 5.2 7 12.1 7 12.1s7-6.9 7-12.1c0-3.9-3.1-6.9-7-6.9zm0 9.4a2.6 2.6 0 1 1 0-5.2 2.6 2.6 0 0 1 0 5.2z' fill='%230f8a7e'/%3E%3C/svg%3E"); }
.union-tile--work a { --tile-bg: #ece6fa; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3c-6 .5-11 4.6-12.6 10.4L5 21h2l1.9-4.7C15 15.6 19.2 10.4 20 3z' fill='%237b5cc6'/%3E%3C/svg%3E"); }
.union-tile--periodical a { --tile-bg: #ece6fa; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h13v15a2 2 0 0 0 2 2H6a2 2 0 0 1-2-2zm3 3v3h7V7zm0 5v1.5h7V12zm0 3.5V17h7v-1.5zM18 8h2v11a1 1 0 0 1-2 0z' fill='%237b5cc6'/%3E%3C/svg%3E"); }
.union-tile--corporate a { --tile-bg: #fbe3e7; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V9l8-5 8 5v12h-5v-6H9v6z' fill='%23c8435a'/%3E%3C/svg%3E"); }
.union-tile--event a { --tile-bg: #fbe3e7; --tile-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v3H4.5C3.7 5 3 5.7 3 6.5v13c0 .8.7 1.5 1.5 1.5h15c.8 0 1.5-.7 1.5-1.5v-13c0-.8-.7-1.5-1.5-1.5H17V2h-2v3H9V2zM5 10h14v9H5z' fill='%23c8435a'/%3E%3C/svg%3E"); }

/* Record toolbar: light pills */
.action-toolbar { gap: .4rem; }
.action-toolbar .toolbar-btn, .action-toolbar .btn, .action-toolbar .dropdown-toggle {
  background: #fff; border: 0; border-radius: 6px; box-shadow: var(--u-shadow); color: #1d5aa6; font-weight: 500; padding: .4rem .95rem; text-decoration: none;
}
.action-toolbar .toolbar-btn:hover, .action-toolbar .btn:hover { background: #eef4fc; }
.sidebar .similar-items { padding: 1.1rem 1.2rem; }
.similar-items .list-group-item, .similar-items li { background: transparent; }
/* Record sidebar (similar items): one card */
.template-dir-record .sidebar .list-group { background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: .4rem 1rem; }
.template-dir-record .sidebar .list-group-item { background: transparent; border: 0; border-bottom: 1px solid #edf2f8; padding: .8rem .2rem; }
.template-dir-record .sidebar .list-group-item:last-child { border-bottom: 0; }
.template-dir-record .sidebar .related__title { font-weight: 500; text-decoration: none; }
.template-dir-record .sidebar .related__title:hover { text-decoration: underline; }
.home-facet.building .home-facet-list > li > ul, .home-facet.building .facet-tree__children { display: none; }
/* Phones: the search box in two rows, smaller sun */
@media (max-width: 575.98px) {
  .searchHomeContent { padding: 2rem 1rem 4.5rem; border-radius: 0 0 var(--u-radius-lg) var(--u-radius-lg);
    background-position: bottom center, 0 0, 0 0;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath d='M0 90c160-40 320-40 480 0s320 40 480 0 320-40 480 0v70H0z' fill='%23d5e8fb'/%3E%3C/svg%3E"),
      radial-gradient(circle at 92% 6%, rgba(246, 193, 67, .7) 0 16px, rgba(246, 193, 67, .15) 17px 32px, transparent 33px),
      linear-gradient(180deg, #e3effc 0%, #f1f8ff 70%, var(--u-bg) 100%); }
  .searchHomeContent::before { font-size: 1.65rem; padding-right: 2.2rem; }
  .searchHomeContent::after { font-size: .98rem; }
  .searchHomeContent .searchForm { flex-wrap: wrap; border-radius: var(--u-radius-lg); padding: .5rem; }
  .searchHomeContent .searchForm-inputs { flex-wrap: wrap; width: 100%; }
  .searchHomeContent .searchForm-query { flex: 1 1 100%; }
  .searchHomeContent .searchForm_type { flex: 1; max-width: none; border-left: 0 !important; border-radius: 6px !important; background-color: #f6f9fd; }
  .searchHomeContent .searchForm .btn-primary { flex: 0 0 auto; }
  .searchHomeContent .advanced-search-link { padding: 0 .6rem .2rem; }
}
/* Active filters above entity lists: soft removable pills */
.active-filters .filter-value, .active-filters a.filter-value, .filters .filter-value {
  background: #e3eefc; color: #173f73; border: 0; border-radius: 6px; padding: .3rem .8rem; font-weight: 500; text-decoration: none;
}
@media (max-width: 575.98px) {
  .searchHomeContent { background-size: 100% 60px, auto, auto; padding-bottom: 3rem; }
  .searchHomeContent .searchForm-inputs { gap: .5rem; }
  .searchHomeContent .searchForm .form-control.searchForm_lookfor { background-color: #f6f9fd; border: 1px solid #d5e1ef; min-height: 3rem; }
  .searchHomeContent .searchForm_type { min-height: 2.75rem; }
}

/* ---- Hero v2b: a library shelf and a meander band instead of the sun and the waves ---- */
:root { --u-gold: #d8aa45; --u-gold-light: #e7c46f; }
.searchHomeContent {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M0 15 H6 V3 H18 V11 H10 V7 H14' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3Cpath d='M14 7 V11' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3Cpath d='M18 15 H32' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 312' opacity='.88'%3E%3Crect x='0' y='150' width='440' height='7' rx='2' fill='%23c6d5e8'/%3E%3Crect x='0' y='157' width='440' height='3' fill='%23dbe5f1'/%3E%3Crect x='0' y='300' width='440' height='7' rx='2' fill='%23c6d5e8'/%3E%3Crect x='0' y='307' width='440' height='3' fill='%23dbe5f1'/%3E%3Crect x='18' y='38' width='22' height='112' rx='2' fill='%23173f73'/%3E%3Crect x='20' y='48' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='20' y='136' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='26.0' y='88.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='43' y='54' width='18' height='96' rx='2' fill='%231f7f76'/%3E%3Crect x='45' y='64' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='45' y='136' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='49.0' y='96.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='64' y='26' width='26' height='124' rx='2' fill='%232b5f9e'/%3E%3Crect x='66' y='36' width='22' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='66' y='136' width='22' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='74.0' y='82.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='93' y='62' width='16' height='88' rx='2' fill='%23c49a3a'/%3E%3Crect x='95' y='72' width='12' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='95' y='136' width='12' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='98.0' y='100.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='112' y='44' width='22' height='106' rx='2' fill='%235f7697'/%3E%3Crect x='114' y='54' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='114' y='136' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='120.0' y='91.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='137' y='32' width='20' height='118' rx='2' fill='%23173f73'/%3E%3Crect x='139' y='42' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='139' y='136' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='144.0' y='85.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='160' y='50' width='24' height='100' rx='2' fill='%231f7f76'/%3E%3Crect x='162' y='60' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='162' y='136' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='169.0' y='94.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Cg transform='rotate%2814 191 150%29'%3E%3Crect x='191' y='46' width='20' height='104' rx='2' fill='%239fb4cf'/%3E%3Crect x='193' y='56' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='193' y='136' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='198.0' y='92.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3C/g%3E%3Cpath d='M300 46 h22 v6 c0 6 -4 8 -4 12 c14 6 22 22 22 40 c0 22 -14 36 -29 44 c-15 -8 -29 -22 -29 -44 c0 -18 8 -34 22 -40 c0 -4 -4 -6 -4 -12z' fill='%23d7c39a'/%3E%3Cpath d='M297 70 c-12 2 -14 14 -6 18' fill='none' stroke='%23b89a5e' stroke-width='3'/%3E%3Cpath d='M325 70 c12 2 14 14 6 18' fill='none' stroke='%23b89a5e' stroke-width='3'/%3E%3Cpath d='M283 98 q28 6 56 0' fill='none' stroke='%23173f73' stroke-width='2.2' opacity='.75'/%3E%3Cpath d='M283 106 q28 6 56 0' fill='none' stroke='%23173f73' stroke-width='2.2' opacity='.75'/%3E%3Cpath d='M283 128 q28 6 56 0' fill='none' stroke='%23173f73' stroke-width='2.2' opacity='.75'/%3E%3Crect x='360' y='58' width='20' height='92' rx='2' fill='%235f7697'/%3E%3Crect x='362' y='68' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='362' y='136' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='367.0' y='98.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='383' y='40' width='24' height='110' rx='2' fill='%23173f73'/%3E%3Crect x='385' y='50' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='385' y='136' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='392.0' y='89.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='410' y='66' width='18' height='84' rx='2' fill='%23c49a3a'/%3E%3Crect x='412' y='76' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='412' y='136' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='416.0' y='102.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='24' y='284' width='120' height='14' rx='2' fill='%232b5f9e'/%3E%3Crect x='30' y='290' width='106' height='2' fill='%23ffffff' opacity='.3'/%3E%3Crect x='30' y='268' width='108' height='14' rx='2' fill='%239fb4cf'/%3E%3Crect x='36' y='274' width='94' height='2' fill='%23ffffff' opacity='.3'/%3E%3Crect x='24' y='252' width='128' height='14' rx='2' fill='%23173f73'/%3E%3Crect x='30' y='258' width='114' height='2' fill='%23ffffff' opacity='.3'/%3E%3Crect x='30' y='236' width='100' height='14' rx='2' fill='%231f7f76'/%3E%3Crect x='36' y='242' width='86' height='2' fill='%23ffffff' opacity='.3'/%3E%3Crect x='172' y='180' width='20' height='120' rx='2' fill='%231f7f76'/%3E%3Crect x='174' y='190' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='174' y='286' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='179.0' y='234.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='195' y='166' width='24' height='134' rx='2' fill='%23173f73'/%3E%3Crect x='197' y='176' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='197' y='286' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='204.0' y='227.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='222' y='196' width='18' height='104' rx='2' fill='%235f7697'/%3E%3Crect x='224' y='206' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='224' y='286' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='228.0' y='242.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='243' y='174' width='22' height='126' rx='2' fill='%232b5f9e'/%3E%3Crect x='245' y='184' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='245' y='286' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='251.0' y='231.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='268' y='204' width='16' height='96' rx='2' fill='%23c49a3a'/%3E%3Crect x='270' y='214' width='12' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='270' y='286' width='12' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='273.0' y='246.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='287' y='170' width='24' height='130' rx='2' fill='%23173f73'/%3E%3Crect x='289' y='180' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='289' y='286' width='20' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='296.0' y='229.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='314' y='188' width='20' height='112' rx='2' fill='%239fb4cf'/%3E%3Crect x='316' y='198' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='316' y='286' width='16' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='321.0' y='238.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='337' y='178' width='22' height='122' rx='2' fill='%231f7f76'/%3E%3Crect x='339' y='188' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='339' y='286' width='18' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='345.0' y='233.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='362' y='200' width='18' height='100' rx='2' fill='%235f7697'/%3E%3Crect x='364' y='210' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='364' y='286' width='14' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='368.0' y='244.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3Crect x='383' y='172' width='26' height='128' rx='2' fill='%232b5f9e'/%3E%3Crect x='385' y='182' width='22' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='385' y='286' width='22' height='2' fill='%23ffffff' opacity='.35'/%3E%3Crect x='393.0' y='230.0' width='6' height='12' rx='1' fill='%23ffffff' opacity='.28'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #e9f1fb 0%, #f3f8fd 75%, var(--u-bg) 100%);
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-position: left bottom 18px, right max(24px, calc(50vw - 640px)) center, 0 0;
  background-size: 32px 16px, min(430px, 34vw) auto, auto;
  padding-bottom: 5.5rem;
}
.btn-primary, .searchForm .btn-primary { background: var(--u-gold); box-shadow: 0 2px 8px rgba(216, 170, 69, .3); }
.btn-primary:hover, .btn-primary:focus, .searchForm .btn-primary:hover, .searchForm .btn-primary:focus { background: var(--u-gold-light); }
.union-tile--person a { --tile-bg: #f7eccf; }
@media (max-width: 991.98px) {
  .searchHomeContent { background-size: 32px 16px, 0 0, auto; }
}
@media (max-width: 575.98px) {
  .searchHomeContent {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M0 15 H6 V3 H18 V11 H10 V7 H14' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3Cpath d='M14 7 V11' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3Cpath d='M18 15 H32' fill='none' stroke='%23b9cbe2' stroke-width='1.6'/%3E%3C/svg%3E"), linear-gradient(180deg, #e9f1fb 0%, #f3f8fd 75%, var(--u-bg) 100%);
    background-repeat: repeat-x, no-repeat; background-position: left bottom 12px, 0 0; background-size: 32px 16px, auto;
    padding-bottom: 3.2rem;
  }
  .searchHomeContent::before { padding-right: 0; }
}

/* ---- Variant: museum hero, deep blue with a gold line engraving ---- */
.searchHomeContent {
  background-color: #133a6b;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cg fill='none' stroke='%23d8b25c' stroke-width='1.2' opacity='.6'%3E%3Cpath d='M0 15 H6 V3 H18 V11 H10 V7 H14 V11'/%3E%3Cpath d='M18 15 H32'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 312' opacity='.85'%3E%3Cpath d='M0 150 H440 M0 156 H440' stroke='%23d8b25c' stroke-width='1.4'/%3E%3Cpath d='M0 300 H440 M0 306 H440' stroke='%23d8b25c' stroke-width='1.4'/%3E%3Crect x='18' y='38' width='22' height='112' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M21 48 H37 M21 51 H37 M21 136 H37' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='26.0' y='88.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='43' y='54' width='18' height='96' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M46 64 H58 M46 67 H58 M46 136 H58' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='49.0' y='96.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='64' y='26' width='26' height='124' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M67 36 H87 M67 39 H87 M67 136 H87' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='74.0' y='82.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='93' y='62' width='16' height='88' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M96 72 H106 M96 75 H106 M96 136 H106' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='98.0' y='100.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='112' y='44' width='22' height='106' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M115 54 H131 M115 57 H131 M115 136 H131' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='120.0' y='91.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='137' y='32' width='20' height='118' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M140 42 H154 M140 45 H154 M140 136 H154' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='144.0' y='85.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='160' y='50' width='24' height='100' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M163 60 H181 M163 63 H181 M163 136 H181' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='169.0' y='94.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Cg transform='rotate%2814 191 150%29'%3E%3Crect x='191' y='46' width='20' height='104' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M194 56 H208 M194 59 H208 M194 136 H208' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='198.0' y='92.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3C/g%3E%3Cpath d='M300 46 h22 v6 c0 6 -4 8 -4 12 c14 6 22 22 22 40 c0 22 -14 36 -29 44 c-15 -8 -29 -22 -29 -44 c0 -18 8 -34 22 -40 c0 -4 -4 -6 -4 -12z' fill='none' stroke='%23d8b25c' stroke-width='1.4'/%3E%3Cpath d='M297 70 c-12 2 -14 14 -6 18 M325 70 c12 2 14 14 6 18' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M283 98 q28 6 56 0' fill='none' stroke='%23d8b25c' stroke-width='1'/%3E%3Cpath d='M283 104 q28 6 56 0' fill='none' stroke='%23d8b25c' stroke-width='1'/%3E%3Cpath d='M283 128 q28 6 56 0' fill='none' stroke='%23d8b25c' stroke-width='1'/%3E%3Cpath d='M288 113 q23 5 46 0' fill='none' stroke='%23d8b25c' stroke-width='1' stroke-dasharray='2 3'/%3E%3Crect x='360' y='58' width='20' height='92' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M363 68 H377 M363 71 H377 M363 136 H377' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='367.0' y='98.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='383' y='40' width='24' height='110' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M386 50 H404 M386 53 H404 M386 136 H404' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='392.0' y='89.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='410' y='66' width='18' height='84' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M413 76 H425 M413 79 H425 M413 136 H425' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='416.0' y='102.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='24' y='284' width='120' height='14' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.2'/%3E%3Crect x='30' y='268' width='108' height='14' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.2'/%3E%3Crect x='24' y='252' width='128' height='14' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.2'/%3E%3Crect x='30' y='236' width='100' height='14' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.2'/%3E%3Crect x='172' y='180' width='20' height='120' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M175 190 H189 M175 193 H189 M175 286 H189' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='179.0' y='234.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='195' y='166' width='24' height='134' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M198 176 H216 M198 179 H216 M198 286 H216' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='204.0' y='227.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='222' y='196' width='18' height='104' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M225 206 H237 M225 209 H237 M225 286 H237' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='228.0' y='242.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='243' y='174' width='22' height='126' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M246 184 H262 M246 187 H262 M246 286 H262' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='251.0' y='231.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='268' y='204' width='16' height='96' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M271 214 H281 M271 217 H281 M271 286 H281' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='273.0' y='246.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='287' y='170' width='24' height='130' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M290 180 H308 M290 183 H308 M290 286 H308' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='296.0' y='229.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='314' y='188' width='20' height='112' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M317 198 H331 M317 201 H331 M317 286 H331' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='321.0' y='238.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='337' y='178' width='22' height='122' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M340 188 H356 M340 191 H356 M340 286 H356' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='345.0' y='233.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='362' y='200' width='18' height='100' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M365 210 H377 M365 213 H377 M365 286 H377' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='368.0' y='244.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='383' y='172' width='26' height='128' rx='1.5' fill='none' stroke='%23d8b25c' stroke-width='1.3'/%3E%3Cpath d='M386 182 H406 M386 185 H406 M386 286 H406' stroke='%23d8b25c' stroke-width='.9'/%3E%3Crect x='393.0' y='230.0' width='6' height='12' fill='none' stroke='%23d8b25c' stroke-width='.9'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 78% 30%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(165deg, #1b4a85 0%, #133a6b 55%, #0e2d55 100%);
  background-repeat: repeat-x, no-repeat, no-repeat, no-repeat;
  background-size: 32px 16px, min(430px, 34vw) auto, auto, auto;
  background-position: left bottom 18px, right max(24px, calc(50vw - 640px)) center, 0 0, 0 0;
  border-radius: 0; box-shadow: inset 0 -1px 0 rgba(216, 178, 92, .35);
}
.searchHomeContent::before { color: #ffffff; }
.searchHomeContent::after { color: #c9d8ea; }
.searchHomeContent .searchForm { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
.searchHomeContent .advanced-search-link { color: #1d5aa6; }
.searchHomeContent .searchForm:focus-within { box-shadow: 0 0 0 4px rgba(216, 178, 92, .45), 0 10px 30px rgba(0, 0, 0, .28); }
@media (max-width: 991.98px) { .searchHomeContent { background-size: 32px 16px, 0 0, auto, auto; } }
@media (max-width: 575.98px) {
  .searchHomeContent { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cg fill='none' stroke='%23d8b25c' stroke-width='1.2' opacity='.6'%3E%3Cpath d='M0 15 H6 V3 H18 V11 H10 V7 H14 V11'/%3E%3Cpath d='M18 15 H32'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(165deg, #1b4a85 0%, #133a6b 55%, #0e2d55 100%);
    background-size: 32px 16px, auto; background-position: left bottom 12px, 0 0; border-radius: 0; }
}
/* Tabs and menus: soft hover instead of the dark grey of the base theme (.nav>li>a:hover), no dotted outline */
.nav > li > a:hover, .nav > li > button:hover, .nav > li > a:focus, .nav > li > button:focus {
  background-color: #eef4fc; color: #173f73; outline: 0; text-decoration: none;
}
.nav > li > a:focus-visible, .nav > li > button:focus-visible { outline: 3px solid #d8aa45; outline-offset: 2px; }
.record-tabs .nav-tabs .nav-link:hover, .record-tabs .nav-tabs .nav-link:focus { background-color: #eef4fc; color: #173f73; border-radius: 6px; }
.record-tabs .nav-tabs .nav-link.active:hover, .record-tabs .nav-tabs .nav-link.active:focus { background-color: #e3eefc; color: #173f73; }

/* "Quick look" on the new items: a pill at the bottom of the cover (the base theme shows a black band) */
.channel-quick-look-btn {
  inset-inline: .6rem; top: auto; bottom: .6rem; padding: .35rem .7rem; border: 0; border-radius: 6px;
  background: rgba(23, 63, 115, .92); color: #fff; font-weight: 500; font-size: .85rem; box-shadow: 0 4px 12px rgba(15, 30, 55, .25);
}
.channel-quick-look-btn:hover, .channel-quick-look-btn:focus { background: #d8aa45; color: #1e2a38; }
.channel-quick-look-btn:focus-visible { outline: 3px solid #173f73; outline-offset: 2px; }
.channel-item .channel-quick-look-btn { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; text-decoration: none; }
.channel-item .channel-quick-look-btn:hover, .channel-item .channel-quick-look-btn:focus { color: #1e2a38; }
/* Header menu: clean, no background on hover; only the text turns blue */
header .nav.navbar-nav > li > a:hover, header .nav.navbar-nav > li > a:focus,
header .nav.navbar-nav button.dropdown-toggle:hover, header .nav.navbar-nav button.dropdown-toggle:focus,
header .nav.navbar-nav button.dropdown-toggle[aria-expanded="true"] {
  background: transparent !important; color: #1d5aa6 !important; border-radius: 0; outline: 0; text-decoration: none;
}
header .nav.navbar-nav > li > a:focus-visible, header .nav.navbar-nav button.dropdown-toggle:focus-visible { outline: 3px solid #d8aa45; outline-offset: 2px; }
/* Search bar of the inner pages: dark text (the base theme sets white for its dark header), wider field on desktop */
header .searchForm, header .active-filters { color: #1e2a38; }
@media (min-width: 768px) {
  header .searchForm-inputs { display: flex; align-items: center; gap: .4rem; }
  header .searchForm-query { flex: 0 1 38rem; min-width: 18rem; }
  header .searchForm-query .searchForm_lookfor { width: 100%; }
}
/* Active filters: a plain "clear filters" link and soft removable pills */
header .active-filters--uncollapsible { flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .6rem; }
@media (min-width: 768px) { header .active-filters--uncollapsible { display: flex; } }
header .reset-filters-btn, .active-filters .reset-filters-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border: 1px solid #d5e1ef; border-radius: 6px;
  background: #fff; color: #1d5aa6; font-size: .88rem; font-weight: 500; text-decoration: none;
}
header .reset-filters-btn:hover, .active-filters .reset-filters-btn:hover { background: #eef4fc; border-color: #b9cfea; color: #173f73; }
header .active-filters .filters { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: 0; }
header .active-filters .filters-title { color: #5a6878; font-size: .88rem; margin-right: .3rem; }
.active-filters .filter-value, .active-filters a.filter-value {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border: 0; border-radius: 6px;
  background: #e3eefc; color: #173f73; font-size: .88rem; font-weight: 500; text-decoration: none;
}
.active-filters .filter-value:hover, .active-filters .filter-value:focus { background: #d2e2f8; color: #173f73; }
.active-filters .filter-value .icon { font-size: .8em; opacity: .7; }

/* Inner pages: the search field takes the free width (the base theme caps it) */
@media (min-width: 768px) {
  header .searchForm .searchForm-query .searchForm_lookfor, header #searchForm_lookfor { max-width: none; width: 100%; }
}
header .active-filters .filters .filter-value, header .active-filters .filters a.filter-value {
  background: #e3eefc; color: #173f73; border: 0; border-radius: 6px; padding: .3rem .7rem; font-weight: 500;
}
header .active-filters .filters .filter-value:hover { background: #d2e2f8; }
/* Home: the library list items take the height of their chip (the base theme lays them out as a grid with empty rows) */
.home-facet.building .home-facet-list > li { display: flex; align-items: center; min-height: 0; height: auto; }
.home-facet.building .home-facet-list > li > .facet-tree__toggle-expanded, .home-facet.building .home-facet-list > li > ul { display: none; }
.home-facet.building .home-facet-list { align-items: flex-start; }
.home-facet.building .home-facet-list > li > * { margin-top: 0; margin-bottom: 0; }
.home-facet.building .home-facet-list { align-content: flex-start; height: auto !important; min-height: 0; max-height: none; }
/* Dropdown menus: square items, light blue on hover */
.dropdown-menu { border-radius: 6px; padding: .35rem 0; }
header .dropdown-menu { padding: .35rem 0; }
.dropdown-menu .dropdown-item, header .dropdown-menu .dropdown-item { border-radius: 0; padding: .5rem 1.1rem; }
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus, header .dropdown-menu .dropdown-item:hover, header .dropdown-menu .dropdown-item:focus {
  background-color: #eef4fc; color: #173f73; border-radius: 0;
}
.dropdown-menu { --bs-dropdown-bg: #fff; --bs-dropdown-link-color: #1e2a38; --bs-dropdown-link-hover-bg: #eef4fc; --bs-dropdown-link-hover-color: #173f73;
  --bs-dropdown-link-active-bg: #e3eefc; --bs-dropdown-link-active-color: #173f73; --bs-dropdown-border-radius: 6px; }
header .dropdown-menu a:not(.active):hover, header .dropdown-menu a:not(.active):focus { background-color: #eef4fc; color: #173f73; border-radius: 0; outline: 0; }
/* Entity pages: other names of places and the Wikipedia summary (authority/parts/wiki.phtml) */
.ue-othernames { margin: .6rem 0 0; color: #33475b; font-size: .95rem; }
.ue-othernames__label { color: #5a6878; margin-right: .25rem; }
.ue-othernames small { color: #5a6878; }
.ue-wiki { margin: 1rem 0 0; max-width: 70ch; padding: .9rem 1.1rem; background: #fff; border-left: 3px solid #d8aa45; border-radius: 0 6px 6px 0; box-shadow: var(--u-shadow); }
.ue-wiki__text { margin: 0 0 .5rem; line-height: 1.6; color: #1e2a38; }
.ue-wiki__src { margin: 0; font-size: .82rem; color: #5a6878; }
.ue-wiki__src a { color: #1d5aa6; }
/* Phones: entity headers without a portrait in one column (the 575px rule of .ue-head gave them a 90px column) */
@media (max-width: 575.98px) {
  .ue-head.ue-head--noportrait { grid-template-columns: minmax(0, 1fr); }
  .ue-ids { gap: .35rem; }
  .ue-id { white-space: normal; overflow-wrap: anywhere; }
}
/* Citations: long permanent links wrap (they widened the page on phones) */
.citation, .citation > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.citation.copy-to-clipboard-container { display: flex; align-items: flex-start; gap: .5rem; }
/* Phones: the "Narrow search" button of the results in the style of the theme */
.search-filter-toggle.vc-show-sidebar-button {
  background: #fff; color: #1d5aa6; border: 1px solid #d5e1ef; border-radius: 6px; font-weight: 500; box-shadow: var(--u-shadow);
}
.search-filter-toggle.vc-show-sidebar-button:hover, .search-filter-toggle.vc-show-sidebar-button:focus { background: #eef4fc; color: #173f73; }
.citation.copy-to-clipboard-container > span:first-child { flex: 1 1 auto; }
.citation .copy-to-clipboard { flex: 0 0 auto; position: static; margin: 0; }
/* Dropdown menus: the current page (active item) dark blue with white text */
.dropdown-menu .dropdown-item.active, .dropdown-menu .dropdown-item:active, header .dropdown-menu a.active,
header .dropdown-menu a.active:hover, header .dropdown-menu a.active:focus, .dropdown-menu .dropdown-item.active:hover {
  background-color: #173f73 !important; color: #fff !important;
}
/* Active filters on hover: dark text on the light blue (the base theme turned it white) */
.active-filters .filters .filter-value:hover, .active-filters .filters .filter-value:focus,
.active-filters .filters .filter-value:hover .text, .active-filters .filters .filter-value:hover .icon {
  color: #173f73 !important;
}
/* Selected facet value: white on blue, also on hover */
.sidebar .facet.active, .sidebar .facet.active:hover, .sidebar .facet.active .text, .sidebar .facet.active .badge { color: #fff !important; }
.sidebar .facet.active:hover { background-color: #173f73 !important; }
.union-record-ids { margin: .5rem 0 1rem; }
/* Phones: the cover of a record above its details (side by side they squeezed the text) */
@media (max-width: 575.98px) {
  .record .media { flex-direction: column; }
  .record .media > .media-left { width: auto; max-width: 9rem; margin: 0 0 1rem; }
  .record .media > .media-body { width: 100%; min-width: 0; }
}
@media (max-width: 575.98px) {
  .record .media > .media-body { margin-left: 0; padding-left: 0; }
  .record .media > .media-left, .record .media > .media-left img { max-width: 7.5rem; }
}
@media (max-width: 575.98px) { .record > .mainbody { padding: 1.1rem 1rem; } }
/* Quick look of the new items: the core details of records without a description, as on the record page */
.union-quicklook-core { margin-top: 1rem; }
.union-quicklook-core table { width: 100%; }
.union-quicklook-core tr { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .1rem 1rem; padding: .45rem 0; border-bottom: 1px solid #edf2f8; }
.union-quicklook-core th, .union-quicklook-core td { border: 0; padding: 0; background: transparent !important; box-shadow: none; }
.union-quicklook-core th { color: #5a6878; font-weight: 400; }
@media (max-width: 575.98px) { .union-quicklook-core tr { grid-template-columns: 1fr; } }
/* Quick look: previous / related channels / next in the style of the theme */
.channels-quick-look .ql-prev-item-btn, .channels-quick-look .ql-expand-btn, .channels-quick-look .ql-next-item-btn {
  background: #fff; color: #1d5aa6; border-color: #d5e1ef; font-weight: 500;
}
.channels-quick-look .ql-prev-item-btn:hover, .channels-quick-look .ql-expand-btn:hover, .channels-quick-look .ql-next-item-btn:hover {
  background: #eef4fc; color: #173f73;
}
.channels-quick-look .disabled { color: #9aa8b8; }
/* "Where to find it": one card per library, its items in fixed columns that line up across the cards */
.union-other-records tr {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); grid-template-areas: "lib items"; align-items: start;
}
.union-other-records td.uor-lib { grid-area: lib; display: flex; flex-direction: column; gap: .35rem; font-size: 1rem; }
.union-other-records td.uor-items { grid-area: items; justify-self: stretch; }
.uor-lib__name { font-weight: 500; color: #173f73; font-size: 1.05rem; line-height: 1.35; }
.uor-lib__links { font-size: .88rem; color: #5a6878; font-weight: 400; }
.uor-items__list { list-style: none; margin: 0; padding: 0; }
.uor-items__list li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 9.5rem; gap: .2rem 1rem; align-items: center; padding: .35rem 0; }
.uor-items__list li + li { border-top: 1px solid #e6edf6; }
.uor-branch { color: #33475b; }
.uor-call { font-variant-numeric: tabular-nums; }
.uor-status { justify-self: end; }
.uor-status .text-success { background: #dcf3ef; color: #0b6b62 !important; border-radius: 6px; padding: .15rem .6rem; font-weight: 500; font-size: .88rem; white-space: nowrap; }
.uor-status .text-danger { background: #fbe3e7; color: #a12d43 !important; border-radius: 6px; padding: .15rem .6rem; font-weight: 500; font-size: .88rem; white-space: nowrap; }
@media (max-width: 767.98px) {
  .union-other-records tr { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lib" "items"; }
  .uor-items__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .uor-call { grid-column: 1; grid-row: 2; }
  .uor-status { grid-column: 2; grid-row: 1 / span 2; }
}
/* Phones: the base theme turns table rows into blocks and cells into flex boxes; keep the card layout */
.union-other-records tbody tr { display: grid !important; }
.union-other-records td.uor-items { display: block !important; width: 100%; }
.union-other-records td.uor-lib { display: flex !important; }
.union-other-records td::before { content: none !important; }
/* Project roadmap page (unionadmin/roadmap.phtml) */
.union-roadmap__meta { color: #5a6878; font-size: .92rem; }
.union-roadmap__body { background: #fff; border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow); padding: 1.6rem 1.8rem; max-width: 72rem; }
.union-roadmap__body h1 { font-size: 1.9rem; }
.union-roadmap__body h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid #edf2f8; }
.union-roadmap__body h2:first-of-type { border-top: 0; padding-top: 0; }
.union-roadmap__body table { width: 100%; margin: .8rem 0 1.2rem; border-collapse: collapse; font-size: .92rem; display: block; overflow-x: auto; }
.union-roadmap__body th, .union-roadmap__body td { padding: .45rem .7rem; border-bottom: 1px solid #edf2f8; vertical-align: top; text-align: left; }
.union-roadmap__body th { color: #5a6878; font-weight: 500; background: #f6f9fd; }
.union-roadmap__body li { margin: .25rem 0; }
.union-roadmap__body code { color: #173f73; background: #eef4fc; padding: .05rem .3rem; border-radius: 4px; font-size: .88em; }
.union-roadmap__body del { color: #8a97a8; }
@media (max-width: 575.98px) { .union-roadmap__body { padding: 1rem; } }

/* Shared cataloguing: "Add an item" button, form and item requests (/UnionItems) */
.union-items-add { margin: .5rem 0 0; }
.union-items__form { max-width: 40rem; }
.union-items__table td small { color: #4a5868; }
.union-items__status { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .85rem; white-space: nowrap; background: var(--union-light); color: var(--union-text); }
.union-items__status--pending { background: #fff4d6; color: #5c4300; }
.union-items__status--delivered { background: #e6effa; color: #173f73; }
.union-items__status--imported { background: #dff3ea; color: #0d5c3a; }
.union-items__status--rejected { background: #fbe3e6; color: #8a1c2b; }
.union-items__status--cancelled { background: #eceff3; color: #3d4752; }
.union-items__table form { margin: 0; }
.union-items .alert-danger { background: #fbe3e6; color: #8a1c2b; border: 1px solid #f0c3ca; }

/* MARC of the entities: tab (authority/parts/marc.phtml) and editor (/UnionAuthorities/Edit) */
.union-auth__marc { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--union-paper); border: 1px solid var(--union-border); border-radius: 6px; padding: .8rem 1rem; font-size: .88rem; }
.union-auth__source { color: #4a5868; }
.union-auth__history { padding-left: 1.1rem; }
.union-marc__fields { list-style: none; padding: 0; margin: 0 0 .5rem; }
.union-marc__row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem .5rem; padding: .45rem 0; border-bottom: 1px solid var(--union-border); }
.union-marc__row--leader { border-bottom: 2px solid var(--union-border); }
.union-marc input.union-marc__tag, .union-marc label.union-marc__tag { width: 3.6rem; flex: 0 0 auto; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 600; }
.union-marc input.union-marc__ind, .union-marc input.union-marc__code { width: 2.2rem; flex: 0 0 auto; text-align: center; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.union-marc__value { flex: 1 1 18rem; min-width: 0; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.union-marc__subs { list-style: none; padding: 0; margin: 0; flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.union-marc__sub { display: flex; align-items: center; gap: .25rem; }
.union-marc__sub > span { color: var(--union-primary); font-weight: 700; }
.union-marc__subvalue { flex: 1 1 auto; min-width: 0; }
.union-marc__actions { display: flex; flex-wrap: wrap; gap: .25rem; flex: 0 0 auto; }
.union-marc__delete { font-size: .85rem; color: #4a5868; white-space: nowrap; }
.union-marc__lookup { background: var(--union-paper); border: 1px solid var(--union-border); border-radius: 6px; padding: .7rem .9rem; margin: .4rem 0; }
.union-marc__lookup-form { display: flex; flex-wrap: wrap; gap: .4rem; }
.union-marc__lookup-form input { flex: 1 1 14rem; min-width: 0; }
.union-marc__lookup-form select { flex: 0 1 12rem; }
.union-marc__results { list-style: none; padding: 0; margin: .5rem 0 0; }
.union-marc__results small { color: #4a5868; }
.union-marc__hint { font-size: .85rem; color: #4a5868; margin: .4rem 0 0; }
@media (max-width: 575.98px) {
  .union-marc__subs { flex-basis: 100%; }
}

/* Review screen, tab "Ίδιος τόπος": filter by the reason of the proposal */
.union-review__reasons { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .2rem 0 1rem; font-size: .92rem; }
.union-review__reasons a.is-current { font-weight: 700; text-decoration: none; color: var(--union-text); }

/* Covers (/UnionCovers) */
.union-cover__now { display: flex; gap: 1rem; align-items: flex-start; margin: .8rem 0 1rem; }
.union-cover__img { max-width: 140px; height: auto; border: 1px solid var(--union-border); }
.union-cover__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.union-cover__grid img { width: 100%; height: 190px; object-fit: contain; background: var(--union-paper); border: 1px solid var(--union-border); }
.union-cover__grid a { display: block; text-decoration: none; overflow-wrap: anywhere; }
.union-cover__grid small { display: block; color: #4a5868; font-size: .8rem; }

/* Base map of the catalogue (js/union-basemap.js): sea, land, labels in Greek; no third-party tiles */
.union-basemap.leaflet-container { background: #dce8f2; }
.union-map-label { background: none; border: 0; }
.union-map-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; font: 600 11px/1.1 var(--union-font); color: #3a4652;
  text-shadow: 0 0 2px #f6f3ec, 0 0 2px #f6f3ec, 0 0 3px #f6f3ec; }
.union-map-label--big span { font-size: 13px; color: #1e2a38; }
.union-entity__leaflet { height: 360px; }

/* Box about the library or branch the results are filtered by (Recommend/LibraryBox.phtml) */
.union-library-box { border: 1px solid #c9d8ec; border-left: 4px solid #1d5aa6; border-radius: 6px; background: #f6f9fd;
  padding: .75rem 1rem; margin: 0 0 1rem; }
.union-library-box__title { font-size: 1.15rem; margin: 0 0 .25rem; color: #173f73; }
.union-library-box__title small { display: block; font-size: .85rem; color: #4a5568; font-weight: 400; }
.union-library-box__meta, .union-library-box__notes { margin: 0 0 .25rem; color: #4a5568; }
.union-library-box__branch { display: grid; grid-template-columns: max-content 1fr; gap: .1rem .75rem; margin: .4rem 0 0; }
.union-library-box__branch dt { font-weight: 600; color: #4a5568; }
.union-library-box__branch dd { margin: 0; }

/* Pie chart of a facet (Recommend/SideFacets.phtml, union-facet-pie.js) */
.facet-group { position: relative; }
.union-facet-pie-btn { position: absolute; top: .45rem; right: 2.2rem; width: 1.3rem; height: 1.3rem; border: 0; padding: 0;
  border-radius: 50%; cursor: pointer; background: conic-gradient(#1d5aa6 0 45%, #e0a92e 45% 75%, #9fb6d6 75% 100%); opacity: .75; }
.union-facet-pie-btn:hover, .union-facet-pie-btn:focus-visible, .union-facet-pie-btn[aria-expanded="true"] { opacity: 1; outline: 2px solid #173f73; outline-offset: 2px; }
.union-facet-pie { padding: .5rem .25rem .75rem; display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.union-facet-pie[hidden] { display: none; }
.union-facet-pie ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; width: 100%; }
.union-facet-pie li { display: flex; gap: .35rem; align-items: baseline; }
.union-facet-pie li i { flex: 0 0 .7rem; height: .7rem; border-radius: 2px; display: inline-block; }
.union-facet-pie li span { overflow-wrap: break-word; min-width: 0; }
.union-facet-pie li b { margin-left: auto; font-weight: 500; color: #4a5568; white-space: nowrap; }

/* "Η Κύπρος σε χάρτη και χρόνο" (explore/home.phtml, union-explore.js) */
.union-explore { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.union-explore__kicker { margin: 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #8a6a12; font-weight: 500; }
.union-explore__intro h1 { margin: .2rem 0 .4rem; color: #173f73; }
.union-explore__lead { margin: 0; color: #4a5568; max-width: 48rem; }
.union-explore__bar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.union-explore__mode { display: inline-flex; border: 1px solid #9fb6d6; border-radius: 22px; overflow: hidden; }
.union-explore__mode button { font: inherit; font-size: .9rem; padding: .6rem 1rem; min-height: 44px; border: 0; background: #fff; color: #173f73; cursor: pointer; }
.union-explore__mode button[aria-pressed="true"] { background: #173f73; color: #fff; }
.union-explore__mode button:focus-visible { outline: 3px solid #e0a92e; outline-offset: -3px; }
.union-explore__status { margin: 0; font-weight: 500; color: #173f73; }
.union-explore__main { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: stretch; }
.union-explore__mapbox { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; padding: .75rem; }
.union-explore__map { height: 520px; border-radius: 8px; background: #e3ecf7; }
.union-explore__legend { margin: .5rem 0 0; font-size: .82rem; color: #4a5568; }
.union-explore__panel { flex: 1 1 300px; min-width: 0; background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.union-explore__pkicker { margin: 0; font-size: .82rem; color: #8a6a12; font-weight: 500; }
.union-explore__ptitle { margin: 0; font-size: 1.4rem; color: #173f73; }
.union-explore__pmeta { margin: 0; font-size: .9rem; color: #4a5568; }
.union-explore__recs, .union-explore__top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.union-explore__recs a { display: flex; flex-direction: column; padding: .5rem .65rem; border-radius: 8px; background: #fbfaf6; text-decoration: none; }
.union-explore__recs a:hover, .union-explore__recs a:focus-visible { background: #f3f7fc; }
.union-explore__rtitle { color: #173f73; font-weight: 500; }
.union-explore__rmeta { font-size: .82rem; color: #4a5568; }
.union-explore__topbtn { width: 100%; display: flex; justify-content: space-between; gap: .5rem; font: inherit; text-align: left; padding: .5rem .65rem; min-height: 44px; border: 0; border-radius: 8px; background: #fbfaf6; color: #173f73; cursor: pointer; }
.union-explore__topbtn:hover, .union-explore__topbtn:focus-visible { background: #f3f7fc; }
.union-explore__topbtn b { font-weight: 500; color: #4a5568; }
.union-explore__open { align-self: flex-start; margin-top: .25rem; }
.union-explore__back { align-self: flex-start; padding-left: 0; }
.union-explore__timeline { background: #fff; border: 1px solid #d7e1ee; border-radius: 12px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.union-explore__timehead { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: baseline; justify-content: space-between; }
.union-explore__timehead h2 { margin: 0; font-size: 1.25rem; color: #173f73; }
.union-explore__hint, .union-explore__note { margin: 0; font-size: .85rem; color: #4a5568; }
.union-explore__bars { display: grid; gap: .35rem; align-items: end; overflow-x: auto; }
.union-explore__tbar { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; font: inherit; border: 0; padding: .25rem .1rem; background: transparent; cursor: pointer; border-radius: 6px; min-width: 3.4rem; }
.union-explore__tbar:hover, .union-explore__tbar:focus-visible { background: #f3f7fc; outline: none; }
.union-explore__tbar:focus-visible { box-shadow: 0 0 0 3px #e0a92e; }
.union-explore__col { height: 150px; display: flex; align-items: flex-end; }
.union-explore__fill { width: 100%; background: #9fb6d6; border-radius: 3px 3px 0 0; }
.union-explore__tbar.is-on .union-explore__fill { background: #e0a92e; }
.union-explore__blabel { font-size: .75rem; line-height: 1.2; color: #1e2a38; text-align: center; }
.union-explore__tbar.is-on .union-explore__blabel { color: #8a6a12; font-weight: 700; }
.union-explore__bsub { font-size: .68rem; color: #4a5568; text-align: center; }
.union-explore__bnum { font-size: .68rem; color: #4a5568; text-align: center; }
@media (max-width: 640px) { .union-explore__map { height: 380px; } }

/* History of actions (/UnionAdmin/History) */
.union-history__filter { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.union-history__filter > div { min-width: 10rem; }
.union-history__buttons { display: flex; gap: .5rem; align-items: center; }
.union-history__table td { vertical-align: top; }
.union-history__old { text-decoration: line-through; color: #6b6b6b; }
.union-history__fail td { background: #fff4f2; }
.union-history__retention { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.union-history__retention input { width: 5.5rem; }

/* "Not the same item" on the tab "Other records" (docs/deduplication.md) */
.uor-dedup { margin-top: .35rem; font-size: .875rem; }
.uor-dedup summary { cursor: pointer; color: #6b6b6b; }
.uor-dedup form { margin-top: .4rem; max-width: 28rem; }
.uor-dedup--pending { color: #8a4b00; }
.uor-separated { margin-top: 1rem; }

/* /UnionAdmin with tabs */
.union-admin__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.union-admin__head h1 { margin: 0; }
.union-admin__summary { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding: 0; margin: 1rem 0 0; color: #3b4450; }
.union-admin__summary b { font-size: 1.15rem; color: var(--union-text); }
.union-admin__count { display: inline-block; min-width: 1.5rem; padding: 0 .4rem; margin-left: .25rem; border-radius: 1rem; background: #eef2f6; color: #3b4450; font-size: .78rem; font-weight: 600; text-align: center; }
.union-admin__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .8rem; }
.union-admin__toolbar .union-reports__filter { margin: 0; }
.union-admin__role { display: inline-block; padding: .05rem .55rem; border-radius: 1rem; font-size: .8rem; background: #eef2f6; }
.union-admin__role--admin { background: #fdf0d5; color: #7a4b00; }
.union-admin__editing { padding: .6rem .9rem; border-left: 3px solid var(--ue-main, #2b5c9e); background: #f4f7fb; }
.union-admin__group { margin: 0 0 1.2rem; padding: 1rem 1.1rem .4rem; border: 1px solid var(--union-border); border-radius: .6rem; background: #fff; }
.union-admin__group legend { float: none; width: auto; padding: 0 .4rem; margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #3b4450; }
.union-admin__libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .1rem 1rem; }
.union-admin__steps { max-width: 70ch; color: #3b4450; padding-left: 1.2rem; }
.union-admin__libcards { display: grid; gap: 1rem; }
.union-admin__libcard { border: 1px solid var(--union-border); border-radius: .6rem; background: #fff; }
.union-admin__libhead { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .7rem 1rem; border-bottom: 1px solid var(--union-border); background: #f8fafc; border-radius: .6rem .6rem 0 0; }
.union-admin__libhead h3 { margin: 0 auto 0 0; color: var(--union-text); }
.union-admin__libhead h3 small { color: #5b6670; }
.union-admin__libhead a { color: var(--union-link, #1f5aa6); }
.union-admin__libhist { font-size: .85rem; }
.union-admin__status { padding: .05rem .55rem; border-radius: 1rem; font-size: .78rem; font-weight: 600; background: #eef2f6; color: #5b6670; }
.union-admin__status--on { background: #e3f4ea; color: #1d6b3d; }
.union-admin__status--off { background: #fdf0d5; color: #7a4b00; }
.union-admin__libbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem 2rem; padding: .9rem 1rem 1rem; }
@media (max-width: 767px) { .union-admin__libbody { grid-template-columns: 1fr; } }
.union-admin__sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6670; margin: 0 0 .5rem; }
.union-admin__keys li { padding: .15rem 0; }
.union-admin__form { display: block; max-width: 60rem; }
.union-admin__group { display: block; width: 100%; min-width: 0; }
