p.comingSoon {
  color: #999999;
  font-style: italic;
}

/* inline change info (shown when a related change is clicked) */
#change-info {
  margin-top: 1.4em;
  padding-top: 1.1em;
  border-top: 1px solid #eeeeee;
}
h2.fas-change-title {
  font-size: 1.15em;
  color: #5c2483;
  margin: 0 0 0.5em 0;
}
a.fas-change-link {
  display: inline-block;
  margin-top: 8px;
  color: #5c2483;
  font-size: 0.9em;
  text-decoration: none;
}
a.fas-change-link:hover { text-decoration: underline; }

/* --- two-column layout: map + legend (left), article + samples (right) --- */
div.mapList {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  min-height: 650px;
}
div.mapList > div.map-col {
  width: 475px;
  flex-shrink: 0;
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
div.mapList > div.map-col > div.map {
  position: relative;
  width: 100%;
  height: 550px;
  background-color: #dddddd;
  border-radius: 4px;
  border: 1px solid #5c2483;
  margin-top: 0;
}
div.mapList > div.list {
  flex: 1;
  min-width: 0;
  min-height: 650px;
  margin-left: 0;
  margin-top: 0;
}
@media (max-width: 800px) {
  div.mapList { display: block; }
  /* Freeze the map + legend at the top; the article and samples scroll up
     underneath. The solid background hides content passing behind. */
  div.mapList > div.map-col {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #eeeeee;
    padding-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  }
  div.mapList > div.map-col > div.map { height: 220px; }
  div.mapList > div.list { position: relative; z-index: 1; }
  /* Higher specificity than the base `.legendToggle { display: none; }` rule,
     which appears later in the file. */
  div.map-legend-box .legendToggle { display: flex; }
  div.map-legend-box.collapsed .legendItems { display: none; }
  div.map-legend-box.collapsed .legendToggle .fa-chevron-down { transform: rotate(-90deg); }
}

/* map legend */
div.map-legend-box {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  padding: 10px 14px;
  font-size: 0.88em;
  color: #444;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
div.map-legend-box .legendItems {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
/* Collapsible legend header: hidden on desktop, shown on mobile. */
.legendToggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #5c2483;
  cursor: pointer;
}
button.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  border: 1px solid #eeeeee;
  background: #ffffff;
  padding: 6px 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #333333;
  border-radius: 40px;
  font-weight: 700;
}
button.map-legend-item:hover { box-shadow: 0px 0px 5px #cccccc; }
span.map-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 0;
  box-shadow: none;
}
span.map-dot.outlier {
  background: #b0b0b0;
  opacity: 0.75;
}
div.map-legend-item.static {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 400;
}
/* A small info icon beside a legend row. A <details> element is used so the
   tooltip opens on tap in mobile Safari as well as on hover/focus. */
div.map-legend-item details.tooltipDetails {
  position: relative;
  display: inline-block;
}
div.map-legend-item details.tooltipDetails > summary.tooltipTrigger {
  list-style: none;
  color: #5c2483;
  font-size: 0.85em;
  opacity: 0.7;
  cursor: help;
}
div.map-legend-item details.tooltipDetails > summary.tooltipTrigger::-webkit-details-marker {
  display: none;
}
div.map-legend-item details.tooltipDetails[open] > summary.tooltipTrigger,
div.map-legend-item details.tooltipDetails > summary.tooltipTrigger:hover {
  opacity: 1;
}
div.map-legend-item details.tooltipDetails .tooltipText {
  position: absolute;
  z-index: 30;
  right: 0;
  top: 100%;
  margin-top: 6px;
  width: 260px;
  max-width: 80vw;
  padding: 8px 10px;
  background: #ffffff;
  color: #333333;
  border: 1px solid #d9cbe8;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 0.85em;
  line-height: 1.35;
  white-space: normal;
  text-align: left;
}
/* On narrow screens the icon sits mid-row, so centre the box on the icon and
   cap it to the viewport width. */
@media (max-width: 800px) {
  div.map-legend-item details.tooltipDetails .tooltipText {
    position: absolute;
    left: 50%;
    right: auto;
    top: 100%;
    bottom: auto;
    transform: translateX(-50%);
    width: 260px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    margin-top: 6px;
  }
}
.change-marker {
  background: none;
  border: none;
}
.change-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}
span.map-legend-label,
button.related-change span.form-label {
  border-bottom: 1px solid;
  font-weight: bold;
  color: #333333;
}
span.map-count,
span.ex-count { color: #666666; font-weight: 400; font-size: 0.9em; }

/* placename evidence (logainm_overlay) */
div.map-overlay-box {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  padding: 10px 14px;
  font-size: 0.88em;
  color: #444;
}
/* When the logainm toggle sits inside the collapsible legend, blend it in. */
div.map-legend-box .map-overlay-box {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 6px 0 0;
  width: 100%;
  border-top: 1px solid #eeeeee;
}
label.overlay-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  color: #333333;
}
label.overlay-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #5c2483;
}
label.overlay-toggle-label:has(input:disabled) {
  color: #aaaaaa;
  opacity: 0.6;
  cursor: default;
}
label.overlay-toggle-label:has(input:disabled) input[type="checkbox"] { cursor: default; }
span.overlay-count { color: #666666; font-weight: 400; font-size: 0.9em; }
/* placename-evidence diamonds on the map */
.overlay-diamond-icon { background: none; border: none; }
/* placename pop-up (Irish + English name, Logainm link) */
.overlay-popup { font-size: 0.9em; line-height: 1.35; }
.overlay-popup-ga { font-weight: 700; color: #333333; }
.overlay-popup-en { color: #666666; }
.overlay-popup-link { display: inline-block; margin-top: 6px; color: #245583; }
.overlay-popup-link:hover { text-decoration: underline; }
/* loading states while a development's samples/map are fetched */
.samples-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  color: #666666;
  font-style: italic;
}
.map-loading {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255,255,255,0.75);
  color: #5c2483;
  font-weight: 700;
  border-radius: 4px;
}

/* article pane */
#article-pane {
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
h1.fas-heading {
  color: #5c2483;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.8em;
  line-height: 1.3em;
}
h1.fas-heading span.cep-spot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
p.fas-kicker {
  margin: 12px 0 0 0;
  font-size: 0.9em;
}
p.fas-kicker a { color: #5c2483; text-decoration: none; font-weight: 600; }
p.fas-kicker a:hover { text-decoration: underline; }
p.fas-kicker span.fas-kicker-sep { margin: 0 0.35em; color: #cccccc; }

div.fas-notes, div.fas-variations, div.fas-examples {
  margin-top: 1.4em;
  padding-top: 1.1em;
  border-top: 1px solid #eeeeee;
}
div.fas-notes h2, div.fas-variations h2, div.fas-examples h2 {
  font-size: 1.05em;
  color: #5c2483;
  margin: 0 0 0.6em 0;
}
div.fas-notes.muted p { color: #888; }
div.fas-eolas-head { display: flex; align-items: center; justify-content: space-between; }
div.fas-eolas-head h2 { margin: 0; }
div.fas-eolas-head a.edit { font-size: 0.8em; color: #245583; text-decoration: none; }
div.fas-eolas-head a.edit:hover { text-decoration: underline; }
div.fas-eolas-body { margin: 0; line-height: 1.6em; }
div.fas-eolas-body.markdown p { margin: 0 0 0.85em 0; }
div.fas-eolas-body.markdown a { color: #245583; }
p.fas-eolas-source { margin: 10px 0 0 0; color: #999; font-size: 0.9em; text-align: right; }

div.fas-related-row, div.fas-example-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 8px 10px;
  /* fixed-size scrollable box for the potentially long development/example lists */
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  padding: 8px;
}
button.related-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #eeeeee;
  border-radius: 40px;
  padding: 6px 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  background: #fff;
  color: #333333;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}
button.related-change:hover { box-shadow: 0px 0px 5px #cccccc; }
button.related-change.current { border-color: #5c2483; background: #f3edfa; }
button.related-change span.map-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
button.fas-example-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 16px;
  padding: 4px 10px;
  font: inherit;
  cursor: pointer;
  color: #333;
}
button.fas-example-btn:hover { border-color: #5c2483; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
button.fas-example-btn.current { border-color: #5c2483; background: #f3edfa; }
button.fas-example-btn span.ex-arr { opacity: 0.5; }
button.fas-example-btn span.ex-count { color: #888; font-size: 0.9em; }
button.fas-example-extra { display: none; }
button.fas-example-extra.shown { display: inline-flex; }
button.fas-examples-more {
  margin-top: 10px;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 16px;
  padding: 5px 14px;
  font: inherit;
  font-size: 0.92em;
  color: #5c2483;
  cursor: pointer;
}
button.fas-examples-more:hover { border-color: #5c2483; background: #fff; }
button.fas-examples-more i { margin-left: 4px; font-size: 0.85em; }

h2.fas-samples-heading {
  margin: 18px 0 10px 0;
  font-size: 1.1em;
  color: #5c2483;
}

div.phonologyNav {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}
div.phonologyNav label {
  font-weight: bold;
  color: #5c2483;
  margin-right: 0.5em;
}
div.phonologyNav select {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  max-width: 100%;
}
h1 {
  font-size: 2em;
  font-weight: bold;
  margin-top: 0px;
}
div.phonologySource {
  color: #999999;
  font-size: 0.9em;
  margin-bottom: 1em;
}
div.phonologyBody {
  max-width: 750px;
  line-height: 1.6em;
}
div.phonologyBody a {
  color: #245583;
}
div.nojoy {
  text-align: center;
  margin-top: 50px;
  color: #666666;
  font-size: 1.1em;
}
p.subtitle {
  color: #666666;
  margin-top: -0.5em;
}
p.breadcrumb {
  font-size: 0.9em;
  color: #999999;
  margin-bottom: 0.5em;
}
p.breadcrumb a { color: #5c2483; }
p.breadcrumb span.sep { margin: 0 0.35em; color: #cccccc; }
ul.eolasIndex {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}
li.groupItem {
  margin-bottom: 1.25em;
  border-left: 4px solid #5c2483;
  padding-left: 10px;
}
h2.groupTitle {
  font-size: 1.25em;
  margin: 0 0 0.35em 0;
}
h2.groupTitle a { color: #5c2483; }
div.memberLinks, div.relatedLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
a.member, a.related {
  display: inline-block;
  border: 1px solid #d9c9ea;
  border-radius: 12px;
  padding: 2px 10px;
  color: #5c2483;
  text-decoration: none;
  font-size: 0.9em;
}
a.member:hover, a.related:hover {
  background: #f3edfa;
}
div.developments {
  margin-top: 1.5em;
  max-width: 750px;
}
div.developments h2 {
  font-size: 1.1em;
  color: #5c2483;
}
div.map {
  height: 420px;
  width: 100%;
  border-radius: 6px;
  margin-top: 0.5em;
}

/* corpus word pairs */
div.examplePairs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
button.examplePair {
  font: inherit;
  border: 1px solid #d9c9ea;
  background: #ffffff;
  color: #333333;
  border-radius: 12px;
  padding: 3px 10px;
  cursor: pointer;
}
button.examplePair:hover {
  background: #f3edfa;
}
button.examplePair span.count {
  color: #666666;
  font-size: 0.9em;
}

/* samples filter bar */
div.filter {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fffbe5;
  border: 1px solid #f0e6b8;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0.5em 0 1em 0;
}
div.filter span.label {
  font-weight: bold;
  color: #999999;
  font-size: 0.8em;
  letter-spacing: 0.05em;
}
div.filter span.chips {
  display: inline-flex;
  gap: .5em;
  flex-wrap: wrap;
}
div.filter button.chip {
  font: inherit;
  border: 1px solid #d9c9ea;
  background: #f3edfa;
  color: #5c2483;
  border-radius: 12px;
  padding: 2px 10px;
  cursor: pointer;
}
div.filter button.chip:hover {
  background: #e5d8f5;
}
div.filter button.chip i.fas.fa-times {
  margin-left: 4px;
  opacity: .7;
}
div.filter button.chip i.icon2 {
  margin-right: 4px;
}
div.filter button.remove {
  margin-left: auto;
  font: inherit;
  border: 0px;
  background: transparent;
  color: #999999;
  cursor: pointer;
}
div.filter button.remove:hover {
  color: #ff0000;
}
div.filter button.remove i {
  margin-right: 0.25em;
}

/* samples list (audio + extract) */
#samplesPane ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#samplesPane li.recording {
  display: block;
  box-sizing: border-box;
  margin: 0 0 1.5em 0;
  padding: 20px;
  position: relative;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0px 0px 5px #cccccc;
  border: 1px solid transparent;
  /* Skip layout/paint for off-screen cards; the intrinsic size keeps the
     scrollbar stable until a card is rendered. */
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
/* Mobile-only "Load more" button for the samples list. */
button.loadMore {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
  padding: 12px;
  border: 1px solid #5c2483;
  border-radius: 6px;
  background: #ffffff;
  color: #5c2483;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button.loadMore:hover { background: #f3edfa; }
#samplesPane li.recording audio {
  width: 100%;
  box-shadow: 0px 0px 5px #666666;
  border-radius: 100px;
}
#samplesPane ul.speakers {
  margin-top: 10px;
  list-style: none;
  padding: 0;
}
#samplesPane li.speaker {
  display: block;
  margin-top: 1px;
  padding-left: calc(5px + 0.25em);
  position: relative;
}
#samplesPane li.speaker span.speaker .icon {
  position: relative;
  top: 1px;
  font-size: 1.25em;
  color: #666666;
  margin-right: 5px;
}
#samplesPane li.speaker button.hometown {
  display: inline;
  font: inherit;
  border: 0px;
  padding: 3px 10px 1px 5px;
  background: transparent;
  cursor: pointer;
  color: #39677c;
  border-radius: 20px;
  border: 1px solid transparent;
}
#samplesPane li.speaker button.hometown .icon2 {
  margin: 0px 0.25em 0px 0.25em;
}
#samplesPane li.speaker button.hometown span.hometown {
  border-bottom: 1px dotted #5899b8;
}
#samplesPane li.speaker span.area {
  padding: 3px 10px 1px 5px;
  color: #666666;
}
#samplesPane li.speaker span.area .icon3 {
  margin: 0px 0.35em 0px 0em;
  color: #999999;
}
#samplesPane li.recording div.extract {
  font-size: 1.05em;
  background-color: #f6f6f6;
  margin: 20px -20px 20px -20px;
  padding: 15px 20px;
  white-space: nowrap;
  overflow-x: auto;
  color: #666666;
  text-shadow: 1px 1px 0px #ffffff;
  font-style: italic;
  text-align: center;
}
#samplesPane li.recording div.extract span.hi {
  margin: 0px 2px 0px 5px;
}
#samplesPane li.recording div.extract span.hi span.spot {
  display: inline-block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  border-radius: 20px;
  margin-right: 2px;
}
#samplesPane li.recording div.extract span.hi span.text {
  font-weight: bold;
  color: #333333;
  border-bottom: 1px solid;
  font-style: normal;
}
#samplesPane li.recording div.buttons {
  margin-top: 5px;
  text-align: right;
}
#samplesPane li.recording div.buttons div.nickname {
  float: left;
  position: relative;
  padding-left: 35px;
  padding-top: 7px;
  color: #999999;
  text-align: left;
  white-space: nowrap;
  overflow-x: hidden;
}
#samplesPane li.recording div.buttons div.nickname span.year {
  color: #333333;
  font-weight: bold;
}
#samplesPane li.recording div.buttons div.nickname span.divider {
  font-weight: bold;
}
#samplesPane li.recording div.buttons div.nickname .icon {
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 1.25em;
  color: #666666;
}
#samplesPane li.recording div.buttons a.button {
  display: inline-block;
  box-sizing: border-box;
  padding: 7px 15px 7px 20px;
  border: 0px;
  border-radius: 4px;
  background-color: #5c2483;
  color: #ffffff;
  text-align: center;
}
#samplesPane li.recording div.buttons a.button .icon {
  margin-left: 10px;
  position: relative;
  top: 1px;
}

/* In-page search results shown in place of the developments/corpus examples. */
#phonologySearchHeader {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #e5dcef;
  border-radius: 8px;
  background: #faf7fd;
}
#phonologySearchHeader .search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#phonologySearchHeader .search-title {
  font-weight: 700;
  color: #5c2483;
}
#phonologySearchHeader .search-close {
  border: 0;
  background: transparent;
  color: #5c2483;
  font-size: 1.1em;
  cursor: pointer;
  padding: 4px 8px;
}
#phonologySearchHeader .search-legend {
  white-space: nowrap;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 0.5em;
}
#phonologySearchHeader .search-variant {
  display: inline;
  font: inherit;
  border: 1px solid transparent;
  padding: 5px 15px 5px 10px;
  margin: 0 5px 0 0;
  background: transparent;
  cursor: pointer;
  color: #333333;
  border-radius: 40px;
  font-size: 1.1em;
}
#phonologySearchHeader .search-variant:hover {
  box-shadow: 0px 0px 5px #cccccc;
}
#phonologySearchHeader .search-variant.current {
  background-color: #ffffff;
  box-shadow: 0px 0px 5px #cccccc;
}
#phonologySearchHeader .search-variant .spot {
  display: inline-block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  border-radius: 20px;
  margin-right: 5px;
}
#phonologySearchHeader .search-variant .text {
  border-bottom: 1px solid;
  font-weight: bold;
}
#phonologySearchHeader .search-variant .howMany {
  color: #666666;
  font-size: 0.9em;
  font-weight: normal;
  position: relative;
  top: -1px;
}
