/* Parish page: boundary descriptions and their supporting sections. */

.parish-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.parish-meta li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #e9e2e6;
}

.parish-meta li:last-child {
  border-bottom: 0;
}

.parish-meta .label {
  font-weight: 700;
  display: inline-block;
  min-width: 9.5rem;
}

/* A note the board attached to the parish as a whole. */
.parish-note {
  background: #f5eff3;
  border-left: 4px solid #5f3c53;
  padding: 0.9rem 1.1rem;
  margin: 0 0 2rem;
}

.parish-note p {
  margin: 0;
}

.boundary-section {
  margin: 0 0 2.5rem;
}

.boundary-section h3 {
  margin-bottom: 0.75rem;
}

/* The prose boundary description. Long, so it needs room to breathe. */
.boundary-text {
  line-height: 1.8;
  max-width: 60em;
  white-space: pre-line;
}

.boundary-subsection {
  margin: 1.75rem 0 0;
  padding-left: 1.1rem;
  border-left: 3px solid #d8ccd3;
}

.boundary-subsection h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.boundary-missing {
  font-style: italic;
  color: #6b5c64;
}

/* Superseded versions. */
.audit-entry {
  border-top: 1px solid #e9e2e6;
  padding: 0.75rem 0;
}

.audit-entry summary {
  cursor: pointer;
  font-weight: 700;
}

.audit-entry summary:focus-visible {
  outline: 2px solid #5f3c53;
  outline-offset: 2px;
}

.audit-entry .audit-body {
  padding: 0.75rem 0 0.25rem;
}

.audit-status {
  font-weight: 400;
  color: #6b5c64;
}

.map-links a + a::before {
  content: " | ";
  color: #6b5c64;
}

.unavailable {
  color: #6b5c64;
}

/* A parish restructured in stages, each with its own maps and descriptions. */
.stage {
  margin: 0 0 2rem;
  padding-left: 1.1rem;
  border-left: 3px solid #d8ccd3;
}

.stage h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.stage h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
}

.stage-state {
  font-weight: 400;
  color: #6b5c64;
}

.stage-summary {
  margin: 0 0 0.5rem;
}

.stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stage-list li {
  padding: 0.2rem 0;
}

.stage-item {
  font-weight: 700;
}

/* Interactive map. */
.diocese-map {
  width: 100%;
  height: 70vh;
  min-height: 24rem;
  border: 1px solid #d8ccd3;
  border-radius: 4px;
}

.map-info {
  margin: 0.6rem 0 1.5rem;
  min-height: 1.5em;
  color: #6b5c64;
}

.map-info a {
  font-weight: 700;
}

/* Postcode lookup. */
.postcode-form {
  display: flex;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 0 0 1.75rem;
}

.postcode-form input {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: uppercase;
}

.postcode-form button {
  flex: none;
}

.lookup-panel {
  border-left: 4px solid #5f3c53;
  background: #f5eff3;
  padding: 1.1rem 1.3rem;
}

.lookup-panel h3 {
  margin: 0 0 0.75rem;
}

.lookup-panel p:last-child {
  margin-bottom: 0;
}

.lookup-result {
  margin: 0 0 1rem;
}

.lookup-result dt {
  font-weight: 700;
}

.lookup-result dd {
  margin: 0 0 0.6rem;
}

.lookup-caveat {
  font-size: 0.92rem;
  color: #6b5c64;
}

.lookup-error {
  color: #8a2f2d;
  margin: 0;
}

/* OpenLayers draws its attribution as a list; Bootstrap would give it bullets
   and indentation. */
.diocese-map .ol-attribution ul,
.map .ol-attribution ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.diocese-map .ol-attribution,
.map .ol-attribution {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 3px;
  padding: 0.15rem 0.4rem;
}
