/* Prevent long source domains from widening the mobile document. */
.ev .b[title^="http"] {
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

/* Keep the event-details trigger large enough for touch and switch input. */
.ev-title button {
  min-height: 24px;
}

/* The production bundle now renders legends directly inside fieldsets. */
.fgroup > legend {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 var(--sp-2);
  padding: 0;
  text-transform: uppercase;
}

/* Quiet parent-site navigation that does not compete with page actions. */
.parent-site-link {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  min-height: 44px;
  letter-spacing: 0.08em;
  padding: 0 var(--sp-1);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.parent-site-link:hover,
.parent-site-link:focus-visible {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

.parent-site-short {
  display: none;
}

.masthead-action-divider {
  background: var(--border-strong);
  height: 24px;
  width: 1px;
}

@media (max-width: 620px) {
  .masthead-actions {
    gap: var(--sp-1);
  }

  .parent-site-link {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    padding: 0 2px;
  }

  .parent-site-long {
    display: none;
  }

  .parent-site-short {
    display: inline;
  }

  .masthead-action-divider {
    display: none;
  }
}
